wined3d: Use dst_fbo to do the depth blit.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Wine 1.1.0.
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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='Wine'
576 PACKAGE_TARNAME='wine'
577 PACKAGE_VERSION='1.1.0'
578 PACKAGE_STRING='Wine 1.1.0'
579 PACKAGE_BUGREPORT='wine-devel@winehq.org'
580
581 ac_unique_file="server/atom.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 MAINTAINER_MODE
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 WIN16_FILES
665 WIN16_INSTALL
666 SET_MAKE
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CXX
675 CXXFLAGS
676 ac_ct_CXX
677 CPPBIN
678 TOOLSDIR
679 XMKMF
680 CPP
681 X_CFLAGS
682 X_PRE_LIBS
683 X_LIBS
684 X_EXTRA_LIBS
685 FLEX
686 BISON
687 AS
688 ac_ct_AS
689 LD
690 ac_ct_LD
691 NM
692 ac_ct_NM
693 AR
694 ac_ct_AR
695 ARFLAGS
696 RANLIB
697 STRIP
698 WINDRES
699 LN_S
700 LN
701 GREP
702 EGREP
703 LDCONFIG
704 INSTALL_PROGRAM
705 INSTALL_SCRIPT
706 INSTALL_DATA
707 LINT
708 LINTFLAGS
709 FONTFORGE
710 PKG_CONFIG
711 RSVG
712 ICOTOOL
713 PRELINK
714 LIBPTHREAD
715 XLIB
716 XFILES
717 OPENGLFILES
718 GLU32FILES
719 OPENGL_LIBS
720 QUARTZFILES
721 DLLEXT
722 DLLFLAGS
723 LDSHARED
724 LDDLLFLAGS
725 LIBEXT
726 IMPLIBEXT
727 LDRPATH_INSTALL
728 LDRPATH_LOCAL
729 LDD
730 DLLTOOL
731 DLLWRAP
732 MINGWAR
733 SECURITYLIB
734 COREFOUNDATIONLIB
735 IOKITLIB
736 LDEXECFLAGS
737 DISKARBITRATIONLIB
738 COREAUDIO
739 CARBONLIB
740 CROSSTEST
741 CROSSCC
742 CROSSWINDRES
743 NASLIBS
744 XML2LIBS
745 XML2INCL
746 XSLTLIBS
747 XSLTINCL
748 HALINCL
749 sane_devel
750 SANEINCL
751 gphoto2_devel
752 gphoto2port_devel
753 GPHOTO2LIBS
754 GPHOTO2INCL
755 RESOLVLIBS
756 LCMSLIBS
757 LDAPLIBS
758 ft_devel
759 FREETYPELIBS
760 FREETYPEINCL
761 FONTSSUBDIRS
762 ESDCONFIG
763 ESDLIBS
764 ESDINCL
765 ALSALIBS
766 AUDIOIOLIBS
767 FONTCONFIGINCL
768 EXTRACFLAGS
769 BUILTINFLAG
770 LDPATH
771 CRTLIBS
772 SOCKETLIBS
773 MAIN_BINARY
774 EXTRA_BINARIES
775 LIBDL
776 LIBPOLL
777 DEPENDENCIES
778 LIBOBJS
779 LTLIBOBJS'
780 ac_subst_files='MAKE_RULES
781 MAKE_DLL_RULES
782 MAKE_IMPLIB_RULES
783 MAKE_TEST_RULES
784 MAKE_PROG_RULES'
785       ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 CXX
794 CXXFLAGS
795 CCC
796 XMKMF
797 CPP'
798
799
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
819
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
838 htmldir='${docdir}'
839 dvidir='${docdir}'
840 pdfdir='${docdir}'
841 psdir='${docdir}'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
845
846 ac_prev=
847 ac_dashdash=
848 for ac_option
849 do
850   # If the previous option needs an argument, assign it.
851   if test -n "$ac_prev"; then
852     eval $ac_prev=\$ac_option
853     ac_prev=
854     continue
855   fi
856
857   case $ac_option in
858   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859   *)    ac_optarg=yes ;;
860   esac
861
862   # Accept the important Cygnus configure options, so we can diagnose typos.
863
864   case $ac_dashdash$ac_option in
865   --)
866     ac_dashdash=yes ;;
867
868   -bindir | --bindir | --bindi | --bind | --bin | --bi)
869     ac_prev=bindir ;;
870   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871     bindir=$ac_optarg ;;
872
873   -build | --build | --buil | --bui | --bu)
874     ac_prev=build_alias ;;
875   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876     build_alias=$ac_optarg ;;
877
878   -cache-file | --cache-file | --cache-fil | --cache-fi \
879   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880     ac_prev=cache_file ;;
881   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883     cache_file=$ac_optarg ;;
884
885   --config-cache | -C)
886     cache_file=config.cache ;;
887
888   -datadir | --datadir | --datadi | --datad)
889     ac_prev=datadir ;;
890   -datadir=* | --datadir=* | --datadi=* | --datad=*)
891     datadir=$ac_optarg ;;
892
893   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894   | --dataroo | --dataro | --datar)
895     ac_prev=datarootdir ;;
896   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898     datarootdir=$ac_optarg ;;
899
900   -disable-* | --disable-*)
901     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902     # Reject names that are not valid shell variable names.
903     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
904       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905    { (exit 1); exit 1; }; }
906     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
907     eval enable_$ac_feature=no ;;
908
909   -docdir | --docdir | --docdi | --doc | --do)
910     ac_prev=docdir ;;
911   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912     docdir=$ac_optarg ;;
913
914   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915     ac_prev=dvidir ;;
916   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917     dvidir=$ac_optarg ;;
918
919   -enable-* | --enable-*)
920     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
923       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924    { (exit 1); exit 1; }; }
925     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
926     eval enable_$ac_feature=\$ac_optarg ;;
927
928   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930   | --exec | --exe | --ex)
931     ac_prev=exec_prefix ;;
932   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934   | --exec=* | --exe=* | --ex=*)
935     exec_prefix=$ac_optarg ;;
936
937   -gas | --gas | --ga | --g)
938     # Obsolete; use --with-gas.
939     with_gas=yes ;;
940
941   -help | --help | --hel | --he | -h)
942     ac_init_help=long ;;
943   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944     ac_init_help=recursive ;;
945   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946     ac_init_help=short ;;
947
948   -host | --host | --hos | --ho)
949     ac_prev=host_alias ;;
950   -host=* | --host=* | --hos=* | --ho=*)
951     host_alias=$ac_optarg ;;
952
953   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954     ac_prev=htmldir ;;
955   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956   | --ht=*)
957     htmldir=$ac_optarg ;;
958
959   -includedir | --includedir | --includedi | --included | --include \
960   | --includ | --inclu | --incl | --inc)
961     ac_prev=includedir ;;
962   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963   | --includ=* | --inclu=* | --incl=* | --inc=*)
964     includedir=$ac_optarg ;;
965
966   -infodir | --infodir | --infodi | --infod | --info | --inf)
967     ac_prev=infodir ;;
968   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969     infodir=$ac_optarg ;;
970
971   -libdir | --libdir | --libdi | --libd)
972     ac_prev=libdir ;;
973   -libdir=* | --libdir=* | --libdi=* | --libd=*)
974     libdir=$ac_optarg ;;
975
976   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977   | --libexe | --libex | --libe)
978     ac_prev=libexecdir ;;
979   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980   | --libexe=* | --libex=* | --libe=*)
981     libexecdir=$ac_optarg ;;
982
983   -localedir | --localedir | --localedi | --localed | --locale)
984     ac_prev=localedir ;;
985   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986     localedir=$ac_optarg ;;
987
988   -localstatedir | --localstatedir | --localstatedi | --localstated \
989   | --localstate | --localstat | --localsta | --localst | --locals)
990     ac_prev=localstatedir ;;
991   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993     localstatedir=$ac_optarg ;;
994
995   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996     ac_prev=mandir ;;
997   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998     mandir=$ac_optarg ;;
999
1000   -nfp | --nfp | --nf)
1001     # Obsolete; use --without-fp.
1002     with_fp=no ;;
1003
1004   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005   | --no-cr | --no-c | -n)
1006     no_create=yes ;;
1007
1008   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010     no_recursion=yes ;;
1011
1012   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014   | --oldin | --oldi | --old | --ol | --o)
1015     ac_prev=oldincludedir ;;
1016   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019     oldincludedir=$ac_optarg ;;
1020
1021   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022     ac_prev=prefix ;;
1023   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024     prefix=$ac_optarg ;;
1025
1026   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027   | --program-pre | --program-pr | --program-p)
1028     ac_prev=program_prefix ;;
1029   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031     program_prefix=$ac_optarg ;;
1032
1033   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034   | --program-suf | --program-su | --program-s)
1035     ac_prev=program_suffix ;;
1036   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038     program_suffix=$ac_optarg ;;
1039
1040   -program-transform-name | --program-transform-name \
1041   | --program-transform-nam | --program-transform-na \
1042   | --program-transform-n | --program-transform- \
1043   | --program-transform | --program-transfor \
1044   | --program-transfo | --program-transf \
1045   | --program-trans | --program-tran \
1046   | --progr-tra | --program-tr | --program-t)
1047     ac_prev=program_transform_name ;;
1048   -program-transform-name=* | --program-transform-name=* \
1049   | --program-transform-nam=* | --program-transform-na=* \
1050   | --program-transform-n=* | --program-transform-=* \
1051   | --program-transform=* | --program-transfor=* \
1052   | --program-transfo=* | --program-transf=* \
1053   | --program-trans=* | --program-tran=* \
1054   | --progr-tra=* | --program-tr=* | --program-t=*)
1055     program_transform_name=$ac_optarg ;;
1056
1057   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058     ac_prev=pdfdir ;;
1059   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060     pdfdir=$ac_optarg ;;
1061
1062   -psdir | --psdir | --psdi | --psd | --ps)
1063     ac_prev=psdir ;;
1064   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065     psdir=$ac_optarg ;;
1066
1067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068   | -silent | --silent | --silen | --sile | --sil)
1069     silent=yes ;;
1070
1071   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072     ac_prev=sbindir ;;
1073   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074   | --sbi=* | --sb=*)
1075     sbindir=$ac_optarg ;;
1076
1077   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079   | --sharedst | --shareds | --shared | --share | --shar \
1080   | --sha | --sh)
1081     ac_prev=sharedstatedir ;;
1082   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085   | --sha=* | --sh=*)
1086     sharedstatedir=$ac_optarg ;;
1087
1088   -site | --site | --sit)
1089     ac_prev=site ;;
1090   -site=* | --site=* | --sit=*)
1091     site=$ac_optarg ;;
1092
1093   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094     ac_prev=srcdir ;;
1095   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096     srcdir=$ac_optarg ;;
1097
1098   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099   | --syscon | --sysco | --sysc | --sys | --sy)
1100     ac_prev=sysconfdir ;;
1101   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103     sysconfdir=$ac_optarg ;;
1104
1105   -target | --target | --targe | --targ | --tar | --ta | --t)
1106     ac_prev=target_alias ;;
1107   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108     target_alias=$ac_optarg ;;
1109
1110   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111     verbose=yes ;;
1112
1113   -version | --version | --versio | --versi | --vers | -V)
1114     ac_init_version=: ;;
1115
1116   -with-* | --with-*)
1117     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120       { echo "$as_me: error: invalid package name: $ac_package" >&2
1121    { (exit 1); exit 1; }; }
1122     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1123     eval with_$ac_package=\$ac_optarg ;;
1124
1125   -without-* | --without-*)
1126     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127     # Reject names that are not valid shell variable names.
1128     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129       { echo "$as_me: error: invalid package name: $ac_package" >&2
1130    { (exit 1); exit 1; }; }
1131     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1132     eval with_$ac_package=no ;;
1133
1134   --x)
1135     # Obsolete; use --with-x.
1136     with_x=yes ;;
1137
1138   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139   | --x-incl | --x-inc | --x-in | --x-i)
1140     ac_prev=x_includes ;;
1141   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143     x_includes=$ac_optarg ;;
1144
1145   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147     ac_prev=x_libraries ;;
1148   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150     x_libraries=$ac_optarg ;;
1151
1152   -*) { echo "$as_me: error: unrecognized option: $ac_option
1153 Try \`$0 --help' for more information." >&2
1154    { (exit 1); exit 1; }; }
1155     ;;
1156
1157   *=*)
1158     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1161       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1162    { (exit 1); exit 1; }; }
1163     eval $ac_envvar=\$ac_optarg
1164     export $ac_envvar ;;
1165
1166   *)
1167     # FIXME: should be removed in autoconf 3.0.
1168     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172     ;;
1173
1174   esac
1175 done
1176
1177 if test -n "$ac_prev"; then
1178   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179   { echo "$as_me: error: missing argument to $ac_option" >&2
1180    { (exit 1); exit 1; }; }
1181 fi
1182
1183 # Be sure to have absolute directory names.
1184 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185                 datadir sysconfdir sharedstatedir localstatedir includedir \
1186                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187                 libdir localedir mandir
1188 do
1189   eval ac_val=\$$ac_var
1190   case $ac_val in
1191     [\\/$]* | ?:[\\/]* )  continue;;
1192     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193   esac
1194   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1195    { (exit 1); exit 1; }; }
1196 done
1197
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1201 build=$build_alias
1202 host=$host_alias
1203 target=$target_alias
1204
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207   if test "x$build_alias" = x; then
1208     cross_compiling=maybe
1209     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1210     If a cross compiler is detected then cross compile mode will be used." >&2
1211   elif test "x$build_alias" != "x$host_alias"; then
1212     cross_compiling=yes
1213   fi
1214 fi
1215
1216 ac_tool_prefix=
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218
1219 test "$silent" = yes && exec 6>/dev/null
1220
1221
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225   { echo "$as_me: error: Working directory cannot be determined" >&2
1226    { (exit 1); exit 1; }; }
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228   { echo "$as_me: error: pwd does not report name of working directory" >&2
1229    { (exit 1); exit 1; }; }
1230
1231
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234   ac_srcdir_defaulted=yes
1235   # Try the directory containing this script, then the parent directory.
1236   ac_confdir=`$as_dirname -- "$0" ||
1237 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238          X"$0" : 'X\(//\)[^/]' \| \
1239          X"$0" : 'X\(//\)$' \| \
1240          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1241 echo X"$0" |
1242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)[^/].*/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)$/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\).*/{
1255             s//\1/
1256             q
1257           }
1258           s/.*/./; q'`
1259   srcdir=$ac_confdir
1260   if test ! -r "$srcdir/$ac_unique_file"; then
1261     srcdir=..
1262   fi
1263 else
1264   ac_srcdir_defaulted=no
1265 fi
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1269    { (exit 1); exit 1; }; }
1270 fi
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1274    { (exit 1); exit 1; }; }
1275         pwd)`
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278   srcdir=.
1279 fi
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1283 case $srcdir in
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285 esac
1286 for ac_var in $ac_precious_vars; do
1287   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288   eval ac_env_${ac_var}_value=\$${ac_var}
1289   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 done
1292
1293 #
1294 # Report the --help message.
1295 #
1296 if test "$ac_init_help" = "long"; then
1297   # Omit some internal or obsolete options to make the list less imposing.
1298   # This message is too long to be a string in the A/UX 3.1 sh.
1299   cat <<_ACEOF
1300 \`configure' configures Wine 1.1.0 to adapt to many kinds of systems.
1301
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE.  See below for descriptions of some of the useful variables.
1306
1307 Defaults for the options are specified in brackets.
1308
1309 Configuration:
1310   -h, --help              display this help and exit
1311       --help=short        display options specific to this package
1312       --help=recursive    display the short help of all the included packages
1313   -V, --version           display version information and exit
1314   -q, --quiet, --silent   do not print \`checking...' messages
1315       --cache-file=FILE   cache test results in FILE [disabled]
1316   -C, --config-cache      alias for \`--cache-file=config.cache'
1317   -n, --no-create         do not create output files
1318       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1319
1320 Installation directories:
1321   --prefix=PREFIX         install architecture-independent files in PREFIX
1322                           [$ac_default_prefix]
1323   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1324                           [PREFIX]
1325
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1330
1331 For better control, use the options below.
1332
1333 Fine tuning of the installation directories:
1334   --bindir=DIR           user executables [EPREFIX/bin]
1335   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1336   --libexecdir=DIR       program executables [EPREFIX/libexec]
1337   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1338   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1339   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1340   --libdir=DIR           object code libraries [EPREFIX/lib]
1341   --includedir=DIR       C header files [PREFIX/include]
1342   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1343   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1344   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1345   --infodir=DIR          info documentation [DATAROOTDIR/info]
1346   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1347   --mandir=DIR           man documentation [DATAROOTDIR/man]
1348   --docdir=DIR           documentation root [DATAROOTDIR/doc/wine]
1349   --htmldir=DIR          html documentation [DOCDIR]
1350   --dvidir=DIR           dvi documentation [DOCDIR]
1351   --pdfdir=DIR           pdf documentation [DOCDIR]
1352   --psdir=DIR            ps documentation [DOCDIR]
1353 _ACEOF
1354
1355   cat <<\_ACEOF
1356
1357 X features:
1358   --x-includes=DIR    X include files are in DIR
1359   --x-libraries=DIR   X library files are in DIR
1360
1361 System types:
1362   --build=BUILD     configure for building on BUILD [guessed]
1363   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364 _ACEOF
1365 fi
1366
1367 if test -n "$ac_init_help"; then
1368   case $ac_init_help in
1369      short | recursive ) echo "Configuration of Wine 1.1.0:";;
1370    esac
1371   cat <<\_ACEOF
1372
1373 Optional Features:
1374   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376   --disable-win16         do not include Win16 support
1377   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1378                           binaries)
1379   --enable-maintainer-mode
1380                           enable maintainer-specific build rules
1381
1382 Optional Packages:
1383   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1384   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1385   --without-alsa          do not use the Alsa sound support
1386   --without-audioio       do not use the AudioIO sound support
1387   --without-capi          do not use CAPI (ISDN support)
1388   --without-cms           do not use CMS (color management support)
1389   --without-coreaudio     do not use the CoreAudio sound support
1390   --without-cups          do not use CUPS
1391   --without-curses        do not use (n)curses
1392   --without-esd           do not use the EsounD sound support
1393   --without-fontconfig    do not use fontconfig
1394   --without-freetype      do not use the FreeType library
1395   --without-gphoto        do not use gphoto (Digital Camera support)
1396   --without-glu           do not use the GLU library
1397   --without-hal           do not use HAL (dynamic device support)
1398   --without-jack          do not use the Jack sound support
1399   --without-jpeg          do not use JPEG
1400   --without-ldap          do not use LDAP
1401   --without-nas           do not use the NAS sound support
1402   --without-opengl        do not use OpenGL
1403   --without-openssl       do not use OpenSSL
1404   --without-oss           do not use the OSS sound support
1405   --without-png           do not use PNG
1406   --without-sane          do not use SANE (scanner support)
1407   --without-xcomposite    do not use the Xcomposite extension
1408   --without-xcursor       do not use the Xcursor extension
1409   --without-xinerama      do not use Xinerama (multi-monitor support)
1410   --without-xinput        do not use the Xinput extension
1411   --without-xml           do not use XML
1412   --without-xrandr        do not use Xrandr (resolution changes)
1413   --without-xrender       do not use the Xrender extension
1414   --without-xshape        do not use the Xshape extension
1415   --without-xshm          do not use XShm (shared memory extension)
1416   --without-xslt          do not use XSLT
1417   --without-xxf86vm       do not use XFree video mode extension
1418   --with-wine-tools=DIR   use Wine tools from directory DIR
1419   --with-x                use the X Window System
1420
1421 Some influential environment variables:
1422   CC          C compiler command
1423   CFLAGS      C compiler flags
1424   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1425               nonstandard directory <lib dir>
1426   LIBS        libraries to pass to the linker, e.g. -l<library>
1427   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1428               you have headers in a nonstandard directory <include dir>
1429   CXX         C++ compiler command
1430   CXXFLAGS    C++ compiler flags
1431   XMKMF       Path to xmkmf, Makefile generator for X Window System
1432   CPP         C preprocessor
1433
1434 Use these variables to override the choices made by `configure' or to help
1435 it to find libraries and programs with nonstandard names/locations.
1436
1437 Report bugs to <wine-devel@winehq.org>.
1438 _ACEOF
1439 ac_status=$?
1440 fi
1441
1442 if test "$ac_init_help" = "recursive"; then
1443   # If there are subdirs, report their specific --help.
1444   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445     test -d "$ac_dir" || continue
1446     ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1452   # A ".." for each directory in $ac_dir_suffix.
1453   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1454   case $ac_top_builddir_sub in
1455   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457   esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465   .)  # We are building in place.
1466     ac_srcdir=.
1467     ac_top_srcdir=$ac_top_builddir_sub
1468     ac_abs_top_srcdir=$ac_pwd ;;
1469   [\\/]* | ?:[\\/]* )  # Absolute name.
1470     ac_srcdir=$srcdir$ac_dir_suffix;
1471     ac_top_srcdir=$srcdir
1472     ac_abs_top_srcdir=$srcdir ;;
1473   *) # Relative name.
1474     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475     ac_top_srcdir=$ac_top_build_prefix$srcdir
1476     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480     cd "$ac_dir" || { ac_status=$?; continue; }
1481     # Check for guested configure.
1482     if test -f "$ac_srcdir/configure.gnu"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485     elif test -f "$ac_srcdir/configure"; then
1486       echo &&
1487       $SHELL "$ac_srcdir/configure" --help=recursive
1488     else
1489       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490     fi || ac_status=$?
1491     cd "$ac_pwd" || { ac_status=$?; break; }
1492   done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497   cat <<\_ACEOF
1498 Wine configure 1.1.0
1499 generated by GNU Autoconf 2.61
1500
1501 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1502 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1505 _ACEOF
1506   exit
1507 fi
1508 cat >config.log <<_ACEOF
1509 This file contains any messages produced by compilers while
1510 running configure, to aid debugging if configure makes a mistake.
1511
1512 It was created by Wine $as_me 1.1.0, which was
1513 generated by GNU Autoconf 2.61.  Invocation command line was
1514
1515   $ $0 $@
1516
1517 _ACEOF
1518 exec 5>>config.log
1519 {
1520 cat <<_ASUNAME
1521 ## --------- ##
1522 ## Platform. ##
1523 ## --------- ##
1524
1525 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1526 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1527 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1528 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1529 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1530
1531 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1532 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1533
1534 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1535 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1536 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1537 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1538 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1539 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1540 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1541
1542 _ASUNAME
1543
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 for as_dir in $PATH
1546 do
1547   IFS=$as_save_IFS
1548   test -z "$as_dir" && as_dir=.
1549   echo "PATH: $as_dir"
1550 done
1551 IFS=$as_save_IFS
1552
1553 } >&5
1554
1555 cat >&5 <<_ACEOF
1556
1557
1558 ## ----------- ##
1559 ## Core tests. ##
1560 ## ----------- ##
1561
1562 _ACEOF
1563
1564
1565 # Keep a trace of the command line.
1566 # Strip out --no-create and --no-recursion so they do not pile up.
1567 # Strip out --silent because we don't want to record it for future runs.
1568 # Also quote any args containing shell meta-characters.
1569 # Make two passes to allow for proper duplicate-argument suppression.
1570 ac_configure_args=
1571 ac_configure_args0=
1572 ac_configure_args1=
1573 ac_must_keep_next=false
1574 for ac_pass in 1 2
1575 do
1576   for ac_arg
1577   do
1578     case $ac_arg in
1579     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1580     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1581     | -silent | --silent | --silen | --sile | --sil)
1582       continue ;;
1583     *\'*)
1584       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1585     esac
1586     case $ac_pass in
1587     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1588     2)
1589       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1590       if test $ac_must_keep_next = true; then
1591         ac_must_keep_next=false # Got value, back to normal.
1592       else
1593         case $ac_arg in
1594           *=* | --config-cache | -C | -disable-* | --disable-* \
1595           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1596           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1597           | -with-* | --with-* | -without-* | --without-* | --x)
1598             case "$ac_configure_args0 " in
1599               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1600             esac
1601             ;;
1602           -* ) ac_must_keep_next=true ;;
1603         esac
1604       fi
1605       ac_configure_args="$ac_configure_args '$ac_arg'"
1606       ;;
1607     esac
1608   done
1609 done
1610 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1611 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1612
1613 # When interrupted or exit'd, cleanup temporary files, and complete
1614 # config.log.  We remove comments because anyway the quotes in there
1615 # would cause problems or look ugly.
1616 # WARNING: Use '\'' to represent an apostrophe within the trap.
1617 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1618 trap 'exit_status=$?
1619   # Save into config.log some information that might help in debugging.
1620   {
1621     echo
1622
1623     cat <<\_ASBOX
1624 ## ---------------- ##
1625 ## Cache variables. ##
1626 ## ---------------- ##
1627 _ASBOX
1628     echo
1629     # The following way of writing the cache mishandles newlines in values,
1630 (
1631   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1632     eval ac_val=\$$ac_var
1633     case $ac_val in #(
1634     *${as_nl}*)
1635       case $ac_var in #(
1636       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1637 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1638       esac
1639       case $ac_var in #(
1640       _ | IFS | as_nl) ;; #(
1641       *) $as_unset $ac_var ;;
1642       esac ;;
1643     esac
1644   done
1645   (set) 2>&1 |
1646     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1647     *${as_nl}ac_space=\ *)
1648       sed -n \
1649         "s/'\''/'\''\\\\'\'''\''/g;
1650           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1651       ;; #(
1652     *)
1653       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1654       ;;
1655     esac |
1656     sort
1657 )
1658     echo
1659
1660     cat <<\_ASBOX
1661 ## ----------------- ##
1662 ## Output variables. ##
1663 ## ----------------- ##
1664 _ASBOX
1665     echo
1666     for ac_var in $ac_subst_vars
1667     do
1668       eval ac_val=\$$ac_var
1669       case $ac_val in
1670       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671       esac
1672       echo "$ac_var='\''$ac_val'\''"
1673     done | sort
1674     echo
1675
1676     if test -n "$ac_subst_files"; then
1677       cat <<\_ASBOX
1678 ## ------------------- ##
1679 ## File substitutions. ##
1680 ## ------------------- ##
1681 _ASBOX
1682       echo
1683       for ac_var in $ac_subst_files
1684       do
1685         eval ac_val=\$$ac_var
1686         case $ac_val in
1687         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688         esac
1689         echo "$ac_var='\''$ac_val'\''"
1690       done | sort
1691       echo
1692     fi
1693
1694     if test -s confdefs.h; then
1695       cat <<\_ASBOX
1696 ## ----------- ##
1697 ## confdefs.h. ##
1698 ## ----------- ##
1699 _ASBOX
1700       echo
1701       cat confdefs.h
1702       echo
1703     fi
1704     test "$ac_signal" != 0 &&
1705       echo "$as_me: caught signal $ac_signal"
1706     echo "$as_me: exit $exit_status"
1707   } >&5
1708   rm -f core *.core core.conftest.* &&
1709     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1710     exit $exit_status
1711 ' 0
1712 for ac_signal in 1 2 13 15; do
1713   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1714 done
1715 ac_signal=0
1716
1717 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1718 rm -f -r conftest* confdefs.h
1719
1720 # Predefined preprocessor variables.
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_NAME "$PACKAGE_NAME"
1724 _ACEOF
1725
1726
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1729 _ACEOF
1730
1731
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1734 _ACEOF
1735
1736
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_STRING "$PACKAGE_STRING"
1739 _ACEOF
1740
1741
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1744 _ACEOF
1745
1746
1747 # Let the site file select an alternate cache file if it wants to.
1748 # Prefer explicitly selected file to automatically selected ones.
1749 if test -n "$CONFIG_SITE"; then
1750   set x "$CONFIG_SITE"
1751 elif test "x$prefix" != xNONE; then
1752   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1753 else
1754   set x "$ac_default_prefix/share/config.site" \
1755         "$ac_default_prefix/etc/config.site"
1756 fi
1757 shift
1758 for ac_site_file
1759 do
1760   if test -r "$ac_site_file"; then
1761     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1762 echo "$as_me: loading site script $ac_site_file" >&6;}
1763     sed 's/^/| /' "$ac_site_file" >&5
1764     . "$ac_site_file"
1765   fi
1766 done
1767
1768 if test -r "$cache_file"; then
1769   # Some versions of bash will fail to source /dev/null (special
1770   # files actually), so we avoid doing that.
1771   if test -f "$cache_file"; then
1772     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1773 echo "$as_me: loading cache $cache_file" >&6;}
1774     case $cache_file in
1775       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1776       *)                      . "./$cache_file";;
1777     esac
1778   fi
1779 else
1780   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1781 echo "$as_me: creating cache $cache_file" >&6;}
1782   >$cache_file
1783 fi
1784
1785 # Check that the precious variables saved in the cache have kept the same
1786 # value.
1787 ac_cache_corrupted=false
1788 for ac_var in $ac_precious_vars; do
1789   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1790   eval ac_new_set=\$ac_env_${ac_var}_set
1791   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1792   eval ac_new_val=\$ac_env_${ac_var}_value
1793   case $ac_old_set,$ac_new_set in
1794     set,)
1795       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1796 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1797       ac_cache_corrupted=: ;;
1798     ,set)
1799       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1800 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1801       ac_cache_corrupted=: ;;
1802     ,);;
1803     *)
1804       if test "x$ac_old_val" != "x$ac_new_val"; then
1805         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1806 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1807         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1808 echo "$as_me:   former value:  $ac_old_val" >&2;}
1809         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1810 echo "$as_me:   current value: $ac_new_val" >&2;}
1811         ac_cache_corrupted=:
1812       fi;;
1813   esac
1814   # Pass precious variables to config.status.
1815   if test "$ac_new_set" = set; then
1816     case $ac_new_val in
1817     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1818     *) ac_arg=$ac_var=$ac_new_val ;;
1819     esac
1820     case " $ac_configure_args " in
1821       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1822       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1823     esac
1824   fi
1825 done
1826 if $ac_cache_corrupted; then
1827   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1828 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1829   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1830 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1831    { (exit 1); exit 1; }; }
1832 fi
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858 ac_ext=c
1859 ac_cpp='$CPP $CPPFLAGS'
1860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1863
1864
1865
1866 ac_config_headers="$ac_config_headers include/config.h"
1867
1868 ac_aux_dir=
1869 for ac_dir in tools "$srcdir"/tools; do
1870   if test -f "$ac_dir/install-sh"; then
1871     ac_aux_dir=$ac_dir
1872     ac_install_sh="$ac_aux_dir/install-sh -c"
1873     break
1874   elif test -f "$ac_dir/install.sh"; then
1875     ac_aux_dir=$ac_dir
1876     ac_install_sh="$ac_aux_dir/install.sh -c"
1877     break
1878   elif test -f "$ac_dir/shtool"; then
1879     ac_aux_dir=$ac_dir
1880     ac_install_sh="$ac_aux_dir/shtool install -c"
1881     break
1882   fi
1883 done
1884 if test -z "$ac_aux_dir"; then
1885   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1886 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1887    { (exit 1); exit 1; }; }
1888 fi
1889
1890 # These three variables are undocumented and unsupported,
1891 # and are intended to be withdrawn in a future Autoconf release.
1892 # They can cause serious problems if a builder's source tree is in a directory
1893 # whose full name contains unusual characters.
1894 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1895 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1896 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1897
1898
1899
1900
1901 # Check whether --enable-win16 was given.
1902 if test "${enable_win16+set}" = set; then
1903   enableval=$enable_win16;
1904 fi
1905
1906 # Check whether --enable-win64 was given.
1907 if test "${enable_win64+set}" = set; then
1908   enableval=$enable_win64;
1909 fi
1910
1911 # Check whether --enable-maintainer-mode was given.
1912 if test "${enable_maintainer_mode+set}" = set; then
1913   enableval=$enable_maintainer_mode;
1914 else
1915   MAINTAINER_MODE=\#
1916
1917 fi
1918
1919
1920
1921 # Check whether --with-alsa was given.
1922 if test "${with_alsa+set}" = set; then
1923   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
1924 fi
1925
1926
1927 # Check whether --with-audioio was given.
1928 if test "${with_audioio+set}" = set; then
1929   withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
1930 fi
1931
1932
1933 # Check whether --with-capi was given.
1934 if test "${with_capi+set}" = set; then
1935   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
1936 fi
1937
1938
1939 # Check whether --with-cms was given.
1940 if test "${with_cms+set}" = set; then
1941   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
1942 fi
1943
1944
1945 # Check whether --with-coreaudio was given.
1946 if test "${with_coreaudio+set}" = set; then
1947   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
1948 fi
1949
1950
1951 # Check whether --with-cups was given.
1952 if test "${with_cups+set}" = set; then
1953   withval=$with_cups; if test "x$withval" = "xno"; then ac_cv_header_cups_cups_h=no; fi
1954 fi
1955
1956
1957 # Check whether --with-curses was given.
1958 if test "${with_curses+set}" = set; then
1959   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
1960 fi
1961
1962
1963 # Check whether --with-esd was given.
1964 if test "${with_esd+set}" = set; then
1965   withval=$with_esd;
1966 fi
1967
1968
1969 # Check whether --with-fontconfig was given.
1970 if test "${with_fontconfig+set}" = set; then
1971   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
1972 fi
1973
1974
1975 # Check whether --with-freetype was given.
1976 if test "${with_freetype+set}" = set; then
1977   withval=$with_freetype;
1978 fi
1979
1980
1981 # Check whether --with-gphoto was given.
1982 if test "${with_gphoto+set}" = set; then
1983   withval=$with_gphoto;
1984 fi
1985
1986
1987 # Check whether --with-glu was given.
1988 if test "${with_glu+set}" = set; then
1989   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
1990 fi
1991
1992
1993 # Check whether --with-hal was given.
1994 if test "${with_hal+set}" = set; then
1995   withval=$with_hal;
1996 fi
1997
1998
1999 # Check whether --with-jack was given.
2000 if test "${with_jack+set}" = set; then
2001   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2002 fi
2003
2004
2005 # Check whether --with-jpeg was given.
2006 if test "${with_jpeg+set}" = set; then
2007   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2008 fi
2009
2010
2011 # Check whether --with-ldap was given.
2012 if test "${with_ldap+set}" = set; then
2013   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2014 fi
2015
2016
2017 # Check whether --with-nas was given.
2018 if test "${with_nas+set}" = set; then
2019   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2020 fi
2021
2022
2023 # Check whether --with-opengl was given.
2024 if test "${with_opengl+set}" = set; then
2025   withval=$with_opengl;
2026 fi
2027
2028
2029 # Check whether --with-openssl was given.
2030 if test "${with_openssl+set}" = set; then
2031   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2032 fi
2033
2034
2035 # Check whether --with-oss was given.
2036 if test "${with_oss+set}" = set; then
2037   withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2038 fi
2039
2040
2041 # Check whether --with-png was given.
2042 if test "${with_png+set}" = set; then
2043   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2044 fi
2045
2046
2047 # Check whether --with-sane was given.
2048 if test "${with_sane+set}" = set; then
2049   withval=$with_sane;
2050 fi
2051
2052
2053 # Check whether --with-xcomposite was given.
2054 if test "${with_xcomposite+set}" = set; then
2055   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2056 fi
2057
2058
2059 # Check whether --with-xcursor was given.
2060 if test "${with_xcursor+set}" = set; then
2061   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2062 fi
2063
2064
2065 # Check whether --with-xinerama was given.
2066 if test "${with_xinerama+set}" = set; then
2067   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2068 fi
2069
2070
2071 # Check whether --with-xinput was given.
2072 if test "${with_xinput+set}" = set; then
2073   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2074 fi
2075
2076
2077 # Check whether --with-xml was given.
2078 if test "${with_xml+set}" = set; then
2079   withval=$with_xml;
2080 fi
2081
2082
2083 # Check whether --with-xrandr was given.
2084 if test "${with_xrandr+set}" = set; then
2085   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2086 fi
2087
2088
2089 # Check whether --with-xrender was given.
2090 if test "${with_xrender+set}" = set; then
2091   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2092 fi
2093
2094
2095 # Check whether --with-xshape was given.
2096 if test "${with_xshape+set}" = set; then
2097   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2098 fi
2099
2100
2101 # Check whether --with-xshm was given.
2102 if test "${with_xshm+set}" = set; then
2103   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2104 fi
2105
2106
2107 # Check whether --with-xslt was given.
2108 if test "${with_xslt+set}" = set; then
2109   withval=$with_xslt;
2110 fi
2111
2112
2113 # Check whether --with-xxf86vm was given.
2114 if test "${with_xxf86vm+set}" = set; then
2115   withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; fi
2116 fi
2117
2118
2119
2120 # Check whether --with-wine-tools was given.
2121 if test "${with_wine_tools+set}" = set; then
2122   withval=$with_wine_tools;
2123 fi
2124
2125
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2130    { (exit 1); exit 1; }; }
2131
2132 { echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_build+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   ac_build_alias=$build_alias
2138 test "x$ac_build_alias" = x &&
2139   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140 test "x$ac_build_alias" = x &&
2141   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143    { (exit 1); exit 1; }; }
2144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 fi
2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6; }
2152 case $ac_cv_build in
2153 *-*-*) ;;
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155 echo "$as_me: error: invalid value of canonical build" >&2;}
2156    { (exit 1); exit 1; }; };;
2157 esac
2158 build=$ac_cv_build
2159 ac_save_IFS=$IFS; IFS='-'
2160 set x $ac_cv_build
2161 shift
2162 build_cpu=$1
2163 build_vendor=$2
2164 shift; shift
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2167 build_os=$*
2168 IFS=$ac_save_IFS
2169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2170
2171
2172 { echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_host+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   if test "x$host_alias" = x; then
2178   ac_cv_host=$ac_cv_build
2179 else
2180   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2183    { (exit 1); exit 1; }; }
2184 fi
2185
2186 fi
2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188 echo "${ECHO_T}$ac_cv_host" >&6; }
2189 case $ac_cv_host in
2190 *-*-*) ;;
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192 echo "$as_me: error: invalid value of canonical host" >&2;}
2193    { (exit 1); exit 1; }; };;
2194 esac
2195 host=$ac_cv_host
2196 ac_save_IFS=$IFS; IFS='-'
2197 set x $ac_cv_host
2198 shift
2199 host_cpu=$1
2200 host_vendor=$2
2201 shift; shift
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2204 host_os=$*
2205 IFS=$ac_save_IFS
2206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2207
2208
2209 case $host in
2210   x86_64*linux*)
2211     if test "x$enable_win64" != "xyes"
2212     then
2213       test -n "$CC" || CC="gcc -m32"
2214       test -n "$CXX"|| CXX="g++ -m32"
2215       test -n "$LD" || LD="ld -m elf_i386"
2216       test -n "$AS" || AS="as --32"
2217       host_cpu="i386"
2218     fi
2219     ;;
2220 esac
2221
2222 case $host_cpu in
2223   *i[3456789]86*)
2224     if test "x$enable_win16" != "xno"
2225     then
2226       enable_win16="yes"
2227     fi
2228     ;;
2229 esac
2230
2231 WIN16_FILES="\$(WIN16_FILES)"
2232
2233 WIN16_INSTALL="\$(WIN16_INSTALL)"
2234
2235 if test "x$enable_win16" != "xyes"
2236 then
2237   WIN16_FILES=""
2238   WIN16_INSTALL=""
2239 fi
2240
2241 case "$srcdir" in
2242  .) ;;
2243  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2244       { { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2245 You need to run 'make distclean' in the source tree first." >&5
2246 echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2247 You need to run 'make distclean' in the source tree first." >&2;}
2248    { (exit 1); exit 1; }; }
2249     fi ;;
2250 esac
2251
2252
2253 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2254 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2255 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2256 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   cat >conftest.make <<\_ACEOF
2260 SHELL = /bin/sh
2261 all:
2262         @echo '@@@%%%=$(MAKE)=@@@%%%'
2263 _ACEOF
2264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2265 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2266   *@@@%%%=?*=@@@%%%*)
2267     eval ac_cv_prog_make_${ac_make}_set=yes;;
2268   *)
2269     eval ac_cv_prog_make_${ac_make}_set=no;;
2270 esac
2271 rm -f conftest.make
2272 fi
2273 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2274   { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276   SET_MAKE=
2277 else
2278   { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2280   SET_MAKE="MAKE=${MAKE-make}"
2281 fi
2282
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288 if test -n "$ac_tool_prefix"; then
2289   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2290 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293 if test "${ac_cv_prog_CC+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   if test -n "$CC"; then
2297   ac_cv_prog_CC="$CC" # Let the user override the test.
2298 else
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302   IFS=$as_save_IFS
2303   test -z "$as_dir" && as_dir=.
2304   for ac_exec_ext in '' $ac_executable_extensions; do
2305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2306     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308     break 2
2309   fi
2310 done
2311 done
2312 IFS=$as_save_IFS
2313
2314 fi
2315 fi
2316 CC=$ac_cv_prog_CC
2317 if test -n "$CC"; then
2318   { echo "$as_me:$LINENO: result: $CC" >&5
2319 echo "${ECHO_T}$CC" >&6; }
2320 else
2321   { echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6; }
2323 fi
2324
2325
2326 fi
2327 if test -z "$ac_cv_prog_CC"; then
2328   ac_ct_CC=$CC
2329   # Extract the first word of "gcc", so it can be a program name with args.
2330 set dummy gcc; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   if test -n "$ac_ct_CC"; then
2337   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344   for ac_exec_ext in '' $ac_executable_extensions; do
2345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346     ac_cv_prog_ac_ct_CC="gcc"
2347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348     break 2
2349   fi
2350 done
2351 done
2352 IFS=$as_save_IFS
2353
2354 fi
2355 fi
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6; }
2360 else
2361   { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2363 fi
2364
2365   if test "x$ac_ct_CC" = x; then
2366     CC=""
2367   else
2368     case $cross_compiling:$ac_tool_warned in
2369 yes:)
2370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2371 whose name does not start with the host triplet.  If you think this
2372 configuration is useful to you, please write to autoconf@gnu.org." >&5
2373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2374 whose name does not start with the host triplet.  If you think this
2375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2376 ac_tool_warned=yes ;;
2377 esac
2378     CC=$ac_ct_CC
2379   fi
2380 else
2381   CC="$ac_cv_prog_CC"
2382 fi
2383
2384 if test -z "$CC"; then
2385           if test -n "$ac_tool_prefix"; then
2386     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2387 set dummy ${ac_tool_prefix}cc; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_CC+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$CC"; then
2394   ac_cv_prog_CC="$CC" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403     ac_cv_prog_CC="${ac_tool_prefix}cc"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409 IFS=$as_save_IFS
2410
2411 fi
2412 fi
2413 CC=$ac_cv_prog_CC
2414 if test -n "$CC"; then
2415   { echo "$as_me:$LINENO: result: $CC" >&5
2416 echo "${ECHO_T}$CC" >&6; }
2417 else
2418   { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2420 fi
2421
2422
2423   fi
2424 fi
2425 if test -z "$CC"; then
2426   # Extract the first word of "cc", so it can be a program name with args.
2427 set dummy cc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$CC"; then
2434   ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436   ac_prog_rejected=no
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440   IFS=$as_save_IFS
2441   test -z "$as_dir" && as_dir=.
2442   for ac_exec_ext in '' $ac_executable_extensions; do
2443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2444     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2445        ac_prog_rejected=yes
2446        continue
2447      fi
2448     ac_cv_prog_CC="cc"
2449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450     break 2
2451   fi
2452 done
2453 done
2454 IFS=$as_save_IFS
2455
2456 if test $ac_prog_rejected = yes; then
2457   # We found a bogon in the path, so make sure we never use it.
2458   set dummy $ac_cv_prog_CC
2459   shift
2460   if test $# != 0; then
2461     # We chose a different compiler from the bogus one.
2462     # However, it has the same basename, so the bogon will be chosen
2463     # first if we set CC to just the basename; use the full file name.
2464     shift
2465     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2466   fi
2467 fi
2468 fi
2469 fi
2470 CC=$ac_cv_prog_CC
2471 if test -n "$CC"; then
2472   { echo "$as_me:$LINENO: result: $CC" >&5
2473 echo "${ECHO_T}$CC" >&6; }
2474 else
2475   { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2477 fi
2478
2479
2480 fi
2481 if test -z "$CC"; then
2482   if test -n "$ac_tool_prefix"; then
2483   for ac_prog in cl.exe
2484   do
2485     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_CC+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   if test -n "$CC"; then
2493   ac_cv_prog_CC="$CC" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498   IFS=$as_save_IFS
2499   test -z "$as_dir" && as_dir=.
2500   for ac_exec_ext in '' $ac_executable_extensions; do
2501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504     break 2
2505   fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 CC=$ac_cv_prog_CC
2513 if test -n "$CC"; then
2514   { echo "$as_me:$LINENO: result: $CC" >&5
2515 echo "${ECHO_T}$CC" >&6; }
2516 else
2517   { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2519 fi
2520
2521
2522     test -n "$CC" && break
2523   done
2524 fi
2525 if test -z "$CC"; then
2526   ac_ct_CC=$CC
2527   for ac_prog in cl.exe
2528 do
2529   # Extract the first word of "$ac_prog", so it can be a program name with args.
2530 set dummy $ac_prog; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536   if test -n "$ac_ct_CC"; then
2537   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542   IFS=$as_save_IFS
2543   test -z "$as_dir" && as_dir=.
2544   for ac_exec_ext in '' $ac_executable_extensions; do
2545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546     ac_cv_prog_ac_ct_CC="$ac_prog"
2547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548     break 2
2549   fi
2550 done
2551 done
2552 IFS=$as_save_IFS
2553
2554 fi
2555 fi
2556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2557 if test -n "$ac_ct_CC"; then
2558   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2559 echo "${ECHO_T}$ac_ct_CC" >&6; }
2560 else
2561   { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2563 fi
2564
2565
2566   test -n "$ac_ct_CC" && break
2567 done
2568
2569   if test "x$ac_ct_CC" = x; then
2570     CC=""
2571   else
2572     case $cross_compiling:$ac_tool_warned in
2573 yes:)
2574 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2575 whose name does not start with the host triplet.  If you think this
2576 configuration is useful to you, please write to autoconf@gnu.org." >&5
2577 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2578 whose name does not start with the host triplet.  If you think this
2579 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2580 ac_tool_warned=yes ;;
2581 esac
2582     CC=$ac_ct_CC
2583   fi
2584 fi
2585
2586 fi
2587
2588
2589 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2590 See \`config.log' for more details." >&5
2591 echo "$as_me: error: no acceptable C compiler found in \$PATH
2592 See \`config.log' for more details." >&2;}
2593    { (exit 1); exit 1; }; }
2594
2595 # Provide some information about the compiler.
2596 echo "$as_me:$LINENO: checking for C compiler version" >&5
2597 ac_compiler=`set X $ac_compile; echo $2`
2598 { (ac_try="$ac_compiler --version >&5"
2599 case "(($ac_try" in
2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601   *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604   (eval "$ac_compiler --version >&5") 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }
2608 { (ac_try="$ac_compiler -v >&5"
2609 case "(($ac_try" in
2610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611   *) ac_try_echo=$ac_try;;
2612 esac
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614   (eval "$ac_compiler -v >&5") 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }
2618 { (ac_try="$ac_compiler -V >&5"
2619 case "(($ac_try" in
2620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621   *) ac_try_echo=$ac_try;;
2622 esac
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624   (eval "$ac_compiler -V >&5") 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }
2628
2629 cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635
2636 int
2637 main ()
2638 {
2639
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 ac_clean_files_save=$ac_clean_files
2645 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2646 # Try to create an executable without -o first, disregard a.out.
2647 # It will help us diagnose broken compilers, and finding out an intuition
2648 # of exeext.
2649 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2650 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2651 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2652 #
2653 # List of possible output files, starting from the most likely.
2654 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2655 # only as a last resort.  b.out is created by i960 compilers.
2656 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2657 #
2658 # The IRIX 6 linker writes into existing files which may not be
2659 # executable, retaining their permissions.  Remove them first so a
2660 # subsequent execution test works.
2661 ac_rmfiles=
2662 for ac_file in $ac_files
2663 do
2664   case $ac_file in
2665     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2666     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2667   esac
2668 done
2669 rm -f $ac_rmfiles
2670
2671 if { (ac_try="$ac_link_default"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_link_default") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; then
2681   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2682 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2683 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2684 # so that the user can short-circuit this test for compilers unknown to
2685 # Autoconf.
2686 for ac_file in $ac_files ''
2687 do
2688   test -f "$ac_file" || continue
2689   case $ac_file in
2690     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2691         ;;
2692     [ab].out )
2693         # We found the default executable, but exeext='' is most
2694         # certainly right.
2695         break;;
2696     *.* )
2697         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2698         then :; else
2699            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2700         fi
2701         # We set ac_cv_exeext here because the later test for it is not
2702         # safe: cross compilers may not add the suffix if given an `-o'
2703         # argument, so we may need to know it at that point already.
2704         # Even if this section looks crufty: it has the advantage of
2705         # actually working.
2706         break;;
2707     * )
2708         break;;
2709   esac
2710 done
2711 test "$ac_cv_exeext" = no && ac_cv_exeext=
2712
2713 else
2714   ac_file=''
2715 fi
2716
2717 { echo "$as_me:$LINENO: result: $ac_file" >&5
2718 echo "${ECHO_T}$ac_file" >&6; }
2719 if test -z "$ac_file"; then
2720   echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2724 See \`config.log' for more details." >&5
2725 echo "$as_me: error: C compiler cannot create executables
2726 See \`config.log' for more details." >&2;}
2727    { (exit 77); exit 77; }; }
2728 fi
2729
2730 ac_exeext=$ac_cv_exeext
2731
2732 # Check that the compiler produces executables we can run.  If not, either
2733 # the compiler is broken, or we cross compile.
2734 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2735 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2736 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2737 # If not cross compiling, check that we can run a simple program.
2738 if test "$cross_compiling" != yes; then
2739   if { ac_try='./$ac_file'
2740   { (case "(($ac_try" in
2741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742   *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745   (eval "$ac_try") 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749     cross_compiling=no
2750   else
2751     if test "$cross_compiling" = maybe; then
2752         cross_compiling=yes
2753     else
2754         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2755 If you meant to cross compile, use \`--host'.
2756 See \`config.log' for more details." >&5
2757 echo "$as_me: error: cannot run C compiled programs.
2758 If you meant to cross compile, use \`--host'.
2759 See \`config.log' for more details." >&2;}
2760    { (exit 1); exit 1; }; }
2761     fi
2762   fi
2763 fi
2764 { echo "$as_me:$LINENO: result: yes" >&5
2765 echo "${ECHO_T}yes" >&6; }
2766
2767 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2768 ac_clean_files=$ac_clean_files_save
2769 # Check that the compiler produces executables we can run.  If not, either
2770 # the compiler is broken, or we cross compile.
2771 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2772 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2773 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2774 echo "${ECHO_T}$cross_compiling" >&6; }
2775
2776 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2777 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2778 if { (ac_try="$ac_link"
2779 case "(($ac_try" in
2780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781   *) ac_try_echo=$ac_try;;
2782 esac
2783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784   (eval "$ac_link") 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; then
2788   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2789 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2790 # work properly (i.e., refer to `conftest.exe'), while it won't with
2791 # `rm'.
2792 for ac_file in conftest.exe conftest conftest.*; do
2793   test -f "$ac_file" || continue
2794   case $ac_file in
2795     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2796     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797           break;;
2798     * ) break;;
2799   esac
2800 done
2801 else
2802   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2803 See \`config.log' for more details." >&5
2804 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2805 See \`config.log' for more details." >&2;}
2806    { (exit 1); exit 1; }; }
2807 fi
2808
2809 rm -f conftest$ac_cv_exeext
2810 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2811 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2812
2813 rm -f conftest.$ac_ext
2814 EXEEXT=$ac_cv_exeext
2815 ac_exeext=$EXEEXT
2816 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2817 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2818 if test "${ac_cv_objext+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h.  */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h.  */
2827
2828 int
2829 main ()
2830 {
2831
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 rm -f conftest.o conftest.obj
2837 if { (ac_try="$ac_compile"
2838 case "(($ac_try" in
2839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840   *) ac_try_echo=$ac_try;;
2841 esac
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843   (eval "$ac_compile") 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; then
2847   for ac_file in conftest.o conftest.obj conftest.*; do
2848   test -f "$ac_file" || continue;
2849   case $ac_file in
2850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2851     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2852        break;;
2853   esac
2854 done
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2862 See \`config.log' for more details." >&2;}
2863    { (exit 1); exit 1; }; }
2864 fi
2865
2866 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2867 fi
2868 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2869 echo "${ECHO_T}$ac_cv_objext" >&6; }
2870 OBJEXT=$ac_cv_objext
2871 ac_objext=$OBJEXT
2872 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2873 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2874 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2875   echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877   cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h.  */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h.  */
2883
2884 int
2885 main ()
2886 {
2887 #ifndef __GNUC__
2888        choke me
2889 #endif
2890
2891   ;
2892   return 0;
2893 }
2894 _ACEOF
2895 rm -f conftest.$ac_objext
2896 if { (ac_try="$ac_compile"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_compile") 2>conftest.er1
2903   ac_status=$?
2904   grep -v '^ *+' conftest.er1 >conftest.err
2905   rm -f conftest.er1
2906   cat conftest.err >&5
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); } && {
2909          test -z "$ac_c_werror_flag" ||
2910          test ! -s conftest.err
2911        } && test -s conftest.$ac_objext; then
2912   ac_compiler_gnu=yes
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917         ac_compiler_gnu=no
2918 fi
2919
2920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2922
2923 fi
2924 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2925 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2926 GCC=`test $ac_compiler_gnu = yes && echo yes`
2927 ac_test_CFLAGS=${CFLAGS+set}
2928 ac_save_CFLAGS=$CFLAGS
2929 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2930 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2931 if test "${ac_cv_prog_cc_g+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934   ac_save_c_werror_flag=$ac_c_werror_flag
2935    ac_c_werror_flag=yes
2936    ac_cv_prog_cc_g=no
2937    CFLAGS="-g"
2938    cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h.  */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h.  */
2944
2945 int
2946 main ()
2947 {
2948
2949   ;
2950   return 0;
2951 }
2952 _ACEOF
2953 rm -f conftest.$ac_objext
2954 if { (ac_try="$ac_compile"
2955 case "(($ac_try" in
2956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957   *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960   (eval "$ac_compile") 2>conftest.er1
2961   ac_status=$?
2962   grep -v '^ *+' conftest.er1 >conftest.err
2963   rm -f conftest.er1
2964   cat conftest.err >&5
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); } && {
2967          test -z "$ac_c_werror_flag" ||
2968          test ! -s conftest.err
2969        } && test -s conftest.$ac_objext; then
2970   ac_cv_prog_cc_g=yes
2971 else
2972   echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975         CFLAGS=""
2976       cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982
2983 int
2984 main ()
2985 {
2986
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.$ac_objext
2992 if { (ac_try="$ac_compile"
2993 case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998   (eval "$ac_compile") 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } && {
3005          test -z "$ac_c_werror_flag" ||
3006          test ! -s conftest.err
3007        } && test -s conftest.$ac_objext; then
3008   :
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013         ac_c_werror_flag=$ac_save_c_werror_flag
3014          CFLAGS="-g"
3015          cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021
3022 int
3023 main ()
3024 {
3025
3026   ;
3027   return 0;
3028 }
3029 _ACEOF
3030 rm -f conftest.$ac_objext
3031 if { (ac_try="$ac_compile"
3032 case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037   (eval "$ac_compile") 2>conftest.er1
3038   ac_status=$?
3039   grep -v '^ *+' conftest.er1 >conftest.err
3040   rm -f conftest.er1
3041   cat conftest.err >&5
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); } && {
3044          test -z "$ac_c_werror_flag" ||
3045          test ! -s conftest.err
3046        } && test -s conftest.$ac_objext; then
3047   ac_cv_prog_cc_g=yes
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052
3053 fi
3054
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 fi
3057
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059 fi
3060
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062    ac_c_werror_flag=$ac_save_c_werror_flag
3063 fi
3064 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3065 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3066 if test "$ac_test_CFLAGS" = set; then
3067   CFLAGS=$ac_save_CFLAGS
3068 elif test $ac_cv_prog_cc_g = yes; then
3069   if test "$GCC" = yes; then
3070     CFLAGS="-g -O2"
3071   else
3072     CFLAGS="-g"
3073   fi
3074 else
3075   if test "$GCC" = yes; then
3076     CFLAGS="-O2"
3077   else
3078     CFLAGS=
3079   fi
3080 fi
3081 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3082 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_cc_c89+set}" = set; then
3084   echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086   ac_cv_prog_cc_c89=no
3087 ac_save_CC=$CC
3088 cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094 #include <stdarg.h>
3095 #include <stdio.h>
3096 #include <sys/types.h>
3097 #include <sys/stat.h>
3098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3099 struct buf { int x; };
3100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3101 static char *e (p, i)
3102      char **p;
3103      int i;
3104 {
3105   return p[i];
3106 }
3107 static char *f (char * (*g) (char **, int), char **p, ...)
3108 {
3109   char *s;
3110   va_list v;
3111   va_start (v,p);
3112   s = g (p, va_arg (v,int));
3113   va_end (v);
3114   return s;
3115 }
3116
3117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3118    function prototypes and stuff, but not '\xHH' hex character constants.
3119    These don't provoke an error unfortunately, instead are silently treated
3120    as 'x'.  The following induces an error, until -std is added to get
3121    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3122    array size at least.  It's necessary to write '\x00'==0 to get something
3123    that's true only with -std.  */
3124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3125
3126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3127    inside strings and character constants.  */
3128 #define FOO(x) 'x'
3129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3130
3131 int test (int i, double x);
3132 struct s1 {int (*f) (int a);};
3133 struct s2 {int (*f) (double a);};
3134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3135 int argc;
3136 char **argv;
3137 int
3138 main ()
3139 {
3140 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3146         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3147 do
3148   CC="$ac_save_CC $ac_arg"
3149   rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_compile") 2>conftest.er1
3157   ac_status=$?
3158   grep -v '^ *+' conftest.er1 >conftest.err
3159   rm -f conftest.er1
3160   cat conftest.err >&5
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } && {
3163          test -z "$ac_c_werror_flag" ||
3164          test ! -s conftest.err
3165        } && test -s conftest.$ac_objext; then
3166   ac_cv_prog_cc_c89=$ac_arg
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext
3175   test "x$ac_cv_prog_cc_c89" != "xno" && break
3176 done
3177 rm -f conftest.$ac_ext
3178 CC=$ac_save_CC
3179
3180 fi
3181 # AC_CACHE_VAL
3182 case "x$ac_cv_prog_cc_c89" in
3183   x)
3184     { echo "$as_me:$LINENO: result: none needed" >&5
3185 echo "${ECHO_T}none needed" >&6; } ;;
3186   xno)
3187     { echo "$as_me:$LINENO: result: unsupported" >&5
3188 echo "${ECHO_T}unsupported" >&6; } ;;
3189   *)
3190     CC="$CC $ac_cv_prog_cc_c89"
3191     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3192 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3193 esac
3194
3195
3196 ac_ext=c
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201
3202 ac_ext=cpp
3203 ac_cpp='$CXXCPP $CPPFLAGS'
3204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3207 if test -z "$CXX"; then
3208   if test -n "$CCC"; then
3209     CXX=$CCC
3210   else
3211     if test -n "$ac_tool_prefix"; then
3212   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3213   do
3214     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3218 if test "${ac_cv_prog_CXX+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   if test -n "$CXX"; then
3222   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227   IFS=$as_save_IFS
3228   test -z "$as_dir" && as_dir=.
3229   for ac_exec_ext in '' $ac_executable_extensions; do
3230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233     break 2
3234   fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 fi
3240 fi
3241 CXX=$ac_cv_prog_CXX
3242 if test -n "$CXX"; then
3243   { echo "$as_me:$LINENO: result: $CXX" >&5
3244 echo "${ECHO_T}$CXX" >&6; }
3245 else
3246   { echo "$as_me:$LINENO: result: no" >&5
3247 echo "${ECHO_T}no" >&6; }
3248 fi
3249
3250
3251     test -n "$CXX" && break
3252   done
3253 fi
3254 if test -z "$CXX"; then
3255   ac_ct_CXX=$CXX
3256   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3257 do
3258   # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   if test -n "$ac_ct_CXX"; then
3266   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271   IFS=$as_save_IFS
3272   test -z "$as_dir" && as_dir=.
3273   for ac_exec_ext in '' $ac_executable_extensions; do
3274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275     ac_cv_prog_ac_ct_CXX="$ac_prog"
3276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277     break 2
3278   fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3286 if test -n "$ac_ct_CXX"; then
3287   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3288 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3289 else
3290   { echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6; }
3292 fi
3293
3294
3295   test -n "$ac_ct_CXX" && break
3296 done
3297
3298   if test "x$ac_ct_CXX" = x; then
3299     CXX="g++"
3300   else
3301     case $cross_compiling:$ac_tool_warned in
3302 yes:)
3303 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3304 whose name does not start with the host triplet.  If you think this
3305 configuration is useful to you, please write to autoconf@gnu.org." >&5
3306 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3307 whose name does not start with the host triplet.  If you think this
3308 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3309 ac_tool_warned=yes ;;
3310 esac
3311     CXX=$ac_ct_CXX
3312   fi
3313 fi
3314
3315   fi
3316 fi
3317 # Provide some information about the compiler.
3318 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3319 ac_compiler=`set X $ac_compile; echo $2`
3320 { (ac_try="$ac_compiler --version >&5"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326   (eval "$ac_compiler --version >&5") 2>&5
3327   ac_status=$?
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); }
3330 { (ac_try="$ac_compiler -v >&5"
3331 case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336   (eval "$ac_compiler -v >&5") 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }
3340 { (ac_try="$ac_compiler -V >&5"
3341 case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346   (eval "$ac_compiler -V >&5") 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }
3350
3351 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3352 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3353 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362
3363 int
3364 main ()
3365 {
3366 #ifndef __GNUC__
3367        choke me
3368 #endif
3369
3370   ;
3371   return 0;
3372 }
3373 _ACEOF
3374 rm -f conftest.$ac_objext
3375 if { (ac_try="$ac_compile"
3376 case "(($ac_try" in
3377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378   *) ac_try_echo=$ac_try;;
3379 esac
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381   (eval "$ac_compile") 2>conftest.er1
3382   ac_status=$?
3383   grep -v '^ *+' conftest.er1 >conftest.err
3384   rm -f conftest.er1
3385   cat conftest.err >&5
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); } && {
3388          test -z "$ac_cxx_werror_flag" ||
3389          test ! -s conftest.err
3390        } && test -s conftest.$ac_objext; then
3391   ac_compiler_gnu=yes
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396         ac_compiler_gnu=no
3397 fi
3398
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3401
3402 fi
3403 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3404 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3405 GXX=`test $ac_compiler_gnu = yes && echo yes`
3406 ac_test_CXXFLAGS=${CXXFLAGS+set}
3407 ac_save_CXXFLAGS=$CXXFLAGS
3408 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3409 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3410 if test "${ac_cv_prog_cxx_g+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3414    ac_cxx_werror_flag=yes
3415    ac_cv_prog_cxx_g=no
3416    CXXFLAGS="-g"
3417    cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423
3424 int
3425 main ()
3426 {
3427
3428   ;
3429   return 0;
3430 }
3431 _ACEOF
3432 rm -f conftest.$ac_objext
3433 if { (ac_try="$ac_compile"
3434 case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439   (eval "$ac_compile") 2>conftest.er1
3440   ac_status=$?
3441   grep -v '^ *+' conftest.er1 >conftest.err
3442   rm -f conftest.er1
3443   cat conftest.err >&5
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); } && {
3446          test -z "$ac_cxx_werror_flag" ||
3447          test ! -s conftest.err
3448        } && test -s conftest.$ac_objext; then
3449   ac_cv_prog_cxx_g=yes
3450 else
3451   echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3453
3454         CXXFLAGS=""
3455       cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h.  */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.$ac_objext
3471 if { (ac_try="$ac_compile"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_compile") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } && {
3484          test -z "$ac_cxx_werror_flag" ||
3485          test ! -s conftest.err
3486        } && test -s conftest.$ac_objext; then
3487   :
3488 else
3489   echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3493          CXXFLAGS="-g"
3494          cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h.  */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (ac_try="$ac_compile"
3511 case "(($ac_try" in
3512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513   *) ac_try_echo=$ac_try;;
3514 esac
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516   (eval "$ac_compile") 2>conftest.er1
3517   ac_status=$?
3518   grep -v '^ *+' conftest.er1 >conftest.err
3519   rm -f conftest.er1
3520   cat conftest.err >&5
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); } && {
3523          test -z "$ac_cxx_werror_flag" ||
3524          test ! -s conftest.err
3525        } && test -s conftest.$ac_objext; then
3526   ac_cv_prog_cxx_g=yes
3527 else
3528   echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531
3532 fi
3533
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 fi
3536
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 fi
3539
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3542 fi
3543 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3544 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3545 if test "$ac_test_CXXFLAGS" = set; then
3546   CXXFLAGS=$ac_save_CXXFLAGS
3547 elif test $ac_cv_prog_cxx_g = yes; then
3548   if test "$GXX" = yes; then
3549     CXXFLAGS="-g -O2"
3550   else
3551     CXXFLAGS="-g"
3552   fi
3553 else
3554   if test "$GXX" = yes; then
3555     CXXFLAGS="-O2"
3556   else
3557     CXXFLAGS=
3558   fi
3559 fi
3560 ac_ext=c
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566 if test -n "$ac_tool_prefix"; then
3567   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3568 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3571 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3572   echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574   if test -n "$CPPBIN"; then
3575   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580   IFS=$as_save_IFS
3581   test -z "$as_dir" && as_dir=.
3582   for ac_exec_ext in '' $ac_executable_extensions; do
3583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3586     break 2
3587   fi
3588 done
3589 done
3590 IFS=$as_save_IFS
3591
3592 fi
3593 fi
3594 CPPBIN=$ac_cv_prog_CPPBIN
3595 if test -n "$CPPBIN"; then
3596   { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3597 echo "${ECHO_T}$CPPBIN" >&6; }
3598 else
3599   { echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6; }
3601 fi
3602
3603
3604 fi
3605 if test -z "$ac_cv_prog_CPPBIN"; then
3606   ac_ct_CPPBIN=$CPPBIN
3607   # Extract the first word of "cpp", so it can be a program name with args.
3608 set dummy cpp; ac_word=$2
3609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3611 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3612   echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614   if test -n "$ac_ct_CPPBIN"; then
3615   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3616 else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620   IFS=$as_save_IFS
3621   test -z "$as_dir" && as_dir=.
3622   for ac_exec_ext in '' $ac_executable_extensions; do
3623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624     ac_cv_prog_ac_ct_CPPBIN="cpp"
3625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3626     break 2
3627   fi
3628 done
3629 done
3630 IFS=$as_save_IFS
3631
3632 fi
3633 fi
3634 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3635 if test -n "$ac_ct_CPPBIN"; then
3636   { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3637 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3638 else
3639   { echo "$as_me:$LINENO: result: no" >&5
3640 echo "${ECHO_T}no" >&6; }
3641 fi
3642
3643   if test "x$ac_ct_CPPBIN" = x; then
3644     CPPBIN="cpp"
3645   else
3646     case $cross_compiling:$ac_tool_warned in
3647 yes:)
3648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3649 whose name does not start with the host triplet.  If you think this
3650 configuration is useful to you, please write to autoconf@gnu.org." >&5
3651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3652 whose name does not start with the host triplet.  If you think this
3653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3654 ac_tool_warned=yes ;;
3655 esac
3656     CPPBIN=$ac_ct_CPPBIN
3657   fi
3658 else
3659   CPPBIN="$ac_cv_prog_CPPBIN"
3660 fi
3661
3662
3663 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3664 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3665 if test "${wine_cv_toolsdir+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   if test -z "$with_wine_tools"; then
3669      if test "$cross_compiling" = "yes"; then
3670        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3671 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3672    { (exit 1); exit 1; }; }
3673      else
3674        wine_cv_toolsdir="\$(TOPOBJDIR)"
3675      fi
3676    elif test -d "$with_wine_tools/tools/winebuild"; then
3677      case $with_wine_tools in
3678        /*) wine_cv_toolsdir="$with_wine_tools" ;;
3679        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3680      esac
3681    else
3682      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3683 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3684    { (exit 1); exit 1; }; }
3685    fi
3686 fi
3687 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3688 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3689 TOOLSDIR=$wine_cv_toolsdir
3690
3691
3692
3693 ac_ext=c
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3699 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3700 # On Suns, sometimes $CPP names a directory.
3701 if test -n "$CPP" && test -d "$CPP"; then
3702   CPP=
3703 fi
3704 if test -z "$CPP"; then
3705   if test "${ac_cv_prog_CPP+set}" = set; then
3706   echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708       # Double quotes because CPP needs to be expanded
3709     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3710     do
3711       ac_preproc_ok=false
3712 for ac_c_preproc_warn_flag in '' yes
3713 do
3714   # Use a header file that comes with gcc, so configuring glibc
3715   # with a fresh cross-compiler works.
3716   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3717   # <limits.h> exists even on freestanding compilers.
3718   # On the NeXT, cc -E runs the code through the compiler's parser,
3719   # not just through cpp. "Syntax error" is here to catch this case.
3720   cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h.  */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h.  */
3726 #ifdef __STDC__
3727 # include <limits.h>
3728 #else
3729 # include <assert.h>
3730 #endif
3731                      Syntax error
3732 _ACEOF
3733 if { (ac_try="$ac_cpp conftest.$ac_ext"
3734 case "(($ac_try" in
3735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736   *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3740   ac_status=$?
3741   grep -v '^ *+' conftest.er1 >conftest.err
3742   rm -f conftest.er1
3743   cat conftest.err >&5
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); } >/dev/null && {
3746          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3747          test ! -s conftest.err
3748        }; then
3749   :
3750 else
3751   echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754   # Broken: fails on valid input.
3755 continue
3756 fi
3757
3758 rm -f conftest.err conftest.$ac_ext
3759
3760   # OK, works on sane cases.  Now check whether nonexistent headers
3761   # can be detected and how.
3762   cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h.  */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h.  */
3768 #include <ac_nonexistent.h>
3769 _ACEOF
3770 if { (ac_try="$ac_cpp conftest.$ac_ext"
3771 case "(($ac_try" in
3772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773   *) ac_try_echo=$ac_try;;
3774 esac
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3777   ac_status=$?
3778   grep -v '^ *+' conftest.er1 >conftest.err
3779   rm -f conftest.er1
3780   cat conftest.err >&5
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } >/dev/null && {
3783          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3784          test ! -s conftest.err
3785        }; then
3786   # Broken: success on invalid input.
3787 continue
3788 else
3789   echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792   # Passes both tests.
3793 ac_preproc_ok=:
3794 break
3795 fi
3796
3797 rm -f conftest.err conftest.$ac_ext
3798
3799 done
3800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3801 rm -f conftest.err conftest.$ac_ext
3802 if $ac_preproc_ok; then
3803   break
3804 fi
3805
3806     done
3807     ac_cv_prog_CPP=$CPP
3808
3809 fi
3810   CPP=$ac_cv_prog_CPP
3811 else
3812   ac_cv_prog_CPP=$CPP
3813 fi
3814 { echo "$as_me:$LINENO: result: $CPP" >&5
3815 echo "${ECHO_T}$CPP" >&6; }
3816 ac_preproc_ok=false
3817 for ac_c_preproc_warn_flag in '' yes
3818 do
3819   # Use a header file that comes with gcc, so configuring glibc
3820   # with a fresh cross-compiler works.
3821   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3822   # <limits.h> exists even on freestanding compilers.
3823   # On the NeXT, cc -E runs the code through the compiler's parser,
3824   # not just through cpp. "Syntax error" is here to catch this case.
3825   cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h.  */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h.  */
3831 #ifdef __STDC__
3832 # include <limits.h>
3833 #else
3834 # include <assert.h>
3835 #endif
3836                      Syntax error
3837 _ACEOF
3838 if { (ac_try="$ac_cpp conftest.$ac_ext"
3839 case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3845   ac_status=$?
3846   grep -v '^ *+' conftest.er1 >conftest.err
3847   rm -f conftest.er1
3848   cat conftest.err >&5
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); } >/dev/null && {
3851          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3852          test ! -s conftest.err
3853        }; then
3854   :
3855 else
3856   echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859   # Broken: fails on valid input.
3860 continue
3861 fi
3862
3863 rm -f conftest.err conftest.$ac_ext
3864
3865   # OK, works on sane cases.  Now check whether nonexistent headers
3866   # can be detected and how.
3867   cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h.  */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h.  */
3873 #include <ac_nonexistent.h>
3874 _ACEOF
3875 if { (ac_try="$ac_cpp conftest.$ac_ext"
3876 case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3882   ac_status=$?
3883   grep -v '^ *+' conftest.er1 >conftest.err
3884   rm -f conftest.er1
3885   cat conftest.err >&5
3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887   (exit $ac_status); } >/dev/null && {
3888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3889          test ! -s conftest.err
3890        }; then
3891   # Broken: success on invalid input.
3892 continue
3893 else
3894   echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3896
3897   # Passes both tests.
3898 ac_preproc_ok=:
3899 break
3900 fi
3901
3902 rm -f conftest.err conftest.$ac_ext
3903
3904 done
3905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3906 rm -f conftest.err conftest.$ac_ext
3907 if $ac_preproc_ok; then
3908   :
3909 else
3910   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3911 See \`config.log' for more details." >&5
3912 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3913 See \`config.log' for more details." >&2;}
3914    { (exit 1); exit 1; }; }
3915 fi
3916
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923
3924 { echo "$as_me:$LINENO: checking for X" >&5
3925 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3926
3927
3928 # Check whether --with-x was given.
3929 if test "${with_x+set}" = set; then
3930   withval=$with_x;
3931 fi
3932
3933 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3934 if test "x$with_x" = xno; then
3935   # The user explicitly disabled X.
3936   have_x=disabled
3937 else
3938   case $x_includes,$x_libraries in #(
3939     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3940 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3941    { (exit 1); exit 1; }; };; #(
3942     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   # One or both of the vars are not set, and there is no cached value.
3946 ac_x_includes=no ac_x_libraries=no
3947 rm -f -r conftest.dir
3948 if mkdir conftest.dir; then
3949   cd conftest.dir
3950   cat >Imakefile <<'_ACEOF'
3951 incroot:
3952         @echo incroot='${INCROOT}'
3953 usrlibdir:
3954         @echo usrlibdir='${USRLIBDIR}'
3955 libdir:
3956         @echo libdir='${LIBDIR}'
3957 _ACEOF
3958   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3959     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3960     for ac_var in incroot usrlibdir libdir; do
3961       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3962     done
3963     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3964     for ac_extension in a so sl; do
3965       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3966          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3967         ac_im_usrlibdir=$ac_im_libdir; break
3968       fi
3969     done
3970     # Screen out bogus values from the imake configuration.  They are
3971     # bogus both because they are the default anyway, and because
3972     # using them would break gcc on systems where it needs fixed includes.
3973     case $ac_im_incroot in
3974         /usr/include) ac_x_includes= ;;
3975         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3976     esac
3977     case $ac_im_usrlibdir in
3978         /usr/lib | /lib) ;;
3979         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3980     esac
3981   fi
3982   cd ..
3983   rm -f -r conftest.dir
3984 fi
3985
3986 # Standard set of common directories for X headers.
3987 # Check X11 before X11Rn because it is often a symlink to the current release.
3988 ac_x_header_dirs='
3989 /usr/X11/include
3990 /usr/X11R6/include
3991 /usr/X11R5/include
3992 /usr/X11R4/include
3993
3994 /usr/include/X11
3995 /usr/include/X11R6
3996 /usr/include/X11R5
3997 /usr/include/X11R4
3998
3999 /usr/local/X11/include
4000 /usr/local/X11R6/include
4001 /usr/local/X11R5/include
4002 /usr/local/X11R4/include
4003
4004 /usr/local/include/X11
4005 /usr/local/include/X11R6
4006 /usr/local/include/X11R5
4007 /usr/local/include/X11R4
4008
4009 /usr/X386/include
4010 /usr/x386/include
4011 /usr/XFree86/include/X11
4012
4013 /usr/include
4014 /usr/local/include
4015 /usr/unsupported/include
4016 /usr/athena/include
4017 /usr/local/x11r5/include
4018 /usr/lpp/Xamples/include
4019
4020 /usr/openwin/include
4021 /usr/openwin/share/include'
4022
4023 if test "$ac_x_includes" = no; then
4024   # Guess where to find include files, by looking for Xlib.h.
4025   # First, try using that file with no special directory specified.
4026   cat >conftest.$ac_ext <<_ACEOF
4027 /* confdefs.h.  */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h.  */
4032 #include <X11/Xlib.h>
4033 _ACEOF
4034 if { (ac_try="$ac_cpp conftest.$ac_ext"
4035 case "(($ac_try" in
4036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037   *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4041   ac_status=$?
4042   grep -v '^ *+' conftest.er1 >conftest.err
4043   rm -f conftest.er1
4044   cat conftest.err >&5
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); } >/dev/null && {
4047          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4048          test ! -s conftest.err
4049        }; then
4050   # We can compile using X headers with no special include directory.
4051 ac_x_includes=
4052 else
4053   echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4055
4056   for ac_dir in $ac_x_header_dirs; do
4057   if test -r "$ac_dir/X11/Xlib.h"; then
4058     ac_x_includes=$ac_dir
4059     break
4060   fi
4061 done
4062 fi
4063
4064 rm -f conftest.err conftest.$ac_ext
4065 fi # $ac_x_includes = no
4066
4067 if test "$ac_x_libraries" = no; then
4068   # Check for the libraries.
4069   # See if we find them without any special options.
4070   # Don't add to $LIBS permanently.
4071   ac_save_LIBS=$LIBS
4072   LIBS="-lX11 $LIBS"
4073   cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 #include <X11/Xlib.h>
4080 int
4081 main ()
4082 {
4083 XrmInitialize ()
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 rm -f conftest.$ac_objext conftest$ac_exeext
4089 if { (ac_try="$ac_link"
4090 case "(($ac_try" in
4091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092   *) ac_try_echo=$ac_try;;
4093 esac
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095   (eval "$ac_link") 2>conftest.er1
4096   ac_status=$?
4097   grep -v '^ *+' conftest.er1 >conftest.err
4098   rm -f conftest.er1
4099   cat conftest.err >&5
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); } && {
4102          test -z "$ac_c_werror_flag" ||
4103          test ! -s conftest.err
4104        } && test -s conftest$ac_exeext &&
4105        $as_test_x conftest$ac_exeext; then
4106   LIBS=$ac_save_LIBS
4107 # We can link X programs with no special library path.
4108 ac_x_libraries=
4109 else
4110   echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113         LIBS=$ac_save_LIBS
4114 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4115 do
4116   # Don't even attempt the hair of trying to link an X program!
4117   for ac_extension in a so sl; do
4118     if test -r "$ac_dir/libX11.$ac_extension"; then
4119       ac_x_libraries=$ac_dir
4120       break 2
4121     fi
4122   done
4123 done
4124 fi
4125
4126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4127       conftest$ac_exeext conftest.$ac_ext
4128 fi # $ac_x_libraries = no
4129
4130 case $ac_x_includes,$ac_x_libraries in #(
4131   no,* | *,no | *\'*)
4132     # Didn't find X, or a directory has "'" in its name.
4133     ac_cv_have_x="have_x=no";; #(
4134   *)
4135     # Record where we found X for the cache.
4136     ac_cv_have_x="have_x=yes\
4137         ac_x_includes='$ac_x_includes'\
4138         ac_x_libraries='$ac_x_libraries'"
4139 esac
4140 fi
4141 ;; #(
4142     *) have_x=yes;;
4143   esac
4144   eval "$ac_cv_have_x"
4145 fi # $with_x != no
4146
4147 if test "$have_x" != yes; then
4148   { echo "$as_me:$LINENO: result: $have_x" >&5
4149 echo "${ECHO_T}$have_x" >&6; }
4150   no_x=yes
4151 else
4152   # If each of the values was on the command line, it overrides each guess.
4153   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4154   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4155   # Update the cache value to reflect the command line values.
4156   ac_cv_have_x="have_x=yes\
4157         ac_x_includes='$x_includes'\
4158         ac_x_libraries='$x_libraries'"
4159   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4160 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4161 fi
4162
4163 if test "$no_x" = yes; then
4164   # Not all programs may use this symbol, but it does not hurt to define it.
4165
4166 cat >>confdefs.h <<\_ACEOF
4167 #define X_DISPLAY_MISSING 1
4168 _ACEOF
4169
4170   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4171 else
4172   if test -n "$x_includes"; then
4173     X_CFLAGS="$X_CFLAGS -I$x_includes"
4174   fi
4175
4176   # It would also be nice to do this for all -L options, not just this one.
4177   if test -n "$x_libraries"; then
4178     X_LIBS="$X_LIBS -L$x_libraries"
4179     # For Solaris; some versions of Sun CC require a space after -R and
4180     # others require no space.  Words are not sufficient . . . .
4181     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4182 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4183     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4184     ac_xsave_c_werror_flag=$ac_c_werror_flag
4185     ac_c_werror_flag=yes
4186     cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192
4193 int
4194 main ()
4195 {
4196
4197   ;
4198   return 0;
4199 }
4200 _ACEOF
4201 rm -f conftest.$ac_objext conftest$ac_exeext
4202 if { (ac_try="$ac_link"
4203 case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_link") 2>conftest.er1
4209   ac_status=$?
4210   grep -v '^ *+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } && {
4215          test -z "$ac_c_werror_flag" ||
4216          test ! -s conftest.err
4217        } && test -s conftest$ac_exeext &&
4218        $as_test_x conftest$ac_exeext; then
4219   { echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6; }
4221        X_LIBS="$X_LIBS -R$x_libraries"
4222 else
4223   echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226         LIBS="$ac_xsave_LIBS -R $x_libraries"
4227        cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h.  */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h.  */
4233
4234 int
4235 main ()
4236 {
4237
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext conftest$ac_exeext
4243 if { (ac_try="$ac_link"
4244 case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249   (eval "$ac_link") 2>conftest.er1
4250   ac_status=$?
4251   grep -v '^ *+' conftest.er1 >conftest.err
4252   rm -f conftest.er1
4253   cat conftest.err >&5
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } && {
4256          test -z "$ac_c_werror_flag" ||
4257          test ! -s conftest.err
4258        } && test -s conftest$ac_exeext &&
4259        $as_test_x conftest$ac_exeext; then
4260   { echo "$as_me:$LINENO: result: yes" >&5
4261 echo "${ECHO_T}yes" >&6; }
4262           X_LIBS="$X_LIBS -R $x_libraries"
4263 else
4264   echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4266
4267         { echo "$as_me:$LINENO: result: neither works" >&5
4268 echo "${ECHO_T}neither works" >&6; }
4269 fi
4270
4271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4272       conftest$ac_exeext conftest.$ac_ext
4273 fi
4274
4275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4276       conftest$ac_exeext conftest.$ac_ext
4277     ac_c_werror_flag=$ac_xsave_c_werror_flag
4278     LIBS=$ac_xsave_LIBS
4279   fi
4280
4281   # Check for system-dependent libraries X programs must link with.
4282   # Do this before checking for the system-independent R6 libraries
4283   # (-lICE), since we may need -lsocket or whatever for X linking.
4284
4285   if test "$ISC" = yes; then
4286     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4287   else
4288     # Martyn Johnson says this is needed for Ultrix, if the X
4289     # libraries were built with DECnet support.  And Karl Berry says
4290     # the Alpha needs dnet_stub (dnet does not exist).
4291     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4292     cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298
4299 /* Override any GCC internal prototype to avoid an error.
4300    Use char because int might match the return type of a GCC
4301    builtin and then its argument prototype would still apply.  */
4302 #ifdef __cplusplus
4303 extern "C"
4304 #endif
4305 char XOpenDisplay ();
4306 int
4307 main ()
4308 {
4309 return XOpenDisplay ();
4310   ;
4311   return 0;
4312 }
4313 _ACEOF
4314 rm -f conftest.$ac_objext conftest$ac_exeext
4315 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
4322   ac_status=$?
4323   grep -v '^ *+' conftest.er1 >conftest.err
4324   rm -f conftest.er1
4325   cat conftest.err >&5
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); } && {
4328          test -z "$ac_c_werror_flag" ||
4329          test ! -s conftest.err
4330        } && test -s conftest$ac_exeext &&
4331        $as_test_x conftest$ac_exeext; then
4332   :
4333 else
4334   echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4336
4337         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4338 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4339 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4340   echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342   ac_check_lib_save_LIBS=$LIBS
4343 LIBS="-ldnet  $LIBS"
4344 cat >conftest.$ac_ext <<_ACEOF
4345 /* confdefs.h.  */
4346 _ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h.  */
4350
4351 /* Override any GCC internal prototype to avoid an error.
4352    Use char because int might match the return type of a GCC
4353    builtin and then its argument prototype would still apply.  */
4354 #ifdef __cplusplus
4355 extern "C"
4356 #endif
4357 char dnet_ntoa ();
4358 int
4359 main ()
4360 {
4361 return dnet_ntoa ();
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest.$ac_objext conftest$ac_exeext
4367 if { (ac_try="$ac_link"
4368 case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373   (eval "$ac_link") 2>conftest.er1
4374   ac_status=$?
4375   grep -v '^ *+' conftest.er1 >conftest.err
4376   rm -f conftest.er1
4377   cat conftest.err >&5
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); } && {
4380          test -z "$ac_c_werror_flag" ||
4381          test ! -s conftest.err
4382        } && test -s conftest$ac_exeext &&
4383        $as_test_x conftest$ac_exeext; then
4384   ac_cv_lib_dnet_dnet_ntoa=yes
4385 else
4386   echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389         ac_cv_lib_dnet_dnet_ntoa=no
4390 fi
4391
4392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4393       conftest$ac_exeext conftest.$ac_ext
4394 LIBS=$ac_check_lib_save_LIBS
4395 fi
4396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4397 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4398 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4399   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4400 fi
4401
4402     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4403       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4404 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4405 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4406   echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408   ac_check_lib_save_LIBS=$LIBS
4409 LIBS="-ldnet_stub  $LIBS"
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h.  */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h.  */
4416
4417 /* Override any GCC internal prototype to avoid an error.
4418    Use char because int might match the return type of a GCC
4419    builtin and then its argument prototype would still apply.  */
4420 #ifdef __cplusplus
4421 extern "C"
4422 #endif
4423 char dnet_ntoa ();
4424 int
4425 main ()
4426 {
4427 return dnet_ntoa ();
4428   ;
4429   return 0;
4430 }
4431 _ACEOF
4432 rm -f conftest.$ac_objext conftest$ac_exeext
4433 if { (ac_try="$ac_link"
4434 case "(($ac_try" in
4435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436   *) ac_try_echo=$ac_try;;
4437 esac
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439   (eval "$ac_link") 2>conftest.er1
4440   ac_status=$?
4441   grep -v '^ *+' conftest.er1 >conftest.err
4442   rm -f conftest.er1
4443   cat conftest.err >&5
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } && {
4446          test -z "$ac_c_werror_flag" ||
4447          test ! -s conftest.err
4448        } && test -s conftest$ac_exeext &&
4449        $as_test_x conftest$ac_exeext; then
4450   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4451 else
4452   echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4454
4455         ac_cv_lib_dnet_stub_dnet_ntoa=no
4456 fi
4457
4458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4459       conftest$ac_exeext conftest.$ac_ext
4460 LIBS=$ac_check_lib_save_LIBS
4461 fi
4462 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4463 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4464 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4465   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4466 fi
4467
4468     fi
4469 fi
4470
4471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4472       conftest$ac_exeext conftest.$ac_ext
4473     LIBS="$ac_xsave_LIBS"
4474
4475     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4476     # to get the SysV transport functions.
4477     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4478     # needs -lnsl.
4479     # The nsl library prevents programs from opening the X display
4480     # on Irix 5.2, according to T.E. Dickey.
4481     # The functions gethostbyname, getservbyname, and inet_addr are
4482     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4483     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4484 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4485 if test "${ac_cv_func_gethostbyname+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h.  */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h.  */
4494 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4496 #define gethostbyname innocuous_gethostbyname
4497
4498 /* System header to define __stub macros and hopefully few prototypes,
4499     which can conflict with char gethostbyname (); below.
4500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4501     <limits.h> exists even on freestanding compilers.  */
4502
4503 #ifdef __STDC__
4504 # include <limits.h>
4505 #else
4506 # include <assert.h>
4507 #endif
4508
4509 #undef gethostbyname
4510
4511 /* Override any GCC internal prototype to avoid an error.
4512    Use char because int might match the return type of a GCC
4513    builtin and then its argument prototype would still apply.  */
4514 #ifdef __cplusplus
4515 extern "C"
4516 #endif
4517 char gethostbyname ();
4518 /* The GNU C library defines this for functions which it implements
4519     to always fail with ENOSYS.  Some functions are actually named
4520     something starting with __ and the normal name is an alias.  */
4521 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4522 choke me
4523 #endif
4524
4525 int
4526 main ()
4527 {
4528 return gethostbyname ();
4529   ;
4530   return 0;
4531 }
4532 _ACEOF
4533 rm -f conftest.$ac_objext conftest$ac_exeext
4534 if { (ac_try="$ac_link"
4535 case "(($ac_try" in
4536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537   *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540   (eval "$ac_link") 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } && {
4547          test -z "$ac_c_werror_flag" ||
4548          test ! -s conftest.err
4549        } && test -s conftest$ac_exeext &&
4550        $as_test_x conftest$ac_exeext; then
4551   ac_cv_func_gethostbyname=yes
4552 else
4553   echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556         ac_cv_func_gethostbyname=no
4557 fi
4558
4559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4560       conftest$ac_exeext conftest.$ac_ext
4561 fi
4562 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4563 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4564
4565     if test $ac_cv_func_gethostbyname = no; then
4566       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4567 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4568 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4569   echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571   ac_check_lib_save_LIBS=$LIBS
4572 LIBS="-lnsl  $LIBS"
4573 cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579
4580 /* Override any GCC internal prototype to avoid an error.
4581    Use char because int might match the return type of a GCC
4582    builtin and then its argument prototype would still apply.  */
4583 #ifdef __cplusplus
4584 extern "C"
4585 #endif
4586 char gethostbyname ();
4587 int
4588 main ()
4589 {
4590 return gethostbyname ();
4591   ;
4592   return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.$ac_objext conftest$ac_exeext
4596 if { (ac_try="$ac_link"
4597 case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602   (eval "$ac_link") 2>conftest.er1
4603   ac_status=$?
4604   grep -v '^ *+' conftest.er1 >conftest.err
4605   rm -f conftest.er1
4606   cat conftest.err >&5
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } && {
4609          test -z "$ac_c_werror_flag" ||
4610          test ! -s conftest.err
4611        } && test -s conftest$ac_exeext &&
4612        $as_test_x conftest$ac_exeext; then
4613   ac_cv_lib_nsl_gethostbyname=yes
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618         ac_cv_lib_nsl_gethostbyname=no
4619 fi
4620
4621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4622       conftest$ac_exeext conftest.$ac_ext
4623 LIBS=$ac_check_lib_save_LIBS
4624 fi
4625 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4626 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4627 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4628   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4629 fi
4630
4631       if test $ac_cv_lib_nsl_gethostbyname = no; then
4632         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4633 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4634 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   ac_check_lib_save_LIBS=$LIBS
4638 LIBS="-lbsd  $LIBS"
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645
4646 /* Override any GCC internal prototype to avoid an error.
4647    Use char because int might match the return type of a GCC
4648    builtin and then its argument prototype would still apply.  */
4649 #ifdef __cplusplus
4650 extern "C"
4651 #endif
4652 char gethostbyname ();
4653 int
4654 main ()
4655 {
4656 return gethostbyname ();
4657   ;
4658   return 0;
4659 }
4660 _ACEOF
4661 rm -f conftest.$ac_objext conftest$ac_exeext
4662 if { (ac_try="$ac_link"
4663 case "(($ac_try" in
4664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665   *) ac_try_echo=$ac_try;;
4666 esac
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668   (eval "$ac_link") 2>conftest.er1
4669   ac_status=$?
4670   grep -v '^ *+' conftest.er1 >conftest.err
4671   rm -f conftest.er1
4672   cat conftest.err >&5
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); } && {
4675          test -z "$ac_c_werror_flag" ||
4676          test ! -s conftest.err
4677        } && test -s conftest$ac_exeext &&
4678        $as_test_x conftest$ac_exeext; then
4679   ac_cv_lib_bsd_gethostbyname=yes
4680 else
4681   echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684         ac_cv_lib_bsd_gethostbyname=no
4685 fi
4686
4687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4688       conftest$ac_exeext conftest.$ac_ext
4689 LIBS=$ac_check_lib_save_LIBS
4690 fi
4691 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4692 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4693 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4694   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4695 fi
4696
4697       fi
4698     fi
4699
4700     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4701     # socket/setsockopt and other routines are undefined under SCO ODT
4702     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4703     # on later versions), says Simon Leinen: it contains gethostby*
4704     # variants that don't use the name server (or something).  -lsocket
4705     # must be given before -lnsl if both are needed.  We assume that
4706     # if connect needs -lnsl, so does gethostbyname.
4707     { echo "$as_me:$LINENO: checking for connect" >&5
4708 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4709 if test "${ac_cv_func_connect+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h.  */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h.  */
4718 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4720 #define connect innocuous_connect
4721
4722 /* System header to define __stub macros and hopefully few prototypes,
4723     which can conflict with char connect (); below.
4724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4725     <limits.h> exists even on freestanding compilers.  */
4726
4727 #ifdef __STDC__
4728 # include <limits.h>
4729 #else
4730 # include <assert.h>
4731 #endif
4732
4733 #undef connect
4734
4735 /* Override any GCC internal prototype to avoid an error.
4736    Use char because int might match the return type of a GCC
4737    builtin and then its argument prototype would still apply.  */
4738 #ifdef __cplusplus
4739 extern "C"
4740 #endif
4741 char connect ();
4742 /* The GNU C library defines this for functions which it implements
4743     to always fail with ENOSYS.  Some functions are actually named
4744     something starting with __ and the normal name is an alias.  */
4745 #if defined __stub_connect || defined __stub___connect
4746 choke me
4747 #endif
4748
4749 int
4750 main ()
4751 {
4752 return connect ();
4753   ;
4754   return 0;
4755 }
4756 _ACEOF
4757 rm -f conftest.$ac_objext conftest$ac_exeext
4758 if { (ac_try="$ac_link"
4759 case "(($ac_try" in
4760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761   *) ac_try_echo=$ac_try;;
4762 esac
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764   (eval "$ac_link") 2>conftest.er1
4765   ac_status=$?
4766   grep -v '^ *+' conftest.er1 >conftest.err
4767   rm -f conftest.er1
4768   cat conftest.err >&5
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); } && {
4771          test -z "$ac_c_werror_flag" ||
4772          test ! -s conftest.err
4773        } && test -s conftest$ac_exeext &&
4774        $as_test_x conftest$ac_exeext; then
4775   ac_cv_func_connect=yes
4776 else
4777   echo "$as_me: failed program was:" >&5
4778 sed 's/^/| /' conftest.$ac_ext >&5
4779
4780         ac_cv_func_connect=no
4781 fi
4782
4783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4784       conftest$ac_exeext conftest.$ac_ext
4785 fi
4786 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4787 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4788
4789     if test $ac_cv_func_connect = no; then
4790       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4791 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4792 if test "${ac_cv_lib_socket_connect+set}" = set; then
4793   echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795   ac_check_lib_save_LIBS=$LIBS
4796 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4797 cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h.  */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h.  */
4803
4804 /* Override any GCC internal prototype to avoid an error.
4805    Use char because int might match the return type of a GCC
4806    builtin and then its argument prototype would still apply.  */
4807 #ifdef __cplusplus
4808 extern "C"
4809 #endif
4810 char connect ();
4811 int
4812 main ()
4813 {
4814 return connect ();
4815   ;
4816   return 0;
4817 }
4818 _ACEOF
4819 rm -f conftest.$ac_objext conftest$ac_exeext
4820 if { (ac_try="$ac_link"
4821 case "(($ac_try" in
4822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823   *) ac_try_echo=$ac_try;;
4824 esac
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826   (eval "$ac_link") 2>conftest.er1
4827   ac_status=$?
4828   grep -v '^ *+' conftest.er1 >conftest.err
4829   rm -f conftest.er1
4830   cat conftest.err >&5
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); } && {
4833          test -z "$ac_c_werror_flag" ||
4834          test ! -s conftest.err
4835        } && test -s conftest$ac_exeext &&
4836        $as_test_x conftest$ac_exeext; then
4837   ac_cv_lib_socket_connect=yes
4838 else
4839   echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842         ac_cv_lib_socket_connect=no
4843 fi
4844
4845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4846       conftest$ac_exeext conftest.$ac_ext
4847 LIBS=$ac_check_lib_save_LIBS
4848 fi
4849 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4850 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4851 if test $ac_cv_lib_socket_connect = yes; then
4852   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4853 fi
4854
4855     fi
4856
4857     # Guillermo Gomez says -lposix is necessary on A/UX.
4858     { echo "$as_me:$LINENO: checking for remove" >&5
4859 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4860 if test "${ac_cv_func_remove+set}" = set; then
4861   echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863   cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h.  */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h.  */
4869 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4871 #define remove innocuous_remove
4872
4873 /* System header to define __stub macros and hopefully few prototypes,
4874     which can conflict with char remove (); below.
4875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4876     <limits.h> exists even on freestanding compilers.  */
4877
4878 #ifdef __STDC__
4879 # include <limits.h>
4880 #else
4881 # include <assert.h>
4882 #endif
4883
4884 #undef remove
4885
4886 /* Override any GCC internal prototype to avoid an error.
4887    Use char because int might match the return type of a GCC
4888    builtin and then its argument prototype would still apply.  */
4889 #ifdef __cplusplus
4890 extern "C"
4891 #endif
4892 char remove ();
4893 /* The GNU C library defines this for functions which it implements
4894     to always fail with ENOSYS.  Some functions are actually named
4895     something starting with __ and the normal name is an alias.  */
4896 #if defined __stub_remove || defined __stub___remove
4897 choke me
4898 #endif
4899
4900 int
4901 main ()
4902 {
4903 return remove ();
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          test -z "$ac_c_werror_flag" ||
4923          test ! -s conftest.err
4924        } && test -s conftest$ac_exeext &&
4925        $as_test_x conftest$ac_exeext; then
4926   ac_cv_func_remove=yes
4927 else
4928   echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4930
4931         ac_cv_func_remove=no
4932 fi
4933
4934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4935       conftest$ac_exeext conftest.$ac_ext
4936 fi
4937 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4938 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4939
4940     if test $ac_cv_func_remove = no; then
4941       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4942 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4943 if test "${ac_cv_lib_posix_remove+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   ac_check_lib_save_LIBS=$LIBS
4947 LIBS="-lposix  $LIBS"
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h.  */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h.  */
4954
4955 /* Override any GCC internal prototype to avoid an error.
4956    Use char because int might match the return type of a GCC
4957    builtin and then its argument prototype would still apply.  */
4958 #ifdef __cplusplus
4959 extern "C"
4960 #endif
4961 char remove ();
4962 int
4963 main ()
4964 {
4965 return remove ();
4966   ;
4967   return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (ac_try="$ac_link"
4972 case "(($ac_try" in
4973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974   *) ac_try_echo=$ac_try;;
4975 esac
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977   (eval "$ac_link") 2>conftest.er1
4978   ac_status=$?
4979   grep -v '^ *+' conftest.er1 >conftest.err
4980   rm -f conftest.er1
4981   cat conftest.err >&5
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); } && {
4984          test -z "$ac_c_werror_flag" ||
4985          test ! -s conftest.err
4986        } && test -s conftest$ac_exeext &&
4987        $as_test_x conftest$ac_exeext; then
4988   ac_cv_lib_posix_remove=yes
4989 else
4990   echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993         ac_cv_lib_posix_remove=no
4994 fi
4995
4996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4997       conftest$ac_exeext conftest.$ac_ext
4998 LIBS=$ac_check_lib_save_LIBS
4999 fi
5000 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5001 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5002 if test $ac_cv_lib_posix_remove = yes; then
5003   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5004 fi
5005
5006     fi
5007
5008     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5009     { echo "$as_me:$LINENO: checking for shmat" >&5
5010 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5011 if test "${ac_cv_func_shmat+set}" = set; then
5012   echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014   cat >conftest.$ac_ext <<_ACEOF
5015 /* confdefs.h.  */
5016 _ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h.  */
5020 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5021    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5022 #define shmat innocuous_shmat
5023
5024 /* System header to define __stub macros and hopefully few prototypes,
5025     which can conflict with char shmat (); below.
5026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027     <limits.h> exists even on freestanding compilers.  */
5028
5029 #ifdef __STDC__
5030 # include <limits.h>
5031 #else
5032 # include <assert.h>
5033 #endif
5034
5035 #undef shmat
5036
5037 /* Override any GCC internal prototype to avoid an error.
5038    Use char because int might match the return type of a GCC
5039    builtin and then its argument prototype would still apply.  */
5040 #ifdef __cplusplus
5041 extern "C"
5042 #endif
5043 char shmat ();
5044 /* The GNU C library defines this for functions which it implements
5045     to always fail with ENOSYS.  Some functions are actually named
5046     something starting with __ and the normal name is an alias.  */
5047 #if defined __stub_shmat || defined __stub___shmat
5048 choke me
5049 #endif
5050
5051 int
5052 main ()
5053 {
5054 return shmat ();
5055   ;
5056   return 0;
5057 }
5058 _ACEOF
5059 rm -f conftest.$ac_objext conftest$ac_exeext
5060 if { (ac_try="$ac_link"
5061 case "(($ac_try" in
5062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063   *) ac_try_echo=$ac_try;;
5064 esac
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066   (eval "$ac_link") 2>conftest.er1
5067   ac_status=$?
5068   grep -v '^ *+' conftest.er1 >conftest.err
5069   rm -f conftest.er1
5070   cat conftest.err >&5
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); } && {
5073          test -z "$ac_c_werror_flag" ||
5074          test ! -s conftest.err
5075        } && test -s conftest$ac_exeext &&
5076        $as_test_x conftest$ac_exeext; then
5077   ac_cv_func_shmat=yes
5078 else
5079   echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082         ac_cv_func_shmat=no
5083 fi
5084
5085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5086       conftest$ac_exeext conftest.$ac_ext
5087 fi
5088 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5089 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5090
5091     if test $ac_cv_func_shmat = no; then
5092       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5093 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5094 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097   ac_check_lib_save_LIBS=$LIBS
5098 LIBS="-lipc  $LIBS"
5099 cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h.  */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h.  */
5105
5106 /* Override any GCC internal prototype to avoid an error.
5107    Use char because int might match the return type of a GCC
5108    builtin and then its argument prototype would still apply.  */
5109 #ifdef __cplusplus
5110 extern "C"
5111 #endif
5112 char shmat ();
5113 int
5114 main ()
5115 {
5116 return shmat ();
5117   ;
5118   return 0;
5119 }
5120 _ACEOF
5121 rm -f conftest.$ac_objext conftest$ac_exeext
5122 if { (ac_try="$ac_link"
5123 case "(($ac_try" in
5124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125   *) ac_try_echo=$ac_try;;
5126 esac
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128   (eval "$ac_link") 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } && {
5135          test -z "$ac_c_werror_flag" ||
5136          test ! -s conftest.err
5137        } && test -s conftest$ac_exeext &&
5138        $as_test_x conftest$ac_exeext; then
5139   ac_cv_lib_ipc_shmat=yes
5140 else
5141   echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5143
5144         ac_cv_lib_ipc_shmat=no
5145 fi
5146
5147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5148       conftest$ac_exeext conftest.$ac_ext
5149 LIBS=$ac_check_lib_save_LIBS
5150 fi
5151 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5152 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5153 if test $ac_cv_lib_ipc_shmat = yes; then
5154   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5155 fi
5156
5157     fi
5158   fi
5159
5160   # Check for libraries that X11R6 Xt/Xaw programs need.
5161   ac_save_LDFLAGS=$LDFLAGS
5162   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5163   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5164   # check for ICE first), but we must link in the order -lSM -lICE or
5165   # we get undefined symbols.  So assume we have SM if we have ICE.
5166   # These have to be linked with before -lX11, unlike the other
5167   # libraries we check for below, so use a different variable.
5168   # John Interrante, Karl Berry
5169   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5170 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5171 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   ac_check_lib_save_LIBS=$LIBS
5175 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h.  */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h.  */
5182
5183 /* Override any GCC internal prototype to avoid an error.
5184    Use char because int might match the return type of a GCC
5185    builtin and then its argument prototype would still apply.  */
5186 #ifdef __cplusplus
5187 extern "C"
5188 #endif
5189 char IceConnectionNumber ();
5190 int
5191 main ()
5192 {
5193 return IceConnectionNumber ();
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext conftest$ac_exeext
5199 if { (ac_try="$ac_link"
5200 case "(($ac_try" in
5201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202   *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205   (eval "$ac_link") 2>conftest.er1
5206   ac_status=$?
5207   grep -v '^ *+' conftest.er1 >conftest.err
5208   rm -f conftest.er1
5209   cat conftest.err >&5
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } && {
5212          test -z "$ac_c_werror_flag" ||
5213          test ! -s conftest.err
5214        } && test -s conftest$ac_exeext &&
5215        $as_test_x conftest$ac_exeext; then
5216   ac_cv_lib_ICE_IceConnectionNumber=yes
5217 else
5218   echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5220
5221         ac_cv_lib_ICE_IceConnectionNumber=no
5222 fi
5223
5224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5225       conftest$ac_exeext conftest.$ac_ext
5226 LIBS=$ac_check_lib_save_LIBS
5227 fi
5228 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5229 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5230 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5231   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5232 fi
5233
5234   LDFLAGS=$ac_save_LDFLAGS
5235
5236 fi
5237
5238
5239 for ac_prog in flex
5240 do
5241   # Extract the first word of "$ac_prog", so it can be a program name with args.
5242 set dummy $ac_prog; ac_word=$2
5243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5245 if test "${ac_cv_prog_FLEX+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   if test -n "$FLEX"; then
5249   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254   IFS=$as_save_IFS
5255   test -z "$as_dir" && as_dir=.
5256   for ac_exec_ext in '' $ac_executable_extensions; do
5257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258     ac_cv_prog_FLEX="$ac_prog"
5259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260     break 2
5261   fi
5262 done
5263 done
5264 IFS=$as_save_IFS
5265
5266 fi
5267 fi
5268 FLEX=$ac_cv_prog_FLEX
5269 if test -n "$FLEX"; then
5270   { echo "$as_me:$LINENO: result: $FLEX" >&5
5271 echo "${ECHO_T}$FLEX" >&6; }
5272 else
5273   { echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6; }
5275 fi
5276
5277
5278   test -n "$FLEX" && break
5279 done
5280 test -n "$FLEX" || FLEX="none"
5281
5282 if test "$FLEX" = "none"
5283 then
5284   { { echo "$as_me:$LINENO: error: no suitable flex found. Please install the 'flex' package." >&5
5285 echo "$as_me: error: no suitable flex found. Please install the 'flex' package." >&2;}
5286    { (exit 1); exit 1; }; }
5287 fi
5288
5289 for ac_prog in bison
5290 do
5291   # Extract the first word of "$ac_prog", so it can be a program name with args.
5292 set dummy $ac_prog; ac_word=$2
5293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5295 if test "${ac_cv_prog_BISON+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   if test -n "$BISON"; then
5299   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304   IFS=$as_save_IFS
5305   test -z "$as_dir" && as_dir=.
5306   for ac_exec_ext in '' $ac_executable_extensions; do
5307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308     ac_cv_prog_BISON="$ac_prog"
5309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310     break 2
5311   fi
5312 done
5313 done
5314 IFS=$as_save_IFS
5315
5316 fi
5317 fi
5318 BISON=$ac_cv_prog_BISON
5319 if test -n "$BISON"; then
5320   { echo "$as_me:$LINENO: result: $BISON" >&5
5321 echo "${ECHO_T}$BISON" >&6; }
5322 else
5323   { echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6; }
5325 fi
5326
5327
5328   test -n "$BISON" && break
5329 done
5330 test -n "$BISON" || BISON="none"
5331
5332 if test "$BISON" = "none"
5333 then
5334   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5335 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5336    { (exit 1); exit 1; }; }
5337 fi
5338
5339 if test -n "$ac_tool_prefix"; then
5340   for ac_prog in gas as
5341   do
5342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5346 if test "${ac_cv_prog_AS+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   if test -n "$AS"; then
5350   ac_cv_prog_AS="$AS" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355   IFS=$as_save_IFS
5356   test -z "$as_dir" && as_dir=.
5357   for ac_exec_ext in '' $ac_executable_extensions; do
5358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361     break 2
5362   fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 AS=$ac_cv_prog_AS
5370 if test -n "$AS"; then
5371   { echo "$as_me:$LINENO: result: $AS" >&5
5372 echo "${ECHO_T}$AS" >&6; }
5373 else
5374   { echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6; }
5376 fi
5377
5378
5379     test -n "$AS" && break
5380   done
5381 fi
5382 if test -z "$AS"; then
5383   ac_ct_AS=$AS
5384   for ac_prog in gas as
5385 do
5386   # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5390 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393   if test -n "$ac_ct_AS"; then
5394   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401   for ac_exec_ext in '' $ac_executable_extensions; do
5402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403     ac_cv_prog_ac_ct_AS="$ac_prog"
5404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408 done
5409 IFS=$as_save_IFS
5410
5411 fi
5412 fi
5413 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5414 if test -n "$ac_ct_AS"; then
5415   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5416 echo "${ECHO_T}$ac_ct_AS" >&6; }
5417 else
5418   { echo "$as_me:$LINENO: result: no" >&5
5419 echo "${ECHO_T}no" >&6; }
5420 fi
5421
5422
5423   test -n "$ac_ct_AS" && break
5424 done
5425
5426   if test "x$ac_ct_AS" = x; then
5427     AS="as"
5428   else
5429     case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5432 whose name does not start with the host triplet.  If you think this
5433 configuration is useful to you, please write to autoconf@gnu.org." >&5
5434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5435 whose name does not start with the host triplet.  If you think this
5436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439     AS=$ac_ct_AS
5440   fi
5441 fi
5442
5443 if test -n "$ac_tool_prefix"; then
5444   for ac_prog in ld gld
5445   do
5446     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5450 if test "${ac_cv_prog_LD+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   if test -n "$LD"; then
5454   ac_cv_prog_LD="$LD" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461   for ac_exec_ext in '' $ac_executable_extensions; do
5462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463     ac_cv_prog_LD="$ac_tool_prefix$ac_prog"
5464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465     break 2
5466   fi
5467 done
5468 done
5469 IFS=$as_save_IFS
5470
5471 fi
5472 fi
5473 LD=$ac_cv_prog_LD
5474 if test -n "$LD"; then
5475   { echo "$as_me:$LINENO: result: $LD" >&5
5476 echo "${ECHO_T}$LD" >&6; }
5477 else
5478   { echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6; }
5480 fi
5481
5482
5483     test -n "$LD" && break
5484   done
5485 fi
5486 if test -z "$LD"; then
5487   ac_ct_LD=$LD
5488   for ac_prog in ld gld
5489 do
5490   # Extract the first word of "$ac_prog", so it can be a program name with args.
5491 set dummy $ac_prog; ac_word=$2
5492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5494 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497   if test -n "$ac_ct_LD"; then
5498   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503   IFS=$as_save_IFS
5504   test -z "$as_dir" && as_dir=.
5505   for ac_exec_ext in '' $ac_executable_extensions; do
5506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507     ac_cv_prog_ac_ct_LD="$ac_prog"
5508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509     break 2
5510   fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5518 if test -n "$ac_ct_LD"; then
5519   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5520 echo "${ECHO_T}$ac_ct_LD" >&6; }
5521 else
5522   { echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6; }
5524 fi
5525
5526
5527   test -n "$ac_ct_LD" && break
5528 done
5529
5530   if test "x$ac_ct_LD" = x; then
5531     LD="ld"
5532   else
5533     case $cross_compiling:$ac_tool_warned in
5534 yes:)
5535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5536 whose name does not start with the host triplet.  If you think this
5537 configuration is useful to you, please write to autoconf@gnu.org." >&5
5538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5539 whose name does not start with the host triplet.  If you think this
5540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5541 ac_tool_warned=yes ;;
5542 esac
5543     LD=$ac_ct_LD
5544   fi
5545 fi
5546
5547 if test -n "$ac_tool_prefix"; then
5548   for ac_prog in nm gnm
5549   do
5550     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5554 if test "${ac_cv_prog_NM+set}" = set; then
5555   echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557   if test -n "$NM"; then
5558   ac_cv_prog_NM="$NM" # Let the user override the test.
5559 else
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565   for ac_exec_ext in '' $ac_executable_extensions; do
5566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567     ac_cv_prog_NM="$ac_tool_prefix$ac_prog"
5568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569     break 2
5570   fi
5571 done
5572 done
5573 IFS=$as_save_IFS
5574
5575 fi
5576 fi
5577 NM=$ac_cv_prog_NM
5578 if test -n "$NM"; then
5579   { echo "$as_me:$LINENO: result: $NM" >&5
5580 echo "${ECHO_T}$NM" >&6; }
5581 else
5582   { echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6; }
5584 fi
5585
5586
5587     test -n "$NM" && break
5588   done
5589 fi
5590 if test -z "$NM"; then
5591   ac_ct_NM=$NM
5592   for ac_prog in nm gnm
5593 do
5594   # Extract the first word of "$ac_prog", so it can be a program name with args.
5595 set dummy $ac_prog; ac_word=$2
5596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5598 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5599   echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601   if test -n "$ac_ct_NM"; then
5602   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607   IFS=$as_save_IFS
5608   test -z "$as_dir" && as_dir=.
5609   for ac_exec_ext in '' $ac_executable_extensions; do
5610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5611     ac_cv_prog_ac_ct_NM="$ac_prog"
5612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613     break 2
5614   fi
5615 done
5616 done
5617 IFS=$as_save_IFS
5618
5619 fi
5620 fi
5621 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5622 if test -n "$ac_ct_NM"; then
5623   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
5624 echo "${ECHO_T}$ac_ct_NM" >&6; }
5625 else
5626   { echo "$as_me:$LINENO: result: no" >&5
5627 echo "${ECHO_T}no" >&6; }
5628 fi
5629
5630
5631   test -n "$ac_ct_NM" && break
5632 done
5633
5634   if test "x$ac_ct_NM" = x; then
5635     NM="nm"
5636   else
5637     case $cross_compiling:$ac_tool_warned in
5638 yes:)
5639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5640 whose name does not start with the host triplet.  If you think this
5641 configuration is useful to you, please write to autoconf@gnu.org." >&5
5642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5643 whose name does not start with the host triplet.  If you think this
5644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5645 ac_tool_warned=yes ;;
5646 esac
5647     NM=$ac_ct_NM
5648   fi
5649 fi
5650
5651 if test -n "$ac_tool_prefix"; then
5652   for ac_prog in ar gar
5653   do
5654     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5658 if test "${ac_cv_prog_AR+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661   if test -n "$AR"; then
5662   ac_cv_prog_AR="$AR" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667   IFS=$as_save_IFS
5668   test -z "$as_dir" && as_dir=.
5669   for ac_exec_ext in '' $ac_executable_extensions; do
5670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5671     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673     break 2
5674   fi
5675 done
5676 done
5677 IFS=$as_save_IFS
5678
5679 fi
5680 fi
5681 AR=$ac_cv_prog_AR
5682 if test -n "$AR"; then
5683   { echo "$as_me:$LINENO: result: $AR" >&5
5684 echo "${ECHO_T}$AR" >&6; }
5685 else
5686   { echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6; }
5688 fi
5689
5690
5691     test -n "$AR" && break
5692   done
5693 fi
5694 if test -z "$AR"; then
5695   ac_ct_AR=$AR
5696   for ac_prog in ar gar
5697 do
5698   # Extract the first word of "$ac_prog", so it can be a program name with args.
5699 set dummy $ac_prog; ac_word=$2
5700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5702 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5703   echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705   if test -n "$ac_ct_AR"; then
5706   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713   for ac_exec_ext in '' $ac_executable_extensions; do
5714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715     ac_cv_prog_ac_ct_AR="$ac_prog"
5716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720 done
5721 IFS=$as_save_IFS
5722
5723 fi
5724 fi
5725 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5726 if test -n "$ac_ct_AR"; then
5727   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5728 echo "${ECHO_T}$ac_ct_AR" >&6; }
5729 else
5730   { echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6; }
5732 fi
5733
5734
5735   test -n "$ac_ct_AR" && break
5736 done
5737
5738   if test "x$ac_ct_AR" = x; then
5739     AR="ar"
5740   else
5741     case $cross_compiling:$ac_tool_warned in
5742 yes:)
5743 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5744 whose name does not start with the host triplet.  If you think this
5745 configuration is useful to you, please write to autoconf@gnu.org." >&5
5746 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5747 whose name does not start with the host triplet.  If you think this
5748 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5749 ac_tool_warned=yes ;;
5750 esac
5751     AR=$ac_ct_AR
5752   fi
5753 fi
5754
5755 ARFLAGS=rc
5756
5757 if test -n "$ac_tool_prefix"; then
5758   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5762 if test "${ac_cv_prog_RANLIB+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   if test -n "$RANLIB"; then
5766   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771   IFS=$as_save_IFS
5772   test -z "$as_dir" && as_dir=.
5773   for ac_exec_ext in '' $ac_executable_extensions; do
5774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777     break 2
5778   fi
5779 done
5780 done
5781 IFS=$as_save_IFS
5782
5783 fi
5784 fi
5785 RANLIB=$ac_cv_prog_RANLIB
5786 if test -n "$RANLIB"; then
5787   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5788 echo "${ECHO_T}$RANLIB" >&6; }
5789 else
5790   { echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6; }
5792 fi
5793
5794
5795 fi
5796 if test -z "$ac_cv_prog_RANLIB"; then
5797   ac_ct_RANLIB=$RANLIB
5798   # Extract the first word of "ranlib", so it can be a program name with args.
5799 set dummy ranlib; ac_word=$2
5800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5802 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   if test -n "$ac_ct_RANLIB"; then
5806   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811   IFS=$as_save_IFS
5812   test -z "$as_dir" && as_dir=.
5813   for ac_exec_ext in '' $ac_executable_extensions; do
5814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815     ac_cv_prog_ac_ct_RANLIB="ranlib"
5816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817     break 2
5818   fi
5819 done
5820 done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5826 if test -n "$ac_ct_RANLIB"; then
5827   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5828 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5829 else
5830   { echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6; }
5832 fi
5833
5834   if test "x$ac_ct_RANLIB" = x; then
5835     RANLIB=":"
5836   else
5837     case $cross_compiling:$ac_tool_warned in
5838 yes:)
5839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5840 whose name does not start with the host triplet.  If you think this
5841 configuration is useful to you, please write to autoconf@gnu.org." >&5
5842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5843 whose name does not start with the host triplet.  If you think this
5844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5845 ac_tool_warned=yes ;;
5846 esac
5847     RANLIB=$ac_ct_RANLIB
5848   fi
5849 else
5850   RANLIB="$ac_cv_prog_RANLIB"
5851 fi
5852
5853 if test -n "$ac_tool_prefix"; then
5854   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5855 set dummy ${ac_tool_prefix}strip; ac_word=$2
5856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5858 if test "${ac_cv_prog_STRIP+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   if test -n "$STRIP"; then
5862   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867   IFS=$as_save_IFS
5868   test -z "$as_dir" && as_dir=.
5869   for ac_exec_ext in '' $ac_executable_extensions; do
5870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873     break 2
5874   fi
5875 done
5876 done
5877 IFS=$as_save_IFS
5878
5879 fi
5880 fi
5881 STRIP=$ac_cv_prog_STRIP
5882 if test -n "$STRIP"; then
5883   { echo "$as_me:$LINENO: result: $STRIP" >&5
5884 echo "${ECHO_T}$STRIP" >&6; }
5885 else
5886   { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5888 fi
5889
5890
5891 fi
5892 if test -z "$ac_cv_prog_STRIP"; then
5893   ac_ct_STRIP=$STRIP
5894   # Extract the first word of "strip", so it can be a program name with args.
5895 set dummy strip; ac_word=$2
5896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5898 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5899   echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901   if test -n "$ac_ct_STRIP"; then
5902   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907   IFS=$as_save_IFS
5908   test -z "$as_dir" && as_dir=.
5909   for ac_exec_ext in '' $ac_executable_extensions; do
5910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911     ac_cv_prog_ac_ct_STRIP="strip"
5912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913     break 2
5914   fi
5915 done
5916 done
5917 IFS=$as_save_IFS
5918
5919 fi
5920 fi
5921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5922 if test -n "$ac_ct_STRIP"; then
5923   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5924 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5925 else
5926   { echo "$as_me:$LINENO: result: no" >&5
5927 echo "${ECHO_T}no" >&6; }
5928 fi
5929
5930   if test "x$ac_ct_STRIP" = x; then
5931     STRIP="strip"
5932   else
5933     case $cross_compiling:$ac_tool_warned in
5934 yes:)
5935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5936 whose name does not start with the host triplet.  If you think this
5937 configuration is useful to you, please write to autoconf@gnu.org." >&5
5938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5939 whose name does not start with the host triplet.  If you think this
5940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5941 ac_tool_warned=yes ;;
5942 esac
5943     STRIP=$ac_ct_STRIP
5944   fi
5945 else
5946   STRIP="$ac_cv_prog_STRIP"
5947 fi
5948
5949 if test -n "$ac_tool_prefix"; then
5950   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5951 set dummy ${ac_tool_prefix}windres; 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_WINDRES+set}" = set; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957   if test -n "$WINDRES"; then
5958   ac_cv_prog_WINDRES="$WINDRES" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
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 WINDRES=$ac_cv_prog_WINDRES
5978 if test -n "$WINDRES"; then
5979   { echo "$as_me:$LINENO: result: $WINDRES" >&5
5980 echo "${ECHO_T}$WINDRES" >&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_WINDRES"; then
5989   ac_ct_WINDRES=$WINDRES
5990   # Extract the first word of "windres", so it can be a program name with args.
5991 set dummy windres; 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_WINDRES+set}" = set; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   if test -n "$ac_ct_WINDRES"; then
5998   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007     ac_cv_prog_ac_ct_WINDRES="windres"
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_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6018 if test -n "$ac_ct_WINDRES"; then
6019   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6020 echo "${ECHO_T}$ac_ct_WINDRES" >&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_WINDRES" = x; then
6027     WINDRES="false"
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     WINDRES=$ac_ct_WINDRES
6040   fi
6041 else
6042   WINDRES="$ac_cv_prog_WINDRES"
6043 fi
6044
6045 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6046 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6047 LN_S=$as_ln_s
6048 if test "$LN_S" = "ln -s"; then
6049   { echo "$as_me:$LINENO: result: yes" >&5
6050 echo "${ECHO_T}yes" >&6; }
6051 else
6052   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6053 echo "${ECHO_T}no, using $LN_S" >&6; }
6054 fi
6055
6056 { echo "$as_me:$LINENO: checking whether ln works" >&5
6057 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
6058 rm -f conf$$ conf$$.file
6059 echo >conf$$.file
6060 if ln conf$$.file conf$$ 2>/dev/null; then
6061   LN=ln
6062
6063   { echo "$as_me:$LINENO: result: yes" >&5
6064 echo "${ECHO_T}yes" >&6; }
6065 else
6066   LN="cp -p"
6067
6068   { echo "$as_me:$LINENO: result: no, using $LN" >&5
6069 echo "${ECHO_T}no, using $LN" >&6; }
6070 fi
6071 rm -f conf$$ conf$$.file
6072 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6073 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6074 if test "${ac_cv_path_GREP+set}" = set; then
6075   echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077   # Extract the first word of "grep ggrep" to use in msg output
6078 if test -z "$GREP"; then
6079 set dummy grep ggrep; ac_prog_name=$2
6080 if test "${ac_cv_path_GREP+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   ac_path_GREP_found=false
6084 # Loop through the user's path and test for each of PROGNAME-LIST
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6087 do
6088   IFS=$as_save_IFS
6089   test -z "$as_dir" && as_dir=.
6090   for ac_prog in grep ggrep; do
6091   for ac_exec_ext in '' $ac_executable_extensions; do
6092     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6093     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6094     # Check for GNU ac_path_GREP and select it if it is found.
6095   # Check for GNU $ac_path_GREP
6096 case `"$ac_path_GREP" --version 2>&1` in
6097 *GNU*)
6098   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6099 *)
6100   ac_count=0
6101   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6102   while :
6103   do
6104     cat "conftest.in" "conftest.in" >"conftest.tmp"
6105     mv "conftest.tmp" "conftest.in"
6106     cp "conftest.in" "conftest.nl"
6107     echo 'GREP' >> "conftest.nl"
6108     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6110     ac_count=`expr $ac_count + 1`
6111     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6112       # Best one so far, save it but keep looking for a better one
6113       ac_cv_path_GREP="$ac_path_GREP"
6114       ac_path_GREP_max=$ac_count
6115     fi
6116     # 10*(2^10) chars as input seems more than enough
6117     test $ac_count -gt 10 && break
6118   done
6119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6120 esac
6121
6122
6123     $ac_path_GREP_found && break 3
6124   done
6125 done
6126
6127 done
6128 IFS=$as_save_IFS
6129
6130
6131 fi
6132
6133 GREP="$ac_cv_path_GREP"
6134 if test -z "$GREP"; then
6135   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6137    { (exit 1); exit 1; }; }
6138 fi
6139
6140 else
6141   ac_cv_path_GREP=$GREP
6142 fi
6143
6144
6145 fi
6146 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6147 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6148  GREP="$ac_cv_path_GREP"
6149
6150
6151 { echo "$as_me:$LINENO: checking for egrep" >&5
6152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6153 if test "${ac_cv_path_EGREP+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6157    then ac_cv_path_EGREP="$GREP -E"
6158    else
6159      # Extract the first word of "egrep" to use in msg output
6160 if test -z "$EGREP"; then
6161 set dummy egrep; ac_prog_name=$2
6162 if test "${ac_cv_path_EGREP+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165   ac_path_EGREP_found=false
6166 # Loop through the user's path and test for each of PROGNAME-LIST
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6169 do
6170   IFS=$as_save_IFS
6171   test -z "$as_dir" && as_dir=.
6172   for ac_prog in egrep; do
6173   for ac_exec_ext in '' $ac_executable_extensions; do
6174     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6175     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6176     # Check for GNU ac_path_EGREP and select it if it is found.
6177   # Check for GNU $ac_path_EGREP
6178 case `"$ac_path_EGREP" --version 2>&1` in
6179 *GNU*)
6180   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6181 *)
6182   ac_count=0
6183   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6184   while :
6185   do
6186     cat "conftest.in" "conftest.in" >"conftest.tmp"
6187     mv "conftest.tmp" "conftest.in"
6188     cp "conftest.in" "conftest.nl"
6189     echo 'EGREP' >> "conftest.nl"
6190     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6191     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6192     ac_count=`expr $ac_count + 1`
6193     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6194       # Best one so far, save it but keep looking for a better one
6195       ac_cv_path_EGREP="$ac_path_EGREP"
6196       ac_path_EGREP_max=$ac_count
6197     fi
6198     # 10*(2^10) chars as input seems more than enough
6199     test $ac_count -gt 10 && break
6200   done
6201   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6202 esac
6203
6204
6205     $ac_path_EGREP_found && break 3
6206   done
6207 done
6208
6209 done
6210 IFS=$as_save_IFS
6211
6212
6213 fi
6214
6215 EGREP="$ac_cv_path_EGREP"
6216 if test -z "$EGREP"; then
6217   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6218 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6219    { (exit 1); exit 1; }; }
6220 fi
6221
6222 else
6223   ac_cv_path_EGREP=$EGREP
6224 fi
6225
6226
6227    fi
6228 fi
6229 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6230 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6231  EGREP="$ac_cv_path_EGREP"
6232
6233
6234 # Extract the first word of "ldconfig", so it can be a program name with args.
6235 set dummy ldconfig; ac_word=$2
6236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6238 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   case $LDCONFIG in
6242   [\\/]* | ?:[\\/]*)
6243   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6244   ;;
6245   *)
6246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in /sbin /usr/sbin $PATH
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251   for ac_exec_ext in '' $ac_executable_extensions; do
6252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6262   ;;
6263 esac
6264 fi
6265 LDCONFIG=$ac_cv_path_LDCONFIG
6266 if test -n "$LDCONFIG"; then
6267   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6268 echo "${ECHO_T}$LDCONFIG" >&6; }
6269 else
6270   { echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6; }
6272 fi
6273
6274
6275 # Find a good install program.  We prefer a C program (faster),
6276 # so one script is as good as another.  But avoid the broken or
6277 # incompatible versions:
6278 # SysV /etc/install, /usr/sbin/install
6279 # SunOS /usr/etc/install
6280 # IRIX /sbin/install
6281 # AIX /bin/install
6282 # AmigaOS /C/install, which installs bootblocks on floppy discs
6283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6286 # OS/2's system install, which has a completely different semantic
6287 # ./install, which can be erroneously created by make from ./install.sh.
6288 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6289 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6290 if test -z "$INSTALL"; then
6291 if test "${ac_cv_path_install+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299   # Account for people who put trailing slashes in PATH elements.
6300 case $as_dir/ in
6301   ./ | .// | /cC/* | \
6302   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6303   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6304   /usr/ucb/* ) ;;
6305   *)
6306     # OSF1 and SCO ODT 3.0 have their own names for install.
6307     # Don't use installbsd from OSF since it installs stuff as root
6308     # by default.
6309     for ac_prog in ginstall scoinst install; do
6310       for ac_exec_ext in '' $ac_executable_extensions; do
6311         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6312           if test $ac_prog = install &&
6313             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6314             # AIX install.  It has an incompatible calling convention.
6315             :
6316           elif test $ac_prog = install &&
6317             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6318             # program-specific install script used by HP pwplus--don't use.
6319             :
6320           else
6321             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6322             break 3
6323           fi
6324         fi
6325       done
6326     done
6327     ;;
6328 esac
6329 done
6330 IFS=$as_save_IFS
6331
6332
6333 fi
6334   if test "${ac_cv_path_install+set}" = set; then
6335     INSTALL=$ac_cv_path_install
6336   else
6337     # As a last resort, use the slow shell script.  Don't cache a
6338     # value for INSTALL within a source directory, because that will
6339     # break other packages using the cache if that directory is
6340     # removed, or if the value is a relative name.
6341     INSTALL=$ac_install_sh
6342   fi
6343 fi
6344 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6345 echo "${ECHO_T}$INSTALL" >&6; }
6346
6347 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6348 # It thinks the first close brace ends the variable substitution.
6349 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6350
6351 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6352
6353 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6354
6355 case "$INSTALL" in
6356   [\\/$]* | ?:[\\/]* ) ;;
6357   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6358 esac
6359
6360 for ac_prog in lclint lint
6361 do
6362   # Extract the first word of "$ac_prog", so it can be a program name with args.
6363 set dummy $ac_prog; ac_word=$2
6364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6366 if test "${ac_cv_prog_LINT+set}" = set; then
6367   echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369   if test -n "$LINT"; then
6370   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377   for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_prog_LINT="$ac_prog"
6380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 LINT=$ac_cv_prog_LINT
6390 if test -n "$LINT"; then
6391   { echo "$as_me:$LINENO: result: $LINT" >&5
6392 echo "${ECHO_T}$LINT" >&6; }
6393 else
6394   { echo "$as_me:$LINENO: result: no" >&5
6395 echo "${ECHO_T}no" >&6; }
6396 fi
6397
6398
6399   test -n "$LINT" && break
6400 done
6401
6402 if test "$LINT" = "lint"
6403 then
6404   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6405   fi
6406
6407
6408
6409 for ac_prog in fontforge
6410 do
6411   # Extract the first word of "$ac_prog", so it can be a program name with args.
6412 set dummy $ac_prog; ac_word=$2
6413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6416   echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418   if test -n "$FONTFORGE"; then
6419   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424   IFS=$as_save_IFS
6425   test -z "$as_dir" && as_dir=.
6426   for ac_exec_ext in '' $ac_executable_extensions; do
6427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428     ac_cv_prog_FONTFORGE="$ac_prog"
6429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430     break 2
6431   fi
6432 done
6433 done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 FONTFORGE=$ac_cv_prog_FONTFORGE
6439 if test -n "$FONTFORGE"; then
6440   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6441 echo "${ECHO_T}$FONTFORGE" >&6; }
6442 else
6443   { echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6; }
6445 fi
6446
6447
6448   test -n "$FONTFORGE" && break
6449 done
6450 test -n "$FONTFORGE" || FONTFORGE="false"
6451
6452 for ac_prog in pkg-config
6453 do
6454   # Extract the first word of "$ac_prog", so it can be a program name with args.
6455 set dummy $ac_prog; ac_word=$2
6456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   if test -n "$PKG_CONFIG"; then
6462   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469   for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_prog_PKG_CONFIG="$ac_prog"
6472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6482 if test -n "$PKG_CONFIG"; then
6483   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6484 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6485 else
6486   { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6488 fi
6489
6490
6491   test -n "$PKG_CONFIG" && break
6492 done
6493 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6494
6495 for ac_prog in rsvg
6496 do
6497   # Extract the first word of "$ac_prog", so it can be a program name with args.
6498 set dummy $ac_prog; ac_word=$2
6499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6501 if test "${ac_cv_prog_RSVG+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   if test -n "$RSVG"; then
6505   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510   IFS=$as_save_IFS
6511   test -z "$as_dir" && as_dir=.
6512   for ac_exec_ext in '' $ac_executable_extensions; do
6513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514     ac_cv_prog_RSVG="$ac_prog"
6515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6516     break 2
6517   fi
6518 done
6519 done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 RSVG=$ac_cv_prog_RSVG
6525 if test -n "$RSVG"; then
6526   { echo "$as_me:$LINENO: result: $RSVG" >&5
6527 echo "${ECHO_T}$RSVG" >&6; }
6528 else
6529   { echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6; }
6531 fi
6532
6533
6534   test -n "$RSVG" && break
6535 done
6536 test -n "$RSVG" || RSVG="false"
6537
6538 for ac_prog in icotool
6539 do
6540   # Extract the first word of "$ac_prog", so it can be a program name with args.
6541 set dummy $ac_prog; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_prog_ICOTOOL+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   if test -n "$ICOTOOL"; then
6548   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_prog_ICOTOOL="$ac_prog"
6558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 ICOTOOL=$ac_cv_prog_ICOTOOL
6568 if test -n "$ICOTOOL"; then
6569   { echo "$as_me:$LINENO: result: $ICOTOOL" >&5
6570 echo "${ECHO_T}$ICOTOOL" >&6; }
6571 else
6572   { echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6; }
6574 fi
6575
6576
6577   test -n "$ICOTOOL" && break
6578 done
6579 test -n "$ICOTOOL" || ICOTOOL="false"
6580
6581
6582 if test "${enable_maintainer_mode+set}" = set
6583 then
6584   if test "$FONTFORGE" = "false"; then wine_warnings="$wine_warnings|fontforge is missing, fonts can't be rebuilt."; fi
6585   if test "$RSVG" = "false"; then wine_warnings="$wine_warnings|rsvg is missing, icons can't be rebuilt."; fi
6586   if test "$ICOTOOL" = "false"; then wine_warnings="$wine_warnings|icotool is missing, icons can't be rebuilt."; fi
6587 fi
6588
6589 case $host_cpu in
6590   *i[3456789]86*)
6591     # Extract the first word of "prelink", so it can be a program name with args.
6592 set dummy prelink; ac_word=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_path_PRELINK+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   case $PRELINK in
6599   [\\/]* | ?:[\\/]*)
6600   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6601   ;;
6602   *)
6603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in /sbin /usr/sbin $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608   for ac_exec_ext in '' $ac_executable_extensions; do
6609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6619   ;;
6620 esac
6621 fi
6622 PRELINK=$ac_cv_path_PRELINK
6623 if test -n "$PRELINK"; then
6624   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6625 echo "${ECHO_T}$PRELINK" >&6; }
6626 else
6627   { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6629 fi
6630
6631
6632     ;;
6633 esac
6634
6635
6636
6637 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6638 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6639 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642   ac_check_lib_save_LIBS=$LIBS
6643 LIBS="-li386  $LIBS"
6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h.  */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h.  */
6650
6651 /* Override any GCC internal prototype to avoid an error.
6652    Use char because int might match the return type of a GCC
6653    builtin and then its argument prototype would still apply.  */
6654 #ifdef __cplusplus
6655 extern "C"
6656 #endif
6657 char i386_set_ldt ();
6658 int
6659 main ()
6660 {
6661 return i386_set_ldt ();
6662   ;
6663   return 0;
6664 }
6665 _ACEOF
6666 rm -f conftest.$ac_objext conftest$ac_exeext
6667 if { (ac_try="$ac_link"
6668 case "(($ac_try" in
6669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670   *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673   (eval "$ac_link") 2>conftest.er1
6674   ac_status=$?
6675   grep -v '^ *+' conftest.er1 >conftest.err
6676   rm -f conftest.er1
6677   cat conftest.err >&5
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); } && {
6680          test -z "$ac_c_werror_flag" ||
6681          test ! -s conftest.err
6682        } && test -s conftest$ac_exeext &&
6683        $as_test_x conftest$ac_exeext; then
6684   ac_cv_lib_i386_i386_set_ldt=yes
6685 else
6686   echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6688
6689         ac_cv_lib_i386_i386_set_ldt=no
6690 fi
6691
6692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6693       conftest$ac_exeext conftest.$ac_ext
6694 LIBS=$ac_check_lib_save_LIBS
6695 fi
6696 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6697 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
6698 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
6699   cat >>confdefs.h <<_ACEOF
6700 #define HAVE_LIBI386 1
6701 _ACEOF
6702
6703   LIBS="-li386 $LIBS"
6704
6705 fi
6706
6707
6708 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6709 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6710 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   ac_check_lib_save_LIBS=$LIBS
6714 LIBS="-lossaudio  $LIBS"
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h.  */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h.  */
6721
6722 /* Override any GCC internal prototype to avoid an error.
6723    Use char because int might match the return type of a GCC
6724    builtin and then its argument prototype would still apply.  */
6725 #ifdef __cplusplus
6726 extern "C"
6727 #endif
6728 char _oss_ioctl ();
6729 int
6730 main ()
6731 {
6732 return _oss_ioctl ();
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (ac_try="$ac_link"
6739 case "(($ac_try" in
6740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741   *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744   (eval "$ac_link") 2>conftest.er1
6745   ac_status=$?
6746   grep -v '^ *+' conftest.er1 >conftest.err
6747   rm -f conftest.er1
6748   cat conftest.err >&5
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); } && {
6751          test -z "$ac_c_werror_flag" ||
6752          test ! -s conftest.err
6753        } && test -s conftest$ac_exeext &&
6754        $as_test_x conftest$ac_exeext; then
6755   ac_cv_lib_ossaudio__oss_ioctl=yes
6756 else
6757   echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6759
6760         ac_cv_lib_ossaudio__oss_ioctl=no
6761 fi
6762
6763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6764       conftest$ac_exeext conftest.$ac_ext
6765 LIBS=$ac_check_lib_save_LIBS
6766 fi
6767 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6768 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6769 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6770   cat >>confdefs.h <<_ACEOF
6771 #define HAVE_LIBOSSAUDIO 1
6772 _ACEOF
6773
6774   LIBS="-lossaudio $LIBS"
6775
6776 fi
6777
6778 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6779 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
6780 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   ac_check_lib_save_LIBS=$LIBS
6784 LIBS="-lpthread  $LIBS"
6785 cat >conftest.$ac_ext <<_ACEOF
6786 /* confdefs.h.  */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h.  */
6791
6792 /* Override any GCC internal prototype to avoid an error.
6793    Use char because int might match the return type of a GCC
6794    builtin and then its argument prototype would still apply.  */
6795 #ifdef __cplusplus
6796 extern "C"
6797 #endif
6798 char pthread_create ();
6799 int
6800 main ()
6801 {
6802 return pthread_create ();
6803   ;
6804   return 0;
6805 }
6806 _ACEOF
6807 rm -f conftest.$ac_objext conftest$ac_exeext
6808 if { (ac_try="$ac_link"
6809 case "(($ac_try" in
6810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811   *) ac_try_echo=$ac_try;;
6812 esac
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814   (eval "$ac_link") 2>conftest.er1
6815   ac_status=$?
6816   grep -v '^ *+' conftest.er1 >conftest.err
6817   rm -f conftest.er1
6818   cat conftest.err >&5
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } && {
6821          test -z "$ac_c_werror_flag" ||
6822          test ! -s conftest.err
6823        } && test -s conftest$ac_exeext &&
6824        $as_test_x conftest$ac_exeext; then
6825   ac_cv_lib_pthread_pthread_create=yes
6826 else
6827   echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6829
6830         ac_cv_lib_pthread_pthread_create=no
6831 fi
6832
6833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6834       conftest$ac_exeext conftest.$ac_ext
6835 LIBS=$ac_check_lib_save_LIBS
6836 fi
6837 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6838 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
6839 if test $ac_cv_lib_pthread_pthread_create = yes; then
6840   LIBPTHREAD="-lpthread"
6841
6842 fi
6843
6844
6845 XLIB=""
6846
6847 XFILES=""
6848
6849 OPENGLFILES=""
6850
6851 GLU32FILES=""
6852
6853 OPENGL_LIBS=""
6854
6855 QUARTZFILES=""
6856
6857
6858
6859 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6860 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6861 if test "${ac_cv_header_stdc+set}" = set; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864   cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h.  */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h.  */
6870 #include <stdlib.h>
6871 #include <stdarg.h>
6872 #include <string.h>
6873 #include <float.h>
6874
6875 int
6876 main ()
6877 {
6878
6879   ;
6880   return 0;
6881 }
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887   *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890   (eval "$ac_compile") 2>conftest.er1
6891   ac_status=$?
6892   grep -v '^ *+' conftest.er1 >conftest.err
6893   rm -f conftest.er1
6894   cat conftest.err >&5
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); } && {
6897          test -z "$ac_c_werror_flag" ||
6898          test ! -s conftest.err
6899        } && test -s conftest.$ac_objext; then
6900   ac_cv_header_stdc=yes
6901 else
6902   echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905         ac_cv_header_stdc=no
6906 fi
6907
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909
6910 if test $ac_cv_header_stdc = yes; then
6911   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6912   cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h.  */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h.  */
6918 #include <string.h>
6919
6920 _ACEOF
6921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6922   $EGREP "memchr" >/dev/null 2>&1; then
6923   :
6924 else
6925   ac_cv_header_stdc=no
6926 fi
6927 rm -f conftest*
6928
6929 fi
6930
6931 if test $ac_cv_header_stdc = yes; then
6932   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6933   cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939 #include <stdlib.h>
6940
6941 _ACEOF
6942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6943   $EGREP "free" >/dev/null 2>&1; then
6944   :
6945 else
6946   ac_cv_header_stdc=no
6947 fi
6948 rm -f conftest*
6949
6950 fi
6951
6952 if test $ac_cv_header_stdc = yes; then
6953   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6954   if test "$cross_compiling" = yes; then
6955   :
6956 else
6957   cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h.  */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h.  */
6963 #include <ctype.h>
6964 #include <stdlib.h>
6965 #if ((' ' & 0x0FF) == 0x020)
6966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6968 #else
6969 # define ISLOWER(c) \
6970                    (('a' <= (c) && (c) <= 'i') \
6971                      || ('j' <= (c) && (c) <= 'r') \
6972                      || ('s' <= (c) && (c) <= 'z'))
6973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6974 #endif
6975
6976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6977 int
6978 main ()
6979 {
6980   int i;
6981   for (i = 0; i < 256; i++)
6982     if (XOR (islower (i), ISLOWER (i))
6983         || toupper (i) != TOUPPER (i))
6984       return 2;
6985   return 0;
6986 }
6987 _ACEOF
6988 rm -f conftest$ac_exeext
6989 if { (ac_try="$ac_link"
6990 case "(($ac_try" in
6991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992   *) ac_try_echo=$ac_try;;
6993 esac
6994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6995   (eval "$ac_link") 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6999   { (case "(($ac_try" in
7000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001   *) ac_try_echo=$ac_try;;
7002 esac
7003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004   (eval "$ac_try") 2>&5
7005   ac_status=$?
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); }; }; then
7008   :
7009 else
7010   echo "$as_me: program exited with status $ac_status" >&5
7011 echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7013
7014 ( exit $ac_status )
7015 ac_cv_header_stdc=no
7016 fi
7017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7018 fi
7019
7020
7021 fi
7022 fi
7023 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7024 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7025 if test $ac_cv_header_stdc = yes; then
7026
7027 cat >>confdefs.h <<\_ACEOF
7028 #define STDC_HEADERS 1
7029 _ACEOF
7030
7031 fi
7032
7033 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7044                   inttypes.h stdint.h unistd.h
7045 do
7046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7050   echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052   cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h.  */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h.  */
7058 $ac_includes_default
7059
7060 #include <$ac_header>
7061 _ACEOF
7062 rm -f conftest.$ac_objext
7063 if { (ac_try="$ac_compile"
7064 case "(($ac_try" in
7065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066   *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069   (eval "$ac_compile") 2>conftest.er1
7070   ac_status=$?
7071   grep -v '^ *+' conftest.er1 >conftest.err
7072   rm -f conftest.er1
7073   cat conftest.err >&5
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } && {
7076          test -z "$ac_c_werror_flag" ||
7077          test ! -s conftest.err
7078        } && test -s conftest.$ac_objext; then
7079   eval "$as_ac_Header=yes"
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084         eval "$as_ac_Header=no"
7085 fi
7086
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088 fi
7089 ac_res=`eval echo '${'$as_ac_Header'}'`
7090                { echo "$as_me:$LINENO: result: $ac_res" >&5
7091 echo "${ECHO_T}$ac_res" >&6; }
7092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7093   cat >>confdefs.h <<_ACEOF
7094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7095 _ACEOF
7096
7097 fi
7098
7099 done
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213 for ac_header in \
7214         AudioUnit/AudioUnit.h \
7215         Carbon/Carbon.h \
7216         CoreAudio/CoreAudio.h \
7217         DiskArbitration/DiskArbitration.h \
7218         IOKit/IOKitLib.h \
7219         alias.h \
7220         alsa/asoundlib.h \
7221         arpa/inet.h \
7222         arpa/nameser.h \
7223         asm/types.h \
7224         capi20.h \
7225         cups/cups.h \
7226         curses.h \
7227         direct.h \
7228         dlfcn.h \
7229         elf.h \
7230         float.h \
7231         fontconfig/fontconfig.h \
7232         getopt.h \
7233         ieeefp.h \
7234         io.h \
7235         jack/jack.h \
7236         jpeglib.h \
7237         lber.h \
7238         lcms.h \
7239         lcms/lcms.h \
7240         ldap.h \
7241         libaudioio.h \
7242         link.h \
7243         linux/cdrom.h \
7244         linux/compiler.h \
7245         linux/hdreg.h \
7246         linux/input.h \
7247         linux/ioctl.h \
7248         linux/joystick.h \
7249         linux/major.h \
7250         linux/param.h \
7251         linux/serial.h \
7252         linux/ucdrom.h \
7253         mach/mach.h \
7254         mach/machine.h \
7255         machine/cpu.h \
7256         machine/limits.h \
7257         machine/soundcard.h \
7258         mntent.h \
7259         ncurses.h \
7260         netdb.h \
7261         netinet/in.h \
7262         netinet/in_systm.h \
7263         netinet/tcp.h \
7264         netinet/tcp_fsm.h \
7265         openssl/err.h \
7266         openssl/ssl.h \
7267         png.h \
7268         poll.h \
7269         process.h \
7270         pthread.h \
7271         pwd.h \
7272         regex.h \
7273         sched.h \
7274         scsi/scsi.h \
7275         scsi/scsi_ioctl.h \
7276         scsi/sg.h \
7277         soundcard.h \
7278         stdint.h \
7279         strings.h \
7280         sys/asoundlib.h \
7281         sys/cdio.h \
7282         sys/elf32.h \
7283         sys/epoll.h \
7284         sys/errno.h \
7285         sys/event.h \
7286         sys/exec_elf.h \
7287         sys/filio.h \
7288         sys/ioctl.h \
7289         sys/ipc.h \
7290         sys/limits.h \
7291         sys/link.h \
7292         sys/lwp.h \
7293         sys/mman.h \
7294         sys/modem.h \
7295         sys/msg.h \
7296         sys/mtio.h \
7297         sys/param.h \
7298         sys/poll.h \
7299         sys/prctl.h \
7300         sys/ptrace.h \
7301         sys/reg.h \
7302         sys/resource.h \
7303         sys/scsiio.h \
7304         sys/shm.h \
7305         sys/signal.h \
7306         sys/socket.h \
7307         sys/socketvar.h \
7308         sys/sockio.h \
7309         sys/soundcard.h \
7310         sys/statvfs.h \
7311         sys/strtio.h \
7312         sys/syscall.h \
7313         sys/sysctl.h \
7314         sys/time.h \
7315         sys/times.h \
7316         sys/uio.h \
7317         sys/un.h \
7318         sys/vm86.h \
7319         sys/wait.h \
7320         syscall.h \
7321         termios.h \
7322         unistd.h \
7323         utime.h \
7324         valgrind/memcheck.h
7325
7326 do
7327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7329   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7332   echo $ECHO_N "(cached) $ECHO_C" >&6
7333 fi
7334 ac_res=`eval echo '${'$as_ac_Header'}'`
7335                { echo "$as_me:$LINENO: result: $ac_res" >&5
7336 echo "${ECHO_T}$ac_res" >&6; }
7337 else
7338   # Is the header compilable?
7339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h.  */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h.  */
7347 $ac_includes_default
7348 #include <$ac_header>
7349 _ACEOF
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7352 case "(($ac_try" in
7353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354   *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357   (eval "$ac_compile") 2>conftest.er1
7358   ac_status=$?
7359   grep -v '^ *+' conftest.er1 >conftest.err
7360   rm -f conftest.er1
7361   cat conftest.err >&5
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } && {
7364          test -z "$ac_c_werror_flag" ||
7365          test ! -s conftest.err
7366        } && test -s conftest.$ac_objext; then
7367   ac_header_compiler=yes
7368 else
7369   echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372         ac_header_compiler=no
7373 fi
7374
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7377 echo "${ECHO_T}$ac_header_compiler" >&6; }
7378
7379 # Is the header present?
7380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388 #include <$ac_header>
7389 _ACEOF
7390 if { (ac_try="$ac_cpp conftest.$ac_ext"
7391 case "(($ac_try" in
7392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393   *) ac_try_echo=$ac_try;;
7394 esac
7395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7397   ac_status=$?
7398   grep -v '^ *+' conftest.er1 >conftest.err
7399   rm -f conftest.er1
7400   cat conftest.err >&5
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); } >/dev/null && {
7403          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7404          test ! -s conftest.err
7405        }; then
7406   ac_header_preproc=yes
7407 else
7408   echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7410
7411   ac_header_preproc=no
7412 fi
7413
7414 rm -f conftest.err conftest.$ac_ext
7415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7416 echo "${ECHO_T}$ac_header_preproc" >&6; }
7417
7418 # So?  What about this header?
7419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7420   yes:no: )
7421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7425     ac_header_preproc=yes
7426     ;;
7427   no:yes:* )
7428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7440     ( cat <<\_ASBOX
7441 ## ------------------------------------ ##
7442 ## Report this to wine-devel@winehq.org ##
7443 ## ------------------------------------ ##
7444 _ASBOX
7445      ) | sed "s/^/$as_me: WARNING:     /" >&2
7446     ;;
7447 esac
7448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   eval "$as_ac_Header=\$ac_header_preproc"
7454 fi
7455 ac_res=`eval echo '${'$as_ac_Header'}'`
7456                { echo "$as_me:$LINENO: result: $ac_res" >&5
7457 echo "${ECHO_T}$ac_res" >&6; }
7458
7459 fi
7460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7461   cat >>confdefs.h <<_ACEOF
7462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7463 _ACEOF
7464
7465 fi
7466
7467 done
7468
7469 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7470 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7471 if test "${ac_cv_header_stat_broken+set}" = set; then
7472   echo $ECHO_N "(cached) $ECHO_C" >&6
7473 else
7474   cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h.  */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h.  */
7480 #include <sys/types.h>
7481 #include <sys/stat.h>
7482
7483 #if defined S_ISBLK && defined S_IFDIR
7484 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7485 #endif
7486
7487 #if defined S_ISBLK && defined S_IFCHR
7488 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7489 #endif
7490
7491 #if defined S_ISLNK && defined S_IFREG
7492 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7493 #endif
7494
7495 #if defined S_ISSOCK && defined S_IFREG
7496 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7497 #endif
7498
7499 _ACEOF
7500 rm -f conftest.$ac_objext
7501 if { (ac_try="$ac_compile"
7502 case "(($ac_try" in
7503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504   *) ac_try_echo=$ac_try;;
7505 esac
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507   (eval "$ac_compile") 2>conftest.er1
7508   ac_status=$?
7509   grep -v '^ *+' conftest.er1 >conftest.err
7510   rm -f conftest.er1
7511   cat conftest.err >&5
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); } && {
7514          test -z "$ac_c_werror_flag" ||
7515          test ! -s conftest.err
7516        } && test -s conftest.$ac_objext; then
7517   ac_cv_header_stat_broken=no
7518 else
7519   echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7521
7522         ac_cv_header_stat_broken=yes
7523 fi
7524
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 fi
7527 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7528 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7529 if test $ac_cv_header_stat_broken = yes; then
7530
7531 cat >>confdefs.h <<\_ACEOF
7532 #define STAT_MACROS_BROKEN 1
7533 _ACEOF
7534
7535 fi
7536
7537
7538
7539
7540
7541
7542
7543 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7544 do
7545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h.  */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h.  */
7557 #include <sys/types.h>
7558      #ifdef HAVE_SYS_PARAM_H
7559      # include <sys/param.h>
7560      #endif
7561
7562 #include <$ac_header>
7563 _ACEOF
7564 rm -f conftest.$ac_objext
7565 if { (ac_try="$ac_compile"
7566 case "(($ac_try" in
7567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568   *) ac_try_echo=$ac_try;;
7569 esac
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571   (eval "$ac_compile") 2>conftest.er1
7572   ac_status=$?
7573   grep -v '^ *+' conftest.er1 >conftest.err
7574   rm -f conftest.er1
7575   cat conftest.err >&5
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); } && {
7578          test -z "$ac_c_werror_flag" ||
7579          test ! -s conftest.err
7580        } && test -s conftest.$ac_objext; then
7581   eval "$as_ac_Header=yes"
7582 else
7583   echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7585
7586         eval "$as_ac_Header=no"
7587 fi
7588
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 fi
7591 ac_res=`eval echo '${'$as_ac_Header'}'`
7592                { echo "$as_me:$LINENO: result: $ac_res" >&5
7593 echo "${ECHO_T}$ac_res" >&6; }
7594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7595   cat >>confdefs.h <<_ACEOF
7596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7597 _ACEOF
7598
7599 fi
7600
7601 done
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616 for ac_header in \
7617         netinet/ip.h \
7618         net/if.h \
7619         net/if_arp.h \
7620         net/if_dl.h \
7621         net/if_types.h \
7622         net/route.h \
7623         netinet/if_ether.h \
7624         netinet/in_pcb.h \
7625         netinet/ip_icmp.h \
7626         netinet/ip_var.h \
7627         netinet/udp.h \
7628         netipx/ipx.h \
7629
7630 do
7631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h.  */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h.  */
7643 #include <sys/types.h>
7644      #ifdef HAVE_SYS_SOCKET_H
7645      # include <sys/socket.h>
7646      #endif
7647      #ifdef HAVE_SYS_SOCKETVAR_H
7648      # include <sys/socketvar.h>
7649      #endif
7650      #ifdef HAVE_NETINET_IN_H
7651      # include <netinet/in.h>
7652      #endif
7653      #ifdef HAVE_NETINET_IP_H
7654      # include <netinet/ip.h>
7655      #endif
7656
7657 #include <$ac_header>
7658 _ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (ac_try="$ac_compile"
7661 case "(($ac_try" in
7662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663   *) ac_try_echo=$ac_try;;
7664 esac
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666   (eval "$ac_compile") 2>conftest.er1
7667   ac_status=$?
7668   grep -v '^ *+' conftest.er1 >conftest.err
7669   rm -f conftest.er1
7670   cat conftest.err >&5
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); } && {
7673          test -z "$ac_c_werror_flag" ||
7674          test ! -s conftest.err
7675        } && test -s conftest.$ac_objext; then
7676   eval "$as_ac_Header=yes"
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681         eval "$as_ac_Header=no"
7682 fi
7683
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 fi
7686 ac_res=`eval echo '${'$as_ac_Header'}'`
7687                { echo "$as_me:$LINENO: result: $ac_res" >&5
7688 echo "${ECHO_T}$ac_res" >&6; }
7689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7690   cat >>confdefs.h <<_ACEOF
7691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7692 _ACEOF
7693
7694 fi
7695
7696 done
7697
7698
7699
7700
7701
7702
7703 for ac_header in netinet/tcp_var.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_timer.h
7704 do
7705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717 #include <sys/types.h>
7718      #ifdef HAVE_ALIAS_H
7719      # include <alias.h>
7720      #endif
7721      #ifdef HAVE_SYS_SOCKET_H
7722      # include <sys/socket.h>
7723      #endif
7724      #ifdef HAVE_SYS_SOCKETVAR_H
7725      # include <sys/socketvar.h>
7726      #endif
7727      #ifdef HAVE_NETINET_IN_H
7728      # include <netinet/in.h>
7729      #endif
7730      #ifdef HAVE_NETINET_IP_H
7731      # include <netinet/ip.h>
7732      #endif
7733      #ifdef HAVE_NETINET_IP_VAR_H
7734      # include <netinet/ip_var.h>
7735      #endif
7736      #ifdef HAVE_NETINET_IP_ICMP_H
7737      # include <netinet/ip_icmp.h>
7738      #endif
7739      #ifdef HAVE_NETINET_UDP_H
7740      # include <netinet/udp.h>
7741      #endif
7742      #ifdef HAVE_NETINET_TCP_H
7743      # include <netinet/tcp.h>
7744      #endif
7745
7746 #include <$ac_header>
7747 _ACEOF
7748 rm -f conftest.$ac_objext
7749 if { (ac_try="$ac_compile"
7750 case "(($ac_try" in
7751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752   *) ac_try_echo=$ac_try;;
7753 esac
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755   (eval "$ac_compile") 2>conftest.er1
7756   ac_status=$?
7757   grep -v '^ *+' conftest.er1 >conftest.err
7758   rm -f conftest.er1
7759   cat conftest.err >&5
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); } && {
7762          test -z "$ac_c_werror_flag" ||
7763          test ! -s conftest.err
7764        } && test -s conftest.$ac_objext; then
7765   eval "$as_ac_Header=yes"
7766 else
7767   echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7769
7770         eval "$as_ac_Header=no"
7771 fi
7772
7773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774 fi
7775 ac_res=`eval echo '${'$as_ac_Header'}'`
7776                { echo "$as_me:$LINENO: result: $ac_res" >&5
7777 echo "${ECHO_T}$ac_res" >&6; }
7778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7779   cat >>confdefs.h <<_ACEOF
7780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7781 _ACEOF
7782
7783 fi
7784
7785 done
7786
7787
7788
7789 for ac_header in linux/ipx.h
7790 do
7791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7795   echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797   cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h.  */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h.  */
7803 #include <sys/types.h>
7804      #ifdef HAVE_ASM_TYPES_H
7805      # include <asm/types.h>
7806      #endif
7807      #ifdef HAVE_SYS_SOCKET_H
7808      # include <sys/socket.h>
7809      #endif
7810
7811 #include <$ac_header>
7812 _ACEOF
7813 rm -f conftest.$ac_objext
7814 if { (ac_try="$ac_compile"
7815 case "(($ac_try" in
7816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817   *) ac_try_echo=$ac_try;;
7818 esac
7819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7820   (eval "$ac_compile") 2>conftest.er1
7821   ac_status=$?
7822   grep -v '^ *+' conftest.er1 >conftest.err
7823   rm -f conftest.er1
7824   cat conftest.err >&5
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } && {
7827          test -z "$ac_c_werror_flag" ||
7828          test ! -s conftest.err
7829        } && test -s conftest.$ac_objext; then
7830   eval "$as_ac_Header=yes"
7831 else
7832   echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835         eval "$as_ac_Header=no"
7836 fi
7837
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 fi
7840 ac_res=`eval echo '${'$as_ac_Header'}'`
7841                { echo "$as_me:$LINENO: result: $ac_res" >&5
7842 echo "${ECHO_T}$ac_res" >&6; }
7843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7844   cat >>confdefs.h <<_ACEOF
7845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7846 _ACEOF
7847
7848 fi
7849
7850 done
7851
7852
7853
7854 for ac_header in resolv.h
7855 do
7856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h.  */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h.  */
7868 #include <sys/types.h>
7869      #ifdef HAVE_SYS_SOCKET_H
7870      # include <sys/socket.h>
7871      #endif
7872      #ifdef HAVE_NETINET_IN_H
7873      # include <netinet/in.h>
7874      #endif
7875      #ifdef HAVE_ARPA_NAMESER_H
7876      # include <arpa/nameser.h>
7877      #endif
7878
7879 #include <$ac_header>
7880 _ACEOF
7881 rm -f conftest.$ac_objext
7882 if { (ac_try="$ac_compile"
7883 case "(($ac_try" in
7884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885   *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888   (eval "$ac_compile") 2>conftest.er1
7889   ac_status=$?
7890   grep -v '^ *+' conftest.er1 >conftest.err
7891   rm -f conftest.er1
7892   cat conftest.err >&5
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); } && {
7895          test -z "$ac_c_werror_flag" ||
7896          test ! -s conftest.err
7897        } && test -s conftest.$ac_objext; then
7898   eval "$as_ac_Header=yes"
7899 else
7900   echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7902
7903         eval "$as_ac_Header=no"
7904 fi
7905
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 fi
7908 ac_res=`eval echo '${'$as_ac_Header'}'`
7909                { echo "$as_me:$LINENO: result: $ac_res" >&5
7910 echo "${ECHO_T}$ac_res" >&6; }
7911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7912   cat >>confdefs.h <<_ACEOF
7913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7914 _ACEOF
7915
7916 fi
7917
7918 done
7919
7920
7921
7922 for ac_header in ucontext.h
7923 do
7924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7928   echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930   cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h.  */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h.  */
7936 #include <signal.h>
7937
7938 #include <$ac_header>
7939 _ACEOF
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7942 case "(($ac_try" in
7943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944   *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947   (eval "$ac_compile") 2>conftest.er1
7948   ac_status=$?
7949   grep -v '^ *+' conftest.er1 >conftest.err
7950   rm -f conftest.er1
7951   cat conftest.err >&5
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); } && {
7954          test -z "$ac_c_werror_flag" ||
7955          test ! -s conftest.err
7956        } && test -s conftest.$ac_objext; then
7957   eval "$as_ac_Header=yes"
7958 else
7959   echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962         eval "$as_ac_Header=no"
7963 fi
7964
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 fi
7967 ac_res=`eval echo '${'$as_ac_Header'}'`
7968                { echo "$as_me:$LINENO: result: $ac_res" >&5
7969 echo "${ECHO_T}$ac_res" >&6; }
7970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7971   cat >>confdefs.h <<_ACEOF
7972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7973 _ACEOF
7974
7975 fi
7976
7977 done
7978
7979
7980
7981 for ac_header in sys/thr.h
7982 do
7983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7987   echo $ECHO_N "(cached) $ECHO_C" >&6
7988 else
7989   cat >conftest.$ac_ext <<_ACEOF
7990 /* confdefs.h.  */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h.  */
7995 #include <sys/types.h>
7996 #ifdef HAVE_UCONTEXT_H
7997 #include <ucontext.h>
7998 #endif
7999
8000 #include <$ac_header>
8001 _ACEOF
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8004 case "(($ac_try" in
8005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006   *) ac_try_echo=$ac_try;;
8007 esac
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009   (eval "$ac_compile") 2>conftest.er1
8010   ac_status=$?
8011   grep -v '^ *+' conftest.er1 >conftest.err
8012   rm -f conftest.er1
8013   cat conftest.err >&5
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); } && {
8016          test -z "$ac_c_werror_flag" ||
8017          test ! -s conftest.err
8018        } && test -s conftest.$ac_objext; then
8019   eval "$as_ac_Header=yes"
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024         eval "$as_ac_Header=no"
8025 fi
8026
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 fi
8029 ac_res=`eval echo '${'$as_ac_Header'}'`
8030                { echo "$as_me:$LINENO: result: $ac_res" >&5
8031 echo "${ECHO_T}$ac_res" >&6; }
8032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8033   cat >>confdefs.h <<_ACEOF
8034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8035 _ACEOF
8036
8037 fi
8038
8039 done
8040
8041
8042
8043 for ac_header in pthread_np.h
8044 do
8045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051   cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057 #ifdef HAVE_PTHREAD_H
8058 #include <pthread.h>
8059 #endif
8060
8061 #include <$ac_header>
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8065 case "(($ac_try" in
8066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067   *) ac_try_echo=$ac_try;;
8068 esac
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070   (eval "$ac_compile") 2>conftest.er1
8071   ac_status=$?
8072   grep -v '^ *+' conftest.er1 >conftest.err
8073   rm -f conftest.er1
8074   cat conftest.err >&5
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } && {
8077          test -z "$ac_c_werror_flag" ||
8078          test ! -s conftest.err
8079        } && test -s conftest.$ac_objext; then
8080   eval "$as_ac_Header=yes"
8081 else
8082   echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085         eval "$as_ac_Header=no"
8086 fi
8087
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 fi
8090 ac_res=`eval echo '${'$as_ac_Header'}'`
8091                { echo "$as_me:$LINENO: result: $ac_res" >&5
8092 echo "${ECHO_T}$ac_res" >&6; }
8093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8094   cat >>confdefs.h <<_ACEOF
8095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8096 _ACEOF
8097
8098 fi
8099
8100 done
8101
8102
8103
8104 for ac_header in linux/videodev.h
8105 do
8106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112   cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h.  */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h.  */
8118 #ifdef HAVE_SYS_TIME_H
8119 #include <sys/time.h>
8120 #endif
8121 #include <sys/types.h>
8122 #ifdef HAVE_ASM_TYPES_H
8123 #include <asm/types.h>
8124 #endif
8125
8126 #include <$ac_header>
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (ac_try="$ac_compile"
8130 case "(($ac_try" in
8131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132   *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135   (eval "$ac_compile") 2>conftest.er1
8136   ac_status=$?
8137   grep -v '^ *+' conftest.er1 >conftest.err
8138   rm -f conftest.er1
8139   cat conftest.err >&5
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); } && {
8142          test -z "$ac_c_werror_flag" ||
8143          test ! -s conftest.err
8144        } && test -s conftest.$ac_objext; then
8145   eval "$as_ac_Header=yes"
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150         eval "$as_ac_Header=no"
8151 fi
8152
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 fi
8155 ac_res=`eval echo '${'$as_ac_Header'}'`
8156                { echo "$as_me:$LINENO: result: $ac_res" >&5
8157 echo "${ECHO_T}$ac_res" >&6; }
8158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8159   cat >>confdefs.h <<_ACEOF
8160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8161 _ACEOF
8162
8163 fi
8164
8165 done
8166
8167
8168
8169 for ac_header in linux/capi.h
8170 do
8171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h.  */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h.  */
8183 #define __user
8184
8185 #include <$ac_header>
8186 _ACEOF
8187 rm -f conftest.$ac_objext
8188 if { (ac_try="$ac_compile"
8189 case "(($ac_try" in
8190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191   *) ac_try_echo=$ac_try;;
8192 esac
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194   (eval "$ac_compile") 2>conftest.er1
8195   ac_status=$?
8196   grep -v '^ *+' conftest.er1 >conftest.err
8197   rm -f conftest.er1
8198   cat conftest.err >&5
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); } && {
8201          test -z "$ac_c_werror_flag" ||
8202          test ! -s conftest.err
8203        } && test -s conftest.$ac_objext; then
8204   eval "$as_ac_Header=yes"
8205 else
8206   echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209         eval "$as_ac_Header=no"
8210 fi
8211
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 fi
8214 ac_res=`eval echo '${'$as_ac_Header'}'`
8215                { echo "$as_me:$LINENO: result: $ac_res" >&5
8216 echo "${ECHO_T}$ac_res" >&6; }
8217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8218   cat >>confdefs.h <<_ACEOF
8219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8220 _ACEOF
8221
8222 fi
8223
8224 done
8225
8226
8227
8228 DLLEXT=""
8229
8230 DLLFLAGS="-D_REENTRANT"
8231
8232 LDSHARED=""
8233
8234 LDDLLFLAGS=""
8235
8236 LIBEXT="so"
8237
8238 IMPLIBEXT="def"
8239
8240 LDRPATH_INSTALL=""
8241
8242 LDRPATH_LOCAL=""
8243
8244 # Extract the first word of "ldd", so it can be a program name with args.
8245 set dummy ldd; ac_word=$2
8246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8248 if test "${ac_cv_path_LDD+set}" = set; then
8249   echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251   case $LDD in
8252   [\\/]* | ?:[\\/]*)
8253   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
8254   ;;
8255   *)
8256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 as_dummy="/sbin:/usr/sbin:$PATH"
8258 for as_dir in $as_dummy
8259 do
8260   IFS=$as_save_IFS
8261   test -z "$as_dir" && as_dir=.
8262   for ac_exec_ext in '' $ac_executable_extensions; do
8263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
8265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8266     break 2
8267   fi
8268 done
8269 done
8270 IFS=$as_save_IFS
8271
8272   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
8273   ;;
8274 esac
8275 fi
8276 LDD=$ac_cv_path_LDD
8277 if test -n "$LDD"; then
8278   { echo "$as_me:$LINENO: result: $LDD" >&5
8279 echo "${ECHO_T}$LDD" >&6; }
8280 else
8281   { echo "$as_me:$LINENO: result: no" >&5
8282 echo "${ECHO_T}no" >&6; }
8283 fi
8284
8285
8286
8287 case $host_os in
8288   cygwin*|mingw32*)
8289     if test -n "$ac_tool_prefix"; then
8290   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8291 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8294 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8295   echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297   if test -n "$DLLTOOL"; then
8298   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8302 do
8303   IFS=$as_save_IFS
8304   test -z "$as_dir" && as_dir=.
8305   for ac_exec_ext in '' $ac_executable_extensions; do
8306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8307     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309     break 2
8310   fi
8311 done
8312 done
8313 IFS=$as_save_IFS
8314
8315 fi
8316 fi
8317 DLLTOOL=$ac_cv_prog_DLLTOOL
8318 if test -n "$DLLTOOL"; then
8319   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8320 echo "${ECHO_T}$DLLTOOL" >&6; }
8321 else
8322   { echo "$as_me:$LINENO: result: no" >&5
8323 echo "${ECHO_T}no" >&6; }
8324 fi
8325
8326
8327 fi
8328 if test -z "$ac_cv_prog_DLLTOOL"; then
8329   ac_ct_DLLTOOL=$DLLTOOL
8330   # Extract the first word of "dlltool", so it can be a program name with args.
8331 set dummy dlltool; ac_word=$2
8332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8334 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8335   echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337   if test -n "$ac_ct_DLLTOOL"; then
8338   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8339 else
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8342 do
8343   IFS=$as_save_IFS
8344   test -z "$as_dir" && as_dir=.
8345   for ac_exec_ext in '' $ac_executable_extensions; do
8346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8349     break 2
8350   fi
8351 done
8352 done
8353 IFS=$as_save_IFS
8354
8355 fi
8356 fi
8357 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8358 if test -n "$ac_ct_DLLTOOL"; then
8359   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8360 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
8361 else
8362   { echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6; }
8364 fi
8365
8366   if test "x$ac_ct_DLLTOOL" = x; then
8367     DLLTOOL="false"
8368   else
8369     case $cross_compiling:$ac_tool_warned in
8370 yes:)
8371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8372 whose name does not start with the host triplet.  If you think this
8373 configuration is useful to you, please write to autoconf@gnu.org." >&5
8374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8375 whose name does not start with the host triplet.  If you think this
8376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8377 ac_tool_warned=yes ;;
8378 esac
8379     DLLTOOL=$ac_ct_DLLTOOL
8380   fi
8381 else
8382   DLLTOOL="$ac_cv_prog_DLLTOOL"
8383 fi
8384
8385     if test -n "$ac_tool_prefix"; then
8386   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
8387 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
8388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8390 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
8391   echo $ECHO_N "(cached) $ECHO_C" >&6
8392 else
8393   if test -n "$DLLWRAP"; then
8394   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399   IFS=$as_save_IFS
8400   test -z "$as_dir" && as_dir=.
8401   for ac_exec_ext in '' $ac_executable_extensions; do
8402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
8404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405     break 2
8406   fi
8407 done
8408 done
8409 IFS=$as_save_IFS
8410
8411 fi
8412 fi
8413 DLLWRAP=$ac_cv_prog_DLLWRAP
8414 if test -n "$DLLWRAP"; then
8415   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
8416 echo "${ECHO_T}$DLLWRAP" >&6; }
8417 else
8418   { echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6; }
8420 fi
8421
8422
8423 fi
8424 if test -z "$ac_cv_prog_DLLWRAP"; then
8425   ac_ct_DLLWRAP=$DLLWRAP
8426   # Extract the first word of "dllwrap", so it can be a program name with args.
8427 set dummy dllwrap; ac_word=$2
8428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8430 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433   if test -n "$ac_ct_DLLWRAP"; then
8434   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8438 do
8439   IFS=$as_save_IFS
8440   test -z "$as_dir" && as_dir=.
8441   for ac_exec_ext in '' $ac_executable_extensions; do
8442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
8444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8445     break 2
8446   fi
8447 done
8448 done
8449 IFS=$as_save_IFS
8450
8451 fi
8452 fi
8453 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
8454 if test -n "$ac_ct_DLLWRAP"; then
8455   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
8456 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
8457 else
8458   { echo "$as_me:$LINENO: result: no" >&5
8459 echo "${ECHO_T}no" >&6; }
8460 fi
8461
8462   if test "x$ac_ct_DLLWRAP" = x; then
8463     DLLWRAP="false"
8464   else
8465     case $cross_compiling:$ac_tool_warned in
8466 yes:)
8467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8468 whose name does not start with the host triplet.  If you think this
8469 configuration is useful to you, please write to autoconf@gnu.org." >&5
8470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8471 whose name does not start with the host triplet.  If you think this
8472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8473 ac_tool_warned=yes ;;
8474 esac
8475     DLLWRAP=$ac_ct_DLLWRAP
8476   fi
8477 else
8478   DLLWRAP="$ac_cv_prog_DLLWRAP"
8479 fi
8480
8481     if test -n "$ac_tool_prefix"; then
8482   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8483 set dummy ${ac_tool_prefix}ar; ac_word=$2
8484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8486 if test "${ac_cv_prog_MINGWAR+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   if test -n "$MINGWAR"; then
8490   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
8491 else
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in $PATH
8494 do
8495   IFS=$as_save_IFS
8496   test -z "$as_dir" && as_dir=.
8497   for ac_exec_ext in '' $ac_executable_extensions; do
8498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8499     ac_cv_prog_MINGWAR="${ac_tool_prefix}ar"
8500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8501     break 2
8502   fi
8503 done
8504 done
8505 IFS=$as_save_IFS
8506
8507 fi
8508 fi
8509 MINGWAR=$ac_cv_prog_MINGWAR
8510 if test -n "$MINGWAR"; then
8511   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
8512 echo "${ECHO_T}$MINGWAR" >&6; }
8513 else
8514   { echo "$as_me:$LINENO: result: no" >&5
8515 echo "${ECHO_T}no" >&6; }
8516 fi
8517
8518
8519 fi
8520 if test -z "$ac_cv_prog_MINGWAR"; then
8521   ac_ct_MINGWAR=$MINGWAR
8522   # Extract the first word of "ar", so it can be a program name with args.
8523 set dummy ar; ac_word=$2
8524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8526 if test "${ac_cv_prog_ac_ct_MINGWAR+set}" = set; then
8527   echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529   if test -n "$ac_ct_MINGWAR"; then
8530   ac_cv_prog_ac_ct_MINGWAR="$ac_ct_MINGWAR" # Let the user override the test.
8531 else
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8534 do
8535   IFS=$as_save_IFS
8536   test -z "$as_dir" && as_dir=.
8537   for ac_exec_ext in '' $ac_executable_extensions; do
8538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539     ac_cv_prog_ac_ct_MINGWAR="ar"
8540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8541     break 2
8542   fi
8543 done
8544 done
8545 IFS=$as_save_IFS
8546
8547 fi
8548 fi
8549 ac_ct_MINGWAR=$ac_cv_prog_ac_ct_MINGWAR
8550 if test -n "$ac_ct_MINGWAR"; then
8551   { echo "$as_me:$LINENO: result: $ac_ct_MINGWAR" >&5
8552 echo "${ECHO_T}$ac_ct_MINGWAR" >&6; }
8553 else
8554   { echo "$as_me:$LINENO: result: no" >&5
8555 echo "${ECHO_T}no" >&6; }
8556 fi
8557
8558   if test "x$ac_ct_MINGWAR" = x; then
8559     MINGWAR="false"
8560   else
8561     case $cross_compiling:$ac_tool_warned in
8562 yes:)
8563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8564 whose name does not start with the host triplet.  If you think this
8565 configuration is useful to you, please write to autoconf@gnu.org." >&5
8566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8567 whose name does not start with the host triplet.  If you think this
8568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8569 ac_tool_warned=yes ;;
8570 esac
8571     MINGWAR=$ac_ct_MINGWAR
8572   fi
8573 else
8574   MINGWAR="$ac_cv_prog_MINGWAR"
8575 fi
8576
8577     if test "$DLLWRAP" = "false"; then
8578       LIBEXT="a"
8579     else
8580             LIBEXT="dll"
8581     fi
8582     IMPLIBEXT="a"
8583         WIN16_FILES=""
8584     WIN16_INSTALL=""
8585     ;;
8586   darwin*|macosx*)
8587     DLLEXT=".so"
8588     LIBEXT="dylib"
8589     DLLFLAGS="$DLLFLAGS -fPIC"
8590     LDDLLFLAGS="-bundle -multiply_defined suppress"
8591     LIBWINE_LDFLAGS="-multiply_defined suppress"
8592     LDSHARED="\$(CC) -dynamiclib"
8593     STRIP="$STRIP -x"
8594     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
8595         SECURITYLIB="-framework Security -framework CoreFoundation"
8596
8597     COREFOUNDATIONLIB="-framework CoreFoundation"
8598
8599     IOKITLIB="-framework IOKit -framework CoreFoundation"
8600
8601     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
8602
8603     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
8604     then
8605                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
8606
8607     fi
8608     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
8609     then
8610                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
8611
8612     fi
8613     case $host_cpu in
8614       *powerpc*)
8615         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
8616     esac
8617         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
8618     then
8619         CARBONLIB="-framework Carbon"
8620
8621         QUARTZFILES='$(QUARTZFILES)'
8622     fi
8623     ;;
8624   *)
8625     DLLFLAGS="$DLLFLAGS -fPIC"
8626     DLLEXT=".so"
8627     { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
8628 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
8629 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
8630   echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632   ac_wine_try_cflags_saved=$CFLAGS
8633 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8634 cat >conftest.$ac_ext <<_ACEOF
8635 void myfunc() {}
8636 _ACEOF
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (ac_try="$ac_link"
8639 case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_link") 2>conftest.er1
8645   ac_status=$?
8646   grep -v '^ *+' conftest.er1 >conftest.err
8647   rm -f conftest.er1
8648   cat conftest.err >&5
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); } && {
8651          test -z "$ac_c_werror_flag" ||
8652          test ! -s conftest.err
8653        } && test -s conftest$ac_exeext &&
8654        $as_test_x conftest$ac_exeext; then
8655   ac_cv_c_dll_gnuelf="yes"
8656 else
8657   echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660         ac_cv_c_dll_gnuelf="no"
8661 fi
8662
8663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8664       conftest$ac_exeext conftest.$ac_ext
8665 CFLAGS=$ac_wine_try_cflags_saved
8666 fi
8667 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
8668 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
8669     if test "$ac_cv_c_dll_gnuelf" = "yes"
8670     then
8671       LDSHARED="\$(CC) -shared"
8672       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
8673       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8674 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
8675 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
8676   echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678   ac_wine_try_cflags_saved=$CFLAGS
8679 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h.  */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h.  */
8686
8687 int
8688 main ()
8689 {
8690
8691   ;
8692   return 0;
8693 }
8694 _ACEOF
8695 rm -f conftest.$ac_objext conftest$ac_exeext
8696 if { (ac_try="$ac_link"
8697 case "(($ac_try" in
8698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699   *) ac_try_echo=$ac_try;;
8700 esac
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702   (eval "$ac_link") 2>conftest.er1
8703   ac_status=$?
8704   grep -v '^ *+' conftest.er1 >conftest.err
8705   rm -f conftest.er1
8706   cat conftest.err >&5
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } && {
8709          test -z "$ac_c_werror_flag" ||
8710          test ! -s conftest.err
8711        } && test -s conftest$ac_exeext &&
8712        $as_test_x conftest$ac_exeext; then
8713   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8714 else
8715   echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718         ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8719 fi
8720
8721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8722       conftest$ac_exeext conftest.$ac_ext
8723 CFLAGS=$ac_wine_try_cflags_saved
8724 fi
8725 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8726 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8727 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
8728   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
8729 else
8730   { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8731 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
8732 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
8733   echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735   ac_wine_try_cflags_saved=$CFLAGS
8736 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h.  */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h.  */
8743
8744 int
8745 main ()
8746 {
8747
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (ac_try="$ac_link"
8754 case "(($ac_try" in
8755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756   *) ac_try_echo=$ac_try;;
8757 esac
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759   (eval "$ac_link") 2>conftest.er1
8760   ac_status=$?
8761   grep -v '^ *+' conftest.er1 >conftest.err
8762   rm -f conftest.er1
8763   cat conftest.err >&5
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); } && {
8766          test -z "$ac_c_werror_flag" ||
8767          test ! -s conftest.err
8768        } && test -s conftest$ac_exeext &&
8769        $as_test_x conftest$ac_exeext; then
8770   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8771 else
8772   echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775         ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8776 fi
8777
8778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8779       conftest$ac_exeext conftest.$ac_ext
8780 CFLAGS=$ac_wine_try_cflags_saved
8781 fi
8782 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8783 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8784 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
8785   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
8786 fi
8787
8788 fi
8789
8790
8791       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
8792 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
8793 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796   ac_wine_try_cflags_saved=$CFLAGS
8797 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
8798 cat >conftest.$ac_ext <<_ACEOF
8799 /* confdefs.h.  */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h.  */
8804
8805 int
8806 main ()
8807 {
8808
8809   ;
8810   return 0;
8811 }
8812 _ACEOF
8813 rm -f conftest.$ac_objext conftest$ac_exeext
8814 if { (ac_try="$ac_link"
8815 case "(($ac_try" in
8816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817   *) ac_try_echo=$ac_try;;
8818 esac
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820   (eval "$ac_link") 2>conftest.er1
8821   ac_status=$?
8822   grep -v '^ *+' conftest.er1 >conftest.err
8823   rm -f conftest.er1
8824   cat conftest.err >&5
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } && {
8827          test -z "$ac_c_werror_flag" ||
8828          test ! -s conftest.err
8829        } && test -s conftest$ac_exeext &&
8830        $as_test_x conftest$ac_exeext; then
8831   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
8832 else
8833   echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
8837 fi
8838
8839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8840       conftest$ac_exeext conftest.$ac_ext
8841 CFLAGS=$ac_wine_try_cflags_saved
8842 fi
8843 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
8844 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
8845 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
8846   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
8847 fi
8848
8849
8850       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
8851 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
8852 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   ac_wine_try_cflags_saved=$CFLAGS
8856 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
8857 cat >conftest.$ac_ext <<_ACEOF
8858 /* confdefs.h.  */
8859 _ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h.  */
8863
8864 int
8865 main ()
8866 {
8867
8868   ;
8869   return 0;
8870 }
8871 _ACEOF
8872 rm -f conftest.$ac_objext conftest$ac_exeext
8873 if { (ac_try="$ac_link"
8874 case "(($ac_try" in
8875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876   *) ac_try_echo=$ac_try;;
8877 esac
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879   (eval "$ac_link") 2>conftest.er1
8880   ac_status=$?
8881   grep -v '^ *+' conftest.er1 >conftest.err
8882   rm -f conftest.er1
8883   cat conftest.err >&5
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); } && {
8886          test -z "$ac_c_werror_flag" ||
8887          test ! -s conftest.err
8888        } && test -s conftest$ac_exeext &&
8889        $as_test_x conftest$ac_exeext; then
8890   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
8891 else
8892   echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8894
8895         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
8896 fi
8897
8898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8899       conftest$ac_exeext conftest.$ac_ext
8900 CFLAGS=$ac_wine_try_cflags_saved
8901 fi
8902 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
8903 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
8904 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
8905   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
8906 fi
8907
8908
8909       echo '{ global: *; };' >conftest.map
8910       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8911 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
8912 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
8913   echo $ECHO_N "(cached) $ECHO_C" >&6
8914 else
8915   ac_wine_try_cflags_saved=$CFLAGS
8916 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h.  */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h.  */
8923
8924 int
8925 main ()
8926 {
8927
8928   ;
8929   return 0;
8930 }
8931 _ACEOF
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8934 case "(($ac_try" in
8935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936   *) ac_try_echo=$ac_try;;
8937 esac
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939   (eval "$ac_link") 2>conftest.er1
8940   ac_status=$?
8941   grep -v '^ *+' conftest.er1 >conftest.err
8942   rm -f conftest.er1
8943   cat conftest.err >&5
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } && {
8946          test -z "$ac_c_werror_flag" ||
8947          test ! -s conftest.err
8948        } && test -s conftest$ac_exeext &&
8949        $as_test_x conftest$ac_exeext; then
8950   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8951 else
8952   echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955         ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8956 fi
8957
8958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8959       conftest$ac_exeext conftest.$ac_ext
8960 CFLAGS=$ac_wine_try_cflags_saved
8961 fi
8962 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8963 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8964 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
8965   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
8966 fi
8967
8968       rm -f conftest.map
8969
8970       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8971 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
8972 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
8973   echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975   ac_wine_try_cflags_saved=$CFLAGS
8976 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h.  */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h.  */
8983
8984 int
8985 main ()
8986 {
8987
8988   ;
8989   return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (ac_try="$ac_link"
8994 case "(($ac_try" in
8995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996   *) ac_try_echo=$ac_try;;
8997 esac
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999   (eval "$ac_link") 2>conftest.er1
9000   ac_status=$?
9001   grep -v '^ *+' conftest.er1 >conftest.err
9002   rm -f conftest.er1
9003   cat conftest.err >&5
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); } && {
9006          test -z "$ac_c_werror_flag" ||
9007          test ! -s conftest.err
9008        } && test -s conftest$ac_exeext &&
9009        $as_test_x conftest$ac_exeext; then
9010   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
9011 else
9012   echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015         ac_cv_cflags__fPIC__Wl___export_dynamic=no
9016 fi
9017
9018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9019       conftest$ac_exeext conftest.$ac_ext
9020 CFLAGS=$ac_wine_try_cflags_saved
9021 fi
9022 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
9023 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
9024 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
9025   LDEXECFLAGS="-Wl,--export-dynamic"
9026
9027 fi
9028
9029
9030       as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
9031 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
9032 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
9033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9034   echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036   ac_wine_try_cflags_saved=$CFLAGS
9037 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
9038 cat >conftest.$ac_ext <<_ACEOF
9039 /* confdefs.h.  */
9040 _ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h.  */
9044
9045 int
9046 main ()
9047 {
9048
9049   ;
9050   return 0;
9051 }
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (ac_try="$ac_link"
9055 case "(($ac_try" in
9056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057   *) ac_try_echo=$ac_try;;
9058 esac
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060   (eval "$ac_link") 2>conftest.er1
9061   ac_status=$?
9062   grep -v '^ *+' conftest.er1 >conftest.err
9063   rm -f conftest.er1
9064   cat conftest.err >&5
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); } && {
9067          test -z "$ac_c_werror_flag" ||
9068          test ! -s conftest.err
9069        } && test -s conftest$ac_exeext &&
9070        $as_test_x conftest$ac_exeext; then
9071   eval "$as_ac_var=yes"
9072 else
9073   echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9075
9076         eval "$as_ac_var=no"
9077 fi
9078
9079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9080       conftest$ac_exeext conftest.$ac_ext
9081 CFLAGS=$ac_wine_try_cflags_saved
9082 fi
9083 ac_res=`eval echo '${'$as_ac_var'}'`
9084                { echo "$as_me:$LINENO: result: $ac_res" >&5
9085 echo "${ECHO_T}$ac_res" >&6; }
9086 if test `eval echo '${'$as_ac_var'}'` = yes; then
9087   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
9088                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
9089 else
9090   as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,-R,\$ORIGIN/../lib" | $as_tr_sh`
9091 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
9092 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... $ECHO_C" >&6; }
9093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9094   echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096   ac_wine_try_cflags_saved=$CFLAGS
9097 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h.  */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h.  */
9104
9105 int
9106 main ()
9107 {
9108
9109   ;
9110   return 0;
9111 }
9112 _ACEOF
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (ac_try="$ac_link"
9115 case "(($ac_try" in
9116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117   *) ac_try_echo=$ac_try;;
9118 esac
9119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120   (eval "$ac_link") 2>conftest.er1
9121   ac_status=$?
9122   grep -v '^ *+' conftest.er1 >conftest.err
9123   rm -f conftest.er1
9124   cat conftest.err >&5
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); } && {
9127          test -z "$ac_c_werror_flag" ||
9128          test ! -s conftest.err
9129        } && test -s conftest$ac_exeext &&
9130        $as_test_x conftest$ac_exeext; then
9131   eval "$as_ac_var=yes"
9132 else
9133   echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136         eval "$as_ac_var=no"
9137 fi
9138
9139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9140       conftest$ac_exeext conftest.$ac_ext
9141 CFLAGS=$ac_wine_try_cflags_saved
9142 fi
9143 ac_res=`eval echo '${'$as_ac_var'}'`
9144                { echo "$as_me:$LINENO: result: $ac_res" >&5
9145 echo "${ECHO_T}$ac_res" >&6; }
9146 if test `eval echo '${'$as_ac_var'}'` = yes; then
9147   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
9148                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
9149 fi
9150
9151 fi
9152
9153
9154       { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
9155 echo $ECHO_N "checking whether the compiler supports -Wl,--enable-new-dtags... $ECHO_C" >&6; }
9156 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then
9157   echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159   ac_wine_try_cflags_saved=$CFLAGS
9160 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h.  */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h.  */
9167
9168 int
9169 main ()
9170 {
9171
9172   ;
9173   return 0;
9174 }
9175 _ACEOF
9176 rm -f conftest.$ac_objext conftest$ac_exeext
9177 if { (ac_try="$ac_link"
9178 case "(($ac_try" in
9179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180   *) ac_try_echo=$ac_try;;
9181 esac
9182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9183   (eval "$ac_link") 2>conftest.er1
9184   ac_status=$?
9185   grep -v '^ *+' conftest.er1 >conftest.err
9186   rm -f conftest.er1
9187   cat conftest.err >&5
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); } && {
9190          test -z "$ac_c_werror_flag" ||
9191          test ! -s conftest.err
9192        } && test -s conftest$ac_exeext &&
9193        $as_test_x conftest$ac_exeext; then
9194   ac_cv_cflags__Wl___enable_new_dtags=yes
9195 else
9196   echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199         ac_cv_cflags__Wl___enable_new_dtags=no
9200 fi
9201
9202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9203       conftest$ac_exeext conftest.$ac_ext
9204 CFLAGS=$ac_wine_try_cflags_saved
9205 fi
9206 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
9207 echo "${ECHO_T}$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
9208 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then
9209   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
9210 fi
9211
9212
9213       case $host_cpu in
9214         *i[3456789]86* | x86_64)
9215           { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
9216 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
9217 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
9218   echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220   ac_wine_try_cflags_saved=$CFLAGS
9221 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h.  */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h.  */
9228
9229 int
9230 main ()
9231 {
9232
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (ac_try="$ac_link"
9239 case "(($ac_try" in
9240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241   *) ac_try_echo=$ac_try;;
9242 esac
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244   (eval "$ac_link") 2>conftest.er1
9245   ac_status=$?
9246   grep -v '^ *+' conftest.er1 >conftest.err
9247   rm -f conftest.er1
9248   cat conftest.err >&5
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); } && {
9251          test -z "$ac_c_werror_flag" ||
9252          test ! -s conftest.err
9253        } && test -s conftest$ac_exeext &&
9254        $as_test_x conftest$ac_exeext; then
9255   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
9256 else
9257   echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260         ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
9261 fi
9262
9263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9264       conftest$ac_exeext conftest.$ac_ext
9265 CFLAGS=$ac_wine_try_cflags_saved
9266 fi
9267 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
9268 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
9269 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
9270   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
9271 fi
9272
9273           ;;
9274       esac
9275
9276     else
9277       { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
9278 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
9279 if test "${ac_cv_c_dll_unixware+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   ac_wine_try_cflags_saved=$CFLAGS
9283 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
9284 cat >conftest.$ac_ext <<_ACEOF
9285 void myfunc() {}
9286 _ACEOF
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (ac_try="$ac_link"
9289 case "(($ac_try" in
9290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291   *) ac_try_echo=$ac_try;;
9292 esac
9293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294   (eval "$ac_link") 2>conftest.er1
9295   ac_status=$?
9296   grep -v '^ *+' conftest.er1 >conftest.err
9297   rm -f conftest.er1
9298   cat conftest.err >&5
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); } && {
9301          test -z "$ac_c_werror_flag" ||
9302          test ! -s conftest.err
9303        } && test -s conftest$ac_exeext &&
9304        $as_test_x conftest$ac_exeext; then
9305   ac_cv_c_dll_unixware="yes"
9306 else
9307   echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310         ac_cv_c_dll_unixware="no"
9311 fi
9312
9313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9314       conftest$ac_exeext conftest.$ac_ext
9315 CFLAGS=$ac_wine_try_cflags_saved
9316 fi
9317 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
9318 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
9319       if test "$ac_cv_c_dll_unixware" = "yes"
9320       then
9321         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
9322         LDDLLFLAGS="-Wl,-G,-B,symbolic"
9323
9324       else
9325         { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
9326 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
9327 if test "${ac_cv_c_dll_hpux+set}" = set; then
9328   echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330   ac_wine_try_cflags_saved=$CFLAGS
9331 CFLAGS="$CFLAGS -shared"
9332 cat >conftest.$ac_ext <<_ACEOF
9333 void myfunc() {}
9334 _ACEOF
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (ac_try="$ac_link"
9337 case "(($ac_try" in
9338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339   *) ac_try_echo=$ac_try;;
9340 esac
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342   (eval "$ac_link") 2>conftest.er1
9343   ac_status=$?
9344   grep -v '^ *+' conftest.er1 >conftest.err
9345   rm -f conftest.er1
9346   cat conftest.err >&5
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } && {
9349          test -z "$ac_c_werror_flag" ||
9350          test ! -s conftest.err
9351        } && test -s conftest$ac_exeext &&
9352        $as_test_x conftest$ac_exeext; then
9353   ac_cv_c_dll_hpux="yes"
9354 else
9355   echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9357
9358         ac_cv_c_dll_hpux="no"
9359 fi
9360
9361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9362       conftest$ac_exeext conftest.$ac_ext
9363 CFLAGS=$ac_wine_try_cflags_saved
9364 fi
9365 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
9366 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
9367         if test "$ac_cv_c_dll_hpux" = "yes"
9368         then
9369           LIBEXT="sl"
9370           DLLEXT=".sl"
9371           LDDLLFLAGS="-shared -fPIC"
9372           LDSHARED="\$(CC) -shared"
9373         fi
9374       fi
9375     fi
9376
9377         CROSSTEST=""
9378
9379     if test "$cross_compiling" = "no"
9380     then
9381       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
9382 do
9383   # Extract the first word of "$ac_prog", so it can be a program name with args.
9384 set dummy $ac_prog; ac_word=$2
9385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9387 if test "${ac_cv_prog_CROSSCC+set}" = set; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   if test -n "$CROSSCC"; then
9391   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
9392 else
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 for as_dir in $PATH
9395 do
9396   IFS=$as_save_IFS
9397   test -z "$as_dir" && as_dir=.
9398   for ac_exec_ext in '' $ac_executable_extensions; do
9399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9400     ac_cv_prog_CROSSCC="$ac_prog"
9401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9402     break 2
9403   fi
9404 done
9405 done
9406 IFS=$as_save_IFS
9407
9408 fi
9409 fi
9410 CROSSCC=$ac_cv_prog_CROSSCC
9411 if test -n "$CROSSCC"; then
9412   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
9413 echo "${ECHO_T}$CROSSCC" >&6; }
9414 else
9415   { echo "$as_me:$LINENO: result: no" >&5
9416 echo "${ECHO_T}no" >&6; }
9417 fi
9418
9419
9420   test -n "$CROSSCC" && break
9421 done
9422 test -n "$CROSSCC" || CROSSCC="false"
9423
9424       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i686-mingw32-dlltool i586-mingw32-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
9425 do
9426   # Extract the first word of "$ac_prog", so it can be a program name with args.
9427 set dummy $ac_prog; ac_word=$2
9428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9430 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433   if test -n "$DLLTOOL"; then
9434   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9435 else
9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 for as_dir in $PATH
9438 do
9439   IFS=$as_save_IFS
9440   test -z "$as_dir" && as_dir=.
9441   for ac_exec_ext in '' $ac_executable_extensions; do
9442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9443     ac_cv_prog_DLLTOOL="$ac_prog"
9444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9445     break 2
9446   fi
9447 done
9448 done
9449 IFS=$as_save_IFS
9450
9451 fi
9452 fi
9453 DLLTOOL=$ac_cv_prog_DLLTOOL
9454 if test -n "$DLLTOOL"; then
9455   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9456 echo "${ECHO_T}$DLLTOOL" >&6; }
9457 else
9458   { echo "$as_me:$LINENO: result: no" >&5
9459 echo "${ECHO_T}no" >&6; }
9460 fi
9461
9462
9463   test -n "$DLLTOOL" && break
9464 done
9465 test -n "$DLLTOOL" || DLLTOOL="false"
9466
9467       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i686-mingw32-windres i586-mingw32-windres i386-mingw32-windres mingw32-windres mingw-windres
9468 do
9469   # Extract the first word of "$ac_prog", so it can be a program name with args.
9470 set dummy $ac_prog; ac_word=$2
9471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9473 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
9474   echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476   if test -n "$CROSSWINDRES"; then
9477   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
9478 else
9479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 for as_dir in $PATH
9481 do
9482   IFS=$as_save_IFS
9483   test -z "$as_dir" && as_dir=.
9484   for ac_exec_ext in '' $ac_executable_extensions; do
9485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9486     ac_cv_prog_CROSSWINDRES="$ac_prog"
9487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9488     break 2
9489   fi
9490 done
9491 done
9492 IFS=$as_save_IFS
9493
9494 fi
9495 fi
9496 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
9497 if test -n "$CROSSWINDRES"; then
9498   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
9499 echo "${ECHO_T}$CROSSWINDRES" >&6; }
9500 else
9501   { echo "$as_me:$LINENO: result: no" >&5
9502 echo "${ECHO_T}no" >&6; }
9503 fi
9504
9505
9506   test -n "$CROSSWINDRES" && break
9507 done
9508 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
9509
9510       for ac_prog in i586-mingw32msvc-ar i386-mingw32msvc-ar i686-mingw32-ar i586-mingw32-ar i386-mingw32-ar mingw32-ar mingw-ar
9511 do
9512   # Extract the first word of "$ac_prog", so it can be a program name with args.
9513 set dummy $ac_prog; ac_word=$2
9514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9516 if test "${ac_cv_prog_MINGWAR+set}" = set; then
9517   echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519   if test -n "$MINGWAR"; then
9520   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
9521 else
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9524 do
9525   IFS=$as_save_IFS
9526   test -z "$as_dir" && as_dir=.
9527   for ac_exec_ext in '' $ac_executable_extensions; do
9528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9529     ac_cv_prog_MINGWAR="$ac_prog"
9530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9531     break 2
9532   fi
9533 done
9534 done
9535 IFS=$as_save_IFS
9536
9537 fi
9538 fi
9539 MINGWAR=$ac_cv_prog_MINGWAR
9540 if test -n "$MINGWAR"; then
9541   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
9542 echo "${ECHO_T}$MINGWAR" >&6; }
9543 else
9544   { echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6; }
9546 fi
9547
9548
9549   test -n "$MINGWAR" && break
9550 done
9551 test -n "$MINGWAR" || MINGWAR="false"
9552
9553       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
9554     fi
9555     ;;
9556 esac
9557
9558 if test "$LIBEXT" = "a"; then
9559   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
9560 It is currently not possible to build Wine without shared library
9561 (.so) support to allow transparent switch between .so and .dll files.
9562 If you are using Linux, you will need a newer binutils.
9563 " >&5
9564 echo "$as_me: error: could not find a way to build shared libraries.
9565 It is currently not possible to build Wine without shared library
9566 (.so) support to allow transparent switch between .so and .dll files.
9567 If you are using Linux, you will need a newer binutils.
9568 " >&2;}
9569    { (exit 1); exit 1; }; }
9570 fi
9571
9572
9573 if test "$have_x" = "yes"
9574 then
9575     XLIB="-lXext -lX11"
9576     ac_save_CPPFLAGS="$CPPFLAGS"
9577     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9578
9579     { echo "$as_me:$LINENO: checking for -lX11" >&5
9580 echo $ECHO_N "checking for -lX11... $ECHO_C" >&6; }
9581 if test "${ac_cv_lib_soname_X11+set}" = set; then
9582   echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584   ac_check_soname_save_LIBS=$LIBS
9585 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9586   cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h.  */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h.  */
9592
9593 /* Override any GCC internal prototype to avoid an error.
9594    Use char because int might match the return type of a GCC
9595    builtin and then its argument prototype would still apply.  */
9596 #ifdef __cplusplus
9597 extern "C"
9598 #endif
9599 char XCreateWindow ();
9600 int
9601 main ()
9602 {
9603 return XCreateWindow ();
9604   ;
9605   return 0;
9606 }
9607 _ACEOF
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (ac_try="$ac_link"
9610 case "(($ac_try" in
9611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612   *) ac_try_echo=$ac_try;;
9613 esac
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615   (eval "$ac_link") 2>conftest.er1
9616   ac_status=$?
9617   grep -v '^ *+' conftest.er1 >conftest.err
9618   rm -f conftest.er1
9619   cat conftest.err >&5
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); } && {
9622          test -z "$ac_c_werror_flag" ||
9623          test ! -s conftest.err
9624        } && test -s conftest$ac_exeext &&
9625        $as_test_x conftest$ac_exeext; then
9626   case "$LIBEXT" in
9627     dll) ;;
9628     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'` ;;
9629     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9630   esac
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635
9636 fi
9637
9638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9639       conftest$ac_exeext conftest.$ac_ext
9640   LIBS=$ac_check_soname_save_LIBS
9641 fi
9642 if test "x$ac_cv_lib_soname_X11" = "x"; then
9643   { echo "$as_me:$LINENO: result: not found" >&5
9644 echo "${ECHO_T}not found" >&6; }
9645
9646 else
9647   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
9648 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
9649
9650 cat >>confdefs.h <<_ACEOF
9651 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9652 _ACEOF
9653
9654
9655 fi
9656
9657     { echo "$as_me:$LINENO: checking for -lXext" >&5
9658 echo $ECHO_N "checking for -lXext... $ECHO_C" >&6; }
9659 if test "${ac_cv_lib_soname_Xext+set}" = set; then
9660   echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662   ac_check_soname_save_LIBS=$LIBS
9663 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9664   cat >conftest.$ac_ext <<_ACEOF
9665 /* confdefs.h.  */
9666 _ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h.  */
9670
9671 /* Override any GCC internal prototype to avoid an error.
9672    Use char because int might match the return type of a GCC
9673    builtin and then its argument prototype would still apply.  */
9674 #ifdef __cplusplus
9675 extern "C"
9676 #endif
9677 char XextCreateExtension ();
9678 int
9679 main ()
9680 {
9681 return XextCreateExtension ();
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (ac_try="$ac_link"
9688 case "(($ac_try" in
9689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690   *) ac_try_echo=$ac_try;;
9691 esac
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693   (eval "$ac_link") 2>conftest.er1
9694   ac_status=$?
9695   grep -v '^ *+' conftest.er1 >conftest.err
9696   rm -f conftest.er1
9697   cat conftest.err >&5
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } && {
9700          test -z "$ac_c_werror_flag" ||
9701          test ! -s conftest.err
9702        } && test -s conftest$ac_exeext &&
9703        $as_test_x conftest$ac_exeext; then
9704   case "$LIBEXT" in
9705     dll) ;;
9706     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'` ;;
9707     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9708   esac
9709 else
9710   echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713
9714 fi
9715
9716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9717       conftest$ac_exeext conftest.$ac_ext
9718   LIBS=$ac_check_soname_save_LIBS
9719 fi
9720 if test "x$ac_cv_lib_soname_Xext" = "x"; then
9721   { echo "$as_me:$LINENO: result: not found" >&5
9722 echo "${ECHO_T}not found" >&6; }
9723
9724 else
9725   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
9726 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
9727
9728 cat >>confdefs.h <<_ACEOF
9729 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9730 _ACEOF
9731
9732
9733 fi
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748 for ac_header in X11/Xlib.h \
9749                       X11/XKBlib.h \
9750                       X11/Xutil.h \
9751                       X11/Xcursor/Xcursor.h \
9752                       X11/extensions/shape.h \
9753                       X11/extensions/XInput.h \
9754                       X11/extensions/XShm.h \
9755                       X11/extensions/Xcomposite.h \
9756                       X11/extensions/Xinerama.h \
9757                       X11/extensions/Xrandr.h \
9758                       X11/extensions/Xrender.h \
9759                       X11/extensions/xf86vmode.h
9760 do
9761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9765   echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767   cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773 #ifdef HAVE_X11_XLIB_H
9774 # include <X11/Xlib.h>
9775 #endif
9776 #ifdef HAVE_X11_XUTIL_H
9777 # include <X11/Xutil.h>
9778 #endif
9779
9780 #include <$ac_header>
9781 _ACEOF
9782 rm -f conftest.$ac_objext
9783 if { (ac_try="$ac_compile"
9784 case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_compile") 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } && {
9796          test -z "$ac_c_werror_flag" ||
9797          test ! -s conftest.err
9798        } && test -s conftest.$ac_objext; then
9799   eval "$as_ac_Header=yes"
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804         eval "$as_ac_Header=no"
9805 fi
9806
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808 fi
9809 ac_res=`eval echo '${'$as_ac_Header'}'`
9810                { echo "$as_me:$LINENO: result: $ac_res" >&5
9811 echo "${ECHO_T}$ac_res" >&6; }
9812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9813   cat >>confdefs.h <<_ACEOF
9814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9815 _ACEOF
9816
9817 fi
9818
9819 done
9820
9821
9822                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9823         then
9824               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9825 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9826 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   ac_check_lib_save_LIBS=$LIBS
9830 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837
9838 /* Override any GCC internal prototype to avoid an error.
9839    Use char because int might match the return type of a GCC
9840    builtin and then its argument prototype would still apply.  */
9841 #ifdef __cplusplus
9842 extern "C"
9843 #endif
9844 char XkbQueryExtension ();
9845 int
9846 main ()
9847 {
9848 return XkbQueryExtension ();
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9855 case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_link") 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } && {
9867          test -z "$ac_c_werror_flag" ||
9868          test ! -s conftest.err
9869        } && test -s conftest$ac_exeext &&
9870        $as_test_x conftest$ac_exeext; then
9871   ac_cv_lib_X11_XkbQueryExtension=yes
9872 else
9873   echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876         ac_cv_lib_X11_XkbQueryExtension=no
9877 fi
9878
9879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9880       conftest$ac_exeext conftest.$ac_ext
9881 LIBS=$ac_check_lib_save_LIBS
9882 fi
9883 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9884 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9885 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
9886
9887 cat >>confdefs.h <<\_ACEOF
9888 #define HAVE_XKB 1
9889 _ACEOF
9890
9891 fi
9892
9893         fi
9894
9895                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9896         then
9897             { echo "$as_me:$LINENO: checking for -lXcursor" >&5
9898 echo $ECHO_N "checking for -lXcursor... $ECHO_C" >&6; }
9899 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then
9900   echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902   ac_check_soname_save_LIBS=$LIBS
9903 LIBS="-lXcursor $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9904   cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h.  */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h.  */
9910
9911 /* Override any GCC internal prototype to avoid an error.
9912    Use char because int might match the return type of a GCC
9913    builtin and then its argument prototype would still apply.  */
9914 #ifdef __cplusplus
9915 extern "C"
9916 #endif
9917 char XcursorImageLoadCursor ();
9918 int
9919 main ()
9920 {
9921 return XcursorImageLoadCursor ();
9922   ;
9923   return 0;
9924 }
9925 _ACEOF
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (ac_try="$ac_link"
9928 case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933   (eval "$ac_link") 2>conftest.er1
9934   ac_status=$?
9935   grep -v '^ *+' conftest.er1 >conftest.err
9936   rm -f conftest.er1
9937   cat conftest.err >&5
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); } && {
9940          test -z "$ac_c_werror_flag" ||
9941          test ! -s conftest.err
9942        } && test -s conftest$ac_exeext &&
9943        $as_test_x conftest$ac_exeext; then
9944   case "$LIBEXT" in
9945     dll) ;;
9946     dylib) ac_cv_lib_soname_Xcursor=`otool -L conftest$ac_exeext | grep "libXcursor\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcursor\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9947     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9948   esac
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953
9954 fi
9955
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957       conftest$ac_exeext conftest.$ac_ext
9958   LIBS=$ac_check_soname_save_LIBS
9959 fi
9960 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then
9961   { echo "$as_me:$LINENO: result: not found" >&5
9962 echo "${ECHO_T}not found" >&6; }
9963
9964 else
9965   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xcursor" >&5
9966 echo "${ECHO_T}$ac_cv_lib_soname_Xcursor" >&6; }
9967
9968 cat >>confdefs.h <<_ACEOF
9969 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9970 _ACEOF
9971
9972
9973 fi
9974
9975         fi
9976         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then
9977   case "x$with_xcursor" in
9978   x)   wine_notices="$wine_notices|libxcursor development files not found, the Xcursor extension won't be supported." ;;
9979   xno) ;;
9980   *)   { { echo "$as_me:$LINENO: error: libxcursor development files not found, the Xcursor extension won't be supported.
9981 This is an error since --with-xcursor was requested." >&5
9982 echo "$as_me: error: libxcursor development files not found, the Xcursor extension won't be supported.
9983 This is an error since --with-xcursor was requested." >&2;}
9984    { (exit 1); exit 1; }; } ;;
9985 esac
9986 fi
9987
9988
9989                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9990         then
9991             { echo "$as_me:$LINENO: checking for -lXi" >&5
9992 echo $ECHO_N "checking for -lXi... $ECHO_C" >&6; }
9993 if test "${ac_cv_lib_soname_Xi+set}" = set; then
9994   echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9996   ac_check_soname_save_LIBS=$LIBS
9997 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9998   cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h.  */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h.  */
10004
10005 /* Override any GCC internal prototype to avoid an error.
10006    Use char because int might match the return type of a GCC
10007    builtin and then its argument prototype would still apply.  */
10008 #ifdef __cplusplus
10009 extern "C"
10010 #endif
10011 char XOpenDevice ();
10012 int
10013 main ()
10014 {
10015 return XOpenDevice ();
10016   ;
10017   return 0;
10018 }
10019 _ACEOF
10020 rm -f conftest.$ac_objext conftest$ac_exeext
10021 if { (ac_try="$ac_link"
10022 case "(($ac_try" in
10023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024   *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027   (eval "$ac_link") 2>conftest.er1
10028   ac_status=$?
10029   grep -v '^ *+' conftest.er1 >conftest.err
10030   rm -f conftest.er1
10031   cat conftest.err >&5
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); } && {
10034          test -z "$ac_c_werror_flag" ||
10035          test ! -s conftest.err
10036        } && test -s conftest$ac_exeext &&
10037        $as_test_x conftest$ac_exeext; then
10038   case "$LIBEXT" in
10039     dll) ;;
10040     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'` ;;
10041     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
10042   esac
10043 else
10044   echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10046
10047
10048 fi
10049
10050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10051       conftest$ac_exeext conftest.$ac_ext
10052   LIBS=$ac_check_soname_save_LIBS
10053 fi
10054 if test "x$ac_cv_lib_soname_Xi" = "x"; then
10055   { echo "$as_me:$LINENO: result: not found" >&5
10056 echo "${ECHO_T}not found" >&6; }
10057
10058 else
10059   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
10060 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
10061
10062 cat >>confdefs.h <<_ACEOF
10063 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
10064 _ACEOF
10065
10066
10067 fi
10068
10069         fi
10070         if test "x$ac_cv_lib_soname_Xi" = "x"; then
10071   case "x$with_xinput" in
10072   x)   wine_notices="$wine_notices|libxi development files not found, the Xinput extension won't be supported." ;;
10073   xno) ;;
10074   *)   { { echo "$as_me:$LINENO: error: libxi development files not found, the Xinput extension won't be supported.
10075 This is an error since --with-xinput was requested." >&5
10076 echo "$as_me: error: libxi development files not found, the Xinput extension won't be supported.
10077 This is an error since --with-xinput was requested." >&2;}
10078    { (exit 1); exit 1; }; } ;;
10079 esac
10080 fi
10081
10082
10083                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
10084         then
10085               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
10086 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
10087 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   ac_check_lib_save_LIBS=$LIBS
10091 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h.  */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h.  */
10098
10099 /* Override any GCC internal prototype to avoid an error.
10100    Use char because int might match the return type of a GCC
10101    builtin and then its argument prototype would still apply.  */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 char XShmQueryExtension ();
10106 int
10107 main ()
10108 {
10109 return XShmQueryExtension ();
10110   ;
10111   return 0;
10112 }
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118   *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121   (eval "$ac_link") 2>conftest.er1
10122   ac_status=$?
10123   grep -v '^ *+' conftest.er1 >conftest.err
10124   rm -f conftest.er1
10125   cat conftest.err >&5
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } && {
10128          test -z "$ac_c_werror_flag" ||
10129          test ! -s conftest.err
10130        } && test -s conftest$ac_exeext &&
10131        $as_test_x conftest$ac_exeext; then
10132   ac_cv_lib_Xext_XShmQueryExtension=yes
10133 else
10134   echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10136
10137         ac_cv_lib_Xext_XShmQueryExtension=no
10138 fi
10139
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141       conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10143 fi
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10145 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10146 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
10147
10148 cat >>confdefs.h <<\_ACEOF
10149 #define HAVE_LIBXXSHM 1
10150 _ACEOF
10151
10152 fi
10153
10154         fi
10155         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then
10156   case "x$with_xshm" in
10157   x)   wine_notices="$wine_notices|XShm development files not found, X Shared Memory won't be supported." ;;
10158   xno) ;;
10159   *)   { { echo "$as_me:$LINENO: error: XShm development files not found, X Shared Memory won't be supported.
10160 This is an error since --with-xshm was requested." >&5
10161 echo "$as_me: error: XShm development files not found, X Shared Memory won't be supported.
10162 This is an error since --with-xshm was requested." >&2;}
10163    { (exit 1); exit 1; }; } ;;
10164 esac
10165 fi
10166
10167
10168                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
10169         then
10170               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10171 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
10172 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175   ac_check_lib_save_LIBS=$LIBS
10176 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h.  */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h.  */
10183
10184 /* Override any GCC internal prototype to avoid an error.
10185    Use char because int might match the return type of a GCC
10186    builtin and then its argument prototype would still apply.  */
10187 #ifdef __cplusplus
10188 extern "C"
10189 #endif
10190 char XShapeQueryExtension ();
10191 int
10192 main ()
10193 {
10194 return XShapeQueryExtension ();
10195   ;
10196   return 0;
10197 }
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (ac_try="$ac_link"
10201 case "(($ac_try" in
10202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203   *) ac_try_echo=$ac_try;;
10204 esac
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206   (eval "$ac_link") 2>conftest.er1
10207   ac_status=$?
10208   grep -v '^ *+' conftest.er1 >conftest.err
10209   rm -f conftest.er1
10210   cat conftest.err >&5
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } && {
10213          test -z "$ac_c_werror_flag" ||
10214          test ! -s conftest.err
10215        } && test -s conftest$ac_exeext &&
10216        $as_test_x conftest$ac_exeext; then
10217   ac_cv_lib_Xext_XShapeQueryExtension=yes
10218 else
10219   echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222         ac_cv_lib_Xext_XShapeQueryExtension=no
10223 fi
10224
10225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10226       conftest$ac_exeext conftest.$ac_ext
10227 LIBS=$ac_check_lib_save_LIBS
10228 fi
10229 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10230 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10231 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10232
10233 cat >>confdefs.h <<\_ACEOF
10234 #define HAVE_LIBXSHAPE 1
10235 _ACEOF
10236
10237 fi
10238
10239         fi
10240         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then
10241   case "x$with_xshape" in
10242   x)   wine_notices="$wine_notices|XShape development files not found, XShape won't be supported." ;;
10243   xno) ;;
10244   *)   { { echo "$as_me:$LINENO: error: XShape development files not found, XShape won't be supported.
10245 This is an error since --with-xshape was requested." >&5
10246 echo "$as_me: error: XShape development files not found, XShape won't be supported.
10247 This is an error since --with-xshape was requested." >&2;}
10248    { (exit 1); exit 1; }; } ;;
10249 esac
10250 fi
10251
10252
10253                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
10254         then
10255             { echo "$as_me:$LINENO: checking for -lXxf86vm" >&5
10256 echo $ECHO_N "checking for -lXxf86vm... $ECHO_C" >&6; }
10257 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then
10258   echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260   ac_check_soname_save_LIBS=$LIBS
10261 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10262   cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h.  */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h.  */
10268
10269 /* Override any GCC internal prototype to avoid an error.
10270    Use char because int might match the return type of a GCC
10271    builtin and then its argument prototype would still apply.  */
10272 #ifdef __cplusplus
10273 extern "C"
10274 #endif
10275 char XF86VidModeQueryExtension ();
10276 int
10277 main ()
10278 {
10279 return XF86VidModeQueryExtension ();
10280   ;
10281   return 0;
10282 }
10283 _ACEOF
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (ac_try="$ac_link"
10286 case "(($ac_try" in
10287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288   *) ac_try_echo=$ac_try;;
10289 esac
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291   (eval "$ac_link") 2>conftest.er1
10292   ac_status=$?
10293   grep -v '^ *+' conftest.er1 >conftest.err
10294   rm -f conftest.er1
10295   cat conftest.err >&5
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } && {
10298          test -z "$ac_c_werror_flag" ||
10299          test ! -s conftest.err
10300        } && test -s conftest$ac_exeext &&
10301        $as_test_x conftest$ac_exeext; then
10302   case "$LIBEXT" in
10303     dll) ;;
10304     dylib) ac_cv_lib_soname_Xxf86vm=`otool -L conftest$ac_exeext | grep "libXxf86vm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXxf86vm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10305     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
10306   esac
10307 else
10308   echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311
10312 fi
10313
10314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10315       conftest$ac_exeext conftest.$ac_ext
10316   LIBS=$ac_check_soname_save_LIBS
10317 fi
10318 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then
10319   { echo "$as_me:$LINENO: result: not found" >&5
10320 echo "${ECHO_T}not found" >&6; }
10321
10322 else
10323   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xxf86vm" >&5
10324 echo "${ECHO_T}$ac_cv_lib_soname_Xxf86vm" >&6; }
10325
10326 cat >>confdefs.h <<_ACEOF
10327 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
10328 _ACEOF
10329
10330
10331 fi
10332
10333         fi
10334         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then
10335   case "x$with_xxf86vm" in
10336   x)   wine_notices="$wine_notices|libXxf86vm development files not found, XFree86 Vidmode won't be supported." ;;
10337   xno) ;;
10338   *)   { { echo "$as_me:$LINENO: error: libXxf86vm development files not found, XFree86 Vidmode won't be supported.
10339 This is an error since --with-xxf86vm was requested." >&5
10340 echo "$as_me: error: libXxf86vm development files not found, XFree86 Vidmode won't be supported.
10341 This is an error since --with-xxf86vm was requested." >&2;}
10342    { (exit 1); exit 1; }; } ;;
10343 esac
10344 fi
10345
10346
10347                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x" -a "x$ac_cv_lib_soname_Xext" != "x"
10348         then
10349             { echo "$as_me:$LINENO: checking for -lXrender" >&5
10350 echo $ECHO_N "checking for -lXrender... $ECHO_C" >&6; }
10351 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10352   echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354   ac_check_soname_save_LIBS=$LIBS
10355 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10356   cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h.  */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h.  */
10362
10363 /* Override any GCC internal prototype to avoid an error.
10364    Use char because int might match the return type of a GCC
10365    builtin and then its argument prototype would still apply.  */
10366 #ifdef __cplusplus
10367 extern "C"
10368 #endif
10369 char XRenderQueryExtension ();
10370 int
10371 main ()
10372 {
10373 return XRenderQueryExtension ();
10374   ;
10375   return 0;
10376 }
10377 _ACEOF
10378 rm -f conftest.$ac_objext conftest$ac_exeext
10379 if { (ac_try="$ac_link"
10380 case "(($ac_try" in
10381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382   *) ac_try_echo=$ac_try;;
10383 esac
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385   (eval "$ac_link") 2>conftest.er1
10386   ac_status=$?
10387   grep -v '^ *+' conftest.er1 >conftest.err
10388   rm -f conftest.er1
10389   cat conftest.err >&5
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); } && {
10392          test -z "$ac_c_werror_flag" ||
10393          test ! -s conftest.err
10394        } && test -s conftest$ac_exeext &&
10395        $as_test_x conftest$ac_exeext; then
10396   case "$LIBEXT" in
10397     dll) ;;
10398     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'` ;;
10399     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
10400   esac
10401 else
10402   echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405
10406 fi
10407
10408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10409       conftest$ac_exeext conftest.$ac_ext
10410   LIBS=$ac_check_soname_save_LIBS
10411 fi
10412 if test "x$ac_cv_lib_soname_Xrender" = "x"; then
10413   { echo "$as_me:$LINENO: result: not found" >&5
10414 echo "${ECHO_T}not found" >&6; }
10415
10416 else
10417   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10418 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
10419
10420 cat >>confdefs.h <<_ACEOF
10421 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10422 _ACEOF
10423
10424        { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
10425 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
10426 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
10427   echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429   ac_check_lib_save_LIBS=$LIBS
10430 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10431 cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h.  */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h.  */
10437
10438 /* Override any GCC internal prototype to avoid an error.
10439    Use char because int might match the return type of a GCC
10440    builtin and then its argument prototype would still apply.  */
10441 #ifdef __cplusplus
10442 extern "C"
10443 #endif
10444 char XRenderSetPictureTransform ();
10445 int
10446 main ()
10447 {
10448 return XRenderSetPictureTransform ();
10449   ;
10450   return 0;
10451 }
10452 _ACEOF
10453 rm -f conftest.$ac_objext conftest$ac_exeext
10454 if { (ac_try="$ac_link"
10455 case "(($ac_try" in
10456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457   *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460   (eval "$ac_link") 2>conftest.er1
10461   ac_status=$?
10462   grep -v '^ *+' conftest.er1 >conftest.err
10463   rm -f conftest.er1
10464   cat conftest.err >&5
10465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466   (exit $ac_status); } && {
10467          test -z "$ac_c_werror_flag" ||
10468          test ! -s conftest.err
10469        } && test -s conftest$ac_exeext &&
10470        $as_test_x conftest$ac_exeext; then
10471   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
10472 else
10473   echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10475
10476         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
10477 fi
10478
10479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10480       conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10482 fi
10483 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
10484 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
10485 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
10486
10487 cat >>confdefs.h <<\_ACEOF
10488 #define HAVE_XRENDERSETPICTURETRANSFORM 1
10489 _ACEOF
10490
10491 fi
10492
10493 fi
10494
10495
10496         fi
10497         if test "x$ac_cv_lib_soname_Xrender" = "x"; then
10498   case "x$with_xrender" in
10499   x)   wine_warnings="$wine_warnings|libxrender development files not found, XRender won't be supported." ;;
10500   xno) ;;
10501   *)   { { echo "$as_me:$LINENO: error: libxrender development files not found, XRender won't be supported.
10502 This is an error since --with-xrender was requested." >&5
10503 echo "$as_me: error: libxrender development files not found, XRender won't be supported.
10504 This is an error since --with-xrender was requested." >&2;}
10505    { (exit 1); exit 1; }; } ;;
10506 esac
10507 fi
10508
10509
10510                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
10511         then
10512                 cat >conftest.$ac_ext <<_ACEOF
10513 /* confdefs.h.  */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h.  */
10518 #include <X11/Xlib.h>
10519 #include <X11/extensions/Xrandr.h>
10520 int
10521 main ()
10522 {
10523 static typeof(XRRSetScreenConfigAndRate) * func;
10524   ;
10525   return 0;
10526 }
10527 _ACEOF
10528 rm -f conftest.$ac_objext
10529 if { (ac_try="$ac_compile"
10530 case "(($ac_try" in
10531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532   *) ac_try_echo=$ac_try;;
10533 esac
10534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535   (eval "$ac_compile") 2>conftest.er1
10536   ac_status=$?
10537   grep -v '^ *+' conftest.er1 >conftest.err
10538   rm -f conftest.er1
10539   cat conftest.err >&5
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); } && {
10542          test -z "$ac_c_werror_flag" ||
10543          test ! -s conftest.err
10544        } && test -s conftest.$ac_objext; then
10545   { echo "$as_me:$LINENO: checking for -lXrandr" >&5
10546 echo $ECHO_N "checking for -lXrandr... $ECHO_C" >&6; }
10547 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
10548   echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550   ac_check_soname_save_LIBS=$LIBS
10551 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10552   cat >conftest.$ac_ext <<_ACEOF
10553 /* confdefs.h.  */
10554 _ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h.  */
10558
10559 /* Override any GCC internal prototype to avoid an error.
10560    Use char because int might match the return type of a GCC
10561    builtin and then its argument prototype would still apply.  */
10562 #ifdef __cplusplus
10563 extern "C"
10564 #endif
10565 char XRRQueryExtension ();
10566 int
10567 main ()
10568 {
10569 return XRRQueryExtension ();
10570   ;
10571   return 0;
10572 }
10573 _ACEOF
10574 rm -f conftest.$ac_objext conftest$ac_exeext
10575 if { (ac_try="$ac_link"
10576 case "(($ac_try" in
10577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578   *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581   (eval "$ac_link") 2>conftest.er1
10582   ac_status=$?
10583   grep -v '^ *+' conftest.er1 >conftest.err
10584   rm -f conftest.er1
10585   cat conftest.err >&5
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); } && {
10588          test -z "$ac_c_werror_flag" ||
10589          test ! -s conftest.err
10590        } && test -s conftest$ac_exeext &&
10591        $as_test_x conftest$ac_exeext; then
10592   case "$LIBEXT" in
10593     dll) ;;
10594     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'` ;;
10595     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10596   esac
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601
10602 fi
10603
10604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10605       conftest$ac_exeext conftest.$ac_ext
10606   LIBS=$ac_check_soname_save_LIBS
10607 fi
10608 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then
10609   { echo "$as_me:$LINENO: result: not found" >&5
10610 echo "${ECHO_T}not found" >&6; }
10611
10612 else
10613   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
10614 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
10615
10616 cat >>confdefs.h <<_ACEOF
10617 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
10618 _ACEOF
10619
10620
10621 fi
10622
10623 else
10624   echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10626
10627
10628 fi
10629
10630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10631         fi
10632         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then
10633   case "x$with_xrandr" in
10634   x)   wine_notices="$wine_notices|libxrandr development files not found, XRandr won't be supported." ;;
10635   xno) ;;
10636   *)   { { echo "$as_me:$LINENO: error: libxrandr development files not found, XRandr won't be supported.
10637 This is an error since --with-xrandr was requested." >&5
10638 echo "$as_me: error: libxrandr development files not found, XRandr won't be supported.
10639 This is an error since --with-xrandr was requested." >&2;}
10640    { (exit 1); exit 1; }; } ;;
10641 esac
10642 fi
10643
10644
10645                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10646         then
10647                 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653 #include <X11/Xlib.h>
10654 #include <X11/extensions/Xinerama.h>
10655 int
10656 main ()
10657 {
10658 static typeof(XineramaQueryScreens) * func;
10659   ;
10660   return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext
10664 if { (ac_try="$ac_compile"
10665 case "(($ac_try" in
10666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667   *) ac_try_echo=$ac_try;;
10668 esac
10669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670   (eval "$ac_compile") 2>conftest.er1
10671   ac_status=$?
10672   grep -v '^ *+' conftest.er1 >conftest.err
10673   rm -f conftest.er1
10674   cat conftest.err >&5
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); } && {
10677          test -z "$ac_c_werror_flag" ||
10678          test ! -s conftest.err
10679        } && test -s conftest.$ac_objext; then
10680   { echo "$as_me:$LINENO: checking for -lXinerama" >&5
10681 echo $ECHO_N "checking for -lXinerama... $ECHO_C" >&6; }
10682 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
10683   echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685   ac_check_soname_save_LIBS=$LIBS
10686 LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10687   cat >conftest.$ac_ext <<_ACEOF
10688 /* confdefs.h.  */
10689 _ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h.  */
10693
10694 /* Override any GCC internal prototype to avoid an error.
10695    Use char because int might match the return type of a GCC
10696    builtin and then its argument prototype would still apply.  */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 char XineramaQueryScreens ();
10701 int
10702 main ()
10703 {
10704 return XineramaQueryScreens ();
10705   ;
10706   return 0;
10707 }
10708 _ACEOF
10709 rm -f conftest.$ac_objext conftest$ac_exeext
10710 if { (ac_try="$ac_link"
10711 case "(($ac_try" in
10712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713   *) ac_try_echo=$ac_try;;
10714 esac
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716   (eval "$ac_link") 2>conftest.er1
10717   ac_status=$?
10718   grep -v '^ *+' conftest.er1 >conftest.err
10719   rm -f conftest.er1
10720   cat conftest.err >&5
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); } && {
10723          test -z "$ac_c_werror_flag" ||
10724          test ! -s conftest.err
10725        } && test -s conftest$ac_exeext &&
10726        $as_test_x conftest$ac_exeext; then
10727   case "$LIBEXT" in
10728     dll) ;;
10729     dylib) ac_cv_lib_soname_Xinerama=`otool -L conftest$ac_exeext | grep "libXinerama\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXinerama\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10730     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10731   esac
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736
10737 fi
10738
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740       conftest$ac_exeext conftest.$ac_ext
10741   LIBS=$ac_check_soname_save_LIBS
10742 fi
10743 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then
10744   { echo "$as_me:$LINENO: result: not found" >&5
10745 echo "${ECHO_T}not found" >&6; }
10746
10747 else
10748   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
10749 echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
10750
10751 cat >>confdefs.h <<_ACEOF
10752 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10753 _ACEOF
10754
10755
10756 fi
10757
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762
10763 fi
10764
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766         fi
10767         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then
10768   case "x$with_xinerama" in
10769   x)   wine_notices="$wine_notices|libxinerama development files not found, multi-monitor setups won't be supported." ;;
10770   xno) ;;
10771   *)   { { echo "$as_me:$LINENO: error: libxinerama development files not found, multi-monitor setups won't be supported.
10772 This is an error since --with-xinerama was requested." >&5
10773 echo "$as_me: error: libxinerama development files not found, multi-monitor setups won't be supported.
10774 This is an error since --with-xinerama was requested." >&2;}
10775    { (exit 1); exit 1; }; } ;;
10776 esac
10777 fi
10778
10779
10780                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10781         then
10782             { echo "$as_me:$LINENO: checking for -lXcomposite" >&5
10783 echo $ECHO_N "checking for -lXcomposite... $ECHO_C" >&6; }
10784 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then
10785   echo $ECHO_N "(cached) $ECHO_C" >&6
10786 else
10787   ac_check_soname_save_LIBS=$LIBS
10788 LIBS="-lXcomposite $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10789   cat >conftest.$ac_ext <<_ACEOF
10790 /* confdefs.h.  */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h.  */
10795
10796 /* Override any GCC internal prototype to avoid an error.
10797    Use char because int might match the return type of a GCC
10798    builtin and then its argument prototype would still apply.  */
10799 #ifdef __cplusplus
10800 extern "C"
10801 #endif
10802 char XCompositeRedirectWindow ();
10803 int
10804 main ()
10805 {
10806 return XCompositeRedirectWindow ();
10807   ;
10808   return 0;
10809 }
10810 _ACEOF
10811 rm -f conftest.$ac_objext conftest$ac_exeext
10812 if { (ac_try="$ac_link"
10813 case "(($ac_try" in
10814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815   *) ac_try_echo=$ac_try;;
10816 esac
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818   (eval "$ac_link") 2>conftest.er1
10819   ac_status=$?
10820   grep -v '^ *+' conftest.er1 >conftest.err
10821   rm -f conftest.er1
10822   cat conftest.err >&5
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); } && {
10825          test -z "$ac_c_werror_flag" ||
10826          test ! -s conftest.err
10827        } && test -s conftest$ac_exeext &&
10828        $as_test_x conftest$ac_exeext; then
10829   case "$LIBEXT" in
10830     dll) ;;
10831     dylib) ac_cv_lib_soname_Xcomposite=`otool -L conftest$ac_exeext | grep "libXcomposite\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcomposite\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10832     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
10833   esac
10834 else
10835   echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838
10839 fi
10840
10841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10842       conftest$ac_exeext conftest.$ac_ext
10843   LIBS=$ac_check_soname_save_LIBS
10844 fi
10845 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then
10846   { echo "$as_me:$LINENO: result: not found" >&5
10847 echo "${ECHO_T}not found" >&6; }
10848
10849 else
10850   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xcomposite" >&5
10851 echo "${ECHO_T}$ac_cv_lib_soname_Xcomposite" >&6; }
10852
10853 cat >>confdefs.h <<_ACEOF
10854 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10855 _ACEOF
10856
10857
10858 fi
10859
10860         fi
10861         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then
10862   case "x$with_xcomposite" in
10863   x)   wine_notices="$wine_notices|libxcomposite development files not found, Xcomposite won't be supported." ;;
10864   xno) ;;
10865   *)   { { echo "$as_me:$LINENO: error: libxcomposite development files not found, Xcomposite won't be supported.
10866 This is an error since --with-xcomposite was requested." >&5
10867 echo "$as_me: error: libxcomposite development files not found, Xcomposite won't be supported.
10868 This is an error since --with-xcomposite was requested." >&2;}
10869    { (exit 1); exit 1; }; } ;;
10870 esac
10871 fi
10872
10873
10874                 { echo "$as_me:$LINENO: checking for XICCallback.callback" >&5
10875 echo $ECHO_N "checking for XICCallback.callback... $ECHO_C" >&6; }
10876 if test "${ac_cv_member_XICCallback_callback+set}" = set; then
10877   echo $ECHO_N "(cached) $ECHO_C" >&6
10878 else
10879   cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 #ifdef HAVE_X11_XLIB_H
10886 #include <X11/Xlib.h>
10887 #endif
10888
10889 int
10890 main ()
10891 {
10892 static XICCallback ac_aggr;
10893 if (ac_aggr.callback)
10894 return 0;
10895   ;
10896   return 0;
10897 }
10898 _ACEOF
10899 rm -f conftest.$ac_objext
10900 if { (ac_try="$ac_compile"
10901 case "(($ac_try" in
10902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903   *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906   (eval "$ac_compile") 2>conftest.er1
10907   ac_status=$?
10908   grep -v '^ *+' conftest.er1 >conftest.err
10909   rm -f conftest.er1
10910   cat conftest.err >&5
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } && {
10913          test -z "$ac_c_werror_flag" ||
10914          test ! -s conftest.err
10915        } && test -s conftest.$ac_objext; then
10916   ac_cv_member_XICCallback_callback=yes
10917 else
10918   echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10920
10921         cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h.  */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h.  */
10927 #ifdef HAVE_X11_XLIB_H
10928 #include <X11/Xlib.h>
10929 #endif
10930
10931 int
10932 main ()
10933 {
10934 static XICCallback ac_aggr;
10935 if (sizeof ac_aggr.callback)
10936 return 0;
10937   ;
10938   return 0;
10939 }
10940 _ACEOF
10941 rm -f conftest.$ac_objext
10942 if { (ac_try="$ac_compile"
10943 case "(($ac_try" in
10944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945   *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948   (eval "$ac_compile") 2>conftest.er1
10949   ac_status=$?
10950   grep -v '^ *+' conftest.er1 >conftest.err
10951   rm -f conftest.er1
10952   cat conftest.err >&5
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); } && {
10955          test -z "$ac_c_werror_flag" ||
10956          test ! -s conftest.err
10957        } && test -s conftest.$ac_objext; then
10958   ac_cv_member_XICCallback_callback=yes
10959 else
10960   echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963         ac_cv_member_XICCallback_callback=no
10964 fi
10965
10966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10967 fi
10968
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 fi
10971 { echo "$as_me:$LINENO: result: $ac_cv_member_XICCallback_callback" >&5
10972 echo "${ECHO_T}$ac_cv_member_XICCallback_callback" >&6; }
10973 if test $ac_cv_member_XICCallback_callback = yes; then
10974
10975 cat >>confdefs.h <<_ACEOF
10976 #define HAVE_XICCALLBACK_CALLBACK 1
10977 _ACEOF
10978
10979
10980 fi
10981
10982
10983
10984         opengl_msg=""
10985     if test "x$with_opengl" != "xno"
10986     then
10987
10988
10989
10990
10991 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
10992 do
10993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10997   echo $ECHO_N "(cached) $ECHO_C" >&6
10998 else
10999   cat >conftest.$ac_ext <<_ACEOF
11000 /* confdefs.h.  */
11001 _ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h.  */
11005 #ifdef HAVE_GL_GLX_H
11006 # include <GL/glx.h>
11007 #endif
11008
11009 #include <$ac_header>
11010 _ACEOF
11011 rm -f conftest.$ac_objext
11012 if { (ac_try="$ac_compile"
11013 case "(($ac_try" in
11014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015   *) ac_try_echo=$ac_try;;
11016 esac
11017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11018   (eval "$ac_compile") 2>conftest.er1
11019   ac_status=$?
11020   grep -v '^ *+' conftest.er1 >conftest.err
11021   rm -f conftest.er1
11022   cat conftest.err >&5
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } && {
11025          test -z "$ac_c_werror_flag" ||
11026          test ! -s conftest.err
11027        } && test -s conftest.$ac_objext; then
11028   eval "$as_ac_Header=yes"
11029 else
11030   echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033         eval "$as_ac_Header=no"
11034 fi
11035
11036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11037 fi
11038 ac_res=`eval echo '${'$as_ac_Header'}'`
11039                { echo "$as_me:$LINENO: result: $ac_res" >&5
11040 echo "${ECHO_T}$ac_res" >&6; }
11041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11042   cat >>confdefs.h <<_ACEOF
11043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11044 _ACEOF
11045
11046 fi
11047
11048 done
11049
11050         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
11051         then
11052                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
11053 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
11054 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
11055   echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057   cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h.  */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h.  */
11063 #include <GL/gl.h>
11064 int
11065 main ()
11066 {
11067 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext
11073 if { (ac_try="$ac_compile"
11074 case "(($ac_try" in
11075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076   *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079   (eval "$ac_compile") 2>conftest.er1
11080   ac_status=$?
11081   grep -v '^ *+' conftest.er1 >conftest.err
11082   rm -f conftest.er1
11083   cat conftest.err >&5
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); } && {
11086          test -z "$ac_c_werror_flag" ||
11087          test ! -s conftest.err
11088        } && test -s conftest.$ac_objext; then
11089   wine_cv_opengl_header_version_OK="yes"
11090 else
11091   echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094         wine_cv_opengl_header_version_OK="no"
11095 fi
11096
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098 fi
11099 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
11100 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
11101
11102             if test "$wine_cv_opengl_header_version_OK" = "yes"
11103             then
11104                                 { echo "$as_me:$LINENO: checking for -lGL" >&5
11105 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
11106 if test "${ac_cv_lib_soname_GL+set}" = set; then
11107   echo $ECHO_N "(cached) $ECHO_C" >&6
11108 else
11109   ac_check_soname_save_LIBS=$LIBS
11110 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
11111   cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h.  */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h.  */
11117
11118 /* Override any GCC internal prototype to avoid an error.
11119    Use char because int might match the return type of a GCC
11120    builtin and then its argument prototype would still apply.  */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 char glXCreateContext ();
11125 int
11126 main ()
11127 {
11128 return glXCreateContext ();
11129   ;
11130   return 0;
11131 }
11132 _ACEOF
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137   *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140   (eval "$ac_link") 2>conftest.er1
11141   ac_status=$?
11142   grep -v '^ *+' conftest.er1 >conftest.err
11143   rm -f conftest.er1
11144   cat conftest.err >&5
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); } && {
11147          test -z "$ac_c_werror_flag" ||
11148          test ! -s conftest.err
11149        } && test -s conftest$ac_exeext &&
11150        $as_test_x conftest$ac_exeext; then
11151   case "$LIBEXT" in
11152     dll) ;;
11153     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'` ;;
11154     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11155   esac
11156 else
11157   echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11159
11160
11161 fi
11162
11163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11164       conftest$ac_exeext conftest.$ac_ext
11165   LIBS=$ac_check_soname_save_LIBS
11166 fi
11167 if test "x$ac_cv_lib_soname_GL" = "x"; then
11168   { echo "$as_me:$LINENO: result: not found" >&5
11169 echo "${ECHO_T}not found" >&6; }
11170        { echo "$as_me:$LINENO: checking for -lGL" >&5
11171 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
11172 if test "${ac_cv_lib_soname_GL+set}" = set; then
11173   echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175   ac_check_soname_save_LIBS=$LIBS
11176 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
11177   cat >conftest.$ac_ext <<_ACEOF
11178 /* confdefs.h.  */
11179 _ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h.  */
11183
11184 /* Override any GCC internal prototype to avoid an error.
11185    Use char because int might match the return type of a GCC
11186    builtin and then its argument prototype would still apply.  */
11187 #ifdef __cplusplus
11188 extern "C"
11189 #endif
11190 char glXCreateContext ();
11191 int
11192 main ()
11193 {
11194 return glXCreateContext ();
11195   ;
11196   return 0;
11197 }
11198 _ACEOF
11199 rm -f conftest.$ac_objext conftest$ac_exeext
11200 if { (ac_try="$ac_link"
11201 case "(($ac_try" in
11202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203   *) ac_try_echo=$ac_try;;
11204 esac
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206   (eval "$ac_link") 2>conftest.er1
11207   ac_status=$?
11208   grep -v '^ *+' conftest.er1 >conftest.err
11209   rm -f conftest.er1
11210   cat conftest.err >&5
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); } && {
11213          test -z "$ac_c_werror_flag" ||
11214          test ! -s conftest.err
11215        } && test -s conftest$ac_exeext &&
11216        $as_test_x conftest$ac_exeext; then
11217   case "$LIBEXT" in
11218     dll) ;;
11219     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'` ;;
11220     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11221   esac
11222 else
11223   echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11225
11226
11227 fi
11228
11229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11230       conftest$ac_exeext conftest.$ac_ext
11231   LIBS=$ac_check_soname_save_LIBS
11232 fi
11233 if test "x$ac_cv_lib_soname_GL" = "x"; then
11234   { echo "$as_me:$LINENO: result: not found" >&5
11235 echo "${ECHO_T}not found" >&6; }
11236        if test -f /usr/X11R6/lib/libGL.a
11237                                     then
11238                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
11239 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
11240                                     else
11241                                         opengl_msg="No OpenGL library found on this system."
11242                                     fi
11243 else
11244   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
11245 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
11246
11247 cat >>confdefs.h <<_ACEOF
11248 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
11249 _ACEOF
11250
11251        OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL"
11252                                     OPENGLFILES='$(OPENGLFILES)'
11253
11254 cat >>confdefs.h <<\_ACEOF
11255 #define HAVE_OPENGL 1
11256 _ACEOF
11257
11258 fi
11259
11260 else
11261   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
11262 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
11263
11264 cat >>confdefs.h <<_ACEOF
11265 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
11266 _ACEOF
11267
11268        OPENGL_LIBS="-lGL"
11269                              OPENGLFILES='$(OPENGLFILES)'
11270
11271 cat >>confdefs.h <<\_ACEOF
11272 #define HAVE_OPENGL 1
11273 _ACEOF
11274
11275 fi
11276
11277                  if test "$ac_cv_header_GL_glu_h" = "yes"
11278                  then
11279                     { echo "$as_me:$LINENO: checking for -lGLU" >&5
11280 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
11281 if test "${ac_cv_lib_soname_GLU+set}" = set; then
11282   echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284   ac_check_soname_save_LIBS=$LIBS
11285 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
11286   cat >conftest.$ac_ext <<_ACEOF
11287 /* confdefs.h.  */
11288 _ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h.  */
11292
11293 /* Override any GCC internal prototype to avoid an error.
11294    Use char because int might match the return type of a GCC
11295    builtin and then its argument prototype would still apply.  */
11296 #ifdef __cplusplus
11297 extern "C"
11298 #endif
11299 char gluLookAt ();
11300 int
11301 main ()
11302 {
11303 return gluLookAt ();
11304   ;
11305   return 0;
11306 }
11307 _ACEOF
11308 rm -f conftest.$ac_objext conftest$ac_exeext
11309 if { (ac_try="$ac_link"
11310 case "(($ac_try" in
11311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312   *) ac_try_echo=$ac_try;;
11313 esac
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315   (eval "$ac_link") 2>conftest.er1
11316   ac_status=$?
11317   grep -v '^ *+' conftest.er1 >conftest.err
11318   rm -f conftest.er1
11319   cat conftest.err >&5
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } && {
11322          test -z "$ac_c_werror_flag" ||
11323          test ! -s conftest.err
11324        } && test -s conftest$ac_exeext &&
11325        $as_test_x conftest$ac_exeext; then
11326   case "$LIBEXT" in
11327     dll) ;;
11328     dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11329     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11330   esac
11331 else
11332   echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11334
11335
11336 fi
11337
11338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11339       conftest$ac_exeext conftest.$ac_ext
11340   LIBS=$ac_check_soname_save_LIBS
11341 fi
11342 if test "x$ac_cv_lib_soname_GLU" = "x"; then
11343   { echo "$as_me:$LINENO: result: not found" >&5
11344 echo "${ECHO_T}not found" >&6; }
11345
11346 else
11347   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GLU" >&5
11348 echo "${ECHO_T}$ac_cv_lib_soname_GLU" >&6; }
11349
11350 cat >>confdefs.h <<_ACEOF
11351 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
11352 _ACEOF
11353
11354        GLU32FILES='$(GLU32FILES)'
11355 fi
11356
11357                  fi
11358                  if test "x$ac_cv_lib_soname_GLU" = "x"; then
11359   case "x$with_glu" in
11360   x)   wine_notices="$wine_notices|libGLU development files not found, GLU won't be supported." ;;
11361   xno) ;;
11362   *)   { { echo "$as_me:$LINENO: error: libGLU development files not found, GLU won't be supported.
11363 This is an error since --with-glu was requested." >&5
11364 echo "$as_me: error: libGLU development files not found, GLU won't be supported.
11365 This is an error since --with-glu was requested." >&2;}
11366    { (exit 1); exit 1; }; } ;;
11367 esac
11368 fi
11369
11370              else
11371                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
11372              fi
11373          else
11374              opengl_msg="OpenGL development headers not found."
11375          fi
11376     fi
11377     if test -n "$opengl_msg"; then
11378   case "x$with_opengl" in
11379   x)   wine_warnings="$wine_warnings|$opengl_msg
11380 OpenGL and Direct3D won't be supported." ;;
11381   xno) ;;
11382   *)   { { echo "$as_me:$LINENO: error: $opengl_msg
11383 OpenGL and Direct3D won't be supported.
11384 This is an error since --with-opengl was requested." >&5
11385 echo "$as_me: error: $opengl_msg
11386 OpenGL and Direct3D won't be supported.
11387 This is an error since --with-opengl was requested." >&2;}
11388    { (exit 1); exit 1; }; } ;;
11389 esac
11390 fi
11391
11392
11393         NASLIBS=""
11394
11395
11396 for ac_header in audio/audiolib.h
11397 do
11398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 fi
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406                { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11408 else
11409   # Is the header compilable?
11410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h.  */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h.  */
11418 $ac_includes_default
11419 #include <$ac_header>
11420 _ACEOF
11421 rm -f conftest.$ac_objext
11422 if { (ac_try="$ac_compile"
11423 case "(($ac_try" in
11424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425   *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428   (eval "$ac_compile") 2>conftest.er1
11429   ac_status=$?
11430   grep -v '^ *+' conftest.er1 >conftest.err
11431   rm -f conftest.er1
11432   cat conftest.err >&5
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } && {
11435          test -z "$ac_c_werror_flag" ||
11436          test ! -s conftest.err
11437        } && test -s conftest.$ac_objext; then
11438   ac_header_compiler=yes
11439 else
11440   echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11442
11443         ac_header_compiler=no
11444 fi
11445
11446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11448 echo "${ECHO_T}$ac_header_compiler" >&6; }
11449
11450 # Is the header present?
11451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11453 cat >conftest.$ac_ext <<_ACEOF
11454 /* confdefs.h.  */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h.  */
11459 #include <$ac_header>
11460 _ACEOF
11461 if { (ac_try="$ac_cpp conftest.$ac_ext"
11462 case "(($ac_try" in
11463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464   *) ac_try_echo=$ac_try;;
11465 esac
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11468   ac_status=$?
11469   grep -v '^ *+' conftest.er1 >conftest.err
11470   rm -f conftest.er1
11471   cat conftest.err >&5
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); } >/dev/null && {
11474          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11475          test ! -s conftest.err
11476        }; then
11477   ac_header_preproc=yes
11478 else
11479   echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11481
11482   ac_header_preproc=no
11483 fi
11484
11485 rm -f conftest.err conftest.$ac_ext
11486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11487 echo "${ECHO_T}$ac_header_preproc" >&6; }
11488
11489 # So?  What about this header?
11490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11491   yes:no: )
11492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11496     ac_header_preproc=yes
11497     ;;
11498   no:yes:* )
11499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11511     ( cat <<\_ASBOX
11512 ## ------------------------------------ ##
11513 ## Report this to wine-devel@winehq.org ##
11514 ## ------------------------------------ ##
11515 _ASBOX
11516      ) | sed "s/^/$as_me: WARNING:     /" >&2
11517     ;;
11518 esac
11519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11522   echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524   eval "$as_ac_Header=\$ac_header_preproc"
11525 fi
11526 ac_res=`eval echo '${'$as_ac_Header'}'`
11527                { echo "$as_me:$LINENO: result: $ac_res" >&5
11528 echo "${ECHO_T}$ac_res" >&6; }
11529
11530 fi
11531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11532   cat >>confdefs.h <<_ACEOF
11533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11534 _ACEOF
11535
11536 for ac_header in audio/soundlib.h
11537 do
11538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11542   echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544   cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h.  */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h.  */
11550 #include <audio/audiolib.h>
11551
11552 #include <$ac_header>
11553 _ACEOF
11554 rm -f conftest.$ac_objext
11555 if { (ac_try="$ac_compile"
11556 case "(($ac_try" in
11557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558   *) ac_try_echo=$ac_try;;
11559 esac
11560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561   (eval "$ac_compile") 2>conftest.er1
11562   ac_status=$?
11563   grep -v '^ *+' conftest.er1 >conftest.err
11564   rm -f conftest.er1
11565   cat conftest.err >&5
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); } && {
11568          test -z "$ac_c_werror_flag" ||
11569          test ! -s conftest.err
11570        } && test -s conftest.$ac_objext; then
11571   eval "$as_ac_Header=yes"
11572 else
11573   echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576         eval "$as_ac_Header=no"
11577 fi
11578
11579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11580 fi
11581 ac_res=`eval echo '${'$as_ac_Header'}'`
11582                { echo "$as_me:$LINENO: result: $ac_res" >&5
11583 echo "${ECHO_T}$ac_res" >&6; }
11584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11585   cat >>confdefs.h <<_ACEOF
11586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11587 _ACEOF
11588
11589 fi
11590
11591 done
11592
11593           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
11594 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
11595 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
11596   echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598   ac_check_lib_save_LIBS=$LIBS
11599 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h.  */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h.  */
11606
11607 /* Override any GCC internal prototype to avoid an error.
11608    Use char because int might match the return type of a GCC
11609    builtin and then its argument prototype would still apply.  */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 char AuCreateFlow ();
11614 int
11615 main ()
11616 {
11617 return AuCreateFlow ();
11618   ;
11619   return 0;
11620 }
11621 _ACEOF
11622 rm -f conftest.$ac_objext conftest$ac_exeext
11623 if { (ac_try="$ac_link"
11624 case "(($ac_try" in
11625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626   *) ac_try_echo=$ac_try;;
11627 esac
11628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629   (eval "$ac_link") 2>conftest.er1
11630   ac_status=$?
11631   grep -v '^ *+' conftest.er1 >conftest.err
11632   rm -f conftest.er1
11633   cat conftest.err >&5
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); } && {
11636          test -z "$ac_c_werror_flag" ||
11637          test ! -s conftest.err
11638        } && test -s conftest$ac_exeext &&
11639        $as_test_x conftest$ac_exeext; then
11640   ac_cv_lib_audio_AuCreateFlow=yes
11641 else
11642   echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11644
11645         ac_cv_lib_audio_AuCreateFlow=no
11646 fi
11647
11648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11649       conftest$ac_exeext conftest.$ac_ext
11650 LIBS=$ac_check_lib_save_LIBS
11651 fi
11652 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
11653 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
11654 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
11655
11656 cat >>confdefs.h <<\_ACEOF
11657 #define HAVE_NAS 1
11658 _ACEOF
11659
11660                         { echo "$as_me:$LINENO: checking for XauGetBestAuthByAddr in -lXau" >&5
11661 echo $ECHO_N "checking for XauGetBestAuthByAddr in -lXau... $ECHO_C" >&6; }
11662 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then
11663   echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665   ac_check_lib_save_LIBS=$LIBS
11666 LIBS="-lXau $X_LIBS $LIBS"
11667 cat >conftest.$ac_ext <<_ACEOF
11668 /* confdefs.h.  */
11669 _ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h.  */
11673
11674 /* Override any GCC internal prototype to avoid an error.
11675    Use char because int might match the return type of a GCC
11676    builtin and then its argument prototype would still apply.  */
11677 #ifdef __cplusplus
11678 extern "C"
11679 #endif
11680 char XauGetBestAuthByAddr ();
11681 int
11682 main ()
11683 {
11684 return XauGetBestAuthByAddr ();
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (ac_try="$ac_link"
11691 case "(($ac_try" in
11692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693   *) ac_try_echo=$ac_try;;
11694 esac
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696   (eval "$ac_link") 2>conftest.er1
11697   ac_status=$?
11698   grep -v '^ *+' conftest.er1 >conftest.err
11699   rm -f conftest.er1
11700   cat conftest.err >&5
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); } && {
11703          test -z "$ac_c_werror_flag" ||
11704          test ! -s conftest.err
11705        } && test -s conftest$ac_exeext &&
11706        $as_test_x conftest$ac_exeext; then
11707   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
11708 else
11709   echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712         ac_cv_lib_Xau_XauGetBestAuthByAddr=no
11713 fi
11714
11715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11716       conftest$ac_exeext conftest.$ac_ext
11717 LIBS=$ac_check_lib_save_LIBS
11718 fi
11719 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
11720 echo "${ECHO_T}$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
11721 if test $ac_cv_lib_Xau_XauGetBestAuthByAddr = yes; then
11722   NASLIBS="-lXau -laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
11723 else
11724   NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
11725 fi
11726
11727
11728 fi
11729
11730 fi
11731
11732 done
11733
11734
11735     CPPFLAGS="$ac_save_CPPFLAGS"
11736     XFILES='$(XFILES)'
11737 else
11738     XLIB=""
11739     X_CFLAGS=""
11740     X_LIBS=""
11741 fi
11742 if test "x$XLIB" = "x"; then
11743   case "x$with_x" in
11744   xno) ;;
11745   *)   { { echo "$as_me:$LINENO: error: X development files not found. Wine will be built
11746 without X support, which probably isn't what you want. You will need to install
11747 development packages of Xlib/Xfree86 at the very least.
11748 Use the --without-x option if you really want this." >&5
11749 echo "$as_me: error: X development files not found. Wine will be built
11750 without X support, which probably isn't what you want. You will need to install
11751 development packages of Xlib/Xfree86 at the very least.
11752 Use the --without-x option if you really want this." >&2;}
11753    { (exit 1); exit 1; }; } ;;
11754 esac
11755 fi
11756
11757
11758
11759 XML2LIBS=""
11760
11761 XML2INCL=""
11762
11763 XSLTLIBS=""
11764
11765 XSLTINCL=""
11766
11767 if test "x$with_xml" != "xno"
11768 then
11769     ac_save_CPPFLAGS="$CPPFLAGS"
11770     if test "$PKG_CONFIG" != "false"
11771     then
11772         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
11773         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
11774     else
11775         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
11776         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
11777     fi
11778     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
11779
11780 for ac_header in libxml/parser.h
11781 do
11782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11784   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11787   echo $ECHO_N "(cached) $ECHO_C" >&6
11788 fi
11789 ac_res=`eval echo '${'$as_ac_Header'}'`
11790                { echo "$as_me:$LINENO: result: $ac_res" >&5
11791 echo "${ECHO_T}$ac_res" >&6; }
11792 else
11793   # Is the header compilable?
11794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11796 cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h.  */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h.  */
11802 $ac_includes_default
11803 #include <$ac_header>
11804 _ACEOF
11805 rm -f conftest.$ac_objext
11806 if { (ac_try="$ac_compile"
11807 case "(($ac_try" in
11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809   *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812   (eval "$ac_compile") 2>conftest.er1
11813   ac_status=$?
11814   grep -v '^ *+' conftest.er1 >conftest.err
11815   rm -f conftest.er1
11816   cat conftest.err >&5
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); } && {
11819          test -z "$ac_c_werror_flag" ||
11820          test ! -s conftest.err
11821        } && test -s conftest.$ac_objext; then
11822   ac_header_compiler=yes
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827         ac_header_compiler=no
11828 fi
11829
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11832 echo "${ECHO_T}$ac_header_compiler" >&6; }
11833
11834 # Is the header present?
11835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11837 cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h.  */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h.  */
11843 #include <$ac_header>
11844 _ACEOF
11845 if { (ac_try="$ac_cpp conftest.$ac_ext"
11846 case "(($ac_try" in
11847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848   *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11852   ac_status=$?
11853   grep -v '^ *+' conftest.er1 >conftest.err
11854   rm -f conftest.er1
11855   cat conftest.err >&5
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); } >/dev/null && {
11858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11859          test ! -s conftest.err
11860        }; then
11861   ac_header_preproc=yes
11862 else
11863   echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11865
11866   ac_header_preproc=no
11867 fi
11868
11869 rm -f conftest.err conftest.$ac_ext
11870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11871 echo "${ECHO_T}$ac_header_preproc" >&6; }
11872
11873 # So?  What about this header?
11874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11875   yes:no: )
11876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11880     ac_header_preproc=yes
11881     ;;
11882   no:yes:* )
11883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11895     ( cat <<\_ASBOX
11896 ## ------------------------------------ ##
11897 ## Report this to wine-devel@winehq.org ##
11898 ## ------------------------------------ ##
11899 _ASBOX
11900      ) | sed "s/^/$as_me: WARNING:     /" >&2
11901     ;;
11902 esac
11903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11906   echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908   eval "$as_ac_Header=\$ac_header_preproc"
11909 fi
11910 ac_res=`eval echo '${'$as_ac_Header'}'`
11911                { echo "$as_me:$LINENO: result: $ac_res" >&5
11912 echo "${ECHO_T}$ac_res" >&6; }
11913
11914 fi
11915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11916   cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11918 _ACEOF
11919  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
11920 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
11921 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
11922   echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924   ac_check_lib_save_LIBS=$LIBS
11925 LIBS="-lxml2 $ac_xml_libs $LIBS"
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932
11933 /* Override any GCC internal prototype to avoid an error.
11934    Use char because int might match the return type of a GCC
11935    builtin and then its argument prototype would still apply.  */
11936 #ifdef __cplusplus
11937 extern "C"
11938 #endif
11939 char xmlParseMemory ();
11940 int
11941 main ()
11942 {
11943 return xmlParseMemory ();
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952   *) ac_try_echo=$ac_try;;
11953 esac
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955   (eval "$ac_link") 2>conftest.er1
11956   ac_status=$?
11957   grep -v '^ *+' conftest.er1 >conftest.err
11958   rm -f conftest.er1
11959   cat conftest.err >&5
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } && {
11962          test -z "$ac_c_werror_flag" ||
11963          test ! -s conftest.err
11964        } && test -s conftest$ac_exeext &&
11965        $as_test_x conftest$ac_exeext; then
11966   ac_cv_lib_xml2_xmlParseMemory=yes
11967 else
11968   echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11970
11971         ac_cv_lib_xml2_xmlParseMemory=no
11972 fi
11973
11974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11975       conftest$ac_exeext conftest.$ac_ext
11976 LIBS=$ac_check_lib_save_LIBS
11977 fi
11978 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
11979 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
11980 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
11981
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_LIBXML2 1
11984 _ACEOF
11985
11986                  XML2LIBS="$ac_xml_libs"
11987                  XML2INCL="$ac_xml_cflags"
11988 fi
11989
11990              { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
11991 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
11992 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   ac_check_lib_save_LIBS=$LIBS
11996 LIBS="-lxml2 $ac_xml_libs $LIBS"
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h.  */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h.  */
12003
12004 /* Override any GCC internal prototype to avoid an error.
12005    Use char because int might match the return type of a GCC
12006    builtin and then its argument prototype would still apply.  */
12007 #ifdef __cplusplus
12008 extern "C"
12009 #endif
12010 char xmlReadMemory ();
12011 int
12012 main ()
12013 {
12014 return xmlReadMemory ();
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest.$ac_objext conftest$ac_exeext
12020 if { (ac_try="$ac_link"
12021 case "(($ac_try" in
12022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023   *) ac_try_echo=$ac_try;;
12024 esac
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026   (eval "$ac_link") 2>conftest.er1
12027   ac_status=$?
12028   grep -v '^ *+' conftest.er1 >conftest.err
12029   rm -f conftest.er1
12030   cat conftest.err >&5
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); } && {
12033          test -z "$ac_c_werror_flag" ||
12034          test ! -s conftest.err
12035        } && test -s conftest$ac_exeext &&
12036        $as_test_x conftest$ac_exeext; then
12037   ac_cv_lib_xml2_xmlReadMemory=yes
12038 else
12039   echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12041
12042         ac_cv_lib_xml2_xmlReadMemory=no
12043 fi
12044
12045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12046       conftest$ac_exeext conftest.$ac_ext
12047 LIBS=$ac_check_lib_save_LIBS
12048 fi
12049 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
12050 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
12051 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
12052
12053 cat >>confdefs.h <<\_ACEOF
12054 #define HAVE_XMLREADMEMORY 1
12055 _ACEOF
12056
12057 fi
12058
12059              { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
12060 echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
12061 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
12062   echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064   ac_check_lib_save_LIBS=$LIBS
12065 LIBS="-lxml2 $ac_xml_libs $LIBS"
12066 cat >conftest.$ac_ext <<_ACEOF
12067 /* confdefs.h.  */
12068 _ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h.  */
12072
12073 /* Override any GCC internal prototype to avoid an error.
12074    Use char because int might match the return type of a GCC
12075    builtin and then its argument prototype would still apply.  */
12076 #ifdef __cplusplus
12077 extern "C"
12078 #endif
12079 char xmlNewDocPI ();
12080 int
12081 main ()
12082 {
12083 return xmlNewDocPI ();
12084   ;
12085   return 0;
12086 }
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (ac_try="$ac_link"
12090 case "(($ac_try" in
12091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092   *) ac_try_echo=$ac_try;;
12093 esac
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095   (eval "$ac_link") 2>conftest.er1
12096   ac_status=$?
12097   grep -v '^ *+' conftest.er1 >conftest.err
12098   rm -f conftest.er1
12099   cat conftest.err >&5
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); } && {
12102          test -z "$ac_c_werror_flag" ||
12103          test ! -s conftest.err
12104        } && test -s conftest$ac_exeext &&
12105        $as_test_x conftest$ac_exeext; then
12106   ac_cv_lib_xml2_xmlNewDocPI=yes
12107 else
12108   echo "$as_me: failed program was:" >&5
12109 sed 's/^/| /' conftest.$ac_ext >&5
12110
12111         ac_cv_lib_xml2_xmlNewDocPI=no
12112 fi
12113
12114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12115       conftest$ac_exeext conftest.$ac_ext
12116 LIBS=$ac_check_lib_save_LIBS
12117 fi
12118 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
12119 echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
12120 if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
12121
12122 cat >>confdefs.h <<\_ACEOF
12123 #define HAVE_XMLNEWDOCPI 1
12124 _ACEOF
12125
12126 fi
12127
12128
12129 fi
12130
12131 done
12132
12133     CPPFLAGS="$ac_save_CPPFLAGS"
12134 fi
12135 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then
12136   case "x$with_xml" in
12137   x)   wine_warnings="$wine_warnings|libxml2 development files not found, XML won't be supported." ;;
12138   xno) ;;
12139   *)   { { echo "$as_me:$LINENO: error: libxml2 development files not found, XML won't be supported.
12140 This is an error since --with-xml was requested." >&5
12141 echo "$as_me: error: libxml2 development files not found, XML won't be supported.
12142 This is an error since --with-xml was requested." >&2;}
12143    { (exit 1); exit 1; }; } ;;
12144 esac
12145 fi
12146
12147
12148 if test "x$with_xslt" != "xno"
12149 then
12150     if test "$PKG_CONFIG" != "false"
12151     then
12152         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
12153         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
12154     else
12155         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
12156         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
12157     fi
12158     ac_save_CPPFLAGS="$CPPFLAGS"
12159     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
12160
12161
12162 for ac_header in libxslt/pattern.h libxslt/transform.h
12163 do
12164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12168   echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170   cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h.  */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h.  */
12176 #ifdef HAVE_LIBXSLT_PATTERN_H
12177 # include <libxslt/pattern.h>
12178 #endif
12179
12180 #include <$ac_header>
12181 _ACEOF
12182 rm -f conftest.$ac_objext
12183 if { (ac_try="$ac_compile"
12184 case "(($ac_try" in
12185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186   *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189   (eval "$ac_compile") 2>conftest.er1
12190   ac_status=$?
12191   grep -v '^ *+' conftest.er1 >conftest.err
12192   rm -f conftest.er1
12193   cat conftest.err >&5
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); } && {
12196          test -z "$ac_c_werror_flag" ||
12197          test ! -s conftest.err
12198        } && test -s conftest.$ac_objext; then
12199   eval "$as_ac_Header=yes"
12200 else
12201   echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12203
12204         eval "$as_ac_Header=no"
12205 fi
12206
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208 fi
12209 ac_res=`eval echo '${'$as_ac_Header'}'`
12210                { echo "$as_me:$LINENO: result: $ac_res" >&5
12211 echo "${ECHO_T}$ac_res" >&6; }
12212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12213   cat >>confdefs.h <<_ACEOF
12214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12215 _ACEOF
12216
12217 fi
12218
12219 done
12220
12221     CPPFLAGS="$ac_save_CPPFLAGS"
12222     if test "$ac_cv_header_libxslt_transform_h" = "yes"
12223     then
12224         { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
12225 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
12226 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
12227   echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229   ac_check_lib_save_LIBS=$LIBS
12230 LIBS="-lxslt $ac_xslt_libs $LIBS"
12231 cat >conftest.$ac_ext <<_ACEOF
12232 /* confdefs.h.  */
12233 _ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h.  */
12237
12238 /* Override any GCC internal prototype to avoid an error.
12239    Use char because int might match the return type of a GCC
12240    builtin and then its argument prototype would still apply.  */
12241 #ifdef __cplusplus
12242 extern "C"
12243 #endif
12244 char xsltCompilePattern ();
12245 int
12246 main ()
12247 {
12248 return xsltCompilePattern ();
12249   ;
12250   return 0;
12251 }
12252 _ACEOF
12253 rm -f conftest.$ac_objext conftest$ac_exeext
12254 if { (ac_try="$ac_link"
12255 case "(($ac_try" in
12256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257   *) ac_try_echo=$ac_try;;
12258 esac
12259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260   (eval "$ac_link") 2>conftest.er1
12261   ac_status=$?
12262   grep -v '^ *+' conftest.er1 >conftest.err
12263   rm -f conftest.er1
12264   cat conftest.err >&5
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); } && {
12267          test -z "$ac_c_werror_flag" ||
12268          test ! -s conftest.err
12269        } && test -s conftest$ac_exeext &&
12270        $as_test_x conftest$ac_exeext; then
12271   ac_cv_lib_xslt_xsltCompilePattern=yes
12272 else
12273   echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12275
12276         ac_cv_lib_xslt_xsltCompilePattern=no
12277 fi
12278
12279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12280       conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12282 fi
12283 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
12284 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
12285 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
12286
12287 cat >>confdefs.h <<\_ACEOF
12288 #define HAVE_LIBXSLT 1
12289 _ACEOF
12290
12291              XSLTLIBS="$ac_xslt_libs"
12292              XSLTINCL="$ac_xslt_cflags"
12293              ac_save_LIBS="$LIBS"
12294              LIBS="$LIBS $ac_xslt_libs"
12295
12296 for ac_func in xsltInit
12297 do
12298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12302   echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304   cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h.  */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h.  */
12310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12312 #define $ac_func innocuous_$ac_func
12313
12314 /* System header to define __stub macros and hopefully few prototypes,
12315     which can conflict with char $ac_func (); below.
12316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12317     <limits.h> exists even on freestanding compilers.  */
12318
12319 #ifdef __STDC__
12320 # include <limits.h>
12321 #else
12322 # include <assert.h>
12323 #endif
12324
12325 #undef $ac_func
12326
12327 /* Override any GCC internal prototype to avoid an error.
12328    Use char because int might match the return type of a GCC
12329    builtin and then its argument prototype would still apply.  */
12330 #ifdef __cplusplus
12331 extern "C"
12332 #endif
12333 char $ac_func ();
12334 /* The GNU C library defines this for functions which it implements
12335     to always fail with ENOSYS.  Some functions are actually named
12336     something starting with __ and the normal name is an alias.  */
12337 #if defined __stub_$ac_func || defined __stub___$ac_func
12338 choke me
12339 #endif
12340
12341 int
12342 main ()
12343 {
12344 return $ac_func ();
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (ac_try="$ac_link"
12351 case "(($ac_try" in
12352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353   *) ac_try_echo=$ac_try;;
12354 esac
12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356   (eval "$ac_link") 2>conftest.er1
12357   ac_status=$?
12358   grep -v '^ *+' conftest.er1 >conftest.err
12359   rm -f conftest.er1
12360   cat conftest.err >&5
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); } && {
12363          test -z "$ac_c_werror_flag" ||
12364          test ! -s conftest.err
12365        } && test -s conftest$ac_exeext &&
12366        $as_test_x conftest$ac_exeext; then
12367   eval "$as_ac_var=yes"
12368 else
12369   echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12371
12372         eval "$as_ac_var=no"
12373 fi
12374
12375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12376       conftest$ac_exeext conftest.$ac_ext
12377 fi
12378 ac_res=`eval echo '${'$as_ac_var'}'`
12379                { echo "$as_me:$LINENO: result: $ac_res" >&5
12380 echo "${ECHO_T}$ac_res" >&6; }
12381 if test `eval echo '${'$as_ac_var'}'` = yes; then
12382   cat >>confdefs.h <<_ACEOF
12383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12384 _ACEOF
12385
12386 fi
12387 done
12388
12389              LIBS="$ac_save_LIBS"
12390 fi
12391
12392     fi
12393 fi
12394 if test "$ac_cv_lib_xslt_xsltCompilePattern" != "yes"; then
12395   case "x$with_xslt" in
12396   x)   wine_warnings="$wine_warnings|libxslt development files not found, xslt won't be supported." ;;
12397   xno) ;;
12398   *)   { { echo "$as_me:$LINENO: error: libxslt development files not found, xslt won't be supported.
12399 This is an error since --with-xslt was requested." >&5
12400 echo "$as_me: error: libxslt development files not found, xslt won't be supported.
12401 This is an error since --with-xslt was requested." >&2;}
12402    { (exit 1); exit 1; }; } ;;
12403 esac
12404 fi
12405
12406
12407 HALINCL=""
12408
12409 if test "x$with_hal" != "xno" -a "$PKG_CONFIG" != "false"
12410 then
12411     ac_save_CPPFLAGS="$CPPFLAGS"
12412     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
12413     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
12414     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
12415
12416
12417 for ac_header in dbus/dbus.h hal/libhal.h
12418 do
12419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12421   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12424   echo $ECHO_N "(cached) $ECHO_C" >&6
12425 fi
12426 ac_res=`eval echo '${'$as_ac_Header'}'`
12427                { echo "$as_me:$LINENO: result: $ac_res" >&5
12428 echo "${ECHO_T}$ac_res" >&6; }
12429 else
12430   # Is the header compilable?
12431 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12433 cat >conftest.$ac_ext <<_ACEOF
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439 $ac_includes_default
12440 #include <$ac_header>
12441 _ACEOF
12442 rm -f conftest.$ac_objext
12443 if { (ac_try="$ac_compile"
12444 case "(($ac_try" in
12445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446   *) ac_try_echo=$ac_try;;
12447 esac
12448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449   (eval "$ac_compile") 2>conftest.er1
12450   ac_status=$?
12451   grep -v '^ *+' conftest.er1 >conftest.err
12452   rm -f conftest.er1
12453   cat conftest.err >&5
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); } && {
12456          test -z "$ac_c_werror_flag" ||
12457          test ! -s conftest.err
12458        } && test -s conftest.$ac_objext; then
12459   ac_header_compiler=yes
12460 else
12461   echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12463
12464         ac_header_compiler=no
12465 fi
12466
12467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12469 echo "${ECHO_T}$ac_header_compiler" >&6; }
12470
12471 # Is the header present?
12472 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12474 cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h.  */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h.  */
12480 #include <$ac_header>
12481 _ACEOF
12482 if { (ac_try="$ac_cpp conftest.$ac_ext"
12483 case "(($ac_try" in
12484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485   *) ac_try_echo=$ac_try;;
12486 esac
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12489   ac_status=$?
12490   grep -v '^ *+' conftest.er1 >conftest.err
12491   rm -f conftest.er1
12492   cat conftest.err >&5
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); } >/dev/null && {
12495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12496          test ! -s conftest.err
12497        }; then
12498   ac_header_preproc=yes
12499 else
12500   echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12502
12503   ac_header_preproc=no
12504 fi
12505
12506 rm -f conftest.err conftest.$ac_ext
12507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12508 echo "${ECHO_T}$ac_header_preproc" >&6; }
12509
12510 # So?  What about this header?
12511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12512   yes:no: )
12513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12517     ac_header_preproc=yes
12518     ;;
12519   no:yes:* )
12520     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12522     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12523 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12524     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12526     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12527 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12530     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12532     ( cat <<\_ASBOX
12533 ## ------------------------------------ ##
12534 ## Report this to wine-devel@winehq.org ##
12535 ## ------------------------------------ ##
12536 _ASBOX
12537      ) | sed "s/^/$as_me: WARNING:     /" >&2
12538     ;;
12539 esac
12540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12543   echo $ECHO_N "(cached) $ECHO_C" >&6
12544 else
12545   eval "$as_ac_Header=\$ac_header_preproc"
12546 fi
12547 ac_res=`eval echo '${'$as_ac_Header'}'`
12548                { echo "$as_me:$LINENO: result: $ac_res" >&5
12549 echo "${ECHO_T}$ac_res" >&6; }
12550
12551 fi
12552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12553   cat >>confdefs.h <<_ACEOF
12554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12555 _ACEOF
12556
12557 fi
12558
12559 done
12560
12561     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
12562     then
12563         { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
12564 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
12565 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
12566   echo $ECHO_N "(cached) $ECHO_C" >&6
12567 else
12568   ac_check_lib_save_LIBS=$LIBS
12569 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
12570 cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h.  */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h.  */
12576
12577 /* Override any GCC internal prototype to avoid an error.
12578    Use char because int might match the return type of a GCC
12579    builtin and then its argument prototype would still apply.  */
12580 #ifdef __cplusplus
12581 extern "C"
12582 #endif
12583 char dbus_connection_close ();
12584 int
12585 main ()
12586 {
12587 return dbus_connection_close ();
12588   ;
12589   return 0;
12590 }
12591 _ACEOF
12592 rm -f conftest.$ac_objext conftest$ac_exeext
12593 if { (ac_try="$ac_link"
12594 case "(($ac_try" in
12595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596   *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599   (eval "$ac_link") 2>conftest.er1
12600   ac_status=$?
12601   grep -v '^ *+' conftest.er1 >conftest.err
12602   rm -f conftest.er1
12603   cat conftest.err >&5
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); } && {
12606          test -z "$ac_c_werror_flag" ||
12607          test ! -s conftest.err
12608        } && test -s conftest$ac_exeext &&
12609        $as_test_x conftest$ac_exeext; then
12610   ac_cv_lib_dbus_1_dbus_connection_close=yes
12611 else
12612   echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12614
12615         ac_cv_lib_dbus_1_dbus_connection_close=no
12616 fi
12617
12618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12619       conftest$ac_exeext conftest.$ac_ext
12620 LIBS=$ac_check_lib_save_LIBS
12621 fi
12622 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
12623 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
12624 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
12625   { echo "$as_me:$LINENO: checking for -lhal" >&5
12626 echo $ECHO_N "checking for -lhal... $ECHO_C" >&6; }
12627 if test "${ac_cv_lib_soname_hal+set}" = set; then
12628   echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630   ac_check_soname_save_LIBS=$LIBS
12631 LIBS="-lhal $ac_hal_libs $LIBS"
12632   cat >conftest.$ac_ext <<_ACEOF
12633 /* confdefs.h.  */
12634 _ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h.  */
12638
12639 /* Override any GCC internal prototype to avoid an error.
12640    Use char because int might match the return type of a GCC
12641    builtin and then its argument prototype would still apply.  */
12642 #ifdef __cplusplus
12643 extern "C"
12644 #endif
12645 char libhal_ctx_new ();
12646 int
12647 main ()
12648 {
12649 return libhal_ctx_new ();
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext conftest$ac_exeext
12655 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } && {
12668          test -z "$ac_c_werror_flag" ||
12669          test ! -s conftest.err
12670        } && test -s conftest$ac_exeext &&
12671        $as_test_x conftest$ac_exeext; then
12672   case "$LIBEXT" in
12673     dll) ;;
12674     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'` ;;
12675     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
12676   esac
12677 else
12678   echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681
12682 fi
12683
12684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12685       conftest$ac_exeext conftest.$ac_ext
12686   LIBS=$ac_check_soname_save_LIBS
12687 fi
12688 if test "x$ac_cv_lib_soname_hal" = "x"; then
12689   { echo "$as_me:$LINENO: result: not found" >&5
12690 echo "${ECHO_T}not found" >&6; }
12691
12692 else
12693   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
12694 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
12695
12696 cat >>confdefs.h <<_ACEOF
12697 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
12698 _ACEOF
12699
12700        HALINCL="$ac_hal_cflags"
12701 fi
12702
12703 fi
12704
12705     fi
12706     CPPFLAGS="$ac_save_CPPFLAGS"
12707 fi
12708 if test "x$ac_cv_lib_soname_hal" = "x"; then
12709   case "x$with_hal" in
12710   x)   wine_notices="$wine_notices|libhal development files not found, no dynamic device support." ;;
12711   xno) ;;
12712   *)   { { echo "$as_me:$LINENO: error: libhal development files not found, no dynamic device support.
12713 This is an error since --with-hal was requested." >&5
12714 echo "$as_me: error: libhal development files not found, no dynamic device support.
12715 This is an error since --with-hal was requested." >&2;}
12716    { (exit 1); exit 1; }; } ;;
12717 esac
12718 fi
12719
12720
12721 CURSESLIBS=""
12722 if test "$ac_cv_header_ncurses_h" = "yes"
12723 then
12724     { echo "$as_me:$LINENO: checking for -lncurses" >&5
12725 echo $ECHO_N "checking for -lncurses... $ECHO_C" >&6; }
12726 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
12727   echo $ECHO_N "(cached) $ECHO_C" >&6
12728 else
12729   ac_check_soname_save_LIBS=$LIBS
12730 LIBS="-lncurses  $LIBS"
12731   cat >conftest.$ac_ext <<_ACEOF
12732 /* confdefs.h.  */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h.  */
12737
12738 /* Override any GCC internal prototype to avoid an error.
12739    Use char because int might match the return type of a GCC
12740    builtin and then its argument prototype would still apply.  */
12741 #ifdef __cplusplus
12742 extern "C"
12743 #endif
12744 char waddch ();
12745 int
12746 main ()
12747 {
12748 return waddch ();
12749   ;
12750   return 0;
12751 }
12752 _ACEOF
12753 rm -f conftest.$ac_objext conftest$ac_exeext
12754 if { (ac_try="$ac_link"
12755 case "(($ac_try" in
12756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757   *) ac_try_echo=$ac_try;;
12758 esac
12759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760   (eval "$ac_link") 2>conftest.er1
12761   ac_status=$?
12762   grep -v '^ *+' conftest.er1 >conftest.err
12763   rm -f conftest.er1
12764   cat conftest.err >&5
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); } && {
12767          test -z "$ac_c_werror_flag" ||
12768          test ! -s conftest.err
12769        } && test -s conftest$ac_exeext &&
12770        $as_test_x conftest$ac_exeext; then
12771   case "$LIBEXT" in
12772     dll) ;;
12773     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'` ;;
12774     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
12775   esac
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780
12781 fi
12782
12783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12784       conftest$ac_exeext conftest.$ac_ext
12785   LIBS=$ac_check_soname_save_LIBS
12786 fi
12787 if test "x$ac_cv_lib_soname_ncurses" = "x"; then
12788   { echo "$as_me:$LINENO: result: not found" >&5
12789 echo "${ECHO_T}not found" >&6; }
12790
12791 else
12792   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
12793 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
12794
12795 cat >>confdefs.h <<_ACEOF
12796 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
12797 _ACEOF
12798
12799        CURSESLIBS="-lncurses"
12800 fi
12801
12802 elif test "$ac_cv_header_curses_h" = "yes"
12803 then
12804     { echo "$as_me:$LINENO: checking for -lcurses" >&5
12805 echo $ECHO_N "checking for -lcurses... $ECHO_C" >&6; }
12806 if test "${ac_cv_lib_soname_curses+set}" = set; then
12807   echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809   ac_check_soname_save_LIBS=$LIBS
12810 LIBS="-lcurses  $LIBS"
12811   cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h.  */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h.  */
12817
12818 /* Override any GCC internal prototype to avoid an error.
12819    Use char because int might match the return type of a GCC
12820    builtin and then its argument prototype would still apply.  */
12821 #ifdef __cplusplus
12822 extern "C"
12823 #endif
12824 char waddch ();
12825 int
12826 main ()
12827 {
12828 return waddch ();
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (ac_try="$ac_link"
12835 case "(($ac_try" in
12836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837   *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840   (eval "$ac_link") 2>conftest.er1
12841   ac_status=$?
12842   grep -v '^ *+' conftest.er1 >conftest.err
12843   rm -f conftest.er1
12844   cat conftest.err >&5
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); } && {
12847          test -z "$ac_c_werror_flag" ||
12848          test ! -s conftest.err
12849        } && test -s conftest$ac_exeext &&
12850        $as_test_x conftest$ac_exeext; then
12851   case "$LIBEXT" in
12852     dll) ;;
12853     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'` ;;
12854     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
12855   esac
12856 else
12857   echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860
12861 fi
12862
12863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12864       conftest$ac_exeext conftest.$ac_ext
12865   LIBS=$ac_check_soname_save_LIBS
12866 fi
12867 if test "x$ac_cv_lib_soname_curses" = "x"; then
12868   { echo "$as_me:$LINENO: result: not found" >&5
12869 echo "${ECHO_T}not found" >&6; }
12870
12871 else
12872   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
12873 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
12874
12875 cat >>confdefs.h <<_ACEOF
12876 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
12877 _ACEOF
12878
12879        CURSESLIBS="-lcurses"
12880 fi
12881
12882 fi
12883 ac_save_LIBS="$LIBS"
12884 LIBS="$LIBS $CURSESLIBS"
12885
12886 for ac_func in mousemask
12887 do
12888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12892   echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894   cat >conftest.$ac_ext <<_ACEOF
12895 /* confdefs.h.  */
12896 _ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h.  */
12900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12902 #define $ac_func innocuous_$ac_func
12903
12904 /* System header to define __stub macros and hopefully few prototypes,
12905     which can conflict with char $ac_func (); below.
12906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12907     <limits.h> exists even on freestanding compilers.  */
12908
12909 #ifdef __STDC__
12910 # include <limits.h>
12911 #else
12912 # include <assert.h>
12913 #endif
12914
12915 #undef $ac_func
12916
12917 /* Override any GCC internal prototype to avoid an error.
12918    Use char because int might match the return type of a GCC
12919    builtin and then its argument prototype would still apply.  */
12920 #ifdef __cplusplus
12921 extern "C"
12922 #endif
12923 char $ac_func ();
12924 /* The GNU C library defines this for functions which it implements
12925     to always fail with ENOSYS.  Some functions are actually named
12926     something starting with __ and the normal name is an alias.  */
12927 #if defined __stub_$ac_func || defined __stub___$ac_func
12928 choke me
12929 #endif
12930
12931 int
12932 main ()
12933 {
12934 return $ac_func ();
12935   ;
12936   return 0;
12937 }
12938 _ACEOF
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (ac_try="$ac_link"
12941 case "(($ac_try" in
12942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943   *) ac_try_echo=$ac_try;;
12944 esac
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946   (eval "$ac_link") 2>conftest.er1
12947   ac_status=$?
12948   grep -v '^ *+' conftest.er1 >conftest.err
12949   rm -f conftest.er1
12950   cat conftest.err >&5
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); } && {
12953          test -z "$ac_c_werror_flag" ||
12954          test ! -s conftest.err
12955        } && test -s conftest$ac_exeext &&
12956        $as_test_x conftest$ac_exeext; then
12957   eval "$as_ac_var=yes"
12958 else
12959   echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12961
12962         eval "$as_ac_var=no"
12963 fi
12964
12965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12966       conftest$ac_exeext conftest.$ac_ext
12967 fi
12968 ac_res=`eval echo '${'$as_ac_var'}'`
12969                { echo "$as_me:$LINENO: result: $ac_res" >&5
12970 echo "${ECHO_T}$ac_res" >&6; }
12971 if test `eval echo '${'$as_ac_var'}'` = yes; then
12972   cat >>confdefs.h <<_ACEOF
12973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12974 _ACEOF
12975
12976 fi
12977 done
12978
12979 LIBS="$ac_save_LIBS"
12980 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then
12981   case "x$with_curses" in
12982   x)   wine_notices="$wine_notices|lib(n)curses development files not found, curses won't be supported." ;;
12983   xno) ;;
12984   *)   { { echo "$as_me:$LINENO: error: lib(n)curses development files not found, curses won't be supported.
12985 This is an error since --with-curses was requested." >&5
12986 echo "$as_me: error: lib(n)curses development files not found, curses won't be supported.
12987 This is an error since --with-curses was requested." >&2;}
12988    { (exit 1); exit 1; }; } ;;
12989 esac
12990 fi
12991
12992
12993 # Extract the first word of "sane-config", so it can be a program name with args.
12994 set dummy sane-config; ac_word=$2
12995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12997 if test "${ac_cv_prog_sane_devel+set}" = set; then
12998   echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000   if test -n "$sane_devel"; then
13001   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
13002 else
13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004 for as_dir in $PATH
13005 do
13006   IFS=$as_save_IFS
13007   test -z "$as_dir" && as_dir=.
13008   for ac_exec_ext in '' $ac_executable_extensions; do
13009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13010     ac_cv_prog_sane_devel="sane-config"
13011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13012     break 2
13013   fi
13014 done
13015 done
13016 IFS=$as_save_IFS
13017
13018   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
13019 fi
13020 fi
13021 sane_devel=$ac_cv_prog_sane_devel
13022 if test -n "$sane_devel"; then
13023   { echo "$as_me:$LINENO: result: $sane_devel" >&5
13024 echo "${ECHO_T}$sane_devel" >&6; }
13025 else
13026   { echo "$as_me:$LINENO: result: no" >&5
13027 echo "${ECHO_T}no" >&6; }
13028 fi
13029
13030
13031 if test "$sane_devel" != "no" -a "x$with_sane" != "xno"
13032 then
13033     ac_sane_incl="`$sane_devel --cflags`"
13034     ac_save_CPPFLAGS="$CPPFLAGS"
13035     CPPFLAGS="$CPPFLAGS $ac_sane_incl"
13036     if test "${ac_cv_header_sane_sane_h+set}" = set; then
13037   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
13038 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
13039 if test "${ac_cv_header_sane_sane_h+set}" = set; then
13040   echo $ECHO_N "(cached) $ECHO_C" >&6
13041 fi
13042 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
13043 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
13044 else
13045   # Is the header compilable?
13046 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
13047 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
13048 cat >conftest.$ac_ext <<_ACEOF
13049 /* confdefs.h.  */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h.  */
13054 $ac_includes_default
13055 #include <sane/sane.h>
13056 _ACEOF
13057 rm -f conftest.$ac_objext
13058 if { (ac_try="$ac_compile"
13059 case "(($ac_try" in
13060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061   *) ac_try_echo=$ac_try;;
13062 esac
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064   (eval "$ac_compile") 2>conftest.er1
13065   ac_status=$?
13066   grep -v '^ *+' conftest.er1 >conftest.err
13067   rm -f conftest.er1
13068   cat conftest.err >&5
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); } && {
13071          test -z "$ac_c_werror_flag" ||
13072          test ! -s conftest.err
13073        } && test -s conftest.$ac_objext; then
13074   ac_header_compiler=yes
13075 else
13076   echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13078
13079         ac_header_compiler=no
13080 fi
13081
13082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13084 echo "${ECHO_T}$ac_header_compiler" >&6; }
13085
13086 # Is the header present?
13087 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
13088 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
13089 cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095 #include <sane/sane.h>
13096 _ACEOF
13097 if { (ac_try="$ac_cpp conftest.$ac_ext"
13098 case "(($ac_try" in
13099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100   *) ac_try_echo=$ac_try;;
13101 esac
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13104   ac_status=$?
13105   grep -v '^ *+' conftest.er1 >conftest.err
13106   rm -f conftest.er1
13107   cat conftest.err >&5
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); } >/dev/null && {
13110          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13111          test ! -s conftest.err
13112        }; then
13113   ac_header_preproc=yes
13114 else
13115   echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13117
13118   ac_header_preproc=no
13119 fi
13120
13121 rm -f conftest.err conftest.$ac_ext
13122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13123 echo "${ECHO_T}$ac_header_preproc" >&6; }
13124
13125 # So?  What about this header?
13126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13127   yes:no: )
13128     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
13129 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13130     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
13131 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
13132     ac_header_preproc=yes
13133     ;;
13134   no:yes:* )
13135     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
13136 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
13137     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
13138 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
13139     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
13140 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
13141     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
13142 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13143     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
13144 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
13145     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
13146 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
13147     ( cat <<\_ASBOX
13148 ## ------------------------------------ ##
13149 ## Report this to wine-devel@winehq.org ##
13150 ## ------------------------------------ ##
13151 _ASBOX
13152      ) | sed "s/^/$as_me: WARNING:     /" >&2
13153     ;;
13154 esac
13155 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
13156 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
13157 if test "${ac_cv_header_sane_sane_h+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   ac_cv_header_sane_sane_h=$ac_header_preproc
13161 fi
13162 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
13163 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
13164
13165 fi
13166 if test $ac_cv_header_sane_sane_h = yes; then
13167   { echo "$as_me:$LINENO: checking for -lsane" >&5
13168 echo $ECHO_N "checking for -lsane... $ECHO_C" >&6; }
13169 if test "${ac_cv_lib_soname_sane+set}" = set; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   ac_check_soname_save_LIBS=$LIBS
13173 LIBS="-lsane  $LIBS"
13174   cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h.  */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h.  */
13180
13181 /* Override any GCC internal prototype to avoid an error.
13182    Use char because int might match the return type of a GCC
13183    builtin and then its argument prototype would still apply.  */
13184 #ifdef __cplusplus
13185 extern "C"
13186 #endif
13187 char sane_init ();
13188 int
13189 main ()
13190 {
13191 return sane_init ();
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (ac_try="$ac_link"
13198 case "(($ac_try" in
13199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200   *) ac_try_echo=$ac_try;;
13201 esac
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203   (eval "$ac_link") 2>conftest.er1
13204   ac_status=$?
13205   grep -v '^ *+' conftest.er1 >conftest.err
13206   rm -f conftest.er1
13207   cat conftest.err >&5
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); } && {
13210          test -z "$ac_c_werror_flag" ||
13211          test ! -s conftest.err
13212        } && test -s conftest$ac_exeext &&
13213        $as_test_x conftest$ac_exeext; then
13214   case "$LIBEXT" in
13215     dll) ;;
13216     dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep "libsane\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
13217     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
13218   esac
13219 else
13220   echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13222
13223
13224 fi
13225
13226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13227       conftest$ac_exeext conftest.$ac_ext
13228   LIBS=$ac_check_soname_save_LIBS
13229 fi
13230 if test "x$ac_cv_lib_soname_sane" = "x"; then
13231   { echo "$as_me:$LINENO: result: not found" >&5
13232 echo "${ECHO_T}not found" >&6; }
13233
13234 else
13235   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_sane" >&5
13236 echo "${ECHO_T}$ac_cv_lib_soname_sane" >&6; }
13237
13238 cat >>confdefs.h <<_ACEOF
13239 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
13240 _ACEOF
13241
13242        SANEINCL="$ac_sane_incl"
13243
13244 fi
13245
13246 fi
13247
13248
13249     CPPFLAGS="$ac_save_CPPFLAGS"
13250 fi
13251 if test "x$ac_cv_lib_soname_sane" = "x"; then
13252   case "x$with_sane" in
13253   x)   wine_notices="$wine_notices|libsane development files not found, scanners won't be supported." ;;
13254   xno) ;;
13255   *)   { { echo "$as_me:$LINENO: error: libsane development files not found, scanners won't be supported.
13256 This is an error since --with-sane was requested." >&5
13257 echo "$as_me: error: libsane development files not found, scanners won't be supported.
13258 This is an error since --with-sane was requested." >&2;}
13259    { (exit 1); exit 1; }; } ;;
13260 esac
13261 fi
13262
13263
13264 # Extract the first word of "gphoto2-config", so it can be a program name with args.
13265 set dummy gphoto2-config; ac_word=$2
13266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13268 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   if test -n "$gphoto2_devel"; then
13272   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
13273 else
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13276 do
13277   IFS=$as_save_IFS
13278   test -z "$as_dir" && as_dir=.
13279   for ac_exec_ext in '' $ac_executable_extensions; do
13280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281     ac_cv_prog_gphoto2_devel="gphoto2-config"
13282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13283     break 2
13284   fi
13285 done
13286 done
13287 IFS=$as_save_IFS
13288
13289   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
13290 fi
13291 fi
13292 gphoto2_devel=$ac_cv_prog_gphoto2_devel
13293 if test -n "$gphoto2_devel"; then
13294   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
13295 echo "${ECHO_T}$gphoto2_devel" >&6; }
13296 else
13297   { echo "$as_me:$LINENO: result: no" >&5
13298 echo "${ECHO_T}no" >&6; }
13299 fi
13300
13301
13302 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
13303 set dummy gphoto2-port-config; ac_word=$2
13304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13306 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
13307   echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309   if test -n "$gphoto2port_devel"; then
13310   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
13311 else
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13314 do
13315   IFS=$as_save_IFS
13316   test -z "$as_dir" && as_dir=.
13317   for ac_exec_ext in '' $ac_executable_extensions; do
13318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
13320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13321     break 2
13322   fi
13323 done
13324 done
13325 IFS=$as_save_IFS
13326
13327   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
13328 fi
13329 fi
13330 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
13331 if test -n "$gphoto2port_devel"; then
13332   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
13333 echo "${ECHO_T}$gphoto2port_devel" >&6; }
13334 else
13335   { echo "$as_me:$LINENO: result: no" >&5
13336 echo "${ECHO_T}no" >&6; }
13337 fi
13338
13339
13340 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no" -a "x$with_gphoto" != "xno"
13341 then
13342     ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
13343     ac_gphoto2_libs=""
13344     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
13345     do
13346       case "$i" in
13347         -L/usr/lib|-L/usr/lib64) ;;
13348         -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
13349       esac
13350     done
13351     ac_save_CPPFLAGS="$CPPFLAGS"
13352     CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
13353     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
13354   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
13355 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
13356 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
13357   echo $ECHO_N "(cached) $ECHO_C" >&6
13358 fi
13359 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
13360 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
13361 else
13362   # Is the header compilable?
13363 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
13364 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h.  */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h.  */
13371 $ac_includes_default
13372 #include <gphoto2-camera.h>
13373 _ACEOF
13374 rm -f conftest.$ac_objext
13375 if { (ac_try="$ac_compile"
13376 case "(($ac_try" in
13377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378   *) ac_try_echo=$ac_try;;
13379 esac
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381   (eval "$ac_compile") 2>conftest.er1
13382   ac_status=$?
13383   grep -v '^ *+' conftest.er1 >conftest.err
13384   rm -f conftest.er1
13385   cat conftest.err >&5
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); } && {
13388          test -z "$ac_c_werror_flag" ||
13389          test ! -s conftest.err
13390        } && test -s conftest.$ac_objext; then
13391   ac_header_compiler=yes
13392 else
13393   echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396         ac_header_compiler=no
13397 fi
13398
13399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13401 echo "${ECHO_T}$ac_header_compiler" >&6; }
13402
13403 # Is the header present?
13404 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
13405 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
13406 cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412 #include <gphoto2-camera.h>
13413 _ACEOF
13414 if { (ac_try="$ac_cpp conftest.$ac_ext"
13415 case "(($ac_try" in
13416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417   *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13421   ac_status=$?
13422   grep -v '^ *+' conftest.er1 >conftest.err
13423   rm -f conftest.er1
13424   cat conftest.err >&5
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); } >/dev/null && {
13427          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13428          test ! -s conftest.err
13429        }; then
13430   ac_header_preproc=yes
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435   ac_header_preproc=no
13436 fi
13437
13438 rm -f conftest.err conftest.$ac_ext
13439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13440 echo "${ECHO_T}$ac_header_preproc" >&6; }
13441
13442 # So?  What about this header?
13443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13444   yes:no: )
13445     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
13446 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13447     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
13448 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
13449     ac_header_preproc=yes
13450     ;;
13451   no:yes:* )
13452     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
13453 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
13454     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
13455 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
13456     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
13457 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
13458     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
13459 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13460     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
13461 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
13462     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
13463 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
13464     ( cat <<\_ASBOX
13465 ## ------------------------------------ ##
13466 ## Report this to wine-devel@winehq.org ##
13467 ## ------------------------------------ ##
13468 _ASBOX
13469      ) | sed "s/^/$as_me: WARNING:     /" >&2
13470     ;;
13471 esac
13472 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
13473 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
13474 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
13478 fi
13479 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
13480 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
13481
13482 fi
13483 if test $ac_cv_header_gphoto2_camera_h = yes; then
13484   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
13485 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
13486 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489   ac_check_lib_save_LIBS=$LIBS
13490 LIBS="-lgphoto2 $GPHOTO2LIBS $LIBS"
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497
13498 /* Override any GCC internal prototype to avoid an error.
13499    Use char because int might match the return type of a GCC
13500    builtin and then its argument prototype would still apply.  */
13501 #ifdef __cplusplus
13502 extern "C"
13503 #endif
13504 char gp_camera_new ();
13505 int
13506 main ()
13507 {
13508 return gp_camera_new ();
13509   ;
13510   return 0;
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517   *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520   (eval "$ac_link") 2>conftest.er1
13521   ac_status=$?
13522   grep -v '^ *+' conftest.er1 >conftest.err
13523   rm -f conftest.er1
13524   cat conftest.err >&5
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } && {
13527          test -z "$ac_c_werror_flag" ||
13528          test ! -s conftest.err
13529        } && test -s conftest$ac_exeext &&
13530        $as_test_x conftest$ac_exeext; then
13531   ac_cv_lib_gphoto2_gp_camera_new=yes
13532 else
13533   echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536         ac_cv_lib_gphoto2_gp_camera_new=no
13537 fi
13538
13539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13540       conftest$ac_exeext conftest.$ac_ext
13541 LIBS=$ac_check_lib_save_LIBS
13542 fi
13543 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
13544 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
13545 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
13546
13547 cat >>confdefs.h <<\_ACEOF
13548 #define HAVE_GPHOTO2 1
13549 _ACEOF
13550
13551                                    GPHOTO2LIBS="$ac_gphoto2_libs"
13552
13553                                    GPHOTO2INCL="$ac_gphoto2_incl"
13554
13555 fi
13556
13557 fi
13558
13559
13560     CPPFLAGS="$ac_save_CPPFLAGS"
13561 fi
13562 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then
13563   case "x$with_gphoto" in
13564   x)   wine_notices="$wine_notices|libgphoto2 development files not found, digital cameras won't be supported." ;;
13565   xno) ;;
13566   *)   { { echo "$as_me:$LINENO: error: libgphoto2 development files not found, digital cameras won't be supported.
13567 This is an error since --with-gphoto was requested." >&5
13568 echo "$as_me: error: libgphoto2 development files not found, digital cameras won't be supported.
13569 This is an error since --with-gphoto was requested." >&2;}
13570    { (exit 1); exit 1; }; } ;;
13571 esac
13572 fi
13573
13574
13575
13576 RESOLVLIBS=""
13577
13578 if test "$ac_cv_header_resolv_h" = "yes"
13579 then
13580     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
13581 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
13582 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
13583   echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585   ac_check_lib_save_LIBS=$LIBS
13586 LIBS="-lresolv  $LIBS"
13587 cat >conftest.$ac_ext <<_ACEOF
13588 /* confdefs.h.  */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h.  */
13593
13594 /* Override any GCC internal prototype to avoid an error.
13595    Use char because int might match the return type of a GCC
13596    builtin and then its argument prototype would still apply.  */
13597 #ifdef __cplusplus
13598 extern "C"
13599 #endif
13600 char res_query ();
13601 int
13602 main ()
13603 {
13604 return res_query ();
13605   ;
13606   return 0;
13607 }
13608 _ACEOF
13609 rm -f conftest.$ac_objext conftest$ac_exeext
13610 if { (ac_try="$ac_link"
13611 case "(($ac_try" in
13612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613   *) ac_try_echo=$ac_try;;
13614 esac
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616   (eval "$ac_link") 2>conftest.er1
13617   ac_status=$?
13618   grep -v '^ *+' conftest.er1 >conftest.err
13619   rm -f conftest.er1
13620   cat conftest.err >&5
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); } && {
13623          test -z "$ac_c_werror_flag" ||
13624          test ! -s conftest.err
13625        } && test -s conftest$ac_exeext &&
13626        $as_test_x conftest$ac_exeext; then
13627   ac_cv_lib_resolv_res_query=yes
13628 else
13629   echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13631
13632         ac_cv_lib_resolv_res_query=no
13633 fi
13634
13635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13636       conftest$ac_exeext conftest.$ac_ext
13637 LIBS=$ac_check_lib_save_LIBS
13638 fi
13639 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
13640 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
13641 if test $ac_cv_lib_resolv_res_query = yes; then
13642
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_RESOLV 1
13645 _ACEOF
13646
13647          RESOLVLIBS="-lresolv"
13648 fi
13649
13650 fi
13651
13652 LCMSLIBS=""
13653
13654 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
13655 then
13656     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
13657 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
13658 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
13659   echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661   ac_check_lib_save_LIBS=$LIBS
13662 LIBS="-llcms  $LIBS"
13663 cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669
13670 /* Override any GCC internal prototype to avoid an error.
13671    Use char because int might match the return type of a GCC
13672    builtin and then its argument prototype would still apply.  */
13673 #ifdef __cplusplus
13674 extern "C"
13675 #endif
13676 char cmsOpenProfileFromFile ();
13677 int
13678 main ()
13679 {
13680 return cmsOpenProfileFromFile ();
13681   ;
13682   return 0;
13683 }
13684 _ACEOF
13685 rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (ac_try="$ac_link"
13687 case "(($ac_try" in
13688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689   *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692   (eval "$ac_link") 2>conftest.er1
13693   ac_status=$?
13694   grep -v '^ *+' conftest.er1 >conftest.err
13695   rm -f conftest.er1
13696   cat conftest.err >&5
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); } && {
13699          test -z "$ac_c_werror_flag" ||
13700          test ! -s conftest.err
13701        } && test -s conftest$ac_exeext &&
13702        $as_test_x conftest$ac_exeext; then
13703   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
13704 else
13705   echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
13709 fi
13710
13711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13712       conftest$ac_exeext conftest.$ac_ext
13713 LIBS=$ac_check_lib_save_LIBS
13714 fi
13715 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
13716 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
13717 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
13718
13719 cat >>confdefs.h <<\_ACEOF
13720 #define HAVE_LCMS 1
13721 _ACEOF
13722
13723          LCMSLIBS="-llcms"
13724 fi
13725
13726 fi
13727 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then
13728   case "x$with_cms" in
13729   x)   wine_notices="$wine_notices|liblcms development files not found, Color Management won't be supported." ;;
13730   xno) ;;
13731   *)   { { echo "$as_me:$LINENO: error: liblcms development files not found, Color Management won't be supported.
13732 This is an error since --with-cms was requested." >&5
13733 echo "$as_me: error: liblcms development files not found, Color Management won't be supported.
13734 This is an error since --with-cms was requested." >&2;}
13735    { (exit 1); exit 1; }; } ;;
13736 esac
13737 fi
13738
13739
13740 LDAPLIBS=""
13741
13742 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13743 then
13744     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
13745 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
13746 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
13747   echo $ECHO_N "(cached) $ECHO_C" >&6
13748 else
13749   ac_check_lib_save_LIBS=$LIBS
13750 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13751 cat >conftest.$ac_ext <<_ACEOF
13752 /* confdefs.h.  */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h.  */
13757
13758 /* Override any GCC internal prototype to avoid an error.
13759    Use char because int might match the return type of a GCC
13760    builtin and then its argument prototype would still apply.  */
13761 #ifdef __cplusplus
13762 extern "C"
13763 #endif
13764 char ldap_initialize ();
13765 int
13766 main ()
13767 {
13768 return ldap_initialize ();
13769   ;
13770   return 0;
13771 }
13772 _ACEOF
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (ac_try="$ac_link"
13775 case "(($ac_try" in
13776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777   *) ac_try_echo=$ac_try;;
13778 esac
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780   (eval "$ac_link") 2>conftest.er1
13781   ac_status=$?
13782   grep -v '^ *+' conftest.er1 >conftest.err
13783   rm -f conftest.er1
13784   cat conftest.err >&5
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } && {
13787          test -z "$ac_c_werror_flag" ||
13788          test ! -s conftest.err
13789        } && test -s conftest$ac_exeext &&
13790        $as_test_x conftest$ac_exeext; then
13791   ac_cv_lib_ldap_r_ldap_initialize=yes
13792 else
13793   echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13795
13796         ac_cv_lib_ldap_r_ldap_initialize=no
13797 fi
13798
13799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13800       conftest$ac_exeext conftest.$ac_ext
13801 LIBS=$ac_check_lib_save_LIBS
13802 fi
13803 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13804 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13805 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
13806   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
13807 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
13808 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
13809   echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811   ac_check_lib_save_LIBS=$LIBS
13812 LIBS="-llber $LIBPTHREAD $LIBS"
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h.  */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h.  */
13819
13820 /* Override any GCC internal prototype to avoid an error.
13821    Use char because int might match the return type of a GCC
13822    builtin and then its argument prototype would still apply.  */
13823 #ifdef __cplusplus
13824 extern "C"
13825 #endif
13826 char ber_init ();
13827 int
13828 main ()
13829 {
13830 return ber_init ();
13831   ;
13832   return 0;
13833 }
13834 _ACEOF
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (ac_try="$ac_link"
13837 case "(($ac_try" in
13838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839   *) ac_try_echo=$ac_try;;
13840 esac
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842   (eval "$ac_link") 2>conftest.er1
13843   ac_status=$?
13844   grep -v '^ *+' conftest.er1 >conftest.err
13845   rm -f conftest.er1
13846   cat conftest.err >&5
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); } && {
13849          test -z "$ac_c_werror_flag" ||
13850          test ! -s conftest.err
13851        } && test -s conftest$ac_exeext &&
13852        $as_test_x conftest$ac_exeext; then
13853   ac_cv_lib_lber_ber_init=yes
13854 else
13855   echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858         ac_cv_lib_lber_ber_init=no
13859 fi
13860
13861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13862       conftest$ac_exeext conftest.$ac_ext
13863 LIBS=$ac_check_lib_save_LIBS
13864 fi
13865 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
13866 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
13867 if test $ac_cv_lib_lber_ber_init = yes; then
13868
13869 cat >>confdefs.h <<\_ACEOF
13870 #define HAVE_LDAP 1
13871 _ACEOF
13872
13873              LDAPLIBS="-lldap_r -llber"
13874 fi
13875
13876 fi
13877
13878     ac_wine_check_funcs_save_LIBS="$LIBS"
13879 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13880
13881
13882
13883
13884
13885
13886
13887
13888 for ac_func in \
13889         ldap_count_references \
13890         ldap_first_reference \
13891         ldap_next_reference \
13892         ldap_parse_reference \
13893         ldap_parse_sort_control \
13894         ldap_parse_sortresponse_control \
13895         ldap_parse_vlv_control \
13896         ldap_parse_vlvresponse_control
13897 do
13898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h.  */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h.  */
13910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13912 #define $ac_func innocuous_$ac_func
13913
13914 /* System header to define __stub macros and hopefully few prototypes,
13915     which can conflict with char $ac_func (); below.
13916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13917     <limits.h> exists even on freestanding compilers.  */
13918
13919 #ifdef __STDC__
13920 # include <limits.h>
13921 #else
13922 # include <assert.h>
13923 #endif
13924
13925 #undef $ac_func
13926
13927 /* Override any GCC internal prototype to avoid an error.
13928    Use char because int might match the return type of a GCC
13929    builtin and then its argument prototype would still apply.  */
13930 #ifdef __cplusplus
13931 extern "C"
13932 #endif
13933 char $ac_func ();
13934 /* The GNU C library defines this for functions which it implements
13935     to always fail with ENOSYS.  Some functions are actually named
13936     something starting with __ and the normal name is an alias.  */
13937 #if defined __stub_$ac_func || defined __stub___$ac_func
13938 choke me
13939 #endif
13940
13941 int
13942 main ()
13943 {
13944 return $ac_func ();
13945   ;
13946   return 0;
13947 }
13948 _ACEOF
13949 rm -f conftest.$ac_objext conftest$ac_exeext
13950 if { (ac_try="$ac_link"
13951 case "(($ac_try" in
13952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953   *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956   (eval "$ac_link") 2>conftest.er1
13957   ac_status=$?
13958   grep -v '^ *+' conftest.er1 >conftest.err
13959   rm -f conftest.er1
13960   cat conftest.err >&5
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); } && {
13963          test -z "$ac_c_werror_flag" ||
13964          test ! -s conftest.err
13965        } && test -s conftest$ac_exeext &&
13966        $as_test_x conftest$ac_exeext; then
13967   eval "$as_ac_var=yes"
13968 else
13969   echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13971
13972         eval "$as_ac_var=no"
13973 fi
13974
13975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13976       conftest$ac_exeext conftest.$ac_ext
13977 fi
13978 ac_res=`eval echo '${'$as_ac_var'}'`
13979                { echo "$as_me:$LINENO: result: $ac_res" >&5
13980 echo "${ECHO_T}$ac_res" >&6; }
13981 if test `eval echo '${'$as_ac_var'}'` = yes; then
13982   cat >>confdefs.h <<_ACEOF
13983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13984 _ACEOF
13985
13986 fi
13987 done
13988
13989 LIBS="$ac_wine_check_funcs_save_LIBS"
13990 fi
13991 if test "x$LDAPLIBS" = "x"; then
13992   case "x$with_ldap" in
13993   x)   wine_notices="$wine_notices|libldap (OpenLDAP) development files not found, LDAP won't be supported." ;;
13994   xno) ;;
13995   *)   { { echo "$as_me:$LINENO: error: libldap (OpenLDAP) development files not found, LDAP won't be supported.
13996 This is an error since --with-ldap was requested." >&5
13997 echo "$as_me: error: libldap (OpenLDAP) development files not found, LDAP won't be supported.
13998 This is an error since --with-ldap was requested." >&2;}
13999    { (exit 1); exit 1; }; } ;;
14000 esac
14001 fi
14002
14003
14004 for ac_prog in freetype-config freetype2-config
14005 do
14006   # Extract the first word of "$ac_prog", so it can be a program name with args.
14007 set dummy $ac_prog; ac_word=$2
14008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14010 if test "${ac_cv_prog_ft_devel+set}" = set; then
14011   echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013   if test -n "$ft_devel"; then
14014   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
14015 else
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14018 do
14019   IFS=$as_save_IFS
14020   test -z "$as_dir" && as_dir=.
14021   for ac_exec_ext in '' $ac_executable_extensions; do
14022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14023     ac_cv_prog_ft_devel="$ac_prog"
14024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14025     break 2
14026   fi
14027 done
14028 done
14029 IFS=$as_save_IFS
14030
14031 fi
14032 fi
14033 ft_devel=$ac_cv_prog_ft_devel
14034 if test -n "$ft_devel"; then
14035   { echo "$as_me:$LINENO: result: $ft_devel" >&5
14036 echo "${ECHO_T}$ft_devel" >&6; }
14037 else
14038   { echo "$as_me:$LINENO: result: no" >&5
14039 echo "${ECHO_T}no" >&6; }
14040 fi
14041
14042
14043   test -n "$ft_devel" && break
14044 done
14045 test -n "$ft_devel" || ft_devel="false"
14046
14047 if test "$ft_devel" != "false" -a "x$with_freetype" != "xno"
14048 then
14049     ac_freetype_libs=`$ft_devel --libs`
14050     ac_freetype_incl=`$ft_devel --cflags`
14051     { echo "$as_me:$LINENO: checking for -lfreetype" >&5
14052 echo $ECHO_N "checking for -lfreetype... $ECHO_C" >&6; }
14053 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   ac_check_soname_save_LIBS=$LIBS
14057 LIBS="-lfreetype $ac_freetype_libs $LIBS"
14058   cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064
14065 /* Override any GCC internal prototype to avoid an error.
14066    Use char because int might match the return type of a GCC
14067    builtin and then its argument prototype would still apply.  */
14068 #ifdef __cplusplus
14069 extern "C"
14070 #endif
14071 char FT_Init_FreeType ();
14072 int
14073 main ()
14074 {
14075 return FT_Init_FreeType ();
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (ac_try="$ac_link"
14082 case "(($ac_try" in
14083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084   *) ac_try_echo=$ac_try;;
14085 esac
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087   (eval "$ac_link") 2>conftest.er1
14088   ac_status=$?
14089   grep -v '^ *+' conftest.er1 >conftest.err
14090   rm -f conftest.er1
14091   cat conftest.err >&5
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); } && {
14094          test -z "$ac_c_werror_flag" ||
14095          test ! -s conftest.err
14096        } && test -s conftest$ac_exeext &&
14097        $as_test_x conftest$ac_exeext; then
14098   case "$LIBEXT" in
14099     dll) ;;
14100     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'` ;;
14101     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
14102   esac
14103 else
14104   echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14106
14107
14108 fi
14109
14110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14111       conftest$ac_exeext conftest.$ac_ext
14112   LIBS=$ac_check_soname_save_LIBS
14113 fi
14114 if test "x$ac_cv_lib_soname_freetype" = "x"; then
14115   { echo "$as_me:$LINENO: result: not found" >&5
14116 echo "${ECHO_T}not found" >&6; }
14117        ft_lib=no
14118 else
14119   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14120 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
14121
14122 cat >>confdefs.h <<_ACEOF
14123 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14124 _ACEOF
14125
14126        ft_lib=yes
14127 fi
14128
14129     if test "$ft_lib" = "yes"
14130     then
14131         ac_save_CPPFLAGS="$CPPFLAGS"
14132         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145 for ac_header in ft2build.h \
14146                          freetype/freetype.h \
14147                          freetype/ftglyph.h \
14148                          freetype/fttypes.h \
14149                          freetype/tttables.h \
14150                          freetype/ftnames.h \
14151                          freetype/ftsnames.h \
14152                          freetype/ttnameid.h \
14153                          freetype/ftoutln.h \
14154                          freetype/ftwinfnt.h \
14155                          freetype/ftmodapi.h \
14156                          freetype/internal/sfnt.h
14157 do
14158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14162   echo $ECHO_N "(cached) $ECHO_C" >&6
14163 else
14164   cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h.  */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h.  */
14170 #ifdef HAVE_FT2BUILD_H
14171                           # include <ft2build.h>
14172                           #endif
14173
14174 #include <$ac_header>
14175 _ACEOF
14176 rm -f conftest.$ac_objext
14177 if { (ac_try="$ac_compile"
14178 case "(($ac_try" in
14179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180   *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183   (eval "$ac_compile") 2>conftest.er1
14184   ac_status=$?
14185   grep -v '^ *+' conftest.er1 >conftest.err
14186   rm -f conftest.er1
14187   cat conftest.err >&5
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); } && {
14190          test -z "$ac_c_werror_flag" ||
14191          test ! -s conftest.err
14192        } && test -s conftest.$ac_objext; then
14193   eval "$as_ac_Header=yes"
14194 else
14195   echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14197
14198         eval "$as_ac_Header=no"
14199 fi
14200
14201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14202 fi
14203 ac_res=`eval echo '${'$as_ac_Header'}'`
14204                { echo "$as_me:$LINENO: result: $ac_res" >&5
14205 echo "${ECHO_T}$ac_res" >&6; }
14206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14207   cat >>confdefs.h <<_ACEOF
14208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14209 _ACEOF
14210
14211 fi
14212
14213 done
14214
14215         cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h.  */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h.  */
14221 #include <ft2build.h>
14222                     #include <freetype/fttrigon.h>
14223 _ACEOF
14224 if { (ac_try="$ac_cpp conftest.$ac_ext"
14225 case "(($ac_try" in
14226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227   *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14231   ac_status=$?
14232   grep -v '^ *+' conftest.er1 >conftest.err
14233   rm -f conftest.er1
14234   cat conftest.err >&5
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); } >/dev/null && {
14237          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14238          test ! -s conftest.err
14239        }; then
14240
14241 cat >>confdefs.h <<\_ACEOF
14242 #define HAVE_FREETYPE_FTTRIGON_H 1
14243 _ACEOF
14244
14245                     wine_cv_fttrigon=yes
14246 else
14247   echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14249
14250   wine_cv_fttrigon=no
14251 fi
14252
14253 rm -f conftest.err conftest.$ac_ext
14254         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
14255 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
14256 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
14257   echo $ECHO_N "(cached) $ECHO_C" >&6
14258 else
14259   cat >conftest.$ac_ext <<_ACEOF
14260 /* confdefs.h.  */
14261 _ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h.  */
14265 #include <freetype/ftmodapi.h>
14266
14267 typedef FT_TrueTypeEngineType ac__type_new_;
14268 int
14269 main ()
14270 {
14271 if ((ac__type_new_ *) 0)
14272   return 0;
14273 if (sizeof (ac__type_new_))
14274   return 0;
14275   ;
14276   return 0;
14277 }
14278 _ACEOF
14279 rm -f conftest.$ac_objext
14280 if { (ac_try="$ac_compile"
14281 case "(($ac_try" in
14282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283   *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286   (eval "$ac_compile") 2>conftest.er1
14287   ac_status=$?
14288   grep -v '^ *+' conftest.er1 >conftest.err
14289   rm -f conftest.er1
14290   cat conftest.err >&5
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } && {
14293          test -z "$ac_c_werror_flag" ||
14294          test ! -s conftest.err
14295        } && test -s conftest.$ac_objext; then
14296   ac_cv_type_FT_TrueTypeEngineType=yes
14297 else
14298   echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14300
14301         ac_cv_type_FT_TrueTypeEngineType=no
14302 fi
14303
14304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14305 fi
14306 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
14307 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
14308 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
14309
14310 cat >>confdefs.h <<_ACEOF
14311 #define HAVE_FT_TRUETYPEENGINETYPE 1
14312 _ACEOF
14313
14314
14315 fi
14316
14317         ac_save_CFLAGS="$CFLAGS"
14318         CFLAGS="$CFLAGS $ac_freetype_libs"
14319
14320 for ac_func in FT_Load_Sfnt_Table
14321 do
14322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14326   echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328   cat >conftest.$ac_ext <<_ACEOF
14329 /* confdefs.h.  */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h.  */
14334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14336 #define $ac_func innocuous_$ac_func
14337
14338 /* System header to define __stub macros and hopefully few prototypes,
14339     which can conflict with char $ac_func (); below.
14340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14341     <limits.h> exists even on freestanding compilers.  */
14342
14343 #ifdef __STDC__
14344 # include <limits.h>
14345 #else
14346 # include <assert.h>
14347 #endif
14348
14349 #undef $ac_func
14350
14351 /* Override any GCC internal prototype to avoid an error.
14352    Use char because int might match the return type of a GCC
14353    builtin and then its argument prototype would still apply.  */
14354 #ifdef __cplusplus
14355 extern "C"
14356 #endif
14357 char $ac_func ();
14358 /* The GNU C library defines this for functions which it implements
14359     to always fail with ENOSYS.  Some functions are actually named
14360     something starting with __ and the normal name is an alias.  */
14361 #if defined __stub_$ac_func || defined __stub___$ac_func
14362 choke me
14363 #endif
14364
14365 int
14366 main ()
14367 {
14368 return $ac_func ();
14369   ;
14370   return 0;
14371 }
14372 _ACEOF
14373 rm -f conftest.$ac_objext conftest$ac_exeext
14374 if { (ac_try="$ac_link"
14375 case "(($ac_try" in
14376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377   *) ac_try_echo=$ac_try;;
14378 esac
14379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14380   (eval "$ac_link") 2>conftest.er1
14381   ac_status=$?
14382   grep -v '^ *+' conftest.er1 >conftest.err
14383   rm -f conftest.er1
14384   cat conftest.err >&5
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); } && {
14387          test -z "$ac_c_werror_flag" ||
14388          test ! -s conftest.err
14389        } && test -s conftest$ac_exeext &&
14390        $as_test_x conftest$ac_exeext; then
14391   eval "$as_ac_var=yes"
14392 else
14393   echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396         eval "$as_ac_var=no"
14397 fi
14398
14399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14400       conftest$ac_exeext conftest.$ac_ext
14401 fi
14402 ac_res=`eval echo '${'$as_ac_var'}'`
14403                { echo "$as_me:$LINENO: result: $ac_res" >&5
14404 echo "${ECHO_T}$ac_res" >&6; }
14405 if test `eval echo '${'$as_ac_var'}'` = yes; then
14406   cat >>confdefs.h <<_ACEOF
14407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14408 _ACEOF
14409
14410 fi
14411 done
14412
14413         CFLAGS="$ac_save_CFLAGS"
14414         CPPFLAGS="$ac_save_CPPFLAGS"
14415                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
14416         then
14417
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_FREETYPE 1
14420 _ACEOF
14421
14422             FREETYPELIBS="$ac_freetype_libs"
14423
14424             FREETYPEINCL="$ac_freetype_incl"
14425
14426             FONTSSUBDIRS="fonts"
14427
14428         fi
14429     fi
14430 fi
14431 if test "x$FREETYPELIBS" = "x"; then
14432   case "x$with_freetype" in
14433   xno) ;;
14434   *)   { { echo "$as_me:$LINENO: error: FreeType development files not found.
14435 Fonts will not be built. Dialog text may be invisible or unaligned.
14436 Use the --without-freetype option if you really want this." >&5
14437 echo "$as_me: error: FreeType development files not found.
14438 Fonts will not be built. Dialog text may be invisible or unaligned.
14439 Use the --without-freetype option if you really want this." >&2;}
14440    { (exit 1); exit 1; }; } ;;
14441 esac
14442 fi
14443
14444
14445 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
14446 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
14447 if test "${ac_cv_c_ppdev+set}" = set; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450   cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h.  */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h.  */
14456 #include <linux/ppdev.h>
14457 int
14458 main ()
14459 {
14460 ioctl (1,PPCLAIM,0)
14461   ;
14462   return 0;
14463 }
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (ac_try="$ac_compile"
14467 case "(($ac_try" in
14468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469   *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472   (eval "$ac_compile") 2>conftest.er1
14473   ac_status=$?
14474   grep -v '^ *+' conftest.er1 >conftest.err
14475   rm -f conftest.er1
14476   cat conftest.err >&5
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); } && {
14479          test -z "$ac_c_werror_flag" ||
14480          test ! -s conftest.err
14481        } && test -s conftest.$ac_objext; then
14482   ac_cv_c_ppdev="yes"
14483 else
14484   echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14486
14487         ac_cv_c_ppdev="no"
14488 fi
14489
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 fi
14492 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
14493 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
14494 if test "$ac_cv_c_ppdev" = "yes"
14495 then
14496
14497 cat >>confdefs.h <<\_ACEOF
14498 #define HAVE_PPDEV 1
14499 _ACEOF
14500
14501 fi
14502
14503 { echo "$as_me:$LINENO: checking for va_copy" >&5
14504 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
14505 if test "${ac_cv_c_va_copy+set}" = set; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514 #include <stdarg.h>
14515 int
14516 main ()
14517 {
14518 va_list ap1, ap2; va_copy(ap1,ap2);
14519   ;
14520   return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest.$ac_objext conftest$ac_exeext
14524 if { (ac_try="$ac_link"
14525 case "(($ac_try" in
14526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527   *) ac_try_echo=$ac_try;;
14528 esac
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530   (eval "$ac_link") 2>conftest.er1
14531   ac_status=$?
14532   grep -v '^ *+' conftest.er1 >conftest.err
14533   rm -f conftest.er1
14534   cat conftest.err >&5
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); } && {
14537          test -z "$ac_c_werror_flag" ||
14538          test ! -s conftest.err
14539        } && test -s conftest$ac_exeext &&
14540        $as_test_x conftest$ac_exeext; then
14541   ac_cv_c_va_copy="yes"
14542 else
14543   echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546         ac_cv_c_va_copy="no"
14547 fi
14548
14549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14550       conftest$ac_exeext conftest.$ac_ext
14551
14552 fi
14553 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
14554 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
14555 if test "$ac_cv_c_va_copy" = "yes"
14556 then
14557
14558 cat >>confdefs.h <<\_ACEOF
14559 #define HAVE_VA_COPY 1
14560 _ACEOF
14561
14562 fi
14563 { echo "$as_me:$LINENO: checking for __va_copy" >&5
14564 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
14565 if test "${ac_cv_c___va_copy+set}" = set; then
14566   echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568   cat >conftest.$ac_ext <<_ACEOF
14569 /* confdefs.h.  */
14570 _ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h.  */
14574 #include <stdarg.h>
14575 int
14576 main ()
14577 {
14578 va_list ap1, ap2; __va_copy(ap1,ap2);
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
14583 rm -f conftest.$ac_objext conftest$ac_exeext
14584 if { (ac_try="$ac_link"
14585 case "(($ac_try" in
14586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587   *) ac_try_echo=$ac_try;;
14588 esac
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590   (eval "$ac_link") 2>conftest.er1
14591   ac_status=$?
14592   grep -v '^ *+' conftest.er1 >conftest.err
14593   rm -f conftest.er1
14594   cat conftest.err >&5
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); } && {
14597          test -z "$ac_c_werror_flag" ||
14598          test ! -s conftest.err
14599        } && test -s conftest$ac_exeext &&
14600        $as_test_x conftest$ac_exeext; then
14601   ac_cv_c___va_copy="yes"
14602 else
14603   echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14605
14606         ac_cv_c___va_copy="no"
14607 fi
14608
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14610       conftest$ac_exeext conftest.$ac_ext
14611
14612 fi
14613 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
14614 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
14615 if test "$ac_cv_c___va_copy" = "yes"
14616 then
14617
14618 cat >>confdefs.h <<\_ACEOF
14619 #define HAVE___VA_COPY 1
14620 _ACEOF
14621
14622 fi
14623
14624 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
14625 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
14626 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
14627   echo $ECHO_N "(cached) $ECHO_C" >&6
14628 else
14629   cat >conftest.$ac_ext <<_ACEOF
14630 /* confdefs.h.  */
14631 _ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h.  */
14635 #define _GNU_SOURCE
14636 #include <pthread.h>
14637
14638 typedef pthread_rwlock_t ac__type_new_;
14639 int
14640 main ()
14641 {
14642 if ((ac__type_new_ *) 0)
14643   return 0;
14644 if (sizeof (ac__type_new_))
14645   return 0;
14646   ;
14647   return 0;
14648 }
14649 _ACEOF
14650 rm -f conftest.$ac_objext
14651 if { (ac_try="$ac_compile"
14652 case "(($ac_try" in
14653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654   *) ac_try_echo=$ac_try;;
14655 esac
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657   (eval "$ac_compile") 2>conftest.er1
14658   ac_status=$?
14659   grep -v '^ *+' conftest.er1 >conftest.err
14660   rm -f conftest.er1
14661   cat conftest.err >&5
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } && {
14664          test -z "$ac_c_werror_flag" ||
14665          test ! -s conftest.err
14666        } && test -s conftest.$ac_objext; then
14667   ac_cv_type_pthread_rwlock_t=yes
14668 else
14669   echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14671
14672         ac_cv_type_pthread_rwlock_t=no
14673 fi
14674
14675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14676 fi
14677 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
14678 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
14679 if test $ac_cv_type_pthread_rwlock_t = yes; then
14680
14681 cat >>confdefs.h <<_ACEOF
14682 #define HAVE_PTHREAD_RWLOCK_T 1
14683 _ACEOF
14684
14685
14686 fi
14687 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
14688 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
14689 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
14690   echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692   cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698 #define _GNU_SOURCE
14699 #include <pthread.h>
14700
14701 typedef pthread_rwlockattr_t ac__type_new_;
14702 int
14703 main ()
14704 {
14705 if ((ac__type_new_ *) 0)
14706   return 0;
14707 if (sizeof (ac__type_new_))
14708   return 0;
14709   ;
14710   return 0;
14711 }
14712 _ACEOF
14713 rm -f conftest.$ac_objext
14714 if { (ac_try="$ac_compile"
14715 case "(($ac_try" in
14716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717   *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720   (eval "$ac_compile") 2>conftest.er1
14721   ac_status=$?
14722   grep -v '^ *+' conftest.er1 >conftest.err
14723   rm -f conftest.er1
14724   cat conftest.err >&5
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); } && {
14727          test -z "$ac_c_werror_flag" ||
14728          test ! -s conftest.err
14729        } && test -s conftest.$ac_objext; then
14730   ac_cv_type_pthread_rwlockattr_t=yes
14731 else
14732   echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14734
14735         ac_cv_type_pthread_rwlockattr_t=no
14736 fi
14737
14738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739 fi
14740 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
14741 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
14742 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
14743
14744 cat >>confdefs.h <<_ACEOF
14745 #define HAVE_PTHREAD_RWLOCKATTR_T 1
14746 _ACEOF
14747
14748
14749 fi
14750
14751
14752 ac_wine_check_funcs_save_LIBS="$LIBS"
14753 LIBS="$LIBS $LIBPTHREAD"
14754
14755
14756
14757
14758 for ac_func in \
14759         pthread_attr_get_np \
14760         pthread_getattr_np \
14761         pthread_get_stackaddr_np \
14762         pthread_get_stacksize_np
14763 do
14764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14768   echo $ECHO_N "(cached) $ECHO_C" >&6
14769 else
14770   cat >conftest.$ac_ext <<_ACEOF
14771 /* confdefs.h.  */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h.  */
14776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14778 #define $ac_func innocuous_$ac_func
14779
14780 /* System header to define __stub macros and hopefully few prototypes,
14781     which can conflict with char $ac_func (); below.
14782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14783     <limits.h> exists even on freestanding compilers.  */
14784
14785 #ifdef __STDC__
14786 # include <limits.h>
14787 #else
14788 # include <assert.h>
14789 #endif
14790
14791 #undef $ac_func
14792
14793 /* Override any GCC internal prototype to avoid an error.
14794    Use char because int might match the return type of a GCC
14795    builtin and then its argument prototype would still apply.  */
14796 #ifdef __cplusplus
14797 extern "C"
14798 #endif
14799 char $ac_func ();
14800 /* The GNU C library defines this for functions which it implements
14801     to always fail with ENOSYS.  Some functions are actually named
14802     something starting with __ and the normal name is an alias.  */
14803 #if defined __stub_$ac_func || defined __stub___$ac_func
14804 choke me
14805 #endif
14806
14807 int
14808 main ()
14809 {
14810 return $ac_func ();
14811   ;
14812   return 0;
14813 }
14814 _ACEOF
14815 rm -f conftest.$ac_objext conftest$ac_exeext
14816 if { (ac_try="$ac_link"
14817 case "(($ac_try" in
14818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819   *) ac_try_echo=$ac_try;;
14820 esac
14821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822   (eval "$ac_link") 2>conftest.er1
14823   ac_status=$?
14824   grep -v '^ *+' conftest.er1 >conftest.err
14825   rm -f conftest.er1
14826   cat conftest.err >&5
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); } && {
14829          test -z "$ac_c_werror_flag" ||
14830          test ! -s conftest.err
14831        } && test -s conftest$ac_exeext &&
14832        $as_test_x conftest$ac_exeext; then
14833   eval "$as_ac_var=yes"
14834 else
14835   echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14837
14838         eval "$as_ac_var=no"
14839 fi
14840
14841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14842       conftest$ac_exeext conftest.$ac_ext
14843 fi
14844 ac_res=`eval echo '${'$as_ac_var'}'`
14845                { echo "$as_me:$LINENO: result: $ac_res" >&5
14846 echo "${ECHO_T}$ac_res" >&6; }
14847 if test `eval echo '${'$as_ac_var'}'` = yes; then
14848   cat >>confdefs.h <<_ACEOF
14849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14850 _ACEOF
14851
14852 fi
14853 done
14854
14855 LIBS="$ac_wine_check_funcs_save_LIBS"
14856
14857 # Extract the first word of "esd-config", so it can be a program name with args.
14858 set dummy esd-config; ac_word=$2
14859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14861 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
14862   echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864   case $ESDCONFIG in
14865   [\\/]* | ?:[\\/]*)
14866   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
14867   ;;
14868   *)
14869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14870 for as_dir in $PATH
14871 do
14872   IFS=$as_save_IFS
14873   test -z "$as_dir" && as_dir=.
14874   for ac_exec_ext in '' $ac_executable_extensions; do
14875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14876     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14878     break 2
14879   fi
14880 done
14881 done
14882 IFS=$as_save_IFS
14883
14884   ;;
14885 esac
14886 fi
14887 ESDCONFIG=$ac_cv_path_ESDCONFIG
14888 if test -n "$ESDCONFIG"; then
14889   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
14890 echo "${ECHO_T}$ESDCONFIG" >&6; }
14891 else
14892   { echo "$as_me:$LINENO: result: no" >&5
14893 echo "${ECHO_T}no" >&6; }
14894 fi
14895
14896
14897 if test "x$with_esd" != xno -a "x$ESDCONFIG" != x -a "x$ESDCONFIG" != x'"$ESDCONFIG"';
14898 then
14899     ESD_CFLAGS=""
14900     for i in `$ESDCONFIG --cflags`
14901     do
14902       case "$i" in
14903         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
14904       esac
14905     done
14906     ESD_LIBS=`$ESDCONFIG --libs`
14907     save_CFLAGS="$CFLAGS"
14908     CFLAGS="$CFLAGS $ESD_CFLAGS"
14909     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
14910 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
14911 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
14912   echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914   ac_check_lib_save_LIBS=$LIBS
14915 LIBS="-lesd  $LIBS"
14916 cat >conftest.$ac_ext <<_ACEOF
14917 /* confdefs.h.  */
14918 _ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h.  */
14922
14923 /* Override any GCC internal prototype to avoid an error.
14924    Use char because int might match the return type of a GCC
14925    builtin and then its argument prototype would still apply.  */
14926 #ifdef __cplusplus
14927 extern "C"
14928 #endif
14929 char esd_open_sound ();
14930 int
14931 main ()
14932 {
14933 return esd_open_sound ();
14934   ;
14935   return 0;
14936 }
14937 _ACEOF
14938 rm -f conftest.$ac_objext conftest$ac_exeext
14939 if { (ac_try="$ac_link"
14940 case "(($ac_try" in
14941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942   *) ac_try_echo=$ac_try;;
14943 esac
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945   (eval "$ac_link") 2>conftest.er1
14946   ac_status=$?
14947   grep -v '^ *+' conftest.er1 >conftest.err
14948   rm -f conftest.er1
14949   cat conftest.err >&5
14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951   (exit $ac_status); } && {
14952          test -z "$ac_c_werror_flag" ||
14953          test ! -s conftest.err
14954        } && test -s conftest$ac_exeext &&
14955        $as_test_x conftest$ac_exeext; then
14956   ac_cv_lib_esd_esd_open_sound=yes
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961         ac_cv_lib_esd_esd_open_sound=no
14962 fi
14963
14964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14965       conftest$ac_exeext conftest.$ac_ext
14966 LIBS=$ac_check_lib_save_LIBS
14967 fi
14968 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14969 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
14970 if test $ac_cv_lib_esd_esd_open_sound = yes; then
14971   ESDLIBS=$ESD_LIBS
14972
14973          ESDINCL=$ESD_CFLAGS
14974
14975
14976 cat >>confdefs.h <<\_ACEOF
14977 #define HAVE_ESD 1
14978 _ACEOF
14979
14980 fi
14981
14982     CFLAGS="$save_CFLAGS"
14983 fi
14984
14985 ALSALIBS=""
14986
14987 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
14988 then
14989     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14990 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
14991 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
14992   echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994   ac_check_lib_save_LIBS=$LIBS
14995 LIBS="-lasound  $LIBS"
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h.  */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h.  */
15002
15003 /* Override any GCC internal prototype to avoid an error.
15004    Use char because int might match the return type of a GCC
15005    builtin and then its argument prototype would still apply.  */
15006 #ifdef __cplusplus
15007 extern "C"
15008 #endif
15009 char snd_pcm_hw_params_get_access ();
15010 int
15011 main ()
15012 {
15013 return snd_pcm_hw_params_get_access ();
15014   ;
15015   return 0;
15016 }
15017 _ACEOF
15018 rm -f conftest.$ac_objext conftest$ac_exeext
15019 if { (ac_try="$ac_link"
15020 case "(($ac_try" in
15021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022   *) ac_try_echo=$ac_try;;
15023 esac
15024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025   (eval "$ac_link") 2>conftest.er1
15026   ac_status=$?
15027   grep -v '^ *+' conftest.er1 >conftest.err
15028   rm -f conftest.er1
15029   cat conftest.err >&5
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); } && {
15032          test -z "$ac_c_werror_flag" ||
15033          test ! -s conftest.err
15034        } && test -s conftest$ac_exeext &&
15035        $as_test_x conftest$ac_exeext; then
15036   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
15037 else
15038   echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15040
15041         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
15042 fi
15043
15044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15045       conftest$ac_exeext conftest.$ac_ext
15046 LIBS=$ac_check_lib_save_LIBS
15047 fi
15048 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
15049 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
15050 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
15051   cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h.  */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h.  */
15057 #ifdef HAVE_ALSA_ASOUNDLIB_H
15058 #include <alsa/asoundlib.h>
15059 #elif defined(HAVE_SYS_ASOUNDLIB_H)
15060 #include <sys/asoundlib.h>
15061 #endif
15062 int
15063 main ()
15064 {
15065 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
15066   ;
15067   return 0;
15068 }
15069 _ACEOF
15070 rm -f conftest.$ac_objext
15071 if { (ac_try="$ac_compile"
15072 case "(($ac_try" in
15073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074   *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077   (eval "$ac_compile") 2>conftest.er1
15078   ac_status=$?
15079   grep -v '^ *+' conftest.er1 >conftest.err
15080   rm -f conftest.er1
15081   cat conftest.err >&5
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } && {
15084          test -z "$ac_c_werror_flag" ||
15085          test ! -s conftest.err
15086        } && test -s conftest.$ac_objext; then
15087
15088 cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_ALSA 1
15090 _ACEOF
15091
15092                          ALSALIBS="-lasound"
15093 else
15094   echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15096
15097
15098 fi
15099
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 fi
15102
15103 fi
15104
15105 AUDIOIOLIBS=""
15106
15107 if test "$ac_cv_header_libaudioio_h" = "yes"
15108 then
15109     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
15110 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
15111 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114   ac_check_lib_save_LIBS=$LIBS
15115 LIBS="-laudioio  $LIBS"
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h.  */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h.  */
15122
15123 /* Override any GCC internal prototype to avoid an error.
15124    Use char because int might match the return type of a GCC
15125    builtin and then its argument prototype would still apply.  */
15126 #ifdef __cplusplus
15127 extern "C"
15128 #endif
15129 char AudioIOGetVersion ();
15130 int
15131 main ()
15132 {
15133 return AudioIOGetVersion ();
15134   ;
15135   return 0;
15136 }
15137 _ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (ac_try="$ac_link"
15140 case "(($ac_try" in
15141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142   *) ac_try_echo=$ac_try;;
15143 esac
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145   (eval "$ac_link") 2>conftest.er1
15146   ac_status=$?
15147   grep -v '^ *+' conftest.er1 >conftest.err
15148   rm -f conftest.er1
15149   cat conftest.err >&5
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); } && {
15152          test -z "$ac_c_werror_flag" ||
15153          test ! -s conftest.err
15154        } && test -s conftest$ac_exeext &&
15155        $as_test_x conftest$ac_exeext; then
15156   ac_cv_lib_audioio_AudioIOGetVersion=yes
15157 else
15158   echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161         ac_cv_lib_audioio_AudioIOGetVersion=no
15162 fi
15163
15164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15165       conftest$ac_exeext conftest.$ac_ext
15166 LIBS=$ac_check_lib_save_LIBS
15167 fi
15168 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
15169 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
15170 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
15171   AUDIOIOLIBS="-laudioio"
15172
15173 cat >>confdefs.h <<\_ACEOF
15174 #define HAVE_LIBAUDIOIO 1
15175 _ACEOF
15176
15177 fi
15178
15179 fi
15180
15181
15182 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
15183 then
15184     { echo "$as_me:$LINENO: checking for -lcapi20" >&5
15185 echo $ECHO_N "checking for -lcapi20... $ECHO_C" >&6; }
15186 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15187   echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189   ac_check_soname_save_LIBS=$LIBS
15190 LIBS="-lcapi20  $LIBS"
15191   cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h.  */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h.  */
15197
15198 /* Override any GCC internal prototype to avoid an error.
15199    Use char because int might match the return type of a GCC
15200    builtin and then its argument prototype would still apply.  */
15201 #ifdef __cplusplus
15202 extern "C"
15203 #endif
15204 char capi20_register ();
15205 int
15206 main ()
15207 {
15208 return capi20_register ();
15209   ;
15210   return 0;
15211 }
15212 _ACEOF
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (ac_try="$ac_link"
15215 case "(($ac_try" in
15216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217   *) ac_try_echo=$ac_try;;
15218 esac
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220   (eval "$ac_link") 2>conftest.er1
15221   ac_status=$?
15222   grep -v '^ *+' conftest.er1 >conftest.err
15223   rm -f conftest.er1
15224   cat conftest.err >&5
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); } && {
15227          test -z "$ac_c_werror_flag" ||
15228          test ! -s conftest.err
15229        } && test -s conftest$ac_exeext &&
15230        $as_test_x conftest$ac_exeext; then
15231   case "$LIBEXT" in
15232     dll) ;;
15233     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'` ;;
15234     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
15235   esac
15236 else
15237   echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15239
15240
15241 fi
15242
15243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244       conftest$ac_exeext conftest.$ac_ext
15245   LIBS=$ac_check_soname_save_LIBS
15246 fi
15247 if test "x$ac_cv_lib_soname_capi20" = "x"; then
15248   { echo "$as_me:$LINENO: result: not found" >&5
15249 echo "${ECHO_T}not found" >&6; }
15250
15251 else
15252   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15253 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
15254
15255 cat >>confdefs.h <<_ACEOF
15256 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15257 _ACEOF
15258
15259
15260 fi
15261
15262 fi
15263 if test "x$ac_cv_lib_soname_capi20" = "x"; then
15264   case "x$with_capi" in
15265   x)   wine_notices="$wine_notices|libcapi20 development files not found, ISDN won't be supported." ;;
15266   xno) ;;
15267   *)   { { echo "$as_me:$LINENO: error: libcapi20 development files not found, ISDN won't be supported.
15268 This is an error since --with-capi was requested." >&5
15269 echo "$as_me: error: libcapi20 development files not found, ISDN won't be supported.
15270 This is an error since --with-capi was requested." >&2;}
15271    { (exit 1); exit 1; }; } ;;
15272 esac
15273 fi
15274
15275
15276 if test "$ac_cv_header_cups_cups_h" = "yes"
15277 then
15278     { echo "$as_me:$LINENO: checking for -lcups" >&5
15279 echo $ECHO_N "checking for -lcups... $ECHO_C" >&6; }
15280 if test "${ac_cv_lib_soname_cups+set}" = set; then
15281   echo $ECHO_N "(cached) $ECHO_C" >&6
15282 else
15283   ac_check_soname_save_LIBS=$LIBS
15284 LIBS="-lcups  $LIBS"
15285   cat >conftest.$ac_ext <<_ACEOF
15286 /* confdefs.h.  */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h.  */
15291
15292 /* Override any GCC internal prototype to avoid an error.
15293    Use char because int might match the return type of a GCC
15294    builtin and then its argument prototype would still apply.  */
15295 #ifdef __cplusplus
15296 extern "C"
15297 #endif
15298 char cupsGetDefault ();
15299 int
15300 main ()
15301 {
15302 return cupsGetDefault ();
15303   ;
15304   return 0;
15305 }
15306 _ACEOF
15307 rm -f conftest.$ac_objext conftest$ac_exeext
15308 if { (ac_try="$ac_link"
15309 case "(($ac_try" in
15310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311   *) ac_try_echo=$ac_try;;
15312 esac
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314   (eval "$ac_link") 2>conftest.er1
15315   ac_status=$?
15316   grep -v '^ *+' conftest.er1 >conftest.err
15317   rm -f conftest.er1
15318   cat conftest.err >&5
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); } && {
15321          test -z "$ac_c_werror_flag" ||
15322          test ! -s conftest.err
15323        } && test -s conftest$ac_exeext &&
15324        $as_test_x conftest$ac_exeext; then
15325   case "$LIBEXT" in
15326     dll) ;;
15327     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'` ;;
15328     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
15329   esac
15330 else
15331   echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334
15335 fi
15336
15337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15338       conftest$ac_exeext conftest.$ac_ext
15339   LIBS=$ac_check_soname_save_LIBS
15340 fi
15341 if test "x$ac_cv_lib_soname_cups" = "x"; then
15342   { echo "$as_me:$LINENO: result: not found" >&5
15343 echo "${ECHO_T}not found" >&6; }
15344
15345 else
15346   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15347 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
15348
15349 cat >>confdefs.h <<_ACEOF
15350 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15351 _ACEOF
15352
15353
15354 fi
15355
15356 fi
15357 if test "x$ac_cv_lib_soname_cups" = "x"; then
15358   case "x$with_cups" in
15359   x)   wine_notices="$wine_notices|libcups development files not found, CUPS won't be supported." ;;
15360   xno) ;;
15361   *)   { { echo "$as_me:$LINENO: error: libcups development files not found, CUPS won't be supported.
15362 This is an error since --with-cups was requested." >&5
15363 echo "$as_me: error: libcups development files not found, CUPS won't be supported.
15364 This is an error since --with-cups was requested." >&2;}
15365    { (exit 1); exit 1; }; } ;;
15366 esac
15367 fi
15368
15369
15370 if test "$ac_cv_header_jack_jack_h" = "yes"
15371 then
15372     { echo "$as_me:$LINENO: checking for -ljack" >&5
15373 echo $ECHO_N "checking for -ljack... $ECHO_C" >&6; }
15374 if test "${ac_cv_lib_soname_jack+set}" = set; then
15375   echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377   ac_check_soname_save_LIBS=$LIBS
15378 LIBS="-ljack  $LIBS"
15379   cat >conftest.$ac_ext <<_ACEOF
15380 /* confdefs.h.  */
15381 _ACEOF
15382 cat confdefs.h >>conftest.$ac_ext
15383 cat >>conftest.$ac_ext <<_ACEOF
15384 /* end confdefs.h.  */
15385
15386 /* Override any GCC internal prototype to avoid an error.
15387    Use char because int might match the return type of a GCC
15388    builtin and then its argument prototype would still apply.  */
15389 #ifdef __cplusplus
15390 extern "C"
15391 #endif
15392 char jack_client_new ();
15393 int
15394 main ()
15395 {
15396 return jack_client_new ();
15397   ;
15398   return 0;
15399 }
15400 _ACEOF
15401 rm -f conftest.$ac_objext conftest$ac_exeext
15402 if { (ac_try="$ac_link"
15403 case "(($ac_try" in
15404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405   *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408   (eval "$ac_link") 2>conftest.er1
15409   ac_status=$?
15410   grep -v '^ *+' conftest.er1 >conftest.err
15411   rm -f conftest.er1
15412   cat conftest.err >&5
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); } && {
15415          test -z "$ac_c_werror_flag" ||
15416          test ! -s conftest.err
15417        } && test -s conftest$ac_exeext &&
15418        $as_test_x conftest$ac_exeext; then
15419   case "$LIBEXT" in
15420     dll) ;;
15421     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'` ;;
15422     *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack\\.$LIBEXT" | sed -e "s/^.*\(libjack\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
15423   esac
15424 else
15425   echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15427
15428
15429 fi
15430
15431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15432       conftest$ac_exeext conftest.$ac_ext
15433   LIBS=$ac_check_soname_save_LIBS
15434 fi
15435 if test "x$ac_cv_lib_soname_jack" = "x"; then
15436   { echo "$as_me:$LINENO: result: not found" >&5
15437 echo "${ECHO_T}not found" >&6; }
15438
15439 else
15440   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15441 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
15442
15443 cat >>confdefs.h <<_ACEOF
15444 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15445 _ACEOF
15446
15447
15448 fi
15449
15450 fi
15451
15452 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
15453 then
15454     { echo "$as_me:$LINENO: checking for -lfontconfig" >&5
15455 echo $ECHO_N "checking for -lfontconfig... $ECHO_C" >&6; }
15456 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15457   echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459   ac_check_soname_save_LIBS=$LIBS
15460 LIBS="-lfontconfig  $LIBS"
15461   cat >conftest.$ac_ext <<_ACEOF
15462 /* confdefs.h.  */
15463 _ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h.  */
15467
15468 /* Override any GCC internal prototype to avoid an error.
15469    Use char because int might match the return type of a GCC
15470    builtin and then its argument prototype would still apply.  */
15471 #ifdef __cplusplus
15472 extern "C"
15473 #endif
15474 char FcInit ();
15475 int
15476 main ()
15477 {
15478 return FcInit ();
15479   ;
15480   return 0;
15481 }
15482 _ACEOF
15483 rm -f conftest.$ac_objext conftest$ac_exeext
15484 if { (ac_try="$ac_link"
15485 case "(($ac_try" in
15486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487   *) ac_try_echo=$ac_try;;
15488 esac
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490   (eval "$ac_link") 2>conftest.er1
15491   ac_status=$?
15492   grep -v '^ *+' conftest.er1 >conftest.err
15493   rm -f conftest.er1
15494   cat conftest.err >&5
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); } && {
15497          test -z "$ac_c_werror_flag" ||
15498          test ! -s conftest.err
15499        } && test -s conftest$ac_exeext &&
15500        $as_test_x conftest$ac_exeext; then
15501   case "$LIBEXT" in
15502     dll) ;;
15503     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'` ;;
15504     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
15505   esac
15506 else
15507   echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15514       conftest$ac_exeext conftest.$ac_ext
15515   LIBS=$ac_check_soname_save_LIBS
15516 fi
15517 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
15518   { echo "$as_me:$LINENO: result: not found" >&5
15519 echo "${ECHO_T}not found" >&6; }
15520
15521 else
15522   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15523 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
15524
15525 cat >>confdefs.h <<_ACEOF
15526 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15527 _ACEOF
15528
15529
15530 fi
15531
15532 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
15533 then
15534         ac_save_CPPFLAGS="$CPPFLAGS"
15535     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15536     $as_unset ac_cv_header_fontconfig_fontconfig_h
15537
15538 for ac_header in fontconfig/fontconfig.h
15539 do
15540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15542   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15545   echo $ECHO_N "(cached) $ECHO_C" >&6
15546 fi
15547 ac_res=`eval echo '${'$as_ac_Header'}'`
15548                { echo "$as_me:$LINENO: result: $ac_res" >&5
15549 echo "${ECHO_T}$ac_res" >&6; }
15550 else
15551   # Is the header compilable?
15552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15554 cat >conftest.$ac_ext <<_ACEOF
15555 /* confdefs.h.  */
15556 _ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h.  */
15560 $ac_includes_default
15561 #include <$ac_header>
15562 _ACEOF
15563 rm -f conftest.$ac_objext
15564 if { (ac_try="$ac_compile"
15565 case "(($ac_try" in
15566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567   *) ac_try_echo=$ac_try;;
15568 esac
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570   (eval "$ac_compile") 2>conftest.er1
15571   ac_status=$?
15572   grep -v '^ *+' conftest.er1 >conftest.err
15573   rm -f conftest.er1
15574   cat conftest.err >&5
15575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576   (exit $ac_status); } && {
15577          test -z "$ac_c_werror_flag" ||
15578          test ! -s conftest.err
15579        } && test -s conftest.$ac_objext; then
15580   ac_header_compiler=yes
15581 else
15582   echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15584
15585         ac_header_compiler=no
15586 fi
15587
15588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15590 echo "${ECHO_T}$ac_header_compiler" >&6; }
15591
15592 # Is the header present?
15593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15595 cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h.  */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h.  */
15601 #include <$ac_header>
15602 _ACEOF
15603 if { (ac_try="$ac_cpp conftest.$ac_ext"
15604 case "(($ac_try" in
15605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606   *) ac_try_echo=$ac_try;;
15607 esac
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15610   ac_status=$?
15611   grep -v '^ *+' conftest.er1 >conftest.err
15612   rm -f conftest.er1
15613   cat conftest.err >&5
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); } >/dev/null && {
15616          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15617          test ! -s conftest.err
15618        }; then
15619   ac_header_preproc=yes
15620 else
15621   echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15623
15624   ac_header_preproc=no
15625 fi
15626
15627 rm -f conftest.err conftest.$ac_ext
15628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15629 echo "${ECHO_T}$ac_header_preproc" >&6; }
15630
15631 # So?  What about this header?
15632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15633   yes:no: )
15634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15638     ac_header_preproc=yes
15639     ;;
15640   no:yes:* )
15641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15653     ( cat <<\_ASBOX
15654 ## ------------------------------------ ##
15655 ## Report this to wine-devel@winehq.org ##
15656 ## ------------------------------------ ##
15657 _ASBOX
15658      ) | sed "s/^/$as_me: WARNING:     /" >&2
15659     ;;
15660 esac
15661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15664   echo $ECHO_N "(cached) $ECHO_C" >&6
15665 else
15666   eval "$as_ac_Header=\$ac_header_preproc"
15667 fi
15668 ac_res=`eval echo '${'$as_ac_Header'}'`
15669                { echo "$as_me:$LINENO: result: $ac_res" >&5
15670 echo "${ECHO_T}$ac_res" >&6; }
15671
15672 fi
15673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15674   cat >>confdefs.h <<_ACEOF
15675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15676 _ACEOF
15677
15678 fi
15679
15680 done
15681
15682     CPPFLAGS="$ac_save_CPPFLAGS"
15683     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
15684     then
15685         FONTCONFIGINCL="$X_CFLAGS"
15686
15687         { echo "$as_me:$LINENO: checking for -lfontconfig" >&5
15688 echo $ECHO_N "checking for -lfontconfig... $ECHO_C" >&6; }
15689 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15690   echo $ECHO_N "(cached) $ECHO_C" >&6
15691 else
15692   ac_check_soname_save_LIBS=$LIBS
15693 LIBS="-lfontconfig $X_LIBS $LIBS"
15694   cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h.  */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h.  */
15700
15701 /* Override any GCC internal prototype to avoid an error.
15702    Use char because int might match the return type of a GCC
15703    builtin and then its argument prototype would still apply.  */
15704 #ifdef __cplusplus
15705 extern "C"
15706 #endif
15707 char FcInit ();
15708 int
15709 main ()
15710 {
15711 return FcInit ();
15712   ;
15713   return 0;
15714 }
15715 _ACEOF
15716 rm -f conftest.$ac_objext conftest$ac_exeext
15717 if { (ac_try="$ac_link"
15718 case "(($ac_try" in
15719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720   *) ac_try_echo=$ac_try;;
15721 esac
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723   (eval "$ac_link") 2>conftest.er1
15724   ac_status=$?
15725   grep -v '^ *+' conftest.er1 >conftest.err
15726   rm -f conftest.er1
15727   cat conftest.err >&5
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); } && {
15730          test -z "$ac_c_werror_flag" ||
15731          test ! -s conftest.err
15732        } && test -s conftest$ac_exeext &&
15733        $as_test_x conftest$ac_exeext; then
15734   case "$LIBEXT" in
15735     dll) ;;
15736     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'` ;;
15737     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
15738   esac
15739 else
15740   echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15742
15743
15744 fi
15745
15746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15747       conftest$ac_exeext conftest.$ac_ext
15748   LIBS=$ac_check_soname_save_LIBS
15749 fi
15750 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
15751   { echo "$as_me:$LINENO: result: not found" >&5
15752 echo "${ECHO_T}not found" >&6; }
15753
15754 else
15755   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15756 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
15757
15758 cat >>confdefs.h <<_ACEOF
15759 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15760 _ACEOF
15761
15762
15763 fi
15764
15765     fi
15766 fi
15767 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
15768   case "x$with_fontconfig" in
15769   x)   wine_notices="$wine_notices|fontconfig development files not found, fontconfig won't be supported." ;;
15770   xno) ;;
15771   *)   { { echo "$as_me:$LINENO: error: fontconfig development files not found, fontconfig won't be supported.
15772 This is an error since --with-fontconfig was requested." >&5
15773 echo "$as_me: error: fontconfig development files not found, fontconfig won't be supported.
15774 This is an error since --with-fontconfig was requested." >&2;}
15775    { (exit 1); exit 1; }; } ;;
15776 esac
15777 fi
15778
15779
15780 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
15781 then
15782     { echo "$as_me:$LINENO: checking for -lssl" >&5
15783 echo $ECHO_N "checking for -lssl... $ECHO_C" >&6; }
15784 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15785   echo $ECHO_N "(cached) $ECHO_C" >&6
15786 else
15787   ac_check_soname_save_LIBS=$LIBS
15788 LIBS="-lssl  $LIBS"
15789   cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h.  */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h.  */
15795
15796 /* Override any GCC internal prototype to avoid an error.
15797    Use char because int might match the return type of a GCC
15798    builtin and then its argument prototype would still apply.  */
15799 #ifdef __cplusplus
15800 extern "C"
15801 #endif
15802 char SSL_library_init ();
15803 int
15804 main ()
15805 {
15806 return SSL_library_init ();
15807   ;
15808   return 0;
15809 }
15810 _ACEOF
15811 rm -f conftest.$ac_objext conftest$ac_exeext
15812 if { (ac_try="$ac_link"
15813 case "(($ac_try" in
15814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815   *) ac_try_echo=$ac_try;;
15816 esac
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818   (eval "$ac_link") 2>conftest.er1
15819   ac_status=$?
15820   grep -v '^ *+' conftest.er1 >conftest.err
15821   rm -f conftest.er1
15822   cat conftest.err >&5
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); } && {
15825          test -z "$ac_c_werror_flag" ||
15826          test ! -s conftest.err
15827        } && test -s conftest$ac_exeext &&
15828        $as_test_x conftest$ac_exeext; then
15829   case "$LIBEXT" in
15830     dll) ;;
15831     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'` ;;
15832     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
15833   esac
15834 else
15835   echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15837
15838
15839 fi
15840
15841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15842       conftest$ac_exeext conftest.$ac_ext
15843   LIBS=$ac_check_soname_save_LIBS
15844 fi
15845 if test "x$ac_cv_lib_soname_ssl" = "x"; then
15846   { echo "$as_me:$LINENO: result: not found" >&5
15847 echo "${ECHO_T}not found" >&6; }
15848
15849 else
15850   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15851 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
15852
15853 cat >>confdefs.h <<_ACEOF
15854 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15855 _ACEOF
15856
15857
15858 fi
15859
15860     { echo "$as_me:$LINENO: checking for -lcrypto" >&5
15861 echo $ECHO_N "checking for -lcrypto... $ECHO_C" >&6; }
15862 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15863   echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865   ac_check_soname_save_LIBS=$LIBS
15866 LIBS="-lcrypto  $LIBS"
15867   cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h.  */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h.  */
15873
15874 /* Override any GCC internal prototype to avoid an error.
15875    Use char because int might match the return type of a GCC
15876    builtin and then its argument prototype would still apply.  */
15877 #ifdef __cplusplus
15878 extern "C"
15879 #endif
15880 char BIO_new_socket ();
15881 int
15882 main ()
15883 {
15884 return BIO_new_socket ();
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 rm -f conftest.$ac_objext conftest$ac_exeext
15890 if { (ac_try="$ac_link"
15891 case "(($ac_try" in
15892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893   *) ac_try_echo=$ac_try;;
15894 esac
15895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896   (eval "$ac_link") 2>conftest.er1
15897   ac_status=$?
15898   grep -v '^ *+' conftest.er1 >conftest.err
15899   rm -f conftest.er1
15900   cat conftest.err >&5
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); } && {
15903          test -z "$ac_c_werror_flag" ||
15904          test ! -s conftest.err
15905        } && test -s conftest$ac_exeext &&
15906        $as_test_x conftest$ac_exeext; then
15907   case "$LIBEXT" in
15908     dll) ;;
15909     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'` ;;
15910     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
15911   esac
15912 else
15913   echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916
15917 fi
15918
15919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15920       conftest$ac_exeext conftest.$ac_ext
15921   LIBS=$ac_check_soname_save_LIBS
15922 fi
15923 if test "x$ac_cv_lib_soname_crypto" = "x"; then
15924   { echo "$as_me:$LINENO: result: not found" >&5
15925 echo "${ECHO_T}not found" >&6; }
15926
15927 else
15928   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15929 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
15930
15931 cat >>confdefs.h <<_ACEOF
15932 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15933 _ACEOF
15934
15935
15936 fi
15937
15938 fi
15939 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then
15940   case "x$with_openssl" in
15941   x)   wine_warnings="$wine_warnings|OpenSSL development files not found, SSL won't be supported." ;;
15942   xno) ;;
15943   *)   { { echo "$as_me:$LINENO: error: OpenSSL development files not found, SSL won't be supported.
15944 This is an error since --with-openssl was requested." >&5
15945 echo "$as_me: error: OpenSSL development files not found, SSL won't be supported.
15946 This is an error since --with-openssl was requested." >&2;}
15947    { (exit 1); exit 1; }; } ;;
15948 esac
15949 fi
15950
15951
15952 if test "$ac_cv_header_jpeglib_h" = "yes"
15953 then
15954     { echo "$as_me:$LINENO: checking for -ljpeg" >&5
15955 echo $ECHO_N "checking for -ljpeg... $ECHO_C" >&6; }
15956 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15957   echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959   ac_check_soname_save_LIBS=$LIBS
15960 LIBS="-ljpeg  $LIBS"
15961   cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h.  */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h.  */
15967
15968 /* Override any GCC internal prototype to avoid an error.
15969    Use char because int might match the return type of a GCC
15970    builtin and then its argument prototype would still apply.  */
15971 #ifdef __cplusplus
15972 extern "C"
15973 #endif
15974 char jpeg_start_decompress ();
15975 int
15976 main ()
15977 {
15978 return jpeg_start_decompress ();
15979   ;
15980   return 0;
15981 }
15982 _ACEOF
15983 rm -f conftest.$ac_objext conftest$ac_exeext
15984 if { (ac_try="$ac_link"
15985 case "(($ac_try" in
15986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987   *) ac_try_echo=$ac_try;;
15988 esac
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990   (eval "$ac_link") 2>conftest.er1
15991   ac_status=$?
15992   grep -v '^ *+' conftest.er1 >conftest.err
15993   rm -f conftest.er1
15994   cat conftest.err >&5
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); } && {
15997          test -z "$ac_c_werror_flag" ||
15998          test ! -s conftest.err
15999        } && test -s conftest$ac_exeext &&
16000        $as_test_x conftest$ac_exeext; then
16001   case "$LIBEXT" in
16002     dll) ;;
16003     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'` ;;
16004     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
16005   esac
16006 else
16007   echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010
16011 fi
16012
16013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16014       conftest$ac_exeext conftest.$ac_ext
16015   LIBS=$ac_check_soname_save_LIBS
16016 fi
16017 if test "x$ac_cv_lib_soname_jpeg" = "x"; then
16018   { echo "$as_me:$LINENO: result: not found" >&5
16019 echo "${ECHO_T}not found" >&6; }
16020
16021 else
16022   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
16023 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
16024
16025 cat >>confdefs.h <<_ACEOF
16026 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
16027 _ACEOF
16028
16029
16030 fi
16031
16032 fi
16033 if test "x$ac_cv_lib_soname_jpeg" = "x"; then
16034   case "x$with_jpeg" in
16035   x)   wine_warnings="$wine_warnings|libjpeg development files not found, JPEG won't be supported." ;;
16036   xno) ;;
16037   *)   { { echo "$as_me:$LINENO: error: libjpeg development files not found, JPEG won't be supported.
16038 This is an error since --with-jpeg was requested." >&5
16039 echo "$as_me: error: libjpeg development files not found, JPEG won't be supported.
16040 This is an error since --with-jpeg was requested." >&2;}
16041    { (exit 1); exit 1; }; } ;;
16042 esac
16043 fi
16044
16045
16046 if test "$ac_cv_header_png_h" = "yes"
16047 then
16048     { echo "$as_me:$LINENO: checking for -lpng" >&5
16049 echo $ECHO_N "checking for -lpng... $ECHO_C" >&6; }
16050 if test "${ac_cv_lib_soname_png+set}" = set; then
16051   echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053   ac_check_soname_save_LIBS=$LIBS
16054 LIBS="-lpng -lm $LIBS"
16055   cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h.  */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h.  */
16061
16062 /* Override any GCC internal prototype to avoid an error.
16063    Use char because int might match the return type of a GCC
16064    builtin and then its argument prototype would still apply.  */
16065 #ifdef __cplusplus
16066 extern "C"
16067 #endif
16068 char png_create_read_struct ();
16069 int
16070 main ()
16071 {
16072 return png_create_read_struct ();
16073   ;
16074   return 0;
16075 }
16076 _ACEOF
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (ac_try="$ac_link"
16079 case "(($ac_try" in
16080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081   *) ac_try_echo=$ac_try;;
16082 esac
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084   (eval "$ac_link") 2>conftest.er1
16085   ac_status=$?
16086   grep -v '^ *+' conftest.er1 >conftest.err
16087   rm -f conftest.er1
16088   cat conftest.err >&5
16089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090   (exit $ac_status); } && {
16091          test -z "$ac_c_werror_flag" ||
16092          test ! -s conftest.err
16093        } && test -s conftest$ac_exeext &&
16094        $as_test_x conftest$ac_exeext; then
16095   case "$LIBEXT" in
16096     dll) ;;
16097     dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16098     *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
16099   esac
16100 else
16101   echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104
16105 fi
16106
16107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16108       conftest$ac_exeext conftest.$ac_ext
16109   LIBS=$ac_check_soname_save_LIBS
16110 fi
16111 if test "x$ac_cv_lib_soname_png" = "x"; then
16112   { echo "$as_me:$LINENO: result: not found" >&5
16113 echo "${ECHO_T}not found" >&6; }
16114
16115 else
16116   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_png" >&5
16117 echo "${ECHO_T}$ac_cv_lib_soname_png" >&6; }
16118
16119 cat >>confdefs.h <<_ACEOF
16120 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
16121 _ACEOF
16122
16123
16124 fi
16125
16126 fi
16127 if test "x$ac_cv_lib_soname_png" = "x"; then
16128   case "x$with_png" in
16129   x)   wine_warnings="$wine_warnings|libpng development files not found, PNG won't be supported." ;;
16130   xno) ;;
16131   *)   { { echo "$as_me:$LINENO: error: libpng development files not found, PNG won't be supported.
16132 This is an error since --with-png was requested." >&5
16133 echo "$as_me: error: libpng development files not found, PNG won't be supported.
16134 This is an error since --with-png was requested." >&2;}
16135    { (exit 1); exit 1; }; } ;;
16136 esac
16137 fi
16138
16139
16140 { echo "$as_me:$LINENO: checking for -lodbc" >&5
16141 echo $ECHO_N "checking for -lodbc... $ECHO_C" >&6; }
16142 if test "${ac_cv_lib_soname_odbc+set}" = set; then
16143   echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145   ac_check_soname_save_LIBS=$LIBS
16146 LIBS="-lodbc  $LIBS"
16147   cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h.  */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h.  */
16153
16154 /* Override any GCC internal prototype to avoid an error.
16155    Use char because int might match the return type of a GCC
16156    builtin and then its argument prototype would still apply.  */
16157 #ifdef __cplusplus
16158 extern "C"
16159 #endif
16160 char SQLConnect ();
16161 int
16162 main ()
16163 {
16164 return SQLConnect ();
16165   ;
16166   return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext conftest$ac_exeext
16170 if { (ac_try="$ac_link"
16171 case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176   (eval "$ac_link") 2>conftest.er1
16177   ac_status=$?
16178   grep -v '^ *+' conftest.er1 >conftest.err
16179   rm -f conftest.er1
16180   cat conftest.err >&5
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); } && {
16183          test -z "$ac_c_werror_flag" ||
16184          test ! -s conftest.err
16185        } && test -s conftest$ac_exeext &&
16186        $as_test_x conftest$ac_exeext; then
16187   case "$LIBEXT" in
16188     dll) ;;
16189     dylib) ac_cv_lib_soname_odbc=`otool -L conftest$ac_exeext | grep "libodbc\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libodbc\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16190     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
16191   esac
16192 else
16193   echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16195
16196
16197 fi
16198
16199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16200       conftest$ac_exeext conftest.$ac_ext
16201   LIBS=$ac_check_soname_save_LIBS
16202 fi
16203 if test "x$ac_cv_lib_soname_odbc" = "x"; then
16204   { echo "$as_me:$LINENO: result: not found" >&5
16205 echo "${ECHO_T}not found" >&6; }
16206        cat >>confdefs.h <<_ACEOF
16207 #define SONAME_LIBODBC "libodbc.$LIBEXT"
16208 _ACEOF
16209
16210 else
16211   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_odbc" >&5
16212 echo "${ECHO_T}$ac_cv_lib_soname_odbc" >&6; }
16213
16214 cat >>confdefs.h <<_ACEOF
16215 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
16216 _ACEOF
16217
16218
16219 fi
16220
16221
16222 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESD_LIBS$ac_cv_lib_soname_jack" = "x" -a \
16223         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
16224         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
16225         "$ac_cv_header_soundcard_h" != "yes" -a \
16226         "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
16227 then
16228     wine_warnings="$wine_warnings|No sound system was found. Windows applications will be silent."
16229 fi
16230
16231
16232 EXTRACFLAGS=""
16233
16234 if test "x${GCC}" = "xyes"
16235 then
16236   EXTRACFLAGS="-Wall -pipe"
16237
16238     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
16239 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
16240 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
16241   echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243   if test "$cross_compiling" = yes; then
16244   ac_cv_c_gcc_strength_bug="yes"
16245 else
16246   cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h.  */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h.  */
16252 int L[4] = {0,1,2,3};
16253 int
16254 main ()
16255 {
16256 static int Array[3];
16257   unsigned int B = 3;
16258   int i;
16259   for(i=0; i<B; i++) Array[i] = i - 3;
16260   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
16261   L[i] = 4;
16262   exit( Array[1] != -2 || L[2] != 3)
16263   ;
16264   return 0;
16265 }
16266 _ACEOF
16267 rm -f conftest$ac_exeext
16268 if { (ac_try="$ac_link"
16269 case "(($ac_try" in
16270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271   *) ac_try_echo=$ac_try;;
16272 esac
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274   (eval "$ac_link") 2>&5
16275   ac_status=$?
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16278   { (case "(($ac_try" in
16279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16280   *) ac_try_echo=$ac_try;;
16281 esac
16282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16283   (eval "$ac_try") 2>&5
16284   ac_status=$?
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); }; }; then
16287   ac_cv_c_gcc_strength_bug="no"
16288 else
16289   echo "$as_me: program exited with status $ac_status" >&5
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293 ( exit $ac_status )
16294 ac_cv_c_gcc_strength_bug="yes"
16295 fi
16296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16297 fi
16298
16299
16300 fi
16301 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
16302 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
16303   if test "$ac_cv_c_gcc_strength_bug" = "yes"
16304   then
16305     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
16306   fi
16307
16308
16309   { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
16310 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
16311 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
16312   echo $ECHO_N "(cached) $ECHO_C" >&6
16313 else
16314   ac_wine_try_cflags_saved=$CFLAGS
16315 CFLAGS="$CFLAGS -fshort-wchar"
16316 cat >conftest.$ac_ext <<_ACEOF
16317 /* confdefs.h.  */
16318 _ACEOF
16319 cat confdefs.h >>conftest.$ac_ext
16320 cat >>conftest.$ac_ext <<_ACEOF
16321 /* end confdefs.h.  */
16322
16323 int
16324 main ()
16325 {
16326
16327   ;
16328   return 0;
16329 }
16330 _ACEOF
16331 rm -f conftest.$ac_objext conftest$ac_exeext
16332 if { (ac_try="$ac_link"
16333 case "(($ac_try" in
16334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335   *) ac_try_echo=$ac_try;;
16336 esac
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338   (eval "$ac_link") 2>conftest.er1
16339   ac_status=$?
16340   grep -v '^ *+' conftest.er1 >conftest.err
16341   rm -f conftest.er1
16342   cat conftest.err >&5
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); } && {
16345          test -z "$ac_c_werror_flag" ||
16346          test ! -s conftest.err
16347        } && test -s conftest$ac_exeext &&
16348        $as_test_x conftest$ac_exeext; then
16349   ac_cv_cflags__fshort_wchar=yes
16350 else
16351   echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16353
16354         ac_cv_cflags__fshort_wchar=no
16355 fi
16356
16357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16358       conftest$ac_exeext conftest.$ac_ext
16359 CFLAGS=$ac_wine_try_cflags_saved
16360 fi
16361 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
16362 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
16363 if test $ac_cv_cflags__fshort_wchar = yes; then
16364
16365 cat >>confdefs.h <<\_ACEOF
16366 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
16367 _ACEOF
16368
16369 fi
16370
16371   { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
16372 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
16373 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376   ac_wine_try_cflags_saved=$CFLAGS
16377 CFLAGS="$CFLAGS -fno-strict-aliasing"
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h.  */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h.  */
16384
16385 int
16386 main ()
16387 {
16388
16389   ;
16390   return 0;
16391 }
16392 _ACEOF
16393 rm -f conftest.$ac_objext conftest$ac_exeext
16394 if { (ac_try="$ac_link"
16395 case "(($ac_try" in
16396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397   *) ac_try_echo=$ac_try;;
16398 esac
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400   (eval "$ac_link") 2>conftest.er1
16401   ac_status=$?
16402   grep -v '^ *+' conftest.er1 >conftest.err
16403   rm -f conftest.er1
16404   cat conftest.err >&5
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); } && {
16407          test -z "$ac_c_werror_flag" ||
16408          test ! -s conftest.err
16409        } && test -s conftest$ac_exeext &&
16410        $as_test_x conftest$ac_exeext; then
16411   ac_cv_cflags__fno_strict_aliasing=yes
16412 else
16413   echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16415
16416         ac_cv_cflags__fno_strict_aliasing=no
16417 fi
16418
16419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16420       conftest$ac_exeext conftest.$ac_ext
16421 CFLAGS=$ac_wine_try_cflags_saved
16422 fi
16423 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
16424 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
16425 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
16426   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
16427 fi
16428
16429   { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
16430 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
16431 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   ac_wine_try_cflags_saved=$CFLAGS
16435 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
16436 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h.  */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h.  */
16442
16443 int
16444 main ()
16445 {
16446
16447   ;
16448   return 0;
16449 }
16450 _ACEOF
16451 rm -f conftest.$ac_objext conftest$ac_exeext
16452 if { (ac_try="$ac_link"
16453 case "(($ac_try" in
16454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455   *) ac_try_echo=$ac_try;;
16456 esac
16457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16458   (eval "$ac_link") 2>conftest.er1
16459   ac_status=$?
16460   grep -v '^ *+' conftest.er1 >conftest.err
16461   rm -f conftest.er1
16462   cat conftest.err >&5
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); } && {
16465          test -z "$ac_c_werror_flag" ||
16466          test ! -s conftest.err
16467        } && test -s conftest$ac_exeext &&
16468        $as_test_x conftest$ac_exeext; then
16469   ac_cv_cflags__Wdeclaration_after_statement=yes
16470 else
16471   echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16473
16474         ac_cv_cflags__Wdeclaration_after_statement=no
16475 fi
16476
16477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16478       conftest$ac_exeext conftest.$ac_ext
16479 CFLAGS=$ac_wine_try_cflags_saved
16480 fi
16481 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
16482 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
16483 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
16484   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
16485 fi
16486
16487   { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
16488 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
16489 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
16490   echo $ECHO_N "(cached) $ECHO_C" >&6
16491 else
16492   ac_wine_try_cflags_saved=$CFLAGS
16493 CFLAGS="$CFLAGS -Wwrite-strings"
16494 cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h.  */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h.  */
16500
16501 int
16502 main ()
16503 {
16504
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (ac_try="$ac_link"
16511 case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_link") 2>conftest.er1
16517   ac_status=$?
16518   grep -v '^ *+' conftest.er1 >conftest.err
16519   rm -f conftest.er1
16520   cat conftest.err >&5
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); } && {
16523          test -z "$ac_c_werror_flag" ||
16524          test ! -s conftest.err
16525        } && test -s conftest$ac_exeext &&
16526        $as_test_x conftest$ac_exeext; then
16527   ac_cv_cflags__Wwrite_strings=yes
16528 else
16529   echo "$as_me: failed program was:" >&5
16530 sed 's/^/| /' conftest.$ac_ext >&5
16531
16532         ac_cv_cflags__Wwrite_strings=no
16533 fi
16534
16535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16536       conftest$ac_exeext conftest.$ac_ext
16537 CFLAGS=$ac_wine_try_cflags_saved
16538 fi
16539 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
16540 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
16541 if test $ac_cv_cflags__Wwrite_strings = yes; then
16542   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
16543 fi
16544
16545   { echo "$as_me:$LINENO: checking whether the compiler supports -Wtype-limits" >&5
16546 echo $ECHO_N "checking whether the compiler supports -Wtype-limits... $ECHO_C" >&6; }
16547 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550   ac_wine_try_cflags_saved=$CFLAGS
16551 CFLAGS="$CFLAGS -Wtype-limits"
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h.  */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h.  */
16558
16559 int
16560 main ()
16561 {
16562
16563   ;
16564   return 0;
16565 }
16566 _ACEOF
16567 rm -f conftest.$ac_objext conftest$ac_exeext
16568 if { (ac_try="$ac_link"
16569 case "(($ac_try" in
16570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571   *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574   (eval "$ac_link") 2>conftest.er1
16575   ac_status=$?
16576   grep -v '^ *+' conftest.er1 >conftest.err
16577   rm -f conftest.er1
16578   cat conftest.err >&5
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); } && {
16581          test -z "$ac_c_werror_flag" ||
16582          test ! -s conftest.err
16583        } && test -s conftest$ac_exeext &&
16584        $as_test_x conftest$ac_exeext; then
16585   ac_cv_cflags__Wtype_limits=yes
16586 else
16587   echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16589
16590         ac_cv_cflags__Wtype_limits=no
16591 fi
16592
16593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16594       conftest$ac_exeext conftest.$ac_ext
16595 CFLAGS=$ac_wine_try_cflags_saved
16596 fi
16597 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wtype_limits" >&5
16598 echo "${ECHO_T}$ac_cv_cflags__Wtype_limits" >&6; }
16599 if test $ac_cv_cflags__Wtype_limits = yes; then
16600   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
16601 fi
16602
16603
16604     saved_CFLAGS="$CFLAGS"
16605   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
16606   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
16607 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
16608 if test "${ac_cv_c_string_h_warnings+set}" = set; then
16609   echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611   cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h.  */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h.  */
16617 #include <string.h>
16618 int
16619 main ()
16620 {
16621
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (ac_try="$ac_compile"
16628 case "(($ac_try" in
16629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630   *) ac_try_echo=$ac_try;;
16631 esac
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633   (eval "$ac_compile") 2>conftest.er1
16634   ac_status=$?
16635   grep -v '^ *+' conftest.er1 >conftest.err
16636   rm -f conftest.er1
16637   cat conftest.err >&5
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); } && {
16640          test -z "$ac_c_werror_flag" ||
16641          test ! -s conftest.err
16642        } && test -s conftest.$ac_objext; then
16643   ac_cv_c_string_h_warnings=no
16644 else
16645   echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16647
16648         ac_cv_c_string_h_warnings=yes
16649 fi
16650
16651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652 fi
16653 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
16654 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
16655   CFLAGS="$saved_CFLAGS"
16656   if test "$ac_cv_c_string_h_warnings" = "no"
16657   then
16658     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
16659   fi
16660
16661   BUILTINFLAG=""
16662
16663   saved_CFLAGS="$CFLAGS"
16664   CFLAGS="$CFLAGS -Werror"
16665   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
16666 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
16667 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
16668   echo $ECHO_N "(cached) $ECHO_C" >&6
16669 else
16670   cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h.  */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h.  */
16676
16677 int
16678 main ()
16679 {
16680 int iswlower(unsigned short);
16681   ;
16682   return 0;
16683 }
16684 _ACEOF
16685 rm -f conftest.$ac_objext
16686 if { (ac_try="$ac_compile"
16687 case "(($ac_try" in
16688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689   *) ac_try_echo=$ac_try;;
16690 esac
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692   (eval "$ac_compile") 2>conftest.er1
16693   ac_status=$?
16694   grep -v '^ *+' conftest.er1 >conftest.err
16695   rm -f conftest.er1
16696   cat conftest.err >&5
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); } && {
16699          test -z "$ac_c_werror_flag" ||
16700          test ! -s conftest.err
16701        } && test -s conftest.$ac_objext; then
16702   ac_cv_c_builtin_wchar_ctype=no
16703 else
16704   echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16706
16707         ac_cv_c_builtin_wchar_ctype=yes
16708 fi
16709
16710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16711 fi
16712 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
16713 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
16714   CFLAGS="$saved_CFLAGS"
16715   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
16716   then
16717     BUILTINFLAG="-fno-builtin"
16718   fi
16719 fi
16720
16721
16722 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
16723 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
16724 if test "${ac_cv_asm_func_def+set}" = set; then
16725   echo $ECHO_N "(cached) $ECHO_C" >&6
16726 else
16727   cat >conftest.$ac_ext <<_ACEOF
16728 /* confdefs.h.  */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h.  */
16733
16734 int
16735 main ()
16736 {
16737 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
16738   ;
16739   return 0;
16740 }
16741 _ACEOF
16742 rm -f conftest.$ac_objext conftest$ac_exeext
16743 if { (ac_try="$ac_link"
16744 case "(($ac_try" in
16745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746   *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749   (eval "$ac_link") 2>conftest.er1
16750   ac_status=$?
16751   grep -v '^ *+' conftest.er1 >conftest.err
16752   rm -f conftest.er1
16753   cat conftest.err >&5
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } && {
16756          test -z "$ac_c_werror_flag" ||
16757          test ! -s conftest.err
16758        } && test -s conftest$ac_exeext &&
16759        $as_test_x conftest$ac_exeext; then
16760   ac_cv_asm_func_def=".def"
16761 else
16762   echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16764
16765         cat >conftest.$ac_ext <<_ACEOF
16766 /* confdefs.h.  */
16767 _ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h.  */
16771
16772 int
16773 main ()
16774 {
16775 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
16776   ;
16777   return 0;
16778 }
16779 _ACEOF
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (ac_try="$ac_link"
16782 case "(($ac_try" in
16783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784   *) ac_try_echo=$ac_try;;
16785 esac
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787   (eval "$ac_link") 2>conftest.er1
16788   ac_status=$?
16789   grep -v '^ *+' conftest.er1 >conftest.err
16790   rm -f conftest.er1
16791   cat conftest.err >&5
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); } && {
16794          test -z "$ac_c_werror_flag" ||
16795          test ! -s conftest.err
16796        } && test -s conftest$ac_exeext &&
16797        $as_test_x conftest$ac_exeext; then
16798   ac_cv_asm_func_def=".type @function"
16799 else
16800   echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803         cat >conftest.$ac_ext <<_ACEOF
16804 /* confdefs.h.  */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h.  */
16809
16810 int
16811 main ()
16812 {
16813 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
16814   ;
16815   return 0;
16816 }
16817 _ACEOF
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822   *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825   (eval "$ac_link") 2>conftest.er1
16826   ac_status=$?
16827   grep -v '^ *+' conftest.er1 >conftest.err
16828   rm -f conftest.er1
16829   cat conftest.err >&5
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); } && {
16832          test -z "$ac_c_werror_flag" ||
16833          test ! -s conftest.err
16834        } && test -s conftest$ac_exeext &&
16835        $as_test_x conftest$ac_exeext; then
16836   ac_cv_asm_func_def=".type 2"
16837 else
16838   echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16840
16841         ac_cv_asm_func_def="unknown"
16842 fi
16843
16844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16845       conftest$ac_exeext conftest.$ac_ext
16846 fi
16847
16848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16849       conftest$ac_exeext conftest.$ac_ext
16850 fi
16851
16852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16853       conftest$ac_exeext conftest.$ac_ext
16854 fi
16855 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
16856 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
16857
16858
16859
16860 case "$ac_cv_asm_func_def" in
16861   ".def")
16862      cat >>confdefs.h <<\_ACEOF
16863 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
16864 _ACEOF
16865  ;;
16866   ".type @function")
16867      cat >>confdefs.h <<\_ACEOF
16868 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
16869 _ACEOF
16870  ;;
16871   ".type 2")
16872      cat >>confdefs.h <<\_ACEOF
16873 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
16874 _ACEOF
16875  ;;
16876   *)
16877      cat >>confdefs.h <<\_ACEOF
16878 #define __ASM_FUNC(name) ""
16879 _ACEOF
16880  ;;
16881 esac
16882
16883
16884 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
16885 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
16886 if test "${ac_cv_c_extern_prefix+set}" = set; then
16887   echo $ECHO_N "(cached) $ECHO_C" >&6
16888 else
16889   cat >conftest.$ac_ext <<_ACEOF
16890 /* confdefs.h.  */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h.  */
16895 extern int ac_test;
16896 int
16897 main ()
16898 {
16899 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
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          test -z "$ac_c_werror_flag" ||
16919          test ! -s conftest.err
16920        } && test -s conftest$ac_exeext &&
16921        $as_test_x conftest$ac_exeext; then
16922   ac_cv_c_extern_prefix="yes"
16923 else
16924   echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927         ac_cv_c_extern_prefix="no"
16928 fi
16929
16930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16931       conftest$ac_exeext conftest.$ac_ext
16932 fi
16933 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
16934 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
16935
16936
16937
16938 if test "$ac_cv_c_extern_prefix" = "yes"
16939 then
16940   cat >>confdefs.h <<\_ACEOF
16941 #define __ASM_NAME(name) "_" name
16942 _ACEOF
16943
16944 else
16945   cat >>confdefs.h <<\_ACEOF
16946 #define __ASM_NAME(name) name
16947 _ACEOF
16948
16949 fi
16950
16951
16952 LDPATH=""
16953
16954 case $build_os in
16955   cygwin*|mingw32*)
16956     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
16957     ;;
16958   darwin*|macosx*)
16959     ;;
16960   linux*|solaris*)      if test -z "$LDRPATH_LOCAL"
16961     then
16962       LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
16963     fi
16964     ;;
16965   *)
16966     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
16967     ;;
16968 esac
16969
16970 case $host_os in
16971   mingw32*)
16972     CRTLIBS="-lmsvcrt"
16973
16974     SOCKETLIBS="-lws2_32"
16975
16976     ;;
16977 esac
16978
16979 MAIN_BINARY="wine-pthread"
16980   case $host_cpu in
16981   *i[3456789]86*)
16982     case $host_os in
16983       linux* | k*bsd*-gnu)
16984         MAIN_BINARY="wine-glibc"
16985
16986         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
16987  ;;
16988       freebsd*)
16989         MAIN_BINARY="wine-freebsd"
16990
16991         EXTRA_BINARIES="wine-pthread"
16992  ;;
16993     esac
16994     ;;
16995 esac
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067 for ac_func in \
17068         _pclose \
17069         _popen \
17070         _snprintf \
17071         _spawnvp \
17072         _strdup \
17073         _stricmp \
17074         _strnicmp \
17075         _strtoi64 \
17076         _strtoui64 \
17077         _vsnprintf \
17078         asctime_r \
17079         chsize \
17080         clone \
17081         dlopen \
17082         epoll_create \
17083         ffs \
17084         finite \
17085         fork \
17086         fpclass \
17087         fstatfs \
17088         fstatvfs \
17089         ftruncate \
17090         futimes \
17091         futimesat \
17092         getdirentries \
17093         getopt_long \
17094         getpagesize \
17095         getpwuid \
17096         gettid \
17097         gettimeofday \
17098         getuid \
17099         inet_pton \
17100         kqueue \
17101         lstat \
17102         memmove \
17103         mmap \
17104         pclose \
17105         poll \
17106         popen \
17107         prctl \
17108         pread \
17109         pwrite \
17110         readlink \
17111         rfork \
17112         sched_yield \
17113         select \
17114         setproctitle \
17115         setrlimit \
17116         settimeofday \
17117         sigaltstack \
17118         sigprocmask \
17119         snprintf \
17120         spawnvp \
17121         statfs \
17122         statvfs \
17123         strcasecmp \
17124         strdup \
17125         strerror \
17126         strncasecmp \
17127         strtold \
17128         strtoll \
17129         strtoull \
17130         tcgetattr \
17131         thr_kill2 \
17132         timegm \
17133         usleep \
17134         vsnprintf \
17135         wait4 \
17136         waitpid \
17137
17138 do
17139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17143   echo $ECHO_N "(cached) $ECHO_C" >&6
17144 else
17145   cat >conftest.$ac_ext <<_ACEOF
17146 /* confdefs.h.  */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h.  */
17151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17153 #define $ac_func innocuous_$ac_func
17154
17155 /* System header to define __stub macros and hopefully few prototypes,
17156     which can conflict with char $ac_func (); below.
17157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17158     <limits.h> exists even on freestanding compilers.  */
17159
17160 #ifdef __STDC__
17161 # include <limits.h>
17162 #else
17163 # include <assert.h>
17164 #endif
17165
17166 #undef $ac_func
17167
17168 /* Override any GCC internal prototype to avoid an error.
17169    Use char because int might match the return type of a GCC
17170    builtin and then its argument prototype would still apply.  */
17171 #ifdef __cplusplus
17172 extern "C"
17173 #endif
17174 char $ac_func ();
17175 /* The GNU C library defines this for functions which it implements
17176     to always fail with ENOSYS.  Some functions are actually named
17177     something starting with __ and the normal name is an alias.  */
17178 #if defined __stub_$ac_func || defined __stub___$ac_func
17179 choke me
17180 #endif
17181
17182 int
17183 main ()
17184 {
17185 return $ac_func ();
17186   ;
17187   return 0;
17188 }
17189 _ACEOF
17190 rm -f conftest.$ac_objext conftest$ac_exeext
17191 if { (ac_try="$ac_link"
17192 case "(($ac_try" in
17193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17194   *) ac_try_echo=$ac_try;;
17195 esac
17196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17197   (eval "$ac_link") 2>conftest.er1
17198   ac_status=$?
17199   grep -v '^ *+' conftest.er1 >conftest.err
17200   rm -f conftest.er1
17201   cat conftest.err >&5
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); } && {
17204          test -z "$ac_c_werror_flag" ||
17205          test ! -s conftest.err
17206        } && test -s conftest$ac_exeext &&
17207        $as_test_x conftest$ac_exeext; then
17208   eval "$as_ac_var=yes"
17209 else
17210   echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17212
17213         eval "$as_ac_var=no"
17214 fi
17215
17216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17217       conftest$ac_exeext conftest.$ac_ext
17218 fi
17219 ac_res=`eval echo '${'$as_ac_var'}'`
17220                { echo "$as_me:$LINENO: result: $ac_res" >&5
17221 echo "${ECHO_T}$ac_res" >&6; }
17222 if test `eval echo '${'$as_ac_var'}'` = yes; then
17223   cat >>confdefs.h <<_ACEOF
17224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17225 _ACEOF
17226
17227 fi
17228 done
17229
17230
17231 if test "$ac_cv_func_dlopen" = no
17232 then
17233     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17234 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17235 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17236   echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238   ac_check_lib_save_LIBS=$LIBS
17239 LIBS="-ldl  $LIBS"
17240 cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h.  */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h.  */
17246
17247 /* Override any GCC internal prototype to avoid an error.
17248    Use char because int might match the return type of a GCC
17249    builtin and then its argument prototype would still apply.  */
17250 #ifdef __cplusplus
17251 extern "C"
17252 #endif
17253 char dlopen ();
17254 int
17255 main ()
17256 {
17257 return dlopen ();
17258   ;
17259   return 0;
17260 }
17261 _ACEOF
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (ac_try="$ac_link"
17264 case "(($ac_try" in
17265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266   *) ac_try_echo=$ac_try;;
17267 esac
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269   (eval "$ac_link") 2>conftest.er1
17270   ac_status=$?
17271   grep -v '^ *+' conftest.er1 >conftest.err
17272   rm -f conftest.er1
17273   cat conftest.err >&5
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); } && {
17276          test -z "$ac_c_werror_flag" ||
17277          test ! -s conftest.err
17278        } && test -s conftest$ac_exeext &&
17279        $as_test_x conftest$ac_exeext; then
17280   ac_cv_lib_dl_dlopen=yes
17281 else
17282   echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17284
17285         ac_cv_lib_dl_dlopen=no
17286 fi
17287
17288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17289       conftest$ac_exeext conftest.$ac_ext
17290 LIBS=$ac_check_lib_save_LIBS
17291 fi
17292 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17293 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17294 if test $ac_cv_lib_dl_dlopen = yes; then
17295   cat >>confdefs.h <<\_ACEOF
17296 #define HAVE_DLOPEN 1
17297 _ACEOF
17298  LIBDL="-ldl"
17299
17300 fi
17301
17302 fi
17303 ac_wine_check_funcs_save_LIBS="$LIBS"
17304 LIBS="$LIBS $LIBDL"
17305
17306 for ac_func in dladdr
17307 do
17308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17312   echo $ECHO_N "(cached) $ECHO_C" >&6
17313 else
17314   cat >conftest.$ac_ext <<_ACEOF
17315 /* confdefs.h.  */
17316 _ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h.  */
17320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17322 #define $ac_func innocuous_$ac_func
17323
17324 /* System header to define __stub macros and hopefully few prototypes,
17325     which can conflict with char $ac_func (); below.
17326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17327     <limits.h> exists even on freestanding compilers.  */
17328
17329 #ifdef __STDC__
17330 # include <limits.h>
17331 #else
17332 # include <assert.h>
17333 #endif
17334
17335 #undef $ac_func
17336
17337 /* Override any GCC internal prototype to avoid an error.
17338    Use char because int might match the return type of a GCC
17339    builtin and then its argument prototype would still apply.  */
17340 #ifdef __cplusplus
17341 extern "C"
17342 #endif
17343 char $ac_func ();
17344 /* The GNU C library defines this for functions which it implements
17345     to always fail with ENOSYS.  Some functions are actually named
17346     something starting with __ and the normal name is an alias.  */
17347 #if defined __stub_$ac_func || defined __stub___$ac_func
17348 choke me
17349 #endif
17350
17351 int
17352 main ()
17353 {
17354 return $ac_func ();
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_link") 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } && {
17373          test -z "$ac_c_werror_flag" ||
17374          test ! -s conftest.err
17375        } && test -s conftest$ac_exeext &&
17376        $as_test_x conftest$ac_exeext; then
17377   eval "$as_ac_var=yes"
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382         eval "$as_ac_var=no"
17383 fi
17384
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386       conftest$ac_exeext conftest.$ac_ext
17387 fi
17388 ac_res=`eval echo '${'$as_ac_var'}'`
17389                { echo "$as_me:$LINENO: result: $ac_res" >&5
17390 echo "${ECHO_T}$ac_res" >&6; }
17391 if test `eval echo '${'$as_ac_var'}'` = yes; then
17392   cat >>confdefs.h <<_ACEOF
17393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17394 _ACEOF
17395
17396 fi
17397 done
17398
17399 LIBS="$ac_wine_check_funcs_save_LIBS"
17400
17401 if test "$ac_cv_func_poll" = no
17402 then
17403     { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
17404 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
17405 if test "${ac_cv_lib_poll_poll+set}" = set; then
17406   echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408   ac_check_lib_save_LIBS=$LIBS
17409 LIBS="-lpoll  $LIBS"
17410 cat >conftest.$ac_ext <<_ACEOF
17411 /* confdefs.h.  */
17412 _ACEOF
17413 cat confdefs.h >>conftest.$ac_ext
17414 cat >>conftest.$ac_ext <<_ACEOF
17415 /* end confdefs.h.  */
17416
17417 /* Override any GCC internal prototype to avoid an error.
17418    Use char because int might match the return type of a GCC
17419    builtin and then its argument prototype would still apply.  */
17420 #ifdef __cplusplus
17421 extern "C"
17422 #endif
17423 char poll ();
17424 int
17425 main ()
17426 {
17427 return poll ();
17428   ;
17429   return 0;
17430 }
17431 _ACEOF
17432 rm -f conftest.$ac_objext conftest$ac_exeext
17433 if { (ac_try="$ac_link"
17434 case "(($ac_try" in
17435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436   *) ac_try_echo=$ac_try;;
17437 esac
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439   (eval "$ac_link") 2>conftest.er1
17440   ac_status=$?
17441   grep -v '^ *+' conftest.er1 >conftest.err
17442   rm -f conftest.er1
17443   cat conftest.err >&5
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); } && {
17446          test -z "$ac_c_werror_flag" ||
17447          test ! -s conftest.err
17448        } && test -s conftest$ac_exeext &&
17449        $as_test_x conftest$ac_exeext; then
17450   ac_cv_lib_poll_poll=yes
17451 else
17452   echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17454
17455         ac_cv_lib_poll_poll=no
17456 fi
17457
17458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17459       conftest$ac_exeext conftest.$ac_ext
17460 LIBS=$ac_check_lib_save_LIBS
17461 fi
17462 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
17463 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
17464 if test $ac_cv_lib_poll_poll = yes; then
17465   cat >>confdefs.h <<\_ACEOF
17466 #define HAVE_POLL 1
17467 _ACEOF
17468  LIBPOLL="-lpoll"
17469
17470 fi
17471
17472 fi
17473
17474 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
17475 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
17476 if test "${ac_cv_search_gethostbyname+set}" = set; then
17477   echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479   ac_func_search_save_LIBS=$LIBS
17480 cat >conftest.$ac_ext <<_ACEOF
17481 /* confdefs.h.  */
17482 _ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h.  */
17486
17487 /* Override any GCC internal prototype to avoid an error.
17488    Use char because int might match the return type of a GCC
17489    builtin and then its argument prototype would still apply.  */
17490 #ifdef __cplusplus
17491 extern "C"
17492 #endif
17493 char gethostbyname ();
17494 int
17495 main ()
17496 {
17497 return gethostbyname ();
17498   ;
17499   return 0;
17500 }
17501 _ACEOF
17502 for ac_lib in '' nsl; do
17503   if test -z "$ac_lib"; then
17504     ac_res="none required"
17505   else
17506     ac_res=-l$ac_lib
17507     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17508   fi
17509   rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (ac_try="$ac_link"
17511 case "(($ac_try" in
17512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513   *) ac_try_echo=$ac_try;;
17514 esac
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516   (eval "$ac_link") 2>conftest.er1
17517   ac_status=$?
17518   grep -v '^ *+' conftest.er1 >conftest.err
17519   rm -f conftest.er1
17520   cat conftest.err >&5
17521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522   (exit $ac_status); } && {
17523          test -z "$ac_c_werror_flag" ||
17524          test ! -s conftest.err
17525        } && test -s conftest$ac_exeext &&
17526        $as_test_x conftest$ac_exeext; then
17527   ac_cv_search_gethostbyname=$ac_res
17528 else
17529   echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17531
17532
17533 fi
17534
17535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17536       conftest$ac_exeext
17537   if test "${ac_cv_search_gethostbyname+set}" = set; then
17538   break
17539 fi
17540 done
17541 if test "${ac_cv_search_gethostbyname+set}" = set; then
17542   :
17543 else
17544   ac_cv_search_gethostbyname=no
17545 fi
17546 rm conftest.$ac_ext
17547 LIBS=$ac_func_search_save_LIBS
17548 fi
17549 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
17550 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
17551 ac_res=$ac_cv_search_gethostbyname
17552 if test "$ac_res" != no; then
17553   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17554
17555 fi
17556
17557
17558 { echo "$as_me:$LINENO: checking for library containing connect" >&5
17559 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
17560 if test "${ac_cv_search_connect+set}" = set; then
17561   echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563   ac_func_search_save_LIBS=$LIBS
17564 cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h.  */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h.  */
17570
17571 /* Override any GCC internal prototype to avoid an error.
17572    Use char because int might match the return type of a GCC
17573    builtin and then its argument prototype would still apply.  */
17574 #ifdef __cplusplus
17575 extern "C"
17576 #endif
17577 char connect ();
17578 int
17579 main ()
17580 {
17581 return connect ();
17582   ;
17583   return 0;
17584 }
17585 _ACEOF
17586 for ac_lib in '' socket; do
17587   if test -z "$ac_lib"; then
17588     ac_res="none required"
17589   else
17590     ac_res=-l$ac_lib
17591     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17592   fi
17593   rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (ac_try="$ac_link"
17595 case "(($ac_try" in
17596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597   *) ac_try_echo=$ac_try;;
17598 esac
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600   (eval "$ac_link") 2>conftest.er1
17601   ac_status=$?
17602   grep -v '^ *+' conftest.er1 >conftest.err
17603   rm -f conftest.er1
17604   cat conftest.err >&5
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } && {
17607          test -z "$ac_c_werror_flag" ||
17608          test ! -s conftest.err
17609        } && test -s conftest$ac_exeext &&
17610        $as_test_x conftest$ac_exeext; then
17611   ac_cv_search_connect=$ac_res
17612 else
17613   echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616
17617 fi
17618
17619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17620       conftest$ac_exeext
17621   if test "${ac_cv_search_connect+set}" = set; then
17622   break
17623 fi
17624 done
17625 if test "${ac_cv_search_connect+set}" = set; then
17626   :
17627 else
17628   ac_cv_search_connect=no
17629 fi
17630 rm conftest.$ac_ext
17631 LIBS=$ac_func_search_save_LIBS
17632 fi
17633 { echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
17634 echo "${ECHO_T}$ac_cv_search_connect" >&6; }
17635 ac_res=$ac_cv_search_connect
17636 if test "$ac_res" != no; then
17637   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17638
17639 fi
17640
17641
17642 { echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
17643 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
17644 if test "${ac_cv_search_inet_aton+set}" = set; then
17645   echo $ECHO_N "(cached) $ECHO_C" >&6
17646 else
17647   ac_func_search_save_LIBS=$LIBS
17648 cat >conftest.$ac_ext <<_ACEOF
17649 /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17654
17655 /* Override any GCC internal prototype to avoid an error.
17656    Use char because int might match the return type of a GCC
17657    builtin and then its argument prototype would still apply.  */
17658 #ifdef __cplusplus
17659 extern "C"
17660 #endif
17661 char inet_aton ();
17662 int
17663 main ()
17664 {
17665 return inet_aton ();
17666   ;
17667   return 0;
17668 }
17669 _ACEOF
17670 for ac_lib in '' resolv; do
17671   if test -z "$ac_lib"; then
17672     ac_res="none required"
17673   else
17674     ac_res=-l$ac_lib
17675     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17676   fi
17677   rm -f conftest.$ac_objext conftest$ac_exeext
17678 if { (ac_try="$ac_link"
17679 case "(($ac_try" in
17680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681   *) ac_try_echo=$ac_try;;
17682 esac
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684   (eval "$ac_link") 2>conftest.er1
17685   ac_status=$?
17686   grep -v '^ *+' conftest.er1 >conftest.err
17687   rm -f conftest.er1
17688   cat conftest.err >&5
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); } && {
17691          test -z "$ac_c_werror_flag" ||
17692          test ! -s conftest.err
17693        } && test -s conftest$ac_exeext &&
17694        $as_test_x conftest$ac_exeext; then
17695   ac_cv_search_inet_aton=$ac_res
17696 else
17697   echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17699
17700
17701 fi
17702
17703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17704       conftest$ac_exeext
17705   if test "${ac_cv_search_inet_aton+set}" = set; then
17706   break
17707 fi
17708 done
17709 if test "${ac_cv_search_inet_aton+set}" = set; then
17710   :
17711 else
17712   ac_cv_search_inet_aton=no
17713 fi
17714 rm conftest.$ac_ext
17715 LIBS=$ac_func_search_save_LIBS
17716 fi
17717 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
17718 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
17719 ac_res=$ac_cv_search_inet_aton
17720 if test "$ac_res" != no; then
17721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17722
17723 fi
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734 for ac_func in \
17735         getaddrinfo \
17736         getnameinfo \
17737         getnetbyname \
17738         getprotobyname \
17739         getprotobynumber \
17740         getservbyport \
17741         inet_network \
17742         sendmsg \
17743
17744 do
17745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17749   echo $ECHO_N "(cached) $ECHO_C" >&6
17750 else
17751   cat >conftest.$ac_ext <<_ACEOF
17752 /* confdefs.h.  */
17753 _ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h.  */
17757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17759 #define $ac_func innocuous_$ac_func
17760
17761 /* System header to define __stub macros and hopefully few prototypes,
17762     which can conflict with char $ac_func (); below.
17763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17764     <limits.h> exists even on freestanding compilers.  */
17765
17766 #ifdef __STDC__
17767 # include <limits.h>
17768 #else
17769 # include <assert.h>
17770 #endif
17771
17772 #undef $ac_func
17773
17774 /* Override any GCC internal prototype to avoid an error.
17775    Use char because int might match the return type of a GCC
17776    builtin and then its argument prototype would still apply.  */
17777 #ifdef __cplusplus
17778 extern "C"
17779 #endif
17780 char $ac_func ();
17781 /* The GNU C library defines this for functions which it implements
17782     to always fail with ENOSYS.  Some functions are actually named
17783     something starting with __ and the normal name is an alias.  */
17784 #if defined __stub_$ac_func || defined __stub___$ac_func
17785 choke me
17786 #endif
17787
17788 int
17789 main ()
17790 {
17791 return $ac_func ();
17792   ;
17793   return 0;
17794 }
17795 _ACEOF
17796 rm -f conftest.$ac_objext conftest$ac_exeext
17797 if { (ac_try="$ac_link"
17798 case "(($ac_try" in
17799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800   *) ac_try_echo=$ac_try;;
17801 esac
17802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803   (eval "$ac_link") 2>conftest.er1
17804   ac_status=$?
17805   grep -v '^ *+' conftest.er1 >conftest.err
17806   rm -f conftest.er1
17807   cat conftest.err >&5
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); } && {
17810          test -z "$ac_c_werror_flag" ||
17811          test ! -s conftest.err
17812        } && test -s conftest$ac_exeext &&
17813        $as_test_x conftest$ac_exeext; then
17814   eval "$as_ac_var=yes"
17815 else
17816   echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17818
17819         eval "$as_ac_var=no"
17820 fi
17821
17822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17823       conftest$ac_exeext conftest.$ac_ext
17824 fi
17825 ac_res=`eval echo '${'$as_ac_var'}'`
17826                { echo "$as_me:$LINENO: result: $ac_res" >&5
17827 echo "${ECHO_T}$ac_res" >&6; }
17828 if test `eval echo '${'$as_ac_var'}'` = yes; then
17829   cat >>confdefs.h <<_ACEOF
17830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17831 _ACEOF
17832
17833 fi
17834 done
17835
17836
17837
17838 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17839 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
17840 if test "${ac_cv_c_const+set}" = set; then
17841   echo $ECHO_N "(cached) $ECHO_C" >&6
17842 else
17843   cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h.  */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h.  */
17849
17850 int
17851 main ()
17852 {
17853 /* FIXME: Include the comments suggested by Paul. */
17854 #ifndef __cplusplus
17855   /* Ultrix mips cc rejects this.  */
17856   typedef int charset[2];
17857   const charset cs;
17858   /* SunOS 4.1.1 cc rejects this.  */
17859   char const *const *pcpcc;
17860   char **ppc;
17861   /* NEC SVR4.0.2 mips cc rejects this.  */
17862   struct point {int x, y;};
17863   static struct point const zero = {0,0};
17864   /* AIX XL C 1.02.0.0 rejects this.
17865      It does not let you subtract one const X* pointer from another in
17866      an arm of an if-expression whose if-part is not a constant
17867      expression */
17868   const char *g = "string";
17869   pcpcc = &g + (g ? g-g : 0);
17870   /* HPUX 7.0 cc rejects these. */
17871   ++pcpcc;
17872   ppc = (char**) pcpcc;
17873   pcpcc = (char const *const *) ppc;
17874   { /* SCO 3.2v4 cc rejects this.  */
17875     char *t;
17876     char const *s = 0 ? (char *) 0 : (char const *) 0;
17877
17878     *t++ = 0;
17879     if (s) return 0;
17880   }
17881   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17882     int x[] = {25, 17};
17883     const int *foo = &x[0];
17884     ++foo;
17885   }
17886   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17887     typedef const int *iptr;
17888     iptr p = 0;
17889     ++p;
17890   }
17891   { /* AIX XL C 1.02.0.0 rejects this saying
17892        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17893     struct s { int j; const int *ap[3]; };
17894     struct s *b; b->j = 5;
17895   }
17896   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17897     const int foo = 10;
17898     if (!foo) return 0;
17899   }
17900   return !cs[0] && !zero.x;
17901 #endif
17902
17903   ;
17904   return 0;
17905 }
17906 _ACEOF
17907 rm -f conftest.$ac_objext
17908 if { (ac_try="$ac_compile"
17909 case "(($ac_try" in
17910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911   *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914   (eval "$ac_compile") 2>conftest.er1
17915   ac_status=$?
17916   grep -v '^ *+' conftest.er1 >conftest.err
17917   rm -f conftest.er1
17918   cat conftest.err >&5
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); } && {
17921          test -z "$ac_c_werror_flag" ||
17922          test ! -s conftest.err
17923        } && test -s conftest.$ac_objext; then
17924   ac_cv_c_const=yes
17925 else
17926   echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929         ac_cv_c_const=no
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933 fi
17934 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17935 echo "${ECHO_T}$ac_cv_c_const" >&6; }
17936 if test $ac_cv_c_const = no; then
17937
17938 cat >>confdefs.h <<\_ACEOF
17939 #define const
17940 _ACEOF
17941
17942 fi
17943
17944 { echo "$as_me:$LINENO: checking for inline" >&5
17945 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
17946 if test "${ac_cv_c_inline+set}" = set; then
17947   echo $ECHO_N "(cached) $ECHO_C" >&6
17948 else
17949   ac_cv_c_inline=no
17950 for ac_kw in inline __inline__ __inline; do
17951   cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957 #ifndef __cplusplus
17958 typedef int foo_t;
17959 static $ac_kw foo_t static_foo () {return 0; }
17960 $ac_kw foo_t foo () {return 0; }
17961 #endif
17962
17963 _ACEOF
17964 rm -f conftest.$ac_objext
17965 if { (ac_try="$ac_compile"
17966 case "(($ac_try" in
17967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968   *) ac_try_echo=$ac_try;;
17969 esac
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971   (eval "$ac_compile") 2>conftest.er1
17972   ac_status=$?
17973   grep -v '^ *+' conftest.er1 >conftest.err
17974   rm -f conftest.er1
17975   cat conftest.err >&5
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); } && {
17978          test -z "$ac_c_werror_flag" ||
17979          test ! -s conftest.err
17980        } && test -s conftest.$ac_objext; then
17981   ac_cv_c_inline=$ac_kw
17982 else
17983   echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17985
17986
17987 fi
17988
17989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17990   test "$ac_cv_c_inline" != no && break
17991 done
17992
17993 fi
17994 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17995 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
17996
17997
17998 case $ac_cv_c_inline in
17999   inline | yes) ;;
18000   *)
18001     case $ac_cv_c_inline in
18002       no) ac_val=;;
18003       *) ac_val=$ac_cv_c_inline;;
18004     esac
18005     cat >>confdefs.h <<_ACEOF
18006 #ifndef __cplusplus
18007 #define inline $ac_val
18008 #endif
18009 _ACEOF
18010     ;;
18011 esac
18012
18013 { echo "$as_me:$LINENO: checking for mode_t" >&5
18014 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
18015 if test "${ac_cv_type_mode_t+set}" = set; then
18016   echo $ECHO_N "(cached) $ECHO_C" >&6
18017 else
18018   cat >conftest.$ac_ext <<_ACEOF
18019 /* confdefs.h.  */
18020 _ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h.  */
18024 $ac_includes_default
18025 typedef mode_t ac__type_new_;
18026 int
18027 main ()
18028 {
18029 if ((ac__type_new_ *) 0)
18030   return 0;
18031 if (sizeof (ac__type_new_))
18032   return 0;
18033   ;
18034   return 0;
18035 }
18036 _ACEOF
18037 rm -f conftest.$ac_objext
18038 if { (ac_try="$ac_compile"
18039 case "(($ac_try" in
18040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041   *) ac_try_echo=$ac_try;;
18042 esac
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044   (eval "$ac_compile") 2>conftest.er1
18045   ac_status=$?
18046   grep -v '^ *+' conftest.er1 >conftest.err
18047   rm -f conftest.er1
18048   cat conftest.err >&5
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); } && {
18051          test -z "$ac_c_werror_flag" ||
18052          test ! -s conftest.err
18053        } && test -s conftest.$ac_objext; then
18054   ac_cv_type_mode_t=yes
18055 else
18056   echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059         ac_cv_type_mode_t=no
18060 fi
18061
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063 fi
18064 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
18065 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
18066 if test $ac_cv_type_mode_t = yes; then
18067
18068 cat >>confdefs.h <<_ACEOF
18069 #define HAVE_MODE_T 1
18070 _ACEOF
18071
18072
18073 fi
18074 { echo "$as_me:$LINENO: checking for off_t" >&5
18075 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18076 if test "${ac_cv_type_off_t+set}" = set; then
18077   echo $ECHO_N "(cached) $ECHO_C" >&6
18078 else
18079   cat >conftest.$ac_ext <<_ACEOF
18080 /* confdefs.h.  */
18081 _ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h.  */
18085 $ac_includes_default
18086 typedef off_t ac__type_new_;
18087 int
18088 main ()
18089 {
18090 if ((ac__type_new_ *) 0)
18091   return 0;
18092 if (sizeof (ac__type_new_))
18093   return 0;
18094   ;
18095   return 0;
18096 }
18097 _ACEOF
18098 rm -f conftest.$ac_objext
18099 if { (ac_try="$ac_compile"
18100 case "(($ac_try" in
18101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102   *) ac_try_echo=$ac_try;;
18103 esac
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105   (eval "$ac_compile") 2>conftest.er1
18106   ac_status=$?
18107   grep -v '^ *+' conftest.er1 >conftest.err
18108   rm -f conftest.er1
18109   cat conftest.err >&5
18110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111   (exit $ac_status); } && {
18112          test -z "$ac_c_werror_flag" ||
18113          test ! -s conftest.err
18114        } && test -s conftest.$ac_objext; then
18115   ac_cv_type_off_t=yes
18116 else
18117   echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18119
18120         ac_cv_type_off_t=no
18121 fi
18122
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18124 fi
18125 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18126 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18127 if test $ac_cv_type_off_t = yes; then
18128
18129 cat >>confdefs.h <<_ACEOF
18130 #define HAVE_OFF_T 1
18131 _ACEOF
18132
18133
18134 fi
18135 { echo "$as_me:$LINENO: checking for pid_t" >&5
18136 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
18137 if test "${ac_cv_type_pid_t+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140   cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h.  */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h.  */
18146 $ac_includes_default
18147 typedef pid_t ac__type_new_;
18148 int
18149 main ()
18150 {
18151 if ((ac__type_new_ *) 0)
18152   return 0;
18153 if (sizeof (ac__type_new_))
18154   return 0;
18155   ;
18156   return 0;
18157 }
18158 _ACEOF
18159 rm -f conftest.$ac_objext
18160 if { (ac_try="$ac_compile"
18161 case "(($ac_try" in
18162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163   *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166   (eval "$ac_compile") 2>conftest.er1
18167   ac_status=$?
18168   grep -v '^ *+' conftest.er1 >conftest.err
18169   rm -f conftest.er1
18170   cat conftest.err >&5
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); } && {
18173          test -z "$ac_c_werror_flag" ||
18174          test ! -s conftest.err
18175        } && test -s conftest.$ac_objext; then
18176   ac_cv_type_pid_t=yes
18177 else
18178   echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18180
18181         ac_cv_type_pid_t=no
18182 fi
18183
18184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185 fi
18186 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18187 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
18188 if test $ac_cv_type_pid_t = yes; then
18189
18190 cat >>confdefs.h <<_ACEOF
18191 #define HAVE_PID_T 1
18192 _ACEOF
18193
18194
18195 fi
18196 { echo "$as_me:$LINENO: checking for size_t" >&5
18197 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18198 if test "${ac_cv_type_size_t+set}" = set; then
18199   echo $ECHO_N "(cached) $ECHO_C" >&6
18200 else
18201   cat >conftest.$ac_ext <<_ACEOF
18202 /* confdefs.h.  */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h.  */
18207 $ac_includes_default
18208 typedef size_t ac__type_new_;
18209 int
18210 main ()
18211 {
18212 if ((ac__type_new_ *) 0)
18213   return 0;
18214 if (sizeof (ac__type_new_))
18215   return 0;
18216   ;
18217   return 0;
18218 }
18219 _ACEOF
18220 rm -f conftest.$ac_objext
18221 if { (ac_try="$ac_compile"
18222 case "(($ac_try" in
18223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224   *) ac_try_echo=$ac_try;;
18225 esac
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227   (eval "$ac_compile") 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } && {
18234          test -z "$ac_c_werror_flag" ||
18235          test ! -s conftest.err
18236        } && test -s conftest.$ac_objext; then
18237   ac_cv_type_size_t=yes
18238 else
18239   echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18241
18242         ac_cv_type_size_t=no
18243 fi
18244
18245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18246 fi
18247 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18248 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18249 if test $ac_cv_type_size_t = yes; then
18250
18251 cat >>confdefs.h <<_ACEOF
18252 #define HAVE_SIZE_T 1
18253 _ACEOF
18254
18255
18256 fi
18257 { echo "$as_me:$LINENO: checking for ssize_t" >&5
18258 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
18259 if test "${ac_cv_type_ssize_t+set}" = set; then
18260   echo $ECHO_N "(cached) $ECHO_C" >&6
18261 else
18262   cat >conftest.$ac_ext <<_ACEOF
18263 /* confdefs.h.  */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h.  */
18268 $ac_includes_default
18269 typedef ssize_t ac__type_new_;
18270 int
18271 main ()
18272 {
18273 if ((ac__type_new_ *) 0)
18274   return 0;
18275 if (sizeof (ac__type_new_))
18276   return 0;
18277   ;
18278   return 0;
18279 }
18280 _ACEOF
18281 rm -f conftest.$ac_objext
18282 if { (ac_try="$ac_compile"
18283 case "(($ac_try" in
18284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285   *) ac_try_echo=$ac_try;;
18286 esac
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288   (eval "$ac_compile") 2>conftest.er1
18289   ac_status=$?
18290   grep -v '^ *+' conftest.er1 >conftest.err
18291   rm -f conftest.er1
18292   cat conftest.err >&5
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); } && {
18295          test -z "$ac_c_werror_flag" ||
18296          test ! -s conftest.err
18297        } && test -s conftest.$ac_objext; then
18298   ac_cv_type_ssize_t=yes
18299 else
18300   echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18302
18303         ac_cv_type_ssize_t=no
18304 fi
18305
18306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18307 fi
18308 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
18309 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
18310 if test $ac_cv_type_ssize_t = yes; then
18311
18312 cat >>confdefs.h <<_ACEOF
18313 #define HAVE_SSIZE_T 1
18314 _ACEOF
18315
18316
18317 fi
18318 { echo "$as_me:$LINENO: checking for long long" >&5
18319 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18320 if test "${ac_cv_type_long_long+set}" = set; then
18321   echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323   cat >conftest.$ac_ext <<_ACEOF
18324 /* confdefs.h.  */
18325 _ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h.  */
18329 $ac_includes_default
18330 typedef long long ac__type_new_;
18331 int
18332 main ()
18333 {
18334 if ((ac__type_new_ *) 0)
18335   return 0;
18336 if (sizeof (ac__type_new_))
18337   return 0;
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext
18343 if { (ac_try="$ac_compile"
18344 case "(($ac_try" in
18345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346   *) ac_try_echo=$ac_try;;
18347 esac
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349   (eval "$ac_compile") 2>conftest.er1
18350   ac_status=$?
18351   grep -v '^ *+' conftest.er1 >conftest.err
18352   rm -f conftest.er1
18353   cat conftest.err >&5
18354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355   (exit $ac_status); } && {
18356          test -z "$ac_c_werror_flag" ||
18357          test ! -s conftest.err
18358        } && test -s conftest.$ac_objext; then
18359   ac_cv_type_long_long=yes
18360 else
18361   echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18363
18364         ac_cv_type_long_long=no
18365 fi
18366
18367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18368 fi
18369 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18370 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18371 if test $ac_cv_type_long_long = yes; then
18372
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_LONG_LONG 1
18375 _ACEOF
18376
18377
18378 fi
18379 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
18380 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
18381 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
18382   echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384   cat >conftest.$ac_ext <<_ACEOF
18385 /* confdefs.h.  */
18386 _ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h.  */
18390 $ac_includes_default
18391 typedef fsblkcnt_t ac__type_new_;
18392 int
18393 main ()
18394 {
18395 if ((ac__type_new_ *) 0)
18396   return 0;
18397 if (sizeof (ac__type_new_))
18398   return 0;
18399   ;
18400   return 0;
18401 }
18402 _ACEOF
18403 rm -f conftest.$ac_objext
18404 if { (ac_try="$ac_compile"
18405 case "(($ac_try" in
18406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407   *) ac_try_echo=$ac_try;;
18408 esac
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410   (eval "$ac_compile") 2>conftest.er1
18411   ac_status=$?
18412   grep -v '^ *+' conftest.er1 >conftest.err
18413   rm -f conftest.er1
18414   cat conftest.err >&5
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); } && {
18417          test -z "$ac_c_werror_flag" ||
18418          test ! -s conftest.err
18419        } && test -s conftest.$ac_objext; then
18420   ac_cv_type_fsblkcnt_t=yes
18421 else
18422   echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18424
18425         ac_cv_type_fsblkcnt_t=no
18426 fi
18427
18428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18429 fi
18430 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
18431 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
18432 if test $ac_cv_type_fsblkcnt_t = yes; then
18433
18434 cat >>confdefs.h <<_ACEOF
18435 #define HAVE_FSBLKCNT_T 1
18436 _ACEOF
18437
18438
18439 fi
18440 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
18441 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
18442 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
18443   echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445   cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h.  */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h.  */
18451 $ac_includes_default
18452 typedef fsfilcnt_t ac__type_new_;
18453 int
18454 main ()
18455 {
18456 if ((ac__type_new_ *) 0)
18457   return 0;
18458 if (sizeof (ac__type_new_))
18459   return 0;
18460   ;
18461   return 0;
18462 }
18463 _ACEOF
18464 rm -f conftest.$ac_objext
18465 if { (ac_try="$ac_compile"
18466 case "(($ac_try" in
18467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468   *) ac_try_echo=$ac_try;;
18469 esac
18470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18471   (eval "$ac_compile") 2>conftest.er1
18472   ac_status=$?
18473   grep -v '^ *+' conftest.er1 >conftest.err
18474   rm -f conftest.er1
18475   cat conftest.err >&5
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); } && {
18478          test -z "$ac_c_werror_flag" ||
18479          test ! -s conftest.err
18480        } && test -s conftest.$ac_objext; then
18481   ac_cv_type_fsfilcnt_t=yes
18482 else
18483   echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18485
18486         ac_cv_type_fsfilcnt_t=no
18487 fi
18488
18489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18490 fi
18491 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
18492 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
18493 if test $ac_cv_type_fsfilcnt_t = yes; then
18494
18495 cat >>confdefs.h <<_ACEOF
18496 #define HAVE_FSFILCNT_T 1
18497 _ACEOF
18498
18499
18500 fi
18501
18502 { echo "$as_me:$LINENO: checking for sigset_t" >&5
18503 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
18504 if test "${ac_cv_type_sigset_t+set}" = set; then
18505   echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507   cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h.  */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h.  */
18513 #include <signal.h>
18514
18515 typedef sigset_t ac__type_new_;
18516 int
18517 main ()
18518 {
18519 if ((ac__type_new_ *) 0)
18520   return 0;
18521 if (sizeof (ac__type_new_))
18522   return 0;
18523   ;
18524   return 0;
18525 }
18526 _ACEOF
18527 rm -f conftest.$ac_objext
18528 if { (ac_try="$ac_compile"
18529 case "(($ac_try" in
18530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531   *) ac_try_echo=$ac_try;;
18532 esac
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534   (eval "$ac_compile") 2>conftest.er1
18535   ac_status=$?
18536   grep -v '^ *+' conftest.er1 >conftest.err
18537   rm -f conftest.er1
18538   cat conftest.err >&5
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); } && {
18541          test -z "$ac_c_werror_flag" ||
18542          test ! -s conftest.err
18543        } && test -s conftest.$ac_objext; then
18544   ac_cv_type_sigset_t=yes
18545 else
18546   echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18548
18549         ac_cv_type_sigset_t=no
18550 fi
18551
18552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18553 fi
18554 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
18555 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
18556 if test $ac_cv_type_sigset_t = yes; then
18557
18558 cat >>confdefs.h <<_ACEOF
18559 #define HAVE_SIGSET_T 1
18560 _ACEOF
18561
18562
18563 fi
18564
18565 { echo "$as_me:$LINENO: checking for request_sense" >&5
18566 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
18567 if test "${ac_cv_type_request_sense+set}" = set; then
18568   echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570   cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h.  */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h.  */
18576 #include <linux/cdrom.h>
18577
18578 typedef request_sense ac__type_new_;
18579 int
18580 main ()
18581 {
18582 if ((ac__type_new_ *) 0)
18583   return 0;
18584 if (sizeof (ac__type_new_))
18585   return 0;
18586   ;
18587   return 0;
18588 }
18589 _ACEOF
18590 rm -f conftest.$ac_objext
18591 if { (ac_try="$ac_compile"
18592 case "(($ac_try" in
18593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594   *) ac_try_echo=$ac_try;;
18595 esac
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597   (eval "$ac_compile") 2>conftest.er1
18598   ac_status=$?
18599   grep -v '^ *+' conftest.er1 >conftest.err
18600   rm -f conftest.er1
18601   cat conftest.err >&5
18602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); } && {
18604          test -z "$ac_c_werror_flag" ||
18605          test ! -s conftest.err
18606        } && test -s conftest.$ac_objext; then
18607   ac_cv_type_request_sense=yes
18608 else
18609   echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18611
18612         ac_cv_type_request_sense=no
18613 fi
18614
18615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18616 fi
18617 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
18618 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
18619 if test $ac_cv_type_request_sense = yes; then
18620
18621 cat >>confdefs.h <<_ACEOF
18622 #define HAVE_REQUEST_SENSE 1
18623 _ACEOF
18624
18625
18626 fi
18627
18628
18629 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
18630 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
18631 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
18632   echo $ECHO_N "(cached) $ECHO_C" >&6
18633 else
18634   cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h.  */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h.  */
18640 #ifdef HAVE_LINUX_INPUT_H
18641 #include <linux/input.h>
18642 #endif
18643
18644 int
18645 main ()
18646 {
18647 static struct ff_effect ac_aggr;
18648 if (ac_aggr.direction)
18649 return 0;
18650   ;
18651   return 0;
18652 }
18653 _ACEOF
18654 rm -f conftest.$ac_objext
18655 if { (ac_try="$ac_compile"
18656 case "(($ac_try" in
18657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658   *) ac_try_echo=$ac_try;;
18659 esac
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661   (eval "$ac_compile") 2>conftest.er1
18662   ac_status=$?
18663   grep -v '^ *+' conftest.er1 >conftest.err
18664   rm -f conftest.er1
18665   cat conftest.err >&5
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); } && {
18668          test -z "$ac_c_werror_flag" ||
18669          test ! -s conftest.err
18670        } && test -s conftest.$ac_objext; then
18671   ac_cv_member_struct_ff_effect_direction=yes
18672 else
18673   echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676         cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682 #ifdef HAVE_LINUX_INPUT_H
18683 #include <linux/input.h>
18684 #endif
18685
18686 int
18687 main ()
18688 {
18689 static struct ff_effect ac_aggr;
18690 if (sizeof ac_aggr.direction)
18691 return 0;
18692   ;
18693   return 0;
18694 }
18695 _ACEOF
18696 rm -f conftest.$ac_objext
18697 if { (ac_try="$ac_compile"
18698 case "(($ac_try" in
18699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700   *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703   (eval "$ac_compile") 2>conftest.er1
18704   ac_status=$?
18705   grep -v '^ *+' conftest.er1 >conftest.err
18706   rm -f conftest.er1
18707   cat conftest.err >&5
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); } && {
18710          test -z "$ac_c_werror_flag" ||
18711          test ! -s conftest.err
18712        } && test -s conftest.$ac_objext; then
18713   ac_cv_member_struct_ff_effect_direction=yes
18714 else
18715   echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18717
18718         ac_cv_member_struct_ff_effect_direction=no
18719 fi
18720
18721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18722 fi
18723
18724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18725 fi
18726 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
18727 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
18728 if test $ac_cv_member_struct_ff_effect_direction = yes; then
18729
18730 cat >>confdefs.h <<_ACEOF
18731 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
18732 _ACEOF
18733
18734
18735 fi
18736
18737
18738 { echo "$as_me:$LINENO: checking for sigaddset" >&5
18739 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
18740 if test "${wine_cv_have_sigaddset+set}" = set; then
18741   echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743   cat >conftest.$ac_ext <<_ACEOF
18744 /* confdefs.h.  */
18745 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h.  */
18749 #include <signal.h>
18750 int
18751 main ()
18752 {
18753 sigset_t set; sigaddset(&set,SIGTERM);
18754   ;
18755   return 0;
18756 }
18757 _ACEOF
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (ac_try="$ac_link"
18760 case "(($ac_try" in
18761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762   *) ac_try_echo=$ac_try;;
18763 esac
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765   (eval "$ac_link") 2>conftest.er1
18766   ac_status=$?
18767   grep -v '^ *+' conftest.er1 >conftest.err
18768   rm -f conftest.er1
18769   cat conftest.err >&5
18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771   (exit $ac_status); } && {
18772          test -z "$ac_c_werror_flag" ||
18773          test ! -s conftest.err
18774        } && test -s conftest$ac_exeext &&
18775        $as_test_x conftest$ac_exeext; then
18776   wine_cv_have_sigaddset=yes
18777 else
18778   echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18780
18781         wine_cv_have_sigaddset=no
18782 fi
18783
18784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18785       conftest$ac_exeext conftest.$ac_ext
18786 fi
18787 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
18788 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
18789 if test "$wine_cv_have_sigaddset" = "yes"
18790 then
18791
18792 cat >>confdefs.h <<\_ACEOF
18793 #define HAVE_SIGADDSET 1
18794 _ACEOF
18795
18796 fi
18797
18798
18799 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
18800 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
18801 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
18802   echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804   cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810 #include <netdb.h>
18811 int
18812 main ()
18813 {
18814
18815     char *name=0;
18816     struct hostent he;
18817     struct hostent *result;
18818     char *buf=0;
18819     int bufsize=0;
18820     int res,errnr;
18821     char *addr=0;
18822     int addrlen=0;
18823     int addrtype=0;
18824     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
18825     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
18826
18827   ;
18828   return 0;
18829 }
18830 _ACEOF
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (ac_try="$ac_link"
18833 case "(($ac_try" in
18834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835   *) ac_try_echo=$ac_try;;
18836 esac
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838   (eval "$ac_link") 2>conftest.er1
18839   ac_status=$?
18840   grep -v '^ *+' conftest.er1 >conftest.err
18841   rm -f conftest.er1
18842   cat conftest.err >&5
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); } && {
18845          test -z "$ac_c_werror_flag" ||
18846          test ! -s conftest.err
18847        } && test -s conftest$ac_exeext &&
18848        $as_test_x conftest$ac_exeext; then
18849   wine_cv_linux_gethostbyname_r_6=yes
18850 else
18851   echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854         wine_cv_linux_gethostbyname_r_6=no
18855
18856 fi
18857
18858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18859       conftest$ac_exeext conftest.$ac_ext
18860
18861 fi
18862 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
18863 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
18864    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
18865    then
18866
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
18869 _ACEOF
18870
18871    fi
18872
18873 if test "$ac_cv_header_linux_joystick_h" = "yes"
18874 then
18875    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
18876 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
18877 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18878   echo $ECHO_N "(cached) $ECHO_C" >&6
18879 else
18880   cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886
18887         #include <sys/ioctl.h>
18888         #include <sys/types.h>
18889         #include <linux/joystick.h>
18890
18891         struct js_event blub;
18892         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18893         #error "no 2.2 header"
18894         #endif
18895
18896 int
18897 main ()
18898 {
18899 /*empty*/
18900   ;
18901   return 0;
18902 }
18903 _ACEOF
18904 rm -f conftest.$ac_objext
18905 if { (ac_try="$ac_compile"
18906 case "(($ac_try" in
18907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908   *) ac_try_echo=$ac_try;;
18909 esac
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911   (eval "$ac_compile") 2>conftest.er1
18912   ac_status=$?
18913   grep -v '^ *+' conftest.er1 >conftest.err
18914   rm -f conftest.er1
18915   cat conftest.err >&5
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   (exit $ac_status); } && {
18918          test -z "$ac_c_werror_flag" ||
18919          test ! -s conftest.err
18920        } && test -s conftest.$ac_objext; then
18921   wine_cv_linux_joystick_22_api=yes
18922 else
18923   echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18925
18926         wine_cv_linux_joystick_22_api=no
18927 fi
18928
18929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18930
18931 fi
18932 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18933 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
18934    if test "$wine_cv_linux_joystick_22_api" = "yes"
18935    then
18936
18937 cat >>confdefs.h <<\_ACEOF
18938 #define HAVE_LINUX_22_JOYSTICK_API 1
18939 _ACEOF
18940
18941    fi
18942 fi
18943
18944
18945 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18946 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
18947 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h.  */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h.  */
18956 #include <sys/types.h>
18957 #ifdef HAVE_SYS_PARAM_H
18958 # include <sys/param.h>
18959 #endif
18960 #ifdef HAVE_SYS_MOUNT_H
18961 # include <sys/mount.h>
18962 #endif
18963 #ifdef HAVE_SYS_VFS_H
18964 # include <sys/vfs.h>
18965 #endif
18966 #ifdef HAVE_SYS_STATFS_H
18967 # include <sys/statfs.h>
18968 #endif
18969
18970 int
18971 main ()
18972 {
18973 static struct statfs ac_aggr;
18974 if (ac_aggr.f_bfree)
18975 return 0;
18976   ;
18977   return 0;
18978 }
18979 _ACEOF
18980 rm -f conftest.$ac_objext
18981 if { (ac_try="$ac_compile"
18982 case "(($ac_try" in
18983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984   *) ac_try_echo=$ac_try;;
18985 esac
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987   (eval "$ac_compile") 2>conftest.er1
18988   ac_status=$?
18989   grep -v '^ *+' conftest.er1 >conftest.err
18990   rm -f conftest.er1
18991   cat conftest.err >&5
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); } && {
18994          test -z "$ac_c_werror_flag" ||
18995          test ! -s conftest.err
18996        } && test -s conftest.$ac_objext; then
18997   ac_cv_member_struct_statfs_f_bfree=yes
18998 else
18999   echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002         cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h.  */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h.  */
19008 #include <sys/types.h>
19009 #ifdef HAVE_SYS_PARAM_H
19010 # include <sys/param.h>
19011 #endif
19012 #ifdef HAVE_SYS_MOUNT_H
19013 # include <sys/mount.h>
19014 #endif
19015 #ifdef HAVE_SYS_VFS_H
19016 # include <sys/vfs.h>
19017 #endif
19018 #ifdef HAVE_SYS_STATFS_H
19019 # include <sys/statfs.h>
19020 #endif
19021
19022 int
19023 main ()
19024 {
19025 static struct statfs ac_aggr;
19026 if (sizeof ac_aggr.f_bfree)
19027 return 0;
19028   ;
19029   return 0;
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          test -z "$ac_c_werror_flag" ||
19047          test ! -s conftest.err
19048        } && test -s conftest.$ac_objext; then
19049   ac_cv_member_struct_statfs_f_bfree=yes
19050 else
19051   echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19053
19054         ac_cv_member_struct_statfs_f_bfree=no
19055 fi
19056
19057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19058 fi
19059
19060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19061 fi
19062 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
19063 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
19064 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
19065
19066 cat >>confdefs.h <<_ACEOF
19067 #define HAVE_STRUCT_STATFS_F_BFREE 1
19068 _ACEOF
19069
19070
19071 fi
19072 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
19073 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
19074 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
19075   echo $ECHO_N "(cached) $ECHO_C" >&6
19076 else
19077   cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h.  */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h.  */
19083 #include <sys/types.h>
19084 #ifdef HAVE_SYS_PARAM_H
19085 # include <sys/param.h>
19086 #endif
19087 #ifdef HAVE_SYS_MOUNT_H
19088 # include <sys/mount.h>
19089 #endif
19090 #ifdef HAVE_SYS_VFS_H
19091 # include <sys/vfs.h>
19092 #endif
19093 #ifdef HAVE_SYS_STATFS_H
19094 # include <sys/statfs.h>
19095 #endif
19096
19097 int
19098 main ()
19099 {
19100 static struct statfs ac_aggr;
19101 if (ac_aggr.f_bavail)
19102 return 0;
19103   ;
19104   return 0;
19105 }
19106 _ACEOF
19107 rm -f conftest.$ac_objext
19108 if { (ac_try="$ac_compile"
19109 case "(($ac_try" in
19110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111   *) ac_try_echo=$ac_try;;
19112 esac
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114   (eval "$ac_compile") 2>conftest.er1
19115   ac_status=$?
19116   grep -v '^ *+' conftest.er1 >conftest.err
19117   rm -f conftest.er1
19118   cat conftest.err >&5
19119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); } && {
19121          test -z "$ac_c_werror_flag" ||
19122          test ! -s conftest.err
19123        } && test -s conftest.$ac_objext; then
19124   ac_cv_member_struct_statfs_f_bavail=yes
19125 else
19126   echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129         cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h.  */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h.  */
19135 #include <sys/types.h>
19136 #ifdef HAVE_SYS_PARAM_H
19137 # include <sys/param.h>
19138 #endif
19139 #ifdef HAVE_SYS_MOUNT_H
19140 # include <sys/mount.h>
19141 #endif
19142 #ifdef HAVE_SYS_VFS_H
19143 # include <sys/vfs.h>
19144 #endif
19145 #ifdef HAVE_SYS_STATFS_H
19146 # include <sys/statfs.h>
19147 #endif
19148
19149 int
19150 main ()
19151 {
19152 static struct statfs ac_aggr;
19153 if (sizeof ac_aggr.f_bavail)
19154 return 0;
19155   ;
19156   return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext
19160 if { (ac_try="$ac_compile"
19161 case "(($ac_try" in
19162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163   *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166   (eval "$ac_compile") 2>conftest.er1
19167   ac_status=$?
19168   grep -v '^ *+' conftest.er1 >conftest.err
19169   rm -f conftest.er1
19170   cat conftest.err >&5
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); } && {
19173          test -z "$ac_c_werror_flag" ||
19174          test ! -s conftest.err
19175        } && test -s conftest.$ac_objext; then
19176   ac_cv_member_struct_statfs_f_bavail=yes
19177 else
19178   echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19180
19181         ac_cv_member_struct_statfs_f_bavail=no
19182 fi
19183
19184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185 fi
19186
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188 fi
19189 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
19190 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
19191 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
19192
19193 cat >>confdefs.h <<_ACEOF
19194 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
19195 _ACEOF
19196
19197
19198 fi
19199 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
19200 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
19201 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
19202   echo $ECHO_N "(cached) $ECHO_C" >&6
19203 else
19204   cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h.  */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h.  */
19210 #include <sys/types.h>
19211 #ifdef HAVE_SYS_PARAM_H
19212 # include <sys/param.h>
19213 #endif
19214 #ifdef HAVE_SYS_MOUNT_H
19215 # include <sys/mount.h>
19216 #endif
19217 #ifdef HAVE_SYS_VFS_H
19218 # include <sys/vfs.h>
19219 #endif
19220 #ifdef HAVE_SYS_STATFS_H
19221 # include <sys/statfs.h>
19222 #endif
19223
19224 int
19225 main ()
19226 {
19227 static struct statfs ac_aggr;
19228 if (ac_aggr.f_frsize)
19229 return 0;
19230   ;
19231   return 0;
19232 }
19233 _ACEOF
19234 rm -f conftest.$ac_objext
19235 if { (ac_try="$ac_compile"
19236 case "(($ac_try" in
19237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238   *) ac_try_echo=$ac_try;;
19239 esac
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241   (eval "$ac_compile") 2>conftest.er1
19242   ac_status=$?
19243   grep -v '^ *+' conftest.er1 >conftest.err
19244   rm -f conftest.er1
19245   cat conftest.err >&5
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); } && {
19248          test -z "$ac_c_werror_flag" ||
19249          test ! -s conftest.err
19250        } && test -s conftest.$ac_objext; then
19251   ac_cv_member_struct_statfs_f_frsize=yes
19252 else
19253   echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256         cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h.  */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h.  */
19262 #include <sys/types.h>
19263 #ifdef HAVE_SYS_PARAM_H
19264 # include <sys/param.h>
19265 #endif
19266 #ifdef HAVE_SYS_MOUNT_H
19267 # include <sys/mount.h>
19268 #endif
19269 #ifdef HAVE_SYS_VFS_H
19270 # include <sys/vfs.h>
19271 #endif
19272 #ifdef HAVE_SYS_STATFS_H
19273 # include <sys/statfs.h>
19274 #endif
19275
19276 int
19277 main ()
19278 {
19279 static struct statfs ac_aggr;
19280 if (sizeof ac_aggr.f_frsize)
19281 return 0;
19282   ;
19283   return 0;
19284 }
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (ac_try="$ac_compile"
19288 case "(($ac_try" in
19289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290   *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293   (eval "$ac_compile") 2>conftest.er1
19294   ac_status=$?
19295   grep -v '^ *+' conftest.er1 >conftest.err
19296   rm -f conftest.er1
19297   cat conftest.err >&5
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } && {
19300          test -z "$ac_c_werror_flag" ||
19301          test ! -s conftest.err
19302        } && test -s conftest.$ac_objext; then
19303   ac_cv_member_struct_statfs_f_frsize=yes
19304 else
19305   echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308         ac_cv_member_struct_statfs_f_frsize=no
19309 fi
19310
19311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19312 fi
19313
19314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19315 fi
19316 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
19317 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
19318 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
19319
19320 cat >>confdefs.h <<_ACEOF
19321 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
19322 _ACEOF
19323
19324
19325 fi
19326 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
19327 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
19328 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
19329   echo $ECHO_N "(cached) $ECHO_C" >&6
19330 else
19331   cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337 #include <sys/types.h>
19338 #ifdef HAVE_SYS_PARAM_H
19339 # include <sys/param.h>
19340 #endif
19341 #ifdef HAVE_SYS_MOUNT_H
19342 # include <sys/mount.h>
19343 #endif
19344 #ifdef HAVE_SYS_VFS_H
19345 # include <sys/vfs.h>
19346 #endif
19347 #ifdef HAVE_SYS_STATFS_H
19348 # include <sys/statfs.h>
19349 #endif
19350
19351 int
19352 main ()
19353 {
19354 static struct statfs ac_aggr;
19355 if (ac_aggr.f_ffree)
19356 return 0;
19357   ;
19358   return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext
19362 if { (ac_try="$ac_compile"
19363 case "(($ac_try" in
19364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365   *) ac_try_echo=$ac_try;;
19366 esac
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368   (eval "$ac_compile") 2>conftest.er1
19369   ac_status=$?
19370   grep -v '^ *+' conftest.er1 >conftest.err
19371   rm -f conftest.er1
19372   cat conftest.err >&5
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); } && {
19375          test -z "$ac_c_werror_flag" ||
19376          test ! -s conftest.err
19377        } && test -s conftest.$ac_objext; then
19378   ac_cv_member_struct_statfs_f_ffree=yes
19379 else
19380   echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383         cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h.  */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h.  */
19389 #include <sys/types.h>
19390 #ifdef HAVE_SYS_PARAM_H
19391 # include <sys/param.h>
19392 #endif
19393 #ifdef HAVE_SYS_MOUNT_H
19394 # include <sys/mount.h>
19395 #endif
19396 #ifdef HAVE_SYS_VFS_H
19397 # include <sys/vfs.h>
19398 #endif
19399 #ifdef HAVE_SYS_STATFS_H
19400 # include <sys/statfs.h>
19401 #endif
19402
19403 int
19404 main ()
19405 {
19406 static struct statfs ac_aggr;
19407 if (sizeof ac_aggr.f_ffree)
19408 return 0;
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest.$ac_objext
19414 if { (ac_try="$ac_compile"
19415 case "(($ac_try" in
19416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417   *) ac_try_echo=$ac_try;;
19418 esac
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420   (eval "$ac_compile") 2>conftest.er1
19421   ac_status=$?
19422   grep -v '^ *+' conftest.er1 >conftest.err
19423   rm -f conftest.er1
19424   cat conftest.err >&5
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); } && {
19427          test -z "$ac_c_werror_flag" ||
19428          test ! -s conftest.err
19429        } && test -s conftest.$ac_objext; then
19430   ac_cv_member_struct_statfs_f_ffree=yes
19431 else
19432   echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19434
19435         ac_cv_member_struct_statfs_f_ffree=no
19436 fi
19437
19438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 fi
19440
19441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19442 fi
19443 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
19444 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
19445 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
19446
19447 cat >>confdefs.h <<_ACEOF
19448 #define HAVE_STRUCT_STATFS_F_FFREE 1
19449 _ACEOF
19450
19451
19452 fi
19453 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
19454 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
19455 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
19456   echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458   cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h.  */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h.  */
19464 #include <sys/types.h>
19465 #ifdef HAVE_SYS_PARAM_H
19466 # include <sys/param.h>
19467 #endif
19468 #ifdef HAVE_SYS_MOUNT_H
19469 # include <sys/mount.h>
19470 #endif
19471 #ifdef HAVE_SYS_VFS_H
19472 # include <sys/vfs.h>
19473 #endif
19474 #ifdef HAVE_SYS_STATFS_H
19475 # include <sys/statfs.h>
19476 #endif
19477
19478 int
19479 main ()
19480 {
19481 static struct statfs ac_aggr;
19482 if (ac_aggr.f_favail)
19483 return 0;
19484   ;
19485   return 0;
19486 }
19487 _ACEOF
19488 rm -f conftest.$ac_objext
19489 if { (ac_try="$ac_compile"
19490 case "(($ac_try" in
19491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492   *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495   (eval "$ac_compile") 2>conftest.er1
19496   ac_status=$?
19497   grep -v '^ *+' conftest.er1 >conftest.err
19498   rm -f conftest.er1
19499   cat conftest.err >&5
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); } && {
19502          test -z "$ac_c_werror_flag" ||
19503          test ! -s conftest.err
19504        } && test -s conftest.$ac_objext; then
19505   ac_cv_member_struct_statfs_f_favail=yes
19506 else
19507   echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19509
19510         cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516 #include <sys/types.h>
19517 #ifdef HAVE_SYS_PARAM_H
19518 # include <sys/param.h>
19519 #endif
19520 #ifdef HAVE_SYS_MOUNT_H
19521 # include <sys/mount.h>
19522 #endif
19523 #ifdef HAVE_SYS_VFS_H
19524 # include <sys/vfs.h>
19525 #endif
19526 #ifdef HAVE_SYS_STATFS_H
19527 # include <sys/statfs.h>
19528 #endif
19529
19530 int
19531 main ()
19532 {
19533 static struct statfs ac_aggr;
19534 if (sizeof ac_aggr.f_favail)
19535 return 0;
19536   ;
19537   return 0;
19538 }
19539 _ACEOF
19540 rm -f conftest.$ac_objext
19541 if { (ac_try="$ac_compile"
19542 case "(($ac_try" in
19543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544   *) ac_try_echo=$ac_try;;
19545 esac
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547   (eval "$ac_compile") 2>conftest.er1
19548   ac_status=$?
19549   grep -v '^ *+' conftest.er1 >conftest.err
19550   rm -f conftest.er1
19551   cat conftest.err >&5
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); } && {
19554          test -z "$ac_c_werror_flag" ||
19555          test ! -s conftest.err
19556        } && test -s conftest.$ac_objext; then
19557   ac_cv_member_struct_statfs_f_favail=yes
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562         ac_cv_member_struct_statfs_f_favail=no
19563 fi
19564
19565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19566 fi
19567
19568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19569 fi
19570 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
19571 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
19572 if test $ac_cv_member_struct_statfs_f_favail = yes; then
19573
19574 cat >>confdefs.h <<_ACEOF
19575 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
19576 _ACEOF
19577
19578
19579 fi
19580 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
19581 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
19582 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
19583   echo $ECHO_N "(cached) $ECHO_C" >&6
19584 else
19585   cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h.  */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h.  */
19591 #include <sys/types.h>
19592 #ifdef HAVE_SYS_PARAM_H
19593 # include <sys/param.h>
19594 #endif
19595 #ifdef HAVE_SYS_MOUNT_H
19596 # include <sys/mount.h>
19597 #endif
19598 #ifdef HAVE_SYS_VFS_H
19599 # include <sys/vfs.h>
19600 #endif
19601 #ifdef HAVE_SYS_STATFS_H
19602 # include <sys/statfs.h>
19603 #endif
19604
19605 int
19606 main ()
19607 {
19608 static struct statfs ac_aggr;
19609 if (ac_aggr.f_namelen)
19610 return 0;
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest.$ac_objext
19616 if { (ac_try="$ac_compile"
19617 case "(($ac_try" in
19618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619   *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622   (eval "$ac_compile") 2>conftest.er1
19623   ac_status=$?
19624   grep -v '^ *+' conftest.er1 >conftest.err
19625   rm -f conftest.er1
19626   cat conftest.err >&5
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } && {
19629          test -z "$ac_c_werror_flag" ||
19630          test ! -s conftest.err
19631        } && test -s conftest.$ac_objext; then
19632   ac_cv_member_struct_statfs_f_namelen=yes
19633 else
19634   echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19636
19637         cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h.  */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h.  */
19643 #include <sys/types.h>
19644 #ifdef HAVE_SYS_PARAM_H
19645 # include <sys/param.h>
19646 #endif
19647 #ifdef HAVE_SYS_MOUNT_H
19648 # include <sys/mount.h>
19649 #endif
19650 #ifdef HAVE_SYS_VFS_H
19651 # include <sys/vfs.h>
19652 #endif
19653 #ifdef HAVE_SYS_STATFS_H
19654 # include <sys/statfs.h>
19655 #endif
19656
19657 int
19658 main ()
19659 {
19660 static struct statfs ac_aggr;
19661 if (sizeof ac_aggr.f_namelen)
19662 return 0;
19663   ;
19664   return 0;
19665 }
19666 _ACEOF
19667 rm -f conftest.$ac_objext
19668 if { (ac_try="$ac_compile"
19669 case "(($ac_try" in
19670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671   *) ac_try_echo=$ac_try;;
19672 esac
19673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674   (eval "$ac_compile") 2>conftest.er1
19675   ac_status=$?
19676   grep -v '^ *+' conftest.er1 >conftest.err
19677   rm -f conftest.er1
19678   cat conftest.err >&5
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); } && {
19681          test -z "$ac_c_werror_flag" ||
19682          test ! -s conftest.err
19683        } && test -s conftest.$ac_objext; then
19684   ac_cv_member_struct_statfs_f_namelen=yes
19685 else
19686   echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19688
19689         ac_cv_member_struct_statfs_f_namelen=no
19690 fi
19691
19692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19693 fi
19694
19695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19696 fi
19697 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19698 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
19699 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19700
19701 cat >>confdefs.h <<_ACEOF
19702 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19703 _ACEOF
19704
19705
19706 fi
19707
19708
19709 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19710 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
19711 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19712   echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714   cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h.  */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h.  */
19720 #ifdef HAVE_SYS_STATVFS_H
19721 #include <sys/statvfs.h>
19722 #endif
19723
19724 int
19725 main ()
19726 {
19727 static struct statvfs ac_aggr;
19728 if (ac_aggr.f_blocks)
19729 return 0;
19730   ;
19731   return 0;
19732 }
19733 _ACEOF
19734 rm -f conftest.$ac_objext
19735 if { (ac_try="$ac_compile"
19736 case "(($ac_try" in
19737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738   *) ac_try_echo=$ac_try;;
19739 esac
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741   (eval "$ac_compile") 2>conftest.er1
19742   ac_status=$?
19743   grep -v '^ *+' conftest.er1 >conftest.err
19744   rm -f conftest.er1
19745   cat conftest.err >&5
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); } && {
19748          test -z "$ac_c_werror_flag" ||
19749          test ! -s conftest.err
19750        } && test -s conftest.$ac_objext; then
19751   ac_cv_member_struct_statvfs_f_blocks=yes
19752 else
19753   echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756         cat >conftest.$ac_ext <<_ACEOF
19757 /* confdefs.h.  */
19758 _ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h.  */
19762 #ifdef HAVE_SYS_STATVFS_H
19763 #include <sys/statvfs.h>
19764 #endif
19765
19766 int
19767 main ()
19768 {
19769 static struct statvfs ac_aggr;
19770 if (sizeof ac_aggr.f_blocks)
19771 return 0;
19772   ;
19773   return 0;
19774 }
19775 _ACEOF
19776 rm -f conftest.$ac_objext
19777 if { (ac_try="$ac_compile"
19778 case "(($ac_try" in
19779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780   *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783   (eval "$ac_compile") 2>conftest.er1
19784   ac_status=$?
19785   grep -v '^ *+' conftest.er1 >conftest.err
19786   rm -f conftest.er1
19787   cat conftest.err >&5
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); } && {
19790          test -z "$ac_c_werror_flag" ||
19791          test ! -s conftest.err
19792        } && test -s conftest.$ac_objext; then
19793   ac_cv_member_struct_statvfs_f_blocks=yes
19794 else
19795   echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19797
19798         ac_cv_member_struct_statvfs_f_blocks=no
19799 fi
19800
19801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19802 fi
19803
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19805 fi
19806 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19807 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
19808 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19809
19810 cat >>confdefs.h <<_ACEOF
19811 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19812 _ACEOF
19813
19814
19815 fi
19816
19817
19818 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19819 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
19820 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19821   echo $ECHO_N "(cached) $ECHO_C" >&6
19822 else
19823   cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h.  */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h.  */
19829 #include <sys/types.h>
19830 #ifdef HAVE_SYS_SOCKET_H
19831 # include <sys/socket.h>
19832 #endif
19833 #ifdef HAVE_SYS_UN_H
19834 # include <sys/un.h>
19835 #endif
19836
19837 int
19838 main ()
19839 {
19840 static struct msghdr ac_aggr;
19841 if (ac_aggr.msg_accrights)
19842 return 0;
19843   ;
19844   return 0;
19845 }
19846 _ACEOF
19847 rm -f conftest.$ac_objext
19848 if { (ac_try="$ac_compile"
19849 case "(($ac_try" in
19850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851   *) ac_try_echo=$ac_try;;
19852 esac
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854   (eval "$ac_compile") 2>conftest.er1
19855   ac_status=$?
19856   grep -v '^ *+' conftest.er1 >conftest.err
19857   rm -f conftest.er1
19858   cat conftest.err >&5
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); } && {
19861          test -z "$ac_c_werror_flag" ||
19862          test ! -s conftest.err
19863        } && test -s conftest.$ac_objext; then
19864   ac_cv_member_struct_msghdr_msg_accrights=yes
19865 else
19866   echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19868
19869         cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h.  */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h.  */
19875 #include <sys/types.h>
19876 #ifdef HAVE_SYS_SOCKET_H
19877 # include <sys/socket.h>
19878 #endif
19879 #ifdef HAVE_SYS_UN_H
19880 # include <sys/un.h>
19881 #endif
19882
19883 int
19884 main ()
19885 {
19886 static struct msghdr ac_aggr;
19887 if (sizeof ac_aggr.msg_accrights)
19888 return 0;
19889   ;
19890   return 0;
19891 }
19892 _ACEOF
19893 rm -f conftest.$ac_objext
19894 if { (ac_try="$ac_compile"
19895 case "(($ac_try" in
19896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897   *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900   (eval "$ac_compile") 2>conftest.er1
19901   ac_status=$?
19902   grep -v '^ *+' conftest.er1 >conftest.err
19903   rm -f conftest.er1
19904   cat conftest.err >&5
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); } && {
19907          test -z "$ac_c_werror_flag" ||
19908          test ! -s conftest.err
19909        } && test -s conftest.$ac_objext; then
19910   ac_cv_member_struct_msghdr_msg_accrights=yes
19911 else
19912   echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19914
19915         ac_cv_member_struct_msghdr_msg_accrights=no
19916 fi
19917
19918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19919 fi
19920
19921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19922 fi
19923 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19924 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
19925 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19926
19927 cat >>confdefs.h <<_ACEOF
19928 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19929 _ACEOF
19930
19931
19932 fi
19933 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19934 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
19935 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19936   echo $ECHO_N "(cached) $ECHO_C" >&6
19937 else
19938   cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h.  */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h.  */
19944 #include <sys/types.h>
19945 #ifdef HAVE_SYS_SOCKET_H
19946 # include <sys/socket.h>
19947 #endif
19948 #ifdef HAVE_SYS_UN_H
19949 # include <sys/un.h>
19950 #endif
19951
19952 int
19953 main ()
19954 {
19955 static struct sockaddr ac_aggr;
19956 if (ac_aggr.sa_len)
19957 return 0;
19958   ;
19959   return 0;
19960 }
19961 _ACEOF
19962 rm -f conftest.$ac_objext
19963 if { (ac_try="$ac_compile"
19964 case "(($ac_try" in
19965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966   *) ac_try_echo=$ac_try;;
19967 esac
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969   (eval "$ac_compile") 2>conftest.er1
19970   ac_status=$?
19971   grep -v '^ *+' conftest.er1 >conftest.err
19972   rm -f conftest.er1
19973   cat conftest.err >&5
19974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975   (exit $ac_status); } && {
19976          test -z "$ac_c_werror_flag" ||
19977          test ! -s conftest.err
19978        } && test -s conftest.$ac_objext; then
19979   ac_cv_member_struct_sockaddr_sa_len=yes
19980 else
19981   echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19983
19984         cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h.  */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h.  */
19990 #include <sys/types.h>
19991 #ifdef HAVE_SYS_SOCKET_H
19992 # include <sys/socket.h>
19993 #endif
19994 #ifdef HAVE_SYS_UN_H
19995 # include <sys/un.h>
19996 #endif
19997
19998 int
19999 main ()
20000 {
20001 static struct sockaddr ac_aggr;
20002 if (sizeof ac_aggr.sa_len)
20003 return 0;
20004   ;
20005   return 0;
20006 }
20007 _ACEOF
20008 rm -f conftest.$ac_objext
20009 if { (ac_try="$ac_compile"
20010 case "(($ac_try" in
20011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012   *) ac_try_echo=$ac_try;;
20013 esac
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015   (eval "$ac_compile") 2>conftest.er1
20016   ac_status=$?
20017   grep -v '^ *+' conftest.er1 >conftest.err
20018   rm -f conftest.er1
20019   cat conftest.err >&5
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); } && {
20022          test -z "$ac_c_werror_flag" ||
20023          test ! -s conftest.err
20024        } && test -s conftest.$ac_objext; then
20025   ac_cv_member_struct_sockaddr_sa_len=yes
20026 else
20027   echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20029
20030         ac_cv_member_struct_sockaddr_sa_len=no
20031 fi
20032
20033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20034 fi
20035
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 fi
20038 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
20039 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
20040 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
20041
20042 cat >>confdefs.h <<_ACEOF
20043 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
20044 _ACEOF
20045
20046
20047 fi
20048 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
20049 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
20050 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
20051   echo $ECHO_N "(cached) $ECHO_C" >&6
20052 else
20053   cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h.  */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h.  */
20059 #include <sys/types.h>
20060 #ifdef HAVE_SYS_SOCKET_H
20061 # include <sys/socket.h>
20062 #endif
20063 #ifdef HAVE_SYS_UN_H
20064 # include <sys/un.h>
20065 #endif
20066
20067 int
20068 main ()
20069 {
20070 static struct sockaddr_un ac_aggr;
20071 if (ac_aggr.sun_len)
20072 return 0;
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext
20078 if { (ac_try="$ac_compile"
20079 case "(($ac_try" in
20080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081   *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084   (eval "$ac_compile") 2>conftest.er1
20085   ac_status=$?
20086   grep -v '^ *+' conftest.er1 >conftest.err
20087   rm -f conftest.er1
20088   cat conftest.err >&5
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); } && {
20091          test -z "$ac_c_werror_flag" ||
20092          test ! -s conftest.err
20093        } && test -s conftest.$ac_objext; then
20094   ac_cv_member_struct_sockaddr_un_sun_len=yes
20095 else
20096   echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099         cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105 #include <sys/types.h>
20106 #ifdef HAVE_SYS_SOCKET_H
20107 # include <sys/socket.h>
20108 #endif
20109 #ifdef HAVE_SYS_UN_H
20110 # include <sys/un.h>
20111 #endif
20112
20113 int
20114 main ()
20115 {
20116 static struct sockaddr_un ac_aggr;
20117 if (sizeof ac_aggr.sun_len)
20118 return 0;
20119   ;
20120   return 0;
20121 }
20122 _ACEOF
20123 rm -f conftest.$ac_objext
20124 if { (ac_try="$ac_compile"
20125 case "(($ac_try" in
20126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127   *) ac_try_echo=$ac_try;;
20128 esac
20129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130   (eval "$ac_compile") 2>conftest.er1
20131   ac_status=$?
20132   grep -v '^ *+' conftest.er1 >conftest.err
20133   rm -f conftest.er1
20134   cat conftest.err >&5
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); } && {
20137          test -z "$ac_c_werror_flag" ||
20138          test ! -s conftest.err
20139        } && test -s conftest.$ac_objext; then
20140   ac_cv_member_struct_sockaddr_un_sun_len=yes
20141 else
20142   echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20144
20145         ac_cv_member_struct_sockaddr_un_sun_len=no
20146 fi
20147
20148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20149 fi
20150
20151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20152 fi
20153 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
20154 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
20155 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
20156
20157 cat >>confdefs.h <<_ACEOF
20158 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
20159 _ACEOF
20160
20161
20162 fi
20163
20164
20165 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
20166 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
20167 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
20168   echo $ECHO_N "(cached) $ECHO_C" >&6
20169 else
20170   cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h.  */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h.  */
20176 #include <sys/types.h>
20177 #ifdef HAVE_SCSI_SG_H
20178 #include <scsi/sg.h>
20179 #endif
20180
20181 int
20182 main ()
20183 {
20184 static scsireq_t ac_aggr;
20185 if (ac_aggr.cmd)
20186 return 0;
20187   ;
20188   return 0;
20189 }
20190 _ACEOF
20191 rm -f conftest.$ac_objext
20192 if { (ac_try="$ac_compile"
20193 case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_compile") 2>conftest.er1
20199   ac_status=$?
20200   grep -v '^ *+' conftest.er1 >conftest.err
20201   rm -f conftest.er1
20202   cat conftest.err >&5
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); } && {
20205          test -z "$ac_c_werror_flag" ||
20206          test ! -s conftest.err
20207        } && test -s conftest.$ac_objext; then
20208   ac_cv_member_scsireq_t_cmd=yes
20209 else
20210   echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213         cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h.  */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h.  */
20219 #include <sys/types.h>
20220 #ifdef HAVE_SCSI_SG_H
20221 #include <scsi/sg.h>
20222 #endif
20223
20224 int
20225 main ()
20226 {
20227 static scsireq_t ac_aggr;
20228 if (sizeof ac_aggr.cmd)
20229 return 0;
20230   ;
20231   return 0;
20232 }
20233 _ACEOF
20234 rm -f conftest.$ac_objext
20235 if { (ac_try="$ac_compile"
20236 case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241   (eval "$ac_compile") 2>conftest.er1
20242   ac_status=$?
20243   grep -v '^ *+' conftest.er1 >conftest.err
20244   rm -f conftest.er1
20245   cat conftest.err >&5
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); } && {
20248          test -z "$ac_c_werror_flag" ||
20249          test ! -s conftest.err
20250        } && test -s conftest.$ac_objext; then
20251   ac_cv_member_scsireq_t_cmd=yes
20252 else
20253   echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256         ac_cv_member_scsireq_t_cmd=no
20257 fi
20258
20259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20260 fi
20261
20262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20263 fi
20264 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
20265 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
20266 if test $ac_cv_member_scsireq_t_cmd = yes; then
20267
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_SCSIREQ_T_CMD 1
20270 _ACEOF
20271
20272
20273 fi
20274 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
20275 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
20276 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279   cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h.  */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h.  */
20285 #include <sys/types.h>
20286 #ifdef HAVE_SCSI_SG_H
20287 #include <scsi/sg.h>
20288 #endif
20289
20290 int
20291 main ()
20292 {
20293 static sg_io_hdr_t ac_aggr;
20294 if (ac_aggr.interface_id)
20295 return 0;
20296   ;
20297   return 0;
20298 }
20299 _ACEOF
20300 rm -f conftest.$ac_objext
20301 if { (ac_try="$ac_compile"
20302 case "(($ac_try" in
20303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304   *) ac_try_echo=$ac_try;;
20305 esac
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307   (eval "$ac_compile") 2>conftest.er1
20308   ac_status=$?
20309   grep -v '^ *+' conftest.er1 >conftest.err
20310   rm -f conftest.er1
20311   cat conftest.err >&5
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); } && {
20314          test -z "$ac_c_werror_flag" ||
20315          test ! -s conftest.err
20316        } && test -s conftest.$ac_objext; then
20317   ac_cv_member_sg_io_hdr_t_interface_id=yes
20318 else
20319   echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20321
20322         cat >conftest.$ac_ext <<_ACEOF
20323 /* confdefs.h.  */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h.  */
20328 #include <sys/types.h>
20329 #ifdef HAVE_SCSI_SG_H
20330 #include <scsi/sg.h>
20331 #endif
20332
20333 int
20334 main ()
20335 {
20336 static sg_io_hdr_t ac_aggr;
20337 if (sizeof ac_aggr.interface_id)
20338 return 0;
20339   ;
20340   return 0;
20341 }
20342 _ACEOF
20343 rm -f conftest.$ac_objext
20344 if { (ac_try="$ac_compile"
20345 case "(($ac_try" in
20346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347   *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350   (eval "$ac_compile") 2>conftest.er1
20351   ac_status=$?
20352   grep -v '^ *+' conftest.er1 >conftest.err
20353   rm -f conftest.er1
20354   cat conftest.err >&5
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); } && {
20357          test -z "$ac_c_werror_flag" ||
20358          test ! -s conftest.err
20359        } && test -s conftest.$ac_objext; then
20360   ac_cv_member_sg_io_hdr_t_interface_id=yes
20361 else
20362   echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365         ac_cv_member_sg_io_hdr_t_interface_id=no
20366 fi
20367
20368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369 fi
20370
20371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372 fi
20373 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
20374 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
20375 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
20376
20377 cat >>confdefs.h <<_ACEOF
20378 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
20379 _ACEOF
20380
20381
20382 fi
20383
20384
20385 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
20386 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
20387 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
20388   echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390   cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h.  */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h.  */
20396 #include <signal.h>
20397
20398 int
20399 main ()
20400 {
20401 static siginfo_t ac_aggr;
20402 if (ac_aggr.si_fd)
20403 return 0;
20404   ;
20405   return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest.$ac_objext
20409 if { (ac_try="$ac_compile"
20410 case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_compile") 2>conftest.er1
20416   ac_status=$?
20417   grep -v '^ *+' conftest.er1 >conftest.err
20418   rm -f conftest.er1
20419   cat conftest.err >&5
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); } && {
20422          test -z "$ac_c_werror_flag" ||
20423          test ! -s conftest.err
20424        } && test -s conftest.$ac_objext; then
20425   ac_cv_member_siginfo_t_si_fd=yes
20426 else
20427   echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430         cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h.  */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h.  */
20436 #include <signal.h>
20437
20438 int
20439 main ()
20440 {
20441 static siginfo_t ac_aggr;
20442 if (sizeof ac_aggr.si_fd)
20443 return 0;
20444   ;
20445   return 0;
20446 }
20447 _ACEOF
20448 rm -f conftest.$ac_objext
20449 if { (ac_try="$ac_compile"
20450 case "(($ac_try" in
20451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452   *) ac_try_echo=$ac_try;;
20453 esac
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455   (eval "$ac_compile") 2>conftest.er1
20456   ac_status=$?
20457   grep -v '^ *+' conftest.er1 >conftest.err
20458   rm -f conftest.er1
20459   cat conftest.err >&5
20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461   (exit $ac_status); } && {
20462          test -z "$ac_c_werror_flag" ||
20463          test ! -s conftest.err
20464        } && test -s conftest.$ac_objext; then
20465   ac_cv_member_siginfo_t_si_fd=yes
20466 else
20467   echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20469
20470         ac_cv_member_siginfo_t_si_fd=no
20471 fi
20472
20473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20474 fi
20475
20476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20477 fi
20478 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
20479 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
20480 if test $ac_cv_member_siginfo_t_si_fd = yes; then
20481
20482 cat >>confdefs.h <<_ACEOF
20483 #define HAVE_SIGINFO_T_SI_FD 1
20484 _ACEOF
20485
20486
20487 fi
20488
20489
20490 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
20491 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
20492 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
20493   echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495   cat >conftest.$ac_ext <<_ACEOF
20496 /* confdefs.h.  */
20497 _ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h.  */
20501 #include <sys/types.h>
20502 #ifdef HAVE_SYS_MTIO_H
20503 #include <sys/mtio.h>
20504 #endif
20505
20506 int
20507 main ()
20508 {
20509 static struct mtget ac_aggr;
20510 if (ac_aggr.mt_blksiz)
20511 return 0;
20512   ;
20513   return 0;
20514 }
20515 _ACEOF
20516 rm -f conftest.$ac_objext
20517 if { (ac_try="$ac_compile"
20518 case "(($ac_try" in
20519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520   *) ac_try_echo=$ac_try;;
20521 esac
20522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20523   (eval "$ac_compile") 2>conftest.er1
20524   ac_status=$?
20525   grep -v '^ *+' conftest.er1 >conftest.err
20526   rm -f conftest.er1
20527   cat conftest.err >&5
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); } && {
20530          test -z "$ac_c_werror_flag" ||
20531          test ! -s conftest.err
20532        } && test -s conftest.$ac_objext; then
20533   ac_cv_member_struct_mtget_mt_blksiz=yes
20534 else
20535   echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20537
20538         cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h.  */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h.  */
20544 #include <sys/types.h>
20545 #ifdef HAVE_SYS_MTIO_H
20546 #include <sys/mtio.h>
20547 #endif
20548
20549 int
20550 main ()
20551 {
20552 static struct mtget ac_aggr;
20553 if (sizeof ac_aggr.mt_blksiz)
20554 return 0;
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext
20560 if { (ac_try="$ac_compile"
20561 case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_compile") 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } && {
20573          test -z "$ac_c_werror_flag" ||
20574          test ! -s conftest.err
20575        } && test -s conftest.$ac_objext; then
20576   ac_cv_member_struct_mtget_mt_blksiz=yes
20577 else
20578   echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20580
20581         ac_cv_member_struct_mtget_mt_blksiz=no
20582 fi
20583
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20585 fi
20586
20587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20588 fi
20589 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
20590 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
20591 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
20592
20593 cat >>confdefs.h <<_ACEOF
20594 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
20595 _ACEOF
20596
20597
20598 fi
20599 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
20600 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
20601 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
20602   echo $ECHO_N "(cached) $ECHO_C" >&6
20603 else
20604   cat >conftest.$ac_ext <<_ACEOF
20605 /* confdefs.h.  */
20606 _ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h.  */
20610 #include <sys/types.h>
20611 #ifdef HAVE_SYS_MTIO_H
20612 #include <sys/mtio.h>
20613 #endif
20614
20615 int
20616 main ()
20617 {
20618 static struct mtget ac_aggr;
20619 if (ac_aggr.mt_gstat)
20620 return 0;
20621   ;
20622   return 0;
20623 }
20624 _ACEOF
20625 rm -f conftest.$ac_objext
20626 if { (ac_try="$ac_compile"
20627 case "(($ac_try" in
20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629   *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632   (eval "$ac_compile") 2>conftest.er1
20633   ac_status=$?
20634   grep -v '^ *+' conftest.er1 >conftest.err
20635   rm -f conftest.er1
20636   cat conftest.err >&5
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); } && {
20639          test -z "$ac_c_werror_flag" ||
20640          test ! -s conftest.err
20641        } && test -s conftest.$ac_objext; then
20642   ac_cv_member_struct_mtget_mt_gstat=yes
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647         cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h.  */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h.  */
20653 #include <sys/types.h>
20654 #ifdef HAVE_SYS_MTIO_H
20655 #include <sys/mtio.h>
20656 #endif
20657
20658 int
20659 main ()
20660 {
20661 static struct mtget ac_aggr;
20662 if (sizeof ac_aggr.mt_gstat)
20663 return 0;
20664   ;
20665   return 0;
20666 }
20667 _ACEOF
20668 rm -f conftest.$ac_objext
20669 if { (ac_try="$ac_compile"
20670 case "(($ac_try" in
20671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672   *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675   (eval "$ac_compile") 2>conftest.er1
20676   ac_status=$?
20677   grep -v '^ *+' conftest.er1 >conftest.err
20678   rm -f conftest.er1
20679   cat conftest.err >&5
20680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); } && {
20682          test -z "$ac_c_werror_flag" ||
20683          test ! -s conftest.err
20684        } && test -s conftest.$ac_objext; then
20685   ac_cv_member_struct_mtget_mt_gstat=yes
20686 else
20687   echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690         ac_cv_member_struct_mtget_mt_gstat=no
20691 fi
20692
20693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20694 fi
20695
20696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20697 fi
20698 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
20699 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
20700 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
20701
20702 cat >>confdefs.h <<_ACEOF
20703 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
20704 _ACEOF
20705
20706
20707 fi
20708 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
20709 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
20710 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
20711   echo $ECHO_N "(cached) $ECHO_C" >&6
20712 else
20713   cat >conftest.$ac_ext <<_ACEOF
20714 /* confdefs.h.  */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h.  */
20719 #include <sys/types.h>
20720 #ifdef HAVE_SYS_MTIO_H
20721 #include <sys/mtio.h>
20722 #endif
20723
20724 int
20725 main ()
20726 {
20727 static struct mtget ac_aggr;
20728 if (ac_aggr.mt_blkno)
20729 return 0;
20730   ;
20731   return 0;
20732 }
20733 _ACEOF
20734 rm -f conftest.$ac_objext
20735 if { (ac_try="$ac_compile"
20736 case "(($ac_try" in
20737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738   *) ac_try_echo=$ac_try;;
20739 esac
20740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20741   (eval "$ac_compile") 2>conftest.er1
20742   ac_status=$?
20743   grep -v '^ *+' conftest.er1 >conftest.err
20744   rm -f conftest.er1
20745   cat conftest.err >&5
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } && {
20748          test -z "$ac_c_werror_flag" ||
20749          test ! -s conftest.err
20750        } && test -s conftest.$ac_objext; then
20751   ac_cv_member_struct_mtget_mt_blkno=yes
20752 else
20753   echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756         cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h.  */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h.  */
20762 #include <sys/types.h>
20763 #ifdef HAVE_SYS_MTIO_H
20764 #include <sys/mtio.h>
20765 #endif
20766
20767 int
20768 main ()
20769 {
20770 static struct mtget ac_aggr;
20771 if (sizeof ac_aggr.mt_blkno)
20772 return 0;
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 rm -f conftest.$ac_objext
20778 if { (ac_try="$ac_compile"
20779 case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784   (eval "$ac_compile") 2>conftest.er1
20785   ac_status=$?
20786   grep -v '^ *+' conftest.er1 >conftest.err
20787   rm -f conftest.er1
20788   cat conftest.err >&5
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); } && {
20791          test -z "$ac_c_werror_flag" ||
20792          test ! -s conftest.err
20793        } && test -s conftest.$ac_objext; then
20794   ac_cv_member_struct_mtget_mt_blkno=yes
20795 else
20796   echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799         ac_cv_member_struct_mtget_mt_blkno=no
20800 fi
20801
20802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20803 fi
20804
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20806 fi
20807 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
20808 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
20809 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
20810
20811 cat >>confdefs.h <<_ACEOF
20812 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
20813 _ACEOF
20814
20815
20816 fi
20817
20818
20819 { echo "$as_me:$LINENO: checking for struct option.name" >&5
20820 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
20821 if test "${ac_cv_member_struct_option_name+set}" = set; then
20822   echo $ECHO_N "(cached) $ECHO_C" >&6
20823 else
20824   cat >conftest.$ac_ext <<_ACEOF
20825 /* confdefs.h.  */
20826 _ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h.  */
20830 #ifdef HAVE_GETOPT_H
20831 #include <getopt.h>
20832 #endif
20833
20834 int
20835 main ()
20836 {
20837 static struct option ac_aggr;
20838 if (ac_aggr.name)
20839 return 0;
20840   ;
20841   return 0;
20842 }
20843 _ACEOF
20844 rm -f conftest.$ac_objext
20845 if { (ac_try="$ac_compile"
20846 case "(($ac_try" in
20847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848   *) ac_try_echo=$ac_try;;
20849 esac
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851   (eval "$ac_compile") 2>conftest.er1
20852   ac_status=$?
20853   grep -v '^ *+' conftest.er1 >conftest.err
20854   rm -f conftest.er1
20855   cat conftest.err >&5
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); } && {
20858          test -z "$ac_c_werror_flag" ||
20859          test ! -s conftest.err
20860        } && test -s conftest.$ac_objext; then
20861   ac_cv_member_struct_option_name=yes
20862 else
20863   echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20865
20866         cat >conftest.$ac_ext <<_ACEOF
20867 /* confdefs.h.  */
20868 _ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h.  */
20872 #ifdef HAVE_GETOPT_H
20873 #include <getopt.h>
20874 #endif
20875
20876 int
20877 main ()
20878 {
20879 static struct option ac_aggr;
20880 if (sizeof ac_aggr.name)
20881 return 0;
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_compile") 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } && {
20900          test -z "$ac_c_werror_flag" ||
20901          test ! -s conftest.err
20902        } && test -s conftest.$ac_objext; then
20903   ac_cv_member_struct_option_name=yes
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908         ac_cv_member_struct_option_name=no
20909 fi
20910
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 fi
20913
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 fi
20916 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
20917 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
20918 if test $ac_cv_member_struct_option_name = yes; then
20919
20920 cat >>confdefs.h <<_ACEOF
20921 #define HAVE_STRUCT_OPTION_NAME 1
20922 _ACEOF
20923
20924
20925 fi
20926
20927
20928 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20929 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20930 if test "${ac_cv_member_struct_stat_st_blocks+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 $ac_includes_default
20940 int
20941 main ()
20942 {
20943 static struct stat ac_aggr;
20944 if (ac_aggr.st_blocks)
20945 return 0;
20946   ;
20947   return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest.$ac_objext
20951 if { (ac_try="$ac_compile"
20952 case "(($ac_try" in
20953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954   *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957   (eval "$ac_compile") 2>conftest.er1
20958   ac_status=$?
20959   grep -v '^ *+' conftest.er1 >conftest.err
20960   rm -f conftest.er1
20961   cat conftest.err >&5
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); } && {
20964          test -z "$ac_c_werror_flag" ||
20965          test ! -s conftest.err
20966        } && test -s conftest.$ac_objext; then
20967   ac_cv_member_struct_stat_st_blocks=yes
20968 else
20969   echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20971
20972         cat >conftest.$ac_ext <<_ACEOF
20973 /* confdefs.h.  */
20974 _ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h.  */
20978 $ac_includes_default
20979 int
20980 main ()
20981 {
20982 static struct stat ac_aggr;
20983 if (sizeof ac_aggr.st_blocks)
20984 return 0;
20985   ;
20986   return 0;
20987 }
20988 _ACEOF
20989 rm -f conftest.$ac_objext
20990 if { (ac_try="$ac_compile"
20991 case "(($ac_try" in
20992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993   *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996   (eval "$ac_compile") 2>conftest.er1
20997   ac_status=$?
20998   grep -v '^ *+' conftest.er1 >conftest.err
20999   rm -f conftest.er1
21000   cat conftest.err >&5
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } && {
21003          test -z "$ac_c_werror_flag" ||
21004          test ! -s conftest.err
21005        } && test -s conftest.$ac_objext; then
21006   ac_cv_member_struct_stat_st_blocks=yes
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011         ac_cv_member_struct_stat_st_blocks=no
21012 fi
21013
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21015 fi
21016
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 fi
21019 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21020 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21021 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21022
21023 cat >>confdefs.h <<_ACEOF
21024 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21025 _ACEOF
21026
21027
21028 fi
21029
21030
21031 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
21032 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
21033 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
21034   echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036   cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h.  */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h.  */
21042 #ifdef HAVE_SYS_TYPES_H
21043 #include <sys/types.h>
21044 #endif
21045 #ifdef HAVE_NETINET_IN_H
21046 #include <netinet/in.h>
21047 #endif
21048
21049 int
21050 main ()
21051 {
21052 static struct sockaddr_in6 ac_aggr;
21053 if (ac_aggr.sin6_scope_id)
21054 return 0;
21055   ;
21056   return 0;
21057 }
21058 _ACEOF
21059 rm -f conftest.$ac_objext
21060 if { (ac_try="$ac_compile"
21061 case "(($ac_try" in
21062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21063   *) ac_try_echo=$ac_try;;
21064 esac
21065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21066   (eval "$ac_compile") 2>conftest.er1
21067   ac_status=$?
21068   grep -v '^ *+' conftest.er1 >conftest.err
21069   rm -f conftest.er1
21070   cat conftest.err >&5
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); } && {
21073          test -z "$ac_c_werror_flag" ||
21074          test ! -s conftest.err
21075        } && test -s conftest.$ac_objext; then
21076   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
21077 else
21078   echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21080
21081         cat >conftest.$ac_ext <<_ACEOF
21082 /* confdefs.h.  */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h.  */
21087 #ifdef HAVE_SYS_TYPES_H
21088 #include <sys/types.h>
21089 #endif
21090 #ifdef HAVE_NETINET_IN_H
21091 #include <netinet/in.h>
21092 #endif
21093
21094 int
21095 main ()
21096 {
21097 static struct sockaddr_in6 ac_aggr;
21098 if (sizeof ac_aggr.sin6_scope_id)
21099 return 0;
21100   ;
21101   return 0;
21102 }
21103 _ACEOF
21104 rm -f conftest.$ac_objext
21105 if { (ac_try="$ac_compile"
21106 case "(($ac_try" in
21107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108   *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111   (eval "$ac_compile") 2>conftest.er1
21112   ac_status=$?
21113   grep -v '^ *+' conftest.er1 >conftest.err
21114   rm -f conftest.er1
21115   cat conftest.err >&5
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); } && {
21118          test -z "$ac_c_werror_flag" ||
21119          test ! -s conftest.err
21120        } && test -s conftest.$ac_objext; then
21121   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
21122 else
21123   echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
21127 fi
21128
21129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21130 fi
21131
21132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21133 fi
21134 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
21135 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
21136 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
21137
21138 cat >>confdefs.h <<_ACEOF
21139 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
21140 _ACEOF
21141
21142
21143 fi
21144
21145
21146 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
21147 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
21148 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151   cat >conftest.$ac_ext <<_ACEOF
21152 /* confdefs.h.  */
21153 _ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h.  */
21157 #ifdef HAVE_SYS_TYPES_H
21158 #include <sys/types.h>
21159 #endif
21160 #ifdef HAVE_NETINET_IN_H
21161 # include <netinet/in.h>
21162 #endif
21163 #ifdef HAVE_ARPA_NAMESER_H
21164 # include <arpa/nameser.h>
21165 #endif
21166
21167 int
21168 main ()
21169 {
21170 static ns_msg ac_aggr;
21171 if (ac_aggr._msg_ptr)
21172 return 0;
21173   ;
21174   return 0;
21175 }
21176 _ACEOF
21177 rm -f conftest.$ac_objext
21178 if { (ac_try="$ac_compile"
21179 case "(($ac_try" in
21180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181   *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184   (eval "$ac_compile") 2>conftest.er1
21185   ac_status=$?
21186   grep -v '^ *+' conftest.er1 >conftest.err
21187   rm -f conftest.er1
21188   cat conftest.err >&5
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); } && {
21191          test -z "$ac_c_werror_flag" ||
21192          test ! -s conftest.err
21193        } && test -s conftest.$ac_objext; then
21194   ac_cv_member_ns_msg__msg_ptr=yes
21195 else
21196   echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21198
21199         cat >conftest.$ac_ext <<_ACEOF
21200 /* confdefs.h.  */
21201 _ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h.  */
21205 #ifdef HAVE_SYS_TYPES_H
21206 #include <sys/types.h>
21207 #endif
21208 #ifdef HAVE_NETINET_IN_H
21209 # include <netinet/in.h>
21210 #endif
21211 #ifdef HAVE_ARPA_NAMESER_H
21212 # include <arpa/nameser.h>
21213 #endif
21214
21215 int
21216 main ()
21217 {
21218 static ns_msg ac_aggr;
21219 if (sizeof ac_aggr._msg_ptr)
21220 return 0;
21221   ;
21222   return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229   *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232   (eval "$ac_compile") 2>conftest.er1
21233   ac_status=$?
21234   grep -v '^ *+' conftest.er1 >conftest.err
21235   rm -f conftest.er1
21236   cat conftest.err >&5
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); } && {
21239          test -z "$ac_c_werror_flag" ||
21240          test ! -s conftest.err
21241        } && test -s conftest.$ac_objext; then
21242   ac_cv_member_ns_msg__msg_ptr=yes
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247         ac_cv_member_ns_msg__msg_ptr=no
21248 fi
21249
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21251 fi
21252
21253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 fi
21255 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
21256 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
21257 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
21258
21259 cat >>confdefs.h <<_ACEOF
21260 #define HAVE_NS_MSG__MSG_PTR 1
21261 _ACEOF
21262
21263
21264 fi
21265
21266
21267 { echo "$as_me:$LINENO: checking for timezone variable" >&5
21268 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
21269 if test "${ac_cv_have_timezone+set}" = set; then
21270   echo $ECHO_N "(cached) $ECHO_C" >&6
21271 else
21272   cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h.  */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h.  */
21278 #include <time.h>
21279 int
21280 main ()
21281 {
21282 timezone = 1
21283   ;
21284   return 0;
21285 }
21286 _ACEOF
21287 rm -f conftest.$ac_objext conftest$ac_exeext
21288 if { (ac_try="$ac_link"
21289 case "(($ac_try" in
21290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291   *) ac_try_echo=$ac_try;;
21292 esac
21293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21294   (eval "$ac_link") 2>conftest.er1
21295   ac_status=$?
21296   grep -v '^ *+' conftest.er1 >conftest.err
21297   rm -f conftest.er1
21298   cat conftest.err >&5
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); } && {
21301          test -z "$ac_c_werror_flag" ||
21302          test ! -s conftest.err
21303        } && test -s conftest$ac_exeext &&
21304        $as_test_x conftest$ac_exeext; then
21305   ac_cv_have_timezone="yes"
21306 else
21307   echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310         ac_cv_have_timezone="no"
21311 fi
21312
21313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21314       conftest$ac_exeext conftest.$ac_ext
21315 fi
21316 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
21317 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
21318 if test "$ac_cv_have_timezone" = "yes"
21319 then
21320
21321 cat >>confdefs.h <<\_ACEOF
21322 #define HAVE_TIMEZONE 1
21323 _ACEOF
21324
21325 fi
21326 { echo "$as_me:$LINENO: checking for daylight variable" >&5
21327 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
21328 if test "${ac_cv_have_daylight+set}" = set; then
21329   echo $ECHO_N "(cached) $ECHO_C" >&6
21330 else
21331   cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h.  */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h.  */
21337 #include <time.h>
21338 int
21339 main ()
21340 {
21341 daylight = 1
21342   ;
21343   return 0;
21344 }
21345 _ACEOF
21346 rm -f conftest.$ac_objext conftest$ac_exeext
21347 if { (ac_try="$ac_link"
21348 case "(($ac_try" in
21349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350   *) ac_try_echo=$ac_try;;
21351 esac
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353   (eval "$ac_link") 2>conftest.er1
21354   ac_status=$?
21355   grep -v '^ *+' conftest.er1 >conftest.err
21356   rm -f conftest.er1
21357   cat conftest.err >&5
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); } && {
21360          test -z "$ac_c_werror_flag" ||
21361          test ! -s conftest.err
21362        } && test -s conftest$ac_exeext &&
21363        $as_test_x conftest$ac_exeext; then
21364   ac_cv_have_daylight="yes"
21365 else
21366   echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369         ac_cv_have_daylight="no"
21370 fi
21371
21372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21373       conftest$ac_exeext conftest.$ac_ext
21374 fi
21375 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
21376 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
21377 if test "$ac_cv_have_daylight" = "yes"
21378 then
21379
21380 cat >>confdefs.h <<\_ACEOF
21381 #define HAVE_DAYLIGHT 1
21382 _ACEOF
21383
21384 fi
21385
21386 { echo "$as_me:$LINENO: checking for isinf" >&5
21387 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
21388 if test "${ac_cv_have_isinf+set}" = set; then
21389   echo $ECHO_N "(cached) $ECHO_C" >&6
21390 else
21391   cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h.  */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h.  */
21397 #include <math.h>
21398 int
21399 main ()
21400 {
21401 float f = 0.0; int i=isinf(f)
21402   ;
21403   return 0;
21404 }
21405 _ACEOF
21406 rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (ac_try="$ac_link"
21408 case "(($ac_try" in
21409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410   *) ac_try_echo=$ac_try;;
21411 esac
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413   (eval "$ac_link") 2>conftest.er1
21414   ac_status=$?
21415   grep -v '^ *+' conftest.er1 >conftest.err
21416   rm -f conftest.er1
21417   cat conftest.err >&5
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); } && {
21420          test -z "$ac_c_werror_flag" ||
21421          test ! -s conftest.err
21422        } && test -s conftest$ac_exeext &&
21423        $as_test_x conftest$ac_exeext; then
21424   ac_cv_have_isinf="yes"
21425 else
21426   echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429         ac_cv_have_isinf="no"
21430 fi
21431
21432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21433       conftest$ac_exeext conftest.$ac_ext
21434 fi
21435 { echo "$as_me:$LINENO: result: $ac_cv_have_isinf" >&5
21436 echo "${ECHO_T}$ac_cv_have_isinf" >&6; }
21437 if test "$ac_cv_have_isinf" = "yes"
21438 then
21439
21440 cat >>confdefs.h <<\_ACEOF
21441 #define HAVE_ISINF 1
21442 _ACEOF
21443
21444 fi
21445
21446
21447 case $host_cpu in
21448   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
21449 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
21450 if test "${ac_cv_cpp_def___i386__+set}" = set; then
21451   echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453   cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h.  */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h.  */
21459 #ifndef __i386__
21460 yes
21461 #endif
21462 _ACEOF
21463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21464   $EGREP "yes" >/dev/null 2>&1; then
21465   ac_cv_cpp_def___i386__=yes
21466 else
21467   ac_cv_cpp_def___i386__=no
21468 fi
21469 rm -f conftest*
21470
21471 fi
21472 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
21473 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
21474 if test $ac_cv_cpp_def___i386__ = yes; then
21475   CFLAGS="$CFLAGS -D__i386__"
21476   LINTFLAGS="$LINTFLAGS -D__i386__"
21477 fi
21478  ;;
21479   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
21480 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
21481 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
21482   echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484   cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490 #ifndef __x86_64__
21491 yes
21492 #endif
21493 _ACEOF
21494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21495   $EGREP "yes" >/dev/null 2>&1; then
21496   ac_cv_cpp_def___x86_64__=yes
21497 else
21498   ac_cv_cpp_def___x86_64__=no
21499 fi
21500 rm -f conftest*
21501
21502 fi
21503 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
21504 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
21505 if test $ac_cv_cpp_def___x86_64__ = yes; then
21506   CFLAGS="$CFLAGS -D__x86_64__"
21507   LINTFLAGS="$LINTFLAGS -D__x86_64__"
21508 fi
21509  ;;
21510   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
21511 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
21512 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
21513   echo $ECHO_N "(cached) $ECHO_C" >&6
21514 else
21515   cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h.  */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h.  */
21521 #ifndef __ALPHA__
21522 yes
21523 #endif
21524 _ACEOF
21525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21526   $EGREP "yes" >/dev/null 2>&1; then
21527   ac_cv_cpp_def___ALPHA__=yes
21528 else
21529   ac_cv_cpp_def___ALPHA__=no
21530 fi
21531 rm -f conftest*
21532
21533 fi
21534 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
21535 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
21536 if test $ac_cv_cpp_def___ALPHA__ = yes; then
21537   CFLAGS="$CFLAGS -D__ALPHA__"
21538   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
21539 fi
21540  ;;
21541   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
21542 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
21543 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
21544   echo $ECHO_N "(cached) $ECHO_C" >&6
21545 else
21546   cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h.  */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h.  */
21552 #ifndef __sparc__
21553 yes
21554 #endif
21555 _ACEOF
21556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21557   $EGREP "yes" >/dev/null 2>&1; then
21558   ac_cv_cpp_def___sparc__=yes
21559 else
21560   ac_cv_cpp_def___sparc__=no
21561 fi
21562 rm -f conftest*
21563
21564 fi
21565 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
21566 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
21567 if test $ac_cv_cpp_def___sparc__ = yes; then
21568   CFLAGS="$CFLAGS -D__sparc__"
21569   LINTFLAGS="$LINTFLAGS -D__sparc__"
21570 fi
21571  ;;
21572   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
21573 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
21574 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
21575   echo $ECHO_N "(cached) $ECHO_C" >&6
21576 else
21577   cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h.  */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h.  */
21583 #ifndef __powerpc__
21584 yes
21585 #endif
21586 _ACEOF
21587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21588   $EGREP "yes" >/dev/null 2>&1; then
21589   ac_cv_cpp_def___powerpc__=yes
21590 else
21591   ac_cv_cpp_def___powerpc__=no
21592 fi
21593 rm -f conftest*
21594
21595 fi
21596 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
21597 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
21598 if test $ac_cv_cpp_def___powerpc__ = yes; then
21599   CFLAGS="$CFLAGS -D__powerpc__"
21600   LINTFLAGS="$LINTFLAGS -D__powerpc__"
21601 fi
21602  ;;
21603 esac
21604
21605 case $host_vendor in
21606   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
21607 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
21608 if test "${ac_cv_cpp_def___sun__+set}" = set; then
21609   echo $ECHO_N "(cached) $ECHO_C" >&6
21610 else
21611   cat >conftest.$ac_ext <<_ACEOF
21612 /* confdefs.h.  */
21613 _ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h.  */
21617 #ifndef __sun__
21618 yes
21619 #endif
21620 _ACEOF
21621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21622   $EGREP "yes" >/dev/null 2>&1; then
21623   ac_cv_cpp_def___sun__=yes
21624 else
21625   ac_cv_cpp_def___sun__=no
21626 fi
21627 rm -f conftest*
21628
21629 fi
21630 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
21631 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
21632 if test $ac_cv_cpp_def___sun__ = yes; then
21633   CFLAGS="$CFLAGS -D__sun__"
21634   LINTFLAGS="$LINTFLAGS -D__sun__"
21635 fi
21636  ;;
21637 esac
21638
21639
21640 DEPENDENCIES="### Dependencies:
21641
21642 .INIT: Makefile
21643 .BEGIN: Makefile
21644 Makefile: dummy
21645         -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
21646
21647 \$(OBJS): \$(IDL_GEN_HEADERS)
21648 \$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
21649 \$(RC_SRCS:.rc=.res): \$(IDL_TLB_SRCS:.idl=.tlb)
21650 \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
21651 \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
21652
21653
21654
21655
21656
21657 ac_config_commands="$ac_config_commands include/stamp-h"
21658
21659
21660 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
21661
21662 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
21663
21664 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
21665
21666 ac_config_commands="$ac_config_commands dlls/user32/resources"
21667
21668 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
21669
21670 ac_config_commands="$ac_config_commands include/wine"
21671
21672
21673 MAKE_RULES=Make.rules
21674
21675
21676 MAKE_DLL_RULES=dlls/Makedll.rules
21677
21678
21679 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
21680
21681
21682 MAKE_TEST_RULES=dlls/Maketest.rules
21683
21684
21685 MAKE_PROG_RULES=programs/Makeprog.rules
21686
21687
21688 ac_config_files="$ac_config_files Make.rules"
21689
21690 ac_config_files="$ac_config_files dlls/Makedll.rules"
21691
21692 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
21693
21694 ac_config_files="$ac_config_files dlls/Maketest.rules"
21695
21696 ac_config_files="$ac_config_files programs/Makeprog.rules"
21697
21698 ac_config_files="$ac_config_files Makefile"
21699
21700 ac_config_files="$ac_config_files dlls/Makefile"
21701
21702 ac_config_files="$ac_config_files dlls/acledit/Makefile"
21703
21704 ac_config_files="$ac_config_files dlls/activeds/Makefile"
21705
21706 ac_config_files="$ac_config_files dlls/actxprxy/Makefile"
21707
21708 ac_config_files="$ac_config_files dlls/adsiid/Makefile"
21709
21710 ac_config_files="$ac_config_files dlls/advapi32/Makefile"
21711
21712 ac_config_files="$ac_config_files dlls/advapi32/tests/Makefile"
21713
21714 ac_config_files="$ac_config_files dlls/advpack/Makefile"
21715
21716 ac_config_files="$ac_config_files dlls/advpack/tests/Makefile"
21717
21718 ac_config_files="$ac_config_files dlls/amstream/Makefile"
21719
21720 ac_config_files="$ac_config_files dlls/atl/Makefile"
21721
21722 ac_config_files="$ac_config_files dlls/avicap32/Makefile"
21723
21724 ac_config_files="$ac_config_files dlls/avifil32/Makefile"
21725
21726 ac_config_files="$ac_config_files dlls/browseui/Makefile"
21727
21728 ac_config_files="$ac_config_files dlls/browseui/tests/Makefile"
21729
21730 ac_config_files="$ac_config_files dlls/cabinet/Makefile"
21731
21732 ac_config_files="$ac_config_files dlls/cabinet/tests/Makefile"
21733
21734 ac_config_files="$ac_config_files dlls/capi2032/Makefile"
21735
21736 ac_config_files="$ac_config_files dlls/cards/Makefile"
21737
21738 ac_config_files="$ac_config_files dlls/cfgmgr32/Makefile"
21739
21740 ac_config_files="$ac_config_files dlls/clusapi/Makefile"
21741
21742 ac_config_files="$ac_config_files dlls/comcat/Makefile"
21743
21744 ac_config_files="$ac_config_files dlls/comcat/tests/Makefile"
21745
21746 ac_config_files="$ac_config_files dlls/comctl32/Makefile"
21747
21748 ac_config_files="$ac_config_files dlls/comctl32/tests/Makefile"
21749
21750 ac_config_files="$ac_config_files dlls/comdlg32/Makefile"
21751
21752 ac_config_files="$ac_config_files dlls/comdlg32/tests/Makefile"
21753
21754 ac_config_files="$ac_config_files dlls/compstui/Makefile"
21755
21756 ac_config_files="$ac_config_files dlls/credui/Makefile"
21757
21758 ac_config_files="$ac_config_files dlls/credui/tests/Makefile"
21759
21760 ac_config_files="$ac_config_files dlls/crtdll/Makefile"
21761
21762 ac_config_files="$ac_config_files dlls/crypt32/Makefile"
21763
21764 ac_config_files="$ac_config_files dlls/crypt32/tests/Makefile"
21765
21766 ac_config_files="$ac_config_files dlls/cryptdlg/Makefile"
21767
21768 ac_config_files="$ac_config_files dlls/cryptdll/Makefile"
21769
21770 ac_config_files="$ac_config_files dlls/cryptnet/Makefile"
21771
21772 ac_config_files="$ac_config_files dlls/cryptnet/tests/Makefile"
21773
21774 ac_config_files="$ac_config_files dlls/cryptui/Makefile"
21775
21776 ac_config_files="$ac_config_files dlls/ctapi32/Makefile"
21777
21778 ac_config_files="$ac_config_files dlls/ctl3d32/Makefile"
21779
21780 ac_config_files="$ac_config_files dlls/d3d10/Makefile"
21781
21782 ac_config_files="$ac_config_files dlls/d3d8/Makefile"
21783
21784 ac_config_files="$ac_config_files dlls/d3d8/tests/Makefile"
21785
21786 ac_config_files="$ac_config_files dlls/d3d9/Makefile"
21787
21788 ac_config_files="$ac_config_files dlls/d3d9/tests/Makefile"
21789
21790 ac_config_files="$ac_config_files dlls/d3dim/Makefile"
21791
21792 ac_config_files="$ac_config_files dlls/d3drm/Makefile"
21793
21794 ac_config_files="$ac_config_files dlls/d3drm/tests/Makefile"
21795
21796 ac_config_files="$ac_config_files dlls/d3dx8/Makefile"
21797
21798 ac_config_files="$ac_config_files dlls/d3dx8/tests/Makefile"
21799
21800 ac_config_files="$ac_config_files dlls/d3dx9_24/Makefile"
21801
21802 ac_config_files="$ac_config_files dlls/d3dx9_25/Makefile"
21803
21804 ac_config_files="$ac_config_files dlls/d3dx9_26/Makefile"
21805
21806 ac_config_files="$ac_config_files dlls/d3dx9_27/Makefile"
21807
21808 ac_config_files="$ac_config_files dlls/d3dx9_28/Makefile"
21809
21810 ac_config_files="$ac_config_files dlls/d3dx9_29/Makefile"
21811
21812 ac_config_files="$ac_config_files dlls/d3dx9_30/Makefile"
21813
21814 ac_config_files="$ac_config_files dlls/d3dx9_31/Makefile"
21815
21816 ac_config_files="$ac_config_files dlls/d3dx9_32/Makefile"
21817
21818 ac_config_files="$ac_config_files dlls/d3dx9_33/Makefile"
21819
21820 ac_config_files="$ac_config_files dlls/d3dx9_34/Makefile"
21821
21822 ac_config_files="$ac_config_files dlls/d3dx9_35/Makefile"
21823
21824 ac_config_files="$ac_config_files dlls/d3dx9_36/Makefile"
21825
21826 ac_config_files="$ac_config_files dlls/d3dx9_36/tests/Makefile"
21827
21828 ac_config_files="$ac_config_files dlls/d3dx9_37/Makefile"
21829
21830 ac_config_files="$ac_config_files dlls/d3dxof/Makefile"
21831
21832 ac_config_files="$ac_config_files dlls/dbghelp/Makefile"
21833
21834 ac_config_files="$ac_config_files dlls/dciman32/Makefile"
21835
21836 ac_config_files="$ac_config_files dlls/ddraw/Makefile"
21837
21838 ac_config_files="$ac_config_files dlls/ddraw/tests/Makefile"
21839
21840 ac_config_files="$ac_config_files dlls/ddrawex/Makefile"
21841
21842 ac_config_files="$ac_config_files dlls/devenum/Makefile"
21843
21844 ac_config_files="$ac_config_files dlls/dinput/Makefile"
21845
21846 ac_config_files="$ac_config_files dlls/dinput/tests/Makefile"
21847
21848 ac_config_files="$ac_config_files dlls/dinput8/Makefile"
21849
21850 ac_config_files="$ac_config_files dlls/dmband/Makefile"
21851
21852 ac_config_files="$ac_config_files dlls/dmcompos/Makefile"
21853
21854 ac_config_files="$ac_config_files dlls/dmime/Makefile"
21855
21856 ac_config_files="$ac_config_files dlls/dmloader/Makefile"
21857
21858 ac_config_files="$ac_config_files dlls/dmscript/Makefile"
21859
21860 ac_config_files="$ac_config_files dlls/dmstyle/Makefile"
21861
21862 ac_config_files="$ac_config_files dlls/dmsynth/Makefile"
21863
21864 ac_config_files="$ac_config_files dlls/dmusic/Makefile"
21865
21866 ac_config_files="$ac_config_files dlls/dmusic32/Makefile"
21867
21868 ac_config_files="$ac_config_files dlls/dnsapi/Makefile"
21869
21870 ac_config_files="$ac_config_files dlls/dnsapi/tests/Makefile"
21871
21872 ac_config_files="$ac_config_files dlls/dplay/Makefile"
21873
21874 ac_config_files="$ac_config_files dlls/dplayx/Makefile"
21875
21876 ac_config_files="$ac_config_files dlls/dplayx/tests/Makefile"
21877
21878 ac_config_files="$ac_config_files dlls/dpnaddr/Makefile"
21879
21880 ac_config_files="$ac_config_files dlls/dpnet/Makefile"
21881
21882 ac_config_files="$ac_config_files dlls/dpnhpast/Makefile"
21883
21884 ac_config_files="$ac_config_files dlls/dpnlobby/Makefile"
21885
21886 ac_config_files="$ac_config_files dlls/dsound/Makefile"
21887
21888 ac_config_files="$ac_config_files dlls/dsound/tests/Makefile"
21889
21890 ac_config_files="$ac_config_files dlls/dssenh/Makefile"
21891
21892 ac_config_files="$ac_config_files dlls/dswave/Makefile"
21893
21894 ac_config_files="$ac_config_files dlls/dwmapi/Makefile"
21895
21896 ac_config_files="$ac_config_files dlls/dxdiagn/Makefile"
21897
21898 ac_config_files="$ac_config_files dlls/dxerr8/Makefile"
21899
21900 ac_config_files="$ac_config_files dlls/dxerr9/Makefile"
21901
21902 ac_config_files="$ac_config_files dlls/dxguid/Makefile"
21903
21904 ac_config_files="$ac_config_files dlls/faultrep/Makefile"
21905
21906 ac_config_files="$ac_config_files dlls/fusion/Makefile"
21907
21908 ac_config_files="$ac_config_files dlls/fusion/tests/Makefile"
21909
21910 ac_config_files="$ac_config_files dlls/gdi32/Makefile"
21911
21912 ac_config_files="$ac_config_files dlls/gdi32/tests/Makefile"
21913
21914 ac_config_files="$ac_config_files dlls/gdiplus/Makefile"
21915
21916 ac_config_files="$ac_config_files dlls/gdiplus/tests/Makefile"
21917
21918 ac_config_files="$ac_config_files dlls/glu32/Makefile"
21919
21920 ac_config_files="$ac_config_files dlls/gphoto2.ds/Makefile"
21921
21922 ac_config_files="$ac_config_files dlls/gpkcsp/Makefile"
21923
21924 ac_config_files="$ac_config_files dlls/hal/Makefile"
21925
21926 ac_config_files="$ac_config_files dlls/hhctrl.ocx/Makefile"
21927
21928 ac_config_files="$ac_config_files dlls/hid/Makefile"
21929
21930 ac_config_files="$ac_config_files dlls/hlink/Makefile"
21931
21932 ac_config_files="$ac_config_files dlls/hlink/tests/Makefile"
21933
21934 ac_config_files="$ac_config_files dlls/hnetcfg/Makefile"
21935
21936 ac_config_files="$ac_config_files dlls/iccvid/Makefile"
21937
21938 ac_config_files="$ac_config_files dlls/icmp/Makefile"
21939
21940 ac_config_files="$ac_config_files dlls/ifsmgr.vxd/Makefile"
21941
21942 ac_config_files="$ac_config_files dlls/imaadp32.acm/Makefile"
21943
21944 ac_config_files="$ac_config_files dlls/imagehlp/Makefile"
21945
21946 ac_config_files="$ac_config_files dlls/imm32/Makefile"
21947
21948 ac_config_files="$ac_config_files dlls/imm32/tests/Makefile"
21949
21950 ac_config_files="$ac_config_files dlls/inetcomm/Makefile"
21951
21952 ac_config_files="$ac_config_files dlls/inetcomm/tests/Makefile"
21953
21954 ac_config_files="$ac_config_files dlls/inetmib1/Makefile"
21955
21956 ac_config_files="$ac_config_files dlls/inetmib1/tests/Makefile"
21957
21958 ac_config_files="$ac_config_files dlls/infosoft/Makefile"
21959
21960 ac_config_files="$ac_config_files dlls/infosoft/tests/Makefile"
21961
21962 ac_config_files="$ac_config_files dlls/initpki/Makefile"
21963
21964 ac_config_files="$ac_config_files dlls/inkobj/Makefile"
21965
21966 ac_config_files="$ac_config_files dlls/inseng/Makefile"
21967
21968 ac_config_files="$ac_config_files dlls/iphlpapi/Makefile"
21969
21970 ac_config_files="$ac_config_files dlls/iphlpapi/tests/Makefile"
21971
21972 ac_config_files="$ac_config_files dlls/itircl/Makefile"
21973
21974 ac_config_files="$ac_config_files dlls/itss/Makefile"
21975
21976 ac_config_files="$ac_config_files dlls/itss/tests/Makefile"
21977
21978 ac_config_files="$ac_config_files dlls/jscript/Makefile"
21979
21980 ac_config_files="$ac_config_files dlls/jscript/tests/Makefile"
21981
21982 ac_config_files="$ac_config_files dlls/kernel32/Makefile"
21983
21984 ac_config_files="$ac_config_files dlls/kernel32/tests/Makefile"
21985
21986 ac_config_files="$ac_config_files dlls/localspl/Makefile"
21987
21988 ac_config_files="$ac_config_files dlls/localspl/tests/Makefile"
21989
21990 ac_config_files="$ac_config_files dlls/localui/Makefile"
21991
21992 ac_config_files="$ac_config_files dlls/localui/tests/Makefile"
21993
21994 ac_config_files="$ac_config_files dlls/lz32/Makefile"
21995
21996 ac_config_files="$ac_config_files dlls/lz32/tests/Makefile"
21997
21998 ac_config_files="$ac_config_files dlls/mapi32/Makefile"
21999
22000 ac_config_files="$ac_config_files dlls/mapi32/tests/Makefile"
22001
22002 ac_config_files="$ac_config_files dlls/mciavi32/Makefile"
22003
22004 ac_config_files="$ac_config_files dlls/mcicda/Makefile"
22005
22006 ac_config_files="$ac_config_files dlls/mciseq/Makefile"
22007
22008 ac_config_files="$ac_config_files dlls/mciwave/Makefile"
22009
22010 ac_config_files="$ac_config_files dlls/midimap/Makefile"
22011
22012 ac_config_files="$ac_config_files dlls/mlang/Makefile"
22013
22014 ac_config_files="$ac_config_files dlls/mlang/tests/Makefile"
22015
22016 ac_config_files="$ac_config_files dlls/mmdevldr.vxd/Makefile"
22017
22018 ac_config_files="$ac_config_files dlls/monodebg.vxd/Makefile"
22019
22020 ac_config_files="$ac_config_files dlls/mountmgr.sys/Makefile"
22021
22022 ac_config_files="$ac_config_files dlls/mpr/Makefile"
22023
22024 ac_config_files="$ac_config_files dlls/mprapi/Makefile"
22025
22026 ac_config_files="$ac_config_files dlls/msacm32.drv/Makefile"
22027
22028 ac_config_files="$ac_config_files dlls/msacm32/Makefile"
22029
22030 ac_config_files="$ac_config_files dlls/msacm32/tests/Makefile"
22031
22032 ac_config_files="$ac_config_files dlls/msadp32.acm/Makefile"
22033
22034 ac_config_files="$ac_config_files dlls/mscat32/Makefile"
22035
22036 ac_config_files="$ac_config_files dlls/mscms/Makefile"
22037
22038 ac_config_files="$ac_config_files dlls/mscms/tests/Makefile"
22039
22040 ac_config_files="$ac_config_files dlls/mscoree/Makefile"
22041
22042 ac_config_files="$ac_config_files dlls/msdmo/Makefile"
22043
22044 ac_config_files="$ac_config_files dlls/msftedit/Makefile"
22045
22046 ac_config_files="$ac_config_files dlls/msg711.acm/Makefile"
22047
22048 ac_config_files="$ac_config_files dlls/mshtml.tlb/Makefile"
22049
22050 ac_config_files="$ac_config_files dlls/mshtml/Makefile"
22051
22052 ac_config_files="$ac_config_files dlls/mshtml/tests/Makefile"
22053
22054 ac_config_files="$ac_config_files dlls/msi/Makefile"
22055
22056 ac_config_files="$ac_config_files dlls/msi/tests/Makefile"
22057
22058 ac_config_files="$ac_config_files dlls/msimg32/Makefile"
22059
22060 ac_config_files="$ac_config_files dlls/msimtf/Makefile"
22061
22062 ac_config_files="$ac_config_files dlls/msisys.ocx/Makefile"
22063
22064 ac_config_files="$ac_config_files dlls/msnet32/Makefile"
22065
22066 ac_config_files="$ac_config_files dlls/msrle32/Makefile"
22067
22068 ac_config_files="$ac_config_files dlls/mssip32/Makefile"
22069
22070 ac_config_files="$ac_config_files dlls/msvcirt/Makefile"
22071
22072 ac_config_files="$ac_config_files dlls/msvcr71/Makefile"
22073
22074 ac_config_files="$ac_config_files dlls/msvcrt/Makefile"
22075
22076 ac_config_files="$ac_config_files dlls/msvcrt/tests/Makefile"
22077
22078 ac_config_files="$ac_config_files dlls/msvcrt20/Makefile"
22079
22080 ac_config_files="$ac_config_files dlls/msvcrt40/Makefile"
22081
22082 ac_config_files="$ac_config_files dlls/msvcrtd/Makefile"
22083
22084 ac_config_files="$ac_config_files dlls/msvcrtd/tests/Makefile"
22085
22086 ac_config_files="$ac_config_files dlls/msvfw32/Makefile"
22087
22088 ac_config_files="$ac_config_files dlls/msvidc32/Makefile"
22089
22090 ac_config_files="$ac_config_files dlls/mswsock/Makefile"
22091
22092 ac_config_files="$ac_config_files dlls/msxml3/Makefile"
22093
22094 ac_config_files="$ac_config_files dlls/msxml3/tests/Makefile"
22095
22096 ac_config_files="$ac_config_files dlls/nddeapi/Makefile"
22097
22098 ac_config_files="$ac_config_files dlls/netapi32/Makefile"
22099
22100 ac_config_files="$ac_config_files dlls/netapi32/tests/Makefile"
22101
22102 ac_config_files="$ac_config_files dlls/newdev/Makefile"
22103
22104 ac_config_files="$ac_config_files dlls/ntdll/Makefile"
22105
22106 ac_config_files="$ac_config_files dlls/ntdll/tests/Makefile"
22107
22108 ac_config_files="$ac_config_files dlls/ntdsapi/Makefile"
22109
22110 ac_config_files="$ac_config_files dlls/ntdsapi/tests/Makefile"
22111
22112 ac_config_files="$ac_config_files dlls/ntoskrnl.exe/Makefile"
22113
22114 ac_config_files="$ac_config_files dlls/ntprint/Makefile"
22115
22116 ac_config_files="$ac_config_files dlls/ntprint/tests/Makefile"
22117
22118 ac_config_files="$ac_config_files dlls/objsel/Makefile"
22119
22120 ac_config_files="$ac_config_files dlls/odbc32/Makefile"
22121
22122 ac_config_files="$ac_config_files dlls/odbccp32/Makefile"
22123
22124 ac_config_files="$ac_config_files dlls/odbccp32/tests/Makefile"
22125
22126 ac_config_files="$ac_config_files dlls/ole32/Makefile"
22127
22128 ac_config_files="$ac_config_files dlls/ole32/tests/Makefile"
22129
22130 ac_config_files="$ac_config_files dlls/oleacc/Makefile"
22131
22132 ac_config_files="$ac_config_files dlls/oleaut32/Makefile"
22133
22134 ac_config_files="$ac_config_files dlls/oleaut32/tests/Makefile"
22135
22136 ac_config_files="$ac_config_files dlls/olecli32/Makefile"
22137
22138 ac_config_files="$ac_config_files dlls/oledlg/Makefile"
22139
22140 ac_config_files="$ac_config_files dlls/olepro32/Makefile"
22141
22142 ac_config_files="$ac_config_files dlls/olesvr32/Makefile"
22143
22144 ac_config_files="$ac_config_files dlls/olethk32/Makefile"
22145
22146 ac_config_files="$ac_config_files dlls/opengl32/Makefile"
22147
22148 ac_config_files="$ac_config_files dlls/opengl32/tests/Makefile"
22149
22150 ac_config_files="$ac_config_files dlls/pdh/Makefile"
22151
22152 ac_config_files="$ac_config_files dlls/pdh/tests/Makefile"
22153
22154 ac_config_files="$ac_config_files dlls/powrprof/Makefile"
22155
22156 ac_config_files="$ac_config_files dlls/printui/Makefile"
22157
22158 ac_config_files="$ac_config_files dlls/propsys/Makefile"
22159
22160 ac_config_files="$ac_config_files dlls/psapi/Makefile"
22161
22162 ac_config_files="$ac_config_files dlls/psapi/tests/Makefile"
22163
22164 ac_config_files="$ac_config_files dlls/pstorec/Makefile"
22165
22166 ac_config_files="$ac_config_files dlls/qcap/Makefile"
22167
22168 ac_config_files="$ac_config_files dlls/qedit/Makefile"
22169
22170 ac_config_files="$ac_config_files dlls/qedit/tests/Makefile"
22171
22172 ac_config_files="$ac_config_files dlls/qmgr/Makefile"
22173
22174 ac_config_files="$ac_config_files dlls/qmgr/tests/Makefile"
22175
22176 ac_config_files="$ac_config_files dlls/qmgrprxy/Makefile"
22177
22178 ac_config_files="$ac_config_files dlls/quartz/Makefile"
22179
22180 ac_config_files="$ac_config_files dlls/quartz/tests/Makefile"
22181
22182 ac_config_files="$ac_config_files dlls/query/Makefile"
22183
22184 ac_config_files="$ac_config_files dlls/rasapi32/Makefile"
22185
22186 ac_config_files="$ac_config_files dlls/resutils/Makefile"
22187
22188 ac_config_files="$ac_config_files dlls/riched20/Makefile"
22189
22190 ac_config_files="$ac_config_files dlls/riched20/tests/Makefile"
22191
22192 ac_config_files="$ac_config_files dlls/riched32/Makefile"
22193
22194 ac_config_files="$ac_config_files dlls/riched32/tests/Makefile"
22195
22196 ac_config_files="$ac_config_files dlls/rpcrt4/Makefile"
22197
22198 ac_config_files="$ac_config_files dlls/rpcrt4/tests/Makefile"
22199
22200 ac_config_files="$ac_config_files dlls/rsabase/Makefile"
22201
22202 ac_config_files="$ac_config_files dlls/rsaenh/Makefile"
22203
22204 ac_config_files="$ac_config_files dlls/rsaenh/tests/Makefile"
22205
22206 ac_config_files="$ac_config_files dlls/sane.ds/Makefile"
22207
22208 ac_config_files="$ac_config_files dlls/sccbase/Makefile"
22209
22210 ac_config_files="$ac_config_files dlls/schannel/Makefile"
22211
22212 ac_config_files="$ac_config_files dlls/schannel/tests/Makefile"
22213
22214 ac_config_files="$ac_config_files dlls/secur32/Makefile"
22215
22216 ac_config_files="$ac_config_files dlls/secur32/tests/Makefile"
22217
22218 ac_config_files="$ac_config_files dlls/security/Makefile"
22219
22220 ac_config_files="$ac_config_files dlls/sensapi/Makefile"
22221
22222 ac_config_files="$ac_config_files dlls/serialui/Makefile"
22223
22224 ac_config_files="$ac_config_files dlls/serialui/tests/Makefile"
22225
22226 ac_config_files="$ac_config_files dlls/setupapi/Makefile"
22227
22228 ac_config_files="$ac_config_files dlls/setupapi/tests/Makefile"
22229
22230 ac_config_files="$ac_config_files dlls/sfc/Makefile"
22231
22232 ac_config_files="$ac_config_files dlls/sfc_os/Makefile"
22233
22234 ac_config_files="$ac_config_files dlls/shdoclc/Makefile"
22235
22236 ac_config_files="$ac_config_files dlls/shdocvw/Makefile"
22237
22238 ac_config_files="$ac_config_files dlls/shdocvw/tests/Makefile"
22239
22240 ac_config_files="$ac_config_files dlls/shell32/Makefile"
22241
22242 ac_config_files="$ac_config_files dlls/shell32/tests/Makefile"
22243
22244 ac_config_files="$ac_config_files dlls/shfolder/Makefile"
22245
22246 ac_config_files="$ac_config_files dlls/shlwapi/Makefile"
22247
22248 ac_config_files="$ac_config_files dlls/shlwapi/tests/Makefile"
22249
22250 ac_config_files="$ac_config_files dlls/slbcsp/Makefile"
22251
22252 ac_config_files="$ac_config_files dlls/slc/Makefile"
22253
22254 ac_config_files="$ac_config_files dlls/snmpapi/Makefile"
22255
22256 ac_config_files="$ac_config_files dlls/snmpapi/tests/Makefile"
22257
22258 ac_config_files="$ac_config_files dlls/softpub/Makefile"
22259
22260 ac_config_files="$ac_config_files dlls/spoolss/Makefile"
22261
22262 ac_config_files="$ac_config_files dlls/spoolss/tests/Makefile"
22263
22264 ac_config_files="$ac_config_files dlls/stdole2.tlb/Makefile"
22265
22266 ac_config_files="$ac_config_files dlls/stdole32.tlb/Makefile"
22267
22268 ac_config_files="$ac_config_files dlls/sti/Makefile"
22269
22270 ac_config_files="$ac_config_files dlls/strmiids/Makefile"
22271
22272 ac_config_files="$ac_config_files dlls/svrapi/Makefile"
22273
22274 ac_config_files="$ac_config_files dlls/sxs/Makefile"
22275
22276 ac_config_files="$ac_config_files dlls/tapi32/Makefile"
22277
22278 ac_config_files="$ac_config_files dlls/twain_32/Makefile"
22279
22280 ac_config_files="$ac_config_files dlls/unicows/Makefile"
22281
22282 ac_config_files="$ac_config_files dlls/url/Makefile"
22283
22284 ac_config_files="$ac_config_files dlls/urlmon/Makefile"
22285
22286 ac_config_files="$ac_config_files dlls/urlmon/tests/Makefile"
22287
22288 ac_config_files="$ac_config_files dlls/user32/Makefile"
22289
22290 ac_config_files="$ac_config_files dlls/user32/tests/Makefile"
22291
22292 ac_config_files="$ac_config_files dlls/userenv/Makefile"
22293
22294 ac_config_files="$ac_config_files dlls/userenv/tests/Makefile"
22295
22296 ac_config_files="$ac_config_files dlls/usp10/Makefile"
22297
22298 ac_config_files="$ac_config_files dlls/usp10/tests/Makefile"
22299
22300 ac_config_files="$ac_config_files dlls/uuid/Makefile"
22301
22302 ac_config_files="$ac_config_files dlls/uxtheme/Makefile"
22303
22304 ac_config_files="$ac_config_files dlls/uxtheme/tests/Makefile"
22305
22306 ac_config_files="$ac_config_files dlls/vdhcp.vxd/Makefile"
22307
22308 ac_config_files="$ac_config_files dlls/vdmdbg/Makefile"
22309
22310 ac_config_files="$ac_config_files dlls/version/Makefile"
22311
22312 ac_config_files="$ac_config_files dlls/version/tests/Makefile"
22313
22314 ac_config_files="$ac_config_files dlls/vmm.vxd/Makefile"
22315
22316 ac_config_files="$ac_config_files dlls/vnbt.vxd/Makefile"
22317
22318 ac_config_files="$ac_config_files dlls/vnetbios.vxd/Makefile"
22319
22320 ac_config_files="$ac_config_files dlls/vtdapi.vxd/Makefile"
22321
22322 ac_config_files="$ac_config_files dlls/vwin32.vxd/Makefile"
22323
22324 ac_config_files="$ac_config_files dlls/w32skrnl/Makefile"
22325
22326 ac_config_files="$ac_config_files dlls/winealsa.drv/Makefile"
22327
22328 ac_config_files="$ac_config_files dlls/wineaudioio.drv/Makefile"
22329
22330 ac_config_files="$ac_config_files dlls/winecoreaudio.drv/Makefile"
22331
22332 ac_config_files="$ac_config_files dlls/winecrt0/Makefile"
22333
22334 ac_config_files="$ac_config_files dlls/wined3d/Makefile"
22335
22336 ac_config_files="$ac_config_files dlls/winedos/Makefile"
22337
22338 ac_config_files="$ac_config_files dlls/wineesd.drv/Makefile"
22339
22340 ac_config_files="$ac_config_files dlls/winejack.drv/Makefile"
22341
22342 ac_config_files="$ac_config_files dlls/winejoystick.drv/Makefile"
22343
22344 ac_config_files="$ac_config_files dlls/winemp3.acm/Makefile"
22345
22346 ac_config_files="$ac_config_files dlls/winenas.drv/Makefile"
22347
22348 ac_config_files="$ac_config_files dlls/wineoss.drv/Makefile"
22349
22350 ac_config_files="$ac_config_files dlls/wineps.drv/Makefile"
22351
22352 ac_config_files="$ac_config_files dlls/winequartz.drv/Makefile"
22353
22354 ac_config_files="$ac_config_files dlls/winex11.drv/Makefile"
22355
22356 ac_config_files="$ac_config_files dlls/wing32/Makefile"
22357
22358 ac_config_files="$ac_config_files dlls/winhttp/Makefile"
22359
22360 ac_config_files="$ac_config_files dlls/wininet/Makefile"
22361
22362 ac_config_files="$ac_config_files dlls/wininet/tests/Makefile"
22363
22364 ac_config_files="$ac_config_files dlls/winmm/Makefile"
22365
22366 ac_config_files="$ac_config_files dlls/winmm/tests/Makefile"
22367
22368 ac_config_files="$ac_config_files dlls/winnls32/Makefile"
22369
22370 ac_config_files="$ac_config_files dlls/winscard/Makefile"
22371
22372 ac_config_files="$ac_config_files dlls/winspool.drv/Makefile"
22373
22374 ac_config_files="$ac_config_files dlls/winspool.drv/tests/Makefile"
22375
22376 ac_config_files="$ac_config_files dlls/wintab32/Makefile"
22377
22378 ac_config_files="$ac_config_files dlls/wintrust/Makefile"
22379
22380 ac_config_files="$ac_config_files dlls/wintrust/tests/Makefile"
22381
22382 ac_config_files="$ac_config_files dlls/wldap32/Makefile"
22383
22384 ac_config_files="$ac_config_files dlls/wmi/Makefile"
22385
22386 ac_config_files="$ac_config_files dlls/wnaspi32/Makefile"
22387
22388 ac_config_files="$ac_config_files dlls/wow32/Makefile"
22389
22390 ac_config_files="$ac_config_files dlls/ws2_32/Makefile"
22391
22392 ac_config_files="$ac_config_files dlls/ws2_32/tests/Makefile"
22393
22394 ac_config_files="$ac_config_files dlls/wsock32/Makefile"
22395
22396 ac_config_files="$ac_config_files dlls/wtsapi32/Makefile"
22397
22398 ac_config_files="$ac_config_files documentation/Makefile"
22399
22400 ac_config_files="$ac_config_files fonts/Makefile"
22401
22402 ac_config_files="$ac_config_files include/Makefile"
22403
22404 ac_config_files="$ac_config_files libs/Makefile"
22405
22406 ac_config_files="$ac_config_files libs/port/Makefile"
22407
22408 ac_config_files="$ac_config_files libs/wine/Makefile"
22409
22410 ac_config_files="$ac_config_files libs/wpp/Makefile"
22411
22412 ac_config_files="$ac_config_files loader/Makefile"
22413
22414 ac_config_files="$ac_config_files programs/Makefile"
22415
22416 ac_config_files="$ac_config_files programs/clock/Makefile"
22417
22418 ac_config_files="$ac_config_files programs/cmd/Makefile"
22419
22420 ac_config_files="$ac_config_files programs/cmdlgtst/Makefile"
22421
22422 ac_config_files="$ac_config_files programs/control/Makefile"
22423
22424 ac_config_files="$ac_config_files programs/eject/Makefile"
22425
22426 ac_config_files="$ac_config_files programs/expand/Makefile"
22427
22428 ac_config_files="$ac_config_files programs/explorer/Makefile"
22429
22430 ac_config_files="$ac_config_files programs/hh/Makefile"
22431
22432 ac_config_files="$ac_config_files programs/icinfo/Makefile"
22433
22434 ac_config_files="$ac_config_files programs/iexplore/Makefile"
22435
22436 ac_config_files="$ac_config_files programs/msiexec/Makefile"
22437
22438 ac_config_files="$ac_config_files programs/net/Makefile"
22439
22440 ac_config_files="$ac_config_files programs/notepad/Makefile"
22441
22442 ac_config_files="$ac_config_files programs/oleview/Makefile"
22443
22444 ac_config_files="$ac_config_files programs/progman/Makefile"
22445
22446 ac_config_files="$ac_config_files programs/reg/Makefile"
22447
22448 ac_config_files="$ac_config_files programs/regedit/Makefile"
22449
22450 ac_config_files="$ac_config_files programs/regsvr32/Makefile"
22451
22452 ac_config_files="$ac_config_files programs/rpcss/Makefile"
22453
22454 ac_config_files="$ac_config_files programs/rundll32/Makefile"
22455
22456 ac_config_files="$ac_config_files programs/secedit/Makefile"
22457
22458 ac_config_files="$ac_config_files programs/services/Makefile"
22459
22460 ac_config_files="$ac_config_files programs/spoolsv/Makefile"
22461
22462 ac_config_files="$ac_config_files programs/start/Makefile"
22463
22464 ac_config_files="$ac_config_files programs/svchost/Makefile"
22465
22466 ac_config_files="$ac_config_files programs/taskmgr/Makefile"
22467
22468 ac_config_files="$ac_config_files programs/uninstaller/Makefile"
22469
22470 ac_config_files="$ac_config_files programs/view/Makefile"
22471
22472 ac_config_files="$ac_config_files programs/wineboot/Makefile"
22473
22474 ac_config_files="$ac_config_files programs/winebrowser/Makefile"
22475
22476 ac_config_files="$ac_config_files programs/winecfg/Makefile"
22477
22478 ac_config_files="$ac_config_files programs/wineconsole/Makefile"
22479
22480 ac_config_files="$ac_config_files programs/winedbg/Makefile"
22481
22482 ac_config_files="$ac_config_files programs/winedevice/Makefile"
22483
22484 ac_config_files="$ac_config_files programs/winefile/Makefile"
22485
22486 ac_config_files="$ac_config_files programs/winemenubuilder/Makefile"
22487
22488 ac_config_files="$ac_config_files programs/winemine/Makefile"
22489
22490 ac_config_files="$ac_config_files programs/winepath/Makefile"
22491
22492 ac_config_files="$ac_config_files programs/winetest/Makefile"
22493
22494 ac_config_files="$ac_config_files programs/winevdm/Makefile"
22495
22496 ac_config_files="$ac_config_files programs/winhlp32/Makefile"
22497
22498 ac_config_files="$ac_config_files programs/winver/Makefile"
22499
22500 ac_config_files="$ac_config_files programs/wordpad/Makefile"
22501
22502 ac_config_files="$ac_config_files programs/write/Makefile"
22503
22504 ac_config_files="$ac_config_files programs/xcopy/Makefile"
22505
22506 ac_config_files="$ac_config_files server/Makefile"
22507
22508 ac_config_files="$ac_config_files tools/Makefile"
22509
22510 ac_config_files="$ac_config_files tools/widl/Makefile"
22511
22512 ac_config_files="$ac_config_files tools/winebuild/Makefile"
22513
22514 ac_config_files="$ac_config_files tools/winedump/Makefile"
22515
22516 ac_config_files="$ac_config_files tools/winegcc/Makefile"
22517
22518 ac_config_files="$ac_config_files tools/wmc/Makefile"
22519
22520 ac_config_files="$ac_config_files tools/wrc/Makefile"
22521
22522
22523 cat >confcache <<\_ACEOF
22524 # This file is a shell script that caches the results of configure
22525 # tests run on this system so they can be shared between configure
22526 # scripts and configure runs, see configure's option --config-cache.
22527 # It is not useful on other systems.  If it contains results you don't
22528 # want to keep, you may remove or edit it.
22529 #
22530 # config.status only pays attention to the cache file if you give it
22531 # the --recheck option to rerun configure.
22532 #
22533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22535 # following values.
22536
22537 _ACEOF
22538
22539 # The following way of writing the cache mishandles newlines in values,
22540 # but we know of no workaround that is simple, portable, and efficient.
22541 # So, we kill variables containing newlines.
22542 # Ultrix sh set writes to stderr and can't be redirected directly,
22543 # and sets the high bit in the cache file unless we assign to the vars.
22544 (
22545   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22546     eval ac_val=\$$ac_var
22547     case $ac_val in #(
22548     *${as_nl}*)
22549       case $ac_var in #(
22550       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22551 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22552       esac
22553       case $ac_var in #(
22554       _ | IFS | as_nl) ;; #(
22555       *) $as_unset $ac_var ;;
22556       esac ;;
22557     esac
22558   done
22559
22560   (set) 2>&1 |
22561     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22562     *${as_nl}ac_space=\ *)
22563       # `set' does not quote correctly, so add quotes (double-quote
22564       # substitution turns \\\\ into \\, and sed turns \\ into \).
22565       sed -n \
22566         "s/'/'\\\\''/g;
22567           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22568       ;; #(
22569     *)
22570       # `set' quotes correctly as required by POSIX, so do not add quotes.
22571       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22572       ;;
22573     esac |
22574     sort
22575 ) |
22576   sed '
22577      /^ac_cv_env_/b end
22578      t clear
22579      :clear
22580      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22581      t end
22582      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22583      :end' >>confcache
22584 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22585   if test -w "$cache_file"; then
22586     test "x$cache_file" != "x/dev/null" &&
22587       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22588 echo "$as_me: updating cache $cache_file" >&6;}
22589     cat confcache >$cache_file
22590   else
22591     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22592 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22593   fi
22594 fi
22595 rm -f confcache
22596
22597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22598 # Let make expand exec_prefix.
22599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22600
22601 DEFS=-DHAVE_CONFIG_H
22602
22603 ac_libobjs=
22604 ac_ltlibobjs=
22605 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22606   # 1. Remove the extension, and $U if already installed.
22607   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22608   ac_i=`echo "$ac_i" | sed "$ac_script"`
22609   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22610   #    will be set to the directory where LIBOBJS objects are built.
22611   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22612   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22613 done
22614 LIBOBJS=$ac_libobjs
22615
22616 LTLIBOBJS=$ac_ltlibobjs
22617
22618
22619
22620 : ${CONFIG_STATUS=./config.status}
22621 ac_clean_files_save=$ac_clean_files
22622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22623 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22624 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22625 cat >$CONFIG_STATUS <<_ACEOF
22626 #! $SHELL
22627 # Generated by $as_me.
22628 # Run this file to recreate the current configuration.
22629 # Compiler output produced by configure, useful for debugging
22630 # configure, is in config.log if it exists.
22631
22632 debug=false
22633 ac_cs_recheck=false
22634 ac_cs_silent=false
22635 SHELL=\${CONFIG_SHELL-$SHELL}
22636 _ACEOF
22637
22638 cat >>$CONFIG_STATUS <<\_ACEOF
22639 ## --------------------- ##
22640 ## M4sh Initialization.  ##
22641 ## --------------------- ##
22642
22643 # Be more Bourne compatible
22644 DUALCASE=1; export DUALCASE # for MKS sh
22645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22646   emulate sh
22647   NULLCMD=:
22648   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22649   # is contrary to our usage.  Disable this feature.
22650   alias -g '${1+"$@"}'='"$@"'
22651   setopt NO_GLOB_SUBST
22652 else
22653   case `(set -o) 2>/dev/null` in
22654   *posix*) set -o posix ;;
22655 esac
22656
22657 fi
22658
22659
22660
22661
22662 # PATH needs CR
22663 # Avoid depending upon Character Ranges.
22664 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22665 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22666 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22667 as_cr_digits='0123456789'
22668 as_cr_alnum=$as_cr_Letters$as_cr_digits
22669
22670 # The user is always right.
22671 if test "${PATH_SEPARATOR+set}" != set; then
22672   echo "#! /bin/sh" >conf$$.sh
22673   echo  "exit 0"   >>conf$$.sh
22674   chmod +x conf$$.sh
22675   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22676     PATH_SEPARATOR=';'
22677   else
22678     PATH_SEPARATOR=:
22679   fi
22680   rm -f conf$$.sh
22681 fi
22682
22683 # Support unset when possible.
22684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22685   as_unset=unset
22686 else
22687   as_unset=false
22688 fi
22689
22690
22691 # IFS
22692 # We need space, tab and new line, in precisely that order.  Quoting is
22693 # there to prevent editors from complaining about space-tab.
22694 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22695 # splitting by setting IFS to empty value.)
22696 as_nl='
22697 '
22698 IFS=" ""        $as_nl"
22699
22700 # Find who we are.  Look in the path if we contain no directory separator.
22701 case $0 in
22702   *[\\/]* ) as_myself=$0 ;;
22703   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22704 for as_dir in $PATH
22705 do
22706   IFS=$as_save_IFS
22707   test -z "$as_dir" && as_dir=.
22708   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22709 done
22710 IFS=$as_save_IFS
22711
22712      ;;
22713 esac
22714 # We did not find ourselves, most probably we were run as `sh COMMAND'
22715 # in which case we are not to be found in the path.
22716 if test "x$as_myself" = x; then
22717   as_myself=$0
22718 fi
22719 if test ! -f "$as_myself"; then
22720   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22721   { (exit 1); exit 1; }
22722 fi
22723
22724 # Work around bugs in pre-3.0 UWIN ksh.
22725 for as_var in ENV MAIL MAILPATH
22726 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22727 done
22728 PS1='$ '
22729 PS2='> '
22730 PS4='+ '
22731
22732 # NLS nuisances.
22733 for as_var in \
22734   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22735   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22736   LC_TELEPHONE LC_TIME
22737 do
22738   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22739     eval $as_var=C; export $as_var
22740   else
22741     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22742   fi
22743 done
22744
22745 # Required to use basename.
22746 if expr a : '\(a\)' >/dev/null 2>&1 &&
22747    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22748   as_expr=expr
22749 else
22750   as_expr=false
22751 fi
22752
22753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22754   as_basename=basename
22755 else
22756   as_basename=false
22757 fi
22758
22759
22760 # Name of the executable.
22761 as_me=`$as_basename -- "$0" ||
22762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22763          X"$0" : 'X\(//\)$' \| \
22764          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22765 echo X/"$0" |
22766     sed '/^.*\/\([^/][^/]*\)\/*$/{
22767             s//\1/
22768             q
22769           }
22770           /^X\/\(\/\/\)$/{
22771             s//\1/
22772             q
22773           }
22774           /^X\/\(\/\).*/{
22775             s//\1/
22776             q
22777           }
22778           s/.*/./; q'`
22779
22780 # CDPATH.
22781 $as_unset CDPATH
22782
22783
22784
22785   as_lineno_1=$LINENO
22786   as_lineno_2=$LINENO
22787   test "x$as_lineno_1" != "x$as_lineno_2" &&
22788   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22789
22790   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22791   # uniformly replaced by the line number.  The first 'sed' inserts a
22792   # line-number line after each line using $LINENO; the second 'sed'
22793   # does the real work.  The second script uses 'N' to pair each
22794   # line-number line with the line containing $LINENO, and appends
22795   # trailing '-' during substitution so that $LINENO is not a special
22796   # case at line end.
22797   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22798   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22799   # E. McMahon (1931-1989) for sed's syntax.  :-)
22800   sed -n '
22801     p
22802     /[$]LINENO/=
22803   ' <$as_myself |
22804     sed '
22805       s/[$]LINENO.*/&-/
22806       t lineno
22807       b
22808       :lineno
22809       N
22810       :loop
22811       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22812       t loop
22813       s/-\n.*//
22814     ' >$as_me.lineno &&
22815   chmod +x "$as_me.lineno" ||
22816     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22817    { (exit 1); exit 1; }; }
22818
22819   # Don't try to exec as it changes $[0], causing all sort of problems
22820   # (the dirname of $[0] is not the place where we might find the
22821   # original and so on.  Autoconf is especially sensitive to this).
22822   . "./$as_me.lineno"
22823   # Exit status is that of the last command.
22824   exit
22825 }
22826
22827
22828 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22829   as_dirname=dirname
22830 else
22831   as_dirname=false
22832 fi
22833
22834 ECHO_C= ECHO_N= ECHO_T=
22835 case `echo -n x` in
22836 -n*)
22837   case `echo 'x\c'` in
22838   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22839   *)   ECHO_C='\c';;
22840   esac;;
22841 *)
22842   ECHO_N='-n';;
22843 esac
22844
22845 if expr a : '\(a\)' >/dev/null 2>&1 &&
22846    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22847   as_expr=expr
22848 else
22849   as_expr=false
22850 fi
22851
22852 rm -f conf$$ conf$$.exe conf$$.file
22853 if test -d conf$$.dir; then
22854   rm -f conf$$.dir/conf$$.file
22855 else
22856   rm -f conf$$.dir
22857   mkdir conf$$.dir
22858 fi
22859 echo >conf$$.file
22860 if ln -s conf$$.file conf$$ 2>/dev/null; then
22861   as_ln_s='ln -s'
22862   # ... but there are two gotchas:
22863   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22864   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22865   # In both cases, we have to default to `cp -p'.
22866   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22867     as_ln_s='cp -p'
22868 elif ln conf$$.file conf$$ 2>/dev/null; then
22869   as_ln_s=ln
22870 else
22871   as_ln_s='cp -p'
22872 fi
22873 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22874 rmdir conf$$.dir 2>/dev/null
22875
22876 if mkdir -p . 2>/dev/null; then
22877   as_mkdir_p=:
22878 else
22879   test -d ./-p && rmdir ./-p
22880   as_mkdir_p=false
22881 fi
22882
22883 if test -x / >/dev/null 2>&1; then
22884   as_test_x='test -x'
22885 else
22886   if ls -dL / >/dev/null 2>&1; then
22887     as_ls_L_option=L
22888   else
22889     as_ls_L_option=
22890   fi
22891   as_test_x='
22892     eval sh -c '\''
22893       if test -d "$1"; then
22894         test -d "$1/.";
22895       else
22896         case $1 in
22897         -*)set "./$1";;
22898         esac;
22899         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22900         ???[sx]*):;;*)false;;esac;fi
22901     '\'' sh
22902   '
22903 fi
22904 as_executable_p=$as_test_x
22905
22906 # Sed expression to map a string onto a valid CPP name.
22907 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22908
22909 # Sed expression to map a string onto a valid variable name.
22910 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22911
22912
22913 exec 6>&1
22914
22915 # Save the log message, to keep $[0] and so on meaningful, and to
22916 # report actual input values of CONFIG_FILES etc. instead of their
22917 # values after options handling.
22918 ac_log="
22919 This file was extended by Wine $as_me 1.1.0, which was
22920 generated by GNU Autoconf 2.61.  Invocation command line was
22921
22922   CONFIG_FILES    = $CONFIG_FILES
22923   CONFIG_HEADERS  = $CONFIG_HEADERS
22924   CONFIG_LINKS    = $CONFIG_LINKS
22925   CONFIG_COMMANDS = $CONFIG_COMMANDS
22926   $ $0 $@
22927
22928 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22929 "
22930
22931 _ACEOF
22932
22933 cat >>$CONFIG_STATUS <<_ACEOF
22934 # Files that config.status was made for.
22935 config_files="$ac_config_files"
22936 config_headers="$ac_config_headers"
22937 config_commands="$ac_config_commands"
22938
22939 _ACEOF
22940
22941 cat >>$CONFIG_STATUS <<\_ACEOF
22942 ac_cs_usage="\
22943 \`$as_me' instantiates files from templates according to the
22944 current configuration.
22945
22946 Usage: $0 [OPTIONS] [FILE]...
22947
22948   -h, --help       print this help, then exit
22949   -V, --version    print version number and configuration settings, then exit
22950   -q, --quiet      do not print progress messages
22951   -d, --debug      don't remove temporary files
22952       --recheck    update $as_me by reconfiguring in the same conditions
22953   --file=FILE[:TEMPLATE]
22954                    instantiate the configuration file FILE
22955   --header=FILE[:TEMPLATE]
22956                    instantiate the configuration header FILE
22957
22958 Configuration files:
22959 $config_files
22960
22961 Configuration headers:
22962 $config_headers
22963
22964 Configuration commands:
22965 $config_commands
22966
22967 Report bugs to <bug-autoconf@gnu.org>."
22968
22969 _ACEOF
22970 cat >>$CONFIG_STATUS <<_ACEOF
22971 ac_cs_version="\\
22972 Wine config.status 1.1.0
22973 configured by $0, generated by GNU Autoconf 2.61,
22974   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22975
22976 Copyright (C) 2006 Free Software Foundation, Inc.
22977 This config.status script is free software; the Free Software Foundation
22978 gives unlimited permission to copy, distribute and modify it."
22979
22980 ac_pwd='$ac_pwd'
22981 srcdir='$srcdir'
22982 INSTALL='$INSTALL'
22983 _ACEOF
22984
22985 cat >>$CONFIG_STATUS <<\_ACEOF
22986 # If no file are specified by the user, then we need to provide default
22987 # value.  By we need to know if files were specified by the user.
22988 ac_need_defaults=:
22989 while test $# != 0
22990 do
22991   case $1 in
22992   --*=*)
22993     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22994     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22995     ac_shift=:
22996     ;;
22997   *)
22998     ac_option=$1
22999     ac_optarg=$2
23000     ac_shift=shift
23001     ;;
23002   esac
23003
23004   case $ac_option in
23005   # Handling of the options.
23006   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23007     ac_cs_recheck=: ;;
23008   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23009     echo "$ac_cs_version"; exit ;;
23010   --debug | --debu | --deb | --de | --d | -d )
23011     debug=: ;;
23012   --file | --fil | --fi | --f )
23013     $ac_shift
23014     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23015     ac_need_defaults=false;;
23016   --header | --heade | --head | --hea )
23017     $ac_shift
23018     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23019     ac_need_defaults=false;;
23020   --he | --h)
23021     # Conflict between --help and --header
23022     { echo "$as_me: error: ambiguous option: $1
23023 Try \`$0 --help' for more information." >&2
23024    { (exit 1); exit 1; }; };;
23025   --help | --hel | -h )
23026     echo "$ac_cs_usage"; exit ;;
23027   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23028   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23029     ac_cs_silent=: ;;
23030
23031   # This is an error.
23032   -*) { echo "$as_me: error: unrecognized option: $1
23033 Try \`$0 --help' for more information." >&2
23034    { (exit 1); exit 1; }; } ;;
23035
23036   *) ac_config_targets="$ac_config_targets $1"
23037      ac_need_defaults=false ;;
23038
23039   esac
23040   shift
23041 done
23042
23043 ac_configure_extra_args=
23044
23045 if $ac_cs_silent; then
23046   exec 6>/dev/null
23047   ac_configure_extra_args="$ac_configure_extra_args --silent"
23048 fi
23049
23050 _ACEOF
23051 cat >>$CONFIG_STATUS <<_ACEOF
23052 if \$ac_cs_recheck; then
23053   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23054   CONFIG_SHELL=$SHELL
23055   export CONFIG_SHELL
23056   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23057 fi
23058
23059 _ACEOF
23060 cat >>$CONFIG_STATUS <<\_ACEOF
23061 exec 5>>config.log
23062 {
23063   echo
23064   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23065 ## Running $as_me. ##
23066 _ASBOX
23067   echo "$ac_log"
23068 } >&5
23069
23070 _ACEOF
23071 cat >>$CONFIG_STATUS <<_ACEOF
23072 _ACEOF
23073
23074 cat >>$CONFIG_STATUS <<\_ACEOF
23075
23076 # Handling of arguments.
23077 for ac_config_target in $ac_config_targets
23078 do
23079   case $ac_config_target in
23080     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
23081     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
23082     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
23083     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
23084     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
23085     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
23086     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
23087     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
23088     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
23089     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
23090     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
23091     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
23092     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
23093     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23094     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
23095     "dlls/acledit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/acledit/Makefile" ;;
23096     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
23097     "dlls/actxprxy/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/actxprxy/Makefile" ;;
23098     "dlls/adsiid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/adsiid/Makefile" ;;
23099     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
23100     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
23101     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
23102     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
23103     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
23104     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
23105     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
23106     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
23107     "dlls/browseui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/Makefile" ;;
23108     "dlls/browseui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/tests/Makefile" ;;
23109     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
23110     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
23111     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
23112     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
23113     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
23114     "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
23115     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
23116     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
23117     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
23118     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
23119     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
23120     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
23121     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
23122     "dlls/credui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/credui/Makefile" ;;
23123     "dlls/credui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/credui/tests/Makefile" ;;
23124     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
23125     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
23126     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
23127     "dlls/cryptdlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdlg/Makefile" ;;
23128     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
23129     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
23130     "dlls/cryptnet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/tests/Makefile" ;;
23131     "dlls/cryptui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptui/Makefile" ;;
23132     "dlls/ctapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctapi32/Makefile" ;;
23133     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
23134     "dlls/d3d10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d10/Makefile" ;;
23135     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
23136     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
23137     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
23138     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
23139     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
23140     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
23141     "dlls/d3drm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/tests/Makefile" ;;
23142     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
23143     "dlls/d3dx8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/tests/Makefile" ;;
23144     "dlls/d3dx9_24/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_24/Makefile" ;;
23145     "dlls/d3dx9_25/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_25/Makefile" ;;
23146     "dlls/d3dx9_26/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_26/Makefile" ;;
23147     "dlls/d3dx9_27/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_27/Makefile" ;;
23148     "dlls/d3dx9_28/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_28/Makefile" ;;
23149     "dlls/d3dx9_29/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_29/Makefile" ;;
23150     "dlls/d3dx9_30/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_30/Makefile" ;;
23151     "dlls/d3dx9_31/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_31/Makefile" ;;
23152     "dlls/d3dx9_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_32/Makefile" ;;
23153     "dlls/d3dx9_33/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_33/Makefile" ;;
23154     "dlls/d3dx9_34/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_34/Makefile" ;;
23155     "dlls/d3dx9_35/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_35/Makefile" ;;
23156     "dlls/d3dx9_36/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_36/Makefile" ;;
23157     "dlls/d3dx9_36/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_36/tests/Makefile" ;;
23158     "dlls/d3dx9_37/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx9_37/Makefile" ;;
23159     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
23160     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
23161     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
23162     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
23163     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
23164     "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
23165     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
23166     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
23167     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
23168     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
23169     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
23170     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
23171     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
23172     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
23173     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
23174     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
23175     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
23176     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
23177     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
23178     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
23179     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
23180     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
23181     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
23182     "dlls/dplayx/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/tests/Makefile" ;;
23183     "dlls/dpnaddr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnaddr/Makefile" ;;
23184     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
23185     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
23186     "dlls/dpnlobby/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnlobby/Makefile" ;;
23187     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
23188     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
23189     "dlls/dssenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dssenh/Makefile" ;;
23190     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
23191     "dlls/dwmapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dwmapi/Makefile" ;;
23192     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
23193     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
23194     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
23195     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
23196     "dlls/faultrep/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/faultrep/Makefile" ;;
23197     "dlls/fusion/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/fusion/Makefile" ;;
23198     "dlls/fusion/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/fusion/tests/Makefile" ;;
23199     "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
23200     "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
23201     "dlls/gdiplus/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/Makefile" ;;
23202     "dlls/gdiplus/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/tests/Makefile" ;;
23203     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
23204     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
23205     "dlls/gpkcsp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gpkcsp/Makefile" ;;
23206     "dlls/hal/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hal/Makefile" ;;
23207     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
23208     "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
23209     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
23210     "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
23211     "dlls/hnetcfg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hnetcfg/Makefile" ;;
23212     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
23213     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
23214     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
23215     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
23216     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
23217     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
23218     "dlls/imm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/tests/Makefile" ;;
23219     "dlls/inetcomm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inetcomm/Makefile" ;;
23220     "dlls/inetcomm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inetcomm/tests/Makefile" ;;
23221     "dlls/inetmib1/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inetmib1/Makefile" ;;
23222     "dlls/inetmib1/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inetmib1/tests/Makefile" ;;
23223     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
23224     "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
23225     "dlls/initpki/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/initpki/Makefile" ;;
23226     "dlls/inkobj/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inkobj/Makefile" ;;
23227     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
23228     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
23229     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
23230     "dlls/itircl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itircl/Makefile" ;;
23231     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
23232     "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
23233     "dlls/jscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/jscript/Makefile" ;;
23234     "dlls/jscript/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/jscript/tests/Makefile" ;;
23235     "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
23236     "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
23237     "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
23238     "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
23239     "dlls/localui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/Makefile" ;;
23240     "dlls/localui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/tests/Makefile" ;;
23241     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
23242     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
23243     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
23244     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
23245     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
23246     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
23247     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
23248     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
23249     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
23250     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
23251     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
23252     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
23253     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
23254     "dlls/mountmgr.sys/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mountmgr.sys/Makefile" ;;
23255     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
23256     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
23257     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
23258     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
23259     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
23260     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
23261     "dlls/mscat32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscat32/Makefile" ;;
23262     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
23263     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
23264     "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
23265     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
23266     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
23267     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
23268     "dlls/mshtml.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml.tlb/Makefile" ;;
23269     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
23270     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
23271     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
23272     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
23273     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
23274     "dlls/msimtf/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimtf/Makefile" ;;
23275     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
23276     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
23277     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
23278     "dlls/mssip32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mssip32/Makefile" ;;
23279     "dlls/msvcirt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcirt/Makefile" ;;
23280     "dlls/msvcr71/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcr71/Makefile" ;;
23281     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
23282     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
23283     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
23284     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
23285     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
23286     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
23287     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
23288     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
23289     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
23290     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
23291     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
23292     "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
23293     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
23294     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
23295     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
23296     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
23297     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
23298     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
23299     "dlls/ntdsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/tests/Makefile" ;;
23300     "dlls/ntoskrnl.exe/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntoskrnl.exe/Makefile" ;;
23301     "dlls/ntprint/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntprint/Makefile" ;;
23302     "dlls/ntprint/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntprint/tests/Makefile" ;;
23303     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
23304     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
23305     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
23306     "dlls/odbccp32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/tests/Makefile" ;;
23307     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
23308     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
23309     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
23310     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
23311     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
23312     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
23313     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
23314     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
23315     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
23316     "dlls/olethk32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olethk32/Makefile" ;;
23317     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
23318     "dlls/opengl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/tests/Makefile" ;;
23319     "dlls/pdh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/Makefile" ;;
23320     "dlls/pdh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/tests/Makefile" ;;
23321     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
23322     "dlls/printui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/printui/Makefile" ;;
23323     "dlls/propsys/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/propsys/Makefile" ;;
23324     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
23325     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
23326     "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
23327     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
23328     "dlls/qedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qedit/Makefile" ;;
23329     "dlls/qedit/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qedit/tests/Makefile" ;;
23330     "dlls/qmgr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qmgr/Makefile" ;;
23331     "dlls/qmgr/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qmgr/tests/Makefile" ;;
23332     "dlls/qmgrprxy/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qmgrprxy/Makefile" ;;
23333     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
23334     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
23335     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
23336     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
23337     "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
23338     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
23339     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
23340     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
23341     "dlls/riched32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/tests/Makefile" ;;
23342     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
23343     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
23344     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
23345     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
23346     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
23347     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
23348     "dlls/sccbase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sccbase/Makefile" ;;
23349     "dlls/schannel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/Makefile" ;;
23350     "dlls/schannel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/tests/Makefile" ;;
23351     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
23352     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
23353     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
23354     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
23355     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
23356     "dlls/serialui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/tests/Makefile" ;;
23357     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
23358     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
23359     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
23360     "dlls/sfc_os/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc_os/Makefile" ;;
23361     "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
23362     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
23363     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
23364     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
23365     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
23366     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
23367     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
23368     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
23369     "dlls/slbcsp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/slbcsp/Makefile" ;;
23370     "dlls/slc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/slc/Makefile" ;;
23371     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
23372     "dlls/snmpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/tests/Makefile" ;;
23373     "dlls/softpub/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/softpub/Makefile" ;;
23374     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
23375     "dlls/spoolss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/tests/Makefile" ;;
23376     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
23377     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
23378     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
23379     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
23380     "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
23381     "dlls/sxs/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sxs/Makefile" ;;
23382     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
23383     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
23384     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
23385     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
23386     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
23387     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
23388     "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
23389     "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
23390     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
23391     "dlls/userenv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/tests/Makefile" ;;
23392     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
23393     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
23394     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
23395     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
23396     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
23397     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
23398     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
23399     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
23400     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
23401     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
23402     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
23403     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
23404     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
23405     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
23406     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
23407     "dlls/winealsa.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winealsa.drv/Makefile" ;;
23408     "dlls/wineaudioio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineaudioio.drv/Makefile" ;;
23409     "dlls/winecoreaudio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecoreaudio.drv/Makefile" ;;
23410     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
23411     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
23412     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
23413     "dlls/wineesd.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineesd.drv/Makefile" ;;
23414     "dlls/winejack.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejack.drv/Makefile" ;;
23415     "dlls/winejoystick.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejoystick.drv/Makefile" ;;
23416     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
23417     "dlls/winenas.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winenas.drv/Makefile" ;;
23418     "dlls/wineoss.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineoss.drv/Makefile" ;;
23419     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
23420     "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
23421     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
23422     "dlls/wing32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wing32/Makefile" ;;
23423     "dlls/winhttp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winhttp/Makefile" ;;
23424     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
23425     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
23426     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
23427     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
23428     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
23429     "dlls/winscard/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winscard/Makefile" ;;
23430     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
23431     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
23432     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
23433     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
23434     "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
23435     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
23436     "dlls/wmi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wmi/Makefile" ;;
23437     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
23438     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
23439     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
23440     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
23441     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
23442     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
23443     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
23444     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
23445     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23446     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
23447     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
23448     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
23449     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
23450     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
23451     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
23452     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
23453     "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
23454     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
23455     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
23456     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
23457     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
23458     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
23459     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
23460     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
23461     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
23462     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
23463     "programs/net/Makefile") CONFIG_FILES="$CONFIG_FILES programs/net/Makefile" ;;
23464     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
23465     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
23466     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
23467     "programs/reg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/reg/Makefile" ;;
23468     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
23469     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
23470     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
23471     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
23472     "programs/secedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/secedit/Makefile" ;;
23473     "programs/services/Makefile") CONFIG_FILES="$CONFIG_FILES programs/services/Makefile" ;;
23474     "programs/spoolsv/Makefile") CONFIG_FILES="$CONFIG_FILES programs/spoolsv/Makefile" ;;
23475     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
23476     "programs/svchost/Makefile") CONFIG_FILES="$CONFIG_FILES programs/svchost/Makefile" ;;
23477     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
23478     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
23479     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
23480     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
23481     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
23482     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
23483     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
23484     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
23485     "programs/winedevice/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedevice/Makefile" ;;
23486     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
23487     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
23488     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
23489     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
23490     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
23491     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
23492     "programs/winhlp32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhlp32/Makefile" ;;
23493     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
23494     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
23495     "programs/write/Makefile") CONFIG_FILES="$CONFIG_FILES programs/write/Makefile" ;;
23496     "programs/xcopy/Makefile") CONFIG_FILES="$CONFIG_FILES programs/xcopy/Makefile" ;;
23497     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
23498     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23499     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
23500     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
23501     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
23502     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
23503     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
23504     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
23505
23506   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23507 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23508    { (exit 1); exit 1; }; };;
23509   esac
23510 done
23511
23512
23513 # If the user did not use the arguments to specify the items to instantiate,
23514 # then the envvar interface is used.  Set only those that are not.
23515 # We use the long form for the default assignment because of an extremely
23516 # bizarre bug on SunOS 4.1.3.
23517 if $ac_need_defaults; then
23518   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23519   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23520   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23521 fi
23522
23523 # Have a temporary directory for convenience.  Make it in the build tree
23524 # simply because there is no reason against having it here, and in addition,
23525 # creating and moving files from /tmp can sometimes cause problems.
23526 # Hook for its removal unless debugging.
23527 # Note that there is a small window in which the directory will not be cleaned:
23528 # after its creation but before its name has been assigned to `$tmp'.
23529 $debug ||
23530 {
23531   tmp=
23532   trap 'exit_status=$?
23533   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23534 ' 0
23535   trap '{ (exit 1); exit 1; }' 1 2 13 15
23536 }
23537 # Create a (secure) tmp directory for tmp files.
23538
23539 {
23540   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23541   test -n "$tmp" && test -d "$tmp"
23542 }  ||
23543 {
23544   tmp=./conf$$-$RANDOM
23545   (umask 077 && mkdir "$tmp")
23546 } ||
23547 {
23548    echo "$me: cannot create a temporary directory in ." >&2
23549    { (exit 1); exit 1; }
23550 }
23551
23552 #
23553 # Set up the sed scripts for CONFIG_FILES section.
23554 #
23555
23556 # No need to generate the scripts if there are no CONFIG_FILES.
23557 # This happens for instance when ./config.status config.h
23558 if test -n "$CONFIG_FILES"; then
23559
23560 _ACEOF
23561
23562 # Create sed commands to just substitute file output variables.
23563
23564 # Remaining file output variables are in a fragment that also has non-file
23565 # output varibles.
23566
23567
23568
23569 ac_delim='%!_!# '
23570 for ac_last_try in false false false false false :; do
23571   cat >conf$$subs.sed <<_ACEOF
23572 SHELL!$SHELL$ac_delim
23573 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23574 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23575 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23576 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23577 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23578 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23579 exec_prefix!$exec_prefix$ac_delim
23580 prefix!$prefix$ac_delim
23581 program_transform_name!$program_transform_name$ac_delim
23582 bindir!$bindir$ac_delim
23583 sbindir!$sbindir$ac_delim
23584 libexecdir!$libexecdir$ac_delim
23585 datarootdir!$datarootdir$ac_delim
23586 datadir!$datadir$ac_delim
23587 sysconfdir!$sysconfdir$ac_delim
23588 sharedstatedir!$sharedstatedir$ac_delim
23589 localstatedir!$localstatedir$ac_delim
23590 includedir!$includedir$ac_delim
23591 oldincludedir!$oldincludedir$ac_delim
23592 docdir!$docdir$ac_delim
23593 infodir!$infodir$ac_delim
23594 htmldir!$htmldir$ac_delim
23595 dvidir!$dvidir$ac_delim
23596 pdfdir!$pdfdir$ac_delim
23597 psdir!$psdir$ac_delim
23598 libdir!$libdir$ac_delim
23599 localedir!$localedir$ac_delim
23600 mandir!$mandir$ac_delim
23601 DEFS!$DEFS$ac_delim
23602 ECHO_C!$ECHO_C$ac_delim
23603 ECHO_N!$ECHO_N$ac_delim
23604 ECHO_T!$ECHO_T$ac_delim
23605 LIBS!$LIBS$ac_delim
23606 build_alias!$build_alias$ac_delim
23607 host_alias!$host_alias$ac_delim
23608 target_alias!$target_alias$ac_delim
23609 MAINTAINER_MODE!$MAINTAINER_MODE$ac_delim
23610 build!$build$ac_delim
23611 build_cpu!$build_cpu$ac_delim
23612 build_vendor!$build_vendor$ac_delim
23613 build_os!$build_os$ac_delim
23614 host!$host$ac_delim
23615 host_cpu!$host_cpu$ac_delim
23616 host_vendor!$host_vendor$ac_delim
23617 host_os!$host_os$ac_delim
23618 WIN16_FILES!$WIN16_FILES$ac_delim
23619 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
23620 SET_MAKE!$SET_MAKE$ac_delim
23621 CC!$CC$ac_delim
23622 CFLAGS!$CFLAGS$ac_delim
23623 LDFLAGS!$LDFLAGS$ac_delim
23624 CPPFLAGS!$CPPFLAGS$ac_delim
23625 ac_ct_CC!$ac_ct_CC$ac_delim
23626 EXEEXT!$EXEEXT$ac_delim
23627 OBJEXT!$OBJEXT$ac_delim
23628 CXX!$CXX$ac_delim
23629 CXXFLAGS!$CXXFLAGS$ac_delim
23630 ac_ct_CXX!$ac_ct_CXX$ac_delim
23631 CPPBIN!$CPPBIN$ac_delim
23632 TOOLSDIR!$TOOLSDIR$ac_delim
23633 XMKMF!$XMKMF$ac_delim
23634 CPP!$CPP$ac_delim
23635 X_CFLAGS!$X_CFLAGS$ac_delim
23636 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
23637 X_LIBS!$X_LIBS$ac_delim
23638 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
23639 FLEX!$FLEX$ac_delim
23640 BISON!$BISON$ac_delim
23641 AS!$AS$ac_delim
23642 ac_ct_AS!$ac_ct_AS$ac_delim
23643 LD!$LD$ac_delim
23644 ac_ct_LD!$ac_ct_LD$ac_delim
23645 NM!$NM$ac_delim
23646 ac_ct_NM!$ac_ct_NM$ac_delim
23647 AR!$AR$ac_delim
23648 ac_ct_AR!$ac_ct_AR$ac_delim
23649 ARFLAGS!$ARFLAGS$ac_delim
23650 RANLIB!$RANLIB$ac_delim
23651 STRIP!$STRIP$ac_delim
23652 WINDRES!$WINDRES$ac_delim
23653 LN_S!$LN_S$ac_delim
23654 _ACEOF
23655
23656   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
23657     break
23658   elif $ac_last_try; then
23659     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23660 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23661    { (exit 1); exit 1; }; }
23662   else
23663     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23664   fi
23665 done
23666
23667 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23668 if test -n "$ac_eof"; then
23669   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23670   ac_eof=`expr $ac_eof + 1`
23671 fi
23672
23673 cat >>$CONFIG_STATUS <<_ACEOF
23674 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23676 /^[      ]*@MAKE_RULES@[         ]*$/{
23677 r $MAKE_RULES
23678 d
23679 }
23680 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
23681 r $MAKE_DLL_RULES
23682 d
23683 }
23684 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
23685 r $MAKE_IMPLIB_RULES
23686 d
23687 }
23688 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
23689 r $MAKE_TEST_RULES
23690 d
23691 }
23692 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
23693 r $MAKE_PROG_RULES
23694 d
23695 }
23696 _ACEOF
23697 sed '
23698 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23699 s/^/s,@/; s/!/@,|#_!!_#|/
23700 :n
23701 t n
23702 s/'"$ac_delim"'$/,g/; t
23703 s/$/\\/; p
23704 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23705 ' >>$CONFIG_STATUS <conf$$subs.sed
23706 rm -f conf$$subs.sed
23707 cat >>$CONFIG_STATUS <<_ACEOF
23708 CEOF$ac_eof
23709 _ACEOF
23710
23711
23712 ac_delim='%!_!# '
23713 for ac_last_try in false false false false false :; do
23714   cat >conf$$subs.sed <<_ACEOF
23715 LN!$LN$ac_delim
23716 GREP!$GREP$ac_delim
23717 EGREP!$EGREP$ac_delim
23718 LDCONFIG!$LDCONFIG$ac_delim
23719 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23720 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23721 INSTALL_DATA!$INSTALL_DATA$ac_delim
23722 LINT!$LINT$ac_delim
23723 LINTFLAGS!$LINTFLAGS$ac_delim
23724 FONTFORGE!$FONTFORGE$ac_delim
23725 PKG_CONFIG!$PKG_CONFIG$ac_delim
23726 RSVG!$RSVG$ac_delim
23727 ICOTOOL!$ICOTOOL$ac_delim
23728 PRELINK!$PRELINK$ac_delim
23729 LIBPTHREAD!$LIBPTHREAD$ac_delim
23730 XLIB!$XLIB$ac_delim
23731 XFILES!$XFILES$ac_delim
23732 OPENGLFILES!$OPENGLFILES$ac_delim
23733 GLU32FILES!$GLU32FILES$ac_delim
23734 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
23735 QUARTZFILES!$QUARTZFILES$ac_delim
23736 DLLEXT!$DLLEXT$ac_delim
23737 DLLFLAGS!$DLLFLAGS$ac_delim
23738 LDSHARED!$LDSHARED$ac_delim
23739 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
23740 LIBEXT!$LIBEXT$ac_delim
23741 IMPLIBEXT!$IMPLIBEXT$ac_delim
23742 LDRPATH_INSTALL!$LDRPATH_INSTALL$ac_delim
23743 LDRPATH_LOCAL!$LDRPATH_LOCAL$ac_delim
23744 LDD!$LDD$ac_delim
23745 DLLTOOL!$DLLTOOL$ac_delim
23746 DLLWRAP!$DLLWRAP$ac_delim
23747 MINGWAR!$MINGWAR$ac_delim
23748 SECURITYLIB!$SECURITYLIB$ac_delim
23749 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
23750 IOKITLIB!$IOKITLIB$ac_delim
23751 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
23752 DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
23753 COREAUDIO!$COREAUDIO$ac_delim
23754 CARBONLIB!$CARBONLIB$ac_delim
23755 CROSSTEST!$CROSSTEST$ac_delim
23756 CROSSCC!$CROSSCC$ac_delim
23757 CROSSWINDRES!$CROSSWINDRES$ac_delim
23758 NASLIBS!$NASLIBS$ac_delim
23759 XML2LIBS!$XML2LIBS$ac_delim
23760 XML2INCL!$XML2INCL$ac_delim
23761 XSLTLIBS!$XSLTLIBS$ac_delim
23762 XSLTINCL!$XSLTINCL$ac_delim
23763 HALINCL!$HALINCL$ac_delim
23764 sane_devel!$sane_devel$ac_delim
23765 SANEINCL!$SANEINCL$ac_delim
23766 gphoto2_devel!$gphoto2_devel$ac_delim
23767 gphoto2port_devel!$gphoto2port_devel$ac_delim
23768 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
23769 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
23770 RESOLVLIBS!$RESOLVLIBS$ac_delim
23771 LCMSLIBS!$LCMSLIBS$ac_delim
23772 LDAPLIBS!$LDAPLIBS$ac_delim
23773 ft_devel!$ft_devel$ac_delim
23774 FREETYPELIBS!$FREETYPELIBS$ac_delim
23775 FREETYPEINCL!$FREETYPEINCL$ac_delim
23776 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
23777 ESDCONFIG!$ESDCONFIG$ac_delim
23778 ESDLIBS!$ESDLIBS$ac_delim
23779 ESDINCL!$ESDINCL$ac_delim
23780 ALSALIBS!$ALSALIBS$ac_delim
23781 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
23782 FONTCONFIGINCL!$FONTCONFIGINCL$ac_delim
23783 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
23784 BUILTINFLAG!$BUILTINFLAG$ac_delim
23785 LDPATH!$LDPATH$ac_delim
23786 CRTLIBS!$CRTLIBS$ac_delim
23787 SOCKETLIBS!$SOCKETLIBS$ac_delim
23788 MAIN_BINARY!$MAIN_BINARY$ac_delim
23789 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
23790 LIBDL!$LIBDL$ac_delim
23791 LIBPOLL!$LIBPOLL$ac_delim
23792 DEPENDENCIES!$DEPENDENCIES$ac_delim
23793 LIBOBJS!$LIBOBJS$ac_delim
23794 LTLIBOBJS!$LTLIBOBJS$ac_delim
23795 _ACEOF
23796
23797   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
23798     break
23799   elif $ac_last_try; then
23800     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23801 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23802    { (exit 1); exit 1; }; }
23803   else
23804     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23805   fi
23806 done
23807
23808 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23809 if test -n "$ac_eof"; then
23810   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23811   ac_eof=`expr $ac_eof + 1`
23812 fi
23813
23814 cat >>$CONFIG_STATUS <<_ACEOF
23815 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23817 _ACEOF
23818 sed '
23819 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23820 s/^/s,@/; s/!/@,|#_!!_#|/
23821 :n
23822 t n
23823 s/'"$ac_delim"'$/,g/; t
23824 s/$/\\/; p
23825 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23826 ' >>$CONFIG_STATUS <conf$$subs.sed
23827 rm -f conf$$subs.sed
23828 cat >>$CONFIG_STATUS <<_ACEOF
23829 :end
23830 s/|#_!!_#|//g
23831 CEOF$ac_eof
23832 _ACEOF
23833
23834
23835 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23836 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23837 # trailing colons and then remove the whole line if VPATH becomes empty
23838 # (actually we leave an empty line to preserve line numbers).
23839 if test "x$srcdir" = x.; then
23840   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23841 s/:*\$(srcdir):*/:/
23842 s/:*\${srcdir}:*/:/
23843 s/:*@srcdir@:*/:/
23844 s/^\([^=]*=[     ]*\):*/\1/
23845 s/:*$//
23846 s/^[^=]*=[       ]*$//
23847 }'
23848 fi
23849
23850 cat >>$CONFIG_STATUS <<\_ACEOF
23851 fi # test -n "$CONFIG_FILES"
23852
23853
23854 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23855 do
23856   case $ac_tag in
23857   :[FHLC]) ac_mode=$ac_tag; continue;;
23858   esac
23859   case $ac_mode$ac_tag in
23860   :[FHL]*:*);;
23861   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23862 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23863    { (exit 1); exit 1; }; };;
23864   :[FH]-) ac_tag=-:-;;
23865   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23866   esac
23867   ac_save_IFS=$IFS
23868   IFS=:
23869   set x $ac_tag
23870   IFS=$ac_save_IFS
23871   shift
23872   ac_file=$1
23873   shift
23874
23875   case $ac_mode in
23876   :L) ac_source=$1;;
23877   :[FH])
23878     ac_file_inputs=
23879     for ac_f
23880     do
23881       case $ac_f in
23882       -) ac_f="$tmp/stdin";;
23883       *) # Look for the file first in the build tree, then in the source tree
23884          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23885          # because $ac_f cannot contain `:'.
23886          test -f "$ac_f" ||
23887            case $ac_f in
23888            [\\/$]*) false;;
23889            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23890            esac ||
23891            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23892 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23893    { (exit 1); exit 1; }; };;
23894       esac
23895       ac_file_inputs="$ac_file_inputs $ac_f"
23896     done
23897
23898     # Let's still pretend it is `configure' which instantiates (i.e., don't
23899     # use $as_me), people would be surprised to read:
23900     #    /* config.h.  Generated by config.status.  */
23901     configure_input="Generated from "`IFS=:
23902           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23903     if test x"$ac_file" != x-; then
23904       configure_input="$ac_file.  $configure_input"
23905       { echo "$as_me:$LINENO: creating $ac_file" >&5
23906 echo "$as_me: creating $ac_file" >&6;}
23907     fi
23908
23909     case $ac_tag in
23910     *:-:* | *:-) cat >"$tmp/stdin";;
23911     esac
23912     ;;
23913   esac
23914
23915   ac_dir=`$as_dirname -- "$ac_file" ||
23916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23917          X"$ac_file" : 'X\(//\)[^/]' \| \
23918          X"$ac_file" : 'X\(//\)$' \| \
23919          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23920 echo X"$ac_file" |
23921     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23922             s//\1/
23923             q
23924           }
23925           /^X\(\/\/\)[^/].*/{
23926             s//\1/
23927             q
23928           }
23929           /^X\(\/\/\)$/{
23930             s//\1/
23931             q
23932           }
23933           /^X\(\/\).*/{
23934             s//\1/
23935             q
23936           }
23937           s/.*/./; q'`
23938   { as_dir="$ac_dir"
23939   case $as_dir in #(
23940   -*) as_dir=./$as_dir;;
23941   esac
23942   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23943     as_dirs=
23944     while :; do
23945       case $as_dir in #(
23946       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23947       *) as_qdir=$as_dir;;
23948       esac
23949       as_dirs="'$as_qdir' $as_dirs"
23950       as_dir=`$as_dirname -- "$as_dir" ||
23951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23952          X"$as_dir" : 'X\(//\)[^/]' \| \
23953          X"$as_dir" : 'X\(//\)$' \| \
23954          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23955 echo X"$as_dir" |
23956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23957             s//\1/
23958             q
23959           }
23960           /^X\(\/\/\)[^/].*/{
23961             s//\1/
23962             q
23963           }
23964           /^X\(\/\/\)$/{
23965             s//\1/
23966             q
23967           }
23968           /^X\(\/\).*/{
23969             s//\1/
23970             q
23971           }
23972           s/.*/./; q'`
23973       test -d "$as_dir" && break
23974     done
23975     test -z "$as_dirs" || eval "mkdir $as_dirs"
23976   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23977 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23978    { (exit 1); exit 1; }; }; }
23979   ac_builddir=.
23980
23981 case "$ac_dir" in
23982 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23983 *)
23984   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23985   # A ".." for each directory in $ac_dir_suffix.
23986   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23987   case $ac_top_builddir_sub in
23988   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23989   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23990   esac ;;
23991 esac
23992 ac_abs_top_builddir=$ac_pwd
23993 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23994 # for backward compatibility:
23995 ac_top_builddir=$ac_top_build_prefix
23996
23997 case $srcdir in
23998   .)  # We are building in place.
23999     ac_srcdir=.
24000     ac_top_srcdir=$ac_top_builddir_sub
24001     ac_abs_top_srcdir=$ac_pwd ;;
24002   [\\/]* | ?:[\\/]* )  # Absolute name.
24003     ac_srcdir=$srcdir$ac_dir_suffix;
24004     ac_top_srcdir=$srcdir
24005     ac_abs_top_srcdir=$srcdir ;;
24006   *) # Relative name.
24007     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24008     ac_top_srcdir=$ac_top_build_prefix$srcdir
24009     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24010 esac
24011 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24012
24013
24014   case $ac_mode in
24015   :F)
24016   #
24017   # CONFIG_FILE
24018   #
24019
24020   case $INSTALL in
24021   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24022   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24023   esac
24024 _ACEOF
24025
24026 cat >>$CONFIG_STATUS <<\_ACEOF
24027 # If the template does not know about datarootdir, expand it.
24028 # FIXME: This hack should be removed a few years after 2.60.
24029 ac_datarootdir_hack=; ac_datarootdir_seen=
24030
24031 case `sed -n '/datarootdir/ {
24032   p
24033   q
24034 }
24035 /@datadir@/p
24036 /@docdir@/p
24037 /@infodir@/p
24038 /@localedir@/p
24039 /@mandir@/p
24040 ' $ac_file_inputs` in
24041 *datarootdir*) ac_datarootdir_seen=yes;;
24042 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24043   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24044 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24045 _ACEOF
24046 cat >>$CONFIG_STATUS <<_ACEOF
24047   ac_datarootdir_hack='
24048   s&@datadir@&$datadir&g
24049   s&@docdir@&$docdir&g
24050   s&@infodir@&$infodir&g
24051   s&@localedir@&$localedir&g
24052   s&@mandir@&$mandir&g
24053     s&\\\${datarootdir}&$datarootdir&g' ;;
24054 esac
24055 _ACEOF
24056
24057 # Neutralize VPATH when `$srcdir' = `.'.
24058 # Shell code in configure.ac might set extrasub.
24059 # FIXME: do we really want to maintain this feature?
24060 cat >>$CONFIG_STATUS <<_ACEOF
24061   sed "$ac_vpsub
24062 $extrasub
24063 _ACEOF
24064 cat >>$CONFIG_STATUS <<\_ACEOF
24065 :t
24066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24067 s&@configure_input@&$configure_input&;t t
24068 s&@top_builddir@&$ac_top_builddir_sub&;t t
24069 s&@srcdir@&$ac_srcdir&;t t
24070 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24071 s&@top_srcdir@&$ac_top_srcdir&;t t
24072 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24073 s&@builddir@&$ac_builddir&;t t
24074 s&@abs_builddir@&$ac_abs_builddir&;t t
24075 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24076 s&@INSTALL@&$ac_INSTALL&;t t
24077 $ac_datarootdir_hack
24078 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24079
24080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24081   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24082   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24083   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24084 which seems to be undefined.  Please make sure it is defined." >&5
24085 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24086 which seems to be undefined.  Please make sure it is defined." >&2;}
24087
24088   rm -f "$tmp/stdin"
24089   case $ac_file in
24090   -) cat "$tmp/out"; rm -f "$tmp/out";;
24091   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24092   esac
24093  ;;
24094   :H)
24095   #
24096   # CONFIG_HEADER
24097   #
24098 _ACEOF
24099
24100 # Transform confdefs.h into a sed script `conftest.defines', that
24101 # substitutes the proper values into config.h.in to produce config.h.
24102 rm -f conftest.defines conftest.tail
24103 # First, append a space to every undef/define line, to ease matching.
24104 echo 's/$/ /' >conftest.defines
24105 # Then, protect against being on the right side of a sed subst, or in
24106 # an unquoted here document, in config.status.  If some macros were
24107 # called several times there might be several #defines for the same
24108 # symbol, which is useless.  But do not sort them, since the last
24109 # AC_DEFINE must be honored.
24110 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24111 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24112 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24113 # PARAMS is the parameter list in the macro definition--in most cases, it's
24114 # just an empty string.
24115 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24116 ac_dB='\\)[      (].*,\\1define\\2'
24117 ac_dC=' '
24118 ac_dD=' ,'
24119
24120 uniq confdefs.h |
24121   sed -n '
24122         t rset
24123         :rset
24124         s/^[     ]*#[    ]*define[       ][      ]*//
24125         t ok
24126         d
24127         :ok
24128         s/[\\&,]/\\&/g
24129         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24130         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24131   ' >>conftest.defines
24132
24133 # Remove the space that was appended to ease matching.
24134 # Then replace #undef with comments.  This is necessary, for
24135 # example, in the case of _POSIX_SOURCE, which is predefined and required
24136 # on some systems where configure will not decide to define it.
24137 # (The regexp can be short, since the line contains either #define or #undef.)
24138 echo 's/ $//
24139 s,^[     #]*u.*,/* & */,' >>conftest.defines
24140
24141 # Break up conftest.defines:
24142 ac_max_sed_lines=50
24143
24144 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24145 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24146 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24147 # et cetera.
24148 ac_in='$ac_file_inputs'
24149 ac_out='"$tmp/out1"'
24150 ac_nxt='"$tmp/out2"'
24151
24152 while :
24153 do
24154   # Write a here document:
24155     cat >>$CONFIG_STATUS <<_ACEOF
24156     # First, check the format of the line:
24157     cat >"\$tmp/defines.sed" <<\\CEOF
24158 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24159 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24160 b
24161 :def
24162 _ACEOF
24163   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24164   echo 'CEOF
24165     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24166   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24167   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24168   grep . conftest.tail >/dev/null || break
24169   rm -f conftest.defines
24170   mv conftest.tail conftest.defines
24171 done
24172 rm -f conftest.defines conftest.tail
24173
24174 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24175 cat >>$CONFIG_STATUS <<\_ACEOF
24176   if test x"$ac_file" != x-; then
24177     echo "/* $configure_input  */" >"$tmp/config.h"
24178     cat "$ac_result" >>"$tmp/config.h"
24179     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24180       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24181 echo "$as_me: $ac_file is unchanged" >&6;}
24182     else
24183       rm -f $ac_file
24184       mv "$tmp/config.h" $ac_file
24185     fi
24186   else
24187     echo "/* $configure_input  */"
24188     cat "$ac_result"
24189   fi
24190   rm -f "$tmp/out12"
24191  ;;
24192
24193   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24194 echo "$as_me: executing $ac_file commands" >&6;}
24195  ;;
24196   esac
24197
24198
24199   case $ac_file$ac_mode in
24200     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
24201     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
24202 echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
24203     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
24204 echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
24205     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
24206 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
24207     "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
24208 echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
24209     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
24210 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
24211     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
24212 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
24213
24214   esac
24215 done # for ac_tag
24216
24217
24218 { (exit 0); exit 0; }
24219 _ACEOF
24220 chmod +x $CONFIG_STATUS
24221 ac_clean_files=$ac_clean_files_save
24222
24223
24224 # configure is writing to config.log, and then calls config.status.
24225 # config.status does its own redirection, appending to config.log.
24226 # Unfortunately, on DOS this fails, as config.log is still kept open
24227 # by configure, so config.status won't be able to write to it; its
24228 # output is simply discarded.  So we exec the FD to /dev/null,
24229 # effectively closing config.log, so it can be properly (re)opened and
24230 # appended to by config.status.  When coming back to configure, we
24231 # need to make the FD available again.
24232 if test "$no_create" != yes; then
24233   ac_cs_success=:
24234   ac_config_status_args=
24235   test "$silent" = yes &&
24236     ac_config_status_args="$ac_config_status_args --quiet"
24237   exec 5>/dev/null
24238   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24239   exec 5>>config.log
24240   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24241   # would make configure fail if this is the last instruction.
24242   $ac_cs_success || { (exit 1); exit 1; }
24243 fi
24244
24245
24246 if test "$no_create" = "yes"
24247 then
24248   exit 0
24249 fi
24250
24251 ac_save_IFS="$IFS"
24252 IFS="|"
24253 if test "x$wine_notices != "x; then
24254     echo >&6
24255     for msg in $wine_notices; do
24256         if test -n "$msg"; then
24257             { echo "$as_me:$LINENO: $msg" >&5
24258 echo "$as_me: $msg" >&6;}
24259         fi
24260     done
24261 fi
24262 for msg in $wine_warnings; do
24263     if test -n "$msg"; then
24264         echo >&2
24265         { echo "$as_me:$LINENO: WARNING: $msg" >&5
24266 echo "$as_me: WARNING: $msg" >&2;}
24267     fi
24268 done
24269 IFS="$ac_save_IFS"
24270
24271 echo "
24272 $as_me: Finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine.
24273 " >&6
24274