msvcirt: Added stub implementation of msvcirt.dll.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Wine 0.9.46.
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='0.9.46'
578 PACKAGE_STRING='Wine 0.9.46'
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 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 WIN16_FILES
664 WIN16_INSTALL
665 SET_MAKE
666 CC
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
673 CXX
674 CXXFLAGS
675 ac_ct_CXX
676 CPPBIN
677 TOOLSDIR
678 XMKMF
679 CPP
680 X_CFLAGS
681 X_PRE_LIBS
682 X_LIBS
683 X_EXTRA_LIBS
684 FLEX
685 BISON
686 AS
687 ac_ct_AS
688 LD
689 AR
690 RANLIB
691 STRIP
692 WINDRES
693 LN_S
694 LN
695 GREP
696 EGREP
697 LDCONFIG
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 LINT
702 LINTFLAGS
703 FONTFORGE
704 PKG_CONFIG
705 PRELINK
706 LIBPTHREAD
707 XLIB
708 XFILES
709 OPENGLFILES
710 GLU32FILES
711 OPENGL_LIBS
712 QUARTZFILES
713 DLLEXT
714 DLLFLAGS
715 LDSHARED
716 LDDLLFLAGS
717 LIBEXT
718 IMPLIBEXT
719 LDRPATH_INSTALL
720 LDRPATH_LOCAL
721 LDD
722 DLLTOOL
723 DLLWRAP
724 MINGWAR
725 COREFOUNDATIONLIB
726 IOKITLIB
727 LDEXECFLAGS
728 DISKARBITRATIONLIB
729 COREAUDIO
730 CARBONLIB
731 CROSSTEST
732 CROSSCC
733 CROSSWINDRES
734 NASLIBS
735 XML2LIBS
736 XML2INCL
737 XSLTLIBS
738 XSLTINCL
739 HALINCL
740 sane_devel
741 SANEINCL
742 gphoto2_devel
743 gphoto2port_devel
744 GPHOTO2LIBS
745 GPHOTO2INCL
746 RESOLVLIBS
747 LCMSLIBS
748 LDAPLIBS
749 ft_devel
750 FREETYPELIBS
751 FREETYPEINCL
752 FONTSSUBDIRS
753 ESDCONFIG
754 ESDLIBS
755 ESDINCL
756 ALSALIBS
757 AUDIOIOLIBS
758 EXTRACFLAGS
759 BUILTINFLAG
760 LDPATH
761 CRTLIBS
762 SOCKETLIBS
763 MAIN_BINARY
764 EXTRA_BINARIES
765 LIBDL
766 LIBPOLL
767 DEPENDENCIES
768 LIBOBJS
769 LTLIBOBJS'
770 ac_subst_files='MAKE_RULES
771 MAKE_DLL_RULES
772 MAKE_IMPLIB_RULES
773 MAKE_TEST_RULES
774 MAKE_PROG_RULES'
775       ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CXX
784 CXXFLAGS
785 CCC
786 XMKMF
787 CPP'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840   # If the previous option needs an argument, assign it.
841   if test -n "$ac_prev"; then
842     eval $ac_prev=\$ac_option
843     ac_prev=
844     continue
845   fi
846
847   case $ac_option in
848   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849   *)    ac_optarg=yes ;;
850   esac
851
852   # Accept the important Cygnus configure options, so we can diagnose typos.
853
854   case $ac_dashdash$ac_option in
855   --)
856     ac_dashdash=yes ;;
857
858   -bindir | --bindir | --bindi | --bind | --bin | --bi)
859     ac_prev=bindir ;;
860   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861     bindir=$ac_optarg ;;
862
863   -build | --build | --buil | --bui | --bu)
864     ac_prev=build_alias ;;
865   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866     build_alias=$ac_optarg ;;
867
868   -cache-file | --cache-file | --cache-fil | --cache-fi \
869   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870     ac_prev=cache_file ;;
871   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873     cache_file=$ac_optarg ;;
874
875   --config-cache | -C)
876     cache_file=config.cache ;;
877
878   -datadir | --datadir | --datadi | --datad)
879     ac_prev=datadir ;;
880   -datadir=* | --datadir=* | --datadi=* | --datad=*)
881     datadir=$ac_optarg ;;
882
883   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884   | --dataroo | --dataro | --datar)
885     ac_prev=datarootdir ;;
886   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888     datarootdir=$ac_optarg ;;
889
890   -disable-* | --disable-*)
891     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892     # Reject names that are not valid shell variable names.
893     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
894       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
895    { (exit 1); exit 1; }; }
896     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
897     eval enable_$ac_feature=no ;;
898
899   -docdir | --docdir | --docdi | --doc | --do)
900     ac_prev=docdir ;;
901   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902     docdir=$ac_optarg ;;
903
904   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905     ac_prev=dvidir ;;
906   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907     dvidir=$ac_optarg ;;
908
909   -enable-* | --enable-*)
910     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911     # Reject names that are not valid shell variable names.
912     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
913       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
914    { (exit 1); exit 1; }; }
915     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
916     eval enable_$ac_feature=\$ac_optarg ;;
917
918   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920   | --exec | --exe | --ex)
921     ac_prev=exec_prefix ;;
922   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924   | --exec=* | --exe=* | --ex=*)
925     exec_prefix=$ac_optarg ;;
926
927   -gas | --gas | --ga | --g)
928     # Obsolete; use --with-gas.
929     with_gas=yes ;;
930
931   -help | --help | --hel | --he | -h)
932     ac_init_help=long ;;
933   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934     ac_init_help=recursive ;;
935   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936     ac_init_help=short ;;
937
938   -host | --host | --hos | --ho)
939     ac_prev=host_alias ;;
940   -host=* | --host=* | --hos=* | --ho=*)
941     host_alias=$ac_optarg ;;
942
943   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944     ac_prev=htmldir ;;
945   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946   | --ht=*)
947     htmldir=$ac_optarg ;;
948
949   -includedir | --includedir | --includedi | --included | --include \
950   | --includ | --inclu | --incl | --inc)
951     ac_prev=includedir ;;
952   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953   | --includ=* | --inclu=* | --incl=* | --inc=*)
954     includedir=$ac_optarg ;;
955
956   -infodir | --infodir | --infodi | --infod | --info | --inf)
957     ac_prev=infodir ;;
958   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959     infodir=$ac_optarg ;;
960
961   -libdir | --libdir | --libdi | --libd)
962     ac_prev=libdir ;;
963   -libdir=* | --libdir=* | --libdi=* | --libd=*)
964     libdir=$ac_optarg ;;
965
966   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967   | --libexe | --libex | --libe)
968     ac_prev=libexecdir ;;
969   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970   | --libexe=* | --libex=* | --libe=*)
971     libexecdir=$ac_optarg ;;
972
973   -localedir | --localedir | --localedi | --localed | --locale)
974     ac_prev=localedir ;;
975   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976     localedir=$ac_optarg ;;
977
978   -localstatedir | --localstatedir | --localstatedi | --localstated \
979   | --localstate | --localstat | --localsta | --localst | --locals)
980     ac_prev=localstatedir ;;
981   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983     localstatedir=$ac_optarg ;;
984
985   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986     ac_prev=mandir ;;
987   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988     mandir=$ac_optarg ;;
989
990   -nfp | --nfp | --nf)
991     # Obsolete; use --without-fp.
992     with_fp=no ;;
993
994   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995   | --no-cr | --no-c | -n)
996     no_create=yes ;;
997
998   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000     no_recursion=yes ;;
1001
1002   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004   | --oldin | --oldi | --old | --ol | --o)
1005     ac_prev=oldincludedir ;;
1006   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009     oldincludedir=$ac_optarg ;;
1010
1011   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012     ac_prev=prefix ;;
1013   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014     prefix=$ac_optarg ;;
1015
1016   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017   | --program-pre | --program-pr | --program-p)
1018     ac_prev=program_prefix ;;
1019   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021     program_prefix=$ac_optarg ;;
1022
1023   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024   | --program-suf | --program-su | --program-s)
1025     ac_prev=program_suffix ;;
1026   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028     program_suffix=$ac_optarg ;;
1029
1030   -program-transform-name | --program-transform-name \
1031   | --program-transform-nam | --program-transform-na \
1032   | --program-transform-n | --program-transform- \
1033   | --program-transform | --program-transfor \
1034   | --program-transfo | --program-transf \
1035   | --program-trans | --program-tran \
1036   | --progr-tra | --program-tr | --program-t)
1037     ac_prev=program_transform_name ;;
1038   -program-transform-name=* | --program-transform-name=* \
1039   | --program-transform-nam=* | --program-transform-na=* \
1040   | --program-transform-n=* | --program-transform-=* \
1041   | --program-transform=* | --program-transfor=* \
1042   | --program-transfo=* | --program-transf=* \
1043   | --program-trans=* | --program-tran=* \
1044   | --progr-tra=* | --program-tr=* | --program-t=*)
1045     program_transform_name=$ac_optarg ;;
1046
1047   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048     ac_prev=pdfdir ;;
1049   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050     pdfdir=$ac_optarg ;;
1051
1052   -psdir | --psdir | --psdi | --psd | --ps)
1053     ac_prev=psdir ;;
1054   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055     psdir=$ac_optarg ;;
1056
1057   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058   | -silent | --silent | --silen | --sile | --sil)
1059     silent=yes ;;
1060
1061   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062     ac_prev=sbindir ;;
1063   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064   | --sbi=* | --sb=*)
1065     sbindir=$ac_optarg ;;
1066
1067   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069   | --sharedst | --shareds | --shared | --share | --shar \
1070   | --sha | --sh)
1071     ac_prev=sharedstatedir ;;
1072   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075   | --sha=* | --sh=*)
1076     sharedstatedir=$ac_optarg ;;
1077
1078   -site | --site | --sit)
1079     ac_prev=site ;;
1080   -site=* | --site=* | --sit=*)
1081     site=$ac_optarg ;;
1082
1083   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084     ac_prev=srcdir ;;
1085   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086     srcdir=$ac_optarg ;;
1087
1088   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089   | --syscon | --sysco | --sysc | --sys | --sy)
1090     ac_prev=sysconfdir ;;
1091   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093     sysconfdir=$ac_optarg ;;
1094
1095   -target | --target | --targe | --targ | --tar | --ta | --t)
1096     ac_prev=target_alias ;;
1097   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098     target_alias=$ac_optarg ;;
1099
1100   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101     verbose=yes ;;
1102
1103   -version | --version | --versio | --versi | --vers | -V)
1104     ac_init_version=: ;;
1105
1106   -with-* | --with-*)
1107     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108     # Reject names that are not valid shell variable names.
1109     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110       { echo "$as_me: error: invalid package name: $ac_package" >&2
1111    { (exit 1); exit 1; }; }
1112     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1113     eval with_$ac_package=\$ac_optarg ;;
1114
1115   -without-* | --without-*)
1116     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119       { echo "$as_me: error: invalid package name: $ac_package" >&2
1120    { (exit 1); exit 1; }; }
1121     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1122     eval with_$ac_package=no ;;
1123
1124   --x)
1125     # Obsolete; use --with-x.
1126     with_x=yes ;;
1127
1128   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129   | --x-incl | --x-inc | --x-in | --x-i)
1130     ac_prev=x_includes ;;
1131   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133     x_includes=$ac_optarg ;;
1134
1135   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137     ac_prev=x_libraries ;;
1138   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140     x_libraries=$ac_optarg ;;
1141
1142   -*) { echo "$as_me: error: unrecognized option: $ac_option
1143 Try \`$0 --help' for more information." >&2
1144    { (exit 1); exit 1; }; }
1145     ;;
1146
1147   *=*)
1148     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1152    { (exit 1); exit 1; }; }
1153     eval $ac_envvar=\$ac_optarg
1154     export $ac_envvar ;;
1155
1156   *)
1157     # FIXME: should be removed in autoconf 3.0.
1158     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162     ;;
1163
1164   esac
1165 done
1166
1167 if test -n "$ac_prev"; then
1168   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169   { echo "$as_me: error: missing argument to $ac_option" >&2
1170    { (exit 1); exit 1; }; }
1171 fi
1172
1173 # Be sure to have absolute directory names.
1174 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175                 datadir sysconfdir sharedstatedir localstatedir includedir \
1176                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177                 libdir localedir mandir
1178 do
1179   eval ac_val=\$$ac_var
1180   case $ac_val in
1181     [\\/$]* | ?:[\\/]* )  continue;;
1182     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183   esac
1184   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1185    { (exit 1); exit 1; }; }
1186 done
1187
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1191 build=$build_alias
1192 host=$host_alias
1193 target=$target_alias
1194
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197   if test "x$build_alias" = x; then
1198     cross_compiling=maybe
1199     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200     If a cross compiler is detected then cross compile mode will be used." >&2
1201   elif test "x$build_alias" != "x$host_alias"; then
1202     cross_compiling=yes
1203   fi
1204 fi
1205
1206 ac_tool_prefix=
1207 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1208
1209 test "$silent" = yes && exec 6>/dev/null
1210
1211
1212 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213 ac_ls_di=`ls -di .` &&
1214 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215   { echo "$as_me: error: Working directory cannot be determined" >&2
1216    { (exit 1); exit 1; }; }
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218   { echo "$as_me: error: pwd does not report name of working directory" >&2
1219    { (exit 1); exit 1; }; }
1220
1221
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224   ac_srcdir_defaulted=yes
1225   # Try the directory containing this script, then the parent directory.
1226   ac_confdir=`$as_dirname -- "$0" ||
1227 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228          X"$0" : 'X\(//\)[^/]' \| \
1229          X"$0" : 'X\(//\)$' \| \
1230          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1231 echo X"$0" |
1232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233             s//\1/
1234             q
1235           }
1236           /^X\(\/\/\)[^/].*/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\/\)$/{
1241             s//\1/
1242             q
1243           }
1244           /^X\(\/\).*/{
1245             s//\1/
1246             q
1247           }
1248           s/.*/./; q'`
1249   srcdir=$ac_confdir
1250   if test ! -r "$srcdir/$ac_unique_file"; then
1251     srcdir=..
1252   fi
1253 else
1254   ac_srcdir_defaulted=no
1255 fi
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1259    { (exit 1); exit 1; }; }
1260 fi
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 ac_abs_confdir=`(
1263         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1264    { (exit 1); exit 1; }; }
1265         pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268   srcdir=.
1269 fi
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278   eval ac_env_${ac_var}_value=\$${ac_var}
1279   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1282
1283 #
1284 # Report the --help message.
1285 #
1286 if test "$ac_init_help" = "long"; then
1287   # Omit some internal or obsolete options to make the list less imposing.
1288   # This message is too long to be a string in the A/UX 3.1 sh.
1289   cat <<_ACEOF
1290 \`configure' configures Wine 0.9.46 to adapt to many kinds of systems.
1291
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE.  See below for descriptions of some of the useful variables.
1296
1297 Defaults for the options are specified in brackets.
1298
1299 Configuration:
1300   -h, --help              display this help and exit
1301       --help=short        display options specific to this package
1302       --help=recursive    display the short help of all the included packages
1303   -V, --version           display version information and exit
1304   -q, --quiet, --silent   do not print \`checking...' messages
1305       --cache-file=FILE   cache test results in FILE [disabled]
1306   -C, --config-cache      alias for \`--cache-file=config.cache'
1307   -n, --no-create         do not create output files
1308       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1309
1310 Installation directories:
1311   --prefix=PREFIX         install architecture-independent files in PREFIX
1312                           [$ac_default_prefix]
1313   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1314                           [PREFIX]
1315
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1320
1321 For better control, use the options below.
1322
1323 Fine tuning of the installation directories:
1324   --bindir=DIR           user executables [EPREFIX/bin]
1325   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1326   --libexecdir=DIR       program executables [EPREFIX/libexec]
1327   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1328   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1329   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1330   --libdir=DIR           object code libraries [EPREFIX/lib]
1331   --includedir=DIR       C header files [PREFIX/include]
1332   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1333   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1334   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1335   --infodir=DIR          info documentation [DATAROOTDIR/info]
1336   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1337   --mandir=DIR           man documentation [DATAROOTDIR/man]
1338   --docdir=DIR           documentation root [DATAROOTDIR/doc/wine]
1339   --htmldir=DIR          html documentation [DOCDIR]
1340   --dvidir=DIR           dvi documentation [DOCDIR]
1341   --pdfdir=DIR           pdf documentation [DOCDIR]
1342   --psdir=DIR            ps documentation [DOCDIR]
1343 _ACEOF
1344
1345   cat <<\_ACEOF
1346
1347 X features:
1348   --x-includes=DIR    X include files are in DIR
1349   --x-libraries=DIR   X library files are in DIR
1350
1351 System types:
1352   --build=BUILD     configure for building on BUILD [guessed]
1353   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1354 _ACEOF
1355 fi
1356
1357 if test -n "$ac_init_help"; then
1358   case $ac_init_help in
1359      short | recursive ) echo "Configuration of Wine 0.9.46:";;
1360    esac
1361   cat <<\_ACEOF
1362
1363 Optional Features:
1364   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1365   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1366   --disable-win16         do not include Win16 support
1367   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1368                           binaries)
1369
1370 Optional Packages:
1371   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1372   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1373   --without-opengl        do not use OpenGL
1374   --with-wine-tools=<dir> use Wine tools from directory <dir>
1375   --with-x                use the X Window System
1376
1377 Some influential environment variables:
1378   CC          C compiler command
1379   CFLAGS      C compiler flags
1380   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1381               nonstandard directory <lib dir>
1382   LIBS        libraries to pass to the linker, e.g. -l<library>
1383   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1384               you have headers in a nonstandard directory <include dir>
1385   CXX         C++ compiler command
1386   CXXFLAGS    C++ compiler flags
1387   XMKMF       Path to xmkmf, Makefile generator for X Window System
1388   CPP         C preprocessor
1389
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1392
1393 Report bugs to <wine-devel@winehq.org>.
1394 _ACEOF
1395 ac_status=$?
1396 fi
1397
1398 if test "$ac_init_help" = "recursive"; then
1399   # If there are subdirs, report their specific --help.
1400   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401     test -d "$ac_dir" || continue
1402     ac_builddir=.
1403
1404 case "$ac_dir" in
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *)
1407   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1408   # A ".." for each directory in $ac_dir_suffix.
1409   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410   case $ac_top_builddir_sub in
1411   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413   esac ;;
1414 esac
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1419
1420 case $srcdir in
1421   .)  # We are building in place.
1422     ac_srcdir=.
1423     ac_top_srcdir=$ac_top_builddir_sub
1424     ac_abs_top_srcdir=$ac_pwd ;;
1425   [\\/]* | ?:[\\/]* )  # Absolute name.
1426     ac_srcdir=$srcdir$ac_dir_suffix;
1427     ac_top_srcdir=$srcdir
1428     ac_abs_top_srcdir=$srcdir ;;
1429   *) # Relative name.
1430     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431     ac_top_srcdir=$ac_top_build_prefix$srcdir
1432     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 esac
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435
1436     cd "$ac_dir" || { ac_status=$?; continue; }
1437     # Check for guested configure.
1438     if test -f "$ac_srcdir/configure.gnu"; then
1439       echo &&
1440       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441     elif test -f "$ac_srcdir/configure"; then
1442       echo &&
1443       $SHELL "$ac_srcdir/configure" --help=recursive
1444     else
1445       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446     fi || ac_status=$?
1447     cd "$ac_pwd" || { ac_status=$?; break; }
1448   done
1449 fi
1450
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1453   cat <<\_ACEOF
1454 Wine configure 0.9.46
1455 generated by GNU Autoconf 2.61
1456
1457 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1458 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1459 This configure script is free software; the Free Software Foundation
1460 gives unlimited permission to copy, distribute and modify it.
1461 _ACEOF
1462   exit
1463 fi
1464 cat >config.log <<_ACEOF
1465 This file contains any messages produced by compilers while
1466 running configure, to aid debugging if configure makes a mistake.
1467
1468 It was created by Wine $as_me 0.9.46, which was
1469 generated by GNU Autoconf 2.61.  Invocation command line was
1470
1471   $ $0 $@
1472
1473 _ACEOF
1474 exec 5>>config.log
1475 {
1476 cat <<_ASUNAME
1477 ## --------- ##
1478 ## Platform. ##
1479 ## --------- ##
1480
1481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486
1487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1489
1490 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1491 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1494 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1495 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1496 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1497
1498 _ASUNAME
1499
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503   IFS=$as_save_IFS
1504   test -z "$as_dir" && as_dir=.
1505   echo "PATH: $as_dir"
1506 done
1507 IFS=$as_save_IFS
1508
1509 } >&5
1510
1511 cat >&5 <<_ACEOF
1512
1513
1514 ## ----------- ##
1515 ## Core tests. ##
1516 ## ----------- ##
1517
1518 _ACEOF
1519
1520
1521 # Keep a trace of the command line.
1522 # Strip out --no-create and --no-recursion so they do not pile up.
1523 # Strip out --silent because we don't want to record it for future runs.
1524 # Also quote any args containing shell meta-characters.
1525 # Make two passes to allow for proper duplicate-argument suppression.
1526 ac_configure_args=
1527 ac_configure_args0=
1528 ac_configure_args1=
1529 ac_must_keep_next=false
1530 for ac_pass in 1 2
1531 do
1532   for ac_arg
1533   do
1534     case $ac_arg in
1535     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1536     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537     | -silent | --silent | --silen | --sile | --sil)
1538       continue ;;
1539     *\'*)
1540       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541     esac
1542     case $ac_pass in
1543     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544     2)
1545       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1546       if test $ac_must_keep_next = true; then
1547         ac_must_keep_next=false # Got value, back to normal.
1548       else
1549         case $ac_arg in
1550           *=* | --config-cache | -C | -disable-* | --disable-* \
1551           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1552           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1553           | -with-* | --with-* | -without-* | --without-* | --x)
1554             case "$ac_configure_args0 " in
1555               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556             esac
1557             ;;
1558           -* ) ac_must_keep_next=true ;;
1559         esac
1560       fi
1561       ac_configure_args="$ac_configure_args '$ac_arg'"
1562       ;;
1563     esac
1564   done
1565 done
1566 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1567 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568
1569 # When interrupted or exit'd, cleanup temporary files, and complete
1570 # config.log.  We remove comments because anyway the quotes in there
1571 # would cause problems or look ugly.
1572 # WARNING: Use '\'' to represent an apostrophe within the trap.
1573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574 trap 'exit_status=$?
1575   # Save into config.log some information that might help in debugging.
1576   {
1577     echo
1578
1579     cat <<\_ASBOX
1580 ## ---------------- ##
1581 ## Cache variables. ##
1582 ## ---------------- ##
1583 _ASBOX
1584     echo
1585     # The following way of writing the cache mishandles newlines in values,
1586 (
1587   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588     eval ac_val=\$$ac_var
1589     case $ac_val in #(
1590     *${as_nl}*)
1591       case $ac_var in #(
1592       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1594       esac
1595       case $ac_var in #(
1596       _ | IFS | as_nl) ;; #(
1597       *) $as_unset $ac_var ;;
1598       esac ;;
1599     esac
1600   done
1601   (set) 2>&1 |
1602     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603     *${as_nl}ac_space=\ *)
1604       sed -n \
1605         "s/'\''/'\''\\\\'\'''\''/g;
1606           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1607       ;; #(
1608     *)
1609       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610       ;;
1611     esac |
1612     sort
1613 )
1614     echo
1615
1616     cat <<\_ASBOX
1617 ## ----------------- ##
1618 ## Output variables. ##
1619 ## ----------------- ##
1620 _ASBOX
1621     echo
1622     for ac_var in $ac_subst_vars
1623     do
1624       eval ac_val=\$$ac_var
1625       case $ac_val in
1626       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627       esac
1628       echo "$ac_var='\''$ac_val'\''"
1629     done | sort
1630     echo
1631
1632     if test -n "$ac_subst_files"; then
1633       cat <<\_ASBOX
1634 ## ------------------- ##
1635 ## File substitutions. ##
1636 ## ------------------- ##
1637 _ASBOX
1638       echo
1639       for ac_var in $ac_subst_files
1640       do
1641         eval ac_val=\$$ac_var
1642         case $ac_val in
1643         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644         esac
1645         echo "$ac_var='\''$ac_val'\''"
1646       done | sort
1647       echo
1648     fi
1649
1650     if test -s confdefs.h; then
1651       cat <<\_ASBOX
1652 ## ----------- ##
1653 ## confdefs.h. ##
1654 ## ----------- ##
1655 _ASBOX
1656       echo
1657       cat confdefs.h
1658       echo
1659     fi
1660     test "$ac_signal" != 0 &&
1661       echo "$as_me: caught signal $ac_signal"
1662     echo "$as_me: exit $exit_status"
1663   } >&5
1664   rm -f core *.core core.conftest.* &&
1665     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1666     exit $exit_status
1667 ' 0
1668 for ac_signal in 1 2 13 15; do
1669   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1670 done
1671 ac_signal=0
1672
1673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1674 rm -f -r conftest* confdefs.h
1675
1676 # Predefined preprocessor variables.
1677
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_NAME "$PACKAGE_NAME"
1680 _ACEOF
1681
1682
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1685 _ACEOF
1686
1687
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1690 _ACEOF
1691
1692
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_STRING "$PACKAGE_STRING"
1695 _ACEOF
1696
1697
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1700 _ACEOF
1701
1702
1703 # Let the site file select an alternate cache file if it wants to.
1704 # Prefer explicitly selected file to automatically selected ones.
1705 if test -n "$CONFIG_SITE"; then
1706   set x "$CONFIG_SITE"
1707 elif test "x$prefix" != xNONE; then
1708   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709 else
1710   set x "$ac_default_prefix/share/config.site" \
1711         "$ac_default_prefix/etc/config.site"
1712 fi
1713 shift
1714 for ac_site_file
1715 do
1716   if test -r "$ac_site_file"; then
1717     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718 echo "$as_me: loading site script $ac_site_file" >&6;}
1719     sed 's/^/| /' "$ac_site_file" >&5
1720     . "$ac_site_file"
1721   fi
1722 done
1723
1724 if test -r "$cache_file"; then
1725   # Some versions of bash will fail to source /dev/null (special
1726   # files actually), so we avoid doing that.
1727   if test -f "$cache_file"; then
1728     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729 echo "$as_me: loading cache $cache_file" >&6;}
1730     case $cache_file in
1731       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1732       *)                      . "./$cache_file";;
1733     esac
1734   fi
1735 else
1736   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737 echo "$as_me: creating cache $cache_file" >&6;}
1738   >$cache_file
1739 fi
1740
1741 # Check that the precious variables saved in the cache have kept the same
1742 # value.
1743 ac_cache_corrupted=false
1744 for ac_var in $ac_precious_vars; do
1745   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1746   eval ac_new_set=\$ac_env_${ac_var}_set
1747   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1748   eval ac_new_val=\$ac_env_${ac_var}_value
1749   case $ac_old_set,$ac_new_set in
1750     set,)
1751       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1752 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1753       ac_cache_corrupted=: ;;
1754     ,set)
1755       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1756 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1757       ac_cache_corrupted=: ;;
1758     ,);;
1759     *)
1760       if test "x$ac_old_val" != "x$ac_new_val"; then
1761         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1762 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1763         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1764 echo "$as_me:   former value:  $ac_old_val" >&2;}
1765         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1766 echo "$as_me:   current value: $ac_new_val" >&2;}
1767         ac_cache_corrupted=:
1768       fi;;
1769   esac
1770   # Pass precious variables to config.status.
1771   if test "$ac_new_set" = set; then
1772     case $ac_new_val in
1773     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1774     *) ac_arg=$ac_var=$ac_new_val ;;
1775     esac
1776     case " $ac_configure_args " in
1777       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1778       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1779     esac
1780   fi
1781 done
1782 if $ac_cache_corrupted; then
1783   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1784 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1785   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1786 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1787    { (exit 1); exit 1; }; }
1788 fi
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814 ac_ext=c
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819
1820
1821
1822 ac_config_headers="$ac_config_headers include/config.h"
1823
1824 ac_aux_dir=
1825 for ac_dir in tools "$srcdir"/tools; do
1826   if test -f "$ac_dir/install-sh"; then
1827     ac_aux_dir=$ac_dir
1828     ac_install_sh="$ac_aux_dir/install-sh -c"
1829     break
1830   elif test -f "$ac_dir/install.sh"; then
1831     ac_aux_dir=$ac_dir
1832     ac_install_sh="$ac_aux_dir/install.sh -c"
1833     break
1834   elif test -f "$ac_dir/shtool"; then
1835     ac_aux_dir=$ac_dir
1836     ac_install_sh="$ac_aux_dir/shtool install -c"
1837     break
1838   fi
1839 done
1840 if test -z "$ac_aux_dir"; then
1841   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1842 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1843    { (exit 1); exit 1; }; }
1844 fi
1845
1846 # These three variables are undocumented and unsupported,
1847 # and are intended to be withdrawn in a future Autoconf release.
1848 # They can cause serious problems if a builder's source tree is in a directory
1849 # whose full name contains unusual characters.
1850 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1851 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1852 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1853
1854
1855
1856
1857 # Check whether --enable-win16 was given.
1858 if test "${enable_win16+set}" = set; then
1859   enableval=$enable_win16;
1860 fi
1861
1862 # Check whether --enable-win64 was given.
1863 if test "${enable_win64+set}" = set; then
1864   enableval=$enable_win64;
1865 fi
1866
1867
1868
1869 # Check whether --with-opengl was given.
1870 if test "${with_opengl+set}" = set; then
1871   withval=$with_opengl;
1872 fi
1873
1874
1875 # Check whether --with-wine-tools was given.
1876 if test "${with_wine_tools+set}" = set; then
1877   withval=$with_wine_tools;
1878 fi
1879
1880
1881 # Make sure we can run config.sub.
1882 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1883   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1884 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1885    { (exit 1); exit 1; }; }
1886
1887 { echo "$as_me:$LINENO: checking build system type" >&5
1888 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1889 if test "${ac_cv_build+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   ac_build_alias=$build_alias
1893 test "x$ac_build_alias" = x &&
1894   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1895 test "x$ac_build_alias" = x &&
1896   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1897 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1898    { (exit 1); exit 1; }; }
1899 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1900   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1901 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1902    { (exit 1); exit 1; }; }
1903
1904 fi
1905 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1906 echo "${ECHO_T}$ac_cv_build" >&6; }
1907 case $ac_cv_build in
1908 *-*-*) ;;
1909 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1910 echo "$as_me: error: invalid value of canonical build" >&2;}
1911    { (exit 1); exit 1; }; };;
1912 esac
1913 build=$ac_cv_build
1914 ac_save_IFS=$IFS; IFS='-'
1915 set x $ac_cv_build
1916 shift
1917 build_cpu=$1
1918 build_vendor=$2
1919 shift; shift
1920 # Remember, the first character of IFS is used to create $*,
1921 # except with old shells:
1922 build_os=$*
1923 IFS=$ac_save_IFS
1924 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1925
1926
1927 { echo "$as_me:$LINENO: checking host system type" >&5
1928 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1929 if test "${ac_cv_host+set}" = set; then
1930   echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932   if test "x$host_alias" = x; then
1933   ac_cv_host=$ac_cv_build
1934 else
1935   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1936     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1937 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1938    { (exit 1); exit 1; }; }
1939 fi
1940
1941 fi
1942 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1943 echo "${ECHO_T}$ac_cv_host" >&6; }
1944 case $ac_cv_host in
1945 *-*-*) ;;
1946 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1947 echo "$as_me: error: invalid value of canonical host" >&2;}
1948    { (exit 1); exit 1; }; };;
1949 esac
1950 host=$ac_cv_host
1951 ac_save_IFS=$IFS; IFS='-'
1952 set x $ac_cv_host
1953 shift
1954 host_cpu=$1
1955 host_vendor=$2
1956 shift; shift
1957 # Remember, the first character of IFS is used to create $*,
1958 # except with old shells:
1959 host_os=$*
1960 IFS=$ac_save_IFS
1961 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1962
1963
1964 case $host in
1965   x86_64*linux*)
1966     if test "x$enable_win64" != "xyes"
1967     then
1968       test -n "$CC" || CC="gcc -m32"
1969       test -n "$CXX"|| CXX="g++ -m32"
1970       test -n "$LD" || LD="ld -m elf_i386"
1971       test -n "$AS" || AS="as --32"
1972       host_cpu="i386"
1973     fi
1974     ;;
1975 esac
1976
1977 case $host_cpu in
1978   *i[3456789]86*)
1979     if test "x$enable_win16" != "xno"
1980     then
1981       enable_win16="yes"
1982     fi
1983     ;;
1984 esac
1985
1986 WIN16_FILES="\$(WIN16_FILES)"
1987
1988 WIN16_INSTALL="\$(WIN16_INSTALL)"
1989
1990 if test "x$enable_win16" != "xyes"
1991 then
1992   WIN16_FILES=""
1993   WIN16_INSTALL=""
1994 fi
1995
1996 case "$srcdir" in
1997  .) ;;
1998  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
1999       { { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2000 You need to run 'make distclean' in the source tree first." >&5
2001 echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2002 You need to run 'make distclean' in the source tree first." >&2;}
2003    { (exit 1); exit 1; }; }
2004     fi ;;
2005 esac
2006
2007
2008 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2009 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2010 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2011 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   cat >conftest.make <<\_ACEOF
2015 SHELL = /bin/sh
2016 all:
2017         @echo '@@@%%%=$(MAKE)=@@@%%%'
2018 _ACEOF
2019 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2020 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2021   *@@@%%%=?*=@@@%%%*)
2022     eval ac_cv_prog_make_${ac_make}_set=yes;;
2023   *)
2024     eval ac_cv_prog_make_${ac_make}_set=no;;
2025 esac
2026 rm -f conftest.make
2027 fi
2028 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2029   { echo "$as_me:$LINENO: result: yes" >&5
2030 echo "${ECHO_T}yes" >&6; }
2031   SET_MAKE=
2032 else
2033   { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2035   SET_MAKE="MAKE=${MAKE-make}"
2036 fi
2037
2038 ac_ext=c
2039 ac_cpp='$CPP $CPPFLAGS'
2040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043 if test -n "$ac_tool_prefix"; then
2044   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2045 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048 if test "${ac_cv_prog_CC+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   if test -n "$CC"; then
2052   ac_cv_prog_CC="$CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2061     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063     break 2
2064   fi
2065 done
2066 done
2067 IFS=$as_save_IFS
2068
2069 fi
2070 fi
2071 CC=$ac_cv_prog_CC
2072 if test -n "$CC"; then
2073   { echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6; }
2075 else
2076   { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2078 fi
2079
2080
2081 fi
2082 if test -z "$ac_cv_prog_CC"; then
2083   ac_ct_CC=$CC
2084   # Extract the first word of "gcc", so it can be a program name with args.
2085 set dummy gcc; ac_word=$2
2086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test -n "$ac_ct_CC"; then
2092   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101     ac_cv_prog_ac_ct_CC="gcc"
2102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103     break 2
2104   fi
2105 done
2106 done
2107 IFS=$as_save_IFS
2108
2109 fi
2110 fi
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6; }
2115 else
2116   { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2118 fi
2119
2120   if test "x$ac_ct_CC" = x; then
2121     CC=""
2122   else
2123     case $cross_compiling:$ac_tool_warned in
2124 yes:)
2125 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2126 whose name does not start with the host triplet.  If you think this
2127 configuration is useful to you, please write to autoconf@gnu.org." >&5
2128 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2129 whose name does not start with the host triplet.  If you think this
2130 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2131 ac_tool_warned=yes ;;
2132 esac
2133     CC=$ac_ct_CC
2134   fi
2135 else
2136   CC="$ac_cv_prog_CC"
2137 fi
2138
2139 if test -z "$CC"; then
2140           if test -n "$ac_tool_prefix"; then
2141     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}cc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   if test -n "$CC"; then
2149   ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154   IFS=$as_save_IFS
2155   test -z "$as_dir" && as_dir=.
2156   for ac_exec_ext in '' $ac_executable_extensions; do
2157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158     ac_cv_prog_CC="${ac_tool_prefix}cc"
2159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160     break 2
2161   fi
2162 done
2163 done
2164 IFS=$as_save_IFS
2165
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170   { echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6; }
2172 else
2173   { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2175 fi
2176
2177
2178   fi
2179 fi
2180 if test -z "$CC"; then
2181   # Extract the first word of "cc", so it can be a program name with args.
2182 set dummy cc; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_CC+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   if test -n "$CC"; then
2189   ac_cv_prog_CC="$CC" # Let the user override the test.
2190 else
2191   ac_prog_rejected=no
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195   IFS=$as_save_IFS
2196   test -z "$as_dir" && as_dir=.
2197   for ac_exec_ext in '' $ac_executable_extensions; do
2198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2199     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2200        ac_prog_rejected=yes
2201        continue
2202      fi
2203     ac_cv_prog_CC="cc"
2204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205     break 2
2206   fi
2207 done
2208 done
2209 IFS=$as_save_IFS
2210
2211 if test $ac_prog_rejected = yes; then
2212   # We found a bogon in the path, so make sure we never use it.
2213   set dummy $ac_cv_prog_CC
2214   shift
2215   if test $# != 0; then
2216     # We chose a different compiler from the bogus one.
2217     # However, it has the same basename, so the bogon will be chosen
2218     # first if we set CC to just the basename; use the full file name.
2219     shift
2220     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2221   fi
2222 fi
2223 fi
2224 fi
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227   { echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6; }
2229 else
2230   { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2232 fi
2233
2234
2235 fi
2236 if test -z "$CC"; then
2237   if test -n "$ac_tool_prefix"; then
2238   for ac_prog in cl.exe
2239   do
2240     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245   echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247   if test -n "$CC"; then
2248   ac_cv_prog_CC="$CC" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253   IFS=$as_save_IFS
2254   test -z "$as_dir" && as_dir=.
2255   for ac_exec_ext in '' $ac_executable_extensions; do
2256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259     break 2
2260   fi
2261 done
2262 done
2263 IFS=$as_save_IFS
2264
2265 fi
2266 fi
2267 CC=$ac_cv_prog_CC
2268 if test -n "$CC"; then
2269   { echo "$as_me:$LINENO: result: $CC" >&5
2270 echo "${ECHO_T}$CC" >&6; }
2271 else
2272   { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2274 fi
2275
2276
2277     test -n "$CC" && break
2278   done
2279 fi
2280 if test -z "$CC"; then
2281   ac_ct_CC=$CC
2282   for ac_prog in cl.exe
2283 do
2284   # Extract the first word of "$ac_prog", so it can be a program name with args.
2285 set dummy $ac_prog; ac_word=$2
2286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2289   echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291   if test -n "$ac_ct_CC"; then
2292   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2293 else
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297   IFS=$as_save_IFS
2298   test -z "$as_dir" && as_dir=.
2299   for ac_exec_ext in '' $ac_executable_extensions; do
2300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301     ac_cv_prog_ac_ct_CC="$ac_prog"
2302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303     break 2
2304   fi
2305 done
2306 done
2307 IFS=$as_save_IFS
2308
2309 fi
2310 fi
2311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312 if test -n "$ac_ct_CC"; then
2313   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314 echo "${ECHO_T}$ac_ct_CC" >&6; }
2315 else
2316   { echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6; }
2318 fi
2319
2320
2321   test -n "$ac_ct_CC" && break
2322 done
2323
2324   if test "x$ac_ct_CC" = x; then
2325     CC=""
2326   else
2327     case $cross_compiling:$ac_tool_warned in
2328 yes:)
2329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2330 whose name does not start with the host triplet.  If you think this
2331 configuration is useful to you, please write to autoconf@gnu.org." >&5
2332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2333 whose name does not start with the host triplet.  If you think this
2334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2335 ac_tool_warned=yes ;;
2336 esac
2337     CC=$ac_ct_CC
2338   fi
2339 fi
2340
2341 fi
2342
2343
2344 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: no acceptable C compiler found in \$PATH
2347 See \`config.log' for more details." >&2;}
2348    { (exit 1); exit 1; }; }
2349
2350 # Provide some information about the compiler.
2351 echo "$as_me:$LINENO: checking for C compiler version" >&5
2352 ac_compiler=`set X $ac_compile; echo $2`
2353 { (ac_try="$ac_compiler --version >&5"
2354 case "(($ac_try" in
2355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356   *) ac_try_echo=$ac_try;;
2357 esac
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359   (eval "$ac_compiler --version >&5") 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }
2363 { (ac_try="$ac_compiler -v >&5"
2364 case "(($ac_try" in
2365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366   *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369   (eval "$ac_compiler -v >&5") 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }
2373 { (ac_try="$ac_compiler -V >&5"
2374 case "(($ac_try" in
2375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376   *) ac_try_echo=$ac_try;;
2377 esac
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379   (eval "$ac_compiler -V >&5") 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }
2383
2384 cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h.  */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h.  */
2390
2391 int
2392 main ()
2393 {
2394
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 ac_clean_files_save=$ac_clean_files
2400 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2401 # Try to create an executable without -o first, disregard a.out.
2402 # It will help us diagnose broken compilers, and finding out an intuition
2403 # of exeext.
2404 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2405 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2406 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2407 #
2408 # List of possible output files, starting from the most likely.
2409 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2410 # only as a last resort.  b.out is created by i960 compilers.
2411 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2412 #
2413 # The IRIX 6 linker writes into existing files which may not be
2414 # executable, retaining their permissions.  Remove them first so a
2415 # subsequent execution test works.
2416 ac_rmfiles=
2417 for ac_file in $ac_files
2418 do
2419   case $ac_file in
2420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2421     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2422   esac
2423 done
2424 rm -f $ac_rmfiles
2425
2426 if { (ac_try="$ac_link_default"
2427 case "(($ac_try" in
2428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429   *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432   (eval "$ac_link_default") 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; then
2436   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2437 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2438 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2439 # so that the user can short-circuit this test for compilers unknown to
2440 # Autoconf.
2441 for ac_file in $ac_files ''
2442 do
2443   test -f "$ac_file" || continue
2444   case $ac_file in
2445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2446         ;;
2447     [ab].out )
2448         # We found the default executable, but exeext='' is most
2449         # certainly right.
2450         break;;
2451     *.* )
2452         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2453         then :; else
2454            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2455         fi
2456         # We set ac_cv_exeext here because the later test for it is not
2457         # safe: cross compilers may not add the suffix if given an `-o'
2458         # argument, so we may need to know it at that point already.
2459         # Even if this section looks crufty: it has the advantage of
2460         # actually working.
2461         break;;
2462     * )
2463         break;;
2464   esac
2465 done
2466 test "$ac_cv_exeext" = no && ac_cv_exeext=
2467
2468 else
2469   ac_file=''
2470 fi
2471
2472 { echo "$as_me:$LINENO: result: $ac_file" >&5
2473 echo "${ECHO_T}$ac_file" >&6; }
2474 if test -z "$ac_file"; then
2475   echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2477
2478 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2479 See \`config.log' for more details." >&5
2480 echo "$as_me: error: C compiler cannot create executables
2481 See \`config.log' for more details." >&2;}
2482    { (exit 77); exit 77; }; }
2483 fi
2484
2485 ac_exeext=$ac_cv_exeext
2486
2487 # Check that the compiler produces executables we can run.  If not, either
2488 # the compiler is broken, or we cross compile.
2489 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2490 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2491 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2492 # If not cross compiling, check that we can run a simple program.
2493 if test "$cross_compiling" != yes; then
2494   if { ac_try='./$ac_file'
2495   { (case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_try") 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; }; then
2504     cross_compiling=no
2505   else
2506     if test "$cross_compiling" = maybe; then
2507         cross_compiling=yes
2508     else
2509         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2510 If you meant to cross compile, use \`--host'.
2511 See \`config.log' for more details." >&5
2512 echo "$as_me: error: cannot run C compiled programs.
2513 If you meant to cross compile, use \`--host'.
2514 See \`config.log' for more details." >&2;}
2515    { (exit 1); exit 1; }; }
2516     fi
2517   fi
2518 fi
2519 { echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6; }
2521
2522 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2523 ac_clean_files=$ac_clean_files_save
2524 # Check that the compiler produces executables we can run.  If not, either
2525 # the compiler is broken, or we cross compile.
2526 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2527 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2528 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2529 echo "${ECHO_T}$cross_compiling" >&6; }
2530
2531 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2532 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2533 if { (ac_try="$ac_link"
2534 case "(($ac_try" in
2535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536   *) ac_try_echo=$ac_try;;
2537 esac
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539   (eval "$ac_link") 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }; then
2543   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2544 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2545 # work properly (i.e., refer to `conftest.exe'), while it won't with
2546 # `rm'.
2547 for ac_file in conftest.exe conftest conftest.*; do
2548   test -f "$ac_file" || continue
2549   case $ac_file in
2550     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2551     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552           break;;
2553     * ) break;;
2554   esac
2555 done
2556 else
2557   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2560 See \`config.log' for more details." >&2;}
2561    { (exit 1); exit 1; }; }
2562 fi
2563
2564 rm -f conftest$ac_cv_exeext
2565 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2566 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2567
2568 rm -f conftest.$ac_ext
2569 EXEEXT=$ac_cv_exeext
2570 ac_exeext=$EXEEXT
2571 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2572 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2573 if test "${ac_cv_objext+set}" = set; then
2574   echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576   cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.o conftest.obj
2592 if { (ac_try="$ac_compile"
2593 case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_compile") 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; then
2602   for ac_file in conftest.o conftest.obj conftest.*; do
2603   test -f "$ac_file" || continue;
2604   case $ac_file in
2605     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2606     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2607        break;;
2608   esac
2609 done
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2617 See \`config.log' for more details." >&2;}
2618    { (exit 1); exit 1; }; }
2619 fi
2620
2621 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2622 fi
2623 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2624 echo "${ECHO_T}$ac_cv_objext" >&6; }
2625 OBJEXT=$ac_cv_objext
2626 ac_objext=$OBJEXT
2627 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2628 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2629 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2630   echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632   cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638
2639 int
2640 main ()
2641 {
2642 #ifndef __GNUC__
2643        choke me
2644 #endif
2645
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (ac_try="$ac_compile"
2652 case "(($ac_try" in
2653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654   *) ac_try_echo=$ac_try;;
2655 esac
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657   (eval "$ac_compile") 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } && {
2664          test -z "$ac_c_werror_flag" ||
2665          test ! -s conftest.err
2666        } && test -s conftest.$ac_objext; then
2667   ac_compiler_gnu=yes
2668 else
2669   echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672         ac_compiler_gnu=no
2673 fi
2674
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2677
2678 fi
2679 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2680 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2681 GCC=`test $ac_compiler_gnu = yes && echo yes`
2682 ac_test_CFLAGS=${CFLAGS+set}
2683 ac_save_CFLAGS=$CFLAGS
2684 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2685 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2686 if test "${ac_cv_prog_cc_g+set}" = set; then
2687   echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689   ac_save_c_werror_flag=$ac_c_werror_flag
2690    ac_c_werror_flag=yes
2691    ac_cv_prog_cc_g=no
2692    CFLAGS="-g"
2693    cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h.  */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h.  */
2699
2700 int
2701 main ()
2702 {
2703
2704   ;
2705   return 0;
2706 }
2707 _ACEOF
2708 rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2710 case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715   (eval "$ac_compile") 2>conftest.er1
2716   ac_status=$?
2717   grep -v '^ *+' conftest.er1 >conftest.err
2718   rm -f conftest.er1
2719   cat conftest.err >&5
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); } && {
2722          test -z "$ac_c_werror_flag" ||
2723          test ! -s conftest.err
2724        } && test -s conftest.$ac_objext; then
2725   ac_cv_prog_cc_g=yes
2726 else
2727   echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730         CFLAGS=""
2731       cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h.  */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h.  */
2737
2738 int
2739 main ()
2740 {
2741
2742   ;
2743   return 0;
2744 }
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2748 case "(($ac_try" in
2749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750   *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753   (eval "$ac_compile") 2>conftest.er1
2754   ac_status=$?
2755   grep -v '^ *+' conftest.er1 >conftest.err
2756   rm -f conftest.er1
2757   cat conftest.err >&5
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); } && {
2760          test -z "$ac_c_werror_flag" ||
2761          test ! -s conftest.err
2762        } && test -s conftest.$ac_objext; then
2763   :
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768         ac_c_werror_flag=$ac_save_c_werror_flag
2769          CFLAGS="-g"
2770          cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h.  */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h.  */
2776
2777 int
2778 main ()
2779 {
2780
2781   ;
2782   return 0;
2783 }
2784 _ACEOF
2785 rm -f conftest.$ac_objext
2786 if { (ac_try="$ac_compile"
2787 case "(($ac_try" in
2788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789   *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792   (eval "$ac_compile") 2>conftest.er1
2793   ac_status=$?
2794   grep -v '^ *+' conftest.er1 >conftest.err
2795   rm -f conftest.er1
2796   cat conftest.err >&5
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); } && {
2799          test -z "$ac_c_werror_flag" ||
2800          test ! -s conftest.err
2801        } && test -s conftest.$ac_objext; then
2802   ac_cv_prog_cc_g=yes
2803 else
2804   echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2806
2807
2808 fi
2809
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 fi
2812
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 fi
2815
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817    ac_c_werror_flag=$ac_save_c_werror_flag
2818 fi
2819 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2821 if test "$ac_test_CFLAGS" = set; then
2822   CFLAGS=$ac_save_CFLAGS
2823 elif test $ac_cv_prog_cc_g = yes; then
2824   if test "$GCC" = yes; then
2825     CFLAGS="-g -O2"
2826   else
2827     CFLAGS="-g"
2828   fi
2829 else
2830   if test "$GCC" = yes; then
2831     CFLAGS="-O2"
2832   else
2833     CFLAGS=
2834   fi
2835 fi
2836 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2837 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2838 if test "${ac_cv_prog_cc_c89+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   ac_cv_prog_cc_c89=no
2842 ac_save_CC=$CC
2843 cat >conftest.$ac_ext <<_ACEOF
2844 /* confdefs.h.  */
2845 _ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h.  */
2849 #include <stdarg.h>
2850 #include <stdio.h>
2851 #include <sys/types.h>
2852 #include <sys/stat.h>
2853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2854 struct buf { int x; };
2855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2856 static char *e (p, i)
2857      char **p;
2858      int i;
2859 {
2860   return p[i];
2861 }
2862 static char *f (char * (*g) (char **, int), char **p, ...)
2863 {
2864   char *s;
2865   va_list v;
2866   va_start (v,p);
2867   s = g (p, va_arg (v,int));
2868   va_end (v);
2869   return s;
2870 }
2871
2872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2873    function prototypes and stuff, but not '\xHH' hex character constants.
2874    These don't provoke an error unfortunately, instead are silently treated
2875    as 'x'.  The following induces an error, until -std is added to get
2876    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2877    array size at least.  It's necessary to write '\x00'==0 to get something
2878    that's true only with -std.  */
2879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2880
2881 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2882    inside strings and character constants.  */
2883 #define FOO(x) 'x'
2884 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2885
2886 int test (int i, double x);
2887 struct s1 {int (*f) (int a);};
2888 struct s2 {int (*f) (double a);};
2889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890 int argc;
2891 char **argv;
2892 int
2893 main ()
2894 {
2895 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2896   ;
2897   return 0;
2898 }
2899 _ACEOF
2900 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2901         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2902 do
2903   CC="$ac_save_CC $ac_arg"
2904   rm -f conftest.$ac_objext
2905 if { (ac_try="$ac_compile"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911   (eval "$ac_compile") 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } && {
2918          test -z "$ac_c_werror_flag" ||
2919          test ! -s conftest.err
2920        } && test -s conftest.$ac_objext; then
2921   ac_cv_prog_cc_c89=$ac_arg
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926
2927 fi
2928
2929 rm -f core conftest.err conftest.$ac_objext
2930   test "x$ac_cv_prog_cc_c89" != "xno" && break
2931 done
2932 rm -f conftest.$ac_ext
2933 CC=$ac_save_CC
2934
2935 fi
2936 # AC_CACHE_VAL
2937 case "x$ac_cv_prog_cc_c89" in
2938   x)
2939     { echo "$as_me:$LINENO: result: none needed" >&5
2940 echo "${ECHO_T}none needed" >&6; } ;;
2941   xno)
2942     { echo "$as_me:$LINENO: result: unsupported" >&5
2943 echo "${ECHO_T}unsupported" >&6; } ;;
2944   *)
2945     CC="$CC $ac_cv_prog_cc_c89"
2946     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2947 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2948 esac
2949
2950
2951 ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956
2957 ac_ext=cpp
2958 ac_cpp='$CXXCPP $CPPFLAGS'
2959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2962 if test -z "$CXX"; then
2963   if test -n "$CCC"; then
2964     CXX=$CCC
2965   else
2966     if test -n "$ac_tool_prefix"; then
2967   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2968   do
2969     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_CXX+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   if test -n "$CXX"; then
2977   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984   for ac_exec_ext in '' $ac_executable_extensions; do
2985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 CXX=$ac_cv_prog_CXX
2997 if test -n "$CXX"; then
2998   { echo "$as_me:$LINENO: result: $CXX" >&5
2999 echo "${ECHO_T}$CXX" >&6; }
3000 else
3001   { echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6; }
3003 fi
3004
3005
3006     test -n "$CXX" && break
3007   done
3008 fi
3009 if test -z "$CXX"; then
3010   ac_ct_CXX=$CXX
3011   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3012 do
3013   # Extract the first word of "$ac_prog", so it can be a program name with args.
3014 set dummy $ac_prog; ac_word=$2
3015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3017 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3018   echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020   if test -n "$ac_ct_CXX"; then
3021   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026   IFS=$as_save_IFS
3027   test -z "$as_dir" && as_dir=.
3028   for ac_exec_ext in '' $ac_executable_extensions; do
3029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030     ac_cv_prog_ac_ct_CXX="$ac_prog"
3031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032     break 2
3033   fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3041 if test -n "$ac_ct_CXX"; then
3042   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3043 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3044 else
3045   { echo "$as_me:$LINENO: result: no" >&5
3046 echo "${ECHO_T}no" >&6; }
3047 fi
3048
3049
3050   test -n "$ac_ct_CXX" && break
3051 done
3052
3053   if test "x$ac_ct_CXX" = x; then
3054     CXX="g++"
3055   else
3056     case $cross_compiling:$ac_tool_warned in
3057 yes:)
3058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3059 whose name does not start with the host triplet.  If you think this
3060 configuration is useful to you, please write to autoconf@gnu.org." >&5
3061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3062 whose name does not start with the host triplet.  If you think this
3063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066     CXX=$ac_ct_CXX
3067   fi
3068 fi
3069
3070   fi
3071 fi
3072 # Provide some information about the compiler.
3073 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3074 ac_compiler=`set X $ac_compile; echo $2`
3075 { (ac_try="$ac_compiler --version >&5"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_compiler --version >&5") 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }
3085 { (ac_try="$ac_compiler -v >&5"
3086 case "(($ac_try" in
3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088   *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091   (eval "$ac_compiler -v >&5") 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }
3095 { (ac_try="$ac_compiler -V >&5"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_compiler -V >&5") 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }
3105
3106 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3107 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3108 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117
3118 int
3119 main ()
3120 {
3121 #ifndef __GNUC__
3122        choke me
3123 #endif
3124
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_compile") 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } && {
3143          test -z "$ac_cxx_werror_flag" ||
3144          test ! -s conftest.err
3145        } && test -s conftest.$ac_objext; then
3146   ac_compiler_gnu=yes
3147 else
3148   echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151         ac_compiler_gnu=no
3152 fi
3153
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3156
3157 fi
3158 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3159 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3160 GXX=`test $ac_compiler_gnu = yes && echo yes`
3161 ac_test_CXXFLAGS=${CXXFLAGS+set}
3162 ac_save_CXXFLAGS=$CXXFLAGS
3163 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3164 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3165 if test "${ac_cv_prog_cxx_g+set}" = set; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3169    ac_cxx_werror_flag=yes
3170    ac_cv_prog_cxx_g=no
3171    CXXFLAGS="-g"
3172    cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178
3179 int
3180 main ()
3181 {
3182
3183   ;
3184   return 0;
3185 }
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (ac_try="$ac_compile"
3189 case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194   (eval "$ac_compile") 2>conftest.er1
3195   ac_status=$?
3196   grep -v '^ *+' conftest.er1 >conftest.err
3197   rm -f conftest.er1
3198   cat conftest.err >&5
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); } && {
3201          test -z "$ac_cxx_werror_flag" ||
3202          test ! -s conftest.err
3203        } && test -s conftest.$ac_objext; then
3204   ac_cv_prog_cxx_g=yes
3205 else
3206   echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209         CXXFLAGS=""
3210       cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h.  */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h.  */
3216
3217 int
3218 main ()
3219 {
3220
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232   (eval "$ac_compile") 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } && {
3239          test -z "$ac_cxx_werror_flag" ||
3240          test ! -s conftest.err
3241        } && test -s conftest.$ac_objext; then
3242   :
3243 else
3244   echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3248          CXXFLAGS="-g"
3249          cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255
3256 int
3257 main ()
3258 {
3259
3260   ;
3261   return 0;
3262 }
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271   (eval "$ac_compile") 2>conftest.er1
3272   ac_status=$?
3273   grep -v '^ *+' conftest.er1 >conftest.err
3274   rm -f conftest.er1
3275   cat conftest.err >&5
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); } && {
3278          test -z "$ac_cxx_werror_flag" ||
3279          test ! -s conftest.err
3280        } && test -s conftest.$ac_objext; then
3281   ac_cv_prog_cxx_g=yes
3282 else
3283   echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286
3287 fi
3288
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 fi
3291
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 fi
3294
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3297 fi
3298 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3299 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3300 if test "$ac_test_CXXFLAGS" = set; then
3301   CXXFLAGS=$ac_save_CXXFLAGS
3302 elif test $ac_cv_prog_cxx_g = yes; then
3303   if test "$GXX" = yes; then
3304     CXXFLAGS="-g -O2"
3305   else
3306     CXXFLAGS="-g"
3307   fi
3308 else
3309   if test "$GXX" = yes; then
3310     CXXFLAGS="-O2"
3311   else
3312     CXXFLAGS=
3313   fi
3314 fi
3315 ac_ext=c
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320
3321 if test -n "$ac_tool_prefix"; then
3322   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3323 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3326 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   if test -n "$CPPBIN"; then
3330   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335   IFS=$as_save_IFS
3336   test -z "$as_dir" && as_dir=.
3337   for ac_exec_ext in '' $ac_executable_extensions; do
3338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3339     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344 done
3345 IFS=$as_save_IFS
3346
3347 fi
3348 fi
3349 CPPBIN=$ac_cv_prog_CPPBIN
3350 if test -n "$CPPBIN"; then
3351   { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3352 echo "${ECHO_T}$CPPBIN" >&6; }
3353 else
3354   { echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6; }
3356 fi
3357
3358
3359 fi
3360 if test -z "$ac_cv_prog_CPPBIN"; then
3361   ac_ct_CPPBIN=$CPPBIN
3362   # Extract the first word of "cpp", so it can be a program name with args.
3363 set dummy cpp; ac_word=$2
3364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3366 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   if test -n "$ac_ct_CPPBIN"; then
3370   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377   for ac_exec_ext in '' $ac_executable_extensions; do
3378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379     ac_cv_prog_ac_ct_CPPBIN="cpp"
3380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381     break 2
3382   fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3390 if test -n "$ac_ct_CPPBIN"; then
3391   { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3392 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3393 else
3394   { echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6; }
3396 fi
3397
3398   if test "x$ac_ct_CPPBIN" = x; then
3399     CPPBIN="cpp"
3400   else
3401     case $cross_compiling:$ac_tool_warned in
3402 yes:)
3403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3404 whose name does not start with the host triplet.  If you think this
3405 configuration is useful to you, please write to autoconf@gnu.org." >&5
3406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3407 whose name does not start with the host triplet.  If you think this
3408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3409 ac_tool_warned=yes ;;
3410 esac
3411     CPPBIN=$ac_ct_CPPBIN
3412   fi
3413 else
3414   CPPBIN="$ac_cv_prog_CPPBIN"
3415 fi
3416
3417
3418 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3419 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3420 if test "${wine_cv_toolsdir+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   if test -z "$with_wine_tools"; then
3424      if test "$cross_compiling" = "yes"; then
3425        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3426 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3427    { (exit 1); exit 1; }; }
3428      else
3429        wine_cv_toolsdir="\$(TOPOBJDIR)"
3430      fi
3431    elif test -d "$with_wine_tools/tools/winebuild"; then
3432      case $with_wine_tools in
3433        /*) wine_cv_toolsdir="$with_wine_tools" ;;
3434        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3435      esac
3436    else
3437      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3438 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3439    { (exit 1); exit 1; }; }
3440    fi
3441 fi
3442 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3443 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3444 TOOLSDIR=$wine_cv_toolsdir
3445
3446
3447
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3454 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3455 # On Suns, sometimes $CPP names a directory.
3456 if test -n "$CPP" && test -d "$CPP"; then
3457   CPP=
3458 fi
3459 if test -z "$CPP"; then
3460   if test "${ac_cv_prog_CPP+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463       # Double quotes because CPP needs to be expanded
3464     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3465     do
3466       ac_preproc_ok=false
3467 for ac_c_preproc_warn_flag in '' yes
3468 do
3469   # Use a header file that comes with gcc, so configuring glibc
3470   # with a fresh cross-compiler works.
3471   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472   # <limits.h> exists even on freestanding compilers.
3473   # On the NeXT, cc -E runs the code through the compiler's parser,
3474   # not just through cpp. "Syntax error" is here to catch this case.
3475   cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 #ifdef __STDC__
3482 # include <limits.h>
3483 #else
3484 # include <assert.h>
3485 #endif
3486                      Syntax error
3487 _ACEOF
3488 if { (ac_try="$ac_cpp conftest.$ac_ext"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } >/dev/null && {
3501          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502          test ! -s conftest.err
3503        }; then
3504   :
3505 else
3506   echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509   # Broken: fails on valid input.
3510 continue
3511 fi
3512
3513 rm -f conftest.err conftest.$ac_ext
3514
3515   # OK, works on sane cases.  Now check whether nonexistent headers
3516   # can be detected and how.
3517   cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523 #include <ac_nonexistent.h>
3524 _ACEOF
3525 if { (ac_try="$ac_cpp conftest.$ac_ext"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3532   ac_status=$?
3533   grep -v '^ *+' conftest.er1 >conftest.err
3534   rm -f conftest.er1
3535   cat conftest.err >&5
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); } >/dev/null && {
3538          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3539          test ! -s conftest.err
3540        }; then
3541   # Broken: success on invalid input.
3542 continue
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547   # Passes both tests.
3548 ac_preproc_ok=:
3549 break
3550 fi
3551
3552 rm -f conftest.err conftest.$ac_ext
3553
3554 done
3555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556 rm -f conftest.err conftest.$ac_ext
3557 if $ac_preproc_ok; then
3558   break
3559 fi
3560
3561     done
3562     ac_cv_prog_CPP=$CPP
3563
3564 fi
3565   CPP=$ac_cv_prog_CPP
3566 else
3567   ac_cv_prog_CPP=$CPP
3568 fi
3569 { echo "$as_me:$LINENO: result: $CPP" >&5
3570 echo "${ECHO_T}$CPP" >&6; }
3571 ac_preproc_ok=false
3572 for ac_c_preproc_warn_flag in '' yes
3573 do
3574   # Use a header file that comes with gcc, so configuring glibc
3575   # with a fresh cross-compiler works.
3576   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577   # <limits.h> exists even on freestanding compilers.
3578   # On the NeXT, cc -E runs the code through the compiler's parser,
3579   # not just through cpp. "Syntax error" is here to catch this case.
3580   cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h.  */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h.  */
3586 #ifdef __STDC__
3587 # include <limits.h>
3588 #else
3589 # include <assert.h>
3590 #endif
3591                      Syntax error
3592 _ACEOF
3593 if { (ac_try="$ac_cpp conftest.$ac_ext"
3594 case "(($ac_try" in
3595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596   *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3600   ac_status=$?
3601   grep -v '^ *+' conftest.er1 >conftest.err
3602   rm -f conftest.er1
3603   cat conftest.err >&5
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } >/dev/null && {
3606          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3607          test ! -s conftest.err
3608        }; then
3609   :
3610 else
3611   echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614   # Broken: fails on valid input.
3615 continue
3616 fi
3617
3618 rm -f conftest.err conftest.$ac_ext
3619
3620   # OK, works on sane cases.  Now check whether nonexistent headers
3621   # can be detected and how.
3622   cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h.  */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h.  */
3628 #include <ac_nonexistent.h>
3629 _ACEOF
3630 if { (ac_try="$ac_cpp conftest.$ac_ext"
3631 case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3637   ac_status=$?
3638   grep -v '^ *+' conftest.er1 >conftest.err
3639   rm -f conftest.er1
3640   cat conftest.err >&5
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); } >/dev/null && {
3643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3644          test ! -s conftest.err
3645        }; then
3646   # Broken: success on invalid input.
3647 continue
3648 else
3649   echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651
3652   # Passes both tests.
3653 ac_preproc_ok=:
3654 break
3655 fi
3656
3657 rm -f conftest.err conftest.$ac_ext
3658
3659 done
3660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3661 rm -f conftest.err conftest.$ac_ext
3662 if $ac_preproc_ok; then
3663   :
3664 else
3665   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3666 See \`config.log' for more details." >&5
3667 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3668 See \`config.log' for more details." >&2;}
3669    { (exit 1); exit 1; }; }
3670 fi
3671
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677
3678
3679 { echo "$as_me:$LINENO: checking for X" >&5
3680 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3681
3682
3683 # Check whether --with-x was given.
3684 if test "${with_x+set}" = set; then
3685   withval=$with_x;
3686 fi
3687
3688 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3689 if test "x$with_x" = xno; then
3690   # The user explicitly disabled X.
3691   have_x=disabled
3692 else
3693   case $x_includes,$x_libraries in #(
3694     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3695 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3696    { (exit 1); exit 1; }; };; #(
3697     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   # One or both of the vars are not set, and there is no cached value.
3701 ac_x_includes=no ac_x_libraries=no
3702 rm -f -r conftest.dir
3703 if mkdir conftest.dir; then
3704   cd conftest.dir
3705   cat >Imakefile <<'_ACEOF'
3706 incroot:
3707         @echo incroot='${INCROOT}'
3708 usrlibdir:
3709         @echo usrlibdir='${USRLIBDIR}'
3710 libdir:
3711         @echo libdir='${LIBDIR}'
3712 _ACEOF
3713   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3714     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3715     for ac_var in incroot usrlibdir libdir; do
3716       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3717     done
3718     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3719     for ac_extension in a so sl; do
3720       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3721          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3722         ac_im_usrlibdir=$ac_im_libdir; break
3723       fi
3724     done
3725     # Screen out bogus values from the imake configuration.  They are
3726     # bogus both because they are the default anyway, and because
3727     # using them would break gcc on systems where it needs fixed includes.
3728     case $ac_im_incroot in
3729         /usr/include) ac_x_includes= ;;
3730         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3731     esac
3732     case $ac_im_usrlibdir in
3733         /usr/lib | /lib) ;;
3734         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3735     esac
3736   fi
3737   cd ..
3738   rm -f -r conftest.dir
3739 fi
3740
3741 # Standard set of common directories for X headers.
3742 # Check X11 before X11Rn because it is often a symlink to the current release.
3743 ac_x_header_dirs='
3744 /usr/X11/include
3745 /usr/X11R6/include
3746 /usr/X11R5/include
3747 /usr/X11R4/include
3748
3749 /usr/include/X11
3750 /usr/include/X11R6
3751 /usr/include/X11R5
3752 /usr/include/X11R4
3753
3754 /usr/local/X11/include
3755 /usr/local/X11R6/include
3756 /usr/local/X11R5/include
3757 /usr/local/X11R4/include
3758
3759 /usr/local/include/X11
3760 /usr/local/include/X11R6
3761 /usr/local/include/X11R5
3762 /usr/local/include/X11R4
3763
3764 /usr/X386/include
3765 /usr/x386/include
3766 /usr/XFree86/include/X11
3767
3768 /usr/include
3769 /usr/local/include
3770 /usr/unsupported/include
3771 /usr/athena/include
3772 /usr/local/x11r5/include
3773 /usr/lpp/Xamples/include
3774
3775 /usr/openwin/include
3776 /usr/openwin/share/include'
3777
3778 if test "$ac_x_includes" = no; then
3779   # Guess where to find include files, by looking for Xlib.h.
3780   # First, try using that file with no special directory specified.
3781   cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787 #include <X11/Xlib.h>
3788 _ACEOF
3789 if { (ac_try="$ac_cpp conftest.$ac_ext"
3790 case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3796   ac_status=$?
3797   grep -v '^ *+' conftest.er1 >conftest.err
3798   rm -f conftest.er1
3799   cat conftest.err >&5
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); } >/dev/null && {
3802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3803          test ! -s conftest.err
3804        }; then
3805   # We can compile using X headers with no special include directory.
3806 ac_x_includes=
3807 else
3808   echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811   for ac_dir in $ac_x_header_dirs; do
3812   if test -r "$ac_dir/X11/Xlib.h"; then
3813     ac_x_includes=$ac_dir
3814     break
3815   fi
3816 done
3817 fi
3818
3819 rm -f conftest.err conftest.$ac_ext
3820 fi # $ac_x_includes = no
3821
3822 if test "$ac_x_libraries" = no; then
3823   # Check for the libraries.
3824   # See if we find them without any special options.
3825   # Don't add to $LIBS permanently.
3826   ac_save_LIBS=$LIBS
3827   LIBS="-lX11 $LIBS"
3828   cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h.  */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h.  */
3834 #include <X11/Xlib.h>
3835 int
3836 main ()
3837 {
3838 XrmInitialize ()
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 rm -f conftest.$ac_objext conftest$ac_exeext
3844 if { (ac_try="$ac_link"
3845 case "(($ac_try" in
3846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847   *) ac_try_echo=$ac_try;;
3848 esac
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850   (eval "$ac_link") 2>conftest.er1
3851   ac_status=$?
3852   grep -v '^ *+' conftest.er1 >conftest.err
3853   rm -f conftest.er1
3854   cat conftest.err >&5
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); } && {
3857          test -z "$ac_c_werror_flag" ||
3858          test ! -s conftest.err
3859        } && test -s conftest$ac_exeext &&
3860        $as_test_x conftest$ac_exeext; then
3861   LIBS=$ac_save_LIBS
3862 # We can link X programs with no special library path.
3863 ac_x_libraries=
3864 else
3865   echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3867
3868         LIBS=$ac_save_LIBS
3869 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3870 do
3871   # Don't even attempt the hair of trying to link an X program!
3872   for ac_extension in a so sl; do
3873     if test -r "$ac_dir/libX11.$ac_extension"; then
3874       ac_x_libraries=$ac_dir
3875       break 2
3876     fi
3877   done
3878 done
3879 fi
3880
3881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3882       conftest$ac_exeext conftest.$ac_ext
3883 fi # $ac_x_libraries = no
3884
3885 case $ac_x_includes,$ac_x_libraries in #(
3886   no,* | *,no | *\'*)
3887     # Didn't find X, or a directory has "'" in its name.
3888     ac_cv_have_x="have_x=no";; #(
3889   *)
3890     # Record where we found X for the cache.
3891     ac_cv_have_x="have_x=yes\
3892         ac_x_includes='$ac_x_includes'\
3893         ac_x_libraries='$ac_x_libraries'"
3894 esac
3895 fi
3896 ;; #(
3897     *) have_x=yes;;
3898   esac
3899   eval "$ac_cv_have_x"
3900 fi # $with_x != no
3901
3902 if test "$have_x" != yes; then
3903   { echo "$as_me:$LINENO: result: $have_x" >&5
3904 echo "${ECHO_T}$have_x" >&6; }
3905   no_x=yes
3906 else
3907   # If each of the values was on the command line, it overrides each guess.
3908   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3909   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3910   # Update the cache value to reflect the command line values.
3911   ac_cv_have_x="have_x=yes\
3912         ac_x_includes='$x_includes'\
3913         ac_x_libraries='$x_libraries'"
3914   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3915 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3916 fi
3917
3918 if test "$no_x" = yes; then
3919   # Not all programs may use this symbol, but it does not hurt to define it.
3920
3921 cat >>confdefs.h <<\_ACEOF
3922 #define X_DISPLAY_MISSING 1
3923 _ACEOF
3924
3925   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3926 else
3927   if test -n "$x_includes"; then
3928     X_CFLAGS="$X_CFLAGS -I$x_includes"
3929   fi
3930
3931   # It would also be nice to do this for all -L options, not just this one.
3932   if test -n "$x_libraries"; then
3933     X_LIBS="$X_LIBS -L$x_libraries"
3934     # For Solaris; some versions of Sun CC require a space after -R and
3935     # others require no space.  Words are not sufficient . . . .
3936     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3937 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3938     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3939     ac_xsave_c_werror_flag=$ac_c_werror_flag
3940     ac_c_werror_flag=yes
3941     cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h.  */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h.  */
3947
3948 int
3949 main ()
3950 {
3951
3952   ;
3953   return 0;
3954 }
3955 _ACEOF
3956 rm -f conftest.$ac_objext conftest$ac_exeext
3957 if { (ac_try="$ac_link"
3958 case "(($ac_try" in
3959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960   *) ac_try_echo=$ac_try;;
3961 esac
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963   (eval "$ac_link") 2>conftest.er1
3964   ac_status=$?
3965   grep -v '^ *+' conftest.er1 >conftest.err
3966   rm -f conftest.er1
3967   cat conftest.err >&5
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } && {
3970          test -z "$ac_c_werror_flag" ||
3971          test ! -s conftest.err
3972        } && test -s conftest$ac_exeext &&
3973        $as_test_x conftest$ac_exeext; then
3974   { echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6; }
3976        X_LIBS="$X_LIBS -R$x_libraries"
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981         LIBS="$ac_xsave_LIBS -R $x_libraries"
3982        cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h.  */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h.  */
3988
3989 int
3990 main ()
3991 {
3992
3993   ;
3994   return 0;
3995 }
3996 _ACEOF
3997 rm -f conftest.$ac_objext conftest$ac_exeext
3998 if { (ac_try="$ac_link"
3999 case "(($ac_try" in
4000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001   *) ac_try_echo=$ac_try;;
4002 esac
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004   (eval "$ac_link") 2>conftest.er1
4005   ac_status=$?
4006   grep -v '^ *+' conftest.er1 >conftest.err
4007   rm -f conftest.er1
4008   cat conftest.err >&5
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); } && {
4011          test -z "$ac_c_werror_flag" ||
4012          test ! -s conftest.err
4013        } && test -s conftest$ac_exeext &&
4014        $as_test_x conftest$ac_exeext; then
4015   { echo "$as_me:$LINENO: result: yes" >&5
4016 echo "${ECHO_T}yes" >&6; }
4017           X_LIBS="$X_LIBS -R $x_libraries"
4018 else
4019   echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4021
4022         { echo "$as_me:$LINENO: result: neither works" >&5
4023 echo "${ECHO_T}neither works" >&6; }
4024 fi
4025
4026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4027       conftest$ac_exeext conftest.$ac_ext
4028 fi
4029
4030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4031       conftest$ac_exeext conftest.$ac_ext
4032     ac_c_werror_flag=$ac_xsave_c_werror_flag
4033     LIBS=$ac_xsave_LIBS
4034   fi
4035
4036   # Check for system-dependent libraries X programs must link with.
4037   # Do this before checking for the system-independent R6 libraries
4038   # (-lICE), since we may need -lsocket or whatever for X linking.
4039
4040   if test "$ISC" = yes; then
4041     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4042   else
4043     # Martyn Johnson says this is needed for Ultrix, if the X
4044     # libraries were built with DECnet support.  And Karl Berry says
4045     # the Alpha needs dnet_stub (dnet does not exist).
4046     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4047     cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h.  */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h.  */
4053
4054 /* Override any GCC internal prototype to avoid an error.
4055    Use char because int might match the return type of a GCC
4056    builtin and then its argument prototype would still apply.  */
4057 #ifdef __cplusplus
4058 extern "C"
4059 #endif
4060 char XOpenDisplay ();
4061 int
4062 main ()
4063 {
4064 return XOpenDisplay ();
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest.$ac_objext conftest$ac_exeext
4070 if { (ac_try="$ac_link"
4071 case "(($ac_try" in
4072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073   *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076   (eval "$ac_link") 2>conftest.er1
4077   ac_status=$?
4078   grep -v '^ *+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } && {
4083          test -z "$ac_c_werror_flag" ||
4084          test ! -s conftest.err
4085        } && test -s conftest$ac_exeext &&
4086        $as_test_x conftest$ac_exeext; then
4087   :
4088 else
4089   echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4093 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4094 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   ac_check_lib_save_LIBS=$LIBS
4098 LIBS="-ldnet  $LIBS"
4099 cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h.  */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h.  */
4105
4106 /* Override any GCC internal prototype to avoid an error.
4107    Use char because int might match the return type of a GCC
4108    builtin and then its argument prototype would still apply.  */
4109 #ifdef __cplusplus
4110 extern "C"
4111 #endif
4112 char dnet_ntoa ();
4113 int
4114 main ()
4115 {
4116 return dnet_ntoa ();
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 rm -f conftest.$ac_objext conftest$ac_exeext
4122 if { (ac_try="$ac_link"
4123 case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128   (eval "$ac_link") 2>conftest.er1
4129   ac_status=$?
4130   grep -v '^ *+' conftest.er1 >conftest.err
4131   rm -f conftest.er1
4132   cat conftest.err >&5
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); } && {
4135          test -z "$ac_c_werror_flag" ||
4136          test ! -s conftest.err
4137        } && test -s conftest$ac_exeext &&
4138        $as_test_x conftest$ac_exeext; then
4139   ac_cv_lib_dnet_dnet_ntoa=yes
4140 else
4141   echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4143
4144         ac_cv_lib_dnet_dnet_ntoa=no
4145 fi
4146
4147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4148       conftest$ac_exeext conftest.$ac_ext
4149 LIBS=$ac_check_lib_save_LIBS
4150 fi
4151 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4152 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4153 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4154   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4155 fi
4156
4157     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4158       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4159 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4160 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   ac_check_lib_save_LIBS=$LIBS
4164 LIBS="-ldnet_stub  $LIBS"
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171
4172 /* Override any GCC internal prototype to avoid an error.
4173    Use char because int might match the return type of a GCC
4174    builtin and then its argument prototype would still apply.  */
4175 #ifdef __cplusplus
4176 extern "C"
4177 #endif
4178 char dnet_ntoa ();
4179 int
4180 main ()
4181 {
4182 return dnet_ntoa ();
4183   ;
4184   return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest.$ac_objext conftest$ac_exeext
4188 if { (ac_try="$ac_link"
4189 case "(($ac_try" in
4190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191   *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194   (eval "$ac_link") 2>conftest.er1
4195   ac_status=$?
4196   grep -v '^ *+' conftest.er1 >conftest.err
4197   rm -f conftest.er1
4198   cat conftest.err >&5
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); } && {
4201          test -z "$ac_c_werror_flag" ||
4202          test ! -s conftest.err
4203        } && test -s conftest$ac_exeext &&
4204        $as_test_x conftest$ac_exeext; then
4205   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4206 else
4207   echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210         ac_cv_lib_dnet_stub_dnet_ntoa=no
4211 fi
4212
4213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4214       conftest$ac_exeext conftest.$ac_ext
4215 LIBS=$ac_check_lib_save_LIBS
4216 fi
4217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4218 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4219 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4220   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4221 fi
4222
4223     fi
4224 fi
4225
4226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4227       conftest$ac_exeext conftest.$ac_ext
4228     LIBS="$ac_xsave_LIBS"
4229
4230     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4231     # to get the SysV transport functions.
4232     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4233     # needs -lnsl.
4234     # The nsl library prevents programs from opening the X display
4235     # on Irix 5.2, according to T.E. Dickey.
4236     # The functions gethostbyname, getservbyname, and inet_addr are
4237     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4238     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4239 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4240 if test "${ac_cv_func_gethostbyname+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h.  */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h.  */
4249 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4251 #define gethostbyname innocuous_gethostbyname
4252
4253 /* System header to define __stub macros and hopefully few prototypes,
4254     which can conflict with char gethostbyname (); below.
4255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256     <limits.h> exists even on freestanding compilers.  */
4257
4258 #ifdef __STDC__
4259 # include <limits.h>
4260 #else
4261 # include <assert.h>
4262 #endif
4263
4264 #undef gethostbyname
4265
4266 /* Override any GCC internal prototype to avoid an error.
4267    Use char because int might match the return type of a GCC
4268    builtin and then its argument prototype would still apply.  */
4269 #ifdef __cplusplus
4270 extern "C"
4271 #endif
4272 char gethostbyname ();
4273 /* The GNU C library defines this for functions which it implements
4274     to always fail with ENOSYS.  Some functions are actually named
4275     something starting with __ and the normal name is an alias.  */
4276 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4277 choke me
4278 #endif
4279
4280 int
4281 main ()
4282 {
4283 return gethostbyname ();
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 rm -f conftest.$ac_objext conftest$ac_exeext
4289 if { (ac_try="$ac_link"
4290 case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295   (eval "$ac_link") 2>conftest.er1
4296   ac_status=$?
4297   grep -v '^ *+' conftest.er1 >conftest.err
4298   rm -f conftest.er1
4299   cat conftest.err >&5
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); } && {
4302          test -z "$ac_c_werror_flag" ||
4303          test ! -s conftest.err
4304        } && test -s conftest$ac_exeext &&
4305        $as_test_x conftest$ac_exeext; then
4306   ac_cv_func_gethostbyname=yes
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311         ac_cv_func_gethostbyname=no
4312 fi
4313
4314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4315       conftest$ac_exeext conftest.$ac_ext
4316 fi
4317 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4318 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4319
4320     if test $ac_cv_func_gethostbyname = no; then
4321       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4322 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4323 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   ac_check_lib_save_LIBS=$LIBS
4327 LIBS="-lnsl  $LIBS"
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h.  */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h.  */
4334
4335 /* Override any GCC internal prototype to avoid an error.
4336    Use char because int might match the return type of a GCC
4337    builtin and then its argument prototype would still apply.  */
4338 #ifdef __cplusplus
4339 extern "C"
4340 #endif
4341 char gethostbyname ();
4342 int
4343 main ()
4344 {
4345 return gethostbyname ();
4346   ;
4347   return 0;
4348 }
4349 _ACEOF
4350 rm -f conftest.$ac_objext conftest$ac_exeext
4351 if { (ac_try="$ac_link"
4352 case "(($ac_try" in
4353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354   *) ac_try_echo=$ac_try;;
4355 esac
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357   (eval "$ac_link") 2>conftest.er1
4358   ac_status=$?
4359   grep -v '^ *+' conftest.er1 >conftest.err
4360   rm -f conftest.er1
4361   cat conftest.err >&5
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } && {
4364          test -z "$ac_c_werror_flag" ||
4365          test ! -s conftest.err
4366        } && test -s conftest$ac_exeext &&
4367        $as_test_x conftest$ac_exeext; then
4368   ac_cv_lib_nsl_gethostbyname=yes
4369 else
4370   echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373         ac_cv_lib_nsl_gethostbyname=no
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4377       conftest$ac_exeext conftest.$ac_ext
4378 LIBS=$ac_check_lib_save_LIBS
4379 fi
4380 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4381 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4382 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4383   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4384 fi
4385
4386       if test $ac_cv_lib_nsl_gethostbyname = no; then
4387         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4388 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4389 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   ac_check_lib_save_LIBS=$LIBS
4393 LIBS="-lbsd  $LIBS"
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h.  */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h.  */
4400
4401 /* Override any GCC internal prototype to avoid an error.
4402    Use char because int might match the return type of a GCC
4403    builtin and then its argument prototype would still apply.  */
4404 #ifdef __cplusplus
4405 extern "C"
4406 #endif
4407 char gethostbyname ();
4408 int
4409 main ()
4410 {
4411 return gethostbyname ();
4412   ;
4413   return 0;
4414 }
4415 _ACEOF
4416 rm -f conftest.$ac_objext conftest$ac_exeext
4417 if { (ac_try="$ac_link"
4418 case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423   (eval "$ac_link") 2>conftest.er1
4424   ac_status=$?
4425   grep -v '^ *+' conftest.er1 >conftest.err
4426   rm -f conftest.er1
4427   cat conftest.err >&5
4428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); } && {
4430          test -z "$ac_c_werror_flag" ||
4431          test ! -s conftest.err
4432        } && test -s conftest$ac_exeext &&
4433        $as_test_x conftest$ac_exeext; then
4434   ac_cv_lib_bsd_gethostbyname=yes
4435 else
4436   echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439         ac_cv_lib_bsd_gethostbyname=no
4440 fi
4441
4442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4443       conftest$ac_exeext conftest.$ac_ext
4444 LIBS=$ac_check_lib_save_LIBS
4445 fi
4446 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4447 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4448 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4449   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4450 fi
4451
4452       fi
4453     fi
4454
4455     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4456     # socket/setsockopt and other routines are undefined under SCO ODT
4457     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4458     # on later versions), says Simon Leinen: it contains gethostby*
4459     # variants that don't use the name server (or something).  -lsocket
4460     # must be given before -lnsl if both are needed.  We assume that
4461     # if connect needs -lnsl, so does gethostbyname.
4462     { echo "$as_me:$LINENO: checking for connect" >&5
4463 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4464 if test "${ac_cv_func_connect+set}" = set; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h.  */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h.  */
4473 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4475 #define connect innocuous_connect
4476
4477 /* System header to define __stub macros and hopefully few prototypes,
4478     which can conflict with char connect (); below.
4479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480     <limits.h> exists even on freestanding compilers.  */
4481
4482 #ifdef __STDC__
4483 # include <limits.h>
4484 #else
4485 # include <assert.h>
4486 #endif
4487
4488 #undef connect
4489
4490 /* Override any GCC internal prototype to avoid an error.
4491    Use char because int might match the return type of a GCC
4492    builtin and then its argument prototype would still apply.  */
4493 #ifdef __cplusplus
4494 extern "C"
4495 #endif
4496 char connect ();
4497 /* The GNU C library defines this for functions which it implements
4498     to always fail with ENOSYS.  Some functions are actually named
4499     something starting with __ and the normal name is an alias.  */
4500 #if defined __stub_connect || defined __stub___connect
4501 choke me
4502 #endif
4503
4504 int
4505 main ()
4506 {
4507 return connect ();
4508   ;
4509   return 0;
4510 }
4511 _ACEOF
4512 rm -f conftest.$ac_objext conftest$ac_exeext
4513 if { (ac_try="$ac_link"
4514 case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519   (eval "$ac_link") 2>conftest.er1
4520   ac_status=$?
4521   grep -v '^ *+' conftest.er1 >conftest.err
4522   rm -f conftest.er1
4523   cat conftest.err >&5
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); } && {
4526          test -z "$ac_c_werror_flag" ||
4527          test ! -s conftest.err
4528        } && test -s conftest$ac_exeext &&
4529        $as_test_x conftest$ac_exeext; then
4530   ac_cv_func_connect=yes
4531 else
4532   echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4534
4535         ac_cv_func_connect=no
4536 fi
4537
4538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4539       conftest$ac_exeext conftest.$ac_ext
4540 fi
4541 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4542 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4543
4544     if test $ac_cv_func_connect = no; then
4545       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4546 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4547 if test "${ac_cv_lib_socket_connect+set}" = set; then
4548   echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550   ac_check_lib_save_LIBS=$LIBS
4551 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4552 cat >conftest.$ac_ext <<_ACEOF
4553 /* confdefs.h.  */
4554 _ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h.  */
4558
4559 /* Override any GCC internal prototype to avoid an error.
4560    Use char because int might match the return type of a GCC
4561    builtin and then its argument prototype would still apply.  */
4562 #ifdef __cplusplus
4563 extern "C"
4564 #endif
4565 char connect ();
4566 int
4567 main ()
4568 {
4569 return connect ();
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 rm -f conftest.$ac_objext conftest$ac_exeext
4575 if { (ac_try="$ac_link"
4576 case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581   (eval "$ac_link") 2>conftest.er1
4582   ac_status=$?
4583   grep -v '^ *+' conftest.er1 >conftest.err
4584   rm -f conftest.er1
4585   cat conftest.err >&5
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } && {
4588          test -z "$ac_c_werror_flag" ||
4589          test ! -s conftest.err
4590        } && test -s conftest$ac_exeext &&
4591        $as_test_x conftest$ac_exeext; then
4592   ac_cv_lib_socket_connect=yes
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597         ac_cv_lib_socket_connect=no
4598 fi
4599
4600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4601       conftest$ac_exeext conftest.$ac_ext
4602 LIBS=$ac_check_lib_save_LIBS
4603 fi
4604 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4605 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4606 if test $ac_cv_lib_socket_connect = yes; then
4607   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4608 fi
4609
4610     fi
4611
4612     # Guillermo Gomez says -lposix is necessary on A/UX.
4613     { echo "$as_me:$LINENO: checking for remove" >&5
4614 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4615 if test "${ac_cv_func_remove+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h.  */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h.  */
4624 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4626 #define remove innocuous_remove
4627
4628 /* System header to define __stub macros and hopefully few prototypes,
4629     which can conflict with char remove (); below.
4630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4631     <limits.h> exists even on freestanding compilers.  */
4632
4633 #ifdef __STDC__
4634 # include <limits.h>
4635 #else
4636 # include <assert.h>
4637 #endif
4638
4639 #undef remove
4640
4641 /* Override any GCC internal prototype to avoid an error.
4642    Use char because int might match the return type of a GCC
4643    builtin and then its argument prototype would still apply.  */
4644 #ifdef __cplusplus
4645 extern "C"
4646 #endif
4647 char remove ();
4648 /* The GNU C library defines this for functions which it implements
4649     to always fail with ENOSYS.  Some functions are actually named
4650     something starting with __ and the normal name is an alias.  */
4651 #if defined __stub_remove || defined __stub___remove
4652 choke me
4653 #endif
4654
4655 int
4656 main ()
4657 {
4658 return remove ();
4659   ;
4660   return 0;
4661 }
4662 _ACEOF
4663 rm -f conftest.$ac_objext conftest$ac_exeext
4664 if { (ac_try="$ac_link"
4665 case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670   (eval "$ac_link") 2>conftest.er1
4671   ac_status=$?
4672   grep -v '^ *+' conftest.er1 >conftest.err
4673   rm -f conftest.er1
4674   cat conftest.err >&5
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); } && {
4677          test -z "$ac_c_werror_flag" ||
4678          test ! -s conftest.err
4679        } && test -s conftest$ac_exeext &&
4680        $as_test_x conftest$ac_exeext; then
4681   ac_cv_func_remove=yes
4682 else
4683   echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4685
4686         ac_cv_func_remove=no
4687 fi
4688
4689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4690       conftest$ac_exeext conftest.$ac_ext
4691 fi
4692 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4693 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4694
4695     if test $ac_cv_func_remove = no; then
4696       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4697 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4698 if test "${ac_cv_lib_posix_remove+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   ac_check_lib_save_LIBS=$LIBS
4702 LIBS="-lposix  $LIBS"
4703 cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h.  */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h.  */
4709
4710 /* Override any GCC internal prototype to avoid an error.
4711    Use char because int might match the return type of a GCC
4712    builtin and then its argument prototype would still apply.  */
4713 #ifdef __cplusplus
4714 extern "C"
4715 #endif
4716 char remove ();
4717 int
4718 main ()
4719 {
4720 return remove ();
4721   ;
4722   return 0;
4723 }
4724 _ACEOF
4725 rm -f conftest.$ac_objext conftest$ac_exeext
4726 if { (ac_try="$ac_link"
4727 case "(($ac_try" in
4728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729   *) ac_try_echo=$ac_try;;
4730 esac
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732   (eval "$ac_link") 2>conftest.er1
4733   ac_status=$?
4734   grep -v '^ *+' conftest.er1 >conftest.err
4735   rm -f conftest.er1
4736   cat conftest.err >&5
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } && {
4739          test -z "$ac_c_werror_flag" ||
4740          test ! -s conftest.err
4741        } && test -s conftest$ac_exeext &&
4742        $as_test_x conftest$ac_exeext; then
4743   ac_cv_lib_posix_remove=yes
4744 else
4745   echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748         ac_cv_lib_posix_remove=no
4749 fi
4750
4751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4752       conftest$ac_exeext conftest.$ac_ext
4753 LIBS=$ac_check_lib_save_LIBS
4754 fi
4755 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4756 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4757 if test $ac_cv_lib_posix_remove = yes; then
4758   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4759 fi
4760
4761     fi
4762
4763     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4764     { echo "$as_me:$LINENO: checking for shmat" >&5
4765 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4766 if test "${ac_cv_func_shmat+set}" = set; then
4767   echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769   cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h.  */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h.  */
4775 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4777 #define shmat innocuous_shmat
4778
4779 /* System header to define __stub macros and hopefully few prototypes,
4780     which can conflict with char shmat (); below.
4781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4782     <limits.h> exists even on freestanding compilers.  */
4783
4784 #ifdef __STDC__
4785 # include <limits.h>
4786 #else
4787 # include <assert.h>
4788 #endif
4789
4790 #undef shmat
4791
4792 /* Override any GCC internal prototype to avoid an error.
4793    Use char because int might match the return type of a GCC
4794    builtin and then its argument prototype would still apply.  */
4795 #ifdef __cplusplus
4796 extern "C"
4797 #endif
4798 char shmat ();
4799 /* The GNU C library defines this for functions which it implements
4800     to always fail with ENOSYS.  Some functions are actually named
4801     something starting with __ and the normal name is an alias.  */
4802 #if defined __stub_shmat || defined __stub___shmat
4803 choke me
4804 #endif
4805
4806 int
4807 main ()
4808 {
4809 return shmat ();
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (ac_try="$ac_link"
4816 case "(($ac_try" in
4817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818   *) ac_try_echo=$ac_try;;
4819 esac
4820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821   (eval "$ac_link") 2>conftest.er1
4822   ac_status=$?
4823   grep -v '^ *+' conftest.er1 >conftest.err
4824   rm -f conftest.er1
4825   cat conftest.err >&5
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); } && {
4828          test -z "$ac_c_werror_flag" ||
4829          test ! -s conftest.err
4830        } && test -s conftest$ac_exeext &&
4831        $as_test_x conftest$ac_exeext; then
4832   ac_cv_func_shmat=yes
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837         ac_cv_func_shmat=no
4838 fi
4839
4840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4841       conftest$ac_exeext conftest.$ac_ext
4842 fi
4843 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4844 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4845
4846     if test $ac_cv_func_shmat = no; then
4847       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4848 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4849 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   ac_check_lib_save_LIBS=$LIBS
4853 LIBS="-lipc  $LIBS"
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h.  */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h.  */
4860
4861 /* Override any GCC internal prototype to avoid an error.
4862    Use char because int might match the return type of a GCC
4863    builtin and then its argument prototype would still apply.  */
4864 #ifdef __cplusplus
4865 extern "C"
4866 #endif
4867 char shmat ();
4868 int
4869 main ()
4870 {
4871 return shmat ();
4872   ;
4873   return 0;
4874 }
4875 _ACEOF
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (ac_try="$ac_link"
4878 case "(($ac_try" in
4879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880   *) ac_try_echo=$ac_try;;
4881 esac
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883   (eval "$ac_link") 2>conftest.er1
4884   ac_status=$?
4885   grep -v '^ *+' conftest.er1 >conftest.err
4886   rm -f conftest.er1
4887   cat conftest.err >&5
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } && {
4890          test -z "$ac_c_werror_flag" ||
4891          test ! -s conftest.err
4892        } && test -s conftest$ac_exeext &&
4893        $as_test_x conftest$ac_exeext; then
4894   ac_cv_lib_ipc_shmat=yes
4895 else
4896   echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899         ac_cv_lib_ipc_shmat=no
4900 fi
4901
4902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4903       conftest$ac_exeext conftest.$ac_ext
4904 LIBS=$ac_check_lib_save_LIBS
4905 fi
4906 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4907 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4908 if test $ac_cv_lib_ipc_shmat = yes; then
4909   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4910 fi
4911
4912     fi
4913   fi
4914
4915   # Check for libraries that X11R6 Xt/Xaw programs need.
4916   ac_save_LDFLAGS=$LDFLAGS
4917   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4918   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4919   # check for ICE first), but we must link in the order -lSM -lICE or
4920   # we get undefined symbols.  So assume we have SM if we have ICE.
4921   # These have to be linked with before -lX11, unlike the other
4922   # libraries we check for below, so use a different variable.
4923   # John Interrante, Karl Berry
4924   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4925 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4926 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   ac_check_lib_save_LIBS=$LIBS
4930 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h.  */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h.  */
4937
4938 /* Override any GCC internal prototype to avoid an error.
4939    Use char because int might match the return type of a GCC
4940    builtin and then its argument prototype would still apply.  */
4941 #ifdef __cplusplus
4942 extern "C"
4943 #endif
4944 char IceConnectionNumber ();
4945 int
4946 main ()
4947 {
4948 return IceConnectionNumber ();
4949   ;
4950   return 0;
4951 }
4952 _ACEOF
4953 rm -f conftest.$ac_objext conftest$ac_exeext
4954 if { (ac_try="$ac_link"
4955 case "(($ac_try" in
4956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957   *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960   (eval "$ac_link") 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } && {
4967          test -z "$ac_c_werror_flag" ||
4968          test ! -s conftest.err
4969        } && test -s conftest$ac_exeext &&
4970        $as_test_x conftest$ac_exeext; then
4971   ac_cv_lib_ICE_IceConnectionNumber=yes
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976         ac_cv_lib_ICE_IceConnectionNumber=no
4977 fi
4978
4979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4980       conftest$ac_exeext conftest.$ac_ext
4981 LIBS=$ac_check_lib_save_LIBS
4982 fi
4983 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4984 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4985 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4986   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4987 fi
4988
4989   LDFLAGS=$ac_save_LDFLAGS
4990
4991 fi
4992
4993
4994 for ac_prog in flex
4995 do
4996   # Extract the first word of "$ac_prog", so it can be a program name with args.
4997 set dummy $ac_prog; ac_word=$2
4998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5000 if test "${ac_cv_prog_FLEX+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   if test -n "$FLEX"; then
5004   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011   for ac_exec_ext in '' $ac_executable_extensions; do
5012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013     ac_cv_prog_FLEX="$ac_prog"
5014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015     break 2
5016   fi
5017 done
5018 done
5019 IFS=$as_save_IFS
5020
5021 fi
5022 fi
5023 FLEX=$ac_cv_prog_FLEX
5024 if test -n "$FLEX"; then
5025   { echo "$as_me:$LINENO: result: $FLEX" >&5
5026 echo "${ECHO_T}$FLEX" >&6; }
5027 else
5028   { echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6; }
5030 fi
5031
5032
5033   test -n "$FLEX" && break
5034 done
5035 test -n "$FLEX" || FLEX="none"
5036
5037 if test "$FLEX" = "none"
5038 then
5039   { { echo "$as_me:$LINENO: error: no suitable flex found. Please install the 'flex' package." >&5
5040 echo "$as_me: error: no suitable flex found. Please install the 'flex' package." >&2;}
5041    { (exit 1); exit 1; }; }
5042 fi
5043
5044 for ac_prog in bison
5045 do
5046   # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy $ac_prog; ac_word=$2
5048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5050 if test "${ac_cv_prog_BISON+set}" = set; then
5051   echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053   if test -n "$BISON"; then
5054   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061   for ac_exec_ext in '' $ac_executable_extensions; do
5062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063     ac_cv_prog_BISON="$ac_prog"
5064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 BISON=$ac_cv_prog_BISON
5074 if test -n "$BISON"; then
5075   { echo "$as_me:$LINENO: result: $BISON" >&5
5076 echo "${ECHO_T}$BISON" >&6; }
5077 else
5078   { echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6; }
5080 fi
5081
5082
5083   test -n "$BISON" && break
5084 done
5085 test -n "$BISON" || BISON="none"
5086
5087 if test "$BISON" = "none"
5088 then
5089   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5090 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5091    { (exit 1); exit 1; }; }
5092 fi
5093
5094 if test -n "$ac_tool_prefix"; then
5095   for ac_prog in gas as
5096   do
5097     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5101 if test "${ac_cv_prog_AS+set}" = set; then
5102   echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104   if test -n "$AS"; then
5105   ac_cv_prog_AS="$AS" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5109 do
5110   IFS=$as_save_IFS
5111   test -z "$as_dir" && as_dir=.
5112   for ac_exec_ext in '' $ac_executable_extensions; do
5113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5114     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116     break 2
5117   fi
5118 done
5119 done
5120 IFS=$as_save_IFS
5121
5122 fi
5123 fi
5124 AS=$ac_cv_prog_AS
5125 if test -n "$AS"; then
5126   { echo "$as_me:$LINENO: result: $AS" >&5
5127 echo "${ECHO_T}$AS" >&6; }
5128 else
5129   { echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6; }
5131 fi
5132
5133
5134     test -n "$AS" && break
5135   done
5136 fi
5137 if test -z "$AS"; then
5138   ac_ct_AS=$AS
5139   for ac_prog in gas as
5140 do
5141   # Extract the first word of "$ac_prog", so it can be a program name with args.
5142 set dummy $ac_prog; ac_word=$2
5143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5145 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   if test -n "$ac_ct_AS"; then
5149   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156   for ac_exec_ext in '' $ac_executable_extensions; do
5157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158     ac_cv_prog_ac_ct_AS="$ac_prog"
5159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163 done
5164 IFS=$as_save_IFS
5165
5166 fi
5167 fi
5168 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5169 if test -n "$ac_ct_AS"; then
5170   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5171 echo "${ECHO_T}$ac_ct_AS" >&6; }
5172 else
5173   { echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6; }
5175 fi
5176
5177
5178   test -n "$ac_ct_AS" && break
5179 done
5180
5181   if test "x$ac_ct_AS" = x; then
5182     AS="as"
5183   else
5184     case $cross_compiling:$ac_tool_warned in
5185 yes:)
5186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5187 whose name does not start with the host triplet.  If you think this
5188 configuration is useful to you, please write to autoconf@gnu.org." >&5
5189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5190 whose name does not start with the host triplet.  If you think this
5191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5192 ac_tool_warned=yes ;;
5193 esac
5194     AS=$ac_ct_AS
5195   fi
5196 fi
5197
5198 if test -n "$ac_tool_prefix"; then
5199   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5200 set dummy ${ac_tool_prefix}ld; ac_word=$2
5201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5203 if test "${ac_cv_prog_LD+set}" = set; then
5204   echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206   if test -n "$LD"; then
5207   ac_cv_prog_LD="$LD" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214   for ac_exec_ext in '' $ac_executable_extensions; do
5215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216     ac_cv_prog_LD="${ac_tool_prefix}ld"
5217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218     break 2
5219   fi
5220 done
5221 done
5222 IFS=$as_save_IFS
5223
5224 fi
5225 fi
5226 LD=$ac_cv_prog_LD
5227 if test -n "$LD"; then
5228   { echo "$as_me:$LINENO: result: $LD" >&5
5229 echo "${ECHO_T}$LD" >&6; }
5230 else
5231   { echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6; }
5233 fi
5234
5235
5236 fi
5237 if test -z "$ac_cv_prog_LD"; then
5238   ac_ct_LD=$LD
5239   # Extract the first word of "ld", so it can be a program name with args.
5240 set dummy ld; ac_word=$2
5241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5243 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   if test -n "$ac_ct_LD"; then
5247   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252   IFS=$as_save_IFS
5253   test -z "$as_dir" && as_dir=.
5254   for ac_exec_ext in '' $ac_executable_extensions; do
5255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256     ac_cv_prog_ac_ct_LD="ld"
5257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258     break 2
5259   fi
5260 done
5261 done
5262 IFS=$as_save_IFS
5263
5264 fi
5265 fi
5266 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5267 if test -n "$ac_ct_LD"; then
5268   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5269 echo "${ECHO_T}$ac_ct_LD" >&6; }
5270 else
5271   { echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6; }
5273 fi
5274
5275   if test "x$ac_ct_LD" = x; then
5276     LD="ld"
5277   else
5278     case $cross_compiling:$ac_tool_warned in
5279 yes:)
5280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5281 whose name does not start with the host triplet.  If you think this
5282 configuration is useful to you, please write to autoconf@gnu.org." >&5
5283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5284 whose name does not start with the host triplet.  If you think this
5285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5286 ac_tool_warned=yes ;;
5287 esac
5288     LD=$ac_ct_LD
5289   fi
5290 else
5291   LD="$ac_cv_prog_LD"
5292 fi
5293
5294 if test -n "$ac_tool_prefix"; then
5295   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5296 set dummy ${ac_tool_prefix}ar; ac_word=$2
5297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5299 if test "${ac_cv_prog_AR+set}" = set; then
5300   echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302   if test -n "$AR"; then
5303   ac_cv_prog_AR="$AR" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5307 do
5308   IFS=$as_save_IFS
5309   test -z "$as_dir" && as_dir=.
5310   for ac_exec_ext in '' $ac_executable_extensions; do
5311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312     ac_cv_prog_AR="${ac_tool_prefix}ar"
5313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314     break 2
5315   fi
5316 done
5317 done
5318 IFS=$as_save_IFS
5319
5320 fi
5321 fi
5322 AR=$ac_cv_prog_AR
5323 if test -n "$AR"; then
5324   { echo "$as_me:$LINENO: result: $AR" >&5
5325 echo "${ECHO_T}$AR" >&6; }
5326 else
5327   { echo "$as_me:$LINENO: result: no" >&5
5328 echo "${ECHO_T}no" >&6; }
5329 fi
5330
5331
5332 fi
5333 if test -z "$ac_cv_prog_AR"; then
5334   ac_ct_AR=$AR
5335   # Extract the first word of "ar", so it can be a program name with args.
5336 set dummy ar; ac_word=$2
5337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5339 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   if test -n "$ac_ct_AR"; then
5343   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5347 do
5348   IFS=$as_save_IFS
5349   test -z "$as_dir" && as_dir=.
5350   for ac_exec_ext in '' $ac_executable_extensions; do
5351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352     ac_cv_prog_ac_ct_AR="ar"
5353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354     break 2
5355   fi
5356 done
5357 done
5358 IFS=$as_save_IFS
5359
5360 fi
5361 fi
5362 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5363 if test -n "$ac_ct_AR"; then
5364   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5365 echo "${ECHO_T}$ac_ct_AR" >&6; }
5366 else
5367   { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5369 fi
5370
5371   if test "x$ac_ct_AR" = x; then
5372     AR="ar"
5373   else
5374     case $cross_compiling:$ac_tool_warned in
5375 yes:)
5376 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5377 whose name does not start with the host triplet.  If you think this
5378 configuration is useful to you, please write to autoconf@gnu.org." >&5
5379 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5380 whose name does not start with the host triplet.  If you think this
5381 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5382 ac_tool_warned=yes ;;
5383 esac
5384     AR=$ac_ct_AR
5385   fi
5386 else
5387   AR="$ac_cv_prog_AR"
5388 fi
5389
5390 if test -n "$ac_tool_prefix"; then
5391   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5392 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5395 if test "${ac_cv_prog_RANLIB+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   if test -n "$RANLIB"; then
5399   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5400 else
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5403 do
5404   IFS=$as_save_IFS
5405   test -z "$as_dir" && as_dir=.
5406   for ac_exec_ext in '' $ac_executable_extensions; do
5407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5410     break 2
5411   fi
5412 done
5413 done
5414 IFS=$as_save_IFS
5415
5416 fi
5417 fi
5418 RANLIB=$ac_cv_prog_RANLIB
5419 if test -n "$RANLIB"; then
5420   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5421 echo "${ECHO_T}$RANLIB" >&6; }
5422 else
5423   { echo "$as_me:$LINENO: result: no" >&5
5424 echo "${ECHO_T}no" >&6; }
5425 fi
5426
5427
5428 fi
5429 if test -z "$ac_cv_prog_RANLIB"; then
5430   ac_ct_RANLIB=$RANLIB
5431   # Extract the first word of "ranlib", so it can be a program name with args.
5432 set dummy ranlib; ac_word=$2
5433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5435 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   if test -n "$ac_ct_RANLIB"; then
5439   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446   for ac_exec_ext in '' $ac_executable_extensions; do
5447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448     ac_cv_prog_ac_ct_RANLIB="ranlib"
5449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450     break 2
5451   fi
5452 done
5453 done
5454 IFS=$as_save_IFS
5455
5456 fi
5457 fi
5458 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5459 if test -n "$ac_ct_RANLIB"; then
5460   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5461 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5462 else
5463   { echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6; }
5465 fi
5466
5467   if test "x$ac_ct_RANLIB" = x; then
5468     RANLIB=":"
5469   else
5470     case $cross_compiling:$ac_tool_warned in
5471 yes:)
5472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5473 whose name does not start with the host triplet.  If you think this
5474 configuration is useful to you, please write to autoconf@gnu.org." >&5
5475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5476 whose name does not start with the host triplet.  If you think this
5477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5478 ac_tool_warned=yes ;;
5479 esac
5480     RANLIB=$ac_ct_RANLIB
5481   fi
5482 else
5483   RANLIB="$ac_cv_prog_RANLIB"
5484 fi
5485
5486 if test -n "$ac_tool_prefix"; then
5487   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5488 set dummy ${ac_tool_prefix}strip; ac_word=$2
5489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5491 if test "${ac_cv_prog_STRIP+set}" = set; then
5492   echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494   if test -n "$STRIP"; then
5495   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500   IFS=$as_save_IFS
5501   test -z "$as_dir" && as_dir=.
5502   for ac_exec_ext in '' $ac_executable_extensions; do
5503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506     break 2
5507   fi
5508 done
5509 done
5510 IFS=$as_save_IFS
5511
5512 fi
5513 fi
5514 STRIP=$ac_cv_prog_STRIP
5515 if test -n "$STRIP"; then
5516   { echo "$as_me:$LINENO: result: $STRIP" >&5
5517 echo "${ECHO_T}$STRIP" >&6; }
5518 else
5519   { echo "$as_me:$LINENO: result: no" >&5
5520 echo "${ECHO_T}no" >&6; }
5521 fi
5522
5523
5524 fi
5525 if test -z "$ac_cv_prog_STRIP"; then
5526   ac_ct_STRIP=$STRIP
5527   # Extract the first word of "strip", so it can be a program name with args.
5528 set dummy strip; ac_word=$2
5529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5531 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534   if test -n "$ac_ct_STRIP"; then
5535   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540   IFS=$as_save_IFS
5541   test -z "$as_dir" && as_dir=.
5542   for ac_exec_ext in '' $ac_executable_extensions; do
5543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544     ac_cv_prog_ac_ct_STRIP="strip"
5545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546     break 2
5547   fi
5548 done
5549 done
5550 IFS=$as_save_IFS
5551
5552 fi
5553 fi
5554 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5555 if test -n "$ac_ct_STRIP"; then
5556   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5557 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5558 else
5559   { echo "$as_me:$LINENO: result: no" >&5
5560 echo "${ECHO_T}no" >&6; }
5561 fi
5562
5563   if test "x$ac_ct_STRIP" = x; then
5564     STRIP="strip"
5565   else
5566     case $cross_compiling:$ac_tool_warned in
5567 yes:)
5568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5569 whose name does not start with the host triplet.  If you think this
5570 configuration is useful to you, please write to autoconf@gnu.org." >&5
5571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5572 whose name does not start with the host triplet.  If you think this
5573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5574 ac_tool_warned=yes ;;
5575 esac
5576     STRIP=$ac_ct_STRIP
5577   fi
5578 else
5579   STRIP="$ac_cv_prog_STRIP"
5580 fi
5581
5582 if test -n "$ac_tool_prefix"; then
5583   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5584 set dummy ${ac_tool_prefix}windres; ac_word=$2
5585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5587 if test "${ac_cv_prog_WINDRES+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   if test -n "$WINDRES"; then
5591   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598   for ac_exec_ext in '' $ac_executable_extensions; do
5599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605 done
5606 IFS=$as_save_IFS
5607
5608 fi
5609 fi
5610 WINDRES=$ac_cv_prog_WINDRES
5611 if test -n "$WINDRES"; then
5612   { echo "$as_me:$LINENO: result: $WINDRES" >&5
5613 echo "${ECHO_T}$WINDRES" >&6; }
5614 else
5615   { echo "$as_me:$LINENO: result: no" >&5
5616 echo "${ECHO_T}no" >&6; }
5617 fi
5618
5619
5620 fi
5621 if test -z "$ac_cv_prog_WINDRES"; then
5622   ac_ct_WINDRES=$WINDRES
5623   # Extract the first word of "windres", so it can be a program name with args.
5624 set dummy windres; ac_word=$2
5625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5627 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   if test -n "$ac_ct_WINDRES"; then
5631   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638   for ac_exec_ext in '' $ac_executable_extensions; do
5639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640     ac_cv_prog_ac_ct_WINDRES="windres"
5641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642     break 2
5643   fi
5644 done
5645 done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5651 if test -n "$ac_ct_WINDRES"; then
5652   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5653 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
5654 else
5655   { echo "$as_me:$LINENO: result: no" >&5
5656 echo "${ECHO_T}no" >&6; }
5657 fi
5658
5659   if test "x$ac_ct_WINDRES" = x; then
5660     WINDRES="false"
5661   else
5662     case $cross_compiling:$ac_tool_warned in
5663 yes:)
5664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5665 whose name does not start with the host triplet.  If you think this
5666 configuration is useful to you, please write to autoconf@gnu.org." >&5
5667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5668 whose name does not start with the host triplet.  If you think this
5669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5670 ac_tool_warned=yes ;;
5671 esac
5672     WINDRES=$ac_ct_WINDRES
5673   fi
5674 else
5675   WINDRES="$ac_cv_prog_WINDRES"
5676 fi
5677
5678 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5679 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5680 LN_S=$as_ln_s
5681 if test "$LN_S" = "ln -s"; then
5682   { echo "$as_me:$LINENO: result: yes" >&5
5683 echo "${ECHO_T}yes" >&6; }
5684 else
5685   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5686 echo "${ECHO_T}no, using $LN_S" >&6; }
5687 fi
5688
5689 { echo "$as_me:$LINENO: checking whether ln works" >&5
5690 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
5691 rm -f conf$$ conf$$.file
5692 echo >conf$$.file
5693 if ln conf$$.file conf$$ 2>/dev/null; then
5694   LN=ln
5695
5696   { echo "$as_me:$LINENO: result: yes" >&5
5697 echo "${ECHO_T}yes" >&6; }
5698 else
5699   LN="cp -p"
5700
5701   { echo "$as_me:$LINENO: result: no, using $LN" >&5
5702 echo "${ECHO_T}no, using $LN" >&6; }
5703 fi
5704 rm -f conf$$ conf$$.file
5705 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5706 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5707 if test "${ac_cv_path_GREP+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   # Extract the first word of "grep ggrep" to use in msg output
5711 if test -z "$GREP"; then
5712 set dummy grep ggrep; ac_prog_name=$2
5713 if test "${ac_cv_path_GREP+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   ac_path_GREP_found=false
5717 # Loop through the user's path and test for each of PROGNAME-LIST
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5720 do
5721   IFS=$as_save_IFS
5722   test -z "$as_dir" && as_dir=.
5723   for ac_prog in grep ggrep; do
5724   for ac_exec_ext in '' $ac_executable_extensions; do
5725     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5726     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5727     # Check for GNU ac_path_GREP and select it if it is found.
5728   # Check for GNU $ac_path_GREP
5729 case `"$ac_path_GREP" --version 2>&1` in
5730 *GNU*)
5731   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5732 *)
5733   ac_count=0
5734   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5735   while :
5736   do
5737     cat "conftest.in" "conftest.in" >"conftest.tmp"
5738     mv "conftest.tmp" "conftest.in"
5739     cp "conftest.in" "conftest.nl"
5740     echo 'GREP' >> "conftest.nl"
5741     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5742     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5743     ac_count=`expr $ac_count + 1`
5744     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5745       # Best one so far, save it but keep looking for a better one
5746       ac_cv_path_GREP="$ac_path_GREP"
5747       ac_path_GREP_max=$ac_count
5748     fi
5749     # 10*(2^10) chars as input seems more than enough
5750     test $ac_count -gt 10 && break
5751   done
5752   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5753 esac
5754
5755
5756     $ac_path_GREP_found && break 3
5757   done
5758 done
5759
5760 done
5761 IFS=$as_save_IFS
5762
5763
5764 fi
5765
5766 GREP="$ac_cv_path_GREP"
5767 if test -z "$GREP"; then
5768   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5769 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5770    { (exit 1); exit 1; }; }
5771 fi
5772
5773 else
5774   ac_cv_path_GREP=$GREP
5775 fi
5776
5777
5778 fi
5779 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5780 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5781  GREP="$ac_cv_path_GREP"
5782
5783
5784 { echo "$as_me:$LINENO: checking for egrep" >&5
5785 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5786 if test "${ac_cv_path_EGREP+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5790    then ac_cv_path_EGREP="$GREP -E"
5791    else
5792      # Extract the first word of "egrep" to use in msg output
5793 if test -z "$EGREP"; then
5794 set dummy egrep; ac_prog_name=$2
5795 if test "${ac_cv_path_EGREP+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   ac_path_EGREP_found=false
5799 # Loop through the user's path and test for each of PROGNAME-LIST
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5802 do
5803   IFS=$as_save_IFS
5804   test -z "$as_dir" && as_dir=.
5805   for ac_prog in egrep; do
5806   for ac_exec_ext in '' $ac_executable_extensions; do
5807     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5808     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5809     # Check for GNU ac_path_EGREP and select it if it is found.
5810   # Check for GNU $ac_path_EGREP
5811 case `"$ac_path_EGREP" --version 2>&1` in
5812 *GNU*)
5813   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5814 *)
5815   ac_count=0
5816   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5817   while :
5818   do
5819     cat "conftest.in" "conftest.in" >"conftest.tmp"
5820     mv "conftest.tmp" "conftest.in"
5821     cp "conftest.in" "conftest.nl"
5822     echo 'EGREP' >> "conftest.nl"
5823     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5824     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5825     ac_count=`expr $ac_count + 1`
5826     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5827       # Best one so far, save it but keep looking for a better one
5828       ac_cv_path_EGREP="$ac_path_EGREP"
5829       ac_path_EGREP_max=$ac_count
5830     fi
5831     # 10*(2^10) chars as input seems more than enough
5832     test $ac_count -gt 10 && break
5833   done
5834   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5835 esac
5836
5837
5838     $ac_path_EGREP_found && break 3
5839   done
5840 done
5841
5842 done
5843 IFS=$as_save_IFS
5844
5845
5846 fi
5847
5848 EGREP="$ac_cv_path_EGREP"
5849 if test -z "$EGREP"; then
5850   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5851 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5852    { (exit 1); exit 1; }; }
5853 fi
5854
5855 else
5856   ac_cv_path_EGREP=$EGREP
5857 fi
5858
5859
5860    fi
5861 fi
5862 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5863 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5864  EGREP="$ac_cv_path_EGREP"
5865
5866
5867 # Extract the first word of "ldconfig", so it can be a program name with args.
5868 set dummy ldconfig; ac_word=$2
5869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   case $LDCONFIG in
5875   [\\/]* | ?:[\\/]*)
5876   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5877   ;;
5878   *)
5879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in /sbin /usr/sbin $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884   for ac_exec_ext in '' $ac_executable_extensions; do
5885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888     break 2
5889   fi
5890 done
5891 done
5892 IFS=$as_save_IFS
5893
5894   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5895   ;;
5896 esac
5897 fi
5898 LDCONFIG=$ac_cv_path_LDCONFIG
5899 if test -n "$LDCONFIG"; then
5900   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5901 echo "${ECHO_T}$LDCONFIG" >&6; }
5902 else
5903   { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 fi
5906
5907
5908 # Find a good install program.  We prefer a C program (faster),
5909 # so one script is as good as another.  But avoid the broken or
5910 # incompatible versions:
5911 # SysV /etc/install, /usr/sbin/install
5912 # SunOS /usr/etc/install
5913 # IRIX /sbin/install
5914 # AIX /bin/install
5915 # AmigaOS /C/install, which installs bootblocks on floppy discs
5916 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5917 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5918 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5919 # OS/2's system install, which has a completely different semantic
5920 # ./install, which can be erroneously created by make from ./install.sh.
5921 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5922 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5923 if test -z "$INSTALL"; then
5924 if test "${ac_cv_path_install+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932   # Account for people who put trailing slashes in PATH elements.
5933 case $as_dir/ in
5934   ./ | .// | /cC/* | \
5935   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5936   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5937   /usr/ucb/* ) ;;
5938   *)
5939     # OSF1 and SCO ODT 3.0 have their own names for install.
5940     # Don't use installbsd from OSF since it installs stuff as root
5941     # by default.
5942     for ac_prog in ginstall scoinst install; do
5943       for ac_exec_ext in '' $ac_executable_extensions; do
5944         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5945           if test $ac_prog = install &&
5946             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5947             # AIX install.  It has an incompatible calling convention.
5948             :
5949           elif test $ac_prog = install &&
5950             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5951             # program-specific install script used by HP pwplus--don't use.
5952             :
5953           else
5954             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5955             break 3
5956           fi
5957         fi
5958       done
5959     done
5960     ;;
5961 esac
5962 done
5963 IFS=$as_save_IFS
5964
5965
5966 fi
5967   if test "${ac_cv_path_install+set}" = set; then
5968     INSTALL=$ac_cv_path_install
5969   else
5970     # As a last resort, use the slow shell script.  Don't cache a
5971     # value for INSTALL within a source directory, because that will
5972     # break other packages using the cache if that directory is
5973     # removed, or if the value is a relative name.
5974     INSTALL=$ac_install_sh
5975   fi
5976 fi
5977 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5978 echo "${ECHO_T}$INSTALL" >&6; }
5979
5980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5981 # It thinks the first close brace ends the variable substitution.
5982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5983
5984 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5985
5986 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5987
5988 case "$INSTALL" in
5989   [\\/$]* | ?:[\\/]* ) ;;
5990   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5991 esac
5992
5993 for ac_prog in lclint lint
5994 do
5995   # Extract the first word of "$ac_prog", so it can be a program name with args.
5996 set dummy $ac_prog; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_prog_LINT+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   if test -n "$LINT"; then
6003   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010   for ac_exec_ext in '' $ac_executable_extensions; do
6011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012     ac_cv_prog_LINT="$ac_prog"
6013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017 done
6018 IFS=$as_save_IFS
6019
6020 fi
6021 fi
6022 LINT=$ac_cv_prog_LINT
6023 if test -n "$LINT"; then
6024   { echo "$as_me:$LINENO: result: $LINT" >&5
6025 echo "${ECHO_T}$LINT" >&6; }
6026 else
6027   { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6029 fi
6030
6031
6032   test -n "$LINT" && break
6033 done
6034
6035 if test "$LINT" = "lint"
6036 then
6037   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6038   fi
6039
6040
6041
6042 for ac_prog in fontforge
6043 do
6044   # Extract the first word of "$ac_prog", so it can be a program name with args.
6045 set dummy $ac_prog; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   if test -n "$FONTFORGE"; then
6052   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057   IFS=$as_save_IFS
6058   test -z "$as_dir" && as_dir=.
6059   for ac_exec_ext in '' $ac_executable_extensions; do
6060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061     ac_cv_prog_FONTFORGE="$ac_prog"
6062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063     break 2
6064   fi
6065 done
6066 done
6067 IFS=$as_save_IFS
6068
6069 fi
6070 fi
6071 FONTFORGE=$ac_cv_prog_FONTFORGE
6072 if test -n "$FONTFORGE"; then
6073   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6074 echo "${ECHO_T}$FONTFORGE" >&6; }
6075 else
6076   { echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6; }
6078 fi
6079
6080
6081   test -n "$FONTFORGE" && break
6082 done
6083 test -n "$FONTFORGE" || FONTFORGE="false"
6084
6085 for ac_prog in pkg-config
6086 do
6087   # Extract the first word of "$ac_prog", so it can be a program name with args.
6088 set dummy $ac_prog; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094   if test -n "$PKG_CONFIG"; then
6095   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102   for ac_exec_ext in '' $ac_executable_extensions; do
6103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104     ac_cv_prog_PKG_CONFIG="$ac_prog"
6105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109 done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6115 if test -n "$PKG_CONFIG"; then
6116   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6117 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6118 else
6119   { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6121 fi
6122
6123
6124   test -n "$PKG_CONFIG" && break
6125 done
6126 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6127
6128
6129 case $host_cpu in
6130   *i[3456789]86*)
6131     # Extract the first word of "prelink", so it can be a program name with args.
6132 set dummy prelink; ac_word=$2
6133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135 if test "${ac_cv_path_PRELINK+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   case $PRELINK in
6139   [\\/]* | ?:[\\/]*)
6140   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6141   ;;
6142   *)
6143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in /sbin /usr/sbin $PATH
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148   for ac_exec_ext in '' $ac_executable_extensions; do
6149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155 done
6156 IFS=$as_save_IFS
6157
6158   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6159   ;;
6160 esac
6161 fi
6162 PRELINK=$ac_cv_path_PRELINK
6163 if test -n "$PRELINK"; then
6164   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6165 echo "${ECHO_T}$PRELINK" >&6; }
6166 else
6167   { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6169 fi
6170
6171
6172     ;;
6173 esac
6174
6175
6176
6177 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6178 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6179 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   ac_check_lib_save_LIBS=$LIBS
6183 LIBS="-li386  $LIBS"
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h.  */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h.  */
6190
6191 /* Override any GCC internal prototype to avoid an error.
6192    Use char because int might match the return type of a GCC
6193    builtin and then its argument prototype would still apply.  */
6194 #ifdef __cplusplus
6195 extern "C"
6196 #endif
6197 char i386_set_ldt ();
6198 int
6199 main ()
6200 {
6201 return i386_set_ldt ();
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (ac_try="$ac_link"
6208 case "(($ac_try" in
6209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210   *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213   (eval "$ac_link") 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } && {
6220          test -z "$ac_c_werror_flag" ||
6221          test ! -s conftest.err
6222        } && test -s conftest$ac_exeext &&
6223        $as_test_x conftest$ac_exeext; then
6224   ac_cv_lib_i386_i386_set_ldt=yes
6225 else
6226   echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229         ac_cv_lib_i386_i386_set_ldt=no
6230 fi
6231
6232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6233       conftest$ac_exeext conftest.$ac_ext
6234 LIBS=$ac_check_lib_save_LIBS
6235 fi
6236 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6237 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
6238 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
6239   cat >>confdefs.h <<_ACEOF
6240 #define HAVE_LIBI386 1
6241 _ACEOF
6242
6243   LIBS="-li386 $LIBS"
6244
6245 fi
6246
6247
6248 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6249 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6250 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   ac_check_lib_save_LIBS=$LIBS
6254 LIBS="-lossaudio  $LIBS"
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h.  */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h.  */
6261
6262 /* Override any GCC internal prototype to avoid an error.
6263    Use char because int might match the return type of a GCC
6264    builtin and then its argument prototype would still apply.  */
6265 #ifdef __cplusplus
6266 extern "C"
6267 #endif
6268 char _oss_ioctl ();
6269 int
6270 main ()
6271 {
6272 return _oss_ioctl ();
6273   ;
6274   return 0;
6275 }
6276 _ACEOF
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (ac_try="$ac_link"
6279 case "(($ac_try" in
6280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281   *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284   (eval "$ac_link") 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } && {
6291          test -z "$ac_c_werror_flag" ||
6292          test ! -s conftest.err
6293        } && test -s conftest$ac_exeext &&
6294        $as_test_x conftest$ac_exeext; then
6295   ac_cv_lib_ossaudio__oss_ioctl=yes
6296 else
6297   echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300         ac_cv_lib_ossaudio__oss_ioctl=no
6301 fi
6302
6303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6304       conftest$ac_exeext conftest.$ac_ext
6305 LIBS=$ac_check_lib_save_LIBS
6306 fi
6307 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6308 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6309 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6310   cat >>confdefs.h <<_ACEOF
6311 #define HAVE_LIBOSSAUDIO 1
6312 _ACEOF
6313
6314   LIBS="-lossaudio $LIBS"
6315
6316 fi
6317
6318 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6319 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
6320 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   ac_check_lib_save_LIBS=$LIBS
6324 LIBS="-lpthread  $LIBS"
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331
6332 /* Override any GCC internal prototype to avoid an error.
6333    Use char because int might match the return type of a GCC
6334    builtin and then its argument prototype would still apply.  */
6335 #ifdef __cplusplus
6336 extern "C"
6337 #endif
6338 char pthread_create ();
6339 int
6340 main ()
6341 {
6342 return pthread_create ();
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext conftest$ac_exeext
6348 if { (ac_try="$ac_link"
6349 case "(($ac_try" in
6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351   *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354   (eval "$ac_link") 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } && {
6361          test -z "$ac_c_werror_flag" ||
6362          test ! -s conftest.err
6363        } && test -s conftest$ac_exeext &&
6364        $as_test_x conftest$ac_exeext; then
6365   ac_cv_lib_pthread_pthread_create=yes
6366 else
6367   echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370         ac_cv_lib_pthread_pthread_create=no
6371 fi
6372
6373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6374       conftest$ac_exeext conftest.$ac_ext
6375 LIBS=$ac_check_lib_save_LIBS
6376 fi
6377 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6378 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
6379 if test $ac_cv_lib_pthread_pthread_create = yes; then
6380   LIBPTHREAD="-lpthread"
6381
6382 fi
6383
6384
6385 XLIB=""
6386
6387 XFILES=""
6388
6389 OPENGLFILES=""
6390
6391 GLU32FILES=""
6392
6393 OPENGL_LIBS=""
6394
6395 QUARTZFILES=""
6396
6397
6398
6399 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6400 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6401 if test "${ac_cv_header_stdc+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h.  */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h.  */
6410 #include <stdlib.h>
6411 #include <stdarg.h>
6412 #include <string.h>
6413 #include <float.h>
6414
6415 int
6416 main ()
6417 {
6418
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (ac_try="$ac_compile"
6425 case "(($ac_try" in
6426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427   *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430   (eval "$ac_compile") 2>conftest.er1
6431   ac_status=$?
6432   grep -v '^ *+' conftest.er1 >conftest.err
6433   rm -f conftest.er1
6434   cat conftest.err >&5
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } && {
6437          test -z "$ac_c_werror_flag" ||
6438          test ! -s conftest.err
6439        } && test -s conftest.$ac_objext; then
6440   ac_cv_header_stdc=yes
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445         ac_cv_header_stdc=no
6446 fi
6447
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449
6450 if test $ac_cv_header_stdc = yes; then
6451   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6452   cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458 #include <string.h>
6459
6460 _ACEOF
6461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6462   $EGREP "memchr" >/dev/null 2>&1; then
6463   :
6464 else
6465   ac_cv_header_stdc=no
6466 fi
6467 rm -f conftest*
6468
6469 fi
6470
6471 if test $ac_cv_header_stdc = yes; then
6472   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6473   cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h.  */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h.  */
6479 #include <stdlib.h>
6480
6481 _ACEOF
6482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6483   $EGREP "free" >/dev/null 2>&1; then
6484   :
6485 else
6486   ac_cv_header_stdc=no
6487 fi
6488 rm -f conftest*
6489
6490 fi
6491
6492 if test $ac_cv_header_stdc = yes; then
6493   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6494   if test "$cross_compiling" = yes; then
6495   :
6496 else
6497   cat >conftest.$ac_ext <<_ACEOF
6498 /* confdefs.h.  */
6499 _ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h.  */
6503 #include <ctype.h>
6504 #include <stdlib.h>
6505 #if ((' ' & 0x0FF) == 0x020)
6506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6508 #else
6509 # define ISLOWER(c) \
6510                    (('a' <= (c) && (c) <= 'i') \
6511                      || ('j' <= (c) && (c) <= 'r') \
6512                      || ('s' <= (c) && (c) <= 'z'))
6513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6514 #endif
6515
6516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6517 int
6518 main ()
6519 {
6520   int i;
6521   for (i = 0; i < 256; i++)
6522     if (XOR (islower (i), ISLOWER (i))
6523         || toupper (i) != TOUPPER (i))
6524       return 2;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest$ac_exeext
6529 if { (ac_try="$ac_link"
6530 case "(($ac_try" in
6531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532   *) ac_try_echo=$ac_try;;
6533 esac
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535   (eval "$ac_link") 2>&5
6536   ac_status=$?
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6539   { (case "(($ac_try" in
6540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541   *) ac_try_echo=$ac_try;;
6542 esac
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544   (eval "$ac_try") 2>&5
6545   ac_status=$?
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); }; }; then
6548   :
6549 else
6550   echo "$as_me: program exited with status $ac_status" >&5
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6553
6554 ( exit $ac_status )
6555 ac_cv_header_stdc=no
6556 fi
6557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6558 fi
6559
6560
6561 fi
6562 fi
6563 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6564 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6565 if test $ac_cv_header_stdc = yes; then
6566
6567 cat >>confdefs.h <<\_ACEOF
6568 #define STDC_HEADERS 1
6569 _ACEOF
6570
6571 fi
6572
6573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6584                   inttypes.h stdint.h unistd.h
6585 do
6586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6590   echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592   cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h.  */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h.  */
6598 $ac_includes_default
6599
6600 #include <$ac_header>
6601 _ACEOF
6602 rm -f conftest.$ac_objext
6603 if { (ac_try="$ac_compile"
6604 case "(($ac_try" in
6605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606   *) ac_try_echo=$ac_try;;
6607 esac
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609   (eval "$ac_compile") 2>conftest.er1
6610   ac_status=$?
6611   grep -v '^ *+' conftest.er1 >conftest.err
6612   rm -f conftest.er1
6613   cat conftest.err >&5
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); } && {
6616          test -z "$ac_c_werror_flag" ||
6617          test ! -s conftest.err
6618        } && test -s conftest.$ac_objext; then
6619   eval "$as_ac_Header=yes"
6620 else
6621   echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6623
6624         eval "$as_ac_Header=no"
6625 fi
6626
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 fi
6629 ac_res=`eval echo '${'$as_ac_Header'}'`
6630                { echo "$as_me:$LINENO: result: $ac_res" >&5
6631 echo "${ECHO_T}$ac_res" >&6; }
6632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6633   cat >>confdefs.h <<_ACEOF
6634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6635 _ACEOF
6636
6637 fi
6638
6639 done
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752 for ac_header in \
6753         AudioUnit/AudioUnit.h \
6754         Carbon/Carbon.h \
6755         CoreAudio/CoreAudio.h \
6756         DiskArbitration/DiskArbitration.h \
6757         IOKit/IOKitLib.h \
6758         alsa/asoundlib.h \
6759         arpa/inet.h \
6760         arpa/nameser.h \
6761         asm/types.h \
6762         capi20.h \
6763         cups/cups.h \
6764         curses.h \
6765         direct.h \
6766         dlfcn.h \
6767         elf.h \
6768         float.h \
6769         fontconfig/fontconfig.h \
6770         getopt.h \
6771         ieeefp.h \
6772         io.h \
6773         jack/jack.h \
6774         jpeglib.h \
6775         lber.h \
6776         lcms.h \
6777         lcms/lcms.h \
6778         ldap.h \
6779         libaudioio.h \
6780         link.h \
6781         linux/cdrom.h \
6782         linux/compiler.h \
6783         linux/hdreg.h \
6784         linux/input.h \
6785         linux/ioctl.h \
6786         linux/joystick.h \
6787         linux/major.h \
6788         linux/param.h \
6789         linux/serial.h \
6790         linux/ucdrom.h \
6791         mach/mach.h \
6792         mach/machine.h \
6793         machine/cpu.h \
6794         machine/limits.h \
6795         machine/soundcard.h \
6796         mntent.h \
6797         ncurses.h \
6798         netdb.h \
6799         netinet/in.h \
6800         netinet/in_systm.h \
6801         netinet/tcp.h \
6802         netinet/tcp_fsm.h \
6803         openssl/err.h \
6804         openssl/ssl.h \
6805         png.h \
6806         poll.h \
6807         process.h \
6808         pthread.h \
6809         pwd.h \
6810         regex.h \
6811         sched.h \
6812         scsi/scsi.h \
6813         scsi/scsi_ioctl.h \
6814         scsi/sg.h \
6815         soundcard.h \
6816         stdint.h \
6817         strings.h \
6818         sys/asoundlib.h \
6819         sys/cdio.h \
6820         sys/elf32.h \
6821         sys/epoll.h \
6822         sys/errno.h \
6823         sys/event.h \
6824         sys/exec_elf.h \
6825         sys/filio.h \
6826         sys/ioctl.h \
6827         sys/ipc.h \
6828         sys/limits.h \
6829         sys/link.h \
6830         sys/lwp.h \
6831         sys/mman.h \
6832         sys/modem.h \
6833         sys/msg.h \
6834         sys/mtio.h \
6835         sys/param.h \
6836         sys/poll.h \
6837         sys/prctl.h \
6838         sys/ptrace.h \
6839         sys/reg.h \
6840         sys/resource.h \
6841         sys/scsiio.h \
6842         sys/shm.h \
6843         sys/signal.h \
6844         sys/socket.h \
6845         sys/socketvar.h \
6846         sys/sockio.h \
6847         sys/soundcard.h \
6848         sys/statvfs.h \
6849         sys/strtio.h \
6850         sys/syscall.h \
6851         sys/sysctl.h \
6852         sys/time.h \
6853         sys/times.h \
6854         sys/uio.h \
6855         sys/un.h \
6856         sys/vm86.h \
6857         sys/wait.h \
6858         syscall.h \
6859         termios.h \
6860         unistd.h \
6861         utime.h \
6862         valgrind/memcheck.h
6863
6864 do
6865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6867   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 fi
6872 ac_res=`eval echo '${'$as_ac_Header'}'`
6873                { echo "$as_me:$LINENO: result: $ac_res" >&5
6874 echo "${ECHO_T}$ac_res" >&6; }
6875 else
6876   # Is the header compilable?
6877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885 $ac_includes_default
6886 #include <$ac_header>
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (ac_try="$ac_compile"
6890 case "(($ac_try" in
6891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892   *) ac_try_echo=$ac_try;;
6893 esac
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895   (eval "$ac_compile") 2>conftest.er1
6896   ac_status=$?
6897   grep -v '^ *+' conftest.er1 >conftest.err
6898   rm -f conftest.er1
6899   cat conftest.err >&5
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); } && {
6902          test -z "$ac_c_werror_flag" ||
6903          test ! -s conftest.err
6904        } && test -s conftest.$ac_objext; then
6905   ac_header_compiler=yes
6906 else
6907   echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6909
6910         ac_header_compiler=no
6911 fi
6912
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6915 echo "${ECHO_T}$ac_header_compiler" >&6; }
6916
6917 # Is the header present?
6918 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6920 cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h.  */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h.  */
6926 #include <$ac_header>
6927 _ACEOF
6928 if { (ac_try="$ac_cpp conftest.$ac_ext"
6929 case "(($ac_try" in
6930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931   *) ac_try_echo=$ac_try;;
6932 esac
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6935   ac_status=$?
6936   grep -v '^ *+' conftest.er1 >conftest.err
6937   rm -f conftest.er1
6938   cat conftest.err >&5
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } >/dev/null && {
6941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942          test ! -s conftest.err
6943        }; then
6944   ac_header_preproc=yes
6945 else
6946   echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6948
6949   ac_header_preproc=no
6950 fi
6951
6952 rm -f conftest.err conftest.$ac_ext
6953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6954 echo "${ECHO_T}$ac_header_preproc" >&6; }
6955
6956 # So?  What about this header?
6957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6958   yes:no: )
6959     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6963     ac_header_preproc=yes
6964     ;;
6965   no:yes:* )
6966     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6968     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6969 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6970     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6972     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6973 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6976     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6978     ( cat <<\_ASBOX
6979 ## ------------------------------------ ##
6980 ## Report this to wine-devel@winehq.org ##
6981 ## ------------------------------------ ##
6982 _ASBOX
6983      ) | sed "s/^/$as_me: WARNING:     /" >&2
6984     ;;
6985 esac
6986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   eval "$as_ac_Header=\$ac_header_preproc"
6992 fi
6993 ac_res=`eval echo '${'$as_ac_Header'}'`
6994                { echo "$as_me:$LINENO: result: $ac_res" >&5
6995 echo "${ECHO_T}$ac_res" >&6; }
6996
6997 fi
6998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999   cat >>confdefs.h <<_ACEOF
7000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001 _ACEOF
7002
7003 fi
7004
7005 done
7006
7007 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7008 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7009 if test "${ac_cv_header_stat_broken+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h.  */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h.  */
7018 #include <sys/types.h>
7019 #include <sys/stat.h>
7020
7021 #if defined S_ISBLK && defined S_IFDIR
7022 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7023 #endif
7024
7025 #if defined S_ISBLK && defined S_IFCHR
7026 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7027 #endif
7028
7029 #if defined S_ISLNK && defined S_IFREG
7030 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7031 #endif
7032
7033 #if defined S_ISSOCK && defined S_IFREG
7034 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7035 #endif
7036
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (ac_try="$ac_compile"
7040 case "(($ac_try" in
7041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042   *) ac_try_echo=$ac_try;;
7043 esac
7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045   (eval "$ac_compile") 2>conftest.er1
7046   ac_status=$?
7047   grep -v '^ *+' conftest.er1 >conftest.err
7048   rm -f conftest.er1
7049   cat conftest.err >&5
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); } && {
7052          test -z "$ac_c_werror_flag" ||
7053          test ! -s conftest.err
7054        } && test -s conftest.$ac_objext; then
7055   ac_cv_header_stat_broken=no
7056 else
7057   echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7059
7060         ac_cv_header_stat_broken=yes
7061 fi
7062
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 fi
7065 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7066 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7067 if test $ac_cv_header_stat_broken = yes; then
7068
7069 cat >>confdefs.h <<\_ACEOF
7070 #define STAT_MACROS_BROKEN 1
7071 _ACEOF
7072
7073 fi
7074
7075
7076
7077
7078
7079
7080
7081 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7082 do
7083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7087   echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089   cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h.  */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h.  */
7095 #include <sys/types.h>
7096      #if HAVE_SYS_PARAM_H
7097      # include <sys/param.h>
7098      #endif
7099
7100 #include <$ac_header>
7101 _ACEOF
7102 rm -f conftest.$ac_objext
7103 if { (ac_try="$ac_compile"
7104 case "(($ac_try" in
7105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106   *) ac_try_echo=$ac_try;;
7107 esac
7108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7109   (eval "$ac_compile") 2>conftest.er1
7110   ac_status=$?
7111   grep -v '^ *+' conftest.er1 >conftest.err
7112   rm -f conftest.er1
7113   cat conftest.err >&5
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } && {
7116          test -z "$ac_c_werror_flag" ||
7117          test ! -s conftest.err
7118        } && test -s conftest.$ac_objext; then
7119   eval "$as_ac_Header=yes"
7120 else
7121   echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7123
7124         eval "$as_ac_Header=no"
7125 fi
7126
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128 fi
7129 ac_res=`eval echo '${'$as_ac_Header'}'`
7130                { echo "$as_me:$LINENO: result: $ac_res" >&5
7131 echo "${ECHO_T}$ac_res" >&6; }
7132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7133   cat >>confdefs.h <<_ACEOF
7134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7135 _ACEOF
7136
7137 fi
7138
7139 done
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150 for ac_header in netinet/in_pcb.h netinet/ip_var.h net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
7151 do
7152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   cat >conftest.$ac_ext <<_ACEOF
7159 /* confdefs.h.  */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h.  */
7164 #include <sys/types.h>
7165      #if HAVE_SYS_SOCKET_H
7166      # include <sys/socket.h>
7167      #endif
7168
7169 #include <$ac_header>
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7173 case "(($ac_try" in
7174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175   *) ac_try_echo=$ac_try;;
7176 esac
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178   (eval "$ac_compile") 2>conftest.er1
7179   ac_status=$?
7180   grep -v '^ *+' conftest.er1 >conftest.err
7181   rm -f conftest.er1
7182   cat conftest.err >&5
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); } && {
7185          test -z "$ac_c_werror_flag" ||
7186          test ! -s conftest.err
7187        } && test -s conftest.$ac_objext; then
7188   eval "$as_ac_Header=yes"
7189 else
7190   echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193         eval "$as_ac_Header=no"
7194 fi
7195
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 fi
7198 ac_res=`eval echo '${'$as_ac_Header'}'`
7199                { echo "$as_me:$LINENO: result: $ac_res" >&5
7200 echo "${ECHO_T}$ac_res" >&6; }
7201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7202   cat >>confdefs.h <<_ACEOF
7203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7204 _ACEOF
7205
7206 fi
7207
7208 done
7209
7210      #if HAVE_SYS_SOCKETVAR_H
7211      # include <sys/socketvar.h>
7212      #endif
7213
7214
7215 for ac_header in netinet/tcp_var.h
7216 do
7217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h.  */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h.  */
7229 #include <sys/types.h>
7230      #if HAVE_SYS_SOCKET_H
7231      # include <sys/socket.h>
7232      #endif
7233      #if HAVE_SYS_SOCKETVAR_H
7234      # include <sys/socketvar.h>
7235      #endif
7236      #if HAVE_NETINET_IN_H
7237      # include <netinet/in.h>
7238      #endif
7239      #ifdef HAVE_NETINET_TCP_H
7240      # include <netinet/tcp.h>
7241      #endif
7242
7243 #include <$ac_header>
7244 _ACEOF
7245 rm -f conftest.$ac_objext
7246 if { (ac_try="$ac_compile"
7247 case "(($ac_try" in
7248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249   *) ac_try_echo=$ac_try;;
7250 esac
7251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252   (eval "$ac_compile") 2>conftest.er1
7253   ac_status=$?
7254   grep -v '^ *+' conftest.er1 >conftest.err
7255   rm -f conftest.er1
7256   cat conftest.err >&5
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } && {
7259          test -z "$ac_c_werror_flag" ||
7260          test ! -s conftest.err
7261        } && test -s conftest.$ac_objext; then
7262   eval "$as_ac_Header=yes"
7263 else
7264   echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7266
7267         eval "$as_ac_Header=no"
7268 fi
7269
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271 fi
7272 ac_res=`eval echo '${'$as_ac_Header'}'`
7273                { echo "$as_me:$LINENO: result: $ac_res" >&5
7274 echo "${ECHO_T}$ac_res" >&6; }
7275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7276   cat >>confdefs.h <<_ACEOF
7277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7278 _ACEOF
7279
7280 fi
7281
7282 done
7283
7284
7285
7286 for ac_header in linux/ipx.h
7287 do
7288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300 #include <sys/types.h>
7301      #ifdef HAVE_ASM_TYPES_H
7302      # include <asm/types.h>
7303      #endif
7304      #if HAVE_SYS_SOCKET_H
7305      # include <sys/socket.h>
7306      #endif
7307
7308 #include <$ac_header>
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7312 case "(($ac_try" in
7313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314   *) ac_try_echo=$ac_try;;
7315 esac
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317   (eval "$ac_compile") 2>conftest.er1
7318   ac_status=$?
7319   grep -v '^ *+' conftest.er1 >conftest.err
7320   rm -f conftest.er1
7321   cat conftest.err >&5
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); } && {
7324          test -z "$ac_c_werror_flag" ||
7325          test ! -s conftest.err
7326        } && test -s conftest.$ac_objext; then
7327   eval "$as_ac_Header=yes"
7328 else
7329   echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7331
7332         eval "$as_ac_Header=no"
7333 fi
7334
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 fi
7337 ac_res=`eval echo '${'$as_ac_Header'}'`
7338                { echo "$as_me:$LINENO: result: $ac_res" >&5
7339 echo "${ECHO_T}$ac_res" >&6; }
7340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7341   cat >>confdefs.h <<_ACEOF
7342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7343 _ACEOF
7344
7345 fi
7346
7347 done
7348
7349
7350
7351 for ac_header in resolv.h
7352 do
7353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h.  */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h.  */
7365 #include <sys/types.h>
7366      #if HAVE_SYS_SOCKET_H
7367      # include <sys/socket.h>
7368      #endif
7369      #if HAVE_NETINET_IN_H
7370      # include <netinet/in.h>
7371      #endif
7372      #if HAVE_ARPA_NAMESER_H
7373      # include <arpa/nameser.h>
7374      #endif
7375
7376 #include <$ac_header>
7377 _ACEOF
7378 rm -f conftest.$ac_objext
7379 if { (ac_try="$ac_compile"
7380 case "(($ac_try" in
7381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382   *) ac_try_echo=$ac_try;;
7383 esac
7384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7385   (eval "$ac_compile") 2>conftest.er1
7386   ac_status=$?
7387   grep -v '^ *+' conftest.er1 >conftest.err
7388   rm -f conftest.er1
7389   cat conftest.err >&5
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); } && {
7392          test -z "$ac_c_werror_flag" ||
7393          test ! -s conftest.err
7394        } && test -s conftest.$ac_objext; then
7395   eval "$as_ac_Header=yes"
7396 else
7397   echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7399
7400         eval "$as_ac_Header=no"
7401 fi
7402
7403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7404 fi
7405 ac_res=`eval echo '${'$as_ac_Header'}'`
7406                { echo "$as_me:$LINENO: result: $ac_res" >&5
7407 echo "${ECHO_T}$ac_res" >&6; }
7408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7409   cat >>confdefs.h <<_ACEOF
7410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7411 _ACEOF
7412
7413 fi
7414
7415 done
7416
7417
7418
7419 for ac_header in ucontext.h
7420 do
7421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h.  */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h.  */
7433 #include <signal.h>
7434
7435 #include <$ac_header>
7436 _ACEOF
7437 rm -f conftest.$ac_objext
7438 if { (ac_try="$ac_compile"
7439 case "(($ac_try" in
7440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441   *) ac_try_echo=$ac_try;;
7442 esac
7443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7444   (eval "$ac_compile") 2>conftest.er1
7445   ac_status=$?
7446   grep -v '^ *+' conftest.er1 >conftest.err
7447   rm -f conftest.er1
7448   cat conftest.err >&5
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } && {
7451          test -z "$ac_c_werror_flag" ||
7452          test ! -s conftest.err
7453        } && test -s conftest.$ac_objext; then
7454   eval "$as_ac_Header=yes"
7455 else
7456   echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7458
7459         eval "$as_ac_Header=no"
7460 fi
7461
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 fi
7464 ac_res=`eval echo '${'$as_ac_Header'}'`
7465                { echo "$as_me:$LINENO: result: $ac_res" >&5
7466 echo "${ECHO_T}$ac_res" >&6; }
7467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7468   cat >>confdefs.h <<_ACEOF
7469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7470 _ACEOF
7471
7472 fi
7473
7474 done
7475
7476
7477
7478 for ac_header in sys/thr.h
7479 do
7480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7484   echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486   cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h.  */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h.  */
7492 #include <sys/types.h>
7493 #if HAVE_UCONTEXT_H
7494 #include <ucontext.h>
7495 #endif
7496
7497 #include <$ac_header>
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7501 case "(($ac_try" in
7502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503   *) ac_try_echo=$ac_try;;
7504 esac
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506   (eval "$ac_compile") 2>conftest.er1
7507   ac_status=$?
7508   grep -v '^ *+' conftest.er1 >conftest.err
7509   rm -f conftest.er1
7510   cat conftest.err >&5
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); } && {
7513          test -z "$ac_c_werror_flag" ||
7514          test ! -s conftest.err
7515        } && test -s conftest.$ac_objext; then
7516   eval "$as_ac_Header=yes"
7517 else
7518   echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7520
7521         eval "$as_ac_Header=no"
7522 fi
7523
7524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 fi
7526 ac_res=`eval echo '${'$as_ac_Header'}'`
7527                { echo "$as_me:$LINENO: result: $ac_res" >&5
7528 echo "${ECHO_T}$ac_res" >&6; }
7529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7530   cat >>confdefs.h <<_ACEOF
7531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7532 _ACEOF
7533
7534 fi
7535
7536 done
7537
7538
7539
7540 for ac_header in pthread_np.h
7541 do
7542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554 #ifdef HAVE_PTHREAD_H
7555 #include <pthread.h>
7556 #endif
7557
7558 #include <$ac_header>
7559 _ACEOF
7560 rm -f conftest.$ac_objext
7561 if { (ac_try="$ac_compile"
7562 case "(($ac_try" in
7563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564   *) ac_try_echo=$ac_try;;
7565 esac
7566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567   (eval "$ac_compile") 2>conftest.er1
7568   ac_status=$?
7569   grep -v '^ *+' conftest.er1 >conftest.err
7570   rm -f conftest.er1
7571   cat conftest.err >&5
7572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); } && {
7574          test -z "$ac_c_werror_flag" ||
7575          test ! -s conftest.err
7576        } && test -s conftest.$ac_objext; then
7577   eval "$as_ac_Header=yes"
7578 else
7579   echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7581
7582         eval "$as_ac_Header=no"
7583 fi
7584
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 fi
7587 ac_res=`eval echo '${'$as_ac_Header'}'`
7588                { echo "$as_me:$LINENO: result: $ac_res" >&5
7589 echo "${ECHO_T}$ac_res" >&6; }
7590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7591   cat >>confdefs.h <<_ACEOF
7592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7593 _ACEOF
7594
7595 fi
7596
7597 done
7598
7599
7600
7601 for ac_header in linux/videodev.h
7602 do
7603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h.  */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h.  */
7615 #ifdef HAVE_SYS_TIME_H
7616 #include <sys/time.h>
7617 #endif
7618 #include <sys/types.h>
7619 #ifdef HAVE_ASM_TYPES_H
7620 #include <asm/types.h>
7621 #endif
7622
7623 #include <$ac_header>
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (ac_try="$ac_compile"
7627 case "(($ac_try" in
7628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629   *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632   (eval "$ac_compile") 2>conftest.er1
7633   ac_status=$?
7634   grep -v '^ *+' conftest.er1 >conftest.err
7635   rm -f conftest.er1
7636   cat conftest.err >&5
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); } && {
7639          test -z "$ac_c_werror_flag" ||
7640          test ! -s conftest.err
7641        } && test -s conftest.$ac_objext; then
7642   eval "$as_ac_Header=yes"
7643 else
7644   echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647         eval "$as_ac_Header=no"
7648 fi
7649
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651 fi
7652 ac_res=`eval echo '${'$as_ac_Header'}'`
7653                { echo "$as_me:$LINENO: result: $ac_res" >&5
7654 echo "${ECHO_T}$ac_res" >&6; }
7655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7656   cat >>confdefs.h <<_ACEOF
7657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7658 _ACEOF
7659
7660 fi
7661
7662 done
7663
7664
7665
7666 for ac_header in linux/capi.h
7667 do
7668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h.  */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h.  */
7680 #define __user
7681
7682 #include <$ac_header>
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (ac_try="$ac_compile"
7686 case "(($ac_try" in
7687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688   *) ac_try_echo=$ac_try;;
7689 esac
7690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691   (eval "$ac_compile") 2>conftest.er1
7692   ac_status=$?
7693   grep -v '^ *+' conftest.er1 >conftest.err
7694   rm -f conftest.er1
7695   cat conftest.err >&5
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); } && {
7698          test -z "$ac_c_werror_flag" ||
7699          test ! -s conftest.err
7700        } && test -s conftest.$ac_objext; then
7701   eval "$as_ac_Header=yes"
7702 else
7703   echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7705
7706         eval "$as_ac_Header=no"
7707 fi
7708
7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 fi
7711 ac_res=`eval echo '${'$as_ac_Header'}'`
7712                { echo "$as_me:$LINENO: result: $ac_res" >&5
7713 echo "${ECHO_T}$ac_res" >&6; }
7714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7715   cat >>confdefs.h <<_ACEOF
7716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7717 _ACEOF
7718
7719 fi
7720
7721 done
7722
7723
7724
7725 DLLEXT=""
7726
7727 DLLFLAGS="-D_REENTRANT"
7728
7729 LDSHARED=""
7730
7731 LDDLLFLAGS=""
7732
7733 LIBEXT="so"
7734
7735 IMPLIBEXT="def"
7736
7737 LDRPATH_INSTALL=""
7738
7739 LDRPATH_LOCAL=""
7740
7741 # Extract the first word of "ldd", so it can be a program name with args.
7742 set dummy ldd; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_LDD+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   case $LDD in
7749   [\\/]* | ?:[\\/]*)
7750   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
7751   ;;
7752   *)
7753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 as_dummy="/sbin:/usr/sbin:$PATH"
7755 for as_dir in $as_dummy
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759   for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
7762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
7770   ;;
7771 esac
7772 fi
7773 LDD=$ac_cv_path_LDD
7774 if test -n "$LDD"; then
7775   { echo "$as_me:$LINENO: result: $LDD" >&5
7776 echo "${ECHO_T}$LDD" >&6; }
7777 else
7778   { echo "$as_me:$LINENO: result: no" >&5
7779 echo "${ECHO_T}no" >&6; }
7780 fi
7781
7782
7783
7784 case $host_os in
7785   cygwin*|mingw32*)
7786     if test -n "$ac_tool_prefix"; then
7787   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7788 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7792   echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794   if test -n "$DLLTOOL"; then
7795   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800   IFS=$as_save_IFS
7801   test -z "$as_dir" && as_dir=.
7802   for ac_exec_ext in '' $ac_executable_extensions; do
7803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7804     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7806     break 2
7807   fi
7808 done
7809 done
7810 IFS=$as_save_IFS
7811
7812 fi
7813 fi
7814 DLLTOOL=$ac_cv_prog_DLLTOOL
7815 if test -n "$DLLTOOL"; then
7816   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7817 echo "${ECHO_T}$DLLTOOL" >&6; }
7818 else
7819   { echo "$as_me:$LINENO: result: no" >&5
7820 echo "${ECHO_T}no" >&6; }
7821 fi
7822
7823
7824 fi
7825 if test -z "$ac_cv_prog_DLLTOOL"; then
7826   ac_ct_DLLTOOL=$DLLTOOL
7827   # Extract the first word of "dlltool", so it can be a program name with args.
7828 set dummy dlltool; ac_word=$2
7829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   if test -n "$ac_ct_DLLTOOL"; then
7835   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7836 else
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840   IFS=$as_save_IFS
7841   test -z "$as_dir" && as_dir=.
7842   for ac_exec_ext in '' $ac_executable_extensions; do
7843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7846     break 2
7847   fi
7848 done
7849 done
7850 IFS=$as_save_IFS
7851
7852 fi
7853 fi
7854 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7855 if test -n "$ac_ct_DLLTOOL"; then
7856   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7857 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7858 else
7859   { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7861 fi
7862
7863   if test "x$ac_ct_DLLTOOL" = x; then
7864     DLLTOOL="false"
7865   else
7866     case $cross_compiling:$ac_tool_warned in
7867 yes:)
7868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7869 whose name does not start with the host triplet.  If you think this
7870 configuration is useful to you, please write to autoconf@gnu.org." >&5
7871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7872 whose name does not start with the host triplet.  If you think this
7873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7874 ac_tool_warned=yes ;;
7875 esac
7876     DLLTOOL=$ac_ct_DLLTOOL
7877   fi
7878 else
7879   DLLTOOL="$ac_cv_prog_DLLTOOL"
7880 fi
7881
7882     if test -n "$ac_tool_prefix"; then
7883   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
7884 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
7885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7887 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890   if test -n "$DLLWRAP"; then
7891   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7895 do
7896   IFS=$as_save_IFS
7897   test -z "$as_dir" && as_dir=.
7898   for ac_exec_ext in '' $ac_executable_extensions; do
7899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
7901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7902     break 2
7903   fi
7904 done
7905 done
7906 IFS=$as_save_IFS
7907
7908 fi
7909 fi
7910 DLLWRAP=$ac_cv_prog_DLLWRAP
7911 if test -n "$DLLWRAP"; then
7912   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
7913 echo "${ECHO_T}$DLLWRAP" >&6; }
7914 else
7915   { echo "$as_me:$LINENO: result: no" >&5
7916 echo "${ECHO_T}no" >&6; }
7917 fi
7918
7919
7920 fi
7921 if test -z "$ac_cv_prog_DLLWRAP"; then
7922   ac_ct_DLLWRAP=$DLLWRAP
7923   # Extract the first word of "dllwrap", so it can be a program name with args.
7924 set dummy dllwrap; ac_word=$2
7925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7927 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
7928   echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930   if test -n "$ac_ct_DLLWRAP"; then
7931   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
7932 else
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7935 do
7936   IFS=$as_save_IFS
7937   test -z "$as_dir" && as_dir=.
7938   for ac_exec_ext in '' $ac_executable_extensions; do
7939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
7941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7942     break 2
7943   fi
7944 done
7945 done
7946 IFS=$as_save_IFS
7947
7948 fi
7949 fi
7950 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
7951 if test -n "$ac_ct_DLLWRAP"; then
7952   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
7953 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
7954 else
7955   { echo "$as_me:$LINENO: result: no" >&5
7956 echo "${ECHO_T}no" >&6; }
7957 fi
7958
7959   if test "x$ac_ct_DLLWRAP" = x; then
7960     DLLWRAP="false"
7961   else
7962     case $cross_compiling:$ac_tool_warned in
7963 yes:)
7964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7965 whose name does not start with the host triplet.  If you think this
7966 configuration is useful to you, please write to autoconf@gnu.org." >&5
7967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7968 whose name does not start with the host triplet.  If you think this
7969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7970 ac_tool_warned=yes ;;
7971 esac
7972     DLLWRAP=$ac_ct_DLLWRAP
7973   fi
7974 else
7975   DLLWRAP="$ac_cv_prog_DLLWRAP"
7976 fi
7977
7978     if test -n "$ac_tool_prefix"; then
7979   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7980 set dummy ${ac_tool_prefix}ar; ac_word=$2
7981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7983 if test "${ac_cv_prog_MINGWAR+set}" = set; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986   if test -n "$MINGWAR"; then
7987   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7991 do
7992   IFS=$as_save_IFS
7993   test -z "$as_dir" && as_dir=.
7994   for ac_exec_ext in '' $ac_executable_extensions; do
7995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7996     ac_cv_prog_MINGWAR="${ac_tool_prefix}ar"
7997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998     break 2
7999   fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 MINGWAR=$ac_cv_prog_MINGWAR
8007 if test -n "$MINGWAR"; then
8008   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
8009 echo "${ECHO_T}$MINGWAR" >&6; }
8010 else
8011   { echo "$as_me:$LINENO: result: no" >&5
8012 echo "${ECHO_T}no" >&6; }
8013 fi
8014
8015
8016 fi
8017 if test -z "$ac_cv_prog_MINGWAR"; then
8018   ac_ct_MINGWAR=$MINGWAR
8019   # Extract the first word of "ar", so it can be a program name with args.
8020 set dummy ar; ac_word=$2
8021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8023 if test "${ac_cv_prog_ac_ct_MINGWAR+set}" = set; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026   if test -n "$ac_ct_MINGWAR"; then
8027   ac_cv_prog_ac_ct_MINGWAR="$ac_ct_MINGWAR" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032   IFS=$as_save_IFS
8033   test -z "$as_dir" && as_dir=.
8034   for ac_exec_ext in '' $ac_executable_extensions; do
8035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8036     ac_cv_prog_ac_ct_MINGWAR="ar"
8037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038     break 2
8039   fi
8040 done
8041 done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 ac_ct_MINGWAR=$ac_cv_prog_ac_ct_MINGWAR
8047 if test -n "$ac_ct_MINGWAR"; then
8048   { echo "$as_me:$LINENO: result: $ac_ct_MINGWAR" >&5
8049 echo "${ECHO_T}$ac_ct_MINGWAR" >&6; }
8050 else
8051   { echo "$as_me:$LINENO: result: no" >&5
8052 echo "${ECHO_T}no" >&6; }
8053 fi
8054
8055   if test "x$ac_ct_MINGWAR" = x; then
8056     MINGWAR="false"
8057   else
8058     case $cross_compiling:$ac_tool_warned in
8059 yes:)
8060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8061 whose name does not start with the host triplet.  If you think this
8062 configuration is useful to you, please write to autoconf@gnu.org." >&5
8063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8064 whose name does not start with the host triplet.  If you think this
8065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8066 ac_tool_warned=yes ;;
8067 esac
8068     MINGWAR=$ac_ct_MINGWAR
8069   fi
8070 else
8071   MINGWAR="$ac_cv_prog_MINGWAR"
8072 fi
8073
8074     if test "$DLLWRAP" = "false"; then
8075       LIBEXT="a"
8076     else
8077             LIBEXT="dll"
8078     fi
8079     IMPLIBEXT="a"
8080         WIN16_FILES=""
8081     WIN16_INSTALL=""
8082     ;;
8083   darwin*|macosx*)
8084     DLLEXT=".so"
8085     LIBEXT="dylib"
8086     DLLFLAGS="$DLLFLAGS -fPIC"
8087     LDDLLFLAGS="-bundle -multiply_defined suppress"
8088     LIBWINE_LDFLAGS="-multiply_defined suppress"
8089     LDSHARED="\$(CC) -dynamiclib"
8090     STRIP="$STRIP -x"
8091     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
8092         COREFOUNDATIONLIB="-framework CoreFoundation"
8093
8094     IOKITLIB="-framework IOKit -framework CoreFoundation"
8095
8096     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
8097
8098     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
8099     then
8100                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
8101
8102     fi
8103     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
8104     then
8105                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
8106
8107     fi
8108     case $host_cpu in
8109       *powerpc*)
8110         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
8111     esac
8112         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
8113     then
8114         CARBONLIB="-framework Carbon"
8115
8116         QUARTZFILES='$(QUARTZFILES)'
8117     fi
8118     ;;
8119   *)
8120     DLLFLAGS="$DLLFLAGS -fPIC"
8121     DLLEXT=".so"
8122     { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
8123 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
8124 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
8125   echo $ECHO_N "(cached) $ECHO_C" >&6
8126 else
8127   ac_wine_try_cflags_saved=$CFLAGS
8128 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8129 cat >conftest.$ac_ext <<_ACEOF
8130 void myfunc() {}
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (ac_try="$ac_link"
8134 case "(($ac_try" in
8135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136   *) ac_try_echo=$ac_try;;
8137 esac
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139   (eval "$ac_link") 2>conftest.er1
8140   ac_status=$?
8141   grep -v '^ *+' conftest.er1 >conftest.err
8142   rm -f conftest.er1
8143   cat conftest.err >&5
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } && {
8146          test -z "$ac_c_werror_flag" ||
8147          test ! -s conftest.err
8148        } && test -s conftest$ac_exeext &&
8149        $as_test_x conftest$ac_exeext; then
8150   ac_cv_c_dll_gnuelf="yes"
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155         ac_cv_c_dll_gnuelf="no"
8156 fi
8157
8158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8159       conftest$ac_exeext conftest.$ac_ext
8160 CFLAGS=$ac_wine_try_cflags_saved
8161 fi
8162 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
8163 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
8164     if test "$ac_cv_c_dll_gnuelf" = "yes"
8165     then
8166       LDSHARED="\$(CC) -shared"
8167       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
8168       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8169 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
8170 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173   ac_wine_try_cflags_saved=$CFLAGS
8174 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181
8182 int
8183 main ()
8184 {
8185
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (ac_try="$ac_link"
8192 case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197   (eval "$ac_link") 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } && {
8204          test -z "$ac_c_werror_flag" ||
8205          test ! -s conftest.err
8206        } && test -s conftest$ac_exeext &&
8207        $as_test_x conftest$ac_exeext; then
8208   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213         ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8214 fi
8215
8216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8217       conftest$ac_exeext conftest.$ac_ext
8218 CFLAGS=$ac_wine_try_cflags_saved
8219 fi
8220 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8221 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8222 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
8223   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
8224 else
8225   { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8226 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
8227 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   ac_wine_try_cflags_saved=$CFLAGS
8231 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h.  */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h.  */
8238
8239 int
8240 main ()
8241 {
8242
8243   ;
8244   return 0;
8245 }
8246 _ACEOF
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (ac_try="$ac_link"
8249 case "(($ac_try" in
8250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251   *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254   (eval "$ac_link") 2>conftest.er1
8255   ac_status=$?
8256   grep -v '^ *+' conftest.er1 >conftest.err
8257   rm -f conftest.er1
8258   cat conftest.err >&5
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); } && {
8261          test -z "$ac_c_werror_flag" ||
8262          test ! -s conftest.err
8263        } && test -s conftest$ac_exeext &&
8264        $as_test_x conftest$ac_exeext; then
8265   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8266 else
8267   echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270         ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8271 fi
8272
8273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8274       conftest$ac_exeext conftest.$ac_ext
8275 CFLAGS=$ac_wine_try_cflags_saved
8276 fi
8277 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8278 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8279 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
8280   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
8281 fi
8282
8283 fi
8284
8285
8286       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
8287 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
8288 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
8289   echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291   ac_wine_try_cflags_saved=$CFLAGS
8292 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
8293 cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h.  */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h.  */
8299
8300 int
8301 main ()
8302 {
8303
8304   ;
8305   return 0;
8306 }
8307 _ACEOF
8308 rm -f conftest.$ac_objext conftest$ac_exeext
8309 if { (ac_try="$ac_link"
8310 case "(($ac_try" in
8311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312   *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315   (eval "$ac_link") 2>conftest.er1
8316   ac_status=$?
8317   grep -v '^ *+' conftest.er1 >conftest.err
8318   rm -f conftest.er1
8319   cat conftest.err >&5
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); } && {
8322          test -z "$ac_c_werror_flag" ||
8323          test ! -s conftest.err
8324        } && test -s conftest$ac_exeext &&
8325        $as_test_x conftest$ac_exeext; then
8326   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
8327 else
8328   echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8330
8331         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
8332 fi
8333
8334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8335       conftest$ac_exeext conftest.$ac_ext
8336 CFLAGS=$ac_wine_try_cflags_saved
8337 fi
8338 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
8339 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
8340 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
8341   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
8342 fi
8343
8344
8345       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
8346 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
8347 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350   ac_wine_try_cflags_saved=$CFLAGS
8351 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358
8359 int
8360 main ()
8361 {
8362
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (ac_try="$ac_link"
8369 case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374   (eval "$ac_link") 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } && {
8381          test -z "$ac_c_werror_flag" ||
8382          test ! -s conftest.err
8383        } && test -s conftest$ac_exeext &&
8384        $as_test_x conftest$ac_exeext; then
8385   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
8386 else
8387   echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8394       conftest$ac_exeext conftest.$ac_ext
8395 CFLAGS=$ac_wine_try_cflags_saved
8396 fi
8397 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
8398 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
8399 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
8400   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
8401 fi
8402
8403
8404       echo '{ global: *; };' >conftest.map
8405       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8406 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
8407 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410   ac_wine_try_cflags_saved=$CFLAGS
8411 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418
8419 int
8420 main ()
8421 {
8422
8423   ;
8424   return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (ac_try="$ac_link"
8429 case "(($ac_try" in
8430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431   *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434   (eval "$ac_link") 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } && {
8441          test -z "$ac_c_werror_flag" ||
8442          test ! -s conftest.err
8443        } && test -s conftest$ac_exeext &&
8444        $as_test_x conftest$ac_exeext; then
8445   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8446 else
8447   echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8449
8450         ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8451 fi
8452
8453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8454       conftest$ac_exeext conftest.$ac_ext
8455 CFLAGS=$ac_wine_try_cflags_saved
8456 fi
8457 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8458 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8459 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
8460   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
8461 fi
8462
8463       rm -f conftest.map
8464
8465       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8466 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
8467 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   ac_wine_try_cflags_saved=$CFLAGS
8471 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478
8479 int
8480 main ()
8481 {
8482
8483   ;
8484   return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (ac_try="$ac_link"
8489 case "(($ac_try" in
8490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491   *) ac_try_echo=$ac_try;;
8492 esac
8493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8494   (eval "$ac_link") 2>conftest.er1
8495   ac_status=$?
8496   grep -v '^ *+' conftest.er1 >conftest.err
8497   rm -f conftest.er1
8498   cat conftest.err >&5
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); } && {
8501          test -z "$ac_c_werror_flag" ||
8502          test ! -s conftest.err
8503        } && test -s conftest$ac_exeext &&
8504        $as_test_x conftest$ac_exeext; then
8505   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8506 else
8507   echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510         ac_cv_cflags__fPIC__Wl___export_dynamic=no
8511 fi
8512
8513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8514       conftest$ac_exeext conftest.$ac_ext
8515 CFLAGS=$ac_wine_try_cflags_saved
8516 fi
8517 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8518 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8519 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
8520   LDEXECFLAGS="-Wl,--export-dynamic"
8521
8522 fi
8523
8524
8525       as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
8526 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8527 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
8528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8529   echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531   ac_wine_try_cflags_saved=$CFLAGS
8532 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h.  */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h.  */
8539
8540 int
8541 main ()
8542 {
8543
8544   ;
8545   return 0;
8546 }
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (ac_try="$ac_link"
8550 case "(($ac_try" in
8551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552   *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555   (eval "$ac_link") 2>conftest.er1
8556   ac_status=$?
8557   grep -v '^ *+' conftest.er1 >conftest.err
8558   rm -f conftest.er1
8559   cat conftest.err >&5
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); } && {
8562          test -z "$ac_c_werror_flag" ||
8563          test ! -s conftest.err
8564        } && test -s conftest$ac_exeext &&
8565        $as_test_x conftest$ac_exeext; then
8566   eval "$as_ac_var=yes"
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571         eval "$as_ac_var=no"
8572 fi
8573
8574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8575       conftest$ac_exeext conftest.$ac_ext
8576 CFLAGS=$ac_wine_try_cflags_saved
8577 fi
8578 ac_res=`eval echo '${'$as_ac_var'}'`
8579                { echo "$as_me:$LINENO: result: $ac_res" >&5
8580 echo "${ECHO_T}$ac_res" >&6; }
8581 if test `eval echo '${'$as_ac_var'}'` = yes; then
8582   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
8583                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
8584 else
8585   as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,-R,\$ORIGIN/../lib" | $as_tr_sh`
8586 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8587 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... $ECHO_C" >&6; }
8588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591   ac_wine_try_cflags_saved=$CFLAGS
8592 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h.  */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h.  */
8599
8600 int
8601 main ()
8602 {
8603
8604   ;
8605   return 0;
8606 }
8607 _ACEOF
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (ac_try="$ac_link"
8610 case "(($ac_try" in
8611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612   *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615   (eval "$ac_link") 2>conftest.er1
8616   ac_status=$?
8617   grep -v '^ *+' conftest.er1 >conftest.err
8618   rm -f conftest.er1
8619   cat conftest.err >&5
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); } && {
8622          test -z "$ac_c_werror_flag" ||
8623          test ! -s conftest.err
8624        } && test -s conftest$ac_exeext &&
8625        $as_test_x conftest$ac_exeext; then
8626   eval "$as_ac_var=yes"
8627 else
8628   echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8630
8631         eval "$as_ac_var=no"
8632 fi
8633
8634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8635       conftest$ac_exeext conftest.$ac_ext
8636 CFLAGS=$ac_wine_try_cflags_saved
8637 fi
8638 ac_res=`eval echo '${'$as_ac_var'}'`
8639                { echo "$as_me:$LINENO: result: $ac_res" >&5
8640 echo "${ECHO_T}$ac_res" >&6; }
8641 if test `eval echo '${'$as_ac_var'}'` = yes; then
8642   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
8643                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
8644 fi
8645
8646 fi
8647
8648
8649       { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8650 echo $ECHO_N "checking whether the compiler supports -Wl,--enable-new-dtags... $ECHO_C" >&6; }
8651 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   ac_wine_try_cflags_saved=$CFLAGS
8655 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662
8663 int
8664 main ()
8665 {
8666
8667   ;
8668   return 0;
8669 }
8670 _ACEOF
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (ac_try="$ac_link"
8673 case "(($ac_try" in
8674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675   *) ac_try_echo=$ac_try;;
8676 esac
8677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678   (eval "$ac_link") 2>conftest.er1
8679   ac_status=$?
8680   grep -v '^ *+' conftest.er1 >conftest.err
8681   rm -f conftest.er1
8682   cat conftest.err >&5
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); } && {
8685          test -z "$ac_c_werror_flag" ||
8686          test ! -s conftest.err
8687        } && test -s conftest$ac_exeext &&
8688        $as_test_x conftest$ac_exeext; then
8689   ac_cv_cflags__Wl___enable_new_dtags=yes
8690 else
8691   echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694         ac_cv_cflags__Wl___enable_new_dtags=no
8695 fi
8696
8697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8698       conftest$ac_exeext conftest.$ac_ext
8699 CFLAGS=$ac_wine_try_cflags_saved
8700 fi
8701 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8702 echo "${ECHO_T}$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8703 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then
8704   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8705 fi
8706
8707
8708       case $host_cpu in
8709         *i[3456789]86* | x86_64)
8710           { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8711 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
8712 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
8713   echo $ECHO_N "(cached) $ECHO_C" >&6
8714 else
8715   ac_wine_try_cflags_saved=$CFLAGS
8716 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8717 cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723
8724 int
8725 main ()
8726 {
8727
8728   ;
8729   return 0;
8730 }
8731 _ACEOF
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (ac_try="$ac_link"
8734 case "(($ac_try" in
8735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736   *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739   (eval "$ac_link") 2>conftest.er1
8740   ac_status=$?
8741   grep -v '^ *+' conftest.er1 >conftest.err
8742   rm -f conftest.er1
8743   cat conftest.err >&5
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); } && {
8746          test -z "$ac_c_werror_flag" ||
8747          test ! -s conftest.err
8748        } && test -s conftest$ac_exeext &&
8749        $as_test_x conftest$ac_exeext; then
8750   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8751 else
8752   echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755         ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8756 fi
8757
8758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8759       conftest$ac_exeext conftest.$ac_ext
8760 CFLAGS=$ac_wine_try_cflags_saved
8761 fi
8762 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8763 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8764 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
8765   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8766 fi
8767
8768           ;;
8769       esac
8770
8771     else
8772       { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
8773 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
8774 if test "${ac_cv_c_dll_unixware+set}" = set; then
8775   echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777   ac_wine_try_cflags_saved=$CFLAGS
8778 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8779 cat >conftest.$ac_ext <<_ACEOF
8780 void myfunc() {}
8781 _ACEOF
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (ac_try="$ac_link"
8784 case "(($ac_try" in
8785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786   *) ac_try_echo=$ac_try;;
8787 esac
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789   (eval "$ac_link") 2>conftest.er1
8790   ac_status=$?
8791   grep -v '^ *+' conftest.er1 >conftest.err
8792   rm -f conftest.er1
8793   cat conftest.err >&5
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); } && {
8796          test -z "$ac_c_werror_flag" ||
8797          test ! -s conftest.err
8798        } && test -s conftest$ac_exeext &&
8799        $as_test_x conftest$ac_exeext; then
8800   ac_cv_c_dll_unixware="yes"
8801 else
8802   echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8804
8805         ac_cv_c_dll_unixware="no"
8806 fi
8807
8808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8809       conftest$ac_exeext conftest.$ac_ext
8810 CFLAGS=$ac_wine_try_cflags_saved
8811 fi
8812 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
8813 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
8814       if test "$ac_cv_c_dll_unixware" = "yes"
8815       then
8816         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
8817         LDDLLFLAGS="-Wl,-G,-B,symbolic"
8818
8819       else
8820         { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
8821 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
8822 if test "${ac_cv_c_dll_hpux+set}" = set; then
8823   echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825   ac_wine_try_cflags_saved=$CFLAGS
8826 CFLAGS="$CFLAGS -shared"
8827 cat >conftest.$ac_ext <<_ACEOF
8828 void myfunc() {}
8829 _ACEOF
8830 rm -f conftest.$ac_objext conftest$ac_exeext
8831 if { (ac_try="$ac_link"
8832 case "(($ac_try" in
8833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834   *) ac_try_echo=$ac_try;;
8835 esac
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837   (eval "$ac_link") 2>conftest.er1
8838   ac_status=$?
8839   grep -v '^ *+' conftest.er1 >conftest.err
8840   rm -f conftest.er1
8841   cat conftest.err >&5
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); } && {
8844          test -z "$ac_c_werror_flag" ||
8845          test ! -s conftest.err
8846        } && test -s conftest$ac_exeext &&
8847        $as_test_x conftest$ac_exeext; then
8848   ac_cv_c_dll_hpux="yes"
8849 else
8850   echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853         ac_cv_c_dll_hpux="no"
8854 fi
8855
8856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8857       conftest$ac_exeext conftest.$ac_ext
8858 CFLAGS=$ac_wine_try_cflags_saved
8859 fi
8860 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
8861 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
8862         if test "$ac_cv_c_dll_hpux" = "yes"
8863         then
8864           LIBEXT="sl"
8865           DLLEXT=".sl"
8866           LDDLLFLAGS="-shared -fPIC"
8867           LDSHARED="\$(CC) -shared"
8868         fi
8869       fi
8870     fi
8871
8872         CROSSTEST=""
8873
8874     if test "$cross_compiling" = "no"
8875     then
8876       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
8877 do
8878   # Extract the first word of "$ac_prog", so it can be a program name with args.
8879 set dummy $ac_prog; ac_word=$2
8880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8882 if test "${ac_cv_prog_CROSSCC+set}" = set; then
8883   echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885   if test -n "$CROSSCC"; then
8886   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8887 else
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8890 do
8891   IFS=$as_save_IFS
8892   test -z "$as_dir" && as_dir=.
8893   for ac_exec_ext in '' $ac_executable_extensions; do
8894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8895     ac_cv_prog_CROSSCC="$ac_prog"
8896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8897     break 2
8898   fi
8899 done
8900 done
8901 IFS=$as_save_IFS
8902
8903 fi
8904 fi
8905 CROSSCC=$ac_cv_prog_CROSSCC
8906 if test -n "$CROSSCC"; then
8907   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
8908 echo "${ECHO_T}$CROSSCC" >&6; }
8909 else
8910   { echo "$as_me:$LINENO: result: no" >&5
8911 echo "${ECHO_T}no" >&6; }
8912 fi
8913
8914
8915   test -n "$CROSSCC" && break
8916 done
8917 test -n "$CROSSCC" || CROSSCC="false"
8918
8919       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i686-mingw32-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
8920 do
8921   # Extract the first word of "$ac_prog", so it can be a program name with args.
8922 set dummy $ac_prog; ac_word=$2
8923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8925 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8926   echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928   if test -n "$DLLTOOL"; then
8929   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8930 else
8931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 for as_dir in $PATH
8933 do
8934   IFS=$as_save_IFS
8935   test -z "$as_dir" && as_dir=.
8936   for ac_exec_ext in '' $ac_executable_extensions; do
8937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8938     ac_cv_prog_DLLTOOL="$ac_prog"
8939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8940     break 2
8941   fi
8942 done
8943 done
8944 IFS=$as_save_IFS
8945
8946 fi
8947 fi
8948 DLLTOOL=$ac_cv_prog_DLLTOOL
8949 if test -n "$DLLTOOL"; then
8950   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8951 echo "${ECHO_T}$DLLTOOL" >&6; }
8952 else
8953   { echo "$as_me:$LINENO: result: no" >&5
8954 echo "${ECHO_T}no" >&6; }
8955 fi
8956
8957
8958   test -n "$DLLTOOL" && break
8959 done
8960 test -n "$DLLTOOL" || DLLTOOL="false"
8961
8962       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i686-mingw32-windres i386-mingw32-windres mingw32-windres mingw-windres
8963 do
8964   # Extract the first word of "$ac_prog", so it can be a program name with args.
8965 set dummy $ac_prog; ac_word=$2
8966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8968 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
8969   echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971   if test -n "$CROSSWINDRES"; then
8972   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
8973 else
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in $PATH
8976 do
8977   IFS=$as_save_IFS
8978   test -z "$as_dir" && as_dir=.
8979   for ac_exec_ext in '' $ac_executable_extensions; do
8980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8981     ac_cv_prog_CROSSWINDRES="$ac_prog"
8982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8983     break 2
8984   fi
8985 done
8986 done
8987 IFS=$as_save_IFS
8988
8989 fi
8990 fi
8991 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
8992 if test -n "$CROSSWINDRES"; then
8993   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
8994 echo "${ECHO_T}$CROSSWINDRES" >&6; }
8995 else
8996   { echo "$as_me:$LINENO: result: no" >&5
8997 echo "${ECHO_T}no" >&6; }
8998 fi
8999
9000
9001   test -n "$CROSSWINDRES" && break
9002 done
9003 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
9004
9005       for ac_prog in i586-mingw32msvc-ar i386-mingw32msvc-ar i686-mingw32-ar i386-mingw32-ar mingw32-ar mingw-ar
9006 do
9007   # Extract the first word of "$ac_prog", so it can be a program name with args.
9008 set dummy $ac_prog; ac_word=$2
9009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9011 if test "${ac_cv_prog_MINGWAR+set}" = set; then
9012   echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014   if test -n "$MINGWAR"; then
9015   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
9016 else
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9019 do
9020   IFS=$as_save_IFS
9021   test -z "$as_dir" && as_dir=.
9022   for ac_exec_ext in '' $ac_executable_extensions; do
9023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024     ac_cv_prog_MINGWAR="$ac_prog"
9025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9026     break 2
9027   fi
9028 done
9029 done
9030 IFS=$as_save_IFS
9031
9032 fi
9033 fi
9034 MINGWAR=$ac_cv_prog_MINGWAR
9035 if test -n "$MINGWAR"; then
9036   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
9037 echo "${ECHO_T}$MINGWAR" >&6; }
9038 else
9039   { echo "$as_me:$LINENO: result: no" >&5
9040 echo "${ECHO_T}no" >&6; }
9041 fi
9042
9043
9044   test -n "$MINGWAR" && break
9045 done
9046 test -n "$MINGWAR" || MINGWAR="false"
9047
9048       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
9049     fi
9050     ;;
9051 esac
9052
9053 if test "$LIBEXT" = "a"; then
9054   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
9055 It is currently not possible to build Wine without shared library
9056 (.so) support to allow transparent switch between .so and .dll files.
9057 If you are using Linux, you will need a newer binutils.
9058 " >&5
9059 echo "$as_me: error: could not find a way to build shared libraries.
9060 It is currently not possible to build Wine without shared library
9061 (.so) support to allow transparent switch between .so and .dll files.
9062 If you are using Linux, you will need a newer binutils.
9063 " >&2;}
9064    { (exit 1); exit 1; }; }
9065 fi
9066
9067
9068 if test "$have_x" = "yes"
9069 then
9070     XLIB="-lXext -lX11"
9071     ac_save_CPPFLAGS="$CPPFLAGS"
9072     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9073
9074     { echo "$as_me:$LINENO: checking for -lX11" >&5
9075 echo $ECHO_N "checking for -lX11... $ECHO_C" >&6; }
9076 if test "${ac_cv_lib_soname_X11+set}" = set; then
9077   echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079   ac_check_soname_save_LIBS=$LIBS
9080 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9081   cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h.  */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h.  */
9087
9088 /* Override any GCC internal prototype to avoid an error.
9089    Use char because int might match the return type of a GCC
9090    builtin and then its argument prototype would still apply.  */
9091 #ifdef __cplusplus
9092 extern "C"
9093 #endif
9094 char XCreateWindow ();
9095 int
9096 main ()
9097 {
9098 return XCreateWindow ();
9099   ;
9100   return 0;
9101 }
9102 _ACEOF
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (ac_try="$ac_link"
9105 case "(($ac_try" in
9106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107   *) ac_try_echo=$ac_try;;
9108 esac
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110   (eval "$ac_link") 2>conftest.er1
9111   ac_status=$?
9112   grep -v '^ *+' conftest.er1 >conftest.err
9113   rm -f conftest.er1
9114   cat conftest.err >&5
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); } && {
9117          test -z "$ac_c_werror_flag" ||
9118          test ! -s conftest.err
9119        } && test -s conftest$ac_exeext &&
9120        $as_test_x conftest$ac_exeext; then
9121   case "$LIBEXT" in
9122     dll) ;;
9123     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'` ;;
9124     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9125   esac
9126 else
9127   echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130
9131 fi
9132
9133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9134       conftest$ac_exeext conftest.$ac_ext
9135   LIBS=$ac_check_soname_save_LIBS
9136 fi
9137 if test "x$ac_cv_lib_soname_X11" = "x"; then
9138   { echo "$as_me:$LINENO: result: not found" >&5
9139 echo "${ECHO_T}not found" >&6; }
9140
9141 else
9142   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
9143 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
9144
9145 cat >>confdefs.h <<_ACEOF
9146 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9147 _ACEOF
9148
9149
9150 fi
9151
9152     { echo "$as_me:$LINENO: checking for -lXext" >&5
9153 echo $ECHO_N "checking for -lXext... $ECHO_C" >&6; }
9154 if test "${ac_cv_lib_soname_Xext+set}" = set; then
9155   echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157   ac_check_soname_save_LIBS=$LIBS
9158 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9159   cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h.  */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h.  */
9165
9166 /* Override any GCC internal prototype to avoid an error.
9167    Use char because int might match the return type of a GCC
9168    builtin and then its argument prototype would still apply.  */
9169 #ifdef __cplusplus
9170 extern "C"
9171 #endif
9172 char XextCreateExtension ();
9173 int
9174 main ()
9175 {
9176 return XextCreateExtension ();
9177   ;
9178   return 0;
9179 }
9180 _ACEOF
9181 rm -f conftest.$ac_objext conftest$ac_exeext
9182 if { (ac_try="$ac_link"
9183 case "(($ac_try" in
9184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185   *) ac_try_echo=$ac_try;;
9186 esac
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188   (eval "$ac_link") 2>conftest.er1
9189   ac_status=$?
9190   grep -v '^ *+' conftest.er1 >conftest.err
9191   rm -f conftest.er1
9192   cat conftest.err >&5
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); } && {
9195          test -z "$ac_c_werror_flag" ||
9196          test ! -s conftest.err
9197        } && test -s conftest$ac_exeext &&
9198        $as_test_x conftest$ac_exeext; then
9199   case "$LIBEXT" in
9200     dll) ;;
9201     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'` ;;
9202     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9203   esac
9204 else
9205   echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208
9209 fi
9210
9211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9212       conftest$ac_exeext conftest.$ac_ext
9213   LIBS=$ac_check_soname_save_LIBS
9214 fi
9215 if test "x$ac_cv_lib_soname_Xext" = "x"; then
9216   { echo "$as_me:$LINENO: result: not found" >&5
9217 echo "${ECHO_T}not found" >&6; }
9218
9219 else
9220   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
9221 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
9222
9223 cat >>confdefs.h <<_ACEOF
9224 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9225 _ACEOF
9226
9227
9228 fi
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243 for ac_header in X11/Xlib.h \
9244                       X11/XKBlib.h \
9245                       X11/Xutil.h \
9246                       X11/Xcursor/Xcursor.h \
9247                       X11/extensions/shape.h \
9248                       X11/extensions/XInput.h \
9249                       X11/extensions/XShm.h \
9250                       X11/extensions/Xcomposite.h \
9251                       X11/extensions/Xinerama.h \
9252                       X11/extensions/Xrandr.h \
9253                       X11/extensions/Xrender.h \
9254                       X11/extensions/xf86vmode.h
9255 do
9256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9260   echo $ECHO_N "(cached) $ECHO_C" >&6
9261 else
9262   cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h.  */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h.  */
9268 #ifdef HAVE_X11_XLIB_H
9269 # include <X11/Xlib.h>
9270 #endif
9271 #ifdef HAVE_X11_XUTIL_H
9272 # include <X11/Xutil.h>
9273 #endif
9274
9275 #include <$ac_header>
9276 _ACEOF
9277 rm -f conftest.$ac_objext
9278 if { (ac_try="$ac_compile"
9279 case "(($ac_try" in
9280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281   *) ac_try_echo=$ac_try;;
9282 esac
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284   (eval "$ac_compile") 2>conftest.er1
9285   ac_status=$?
9286   grep -v '^ *+' conftest.er1 >conftest.err
9287   rm -f conftest.er1
9288   cat conftest.err >&5
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } && {
9291          test -z "$ac_c_werror_flag" ||
9292          test ! -s conftest.err
9293        } && test -s conftest.$ac_objext; then
9294   eval "$as_ac_Header=yes"
9295 else
9296   echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9298
9299         eval "$as_ac_Header=no"
9300 fi
9301
9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9303 fi
9304 ac_res=`eval echo '${'$as_ac_Header'}'`
9305                { echo "$as_me:$LINENO: result: $ac_res" >&5
9306 echo "${ECHO_T}$ac_res" >&6; }
9307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9308   cat >>confdefs.h <<_ACEOF
9309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9310 _ACEOF
9311
9312 fi
9313
9314 done
9315
9316
9317                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9318         then
9319               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9320 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9321 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324   ac_check_lib_save_LIBS=$LIBS
9325 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9326 cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h.  */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h.  */
9332
9333 /* Override any GCC internal prototype to avoid an error.
9334    Use char because int might match the return type of a GCC
9335    builtin and then its argument prototype would still apply.  */
9336 #ifdef __cplusplus
9337 extern "C"
9338 #endif
9339 char XkbQueryExtension ();
9340 int
9341 main ()
9342 {
9343 return XkbQueryExtension ();
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (ac_try="$ac_link"
9350 case "(($ac_try" in
9351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352   *) ac_try_echo=$ac_try;;
9353 esac
9354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355   (eval "$ac_link") 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } && {
9362          test -z "$ac_c_werror_flag" ||
9363          test ! -s conftest.err
9364        } && test -s conftest$ac_exeext &&
9365        $as_test_x conftest$ac_exeext; then
9366   ac_cv_lib_X11_XkbQueryExtension=yes
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371         ac_cv_lib_X11_XkbQueryExtension=no
9372 fi
9373
9374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9375       conftest$ac_exeext conftest.$ac_ext
9376 LIBS=$ac_check_lib_save_LIBS
9377 fi
9378 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9379 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9380 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
9381
9382 cat >>confdefs.h <<\_ACEOF
9383 #define HAVE_XKB 1
9384 _ACEOF
9385
9386 fi
9387
9388         fi
9389
9390                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9391         then
9392             { echo "$as_me:$LINENO: checking for -lXcursor" >&5
9393 echo $ECHO_N "checking for -lXcursor... $ECHO_C" >&6; }
9394 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then
9395   echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397   ac_check_soname_save_LIBS=$LIBS
9398 LIBS="-lXcursor $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9399   cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h.  */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h.  */
9405
9406 /* Override any GCC internal prototype to avoid an error.
9407    Use char because int might match the return type of a GCC
9408    builtin and then its argument prototype would still apply.  */
9409 #ifdef __cplusplus
9410 extern "C"
9411 #endif
9412 char XcursorImageLoadCursor ();
9413 int
9414 main ()
9415 {
9416 return XcursorImageLoadCursor ();
9417   ;
9418   return 0;
9419 }
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (ac_try="$ac_link"
9423 case "(($ac_try" in
9424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425   *) ac_try_echo=$ac_try;;
9426 esac
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428   (eval "$ac_link") 2>conftest.er1
9429   ac_status=$?
9430   grep -v '^ *+' conftest.er1 >conftest.err
9431   rm -f conftest.er1
9432   cat conftest.err >&5
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } && {
9435          test -z "$ac_c_werror_flag" ||
9436          test ! -s conftest.err
9437        } && test -s conftest$ac_exeext &&
9438        $as_test_x conftest$ac_exeext; then
9439   case "$LIBEXT" in
9440     dll) ;;
9441     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'` ;;
9442     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9443   esac
9444 else
9445   echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9447
9448
9449 fi
9450
9451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9452       conftest$ac_exeext conftest.$ac_ext
9453   LIBS=$ac_check_soname_save_LIBS
9454 fi
9455 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then
9456   { echo "$as_me:$LINENO: result: not found" >&5
9457 echo "${ECHO_T}not found" >&6; }
9458
9459 else
9460   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xcursor" >&5
9461 echo "${ECHO_T}$ac_cv_lib_soname_Xcursor" >&6; }
9462
9463 cat >>confdefs.h <<_ACEOF
9464 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9465 _ACEOF
9466
9467
9468 fi
9469
9470         fi
9471
9472                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9473         then
9474             { echo "$as_me:$LINENO: checking for -lXi" >&5
9475 echo $ECHO_N "checking for -lXi... $ECHO_C" >&6; }
9476 if test "${ac_cv_lib_soname_Xi+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   ac_check_soname_save_LIBS=$LIBS
9480 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9481   cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h.  */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h.  */
9487
9488 /* Override any GCC internal prototype to avoid an error.
9489    Use char because int might match the return type of a GCC
9490    builtin and then its argument prototype would still apply.  */
9491 #ifdef __cplusplus
9492 extern "C"
9493 #endif
9494 char XOpenDevice ();
9495 int
9496 main ()
9497 {
9498 return XOpenDevice ();
9499   ;
9500   return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9505 case "(($ac_try" in
9506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507   *) ac_try_echo=$ac_try;;
9508 esac
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510   (eval "$ac_link") 2>conftest.er1
9511   ac_status=$?
9512   grep -v '^ *+' conftest.er1 >conftest.err
9513   rm -f conftest.er1
9514   cat conftest.err >&5
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); } && {
9517          test -z "$ac_c_werror_flag" ||
9518          test ! -s conftest.err
9519        } && test -s conftest$ac_exeext &&
9520        $as_test_x conftest$ac_exeext; then
9521   case "$LIBEXT" in
9522     dll) ;;
9523     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'` ;;
9524     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
9525   esac
9526 else
9527   echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530
9531 fi
9532
9533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534       conftest$ac_exeext conftest.$ac_ext
9535   LIBS=$ac_check_soname_save_LIBS
9536 fi
9537 if test "x$ac_cv_lib_soname_Xi" = "x"; then
9538   { echo "$as_me:$LINENO: result: not found" >&5
9539 echo "${ECHO_T}not found" >&6; }
9540
9541 else
9542   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
9543 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
9544
9545 cat >>confdefs.h <<_ACEOF
9546 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9547 _ACEOF
9548
9549
9550 fi
9551
9552         fi
9553
9554                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9555         then
9556               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9557 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
9558 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9559   echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561   ac_check_lib_save_LIBS=$LIBS
9562 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9563 cat >conftest.$ac_ext <<_ACEOF
9564 /* confdefs.h.  */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h.  */
9569
9570 /* Override any GCC internal prototype to avoid an error.
9571    Use char because int might match the return type of a GCC
9572    builtin and then its argument prototype would still apply.  */
9573 #ifdef __cplusplus
9574 extern "C"
9575 #endif
9576 char XShmQueryExtension ();
9577 int
9578 main ()
9579 {
9580 return XShmQueryExtension ();
9581   ;
9582   return 0;
9583 }
9584 _ACEOF
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (ac_try="$ac_link"
9587 case "(($ac_try" in
9588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589   *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592   (eval "$ac_link") 2>conftest.er1
9593   ac_status=$?
9594   grep -v '^ *+' conftest.er1 >conftest.err
9595   rm -f conftest.er1
9596   cat conftest.err >&5
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); } && {
9599          test -z "$ac_c_werror_flag" ||
9600          test ! -s conftest.err
9601        } && test -s conftest$ac_exeext &&
9602        $as_test_x conftest$ac_exeext; then
9603   ac_cv_lib_Xext_XShmQueryExtension=yes
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608         ac_cv_lib_Xext_XShmQueryExtension=no
9609 fi
9610
9611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9612       conftest$ac_exeext conftest.$ac_ext
9613 LIBS=$ac_check_lib_save_LIBS
9614 fi
9615 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9616 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9617 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
9618
9619 cat >>confdefs.h <<\_ACEOF
9620 #define HAVE_LIBXXSHM 1
9621 _ACEOF
9622
9623 fi
9624
9625         fi
9626         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then
9627   wine_notices="$wine_notices|XShm development files not found.
9628 Wine will be built without XShm support. (winex11.drv)"
9629 fi
9630
9631
9632                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9633         then
9634               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9635 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9636 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9637   echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639   ac_check_lib_save_LIBS=$LIBS
9640 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9641 cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h.  */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h.  */
9647
9648 /* Override any GCC internal prototype to avoid an error.
9649    Use char because int might match the return type of a GCC
9650    builtin and then its argument prototype would still apply.  */
9651 #ifdef __cplusplus
9652 extern "C"
9653 #endif
9654 char XShapeQueryExtension ();
9655 int
9656 main ()
9657 {
9658 return XShapeQueryExtension ();
9659   ;
9660   return 0;
9661 }
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (ac_try="$ac_link"
9665 case "(($ac_try" in
9666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667   *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670   (eval "$ac_link") 2>conftest.er1
9671   ac_status=$?
9672   grep -v '^ *+' conftest.er1 >conftest.err
9673   rm -f conftest.er1
9674   cat conftest.err >&5
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } && {
9677          test -z "$ac_c_werror_flag" ||
9678          test ! -s conftest.err
9679        } && test -s conftest$ac_exeext &&
9680        $as_test_x conftest$ac_exeext; then
9681   ac_cv_lib_Xext_XShapeQueryExtension=yes
9682 else
9683   echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9685
9686         ac_cv_lib_Xext_XShapeQueryExtension=no
9687 fi
9688
9689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690       conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9692 fi
9693 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9694 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9695 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9696
9697 cat >>confdefs.h <<\_ACEOF
9698 #define HAVE_LIBXSHAPE 1
9699 _ACEOF
9700
9701 fi
9702
9703         fi
9704         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then
9705   wine_notices="$wine_notices|XShape development files not found.
9706 Wine will be built without XShape support. (winex11.drv)"
9707 fi
9708
9709
9710                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9711         then
9712                 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9713 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9714 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9715   echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717   ac_check_lib_save_LIBS=$LIBS
9718 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9719 cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h.  */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h.  */
9725
9726 /* Override any GCC internal prototype to avoid an error.
9727    Use char because int might match the return type of a GCC
9728    builtin and then its argument prototype would still apply.  */
9729 #ifdef __cplusplus
9730 extern "C"
9731 #endif
9732 char XF86VidModeQueryExtension ();
9733 int
9734 main ()
9735 {
9736 return XF86VidModeQueryExtension ();
9737   ;
9738   return 0;
9739 }
9740 _ACEOF
9741 rm -f conftest.$ac_objext conftest$ac_exeext
9742 if { (ac_try="$ac_link"
9743 case "(($ac_try" in
9744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745   *) ac_try_echo=$ac_try;;
9746 esac
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748   (eval "$ac_link") 2>conftest.er1
9749   ac_status=$?
9750   grep -v '^ *+' conftest.er1 >conftest.err
9751   rm -f conftest.er1
9752   cat conftest.err >&5
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); } && {
9755          test -z "$ac_c_werror_flag" ||
9756          test ! -s conftest.err
9757        } && test -s conftest$ac_exeext &&
9758        $as_test_x conftest$ac_exeext; then
9759   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9760 else
9761   echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9765 fi
9766
9767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9768       conftest$ac_exeext conftest.$ac_ext
9769 LIBS=$ac_check_lib_save_LIBS
9770 fi
9771 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9772 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9773 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_LIBXXF86VM 1
9777 _ACEOF
9778
9779                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9780
9781 fi
9782
9783         fi
9784         if test "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" != "yes"; then
9785   wine_notices="$wine_notices|Xxf86vm development files not found.
9786 Wine will be built without XF86 Vidmode support. (winex11.drv)"
9787 fi
9788
9789
9790                 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"
9791         then
9792             { echo "$as_me:$LINENO: checking for -lXrender" >&5
9793 echo $ECHO_N "checking for -lXrender... $ECHO_C" >&6; }
9794 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
9795   echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797   ac_check_soname_save_LIBS=$LIBS
9798 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9799   cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h.  */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h.  */
9805
9806 /* Override any GCC internal prototype to avoid an error.
9807    Use char because int might match the return type of a GCC
9808    builtin and then its argument prototype would still apply.  */
9809 #ifdef __cplusplus
9810 extern "C"
9811 #endif
9812 char XRenderQueryExtension ();
9813 int
9814 main ()
9815 {
9816 return XRenderQueryExtension ();
9817   ;
9818   return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9823 case "(($ac_try" in
9824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825   *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828   (eval "$ac_link") 2>conftest.er1
9829   ac_status=$?
9830   grep -v '^ *+' conftest.er1 >conftest.err
9831   rm -f conftest.er1
9832   cat conftest.err >&5
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); } && {
9835          test -z "$ac_c_werror_flag" ||
9836          test ! -s conftest.err
9837        } && test -s conftest$ac_exeext &&
9838        $as_test_x conftest$ac_exeext; then
9839   case "$LIBEXT" in
9840     dll) ;;
9841     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'` ;;
9842     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9843   esac
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848
9849 fi
9850
9851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9852       conftest$ac_exeext conftest.$ac_ext
9853   LIBS=$ac_check_soname_save_LIBS
9854 fi
9855 if test "x$ac_cv_lib_soname_Xrender" = "x"; then
9856   { echo "$as_me:$LINENO: result: not found" >&5
9857 echo "${ECHO_T}not found" >&6; }
9858
9859 else
9860   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
9861 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
9862
9863 cat >>confdefs.h <<_ACEOF
9864 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9865 _ACEOF
9866
9867        { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9868 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9869 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   ac_check_lib_save_LIBS=$LIBS
9873 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h.  */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h.  */
9880
9881 /* Override any GCC internal prototype to avoid an error.
9882    Use char because int might match the return type of a GCC
9883    builtin and then its argument prototype would still apply.  */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 char XRenderSetPictureTransform ();
9888 int
9889 main ()
9890 {
9891 return XRenderSetPictureTransform ();
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (ac_try="$ac_link"
9898 case "(($ac_try" in
9899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900   *) ac_try_echo=$ac_try;;
9901 esac
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903   (eval "$ac_link") 2>conftest.er1
9904   ac_status=$?
9905   grep -v '^ *+' conftest.er1 >conftest.err
9906   rm -f conftest.er1
9907   cat conftest.err >&5
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); } && {
9910          test -z "$ac_c_werror_flag" ||
9911          test ! -s conftest.err
9912        } && test -s conftest$ac_exeext &&
9913        $as_test_x conftest$ac_exeext; then
9914   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9915 else
9916   echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9918
9919         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9920 fi
9921
9922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9923       conftest$ac_exeext conftest.$ac_ext
9924 LIBS=$ac_check_lib_save_LIBS
9925 fi
9926 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9927 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9928 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9929
9930 cat >>confdefs.h <<\_ACEOF
9931 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9932 _ACEOF
9933
9934 fi
9935
9936 fi
9937
9938
9939         fi
9940         if test "x$ac_cv_lib_soname_Xrender" = "x"; then
9941   wine_notices="$wine_notices|XRender development files not found.
9942 Wine will be built without XRender support. (winex11.drv)"
9943 fi
9944
9945
9946                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9947         then
9948                 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954 #include <X11/Xlib.h>
9955 #include <X11/extensions/Xrandr.h>
9956 int
9957 main ()
9958 {
9959 static typeof(XRRSetScreenConfigAndRate) * func;
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (ac_try="$ac_compile"
9966 case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971   (eval "$ac_compile") 2>conftest.er1
9972   ac_status=$?
9973   grep -v '^ *+' conftest.er1 >conftest.err
9974   rm -f conftest.er1
9975   cat conftest.err >&5
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); } && {
9978          test -z "$ac_c_werror_flag" ||
9979          test ! -s conftest.err
9980        } && test -s conftest.$ac_objext; then
9981   { echo "$as_me:$LINENO: checking for -lXrandr" >&5
9982 echo $ECHO_N "checking for -lXrandr... $ECHO_C" >&6; }
9983 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   ac_check_soname_save_LIBS=$LIBS
9987 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9988   cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h.  */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h.  */
9994
9995 /* Override any GCC internal prototype to avoid an error.
9996    Use char because int might match the return type of a GCC
9997    builtin and then its argument prototype would still apply.  */
9998 #ifdef __cplusplus
9999 extern "C"
10000 #endif
10001 char XRRQueryExtension ();
10002 int
10003 main ()
10004 {
10005 return XRRQueryExtension ();
10006   ;
10007   return 0;
10008 }
10009 _ACEOF
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (ac_try="$ac_link"
10012 case "(($ac_try" in
10013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014   *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017   (eval "$ac_link") 2>conftest.er1
10018   ac_status=$?
10019   grep -v '^ *+' conftest.er1 >conftest.err
10020   rm -f conftest.er1
10021   cat conftest.err >&5
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); } && {
10024          test -z "$ac_c_werror_flag" ||
10025          test ! -s conftest.err
10026        } && test -s conftest$ac_exeext &&
10027        $as_test_x conftest$ac_exeext; then
10028   case "$LIBEXT" in
10029     dll) ;;
10030     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'` ;;
10031     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10032   esac
10033 else
10034   echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037
10038 fi
10039
10040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10041       conftest$ac_exeext conftest.$ac_ext
10042   LIBS=$ac_check_soname_save_LIBS
10043 fi
10044 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then
10045   { echo "$as_me:$LINENO: result: not found" >&5
10046 echo "${ECHO_T}not found" >&6; }
10047
10048 else
10049   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
10050 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
10051
10052 cat >>confdefs.h <<_ACEOF
10053 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
10054 _ACEOF
10055
10056
10057 fi
10058
10059 else
10060   echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063
10064 fi
10065
10066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10067         fi
10068         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then
10069   wine_notices="$wine_notices|XRandr development files not found.
10070 Wine will be built without XRandr support. (winex11.drv)"
10071 fi
10072
10073
10074                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10075         then
10076                 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h.  */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h.  */
10082 #include <X11/Xlib.h>
10083 #include <X11/extensions/Xinerama.h>
10084 int
10085 main ()
10086 {
10087 static typeof(XineramaQueryScreens) * func;
10088   ;
10089   return 0;
10090 }
10091 _ACEOF
10092 rm -f conftest.$ac_objext
10093 if { (ac_try="$ac_compile"
10094 case "(($ac_try" in
10095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096   *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099   (eval "$ac_compile") 2>conftest.er1
10100   ac_status=$?
10101   grep -v '^ *+' conftest.er1 >conftest.err
10102   rm -f conftest.er1
10103   cat conftest.err >&5
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); } && {
10106          test -z "$ac_c_werror_flag" ||
10107          test ! -s conftest.err
10108        } && test -s conftest.$ac_objext; then
10109   { echo "$as_me:$LINENO: checking for -lXinerama" >&5
10110 echo $ECHO_N "checking for -lXinerama... $ECHO_C" >&6; }
10111 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114   ac_check_soname_save_LIBS=$LIBS
10115 LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10116   cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h.  */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h.  */
10122
10123 /* Override any GCC internal prototype to avoid an error.
10124    Use char because int might match the return type of a GCC
10125    builtin and then its argument prototype would still apply.  */
10126 #ifdef __cplusplus
10127 extern "C"
10128 #endif
10129 char XineramaQueryScreens ();
10130 int
10131 main ()
10132 {
10133 return XineramaQueryScreens ();
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (ac_try="$ac_link"
10140 case "(($ac_try" in
10141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142   *) ac_try_echo=$ac_try;;
10143 esac
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145   (eval "$ac_link") 2>conftest.er1
10146   ac_status=$?
10147   grep -v '^ *+' conftest.er1 >conftest.err
10148   rm -f conftest.er1
10149   cat conftest.err >&5
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); } && {
10152          test -z "$ac_c_werror_flag" ||
10153          test ! -s conftest.err
10154        } && test -s conftest$ac_exeext &&
10155        $as_test_x conftest$ac_exeext; then
10156   case "$LIBEXT" in
10157     dll) ;;
10158     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'` ;;
10159     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10160   esac
10161 else
10162   echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165
10166 fi
10167
10168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10169       conftest$ac_exeext conftest.$ac_ext
10170   LIBS=$ac_check_soname_save_LIBS
10171 fi
10172 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then
10173   { echo "$as_me:$LINENO: result: not found" >&5
10174 echo "${ECHO_T}not found" >&6; }
10175
10176 else
10177   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
10178 echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
10179
10180 cat >>confdefs.h <<_ACEOF
10181 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10182 _ACEOF
10183
10184
10185 fi
10186
10187 else
10188   echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191
10192 fi
10193
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195         fi
10196         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then
10197   wine_notices="$wine_notices|Xinerama development files not found.
10198 Wine will be built without Xinerama support. (winex11.drv)"
10199 fi
10200
10201
10202                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10203         then
10204             { echo "$as_me:$LINENO: checking for -lXcomposite" >&5
10205 echo $ECHO_N "checking for -lXcomposite... $ECHO_C" >&6; }
10206 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then
10207   echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209   ac_check_soname_save_LIBS=$LIBS
10210 LIBS="-lXcomposite $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10211   cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h.  */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h.  */
10217
10218 /* Override any GCC internal prototype to avoid an error.
10219    Use char because int might match the return type of a GCC
10220    builtin and then its argument prototype would still apply.  */
10221 #ifdef __cplusplus
10222 extern "C"
10223 #endif
10224 char XCompositeRedirectWindow ();
10225 int
10226 main ()
10227 {
10228 return XCompositeRedirectWindow ();
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (ac_try="$ac_link"
10235 case "(($ac_try" in
10236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237   *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240   (eval "$ac_link") 2>conftest.er1
10241   ac_status=$?
10242   grep -v '^ *+' conftest.er1 >conftest.err
10243   rm -f conftest.er1
10244   cat conftest.err >&5
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); } && {
10247          test -z "$ac_c_werror_flag" ||
10248          test ! -s conftest.err
10249        } && test -s conftest$ac_exeext &&
10250        $as_test_x conftest$ac_exeext; then
10251   case "$LIBEXT" in
10252     dll) ;;
10253     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'` ;;
10254     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
10255   esac
10256 else
10257   echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260
10261 fi
10262
10263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10264       conftest$ac_exeext conftest.$ac_ext
10265   LIBS=$ac_check_soname_save_LIBS
10266 fi
10267 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then
10268   { echo "$as_me:$LINENO: result: not found" >&5
10269 echo "${ECHO_T}not found" >&6; }
10270
10271 else
10272   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xcomposite" >&5
10273 echo "${ECHO_T}$ac_cv_lib_soname_Xcomposite" >&6; }
10274
10275 cat >>confdefs.h <<_ACEOF
10276 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10277 _ACEOF
10278
10279
10280 fi
10281
10282         fi
10283         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then
10284   wine_notices="$wine_notices|XComposite development files not found.
10285 Wine will be built without XComposite support. (winex11.drv)"
10286 fi
10287
10288
10289
10290         if test "x$with_opengl" != "xno"
10291     then
10292
10293
10294
10295
10296 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
10297 do
10298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304   cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h.  */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h.  */
10310 #ifdef HAVE_GL_GLX_H
10311 # include <GL/glx.h>
10312 #endif
10313
10314 #include <$ac_header>
10315 _ACEOF
10316 rm -f conftest.$ac_objext
10317 if { (ac_try="$ac_compile"
10318 case "(($ac_try" in
10319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320   *) ac_try_echo=$ac_try;;
10321 esac
10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323   (eval "$ac_compile") 2>conftest.er1
10324   ac_status=$?
10325   grep -v '^ *+' conftest.er1 >conftest.err
10326   rm -f conftest.er1
10327   cat conftest.err >&5
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); } && {
10330          test -z "$ac_c_werror_flag" ||
10331          test ! -s conftest.err
10332        } && test -s conftest.$ac_objext; then
10333   eval "$as_ac_Header=yes"
10334 else
10335   echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10337
10338         eval "$as_ac_Header=no"
10339 fi
10340
10341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10342 fi
10343 ac_res=`eval echo '${'$as_ac_Header'}'`
10344                { echo "$as_me:$LINENO: result: $ac_res" >&5
10345 echo "${ECHO_T}$ac_res" >&6; }
10346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10347   cat >>confdefs.h <<_ACEOF
10348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10349 _ACEOF
10350
10351 fi
10352
10353 done
10354
10355         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
10356         then
10357                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
10358 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
10359 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   cat >conftest.$ac_ext <<_ACEOF
10363 /* confdefs.h.  */
10364 _ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h.  */
10368 #include <GL/gl.h>
10369 int
10370 main ()
10371 {
10372 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
10373   ;
10374   return 0;
10375 }
10376 _ACEOF
10377 rm -f conftest.$ac_objext
10378 if { (ac_try="$ac_compile"
10379 case "(($ac_try" in
10380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381   *) ac_try_echo=$ac_try;;
10382 esac
10383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384   (eval "$ac_compile") 2>conftest.er1
10385   ac_status=$?
10386   grep -v '^ *+' conftest.er1 >conftest.err
10387   rm -f conftest.er1
10388   cat conftest.err >&5
10389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390   (exit $ac_status); } && {
10391          test -z "$ac_c_werror_flag" ||
10392          test ! -s conftest.err
10393        } && test -s conftest.$ac_objext; then
10394   wine_cv_opengl_header_version_OK="yes"
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399         wine_cv_opengl_header_version_OK="no"
10400 fi
10401
10402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10403 fi
10404 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
10405 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
10406
10407             if test "$wine_cv_opengl_header_version_OK" = "yes"
10408             then
10409                                 { echo "$as_me:$LINENO: checking for -lGL" >&5
10410 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
10411 if test "${ac_cv_lib_soname_GL+set}" = set; then
10412   echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414   ac_check_soname_save_LIBS=$LIBS
10415 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
10416   cat >conftest.$ac_ext <<_ACEOF
10417 /* confdefs.h.  */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h.  */
10422
10423 /* Override any GCC internal prototype to avoid an error.
10424    Use char because int might match the return type of a GCC
10425    builtin and then its argument prototype would still apply.  */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char glXCreateContext ();
10430 int
10431 main ()
10432 {
10433 return glXCreateContext ();
10434   ;
10435   return 0;
10436 }
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442   *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445   (eval "$ac_link") 2>conftest.er1
10446   ac_status=$?
10447   grep -v '^ *+' conftest.er1 >conftest.err
10448   rm -f conftest.er1
10449   cat conftest.err >&5
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); } && {
10452          test -z "$ac_c_werror_flag" ||
10453          test ! -s conftest.err
10454        } && test -s conftest$ac_exeext &&
10455        $as_test_x conftest$ac_exeext; then
10456   case "$LIBEXT" in
10457     dll) ;;
10458     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'` ;;
10459     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
10460   esac
10461 else
10462   echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10464
10465
10466 fi
10467
10468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10469       conftest$ac_exeext conftest.$ac_ext
10470   LIBS=$ac_check_soname_save_LIBS
10471 fi
10472 if test "x$ac_cv_lib_soname_GL" = "x"; then
10473   { echo "$as_me:$LINENO: result: not found" >&5
10474 echo "${ECHO_T}not found" >&6; }
10475        if test -f /usr/X11R6/lib/libGL.a
10476                               then
10477                                   wine_warnings="$wine_warnings|/usr/X11R6/lib/libGL.a is present on your system.
10478 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10479                               else
10480                                   wine_warnings="$wine_warnings|No OpenGL library found on this system.
10481 Wine will be build without OpenGL or Direct3D support."
10482                               fi
10483 else
10484   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
10485 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
10486
10487 cat >>confdefs.h <<_ACEOF
10488 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10489 _ACEOF
10490
10491        OPENGL_LIBS="-lGL"
10492                              OPENGLFILES='$(OPENGLFILES)'
10493
10494 cat >>confdefs.h <<\_ACEOF
10495 #define HAVE_OPENGL 1
10496 _ACEOF
10497
10498 fi
10499
10500
10501                                 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10502 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
10503 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h.  */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h.  */
10514
10515 /* Override any GCC internal prototype to avoid an error.
10516    Use char because int might match the return type of a GCC
10517    builtin and then its argument prototype would still apply.  */
10518 #ifdef __cplusplus
10519 extern "C"
10520 #endif
10521 char gluLookAt ();
10522 int
10523 main ()
10524 {
10525 return gluLookAt ();
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_link") 2>conftest.er1
10538   ac_status=$?
10539   grep -v '^ *+' conftest.er1 >conftest.err
10540   rm -f conftest.er1
10541   cat conftest.err >&5
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); } && {
10544          test -z "$ac_c_werror_flag" ||
10545          test ! -s conftest.err
10546        } && test -s conftest$ac_exeext &&
10547        $as_test_x conftest$ac_exeext; then
10548   ac_cv_lib_GLU_gluLookAt=yes
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553         ac_cv_lib_GLU_gluLookAt=no
10554 fi
10555
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557       conftest$ac_exeext conftest.$ac_ext
10558 LIBS=$ac_check_lib_save_LIBS
10559 fi
10560 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10561 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
10562 if test $ac_cv_lib_GLU_gluLookAt = yes; then
10563   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
10564                              GLU32FILES='$(GLU32FILES)'
10565
10566 fi
10567
10568              else
10569                  wine_warnings="$wine_warnings|Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/).
10570 Wine will be build without OpenGL or Direct3D support."
10571              fi
10572          else
10573              wine_warnings="$wine_warnings|OpenGL development headers not found.
10574 Wine will be build without OpenGL or Direct3D support."
10575          fi
10576     fi
10577
10578         NASLIBS=""
10579
10580
10581 for ac_header in audio/audiolib.h
10582 do
10583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10585   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10588   echo $ECHO_N "(cached) $ECHO_C" >&6
10589 fi
10590 ac_res=`eval echo '${'$as_ac_Header'}'`
10591                { echo "$as_me:$LINENO: result: $ac_res" >&5
10592 echo "${ECHO_T}$ac_res" >&6; }
10593 else
10594   # Is the header compilable?
10595 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10597 cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h.  */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h.  */
10603 $ac_includes_default
10604 #include <$ac_header>
10605 _ACEOF
10606 rm -f conftest.$ac_objext
10607 if { (ac_try="$ac_compile"
10608 case "(($ac_try" in
10609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610   *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613   (eval "$ac_compile") 2>conftest.er1
10614   ac_status=$?
10615   grep -v '^ *+' conftest.er1 >conftest.err
10616   rm -f conftest.er1
10617   cat conftest.err >&5
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); } && {
10620          test -z "$ac_c_werror_flag" ||
10621          test ! -s conftest.err
10622        } && test -s conftest.$ac_objext; then
10623   ac_header_compiler=yes
10624 else
10625   echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10627
10628         ac_header_compiler=no
10629 fi
10630
10631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10633 echo "${ECHO_T}$ac_header_compiler" >&6; }
10634
10635 # Is the header present?
10636 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10638 cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h.  */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h.  */
10644 #include <$ac_header>
10645 _ACEOF
10646 if { (ac_try="$ac_cpp conftest.$ac_ext"
10647 case "(($ac_try" in
10648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649   *) ac_try_echo=$ac_try;;
10650 esac
10651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10653   ac_status=$?
10654   grep -v '^ *+' conftest.er1 >conftest.err
10655   rm -f conftest.er1
10656   cat conftest.err >&5
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); } >/dev/null && {
10659          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10660          test ! -s conftest.err
10661        }; then
10662   ac_header_preproc=yes
10663 else
10664   echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667   ac_header_preproc=no
10668 fi
10669
10670 rm -f conftest.err conftest.$ac_ext
10671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10672 echo "${ECHO_T}$ac_header_preproc" >&6; }
10673
10674 # So?  What about this header?
10675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10676   yes:no: )
10677     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10681     ac_header_preproc=yes
10682     ;;
10683   no:yes:* )
10684     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10686     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10687 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10688     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10690     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10691 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10694     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10696     ( cat <<\_ASBOX
10697 ## ------------------------------------ ##
10698 ## Report this to wine-devel@winehq.org ##
10699 ## ------------------------------------ ##
10700 _ASBOX
10701      ) | sed "s/^/$as_me: WARNING:     /" >&2
10702     ;;
10703 esac
10704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10707   echo $ECHO_N "(cached) $ECHO_C" >&6
10708 else
10709   eval "$as_ac_Header=\$ac_header_preproc"
10710 fi
10711 ac_res=`eval echo '${'$as_ac_Header'}'`
10712                { echo "$as_me:$LINENO: result: $ac_res" >&5
10713 echo "${ECHO_T}$ac_res" >&6; }
10714
10715 fi
10716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10717   cat >>confdefs.h <<_ACEOF
10718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10719 _ACEOF
10720
10721 for ac_header in audio/soundlib.h
10722 do
10723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h.  */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h.  */
10735 #include <audio/audiolib.h>
10736
10737 #include <$ac_header>
10738 _ACEOF
10739 rm -f conftest.$ac_objext
10740 if { (ac_try="$ac_compile"
10741 case "(($ac_try" in
10742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743   *) ac_try_echo=$ac_try;;
10744 esac
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746   (eval "$ac_compile") 2>conftest.er1
10747   ac_status=$?
10748   grep -v '^ *+' conftest.er1 >conftest.err
10749   rm -f conftest.er1
10750   cat conftest.err >&5
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); } && {
10753          test -z "$ac_c_werror_flag" ||
10754          test ! -s conftest.err
10755        } && test -s conftest.$ac_objext; then
10756   eval "$as_ac_Header=yes"
10757 else
10758   echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10760
10761         eval "$as_ac_Header=no"
10762 fi
10763
10764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765 fi
10766 ac_res=`eval echo '${'$as_ac_Header'}'`
10767                { echo "$as_me:$LINENO: result: $ac_res" >&5
10768 echo "${ECHO_T}$ac_res" >&6; }
10769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10770   cat >>confdefs.h <<_ACEOF
10771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10772 _ACEOF
10773
10774 fi
10775
10776 done
10777
10778           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10779 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
10780 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10781   echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783   ac_check_lib_save_LIBS=$LIBS
10784 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10785 cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h.  */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h.  */
10791
10792 /* Override any GCC internal prototype to avoid an error.
10793    Use char because int might match the return type of a GCC
10794    builtin and then its argument prototype would still apply.  */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char AuCreateFlow ();
10799 int
10800 main ()
10801 {
10802 return AuCreateFlow ();
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 rm -f conftest.$ac_objext conftest$ac_exeext
10808 if { (ac_try="$ac_link"
10809 case "(($ac_try" in
10810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811   *) ac_try_echo=$ac_try;;
10812 esac
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814   (eval "$ac_link") 2>conftest.er1
10815   ac_status=$?
10816   grep -v '^ *+' conftest.er1 >conftest.err
10817   rm -f conftest.er1
10818   cat conftest.err >&5
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); } && {
10821          test -z "$ac_c_werror_flag" ||
10822          test ! -s conftest.err
10823        } && test -s conftest$ac_exeext &&
10824        $as_test_x conftest$ac_exeext; then
10825   ac_cv_lib_audio_AuCreateFlow=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830         ac_cv_lib_audio_AuCreateFlow=no
10831 fi
10832
10833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10834       conftest$ac_exeext conftest.$ac_ext
10835 LIBS=$ac_check_lib_save_LIBS
10836 fi
10837 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10838 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10839 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10840
10841 cat >>confdefs.h <<\_ACEOF
10842 #define HAVE_NAS 1
10843 _ACEOF
10844
10845                         { echo "$as_me:$LINENO: checking for XauGetBestAuthByAddr in -lXau" >&5
10846 echo $ECHO_N "checking for XauGetBestAuthByAddr in -lXau... $ECHO_C" >&6; }
10847 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-lXau $X_LIBS $LIBS"
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858
10859 /* Override any GCC internal prototype to avoid an error.
10860    Use char because int might match the return type of a GCC
10861    builtin and then its argument prototype would still apply.  */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char XauGetBestAuthByAddr ();
10866 int
10867 main ()
10868 {
10869 return XauGetBestAuthByAddr ();
10870   ;
10871   return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (ac_try="$ac_link"
10876 case "(($ac_try" in
10877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878   *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881   (eval "$ac_link") 2>conftest.er1
10882   ac_status=$?
10883   grep -v '^ *+' conftest.er1 >conftest.err
10884   rm -f conftest.er1
10885   cat conftest.err >&5
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } && {
10888          test -z "$ac_c_werror_flag" ||
10889          test ! -s conftest.err
10890        } && test -s conftest$ac_exeext &&
10891        $as_test_x conftest$ac_exeext; then
10892   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
10893 else
10894   echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897         ac_cv_lib_Xau_XauGetBestAuthByAddr=no
10898 fi
10899
10900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10901       conftest$ac_exeext conftest.$ac_ext
10902 LIBS=$ac_check_lib_save_LIBS
10903 fi
10904 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
10905 echo "${ECHO_T}$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
10906 if test $ac_cv_lib_Xau_XauGetBestAuthByAddr = yes; then
10907   NASLIBS="-lXau -laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10908 else
10909   NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10910 fi
10911
10912
10913 fi
10914
10915 fi
10916
10917 done
10918
10919
10920     CPPFLAGS="$ac_save_CPPFLAGS"
10921     XFILES='$(XFILES)'
10922 else
10923     XLIB=""
10924     X_CFLAGS=""
10925     X_LIBS=""
10926     wine_warnings="$wine_warnings|X development files not found. Wine will be built
10927 without X support, which probably isn't what you want. You will need to install
10928 development packages of Xlib/Xfree86 at the very least."
10929 fi
10930
10931
10932 XML2LIBS=""
10933
10934 XML2INCL=""
10935
10936 XSLTLIBS=""
10937
10938 XSLTINCL=""
10939
10940 ac_save_CPPFLAGS="$CPPFLAGS"
10941 if test "$PKG_CONFIG" != "false"
10942 then
10943     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10944     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10945 else
10946     ac_xml_libs="`xml2-config --libs 2>/dev/null`"
10947     ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
10948 fi
10949 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10950
10951 for ac_header in libxml/parser.h
10952 do
10953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10955   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10958   echo $ECHO_N "(cached) $ECHO_C" >&6
10959 fi
10960 ac_res=`eval echo '${'$as_ac_Header'}'`
10961                { echo "$as_me:$LINENO: result: $ac_res" >&5
10962 echo "${ECHO_T}$ac_res" >&6; }
10963 else
10964   # Is the header compilable?
10965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h.  */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h.  */
10973 $ac_includes_default
10974 #include <$ac_header>
10975 _ACEOF
10976 rm -f conftest.$ac_objext
10977 if { (ac_try="$ac_compile"
10978 case "(($ac_try" in
10979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980   *) ac_try_echo=$ac_try;;
10981 esac
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983   (eval "$ac_compile") 2>conftest.er1
10984   ac_status=$?
10985   grep -v '^ *+' conftest.er1 >conftest.err
10986   rm -f conftest.er1
10987   cat conftest.err >&5
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); } && {
10990          test -z "$ac_c_werror_flag" ||
10991          test ! -s conftest.err
10992        } && test -s conftest.$ac_objext; then
10993   ac_header_compiler=yes
10994 else
10995   echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10997
10998         ac_header_compiler=no
10999 fi
11000
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11003 echo "${ECHO_T}$ac_header_compiler" >&6; }
11004
11005 # Is the header present?
11006 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11008 cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h.  */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h.  */
11014 #include <$ac_header>
11015 _ACEOF
11016 if { (ac_try="$ac_cpp conftest.$ac_ext"
11017 case "(($ac_try" in
11018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019   *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11023   ac_status=$?
11024   grep -v '^ *+' conftest.er1 >conftest.err
11025   rm -f conftest.er1
11026   cat conftest.err >&5
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); } >/dev/null && {
11029          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11030          test ! -s conftest.err
11031        }; then
11032   ac_header_preproc=yes
11033 else
11034   echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11036
11037   ac_header_preproc=no
11038 fi
11039
11040 rm -f conftest.err conftest.$ac_ext
11041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11042 echo "${ECHO_T}$ac_header_preproc" >&6; }
11043
11044 # So?  What about this header?
11045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11046   yes:no: )
11047     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11051     ac_header_preproc=yes
11052     ;;
11053   no:yes:* )
11054     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11056     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11057 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11058     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11060     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11061 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11064     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11066     ( cat <<\_ASBOX
11067 ## ------------------------------------ ##
11068 ## Report this to wine-devel@winehq.org ##
11069 ## ------------------------------------ ##
11070 _ASBOX
11071      ) | sed "s/^/$as_me: WARNING:     /" >&2
11072     ;;
11073 esac
11074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11077   echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079   eval "$as_ac_Header=\$ac_header_preproc"
11080 fi
11081 ac_res=`eval echo '${'$as_ac_Header'}'`
11082                { echo "$as_me:$LINENO: result: $ac_res" >&5
11083 echo "${ECHO_T}$ac_res" >&6; }
11084
11085 fi
11086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11087   cat >>confdefs.h <<_ACEOF
11088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11089 _ACEOF
11090  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
11091 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
11092 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   ac_check_lib_save_LIBS=$LIBS
11096 LIBS="-lxml2 $ac_xml_libs $LIBS"
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h.  */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h.  */
11103
11104 /* Override any GCC internal prototype to avoid an error.
11105    Use char because int might match the return type of a GCC
11106    builtin and then its argument prototype would still apply.  */
11107 #ifdef __cplusplus
11108 extern "C"
11109 #endif
11110 char xmlParseMemory ();
11111 int
11112 main ()
11113 {
11114 return xmlParseMemory ();
11115   ;
11116   return 0;
11117 }
11118 _ACEOF
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123   *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126   (eval "$ac_link") 2>conftest.er1
11127   ac_status=$?
11128   grep -v '^ *+' conftest.er1 >conftest.err
11129   rm -f conftest.er1
11130   cat conftest.err >&5
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); } && {
11133          test -z "$ac_c_werror_flag" ||
11134          test ! -s conftest.err
11135        } && test -s conftest$ac_exeext &&
11136        $as_test_x conftest$ac_exeext; then
11137   ac_cv_lib_xml2_xmlParseMemory=yes
11138 else
11139   echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142         ac_cv_lib_xml2_xmlParseMemory=no
11143 fi
11144
11145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11146       conftest$ac_exeext conftest.$ac_ext
11147 LIBS=$ac_check_lib_save_LIBS
11148 fi
11149 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
11150 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
11151 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
11152
11153 cat >>confdefs.h <<\_ACEOF
11154 #define HAVE_LIBXML2 1
11155 _ACEOF
11156
11157              XML2LIBS="$ac_xml_libs"
11158              XML2INCL="$ac_xml_cflags"
11159 fi
11160
11161          { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
11162 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
11163 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
11164   echo $ECHO_N "(cached) $ECHO_C" >&6
11165 else
11166   ac_check_lib_save_LIBS=$LIBS
11167 LIBS="-lxml2 $ac_xml_libs $LIBS"
11168 cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h.  */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h.  */
11174
11175 /* Override any GCC internal prototype to avoid an error.
11176    Use char because int might match the return type of a GCC
11177    builtin and then its argument prototype would still apply.  */
11178 #ifdef __cplusplus
11179 extern "C"
11180 #endif
11181 char xmlReadMemory ();
11182 int
11183 main ()
11184 {
11185 return xmlReadMemory ();
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext conftest$ac_exeext
11191 if { (ac_try="$ac_link"
11192 case "(($ac_try" in
11193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194   *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197   (eval "$ac_link") 2>conftest.er1
11198   ac_status=$?
11199   grep -v '^ *+' conftest.er1 >conftest.err
11200   rm -f conftest.er1
11201   cat conftest.err >&5
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); } && {
11204          test -z "$ac_c_werror_flag" ||
11205          test ! -s conftest.err
11206        } && test -s conftest$ac_exeext &&
11207        $as_test_x conftest$ac_exeext; then
11208   ac_cv_lib_xml2_xmlReadMemory=yes
11209 else
11210   echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11212
11213         ac_cv_lib_xml2_xmlReadMemory=no
11214 fi
11215
11216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11217       conftest$ac_exeext conftest.$ac_ext
11218 LIBS=$ac_check_lib_save_LIBS
11219 fi
11220 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
11221 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
11222 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
11223
11224 cat >>confdefs.h <<\_ACEOF
11225 #define HAVE_XMLREADMEMORY 1
11226 _ACEOF
11227
11228 fi
11229
11230          { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
11231 echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
11232 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235   ac_check_lib_save_LIBS=$LIBS
11236 LIBS="-lxml2 $ac_xml_libs $LIBS"
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h.  */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h.  */
11243
11244 /* Override any GCC internal prototype to avoid an error.
11245    Use char because int might match the return type of a GCC
11246    builtin and then its argument prototype would still apply.  */
11247 #ifdef __cplusplus
11248 extern "C"
11249 #endif
11250 char xmlNewDocPI ();
11251 int
11252 main ()
11253 {
11254 return xmlNewDocPI ();
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (ac_try="$ac_link"
11261 case "(($ac_try" in
11262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263   *) ac_try_echo=$ac_try;;
11264 esac
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266   (eval "$ac_link") 2>conftest.er1
11267   ac_status=$?
11268   grep -v '^ *+' conftest.er1 >conftest.err
11269   rm -f conftest.er1
11270   cat conftest.err >&5
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } && {
11273          test -z "$ac_c_werror_flag" ||
11274          test ! -s conftest.err
11275        } && test -s conftest$ac_exeext &&
11276        $as_test_x conftest$ac_exeext; then
11277   ac_cv_lib_xml2_xmlNewDocPI=yes
11278 else
11279   echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11281
11282         ac_cv_lib_xml2_xmlNewDocPI=no
11283 fi
11284
11285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11286       conftest$ac_exeext conftest.$ac_ext
11287 LIBS=$ac_check_lib_save_LIBS
11288 fi
11289 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
11290 echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
11291 if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
11292
11293 cat >>confdefs.h <<\_ACEOF
11294 #define HAVE_XMLNEWDOCPI 1
11295 _ACEOF
11296
11297 fi
11298
11299
11300 fi
11301
11302 done
11303
11304 CPPFLAGS="$ac_save_CPPFLAGS"
11305 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then
11306   wine_notices="$wine_notices|libxml2 development files not found.
11307 Wine will be built without XML support. (msxml.dll)"
11308 fi
11309
11310
11311 if test "$PKG_CONFIG" != "false"
11312 then
11313     ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
11314     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
11315 else
11316     ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
11317     ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
11318 fi
11319 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
11320
11321
11322 for ac_header in libxslt/pattern.h libxslt/transform.h
11323 do
11324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330   cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h.  */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h.  */
11336 #ifdef HAVE_LIBXSLT_PATTERN_H
11337 # include <libxslt/pattern.h>
11338 #endif
11339
11340 #include <$ac_header>
11341 _ACEOF
11342 rm -f conftest.$ac_objext
11343 if { (ac_try="$ac_compile"
11344 case "(($ac_try" in
11345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346   *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349   (eval "$ac_compile") 2>conftest.er1
11350   ac_status=$?
11351   grep -v '^ *+' conftest.er1 >conftest.err
11352   rm -f conftest.er1
11353   cat conftest.err >&5
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); } && {
11356          test -z "$ac_c_werror_flag" ||
11357          test ! -s conftest.err
11358        } && test -s conftest.$ac_objext; then
11359   eval "$as_ac_Header=yes"
11360 else
11361   echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364         eval "$as_ac_Header=no"
11365 fi
11366
11367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368 fi
11369 ac_res=`eval echo '${'$as_ac_Header'}'`
11370                { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11373   cat >>confdefs.h <<_ACEOF
11374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11375 _ACEOF
11376  { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
11377 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
11378 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
11379   echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381   ac_check_lib_save_LIBS=$LIBS
11382 LIBS="-lxslt $ac_xslt_libs $LIBS"
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h.  */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h.  */
11389
11390 /* Override any GCC internal prototype to avoid an error.
11391    Use char because int might match the return type of a GCC
11392    builtin and then its argument prototype would still apply.  */
11393 #ifdef __cplusplus
11394 extern "C"
11395 #endif
11396 char xsltCompilePattern ();
11397 int
11398 main ()
11399 {
11400 return xsltCompilePattern ();
11401   ;
11402   return 0;
11403 }
11404 _ACEOF
11405 rm -f conftest.$ac_objext conftest$ac_exeext
11406 if { (ac_try="$ac_link"
11407 case "(($ac_try" in
11408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409   *) ac_try_echo=$ac_try;;
11410 esac
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412   (eval "$ac_link") 2>conftest.er1
11413   ac_status=$?
11414   grep -v '^ *+' conftest.er1 >conftest.err
11415   rm -f conftest.er1
11416   cat conftest.err >&5
11417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418   (exit $ac_status); } && {
11419          test -z "$ac_c_werror_flag" ||
11420          test ! -s conftest.err
11421        } && test -s conftest$ac_exeext &&
11422        $as_test_x conftest$ac_exeext; then
11423   ac_cv_lib_xslt_xsltCompilePattern=yes
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428         ac_cv_lib_xslt_xsltCompilePattern=no
11429 fi
11430
11431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11432       conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_lib_save_LIBS
11434 fi
11435 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11436 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
11437 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11438
11439 cat >>confdefs.h <<\_ACEOF
11440 #define HAVE_LIBXSLT 1
11441 _ACEOF
11442
11443              XSLTLIBS="$ac_xslt_libs"
11444              XSLTINCL="$ac_xslt_cflags"
11445 fi
11446
11447
11448 fi
11449
11450 done
11451
11452 CPPFLAGS="$ac_save_CPPFLAGS"
11453 if test "$ac_cv_lib_xslt_xsltCompilePattern" != "yes"; then
11454   wine_notices="$wine_notices|libxslt development files not found.
11455 Wine will be built without xslt support. (msxml.dll)"
11456 fi
11457
11458
11459 HALINCL=""
11460
11461 if test "$PKG_CONFIG" != "false"
11462 then
11463     ac_save_CPPFLAGS="$CPPFLAGS"
11464     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11465     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
11466     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11467
11468
11469 for ac_header in dbus/dbus.h hal/libhal.h
11470 do
11471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476   echo $ECHO_N "(cached) $ECHO_C" >&6
11477 fi
11478 ac_res=`eval echo '${'$as_ac_Header'}'`
11479                { echo "$as_me:$LINENO: result: $ac_res" >&5
11480 echo "${ECHO_T}$ac_res" >&6; }
11481 else
11482   # Is the header compilable?
11483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h.  */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h.  */
11491 $ac_includes_default
11492 #include <$ac_header>
11493 _ACEOF
11494 rm -f conftest.$ac_objext
11495 if { (ac_try="$ac_compile"
11496 case "(($ac_try" in
11497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498   *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501   (eval "$ac_compile") 2>conftest.er1
11502   ac_status=$?
11503   grep -v '^ *+' conftest.er1 >conftest.err
11504   rm -f conftest.er1
11505   cat conftest.err >&5
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); } && {
11508          test -z "$ac_c_werror_flag" ||
11509          test ! -s conftest.err
11510        } && test -s conftest.$ac_objext; then
11511   ac_header_compiler=yes
11512 else
11513   echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11515
11516         ac_header_compiler=no
11517 fi
11518
11519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11521 echo "${ECHO_T}$ac_header_compiler" >&6; }
11522
11523 # Is the header present?
11524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h.  */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h.  */
11532 #include <$ac_header>
11533 _ACEOF
11534 if { (ac_try="$ac_cpp conftest.$ac_ext"
11535 case "(($ac_try" in
11536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537   *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11541   ac_status=$?
11542   grep -v '^ *+' conftest.er1 >conftest.err
11543   rm -f conftest.er1
11544   cat conftest.err >&5
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); } >/dev/null && {
11547          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11548          test ! -s conftest.err
11549        }; then
11550   ac_header_preproc=yes
11551 else
11552   echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11554
11555   ac_header_preproc=no
11556 fi
11557
11558 rm -f conftest.err conftest.$ac_ext
11559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11560 echo "${ECHO_T}$ac_header_preproc" >&6; }
11561
11562 # So?  What about this header?
11563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11564   yes:no: )
11565     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11569     ac_header_preproc=yes
11570     ;;
11571   no:yes:* )
11572     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11574     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11575 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11576     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11578     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11579 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11582     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11584     ( cat <<\_ASBOX
11585 ## ------------------------------------ ##
11586 ## Report this to wine-devel@winehq.org ##
11587 ## ------------------------------------ ##
11588 _ASBOX
11589      ) | sed "s/^/$as_me: WARNING:     /" >&2
11590     ;;
11591 esac
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595   echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597   eval "$as_ac_Header=\$ac_header_preproc"
11598 fi
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600                { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11602
11603 fi
11604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11605   cat >>confdefs.h <<_ACEOF
11606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11607 _ACEOF
11608
11609 fi
11610
11611 done
11612
11613     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11614     then
11615         { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11616 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
11617 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
11618   echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620   ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
11622 cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628
11629 /* Override any GCC internal prototype to avoid an error.
11630    Use char because int might match the return type of a GCC
11631    builtin and then its argument prototype would still apply.  */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char dbus_connection_close ();
11636 int
11637 main ()
11638 {
11639 return dbus_connection_close ();
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (ac_try="$ac_link"
11646 case "(($ac_try" in
11647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648   *) ac_try_echo=$ac_try;;
11649 esac
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651   (eval "$ac_link") 2>conftest.er1
11652   ac_status=$?
11653   grep -v '^ *+' conftest.er1 >conftest.err
11654   rm -f conftest.er1
11655   cat conftest.err >&5
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); } && {
11658          test -z "$ac_c_werror_flag" ||
11659          test ! -s conftest.err
11660        } && test -s conftest$ac_exeext &&
11661        $as_test_x conftest$ac_exeext; then
11662   ac_cv_lib_dbus_1_dbus_connection_close=yes
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667         ac_cv_lib_dbus_1_dbus_connection_close=no
11668 fi
11669
11670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11671       conftest$ac_exeext conftest.$ac_ext
11672 LIBS=$ac_check_lib_save_LIBS
11673 fi
11674 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11675 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
11676 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
11677   { echo "$as_me:$LINENO: checking for -lhal" >&5
11678 echo $ECHO_N "checking for -lhal... $ECHO_C" >&6; }
11679 if test "${ac_cv_lib_soname_hal+set}" = set; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682   ac_check_soname_save_LIBS=$LIBS
11683 LIBS="-lhal $ac_hal_libs $LIBS"
11684   cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h.  */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h.  */
11690
11691 /* Override any GCC internal prototype to avoid an error.
11692    Use char because int might match the return type of a GCC
11693    builtin and then its argument prototype would still apply.  */
11694 #ifdef __cplusplus
11695 extern "C"
11696 #endif
11697 char libhal_ctx_new ();
11698 int
11699 main ()
11700 {
11701 return libhal_ctx_new ();
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (ac_try="$ac_link"
11708 case "(($ac_try" in
11709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710   *) ac_try_echo=$ac_try;;
11711 esac
11712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713   (eval "$ac_link") 2>conftest.er1
11714   ac_status=$?
11715   grep -v '^ *+' conftest.er1 >conftest.err
11716   rm -f conftest.er1
11717   cat conftest.err >&5
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); } && {
11720          test -z "$ac_c_werror_flag" ||
11721          test ! -s conftest.err
11722        } && test -s conftest$ac_exeext &&
11723        $as_test_x conftest$ac_exeext; then
11724   case "$LIBEXT" in
11725     dll) ;;
11726     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'` ;;
11727     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11728   esac
11729 else
11730   echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733
11734 fi
11735
11736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11737       conftest$ac_exeext conftest.$ac_ext
11738   LIBS=$ac_check_soname_save_LIBS
11739 fi
11740 if test "x$ac_cv_lib_soname_hal" = "x"; then
11741   { echo "$as_me:$LINENO: result: not found" >&5
11742 echo "${ECHO_T}not found" >&6; }
11743
11744 else
11745   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
11746 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
11747
11748 cat >>confdefs.h <<_ACEOF
11749 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11750 _ACEOF
11751
11752        HALINCL="$ac_hal_cflags"
11753 fi
11754
11755 fi
11756
11757     fi
11758     CPPFLAGS="$ac_save_CPPFLAGS"
11759 fi
11760 if test "x$ac_cv_lib_soname_hal" = "x"; then
11761   wine_notices="$wine_notices|libhal development files not found.
11762 Wine will be built without dynamic device support. (explorer.exe)"
11763 fi
11764
11765
11766 CURSESLIBS=""
11767 if test "$ac_cv_header_ncurses_h" = "yes"
11768 then
11769     { echo "$as_me:$LINENO: checking for -lncurses" >&5
11770 echo $ECHO_N "checking for -lncurses... $ECHO_C" >&6; }
11771 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
11772   echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774   ac_check_soname_save_LIBS=$LIBS
11775 LIBS="-lncurses  $LIBS"
11776   cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h.  */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h.  */
11782
11783 /* Override any GCC internal prototype to avoid an error.
11784    Use char because int might match the return type of a GCC
11785    builtin and then its argument prototype would still apply.  */
11786 #ifdef __cplusplus
11787 extern "C"
11788 #endif
11789 char waddch ();
11790 int
11791 main ()
11792 {
11793 return waddch ();
11794   ;
11795   return 0;
11796 }
11797 _ACEOF
11798 rm -f conftest.$ac_objext conftest$ac_exeext
11799 if { (ac_try="$ac_link"
11800 case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805   (eval "$ac_link") 2>conftest.er1
11806   ac_status=$?
11807   grep -v '^ *+' conftest.er1 >conftest.err
11808   rm -f conftest.er1
11809   cat conftest.err >&5
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); } && {
11812          test -z "$ac_c_werror_flag" ||
11813          test ! -s conftest.err
11814        } && test -s conftest$ac_exeext &&
11815        $as_test_x conftest$ac_exeext; then
11816   case "$LIBEXT" in
11817     dll) ;;
11818     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'` ;;
11819     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
11820   esac
11821 else
11822   echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11824
11825
11826 fi
11827
11828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11829       conftest$ac_exeext conftest.$ac_ext
11830   LIBS=$ac_check_soname_save_LIBS
11831 fi
11832 if test "x$ac_cv_lib_soname_ncurses" = "x"; then
11833   { echo "$as_me:$LINENO: result: not found" >&5
11834 echo "${ECHO_T}not found" >&6; }
11835
11836 else
11837   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
11838 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
11839
11840 cat >>confdefs.h <<_ACEOF
11841 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11842 _ACEOF
11843
11844        CURSESLIBS="-lncurses"
11845 fi
11846
11847 elif test "$ac_cv_header_curses_h" = "yes"
11848 then
11849     { echo "$as_me:$LINENO: checking for -lcurses" >&5
11850 echo $ECHO_N "checking for -lcurses... $ECHO_C" >&6; }
11851 if test "${ac_cv_lib_soname_curses+set}" = set; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854   ac_check_soname_save_LIBS=$LIBS
11855 LIBS="-lcurses  $LIBS"
11856   cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h.  */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h.  */
11862
11863 /* Override any GCC internal prototype to avoid an error.
11864    Use char because int might match the return type of a GCC
11865    builtin and then its argument prototype would still apply.  */
11866 #ifdef __cplusplus
11867 extern "C"
11868 #endif
11869 char waddch ();
11870 int
11871 main ()
11872 {
11873 return waddch ();
11874   ;
11875   return 0;
11876 }
11877 _ACEOF
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (ac_try="$ac_link"
11880 case "(($ac_try" in
11881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882   *) ac_try_echo=$ac_try;;
11883 esac
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885   (eval "$ac_link") 2>conftest.er1
11886   ac_status=$?
11887   grep -v '^ *+' conftest.er1 >conftest.err
11888   rm -f conftest.er1
11889   cat conftest.err >&5
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); } && {
11892          test -z "$ac_c_werror_flag" ||
11893          test ! -s conftest.err
11894        } && test -s conftest$ac_exeext &&
11895        $as_test_x conftest$ac_exeext; then
11896   case "$LIBEXT" in
11897     dll) ;;
11898     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'` ;;
11899     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11900   esac
11901 else
11902   echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905
11906 fi
11907
11908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11909       conftest$ac_exeext conftest.$ac_ext
11910   LIBS=$ac_check_soname_save_LIBS
11911 fi
11912 if test "x$ac_cv_lib_soname_curses" = "x"; then
11913   { echo "$as_me:$LINENO: result: not found" >&5
11914 echo "${ECHO_T}not found" >&6; }
11915
11916 else
11917   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
11918 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
11919
11920 cat >>confdefs.h <<_ACEOF
11921 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11922 _ACEOF
11923
11924        CURSESLIBS="-lcurses"
11925 fi
11926
11927 fi
11928 ac_save_LIBS="$LIBS"
11929 LIBS="$LIBS $CURSESLIBS"
11930
11931 for ac_func in mousemask
11932 do
11933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11937   echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939   cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h.  */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h.  */
11945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11947 #define $ac_func innocuous_$ac_func
11948
11949 /* System header to define __stub macros and hopefully few prototypes,
11950     which can conflict with char $ac_func (); below.
11951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11952     <limits.h> exists even on freestanding compilers.  */
11953
11954 #ifdef __STDC__
11955 # include <limits.h>
11956 #else
11957 # include <assert.h>
11958 #endif
11959
11960 #undef $ac_func
11961
11962 /* Override any GCC internal prototype to avoid an error.
11963    Use char because int might match the return type of a GCC
11964    builtin and then its argument prototype would still apply.  */
11965 #ifdef __cplusplus
11966 extern "C"
11967 #endif
11968 char $ac_func ();
11969 /* The GNU C library defines this for functions which it implements
11970     to always fail with ENOSYS.  Some functions are actually named
11971     something starting with __ and the normal name is an alias.  */
11972 #if defined __stub_$ac_func || defined __stub___$ac_func
11973 choke me
11974 #endif
11975
11976 int
11977 main ()
11978 {
11979 return $ac_func ();
11980   ;
11981   return 0;
11982 }
11983 _ACEOF
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (ac_try="$ac_link"
11986 case "(($ac_try" in
11987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988   *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991   (eval "$ac_link") 2>conftest.er1
11992   ac_status=$?
11993   grep -v '^ *+' conftest.er1 >conftest.err
11994   rm -f conftest.er1
11995   cat conftest.err >&5
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); } && {
11998          test -z "$ac_c_werror_flag" ||
11999          test ! -s conftest.err
12000        } && test -s conftest$ac_exeext &&
12001        $as_test_x conftest$ac_exeext; then
12002   eval "$as_ac_var=yes"
12003 else
12004   echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007         eval "$as_ac_var=no"
12008 fi
12009
12010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12011       conftest$ac_exeext conftest.$ac_ext
12012 fi
12013 ac_res=`eval echo '${'$as_ac_var'}'`
12014                { echo "$as_me:$LINENO: result: $ac_res" >&5
12015 echo "${ECHO_T}$ac_res" >&6; }
12016 if test `eval echo '${'$as_ac_var'}'` = yes; then
12017   cat >>confdefs.h <<_ACEOF
12018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12019 _ACEOF
12020
12021 fi
12022 done
12023
12024 LIBS="$ac_save_LIBS"
12025 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then
12026   wine_notices="$wine_notices|lib(n)curses development files not found.
12027 Wine will be built without (n)curses support. (wineconsole.exe)"
12028 fi
12029
12030
12031 # Extract the first word of "sane-config", so it can be a program name with args.
12032 set dummy sane-config; ac_word=$2
12033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12035 if test "${ac_cv_prog_sane_devel+set}" = set; then
12036   echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038   if test -n "$sane_devel"; then
12039   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
12040 else
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12043 do
12044   IFS=$as_save_IFS
12045   test -z "$as_dir" && as_dir=.
12046   for ac_exec_ext in '' $ac_executable_extensions; do
12047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12048     ac_cv_prog_sane_devel="sane-config"
12049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12050     break 2
12051   fi
12052 done
12053 done
12054 IFS=$as_save_IFS
12055
12056   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
12057 fi
12058 fi
12059 sane_devel=$ac_cv_prog_sane_devel
12060 if test -n "$sane_devel"; then
12061   { echo "$as_me:$LINENO: result: $sane_devel" >&5
12062 echo "${ECHO_T}$sane_devel" >&6; }
12063 else
12064   { echo "$as_me:$LINENO: result: no" >&5
12065 echo "${ECHO_T}no" >&6; }
12066 fi
12067
12068
12069 if test "$sane_devel" != "no"
12070 then
12071     ac_sane_incl="`$sane_devel --cflags`"
12072     ac_save_CPPFLAGS="$CPPFLAGS"
12073     CPPFLAGS="$CPPFLAGS $ac_sane_incl"
12074     if test "${ac_cv_header_sane_sane_h+set}" = set; then
12075   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
12076 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
12077 if test "${ac_cv_header_sane_sane_h+set}" = set; then
12078   echo $ECHO_N "(cached) $ECHO_C" >&6
12079 fi
12080 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12081 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
12082 else
12083   # Is the header compilable?
12084 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
12085 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092 $ac_includes_default
12093 #include <sane/sane.h>
12094 _ACEOF
12095 rm -f conftest.$ac_objext
12096 if { (ac_try="$ac_compile"
12097 case "(($ac_try" in
12098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099   *) ac_try_echo=$ac_try;;
12100 esac
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102   (eval "$ac_compile") 2>conftest.er1
12103   ac_status=$?
12104   grep -v '^ *+' conftest.er1 >conftest.err
12105   rm -f conftest.er1
12106   cat conftest.err >&5
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); } && {
12109          test -z "$ac_c_werror_flag" ||
12110          test ! -s conftest.err
12111        } && test -s conftest.$ac_objext; then
12112   ac_header_compiler=yes
12113 else
12114   echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12116
12117         ac_header_compiler=no
12118 fi
12119
12120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12122 echo "${ECHO_T}$ac_header_compiler" >&6; }
12123
12124 # Is the header present?
12125 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
12126 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h.  */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h.  */
12133 #include <sane/sane.h>
12134 _ACEOF
12135 if { (ac_try="$ac_cpp conftest.$ac_ext"
12136 case "(($ac_try" in
12137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138   *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12142   ac_status=$?
12143   grep -v '^ *+' conftest.er1 >conftest.err
12144   rm -f conftest.er1
12145   cat conftest.err >&5
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); } >/dev/null && {
12148          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12149          test ! -s conftest.err
12150        }; then
12151   ac_header_preproc=yes
12152 else
12153   echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12155
12156   ac_header_preproc=no
12157 fi
12158
12159 rm -f conftest.err conftest.$ac_ext
12160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12161 echo "${ECHO_T}$ac_header_preproc" >&6; }
12162
12163 # So?  What about this header?
12164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12165   yes:no: )
12166     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
12167 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12168     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
12169 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
12170     ac_header_preproc=yes
12171     ;;
12172   no:yes:* )
12173     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
12174 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
12175     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
12176 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
12177     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
12178 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
12179     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
12180 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12181     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
12182 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
12183     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
12184 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
12185     ( cat <<\_ASBOX
12186 ## ------------------------------------ ##
12187 ## Report this to wine-devel@winehq.org ##
12188 ## ------------------------------------ ##
12189 _ASBOX
12190      ) | sed "s/^/$as_me: WARNING:     /" >&2
12191     ;;
12192 esac
12193 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
12194 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
12195 if test "${ac_cv_header_sane_sane_h+set}" = set; then
12196   echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198   ac_cv_header_sane_sane_h=$ac_header_preproc
12199 fi
12200 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12201 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
12202
12203 fi
12204 if test $ac_cv_header_sane_sane_h = yes; then
12205   { echo "$as_me:$LINENO: checking for -lsane" >&5
12206 echo $ECHO_N "checking for -lsane... $ECHO_C" >&6; }
12207 if test "${ac_cv_lib_soname_sane+set}" = set; then
12208   echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210   ac_check_soname_save_LIBS=$LIBS
12211 LIBS="-lsane  $LIBS"
12212   cat >conftest.$ac_ext <<_ACEOF
12213 /* confdefs.h.  */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h.  */
12218
12219 /* Override any GCC internal prototype to avoid an error.
12220    Use char because int might match the return type of a GCC
12221    builtin and then its argument prototype would still apply.  */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 char sane_init ();
12226 int
12227 main ()
12228 {
12229 return sane_init ();
12230   ;
12231   return 0;
12232 }
12233 _ACEOF
12234 rm -f conftest.$ac_objext conftest$ac_exeext
12235 if { (ac_try="$ac_link"
12236 case "(($ac_try" in
12237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238   *) ac_try_echo=$ac_try;;
12239 esac
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241   (eval "$ac_link") 2>conftest.er1
12242   ac_status=$?
12243   grep -v '^ *+' conftest.er1 >conftest.err
12244   rm -f conftest.er1
12245   cat conftest.err >&5
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); } && {
12248          test -z "$ac_c_werror_flag" ||
12249          test ! -s conftest.err
12250        } && test -s conftest$ac_exeext &&
12251        $as_test_x conftest$ac_exeext; then
12252   case "$LIBEXT" in
12253     dll) ;;
12254     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'` ;;
12255     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
12256   esac
12257 else
12258   echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12260
12261
12262 fi
12263
12264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12265       conftest$ac_exeext conftest.$ac_ext
12266   LIBS=$ac_check_soname_save_LIBS
12267 fi
12268 if test "x$ac_cv_lib_soname_sane" = "x"; then
12269   { echo "$as_me:$LINENO: result: not found" >&5
12270 echo "${ECHO_T}not found" >&6; }
12271
12272 else
12273   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_sane" >&5
12274 echo "${ECHO_T}$ac_cv_lib_soname_sane" >&6; }
12275
12276 cat >>confdefs.h <<_ACEOF
12277 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
12278 _ACEOF
12279
12280        SANEINCL="$ac_sane_incl"
12281
12282 fi
12283
12284 fi
12285
12286
12287     CPPFLAGS="$ac_save_CPPFLAGS"
12288 fi
12289 if test "x$ac_cv_lib_soname_sane" = "x"; then
12290   wine_notices="$wine_notices|libsane development files not found.
12291 Wine will be built without scanner support. (sane.ds/twain_32.dll)"
12292 fi
12293
12294
12295 # Extract the first word of "gphoto2-config", so it can be a program name with args.
12296 set dummy gphoto2-config; ac_word=$2
12297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12299 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12300   echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302   if test -n "$gphoto2_devel"; then
12303   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12304 else
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12307 do
12308   IFS=$as_save_IFS
12309   test -z "$as_dir" && as_dir=.
12310   for ac_exec_ext in '' $ac_executable_extensions; do
12311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312     ac_cv_prog_gphoto2_devel="gphoto2-config"
12313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12314     break 2
12315   fi
12316 done
12317 done
12318 IFS=$as_save_IFS
12319
12320   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12321 fi
12322 fi
12323 gphoto2_devel=$ac_cv_prog_gphoto2_devel
12324 if test -n "$gphoto2_devel"; then
12325   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12326 echo "${ECHO_T}$gphoto2_devel" >&6; }
12327 else
12328   { echo "$as_me:$LINENO: result: no" >&5
12329 echo "${ECHO_T}no" >&6; }
12330 fi
12331
12332
12333 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12334 set dummy gphoto2-port-config; ac_word=$2
12335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12337 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340   if test -n "$gphoto2port_devel"; then
12341   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12342 else
12343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344 for as_dir in $PATH
12345 do
12346   IFS=$as_save_IFS
12347   test -z "$as_dir" && as_dir=.
12348   for ac_exec_ext in '' $ac_executable_extensions; do
12349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12350     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12352     break 2
12353   fi
12354 done
12355 done
12356 IFS=$as_save_IFS
12357
12358   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
12359 fi
12360 fi
12361 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12362 if test -n "$gphoto2port_devel"; then
12363   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12364 echo "${ECHO_T}$gphoto2port_devel" >&6; }
12365 else
12366   { echo "$as_me:$LINENO: result: no" >&5
12367 echo "${ECHO_T}no" >&6; }
12368 fi
12369
12370
12371 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12372 then
12373     ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12374     ac_gphoto2_libs=""
12375     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12376     do
12377       case "$i" in
12378         -L/usr/lib|-L/usr/lib64) ;;
12379         -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
12380       esac
12381     done
12382     ac_save_CPPFLAGS="$CPPFLAGS"
12383     CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
12384     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12385   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12386 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12387 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12388   echo $ECHO_N "(cached) $ECHO_C" >&6
12389 fi
12390 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12391 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12392 else
12393   # Is the header compilable?
12394 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12395 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h.  */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h.  */
12402 $ac_includes_default
12403 #include <gphoto2-camera.h>
12404 _ACEOF
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409   *) ac_try_echo=$ac_try;;
12410 esac
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412   (eval "$ac_compile") 2>conftest.er1
12413   ac_status=$?
12414   grep -v '^ *+' conftest.er1 >conftest.err
12415   rm -f conftest.er1
12416   cat conftest.err >&5
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } && {
12419          test -z "$ac_c_werror_flag" ||
12420          test ! -s conftest.err
12421        } && test -s conftest.$ac_objext; then
12422   ac_header_compiler=yes
12423 else
12424   echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12426
12427         ac_header_compiler=no
12428 fi
12429
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12432 echo "${ECHO_T}$ac_header_compiler" >&6; }
12433
12434 # Is the header present?
12435 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12436 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
12437 cat >conftest.$ac_ext <<_ACEOF
12438 /* confdefs.h.  */
12439 _ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h.  */
12443 #include <gphoto2-camera.h>
12444 _ACEOF
12445 if { (ac_try="$ac_cpp conftest.$ac_ext"
12446 case "(($ac_try" in
12447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448   *) ac_try_echo=$ac_try;;
12449 esac
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12452   ac_status=$?
12453   grep -v '^ *+' conftest.er1 >conftest.err
12454   rm -f conftest.er1
12455   cat conftest.err >&5
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); } >/dev/null && {
12458          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12459          test ! -s conftest.err
12460        }; then
12461   ac_header_preproc=yes
12462 else
12463   echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466   ac_header_preproc=no
12467 fi
12468
12469 rm -f conftest.err conftest.$ac_ext
12470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12471 echo "${ECHO_T}$ac_header_preproc" >&6; }
12472
12473 # So?  What about this header?
12474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12475   yes:no: )
12476     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12477 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12478     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12479 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12480     ac_header_preproc=yes
12481     ;;
12482   no:yes:* )
12483     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12484 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12485     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
12486 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
12487     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12488 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12489     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
12490 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12491     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12492 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12493     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12494 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
12495     ( cat <<\_ASBOX
12496 ## ------------------------------------ ##
12497 ## Report this to wine-devel@winehq.org ##
12498 ## ------------------------------------ ##
12499 _ASBOX
12500      ) | sed "s/^/$as_me: WARNING:     /" >&2
12501     ;;
12502 esac
12503 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12504 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12505 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12506   echo $ECHO_N "(cached) $ECHO_C" >&6
12507 else
12508   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
12509 fi
12510 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12511 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12512
12513 fi
12514 if test $ac_cv_header_gphoto2_camera_h = yes; then
12515   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12516 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
12517 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
12518   echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520   ac_check_lib_save_LIBS=$LIBS
12521 LIBS="-lgphoto2 $GPHOTO2LIBS $LIBS"
12522 cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h.  */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h.  */
12528
12529 /* Override any GCC internal prototype to avoid an error.
12530    Use char because int might match the return type of a GCC
12531    builtin and then its argument prototype would still apply.  */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char gp_camera_new ();
12536 int
12537 main ()
12538 {
12539 return gp_camera_new ();
12540   ;
12541   return 0;
12542 }
12543 _ACEOF
12544 rm -f conftest.$ac_objext conftest$ac_exeext
12545 if { (ac_try="$ac_link"
12546 case "(($ac_try" in
12547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548   *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551   (eval "$ac_link") 2>conftest.er1
12552   ac_status=$?
12553   grep -v '^ *+' conftest.er1 >conftest.err
12554   rm -f conftest.er1
12555   cat conftest.err >&5
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } && {
12558          test -z "$ac_c_werror_flag" ||
12559          test ! -s conftest.err
12560        } && test -s conftest$ac_exeext &&
12561        $as_test_x conftest$ac_exeext; then
12562   ac_cv_lib_gphoto2_gp_camera_new=yes
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567         ac_cv_lib_gphoto2_gp_camera_new=no
12568 fi
12569
12570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12571       conftest$ac_exeext conftest.$ac_ext
12572 LIBS=$ac_check_lib_save_LIBS
12573 fi
12574 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12575 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
12576 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
12577
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_GPHOTO2 1
12580 _ACEOF
12581
12582                                    GPHOTO2LIBS="$ac_gphoto2_libs"
12583
12584                                    GPHOTO2INCL="$ac_gphoto2_incl"
12585
12586 fi
12587
12588 fi
12589
12590
12591     CPPFLAGS="$ac_save_CPPFLAGS"
12592 fi
12593 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then
12594   wine_notices="$wine_notices|libgphoto2 development files not found.
12595 Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)"
12596 fi
12597
12598
12599
12600 RESOLVLIBS=""
12601
12602 if test "$ac_cv_header_resolv_h" = "yes"
12603 then
12604     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12605 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
12606 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
12607   echo $ECHO_N "(cached) $ECHO_C" >&6
12608 else
12609   ac_check_lib_save_LIBS=$LIBS
12610 LIBS="-lresolv  $LIBS"
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h.  */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h.  */
12617
12618 /* Override any GCC internal prototype to avoid an error.
12619    Use char because int might match the return type of a GCC
12620    builtin and then its argument prototype would still apply.  */
12621 #ifdef __cplusplus
12622 extern "C"
12623 #endif
12624 char res_query ();
12625 int
12626 main ()
12627 {
12628 return res_query ();
12629   ;
12630   return 0;
12631 }
12632 _ACEOF
12633 rm -f conftest.$ac_objext conftest$ac_exeext
12634 if { (ac_try="$ac_link"
12635 case "(($ac_try" in
12636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637   *) ac_try_echo=$ac_try;;
12638 esac
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640   (eval "$ac_link") 2>conftest.er1
12641   ac_status=$?
12642   grep -v '^ *+' conftest.er1 >conftest.err
12643   rm -f conftest.er1
12644   cat conftest.err >&5
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); } && {
12647          test -z "$ac_c_werror_flag" ||
12648          test ! -s conftest.err
12649        } && test -s conftest$ac_exeext &&
12650        $as_test_x conftest$ac_exeext; then
12651   ac_cv_lib_resolv_res_query=yes
12652 else
12653   echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656         ac_cv_lib_resolv_res_query=no
12657 fi
12658
12659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12660       conftest$ac_exeext conftest.$ac_ext
12661 LIBS=$ac_check_lib_save_LIBS
12662 fi
12663 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12664 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12665 if test $ac_cv_lib_resolv_res_query = yes; then
12666
12667 cat >>confdefs.h <<\_ACEOF
12668 #define HAVE_RESOLV 1
12669 _ACEOF
12670
12671          RESOLVLIBS="-lresolv"
12672 fi
12673
12674 fi
12675
12676 LCMSLIBS=""
12677
12678 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12679 then
12680     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12681 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12682 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12683   echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685   ac_check_lib_save_LIBS=$LIBS
12686 LIBS="-llcms  $LIBS"
12687 cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693
12694 /* Override any GCC internal prototype to avoid an error.
12695    Use char because int might match the return type of a GCC
12696    builtin and then its argument prototype would still apply.  */
12697 #ifdef __cplusplus
12698 extern "C"
12699 #endif
12700 char cmsOpenProfileFromFile ();
12701 int
12702 main ()
12703 {
12704 return cmsOpenProfileFromFile ();
12705   ;
12706   return 0;
12707 }
12708 _ACEOF
12709 rm -f conftest.$ac_objext conftest$ac_exeext
12710 if { (ac_try="$ac_link"
12711 case "(($ac_try" in
12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713   *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716   (eval "$ac_link") 2>conftest.er1
12717   ac_status=$?
12718   grep -v '^ *+' conftest.er1 >conftest.err
12719   rm -f conftest.er1
12720   cat conftest.err >&5
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); } && {
12723          test -z "$ac_c_werror_flag" ||
12724          test ! -s conftest.err
12725        } && test -s conftest$ac_exeext &&
12726        $as_test_x conftest$ac_exeext; then
12727   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12728 else
12729   echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
12733 fi
12734
12735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12736       conftest$ac_exeext conftest.$ac_ext
12737 LIBS=$ac_check_lib_save_LIBS
12738 fi
12739 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12740 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12741 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12742
12743 cat >>confdefs.h <<\_ACEOF
12744 #define HAVE_LCMS 1
12745 _ACEOF
12746
12747          LCMSLIBS="-llcms"
12748 fi
12749
12750 fi
12751 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then
12752   wine_notices="$wine_notices|liblcms development files not found.
12753 Wine will be built without Color Management support. (mscms.dll)"
12754 fi
12755
12756
12757 LDAPLIBS=""
12758
12759 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12760 then
12761     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12762 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12763 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12764   echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766   ac_check_lib_save_LIBS=$LIBS
12767 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12768 cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h.  */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h.  */
12774
12775 /* Override any GCC internal prototype to avoid an error.
12776    Use char because int might match the return type of a GCC
12777    builtin and then its argument prototype would still apply.  */
12778 #ifdef __cplusplus
12779 extern "C"
12780 #endif
12781 char ldap_initialize ();
12782 int
12783 main ()
12784 {
12785 return ldap_initialize ();
12786   ;
12787   return 0;
12788 }
12789 _ACEOF
12790 rm -f conftest.$ac_objext conftest$ac_exeext
12791 if { (ac_try="$ac_link"
12792 case "(($ac_try" in
12793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794   *) ac_try_echo=$ac_try;;
12795 esac
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797   (eval "$ac_link") 2>conftest.er1
12798   ac_status=$?
12799   grep -v '^ *+' conftest.er1 >conftest.err
12800   rm -f conftest.er1
12801   cat conftest.err >&5
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); } && {
12804          test -z "$ac_c_werror_flag" ||
12805          test ! -s conftest.err
12806        } && test -s conftest$ac_exeext &&
12807        $as_test_x conftest$ac_exeext; then
12808   ac_cv_lib_ldap_r_ldap_initialize=yes
12809 else
12810   echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813         ac_cv_lib_ldap_r_ldap_initialize=no
12814 fi
12815
12816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12817       conftest$ac_exeext conftest.$ac_ext
12818 LIBS=$ac_check_lib_save_LIBS
12819 fi
12820 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12821 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12822 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12823   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12824 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12825 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12826   echo $ECHO_N "(cached) $ECHO_C" >&6
12827 else
12828   ac_check_lib_save_LIBS=$LIBS
12829 LIBS="-llber $LIBPTHREAD $LIBS"
12830 cat >conftest.$ac_ext <<_ACEOF
12831 /* confdefs.h.  */
12832 _ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h.  */
12836
12837 /* Override any GCC internal prototype to avoid an error.
12838    Use char because int might match the return type of a GCC
12839    builtin and then its argument prototype would still apply.  */
12840 #ifdef __cplusplus
12841 extern "C"
12842 #endif
12843 char ber_init ();
12844 int
12845 main ()
12846 {
12847 return ber_init ();
12848   ;
12849   return 0;
12850 }
12851 _ACEOF
12852 rm -f conftest.$ac_objext conftest$ac_exeext
12853 if { (ac_try="$ac_link"
12854 case "(($ac_try" in
12855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856   *) ac_try_echo=$ac_try;;
12857 esac
12858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12859   (eval "$ac_link") 2>conftest.er1
12860   ac_status=$?
12861   grep -v '^ *+' conftest.er1 >conftest.err
12862   rm -f conftest.er1
12863   cat conftest.err >&5
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); } && {
12866          test -z "$ac_c_werror_flag" ||
12867          test ! -s conftest.err
12868        } && test -s conftest$ac_exeext &&
12869        $as_test_x conftest$ac_exeext; then
12870   ac_cv_lib_lber_ber_init=yes
12871 else
12872   echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12874
12875         ac_cv_lib_lber_ber_init=no
12876 fi
12877
12878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12879       conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12881 fi
12882 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12883 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12884 if test $ac_cv_lib_lber_ber_init = yes; then
12885
12886 cat >>confdefs.h <<\_ACEOF
12887 #define HAVE_LDAP 1
12888 _ACEOF
12889
12890              LDAPLIBS="-lldap_r -llber"
12891 fi
12892
12893 fi
12894
12895     ac_wine_check_funcs_save_LIBS="$LIBS"
12896 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12897
12898
12899
12900
12901 for ac_func in \
12902         ldap_count_references \
12903         ldap_first_reference \
12904         ldap_next_reference \
12905         ldap_parse_reference
12906 do
12907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12911   echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913   cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h.  */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h.  */
12919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12921 #define $ac_func innocuous_$ac_func
12922
12923 /* System header to define __stub macros and hopefully few prototypes,
12924     which can conflict with char $ac_func (); below.
12925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12926     <limits.h> exists even on freestanding compilers.  */
12927
12928 #ifdef __STDC__
12929 # include <limits.h>
12930 #else
12931 # include <assert.h>
12932 #endif
12933
12934 #undef $ac_func
12935
12936 /* Override any GCC internal prototype to avoid an error.
12937    Use char because int might match the return type of a GCC
12938    builtin and then its argument prototype would still apply.  */
12939 #ifdef __cplusplus
12940 extern "C"
12941 #endif
12942 char $ac_func ();
12943 /* The GNU C library defines this for functions which it implements
12944     to always fail with ENOSYS.  Some functions are actually named
12945     something starting with __ and the normal name is an alias.  */
12946 #if defined __stub_$ac_func || defined __stub___$ac_func
12947 choke me
12948 #endif
12949
12950 int
12951 main ()
12952 {
12953 return $ac_func ();
12954   ;
12955   return 0;
12956 }
12957 _ACEOF
12958 rm -f conftest.$ac_objext conftest$ac_exeext
12959 if { (ac_try="$ac_link"
12960 case "(($ac_try" in
12961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962   *) ac_try_echo=$ac_try;;
12963 esac
12964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965   (eval "$ac_link") 2>conftest.er1
12966   ac_status=$?
12967   grep -v '^ *+' conftest.er1 >conftest.err
12968   rm -f conftest.er1
12969   cat conftest.err >&5
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); } && {
12972          test -z "$ac_c_werror_flag" ||
12973          test ! -s conftest.err
12974        } && test -s conftest$ac_exeext &&
12975        $as_test_x conftest$ac_exeext; then
12976   eval "$as_ac_var=yes"
12977 else
12978   echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12980
12981         eval "$as_ac_var=no"
12982 fi
12983
12984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12985       conftest$ac_exeext conftest.$ac_ext
12986 fi
12987 ac_res=`eval echo '${'$as_ac_var'}'`
12988                { echo "$as_me:$LINENO: result: $ac_res" >&5
12989 echo "${ECHO_T}$ac_res" >&6; }
12990 if test `eval echo '${'$as_ac_var'}'` = yes; then
12991   cat >>confdefs.h <<_ACEOF
12992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12993 _ACEOF
12994
12995 fi
12996 done
12997
12998 LIBS="$ac_wine_check_funcs_save_LIBS"
12999 fi
13000 if test "x$LDAPLIBS" = "x"; then
13001   wine_notices="$wine_notices|libldap (OpenLDAP) development files not found.
13002 Wine will be built without LDAP support. (wldap32.dll)"
13003 fi
13004
13005
13006 for ac_prog in freetype-config freetype2-config
13007 do
13008   # Extract the first word of "$ac_prog", so it can be a program name with args.
13009 set dummy $ac_prog; ac_word=$2
13010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13012 if test "${ac_cv_prog_ft_devel+set}" = set; then
13013   echo $ECHO_N "(cached) $ECHO_C" >&6
13014 else
13015   if test -n "$ft_devel"; then
13016   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
13017 else
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13020 do
13021   IFS=$as_save_IFS
13022   test -z "$as_dir" && as_dir=.
13023   for ac_exec_ext in '' $ac_executable_extensions; do
13024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13025     ac_cv_prog_ft_devel="$ac_prog"
13026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13027     break 2
13028   fi
13029 done
13030 done
13031 IFS=$as_save_IFS
13032
13033 fi
13034 fi
13035 ft_devel=$ac_cv_prog_ft_devel
13036 if test -n "$ft_devel"; then
13037   { echo "$as_me:$LINENO: result: $ft_devel" >&5
13038 echo "${ECHO_T}$ft_devel" >&6; }
13039 else
13040   { echo "$as_me:$LINENO: result: no" >&5
13041 echo "${ECHO_T}no" >&6; }
13042 fi
13043
13044
13045   test -n "$ft_devel" && break
13046 done
13047 test -n "$ft_devel" || ft_devel="false"
13048
13049 if test "$ft_devel" != "false"
13050 then
13051     ac_freetype_libs=`$ft_devel --libs`
13052     ac_freetype_incl=`$ft_devel --cflags`
13053     { echo "$as_me:$LINENO: checking for -lfreetype" >&5
13054 echo $ECHO_N "checking for -lfreetype... $ECHO_C" >&6; }
13055 if test "${ac_cv_lib_soname_freetype+set}" = set; then
13056   echo $ECHO_N "(cached) $ECHO_C" >&6
13057 else
13058   ac_check_soname_save_LIBS=$LIBS
13059 LIBS="-lfreetype $ac_freetype_libs $LIBS"
13060   cat >conftest.$ac_ext <<_ACEOF
13061 /* confdefs.h.  */
13062 _ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h.  */
13066
13067 /* Override any GCC internal prototype to avoid an error.
13068    Use char because int might match the return type of a GCC
13069    builtin and then its argument prototype would still apply.  */
13070 #ifdef __cplusplus
13071 extern "C"
13072 #endif
13073 char FT_Init_FreeType ();
13074 int
13075 main ()
13076 {
13077 return FT_Init_FreeType ();
13078   ;
13079   return 0;
13080 }
13081 _ACEOF
13082 rm -f conftest.$ac_objext conftest$ac_exeext
13083 if { (ac_try="$ac_link"
13084 case "(($ac_try" in
13085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086   *) ac_try_echo=$ac_try;;
13087 esac
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089   (eval "$ac_link") 2>conftest.er1
13090   ac_status=$?
13091   grep -v '^ *+' conftest.er1 >conftest.err
13092   rm -f conftest.er1
13093   cat conftest.err >&5
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); } && {
13096          test -z "$ac_c_werror_flag" ||
13097          test ! -s conftest.err
13098        } && test -s conftest$ac_exeext &&
13099        $as_test_x conftest$ac_exeext; then
13100   case "$LIBEXT" in
13101     dll) ;;
13102     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'` ;;
13103     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
13104   esac
13105 else
13106   echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13108
13109
13110 fi
13111
13112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13113       conftest$ac_exeext conftest.$ac_ext
13114   LIBS=$ac_check_soname_save_LIBS
13115 fi
13116 if test "x$ac_cv_lib_soname_freetype" = "x"; then
13117   { echo "$as_me:$LINENO: result: not found" >&5
13118 echo "${ECHO_T}not found" >&6; }
13119        ft_lib=no
13120 else
13121   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
13122 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
13123
13124 cat >>confdefs.h <<_ACEOF
13125 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
13126 _ACEOF
13127
13128        ft_lib=yes
13129 fi
13130
13131     if test "$ft_lib" = "yes"
13132     then
13133         ac_save_CPPFLAGS="$CPPFLAGS"
13134         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147 for ac_header in ft2build.h \
13148                          freetype/freetype.h \
13149                          freetype/ftglyph.h \
13150                          freetype/fttypes.h \
13151                          freetype/tttables.h \
13152                          freetype/ftnames.h \
13153                          freetype/ftsnames.h \
13154                          freetype/ttnameid.h \
13155                          freetype/ftoutln.h \
13156                          freetype/ftwinfnt.h \
13157                          freetype/ftmodapi.h \
13158                          freetype/internal/sfnt.h
13159 do
13160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h.  */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h.  */
13172 #if HAVE_FT2BUILD_H
13173                           #include <ft2build.h>
13174                           #endif
13175
13176 #include <$ac_header>
13177 _ACEOF
13178 rm -f conftest.$ac_objext
13179 if { (ac_try="$ac_compile"
13180 case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185   (eval "$ac_compile") 2>conftest.er1
13186   ac_status=$?
13187   grep -v '^ *+' conftest.er1 >conftest.err
13188   rm -f conftest.er1
13189   cat conftest.err >&5
13190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); } && {
13192          test -z "$ac_c_werror_flag" ||
13193          test ! -s conftest.err
13194        } && test -s conftest.$ac_objext; then
13195   eval "$as_ac_Header=yes"
13196 else
13197   echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200         eval "$as_ac_Header=no"
13201 fi
13202
13203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13204 fi
13205 ac_res=`eval echo '${'$as_ac_Header'}'`
13206                { echo "$as_me:$LINENO: result: $ac_res" >&5
13207 echo "${ECHO_T}$ac_res" >&6; }
13208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13209   cat >>confdefs.h <<_ACEOF
13210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13211 _ACEOF
13212
13213 fi
13214
13215 done
13216
13217         cat >conftest.$ac_ext <<_ACEOF
13218 /* confdefs.h.  */
13219 _ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h.  */
13223 #include <ft2build.h>
13224                     #include <freetype/fttrigon.h>
13225 _ACEOF
13226 if { (ac_try="$ac_cpp conftest.$ac_ext"
13227 case "(($ac_try" in
13228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229   *) ac_try_echo=$ac_try;;
13230 esac
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13233   ac_status=$?
13234   grep -v '^ *+' conftest.er1 >conftest.err
13235   rm -f conftest.er1
13236   cat conftest.err >&5
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); } >/dev/null && {
13239          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13240          test ! -s conftest.err
13241        }; then
13242
13243 cat >>confdefs.h <<\_ACEOF
13244 #define HAVE_FREETYPE_FTTRIGON_H 1
13245 _ACEOF
13246
13247                     wine_cv_fttrigon=yes
13248 else
13249   echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252   wine_cv_fttrigon=no
13253 fi
13254
13255 rm -f conftest.err conftest.$ac_ext
13256         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13257 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
13258 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
13259   echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261   cat >conftest.$ac_ext <<_ACEOF
13262 /* confdefs.h.  */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h.  */
13267 #include <freetype/ftmodapi.h>
13268
13269 typedef FT_TrueTypeEngineType ac__type_new_;
13270 int
13271 main ()
13272 {
13273 if ((ac__type_new_ *) 0)
13274   return 0;
13275 if (sizeof (ac__type_new_))
13276   return 0;
13277   ;
13278   return 0;
13279 }
13280 _ACEOF
13281 rm -f conftest.$ac_objext
13282 if { (ac_try="$ac_compile"
13283 case "(($ac_try" in
13284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285   *) ac_try_echo=$ac_try;;
13286 esac
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288   (eval "$ac_compile") 2>conftest.er1
13289   ac_status=$?
13290   grep -v '^ *+' conftest.er1 >conftest.err
13291   rm -f conftest.er1
13292   cat conftest.err >&5
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); } && {
13295          test -z "$ac_c_werror_flag" ||
13296          test ! -s conftest.err
13297        } && test -s conftest.$ac_objext; then
13298   ac_cv_type_FT_TrueTypeEngineType=yes
13299 else
13300   echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13302
13303         ac_cv_type_FT_TrueTypeEngineType=no
13304 fi
13305
13306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13307 fi
13308 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13309 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
13310 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13311
13312 cat >>confdefs.h <<_ACEOF
13313 #define HAVE_FT_TRUETYPEENGINETYPE 1
13314 _ACEOF
13315
13316
13317 fi
13318
13319         ac_save_CFLAGS="$CFLAGS"
13320         CFLAGS="$CFLAGS $ac_freetype_libs"
13321
13322 for ac_func in FT_Load_Sfnt_Table
13323 do
13324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13328   echo $ECHO_N "(cached) $ECHO_C" >&6
13329 else
13330   cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h.  */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h.  */
13336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13338 #define $ac_func innocuous_$ac_func
13339
13340 /* System header to define __stub macros and hopefully few prototypes,
13341     which can conflict with char $ac_func (); below.
13342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13343     <limits.h> exists even on freestanding compilers.  */
13344
13345 #ifdef __STDC__
13346 # include <limits.h>
13347 #else
13348 # include <assert.h>
13349 #endif
13350
13351 #undef $ac_func
13352
13353 /* Override any GCC internal prototype to avoid an error.
13354    Use char because int might match the return type of a GCC
13355    builtin and then its argument prototype would still apply.  */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 char $ac_func ();
13360 /* The GNU C library defines this for functions which it implements
13361     to always fail with ENOSYS.  Some functions are actually named
13362     something starting with __ and the normal name is an alias.  */
13363 #if defined __stub_$ac_func || defined __stub___$ac_func
13364 choke me
13365 #endif
13366
13367 int
13368 main ()
13369 {
13370 return $ac_func ();
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 rm -f conftest.$ac_objext conftest$ac_exeext
13376 if { (ac_try="$ac_link"
13377 case "(($ac_try" in
13378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379   *) ac_try_echo=$ac_try;;
13380 esac
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382   (eval "$ac_link") 2>conftest.er1
13383   ac_status=$?
13384   grep -v '^ *+' conftest.er1 >conftest.err
13385   rm -f conftest.er1
13386   cat conftest.err >&5
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); } && {
13389          test -z "$ac_c_werror_flag" ||
13390          test ! -s conftest.err
13391        } && test -s conftest$ac_exeext &&
13392        $as_test_x conftest$ac_exeext; then
13393   eval "$as_ac_var=yes"
13394 else
13395   echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13397
13398         eval "$as_ac_var=no"
13399 fi
13400
13401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13402       conftest$ac_exeext conftest.$ac_ext
13403 fi
13404 ac_res=`eval echo '${'$as_ac_var'}'`
13405                { echo "$as_me:$LINENO: result: $ac_res" >&5
13406 echo "${ECHO_T}$ac_res" >&6; }
13407 if test `eval echo '${'$as_ac_var'}'` = yes; then
13408   cat >>confdefs.h <<_ACEOF
13409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13410 _ACEOF
13411
13412 fi
13413 done
13414
13415         CFLAGS="$ac_save_CFLAGS"
13416         CPPFLAGS="$ac_save_CPPFLAGS"
13417                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
13418         then
13419
13420 cat >>confdefs.h <<\_ACEOF
13421 #define HAVE_FREETYPE 1
13422 _ACEOF
13423
13424             FREETYPELIBS="$ac_freetype_libs"
13425
13426             FREETYPEINCL="$ac_freetype_incl"
13427
13428         fi
13429     fi
13430 fi
13431
13432 if test "$FONTFORGE" = "false"
13433 then
13434     wine_warnings="$wine_warnings|FontForge is missing.
13435 Fonts will not be built. Dialog text may be invisible or unaligned."
13436 elif test "x$FREETYPELIBS" = "x"
13437 then
13438     wine_warnings="$wine_warnings|FreeType development files not found.
13439 Fonts will not be built. Dialog text may be invisible or unaligned."
13440 else
13441   FONTSSUBDIRS="fonts"
13442
13443 fi
13444
13445 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13446 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
13447 if test "${ac_cv_c_ppdev+set}" = set; then
13448   echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450   cat >conftest.$ac_ext <<_ACEOF
13451 /* confdefs.h.  */
13452 _ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h.  */
13456 #include <linux/ppdev.h>
13457 int
13458 main ()
13459 {
13460 ioctl (1,PPCLAIM,0)
13461   ;
13462   return 0;
13463 }
13464 _ACEOF
13465 rm -f conftest.$ac_objext
13466 if { (ac_try="$ac_compile"
13467 case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_compile") 2>conftest.er1
13473   ac_status=$?
13474   grep -v '^ *+' conftest.er1 >conftest.err
13475   rm -f conftest.er1
13476   cat conftest.err >&5
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } && {
13479          test -z "$ac_c_werror_flag" ||
13480          test ! -s conftest.err
13481        } && test -s conftest.$ac_objext; then
13482   ac_cv_c_ppdev="yes"
13483 else
13484   echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13486
13487         ac_cv_c_ppdev="no"
13488 fi
13489
13490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491 fi
13492 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13493 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13494 if test "$ac_cv_c_ppdev" = "yes"
13495 then
13496
13497 cat >>confdefs.h <<\_ACEOF
13498 #define HAVE_PPDEV 1
13499 _ACEOF
13500
13501 fi
13502
13503 { echo "$as_me:$LINENO: checking for va_copy" >&5
13504 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13505 if test "${ac_cv_c_va_copy+set}" = set; then
13506   echo $ECHO_N "(cached) $ECHO_C" >&6
13507 else
13508   cat >conftest.$ac_ext <<_ACEOF
13509 /* confdefs.h.  */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h.  */
13514 #include <stdarg.h>
13515 int
13516 main ()
13517 {
13518 va_list ap1, ap2; va_copy(ap1,ap2);
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 rm -f conftest.$ac_objext conftest$ac_exeext
13524 if { (ac_try="$ac_link"
13525 case "(($ac_try" in
13526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13527   *) ac_try_echo=$ac_try;;
13528 esac
13529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13530   (eval "$ac_link") 2>conftest.er1
13531   ac_status=$?
13532   grep -v '^ *+' conftest.er1 >conftest.err
13533   rm -f conftest.er1
13534   cat conftest.err >&5
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); } && {
13537          test -z "$ac_c_werror_flag" ||
13538          test ! -s conftest.err
13539        } && test -s conftest$ac_exeext &&
13540        $as_test_x conftest$ac_exeext; then
13541   ac_cv_c_va_copy="yes"
13542 else
13543   echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13545
13546         ac_cv_c_va_copy="no"
13547 fi
13548
13549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13550       conftest$ac_exeext conftest.$ac_ext
13551
13552 fi
13553 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13554 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13555 if test "$ac_cv_c_va_copy" = "yes"
13556 then
13557
13558 cat >>confdefs.h <<\_ACEOF
13559 #define HAVE_VA_COPY 1
13560 _ACEOF
13561
13562 fi
13563 { echo "$as_me:$LINENO: checking for __va_copy" >&5
13564 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13565 if test "${ac_cv_c___va_copy+set}" = set; then
13566   echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568   cat >conftest.$ac_ext <<_ACEOF
13569 /* confdefs.h.  */
13570 _ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h.  */
13574 #include <stdarg.h>
13575 int
13576 main ()
13577 {
13578 va_list ap1, ap2; __va_copy(ap1,ap2);
13579   ;
13580   return 0;
13581 }
13582 _ACEOF
13583 rm -f conftest.$ac_objext conftest$ac_exeext
13584 if { (ac_try="$ac_link"
13585 case "(($ac_try" in
13586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587   *) ac_try_echo=$ac_try;;
13588 esac
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590   (eval "$ac_link") 2>conftest.er1
13591   ac_status=$?
13592   grep -v '^ *+' conftest.er1 >conftest.err
13593   rm -f conftest.er1
13594   cat conftest.err >&5
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); } && {
13597          test -z "$ac_c_werror_flag" ||
13598          test ! -s conftest.err
13599        } && test -s conftest$ac_exeext &&
13600        $as_test_x conftest$ac_exeext; then
13601   ac_cv_c___va_copy="yes"
13602 else
13603   echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13605
13606         ac_cv_c___va_copy="no"
13607 fi
13608
13609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13610       conftest$ac_exeext conftest.$ac_ext
13611
13612 fi
13613 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13614 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13615 if test "$ac_cv_c___va_copy" = "yes"
13616 then
13617
13618 cat >>confdefs.h <<\_ACEOF
13619 #define HAVE___VA_COPY 1
13620 _ACEOF
13621
13622 fi
13623
13624 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13625 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13626 if test "${ac_cv_c_sigsetjmp+set}" = set; then
13627   echo $ECHO_N "(cached) $ECHO_C" >&6
13628 else
13629   cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h.  */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h.  */
13635 #include <setjmp.h>
13636 int
13637 main ()
13638 {
13639 sigjmp_buf buf;
13640     sigsetjmp( buf, 1 );
13641     siglongjmp( buf, 1 );
13642   ;
13643   return 0;
13644 }
13645 _ACEOF
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (ac_try="$ac_link"
13648 case "(($ac_try" in
13649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650   *) ac_try_echo=$ac_try;;
13651 esac
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653   (eval "$ac_link") 2>conftest.er1
13654   ac_status=$?
13655   grep -v '^ *+' conftest.er1 >conftest.err
13656   rm -f conftest.er1
13657   cat conftest.err >&5
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); } && {
13660          test -z "$ac_c_werror_flag" ||
13661          test ! -s conftest.err
13662        } && test -s conftest$ac_exeext &&
13663        $as_test_x conftest$ac_exeext; then
13664   ac_cv_c_sigsetjmp="yes"
13665 else
13666   echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13668
13669         ac_cv_c_sigsetjmp="no"
13670 fi
13671
13672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13673       conftest$ac_exeext conftest.$ac_ext
13674
13675 fi
13676 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13677 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13678 if test "$ac_cv_c_sigsetjmp" = "yes"
13679 then
13680
13681 cat >>confdefs.h <<\_ACEOF
13682 #define HAVE_SIGSETJMP 1
13683 _ACEOF
13684
13685 fi
13686
13687 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13688 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13689 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13690   echo $ECHO_N "(cached) $ECHO_C" >&6
13691 else
13692   cat >conftest.$ac_ext <<_ACEOF
13693 /* confdefs.h.  */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h.  */
13698 #define _GNU_SOURCE
13699 #include <pthread.h>
13700
13701 typedef pthread_rwlock_t ac__type_new_;
13702 int
13703 main ()
13704 {
13705 if ((ac__type_new_ *) 0)
13706   return 0;
13707 if (sizeof (ac__type_new_))
13708   return 0;
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (ac_try="$ac_compile"
13715 case "(($ac_try" in
13716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717   *) ac_try_echo=$ac_try;;
13718 esac
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720   (eval "$ac_compile") 2>conftest.er1
13721   ac_status=$?
13722   grep -v '^ *+' conftest.er1 >conftest.err
13723   rm -f conftest.er1
13724   cat conftest.err >&5
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } && {
13727          test -z "$ac_c_werror_flag" ||
13728          test ! -s conftest.err
13729        } && test -s conftest.$ac_objext; then
13730   ac_cv_type_pthread_rwlock_t=yes
13731 else
13732   echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13734
13735         ac_cv_type_pthread_rwlock_t=no
13736 fi
13737
13738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13739 fi
13740 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13741 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
13742 if test $ac_cv_type_pthread_rwlock_t = yes; then
13743
13744 cat >>confdefs.h <<_ACEOF
13745 #define HAVE_PTHREAD_RWLOCK_T 1
13746 _ACEOF
13747
13748
13749 fi
13750 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13751 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
13752 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13753   echo $ECHO_N "(cached) $ECHO_C" >&6
13754 else
13755   cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h.  */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h.  */
13761 #define _GNU_SOURCE
13762 #include <pthread.h>
13763
13764 typedef pthread_rwlockattr_t ac__type_new_;
13765 int
13766 main ()
13767 {
13768 if ((ac__type_new_ *) 0)
13769   return 0;
13770 if (sizeof (ac__type_new_))
13771   return 0;
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext
13777 if { (ac_try="$ac_compile"
13778 case "(($ac_try" in
13779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780   *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783   (eval "$ac_compile") 2>conftest.er1
13784   ac_status=$?
13785   grep -v '^ *+' conftest.er1 >conftest.err
13786   rm -f conftest.er1
13787   cat conftest.err >&5
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); } && {
13790          test -z "$ac_c_werror_flag" ||
13791          test ! -s conftest.err
13792        } && test -s conftest.$ac_objext; then
13793   ac_cv_type_pthread_rwlockattr_t=yes
13794 else
13795   echo "$as_me: failed program was:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13797
13798         ac_cv_type_pthread_rwlockattr_t=no
13799 fi
13800
13801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802 fi
13803 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13804 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
13805 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
13806
13807 cat >>confdefs.h <<_ACEOF
13808 #define HAVE_PTHREAD_RWLOCKATTR_T 1
13809 _ACEOF
13810
13811
13812 fi
13813
13814
13815 ac_wine_check_funcs_save_LIBS="$LIBS"
13816 LIBS="$LIBS $LIBPTHREAD"
13817
13818
13819
13820
13821 for ac_func in \
13822         pthread_attr_get_np \
13823         pthread_getattr_np \
13824         pthread_get_stackaddr_np \
13825         pthread_get_stacksize_np
13826 do
13827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13831   echo $ECHO_N "(cached) $ECHO_C" >&6
13832 else
13833   cat >conftest.$ac_ext <<_ACEOF
13834 /* confdefs.h.  */
13835 _ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h.  */
13839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13841 #define $ac_func innocuous_$ac_func
13842
13843 /* System header to define __stub macros and hopefully few prototypes,
13844     which can conflict with char $ac_func (); below.
13845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13846     <limits.h> exists even on freestanding compilers.  */
13847
13848 #ifdef __STDC__
13849 # include <limits.h>
13850 #else
13851 # include <assert.h>
13852 #endif
13853
13854 #undef $ac_func
13855
13856 /* Override any GCC internal prototype to avoid an error.
13857    Use char because int might match the return type of a GCC
13858    builtin and then its argument prototype would still apply.  */
13859 #ifdef __cplusplus
13860 extern "C"
13861 #endif
13862 char $ac_func ();
13863 /* The GNU C library defines this for functions which it implements
13864     to always fail with ENOSYS.  Some functions are actually named
13865     something starting with __ and the normal name is an alias.  */
13866 #if defined __stub_$ac_func || defined __stub___$ac_func
13867 choke me
13868 #endif
13869
13870 int
13871 main ()
13872 {
13873 return $ac_func ();
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest.$ac_objext conftest$ac_exeext
13879 if { (ac_try="$ac_link"
13880 case "(($ac_try" in
13881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882   *) ac_try_echo=$ac_try;;
13883 esac
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885   (eval "$ac_link") 2>conftest.er1
13886   ac_status=$?
13887   grep -v '^ *+' conftest.er1 >conftest.err
13888   rm -f conftest.er1
13889   cat conftest.err >&5
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); } && {
13892          test -z "$ac_c_werror_flag" ||
13893          test ! -s conftest.err
13894        } && test -s conftest$ac_exeext &&
13895        $as_test_x conftest$ac_exeext; then
13896   eval "$as_ac_var=yes"
13897 else
13898   echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901         eval "$as_ac_var=no"
13902 fi
13903
13904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13905       conftest$ac_exeext conftest.$ac_ext
13906 fi
13907 ac_res=`eval echo '${'$as_ac_var'}'`
13908                { echo "$as_me:$LINENO: result: $ac_res" >&5
13909 echo "${ECHO_T}$ac_res" >&6; }
13910 if test `eval echo '${'$as_ac_var'}'` = yes; then
13911   cat >>confdefs.h <<_ACEOF
13912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13913 _ACEOF
13914
13915 fi
13916 done
13917
13918 LIBS="$ac_wine_check_funcs_save_LIBS"
13919
13920 # Extract the first word of "esd-config", so it can be a program name with args.
13921 set dummy esd-config; ac_word=$2
13922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13924 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
13925   echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927   case $ESDCONFIG in
13928   [\\/]* | ?:[\\/]*)
13929   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
13930   ;;
13931   *)
13932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933 for as_dir in $PATH
13934 do
13935   IFS=$as_save_IFS
13936   test -z "$as_dir" && as_dir=.
13937   for ac_exec_ext in '' $ac_executable_extensions; do
13938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13939     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
13940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13941     break 2
13942   fi
13943 done
13944 done
13945 IFS=$as_save_IFS
13946
13947   ;;
13948 esac
13949 fi
13950 ESDCONFIG=$ac_cv_path_ESDCONFIG
13951 if test -n "$ESDCONFIG"; then
13952   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
13953 echo "${ECHO_T}$ESDCONFIG" >&6; }
13954 else
13955   { echo "$as_me:$LINENO: result: no" >&5
13956 echo "${ECHO_T}no" >&6; }
13957 fi
13958
13959
13960 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
13961 then
13962     ESD_CFLAGS=""
13963     for i in `$ESDCONFIG --cflags`
13964     do
13965       case "$i" in
13966         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
13967       esac
13968     done
13969     ESD_LIBS=`$ESDCONFIG --libs`
13970     save_CFLAGS="$CFLAGS"
13971     CFLAGS="$CFLAGS $ESD_CFLAGS"
13972     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
13973 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
13974 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
13975   echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977   ac_check_lib_save_LIBS=$LIBS
13978 LIBS="-lesd  $LIBS"
13979 cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h.  */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h.  */
13985
13986 /* Override any GCC internal prototype to avoid an error.
13987    Use char because int might match the return type of a GCC
13988    builtin and then its argument prototype would still apply.  */
13989 #ifdef __cplusplus
13990 extern "C"
13991 #endif
13992 char esd_open_sound ();
13993 int
13994 main ()
13995 {
13996 return esd_open_sound ();
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 rm -f conftest.$ac_objext conftest$ac_exeext
14002 if { (ac_try="$ac_link"
14003 case "(($ac_try" in
14004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005   *) ac_try_echo=$ac_try;;
14006 esac
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008   (eval "$ac_link") 2>conftest.er1
14009   ac_status=$?
14010   grep -v '^ *+' conftest.er1 >conftest.err
14011   rm -f conftest.er1
14012   cat conftest.err >&5
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); } && {
14015          test -z "$ac_c_werror_flag" ||
14016          test ! -s conftest.err
14017        } && test -s conftest$ac_exeext &&
14018        $as_test_x conftest$ac_exeext; then
14019   ac_cv_lib_esd_esd_open_sound=yes
14020 else
14021   echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14023
14024         ac_cv_lib_esd_esd_open_sound=no
14025 fi
14026
14027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14028       conftest$ac_exeext conftest.$ac_ext
14029 LIBS=$ac_check_lib_save_LIBS
14030 fi
14031 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14032 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
14033 if test $ac_cv_lib_esd_esd_open_sound = yes; then
14034   ESDLIBS=$ESD_LIBS
14035
14036          ESDINCL=$ESD_CFLAGS
14037
14038
14039 cat >>confdefs.h <<\_ACEOF
14040 #define HAVE_ESD 1
14041 _ACEOF
14042
14043 fi
14044
14045     CFLAGS="$save_CFLAGS"
14046 fi
14047
14048 ALSALIBS=""
14049
14050 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
14051 then
14052     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14053 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
14054 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   ac_check_lib_save_LIBS=$LIBS
14058 LIBS="-lasound  $LIBS"
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065
14066 /* Override any GCC internal prototype to avoid an error.
14067    Use char because int might match the return type of a GCC
14068    builtin and then its argument prototype would still apply.  */
14069 #ifdef __cplusplus
14070 extern "C"
14071 #endif
14072 char snd_pcm_hw_params_get_access ();
14073 int
14074 main ()
14075 {
14076 return snd_pcm_hw_params_get_access ();
14077   ;
14078   return 0;
14079 }
14080 _ACEOF
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (ac_try="$ac_link"
14083 case "(($ac_try" in
14084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085   *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088   (eval "$ac_link") 2>conftest.er1
14089   ac_status=$?
14090   grep -v '^ *+' conftest.er1 >conftest.err
14091   rm -f conftest.er1
14092   cat conftest.err >&5
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); } && {
14095          test -z "$ac_c_werror_flag" ||
14096          test ! -s conftest.err
14097        } && test -s conftest$ac_exeext &&
14098        $as_test_x conftest$ac_exeext; then
14099   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
14100 else
14101   echo "$as_me: failed program was:" >&5
14102 sed 's/^/| /' conftest.$ac_ext >&5
14103
14104         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
14105 fi
14106
14107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14108       conftest$ac_exeext conftest.$ac_ext
14109 LIBS=$ac_check_lib_save_LIBS
14110 fi
14111 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14112 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
14113 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14114   cat >conftest.$ac_ext <<_ACEOF
14115 /* confdefs.h.  */
14116 _ACEOF
14117 cat confdefs.h >>conftest.$ac_ext
14118 cat >>conftest.$ac_ext <<_ACEOF
14119 /* end confdefs.h.  */
14120 #ifdef HAVE_ALSA_ASOUNDLIB_H
14121 #include <alsa/asoundlib.h>
14122 #elif defined(HAVE_SYS_ASOUNDLIB_H)
14123 #include <sys/asoundlib.h>
14124 #endif
14125 int
14126 main ()
14127 {
14128 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14129   ;
14130   return 0;
14131 }
14132 _ACEOF
14133 rm -f conftest.$ac_objext
14134 if { (ac_try="$ac_compile"
14135 case "(($ac_try" in
14136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137   *) ac_try_echo=$ac_try;;
14138 esac
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140   (eval "$ac_compile") 2>conftest.er1
14141   ac_status=$?
14142   grep -v '^ *+' conftest.er1 >conftest.err
14143   rm -f conftest.er1
14144   cat conftest.err >&5
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); } && {
14147          test -z "$ac_c_werror_flag" ||
14148          test ! -s conftest.err
14149        } && test -s conftest.$ac_objext; then
14150
14151 cat >>confdefs.h <<\_ACEOF
14152 #define HAVE_ALSA 1
14153 _ACEOF
14154
14155                          ALSALIBS="-lasound"
14156 else
14157   echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14159
14160
14161 fi
14162
14163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14164 fi
14165
14166 fi
14167
14168 AUDIOIOLIBS=""
14169
14170 if test "$ac_cv_header_libaudioio_h" = "yes"
14171 then
14172     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14173 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14174 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14175   echo $ECHO_N "(cached) $ECHO_C" >&6
14176 else
14177   ac_check_lib_save_LIBS=$LIBS
14178 LIBS="-laudioio  $LIBS"
14179 cat >conftest.$ac_ext <<_ACEOF
14180 /* confdefs.h.  */
14181 _ACEOF
14182 cat confdefs.h >>conftest.$ac_ext
14183 cat >>conftest.$ac_ext <<_ACEOF
14184 /* end confdefs.h.  */
14185
14186 /* Override any GCC internal prototype to avoid an error.
14187    Use char because int might match the return type of a GCC
14188    builtin and then its argument prototype would still apply.  */
14189 #ifdef __cplusplus
14190 extern "C"
14191 #endif
14192 char AudioIOGetVersion ();
14193 int
14194 main ()
14195 {
14196 return AudioIOGetVersion ();
14197   ;
14198   return 0;
14199 }
14200 _ACEOF
14201 rm -f conftest.$ac_objext conftest$ac_exeext
14202 if { (ac_try="$ac_link"
14203 case "(($ac_try" in
14204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205   *) ac_try_echo=$ac_try;;
14206 esac
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208   (eval "$ac_link") 2>conftest.er1
14209   ac_status=$?
14210   grep -v '^ *+' conftest.er1 >conftest.err
14211   rm -f conftest.er1
14212   cat conftest.err >&5
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); } && {
14215          test -z "$ac_c_werror_flag" ||
14216          test ! -s conftest.err
14217        } && test -s conftest$ac_exeext &&
14218        $as_test_x conftest$ac_exeext; then
14219   ac_cv_lib_audioio_AudioIOGetVersion=yes
14220 else
14221   echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224         ac_cv_lib_audioio_AudioIOGetVersion=no
14225 fi
14226
14227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14228       conftest$ac_exeext conftest.$ac_ext
14229 LIBS=$ac_check_lib_save_LIBS
14230 fi
14231 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14232 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14233 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14234   AUDIOIOLIBS="-laudioio"
14235
14236 cat >>confdefs.h <<\_ACEOF
14237 #define HAVE_LIBAUDIOIO 1
14238 _ACEOF
14239
14240 fi
14241
14242 fi
14243
14244
14245 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14246 then
14247     { echo "$as_me:$LINENO: checking for -lcapi20" >&5
14248 echo $ECHO_N "checking for -lcapi20... $ECHO_C" >&6; }
14249 if test "${ac_cv_lib_soname_capi20+set}" = set; then
14250   echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252   ac_check_soname_save_LIBS=$LIBS
14253 LIBS="-lcapi20  $LIBS"
14254   cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h.  */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h.  */
14260
14261 /* Override any GCC internal prototype to avoid an error.
14262    Use char because int might match the return type of a GCC
14263    builtin and then its argument prototype would still apply.  */
14264 #ifdef __cplusplus
14265 extern "C"
14266 #endif
14267 char capi20_register ();
14268 int
14269 main ()
14270 {
14271 return capi20_register ();
14272   ;
14273   return 0;
14274 }
14275 _ACEOF
14276 rm -f conftest.$ac_objext conftest$ac_exeext
14277 if { (ac_try="$ac_link"
14278 case "(($ac_try" in
14279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280   *) ac_try_echo=$ac_try;;
14281 esac
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283   (eval "$ac_link") 2>conftest.er1
14284   ac_status=$?
14285   grep -v '^ *+' conftest.er1 >conftest.err
14286   rm -f conftest.er1
14287   cat conftest.err >&5
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); } && {
14290          test -z "$ac_c_werror_flag" ||
14291          test ! -s conftest.err
14292        } && test -s conftest$ac_exeext &&
14293        $as_test_x conftest$ac_exeext; then
14294   case "$LIBEXT" in
14295     dll) ;;
14296     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'` ;;
14297     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
14298   esac
14299 else
14300   echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303
14304 fi
14305
14306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14307       conftest$ac_exeext conftest.$ac_ext
14308   LIBS=$ac_check_soname_save_LIBS
14309 fi
14310 if test "x$ac_cv_lib_soname_capi20" = "x"; then
14311   { echo "$as_me:$LINENO: result: not found" >&5
14312 echo "${ECHO_T}not found" >&6; }
14313
14314 else
14315   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
14316 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
14317
14318 cat >>confdefs.h <<_ACEOF
14319 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
14320 _ACEOF
14321
14322
14323 fi
14324
14325 fi
14326 if test "x$ac_cv_lib_soname_capi20" = "x"; then
14327   wine_notices="$wine_notices|libcapi20 development files not found.
14328 Wine will be built without ISDN support. (capi2032.dll)"
14329 fi
14330
14331
14332 if test "$ac_cv_header_cups_cups_h" = "yes"
14333 then
14334     { echo "$as_me:$LINENO: checking for -lcups" >&5
14335 echo $ECHO_N "checking for -lcups... $ECHO_C" >&6; }
14336 if test "${ac_cv_lib_soname_cups+set}" = set; then
14337   echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339   ac_check_soname_save_LIBS=$LIBS
14340 LIBS="-lcups  $LIBS"
14341   cat >conftest.$ac_ext <<_ACEOF
14342 /* confdefs.h.  */
14343 _ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h.  */
14347
14348 /* Override any GCC internal prototype to avoid an error.
14349    Use char because int might match the return type of a GCC
14350    builtin and then its argument prototype would still apply.  */
14351 #ifdef __cplusplus
14352 extern "C"
14353 #endif
14354 char cupsGetDefault ();
14355 int
14356 main ()
14357 {
14358 return cupsGetDefault ();
14359   ;
14360   return 0;
14361 }
14362 _ACEOF
14363 rm -f conftest.$ac_objext conftest$ac_exeext
14364 if { (ac_try="$ac_link"
14365 case "(($ac_try" in
14366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14367   *) ac_try_echo=$ac_try;;
14368 esac
14369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14370   (eval "$ac_link") 2>conftest.er1
14371   ac_status=$?
14372   grep -v '^ *+' conftest.er1 >conftest.err
14373   rm -f conftest.er1
14374   cat conftest.err >&5
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); } && {
14377          test -z "$ac_c_werror_flag" ||
14378          test ! -s conftest.err
14379        } && test -s conftest$ac_exeext &&
14380        $as_test_x conftest$ac_exeext; then
14381   case "$LIBEXT" in
14382     dll) ;;
14383     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'` ;;
14384     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
14385   esac
14386 else
14387   echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14389
14390
14391 fi
14392
14393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14394       conftest$ac_exeext conftest.$ac_ext
14395   LIBS=$ac_check_soname_save_LIBS
14396 fi
14397 if test "x$ac_cv_lib_soname_cups" = "x"; then
14398   { echo "$as_me:$LINENO: result: not found" >&5
14399 echo "${ECHO_T}not found" >&6; }
14400
14401 else
14402   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14403 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
14404
14405 cat >>confdefs.h <<_ACEOF
14406 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14407 _ACEOF
14408
14409
14410 fi
14411
14412 fi
14413 if test "x$ac_cv_lib_soname_cups" = "x"; then
14414   wine_notices="$wine_notices|libcups development files not found.
14415 Wine will be built without CUPS support."
14416 fi
14417
14418
14419 if test "$ac_cv_header_jack_jack_h" = "yes"
14420 then
14421     { echo "$as_me:$LINENO: checking for -ljack" >&5
14422 echo $ECHO_N "checking for -ljack... $ECHO_C" >&6; }
14423 if test "${ac_cv_lib_soname_jack+set}" = set; then
14424   echo $ECHO_N "(cached) $ECHO_C" >&6
14425 else
14426   ac_check_soname_save_LIBS=$LIBS
14427 LIBS="-ljack  $LIBS"
14428   cat >conftest.$ac_ext <<_ACEOF
14429 /* confdefs.h.  */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h.  */
14434
14435 /* Override any GCC internal prototype to avoid an error.
14436    Use char because int might match the return type of a GCC
14437    builtin and then its argument prototype would still apply.  */
14438 #ifdef __cplusplus
14439 extern "C"
14440 #endif
14441 char jack_client_new ();
14442 int
14443 main ()
14444 {
14445 return jack_client_new ();
14446   ;
14447   return 0;
14448 }
14449 _ACEOF
14450 rm -f conftest.$ac_objext conftest$ac_exeext
14451 if { (ac_try="$ac_link"
14452 case "(($ac_try" in
14453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454   *) ac_try_echo=$ac_try;;
14455 esac
14456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457   (eval "$ac_link") 2>conftest.er1
14458   ac_status=$?
14459   grep -v '^ *+' conftest.er1 >conftest.err
14460   rm -f conftest.er1
14461   cat conftest.err >&5
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); } && {
14464          test -z "$ac_c_werror_flag" ||
14465          test ! -s conftest.err
14466        } && test -s conftest$ac_exeext &&
14467        $as_test_x conftest$ac_exeext; then
14468   case "$LIBEXT" in
14469     dll) ;;
14470     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'` ;;
14471     *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack\\.$LIBEXT" | sed -e "s/^.*\(libjack\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
14472   esac
14473 else
14474   echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14476
14477
14478 fi
14479
14480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14481       conftest$ac_exeext conftest.$ac_ext
14482   LIBS=$ac_check_soname_save_LIBS
14483 fi
14484 if test "x$ac_cv_lib_soname_jack" = "x"; then
14485   { echo "$as_me:$LINENO: result: not found" >&5
14486 echo "${ECHO_T}not found" >&6; }
14487
14488 else
14489   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
14490 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
14491
14492 cat >>confdefs.h <<_ACEOF
14493 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
14494 _ACEOF
14495
14496
14497 fi
14498
14499 fi
14500
14501 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
14502 then
14503     { echo "$as_me:$LINENO: checking for -lfontconfig" >&5
14504 echo $ECHO_N "checking for -lfontconfig... $ECHO_C" >&6; }
14505 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   ac_check_soname_save_LIBS=$LIBS
14509 LIBS="-lfontconfig  $LIBS"
14510   cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h.  */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h.  */
14516
14517 /* Override any GCC internal prototype to avoid an error.
14518    Use char because int might match the return type of a GCC
14519    builtin and then its argument prototype would still apply.  */
14520 #ifdef __cplusplus
14521 extern "C"
14522 #endif
14523 char FcInit ();
14524 int
14525 main ()
14526 {
14527 return FcInit ();
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536   *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539   (eval "$ac_link") 2>conftest.er1
14540   ac_status=$?
14541   grep -v '^ *+' conftest.er1 >conftest.err
14542   rm -f conftest.er1
14543   cat conftest.err >&5
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } && {
14546          test -z "$ac_c_werror_flag" ||
14547          test ! -s conftest.err
14548        } && test -s conftest$ac_exeext &&
14549        $as_test_x conftest$ac_exeext; then
14550   case "$LIBEXT" in
14551     dll) ;;
14552     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'` ;;
14553     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
14554   esac
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559
14560 fi
14561
14562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14563       conftest$ac_exeext conftest.$ac_ext
14564   LIBS=$ac_check_soname_save_LIBS
14565 fi
14566 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
14567   { echo "$as_me:$LINENO: result: not found" >&5
14568 echo "${ECHO_T}not found" >&6; }
14569
14570 else
14571   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
14572 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
14573
14574 cat >>confdefs.h <<_ACEOF
14575 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
14576 _ACEOF
14577
14578
14579 fi
14580
14581 fi
14582 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
14583   wine_notices="$wine_notices|fontconfig development files not found.
14584 Wine will be built without fontconfig support."
14585 fi
14586
14587
14588 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
14589 then
14590     { echo "$as_me:$LINENO: checking for -lssl" >&5
14591 echo $ECHO_N "checking for -lssl... $ECHO_C" >&6; }
14592 if test "${ac_cv_lib_soname_ssl+set}" = set; then
14593   echo $ECHO_N "(cached) $ECHO_C" >&6
14594 else
14595   ac_check_soname_save_LIBS=$LIBS
14596 LIBS="-lssl  $LIBS"
14597   cat >conftest.$ac_ext <<_ACEOF
14598 /* confdefs.h.  */
14599 _ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h.  */
14603
14604 /* Override any GCC internal prototype to avoid an error.
14605    Use char because int might match the return type of a GCC
14606    builtin and then its argument prototype would still apply.  */
14607 #ifdef __cplusplus
14608 extern "C"
14609 #endif
14610 char SSL_library_init ();
14611 int
14612 main ()
14613 {
14614 return SSL_library_init ();
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 rm -f conftest.$ac_objext conftest$ac_exeext
14620 if { (ac_try="$ac_link"
14621 case "(($ac_try" in
14622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623   *) ac_try_echo=$ac_try;;
14624 esac
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626   (eval "$ac_link") 2>conftest.er1
14627   ac_status=$?
14628   grep -v '^ *+' conftest.er1 >conftest.err
14629   rm -f conftest.er1
14630   cat conftest.err >&5
14631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632   (exit $ac_status); } && {
14633          test -z "$ac_c_werror_flag" ||
14634          test ! -s conftest.err
14635        } && test -s conftest$ac_exeext &&
14636        $as_test_x conftest$ac_exeext; then
14637   case "$LIBEXT" in
14638     dll) ;;
14639     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'` ;;
14640     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
14641   esac
14642 else
14643   echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14645
14646
14647 fi
14648
14649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14650       conftest$ac_exeext conftest.$ac_ext
14651   LIBS=$ac_check_soname_save_LIBS
14652 fi
14653 if test "x$ac_cv_lib_soname_ssl" = "x"; then
14654   { echo "$as_me:$LINENO: result: not found" >&5
14655 echo "${ECHO_T}not found" >&6; }
14656
14657 else
14658   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
14659 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
14660
14661 cat >>confdefs.h <<_ACEOF
14662 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
14663 _ACEOF
14664
14665
14666 fi
14667
14668     { echo "$as_me:$LINENO: checking for -lcrypto" >&5
14669 echo $ECHO_N "checking for -lcrypto... $ECHO_C" >&6; }
14670 if test "${ac_cv_lib_soname_crypto+set}" = set; then
14671   echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673   ac_check_soname_save_LIBS=$LIBS
14674 LIBS="-lcrypto  $LIBS"
14675   cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h.  */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h.  */
14681
14682 /* Override any GCC internal prototype to avoid an error.
14683    Use char because int might match the return type of a GCC
14684    builtin and then its argument prototype would still apply.  */
14685 #ifdef __cplusplus
14686 extern "C"
14687 #endif
14688 char BIO_new_socket ();
14689 int
14690 main ()
14691 {
14692 return BIO_new_socket ();
14693   ;
14694   return 0;
14695 }
14696 _ACEOF
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (ac_try="$ac_link"
14699 case "(($ac_try" in
14700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701   *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704   (eval "$ac_link") 2>conftest.er1
14705   ac_status=$?
14706   grep -v '^ *+' conftest.er1 >conftest.err
14707   rm -f conftest.er1
14708   cat conftest.err >&5
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } && {
14711          test -z "$ac_c_werror_flag" ||
14712          test ! -s conftest.err
14713        } && test -s conftest$ac_exeext &&
14714        $as_test_x conftest$ac_exeext; then
14715   case "$LIBEXT" in
14716     dll) ;;
14717     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'` ;;
14718     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
14719   esac
14720 else
14721   echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14723
14724
14725 fi
14726
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728       conftest$ac_exeext conftest.$ac_ext
14729   LIBS=$ac_check_soname_save_LIBS
14730 fi
14731 if test "x$ac_cv_lib_soname_crypto" = "x"; then
14732   { echo "$as_me:$LINENO: result: not found" >&5
14733 echo "${ECHO_T}not found" >&6; }
14734
14735 else
14736   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
14737 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
14738
14739 cat >>confdefs.h <<_ACEOF
14740 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
14741 _ACEOF
14742
14743
14744 fi
14745
14746 fi
14747 if test "x$ac_cv_lib_soname_ssl" = "x"; then
14748   wine_notices="$wine_notices|OpenSSL development files not found.
14749 Wine will be built without SSL support. (wininet.dll)"
14750 fi
14751
14752
14753 if test "$ac_cv_header_jpeglib_h" = "yes"
14754 then
14755     { echo "$as_me:$LINENO: checking for -ljpeg" >&5
14756 echo $ECHO_N "checking for -ljpeg... $ECHO_C" >&6; }
14757 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
14758   echo $ECHO_N "(cached) $ECHO_C" >&6
14759 else
14760   ac_check_soname_save_LIBS=$LIBS
14761 LIBS="-ljpeg  $LIBS"
14762   cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h.  */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h.  */
14768
14769 /* Override any GCC internal prototype to avoid an error.
14770    Use char because int might match the return type of a GCC
14771    builtin and then its argument prototype would still apply.  */
14772 #ifdef __cplusplus
14773 extern "C"
14774 #endif
14775 char jpeg_start_decompress ();
14776 int
14777 main ()
14778 {
14779 return jpeg_start_decompress ();
14780   ;
14781   return 0;
14782 }
14783 _ACEOF
14784 rm -f conftest.$ac_objext conftest$ac_exeext
14785 if { (ac_try="$ac_link"
14786 case "(($ac_try" in
14787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788   *) ac_try_echo=$ac_try;;
14789 esac
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791   (eval "$ac_link") 2>conftest.er1
14792   ac_status=$?
14793   grep -v '^ *+' conftest.er1 >conftest.err
14794   rm -f conftest.er1
14795   cat conftest.err >&5
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } && {
14798          test -z "$ac_c_werror_flag" ||
14799          test ! -s conftest.err
14800        } && test -s conftest$ac_exeext &&
14801        $as_test_x conftest$ac_exeext; then
14802   case "$LIBEXT" in
14803     dll) ;;
14804     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'` ;;
14805     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
14806   esac
14807 else
14808   echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14810
14811
14812 fi
14813
14814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14815       conftest$ac_exeext conftest.$ac_ext
14816   LIBS=$ac_check_soname_save_LIBS
14817 fi
14818 if test "x$ac_cv_lib_soname_jpeg" = "x"; then
14819   { echo "$as_me:$LINENO: result: not found" >&5
14820 echo "${ECHO_T}not found" >&6; }
14821
14822 else
14823   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
14824 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
14825
14826 cat >>confdefs.h <<_ACEOF
14827 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
14828 _ACEOF
14829
14830
14831 fi
14832
14833 fi
14834 if test "x$ac_cv_lib_soname_jpeg" = "x"; then
14835   wine_notices="$wine_notices|libjpeg development files not found.
14836 Wine will be built without JPEG support. (oleaut32.dll)"
14837 fi
14838
14839
14840 if test "$ac_cv_header_png_h" = "yes"
14841 then
14842     { echo "$as_me:$LINENO: checking for -lpng" >&5
14843 echo $ECHO_N "checking for -lpng... $ECHO_C" >&6; }
14844 if test "${ac_cv_lib_soname_png+set}" = set; then
14845   echo $ECHO_N "(cached) $ECHO_C" >&6
14846 else
14847   ac_check_soname_save_LIBS=$LIBS
14848 LIBS="-lpng  $LIBS"
14849   cat >conftest.$ac_ext <<_ACEOF
14850 /* confdefs.h.  */
14851 _ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h.  */
14855
14856 /* Override any GCC internal prototype to avoid an error.
14857    Use char because int might match the return type of a GCC
14858    builtin and then its argument prototype would still apply.  */
14859 #ifdef __cplusplus
14860 extern "C"
14861 #endif
14862 char png_create_read_struct ();
14863 int
14864 main ()
14865 {
14866 return png_create_read_struct ();
14867   ;
14868   return 0;
14869 }
14870 _ACEOF
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (ac_try="$ac_link"
14873 case "(($ac_try" in
14874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875   *) ac_try_echo=$ac_try;;
14876 esac
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878   (eval "$ac_link") 2>conftest.er1
14879   ac_status=$?
14880   grep -v '^ *+' conftest.er1 >conftest.err
14881   rm -f conftest.er1
14882   cat conftest.err >&5
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); } && {
14885          test -z "$ac_c_werror_flag" ||
14886          test ! -s conftest.err
14887        } && test -s conftest$ac_exeext &&
14888        $as_test_x conftest$ac_exeext; then
14889   case "$LIBEXT" in
14890     dll) ;;
14891     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'` ;;
14892     *) 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'` ;;
14893   esac
14894 else
14895   echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14897
14898
14899 fi
14900
14901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14902       conftest$ac_exeext conftest.$ac_ext
14903   LIBS=$ac_check_soname_save_LIBS
14904 fi
14905 if test "x$ac_cv_lib_soname_png" = "x"; then
14906   { echo "$as_me:$LINENO: result: not found" >&5
14907 echo "${ECHO_T}not found" >&6; }
14908
14909 else
14910   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_png" >&5
14911 echo "${ECHO_T}$ac_cv_lib_soname_png" >&6; }
14912
14913 cat >>confdefs.h <<_ACEOF
14914 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
14915 _ACEOF
14916
14917
14918 fi
14919
14920 fi
14921 if test "x$ac_cv_lib_soname_png" = "x"; then
14922   wine_notices="$wine_notices|libpng development files not found.
14923 Wine will be built without PNG support. (oleaut32.dll)"
14924 fi
14925
14926
14927 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESD_LIBS$ac_cv_lib_soname_jack" = "x" -a \
14928                  "$ac_cv_header_sys_soundcard_h" != "yes" -a \
14929                  "$ac_cv_header_machine_soundcard_h" != "yes" -a \
14930                  "$ac_cv_header_soundcard_h" != "yes"; then
14931   wine_warnings="$wine_warnings|No sound system was found. Windows applications will be silent."
14932 fi
14933
14934
14935
14936 EXTRACFLAGS=""
14937
14938 if test "x${GCC}" = "xyes"
14939 then
14940   EXTRACFLAGS="-Wall -pipe"
14941
14942     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14943 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14944 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14945   echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947   if test "$cross_compiling" = yes; then
14948   ac_cv_c_gcc_strength_bug="yes"
14949 else
14950   cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h.  */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h.  */
14956 int L[4] = {0,1,2,3};
14957 int
14958 main ()
14959 {
14960 static int Array[3];
14961   unsigned int B = 3;
14962   int i;
14963   for(i=0; i<B; i++) Array[i] = i - 3;
14964   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14965   L[i] = 4;
14966   exit( Array[1] != -2 || L[2] != 3)
14967   ;
14968   return 0;
14969 }
14970 _ACEOF
14971 rm -f conftest$ac_exeext
14972 if { (ac_try="$ac_link"
14973 case "(($ac_try" in
14974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975   *) ac_try_echo=$ac_try;;
14976 esac
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978   (eval "$ac_link") 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14982   { (case "(($ac_try" in
14983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984   *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987   (eval "$ac_try") 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); }; }; then
14991   ac_cv_c_gcc_strength_bug="no"
14992 else
14993   echo "$as_me: program exited with status $ac_status" >&5
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997 ( exit $ac_status )
14998 ac_cv_c_gcc_strength_bug="yes"
14999 fi
15000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15001 fi
15002
15003
15004 fi
15005 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
15006 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
15007   if test "$ac_cv_c_gcc_strength_bug" = "yes"
15008   then
15009     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
15010   fi
15011
15012
15013   { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
15014 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
15015 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
15016   echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018   ac_wine_try_cflags_saved=$CFLAGS
15019 CFLAGS="$CFLAGS -fshort-wchar"
15020 cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h.  */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h.  */
15026
15027 int
15028 main ()
15029 {
15030
15031   ;
15032   return 0;
15033 }
15034 _ACEOF
15035 rm -f conftest.$ac_objext conftest$ac_exeext
15036 if { (ac_try="$ac_link"
15037 case "(($ac_try" in
15038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039   *) ac_try_echo=$ac_try;;
15040 esac
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042   (eval "$ac_link") 2>conftest.er1
15043   ac_status=$?
15044   grep -v '^ *+' conftest.er1 >conftest.err
15045   rm -f conftest.er1
15046   cat conftest.err >&5
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); } && {
15049          test -z "$ac_c_werror_flag" ||
15050          test ! -s conftest.err
15051        } && test -s conftest$ac_exeext &&
15052        $as_test_x conftest$ac_exeext; then
15053   ac_cv_cflags__fshort_wchar=yes
15054 else
15055   echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15057
15058         ac_cv_cflags__fshort_wchar=no
15059 fi
15060
15061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15062       conftest$ac_exeext conftest.$ac_ext
15063 CFLAGS=$ac_wine_try_cflags_saved
15064 fi
15065 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
15066 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
15067 if test $ac_cv_cflags__fshort_wchar = yes; then
15068
15069 cat >>confdefs.h <<\_ACEOF
15070 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
15071 _ACEOF
15072
15073 fi
15074
15075   { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
15076 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
15077 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080   ac_wine_try_cflags_saved=$CFLAGS
15081 CFLAGS="$CFLAGS -fno-strict-aliasing"
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h.  */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h.  */
15088
15089 int
15090 main ()
15091 {
15092
15093   ;
15094   return 0;
15095 }
15096 _ACEOF
15097 rm -f conftest.$ac_objext conftest$ac_exeext
15098 if { (ac_try="$ac_link"
15099 case "(($ac_try" in
15100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15101   *) ac_try_echo=$ac_try;;
15102 esac
15103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15104   (eval "$ac_link") 2>conftest.er1
15105   ac_status=$?
15106   grep -v '^ *+' conftest.er1 >conftest.err
15107   rm -f conftest.er1
15108   cat conftest.err >&5
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); } && {
15111          test -z "$ac_c_werror_flag" ||
15112          test ! -s conftest.err
15113        } && test -s conftest$ac_exeext &&
15114        $as_test_x conftest$ac_exeext; then
15115   ac_cv_cflags__fno_strict_aliasing=yes
15116 else
15117   echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120         ac_cv_cflags__fno_strict_aliasing=no
15121 fi
15122
15123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15124       conftest$ac_exeext conftest.$ac_ext
15125 CFLAGS=$ac_wine_try_cflags_saved
15126 fi
15127 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
15128 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
15129 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
15130   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
15131 fi
15132
15133   { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
15134 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
15135 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
15136   echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138   ac_wine_try_cflags_saved=$CFLAGS
15139 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15140 cat >conftest.$ac_ext <<_ACEOF
15141 /* confdefs.h.  */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h.  */
15146
15147 int
15148 main ()
15149 {
15150
15151   ;
15152   return 0;
15153 }
15154 _ACEOF
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159   *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162   (eval "$ac_link") 2>conftest.er1
15163   ac_status=$?
15164   grep -v '^ *+' conftest.er1 >conftest.err
15165   rm -f conftest.er1
15166   cat conftest.err >&5
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); } && {
15169          test -z "$ac_c_werror_flag" ||
15170          test ! -s conftest.err
15171        } && test -s conftest$ac_exeext &&
15172        $as_test_x conftest$ac_exeext; then
15173   ac_cv_cflags__Wdeclaration_after_statement=yes
15174 else
15175   echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15177
15178         ac_cv_cflags__Wdeclaration_after_statement=no
15179 fi
15180
15181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15182       conftest$ac_exeext conftest.$ac_ext
15183 CFLAGS=$ac_wine_try_cflags_saved
15184 fi
15185 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
15186 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
15187 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
15188   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
15189 fi
15190
15191   { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
15192 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
15193 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
15194   echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196   ac_wine_try_cflags_saved=$CFLAGS
15197 CFLAGS="$CFLAGS -Wwrite-strings"
15198 cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h.  */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h.  */
15204
15205 int
15206 main ()
15207 {
15208
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   ac_cv_cflags__Wwrite_strings=yes
15232 else
15233   echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15235
15236         ac_cv_cflags__Wwrite_strings=no
15237 fi
15238
15239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15240       conftest$ac_exeext conftest.$ac_ext
15241 CFLAGS=$ac_wine_try_cflags_saved
15242 fi
15243 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
15244 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
15245 if test $ac_cv_cflags__Wwrite_strings = yes; then
15246   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
15247 fi
15248
15249
15250     saved_CFLAGS="$CFLAGS"
15251   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
15252   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15253 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
15254 if test "${ac_cv_c_string_h_warnings+set}" = set; then
15255   echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257   cat >conftest.$ac_ext <<_ACEOF
15258 /* confdefs.h.  */
15259 _ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h.  */
15263 #include <string.h>
15264 int
15265 main ()
15266 {
15267
15268   ;
15269   return 0;
15270 }
15271 _ACEOF
15272 rm -f conftest.$ac_objext
15273 if { (ac_try="$ac_compile"
15274 case "(($ac_try" in
15275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276   *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279   (eval "$ac_compile") 2>conftest.er1
15280   ac_status=$?
15281   grep -v '^ *+' conftest.er1 >conftest.err
15282   rm -f conftest.er1
15283   cat conftest.err >&5
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } && {
15286          test -z "$ac_c_werror_flag" ||
15287          test ! -s conftest.err
15288        } && test -s conftest.$ac_objext; then
15289   ac_cv_c_string_h_warnings=no
15290 else
15291   echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15293
15294         ac_cv_c_string_h_warnings=yes
15295 fi
15296
15297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15298 fi
15299 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15300 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
15301   CFLAGS="$saved_CFLAGS"
15302   if test "$ac_cv_c_string_h_warnings" = "no"
15303   then
15304     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
15305   fi
15306
15307   BUILTINFLAG=""
15308
15309   saved_CFLAGS="$CFLAGS"
15310   CFLAGS="$CFLAGS -Werror"
15311   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15312 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
15313 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15314   echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316   cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h.  */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h.  */
15322
15323 int
15324 main ()
15325 {
15326 int iswlower(unsigned short);
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 rm -f conftest.$ac_objext
15332 if { (ac_try="$ac_compile"
15333 case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_compile") 2>conftest.er1
15339   ac_status=$?
15340   grep -v '^ *+' conftest.er1 >conftest.err
15341   rm -f conftest.er1
15342   cat conftest.err >&5
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); } && {
15345          test -z "$ac_c_werror_flag" ||
15346          test ! -s conftest.err
15347        } && test -s conftest.$ac_objext; then
15348   ac_cv_c_builtin_wchar_ctype=no
15349 else
15350   echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15352
15353         ac_cv_c_builtin_wchar_ctype=yes
15354 fi
15355
15356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357 fi
15358 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15359 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
15360   CFLAGS="$saved_CFLAGS"
15361   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15362   then
15363     BUILTINFLAG="-fno-builtin"
15364   fi
15365 fi
15366
15367
15368 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15369 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
15370 if test "${ac_cv_asm_func_def+set}" = set; then
15371   echo $ECHO_N "(cached) $ECHO_C" >&6
15372 else
15373   cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379
15380 int
15381 main ()
15382 {
15383 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
15384   ;
15385   return 0;
15386 }
15387 _ACEOF
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (ac_try="$ac_link"
15390 case "(($ac_try" in
15391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392   *) ac_try_echo=$ac_try;;
15393 esac
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395   (eval "$ac_link") 2>conftest.er1
15396   ac_status=$?
15397   grep -v '^ *+' conftest.er1 >conftest.err
15398   rm -f conftest.er1
15399   cat conftest.err >&5
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } && {
15402          test -z "$ac_c_werror_flag" ||
15403          test ! -s conftest.err
15404        } && test -s conftest$ac_exeext &&
15405        $as_test_x conftest$ac_exeext; then
15406   ac_cv_asm_func_def=".def"
15407 else
15408   echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15410
15411         cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h.  */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h.  */
15417
15418 int
15419 main ()
15420 {
15421 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
15422   ;
15423   return 0;
15424 }
15425 _ACEOF
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (ac_try="$ac_link"
15428 case "(($ac_try" in
15429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430   *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433   (eval "$ac_link") 2>conftest.er1
15434   ac_status=$?
15435   grep -v '^ *+' conftest.er1 >conftest.err
15436   rm -f conftest.er1
15437   cat conftest.err >&5
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); } && {
15440          test -z "$ac_c_werror_flag" ||
15441          test ! -s conftest.err
15442        } && test -s conftest$ac_exeext &&
15443        $as_test_x conftest$ac_exeext; then
15444   ac_cv_asm_func_def=".type @function"
15445 else
15446   echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15448
15449         cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h.  */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h.  */
15455
15456 int
15457 main ()
15458 {
15459 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (ac_try="$ac_link"
15466 case "(($ac_try" in
15467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468   *) ac_try_echo=$ac_try;;
15469 esac
15470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471   (eval "$ac_link") 2>conftest.er1
15472   ac_status=$?
15473   grep -v '^ *+' conftest.er1 >conftest.err
15474   rm -f conftest.er1
15475   cat conftest.err >&5
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); } && {
15478          test -z "$ac_c_werror_flag" ||
15479          test ! -s conftest.err
15480        } && test -s conftest$ac_exeext &&
15481        $as_test_x conftest$ac_exeext; then
15482   ac_cv_asm_func_def=".type 2"
15483 else
15484   echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
15487         ac_cv_asm_func_def="unknown"
15488 fi
15489
15490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15491       conftest$ac_exeext conftest.$ac_ext
15492 fi
15493
15494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15495       conftest$ac_exeext conftest.$ac_ext
15496 fi
15497
15498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15499       conftest$ac_exeext conftest.$ac_ext
15500 fi
15501 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15502 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
15503
15504
15505
15506 case "$ac_cv_asm_func_def" in
15507   ".def")
15508      cat >>confdefs.h <<\_ACEOF
15509 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15510 _ACEOF
15511  ;;
15512   ".type @function")
15513      cat >>confdefs.h <<\_ACEOF
15514 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15515 _ACEOF
15516  ;;
15517   ".type 2")
15518      cat >>confdefs.h <<\_ACEOF
15519 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15520 _ACEOF
15521  ;;
15522   *)
15523      cat >>confdefs.h <<\_ACEOF
15524 #define __ASM_FUNC(name) ""
15525 _ACEOF
15526  ;;
15527 esac
15528
15529
15530 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15531 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15532 if test "${ac_cv_c_extern_prefix+set}" = set; then
15533   echo $ECHO_N "(cached) $ECHO_C" >&6
15534 else
15535   cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h.  */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h.  */
15541 extern int ac_test;
15542 int
15543 main ()
15544 {
15545 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
15546   ;
15547   return 0;
15548 }
15549 _ACEOF
15550 rm -f conftest.$ac_objext conftest$ac_exeext
15551 if { (ac_try="$ac_link"
15552 case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557   (eval "$ac_link") 2>conftest.er1
15558   ac_status=$?
15559   grep -v '^ *+' conftest.er1 >conftest.err
15560   rm -f conftest.er1
15561   cat conftest.err >&5
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); } && {
15564          test -z "$ac_c_werror_flag" ||
15565          test ! -s conftest.err
15566        } && test -s conftest$ac_exeext &&
15567        $as_test_x conftest$ac_exeext; then
15568   ac_cv_c_extern_prefix="yes"
15569 else
15570   echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573         ac_cv_c_extern_prefix="no"
15574 fi
15575
15576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15577       conftest$ac_exeext conftest.$ac_ext
15578 fi
15579 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15580 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
15581
15582
15583
15584 if test "$ac_cv_c_extern_prefix" = "yes"
15585 then
15586   cat >>confdefs.h <<\_ACEOF
15587 #define __ASM_NAME(name) "_" name
15588 _ACEOF
15589
15590 else
15591   cat >>confdefs.h <<\_ACEOF
15592 #define __ASM_NAME(name) name
15593 _ACEOF
15594
15595 fi
15596
15597
15598 LDPATH=""
15599
15600 case $build_os in
15601   cygwin*|mingw32*)
15602     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
15603     ;;
15604   darwin*|macosx*)
15605     ;;
15606   linux*|solaris*)      if test -z "$LDRPATH_LOCAL"
15607     then
15608       LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
15609     fi
15610     ;;
15611   *)
15612     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
15613     ;;
15614 esac
15615
15616 case $host_os in
15617   mingw32*)
15618     CRTLIBS="-lmsvcrt"
15619
15620     SOCKETLIBS="-lws2_32"
15621
15622     ;;
15623 esac
15624
15625 MAIN_BINARY="wine-pthread"
15626   case $host_cpu in
15627   *i[3456789]86*)
15628     case $host_os in
15629       linux* | k*bsd*-gnu)
15630         MAIN_BINARY="wine-glibc"
15631
15632         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
15633  ;;
15634       freebsd*)
15635         MAIN_BINARY="wine-freebsd"
15636
15637         EXTRA_BINARIES="wine-pthread"
15638  ;;
15639     esac
15640     ;;
15641 esac
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706 for ac_func in \
15707         _pclose \
15708         _popen \
15709         _snprintf \
15710         _spawnvp \
15711         _stricmp \
15712         _strnicmp \
15713         _vsnprintf \
15714         asctime_r \
15715         chsize \
15716         clone \
15717         dlopen \
15718         epoll_create \
15719         ffs \
15720         finite \
15721         fork \
15722         fpclass \
15723         fstatfs \
15724         fstatvfs \
15725         ftruncate \
15726         futimes \
15727         futimesat \
15728         getdirentries \
15729         getopt_long \
15730         getpagesize \
15731         getpwuid \
15732         gettid \
15733         gettimeofday \
15734         getuid \
15735         inet_pton \
15736         kqueue \
15737         lstat \
15738         memmove \
15739         mmap \
15740         pclose \
15741         poll \
15742         popen \
15743         prctl \
15744         pread \
15745         pwrite \
15746         readlink \
15747         rfork \
15748         sched_yield \
15749         select \
15750         setrlimit \
15751         settimeofday \
15752         sigaltstack \
15753         sigprocmask \
15754         snprintf \
15755         spawnvp \
15756         statfs \
15757         statvfs \
15758         strcasecmp \
15759         strerror \
15760         strncasecmp \
15761         strtold \
15762         tcgetattr \
15763         thr_kill2 \
15764         timegm \
15765         usleep \
15766         vsnprintf \
15767         wait4 \
15768         waitpid \
15769
15770 do
15771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777   cat >conftest.$ac_ext <<_ACEOF
15778 /* confdefs.h.  */
15779 _ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h.  */
15783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15785 #define $ac_func innocuous_$ac_func
15786
15787 /* System header to define __stub macros and hopefully few prototypes,
15788     which can conflict with char $ac_func (); below.
15789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15790     <limits.h> exists even on freestanding compilers.  */
15791
15792 #ifdef __STDC__
15793 # include <limits.h>
15794 #else
15795 # include <assert.h>
15796 #endif
15797
15798 #undef $ac_func
15799
15800 /* Override any GCC internal prototype to avoid an error.
15801    Use char because int might match the return type of a GCC
15802    builtin and then its argument prototype would still apply.  */
15803 #ifdef __cplusplus
15804 extern "C"
15805 #endif
15806 char $ac_func ();
15807 /* The GNU C library defines this for functions which it implements
15808     to always fail with ENOSYS.  Some functions are actually named
15809     something starting with __ and the normal name is an alias.  */
15810 #if defined __stub_$ac_func || defined __stub___$ac_func
15811 choke me
15812 #endif
15813
15814 int
15815 main ()
15816 {
15817 return $ac_func ();
15818   ;
15819   return 0;
15820 }
15821 _ACEOF
15822 rm -f conftest.$ac_objext conftest$ac_exeext
15823 if { (ac_try="$ac_link"
15824 case "(($ac_try" in
15825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826   *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829   (eval "$ac_link") 2>conftest.er1
15830   ac_status=$?
15831   grep -v '^ *+' conftest.er1 >conftest.err
15832   rm -f conftest.er1
15833   cat conftest.err >&5
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); } && {
15836          test -z "$ac_c_werror_flag" ||
15837          test ! -s conftest.err
15838        } && test -s conftest$ac_exeext &&
15839        $as_test_x conftest$ac_exeext; then
15840   eval "$as_ac_var=yes"
15841 else
15842   echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15844
15845         eval "$as_ac_var=no"
15846 fi
15847
15848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15849       conftest$ac_exeext conftest.$ac_ext
15850 fi
15851 ac_res=`eval echo '${'$as_ac_var'}'`
15852                { echo "$as_me:$LINENO: result: $ac_res" >&5
15853 echo "${ECHO_T}$ac_res" >&6; }
15854 if test `eval echo '${'$as_ac_var'}'` = yes; then
15855   cat >>confdefs.h <<_ACEOF
15856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15857 _ACEOF
15858
15859 fi
15860 done
15861
15862
15863 if test "$ac_cv_func_dlopen" = no
15864 then
15865     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15868   echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870   ac_check_lib_save_LIBS=$LIBS
15871 LIBS="-ldl  $LIBS"
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h.  */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h.  */
15878
15879 /* Override any GCC internal prototype to avoid an error.
15880    Use char because int might match the return type of a GCC
15881    builtin and then its argument prototype would still apply.  */
15882 #ifdef __cplusplus
15883 extern "C"
15884 #endif
15885 char dlopen ();
15886 int
15887 main ()
15888 {
15889 return dlopen ();
15890   ;
15891   return 0;
15892 }
15893 _ACEOF
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (ac_try="$ac_link"
15896 case "(($ac_try" in
15897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898   *) ac_try_echo=$ac_try;;
15899 esac
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901   (eval "$ac_link") 2>conftest.er1
15902   ac_status=$?
15903   grep -v '^ *+' conftest.er1 >conftest.err
15904   rm -f conftest.er1
15905   cat conftest.err >&5
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } && {
15908          test -z "$ac_c_werror_flag" ||
15909          test ! -s conftest.err
15910        } && test -s conftest$ac_exeext &&
15911        $as_test_x conftest$ac_exeext; then
15912   ac_cv_lib_dl_dlopen=yes
15913 else
15914   echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15916
15917         ac_cv_lib_dl_dlopen=no
15918 fi
15919
15920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15921       conftest$ac_exeext conftest.$ac_ext
15922 LIBS=$ac_check_lib_save_LIBS
15923 fi
15924 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15925 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15926 if test $ac_cv_lib_dl_dlopen = yes; then
15927   cat >>confdefs.h <<\_ACEOF
15928 #define HAVE_DLOPEN 1
15929 _ACEOF
15930  LIBDL="-ldl"
15931
15932 fi
15933
15934 fi
15935 ac_wine_check_funcs_save_LIBS="$LIBS"
15936 LIBS="$LIBS $LIBDL"
15937
15938 for ac_func in dladdr
15939 do
15940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15944   echo $ECHO_N "(cached) $ECHO_C" >&6
15945 else
15946   cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h.  */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h.  */
15952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15954 #define $ac_func innocuous_$ac_func
15955
15956 /* System header to define __stub macros and hopefully few prototypes,
15957     which can conflict with char $ac_func (); below.
15958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15959     <limits.h> exists even on freestanding compilers.  */
15960
15961 #ifdef __STDC__
15962 # include <limits.h>
15963 #else
15964 # include <assert.h>
15965 #endif
15966
15967 #undef $ac_func
15968
15969 /* Override any GCC internal prototype to avoid an error.
15970    Use char because int might match the return type of a GCC
15971    builtin and then its argument prototype would still apply.  */
15972 #ifdef __cplusplus
15973 extern "C"
15974 #endif
15975 char $ac_func ();
15976 /* The GNU C library defines this for functions which it implements
15977     to always fail with ENOSYS.  Some functions are actually named
15978     something starting with __ and the normal name is an alias.  */
15979 #if defined __stub_$ac_func || defined __stub___$ac_func
15980 choke me
15981 #endif
15982
15983 int
15984 main ()
15985 {
15986 return $ac_func ();
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext conftest$ac_exeext
15992 if { (ac_try="$ac_link"
15993 case "(($ac_try" in
15994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995   *) ac_try_echo=$ac_try;;
15996 esac
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998   (eval "$ac_link") 2>conftest.er1
15999   ac_status=$?
16000   grep -v '^ *+' conftest.er1 >conftest.err
16001   rm -f conftest.er1
16002   cat conftest.err >&5
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); } && {
16005          test -z "$ac_c_werror_flag" ||
16006          test ! -s conftest.err
16007        } && test -s conftest$ac_exeext &&
16008        $as_test_x conftest$ac_exeext; then
16009   eval "$as_ac_var=yes"
16010 else
16011   echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014         eval "$as_ac_var=no"
16015 fi
16016
16017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16018       conftest$ac_exeext conftest.$ac_ext
16019 fi
16020 ac_res=`eval echo '${'$as_ac_var'}'`
16021                { echo "$as_me:$LINENO: result: $ac_res" >&5
16022 echo "${ECHO_T}$ac_res" >&6; }
16023 if test `eval echo '${'$as_ac_var'}'` = yes; then
16024   cat >>confdefs.h <<_ACEOF
16025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16026 _ACEOF
16027
16028 fi
16029 done
16030
16031 LIBS="$ac_wine_check_funcs_save_LIBS"
16032
16033 if test "$ac_cv_func_poll" = no
16034 then
16035     { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
16036 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
16037 if test "${ac_cv_lib_poll_poll+set}" = set; then
16038   echo $ECHO_N "(cached) $ECHO_C" >&6
16039 else
16040   ac_check_lib_save_LIBS=$LIBS
16041 LIBS="-lpoll  $LIBS"
16042 cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h.  */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h.  */
16048
16049 /* Override any GCC internal prototype to avoid an error.
16050    Use char because int might match the return type of a GCC
16051    builtin and then its argument prototype would still apply.  */
16052 #ifdef __cplusplus
16053 extern "C"
16054 #endif
16055 char poll ();
16056 int
16057 main ()
16058 {
16059 return poll ();
16060   ;
16061   return 0;
16062 }
16063 _ACEOF
16064 rm -f conftest.$ac_objext conftest$ac_exeext
16065 if { (ac_try="$ac_link"
16066 case "(($ac_try" in
16067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068   *) ac_try_echo=$ac_try;;
16069 esac
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071   (eval "$ac_link") 2>conftest.er1
16072   ac_status=$?
16073   grep -v '^ *+' conftest.er1 >conftest.err
16074   rm -f conftest.er1
16075   cat conftest.err >&5
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); } && {
16078          test -z "$ac_c_werror_flag" ||
16079          test ! -s conftest.err
16080        } && test -s conftest$ac_exeext &&
16081        $as_test_x conftest$ac_exeext; then
16082   ac_cv_lib_poll_poll=yes
16083 else
16084   echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16086
16087         ac_cv_lib_poll_poll=no
16088 fi
16089
16090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16091       conftest$ac_exeext conftest.$ac_ext
16092 LIBS=$ac_check_lib_save_LIBS
16093 fi
16094 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
16095 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
16096 if test $ac_cv_lib_poll_poll = yes; then
16097   cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_POLL 1
16099 _ACEOF
16100  LIBPOLL="-lpoll"
16101
16102 fi
16103
16104 fi
16105
16106 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
16107 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
16108 if test "${ac_cv_search_gethostbyname+set}" = set; then
16109   echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111   ac_func_search_save_LIBS=$LIBS
16112 cat >conftest.$ac_ext <<_ACEOF
16113 /* confdefs.h.  */
16114 _ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h.  */
16118
16119 /* Override any GCC internal prototype to avoid an error.
16120    Use char because int might match the return type of a GCC
16121    builtin and then its argument prototype would still apply.  */
16122 #ifdef __cplusplus
16123 extern "C"
16124 #endif
16125 char gethostbyname ();
16126 int
16127 main ()
16128 {
16129 return gethostbyname ();
16130   ;
16131   return 0;
16132 }
16133 _ACEOF
16134 for ac_lib in '' nsl; do
16135   if test -z "$ac_lib"; then
16136     ac_res="none required"
16137   else
16138     ac_res=-l$ac_lib
16139     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16140   fi
16141   rm -f conftest.$ac_objext conftest$ac_exeext
16142 if { (ac_try="$ac_link"
16143 case "(($ac_try" in
16144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145   *) ac_try_echo=$ac_try;;
16146 esac
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148   (eval "$ac_link") 2>conftest.er1
16149   ac_status=$?
16150   grep -v '^ *+' conftest.er1 >conftest.err
16151   rm -f conftest.er1
16152   cat conftest.err >&5
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } && {
16155          test -z "$ac_c_werror_flag" ||
16156          test ! -s conftest.err
16157        } && test -s conftest$ac_exeext &&
16158        $as_test_x conftest$ac_exeext; then
16159   ac_cv_search_gethostbyname=$ac_res
16160 else
16161   echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16163
16164
16165 fi
16166
16167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16168       conftest$ac_exeext
16169   if test "${ac_cv_search_gethostbyname+set}" = set; then
16170   break
16171 fi
16172 done
16173 if test "${ac_cv_search_gethostbyname+set}" = set; then
16174   :
16175 else
16176   ac_cv_search_gethostbyname=no
16177 fi
16178 rm conftest.$ac_ext
16179 LIBS=$ac_func_search_save_LIBS
16180 fi
16181 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
16182 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
16183 ac_res=$ac_cv_search_gethostbyname
16184 if test "$ac_res" != no; then
16185   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16186
16187 fi
16188
16189
16190 { echo "$as_me:$LINENO: checking for library containing connect" >&5
16191 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
16192 if test "${ac_cv_search_connect+set}" = set; then
16193   echo $ECHO_N "(cached) $ECHO_C" >&6
16194 else
16195   ac_func_search_save_LIBS=$LIBS
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h.  */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h.  */
16202
16203 /* Override any GCC internal prototype to avoid an error.
16204    Use char because int might match the return type of a GCC
16205    builtin and then its argument prototype would still apply.  */
16206 #ifdef __cplusplus
16207 extern "C"
16208 #endif
16209 char connect ();
16210 int
16211 main ()
16212 {
16213 return connect ();
16214   ;
16215   return 0;
16216 }
16217 _ACEOF
16218 for ac_lib in '' socket; do
16219   if test -z "$ac_lib"; then
16220     ac_res="none required"
16221   else
16222     ac_res=-l$ac_lib
16223     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16224   fi
16225   rm -f conftest.$ac_objext conftest$ac_exeext
16226 if { (ac_try="$ac_link"
16227 case "(($ac_try" in
16228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229   *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232   (eval "$ac_link") 2>conftest.er1
16233   ac_status=$?
16234   grep -v '^ *+' conftest.er1 >conftest.err
16235   rm -f conftest.er1
16236   cat conftest.err >&5
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); } && {
16239          test -z "$ac_c_werror_flag" ||
16240          test ! -s conftest.err
16241        } && test -s conftest$ac_exeext &&
16242        $as_test_x conftest$ac_exeext; then
16243   ac_cv_search_connect=$ac_res
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248
16249 fi
16250
16251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16252       conftest$ac_exeext
16253   if test "${ac_cv_search_connect+set}" = set; then
16254   break
16255 fi
16256 done
16257 if test "${ac_cv_search_connect+set}" = set; then
16258   :
16259 else
16260   ac_cv_search_connect=no
16261 fi
16262 rm conftest.$ac_ext
16263 LIBS=$ac_func_search_save_LIBS
16264 fi
16265 { echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
16266 echo "${ECHO_T}$ac_cv_search_connect" >&6; }
16267 ac_res=$ac_cv_search_connect
16268 if test "$ac_res" != no; then
16269   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16270
16271 fi
16272
16273
16274 { echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
16275 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
16276 if test "${ac_cv_search_inet_aton+set}" = set; then
16277   echo $ECHO_N "(cached) $ECHO_C" >&6
16278 else
16279   ac_func_search_save_LIBS=$LIBS
16280 cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h.  */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h.  */
16286
16287 /* Override any GCC internal prototype to avoid an error.
16288    Use char because int might match the return type of a GCC
16289    builtin and then its argument prototype would still apply.  */
16290 #ifdef __cplusplus
16291 extern "C"
16292 #endif
16293 char inet_aton ();
16294 int
16295 main ()
16296 {
16297 return inet_aton ();
16298   ;
16299   return 0;
16300 }
16301 _ACEOF
16302 for ac_lib in '' resolv; do
16303   if test -z "$ac_lib"; then
16304     ac_res="none required"
16305   else
16306     ac_res=-l$ac_lib
16307     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16308   fi
16309   rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (ac_try="$ac_link"
16311 case "(($ac_try" in
16312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313   *) ac_try_echo=$ac_try;;
16314 esac
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316   (eval "$ac_link") 2>conftest.er1
16317   ac_status=$?
16318   grep -v '^ *+' conftest.er1 >conftest.err
16319   rm -f conftest.er1
16320   cat conftest.err >&5
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); } && {
16323          test -z "$ac_c_werror_flag" ||
16324          test ! -s conftest.err
16325        } && test -s conftest$ac_exeext &&
16326        $as_test_x conftest$ac_exeext; then
16327   ac_cv_search_inet_aton=$ac_res
16328 else
16329   echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16331
16332
16333 fi
16334
16335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16336       conftest$ac_exeext
16337   if test "${ac_cv_search_inet_aton+set}" = set; then
16338   break
16339 fi
16340 done
16341 if test "${ac_cv_search_inet_aton+set}" = set; then
16342   :
16343 else
16344   ac_cv_search_inet_aton=no
16345 fi
16346 rm conftest.$ac_ext
16347 LIBS=$ac_func_search_save_LIBS
16348 fi
16349 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
16350 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
16351 ac_res=$ac_cv_search_inet_aton
16352 if test "$ac_res" != no; then
16353   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16354
16355 fi
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366 for ac_func in \
16367         getaddrinfo \
16368         getnameinfo \
16369         getnetbyname \
16370         getprotobyname \
16371         getprotobynumber \
16372         getservbyport \
16373         inet_network \
16374         sendmsg \
16375
16376 do
16377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16381   echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383   cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h.  */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h.  */
16389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16391 #define $ac_func innocuous_$ac_func
16392
16393 /* System header to define __stub macros and hopefully few prototypes,
16394     which can conflict with char $ac_func (); below.
16395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16396     <limits.h> exists even on freestanding compilers.  */
16397
16398 #ifdef __STDC__
16399 # include <limits.h>
16400 #else
16401 # include <assert.h>
16402 #endif
16403
16404 #undef $ac_func
16405
16406 /* Override any GCC internal prototype to avoid an error.
16407    Use char because int might match the return type of a GCC
16408    builtin and then its argument prototype would still apply.  */
16409 #ifdef __cplusplus
16410 extern "C"
16411 #endif
16412 char $ac_func ();
16413 /* The GNU C library defines this for functions which it implements
16414     to always fail with ENOSYS.  Some functions are actually named
16415     something starting with __ and the normal name is an alias.  */
16416 #if defined __stub_$ac_func || defined __stub___$ac_func
16417 choke me
16418 #endif
16419
16420 int
16421 main ()
16422 {
16423 return $ac_func ();
16424   ;
16425   return 0;
16426 }
16427 _ACEOF
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432   *) ac_try_echo=$ac_try;;
16433 esac
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435   (eval "$ac_link") 2>conftest.er1
16436   ac_status=$?
16437   grep -v '^ *+' conftest.er1 >conftest.err
16438   rm -f conftest.er1
16439   cat conftest.err >&5
16440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441   (exit $ac_status); } && {
16442          test -z "$ac_c_werror_flag" ||
16443          test ! -s conftest.err
16444        } && test -s conftest$ac_exeext &&
16445        $as_test_x conftest$ac_exeext; then
16446   eval "$as_ac_var=yes"
16447 else
16448   echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451         eval "$as_ac_var=no"
16452 fi
16453
16454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16455       conftest$ac_exeext conftest.$ac_ext
16456 fi
16457 ac_res=`eval echo '${'$as_ac_var'}'`
16458                { echo "$as_me:$LINENO: result: $ac_res" >&5
16459 echo "${ECHO_T}$ac_res" >&6; }
16460 if test `eval echo '${'$as_ac_var'}'` = yes; then
16461   cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16463 _ACEOF
16464
16465 fi
16466 done
16467
16468
16469
16470 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16471 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
16472 if test "${ac_cv_c_const+set}" = set; then
16473   echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475   cat >conftest.$ac_ext <<_ACEOF
16476 /* confdefs.h.  */
16477 _ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h.  */
16481
16482 int
16483 main ()
16484 {
16485 /* FIXME: Include the comments suggested by Paul. */
16486 #ifndef __cplusplus
16487   /* Ultrix mips cc rejects this.  */
16488   typedef int charset[2];
16489   const charset cs;
16490   /* SunOS 4.1.1 cc rejects this.  */
16491   char const *const *pcpcc;
16492   char **ppc;
16493   /* NEC SVR4.0.2 mips cc rejects this.  */
16494   struct point {int x, y;};
16495   static struct point const zero = {0,0};
16496   /* AIX XL C 1.02.0.0 rejects this.
16497      It does not let you subtract one const X* pointer from another in
16498      an arm of an if-expression whose if-part is not a constant
16499      expression */
16500   const char *g = "string";
16501   pcpcc = &g + (g ? g-g : 0);
16502   /* HPUX 7.0 cc rejects these. */
16503   ++pcpcc;
16504   ppc = (char**) pcpcc;
16505   pcpcc = (char const *const *) ppc;
16506   { /* SCO 3.2v4 cc rejects this.  */
16507     char *t;
16508     char const *s = 0 ? (char *) 0 : (char const *) 0;
16509
16510     *t++ = 0;
16511     if (s) return 0;
16512   }
16513   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16514     int x[] = {25, 17};
16515     const int *foo = &x[0];
16516     ++foo;
16517   }
16518   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16519     typedef const int *iptr;
16520     iptr p = 0;
16521     ++p;
16522   }
16523   { /* AIX XL C 1.02.0.0 rejects this saying
16524        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16525     struct s { int j; const int *ap[3]; };
16526     struct s *b; b->j = 5;
16527   }
16528   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16529     const int foo = 10;
16530     if (!foo) return 0;
16531   }
16532   return !cs[0] && !zero.x;
16533 #endif
16534
16535   ;
16536   return 0;
16537 }
16538 _ACEOF
16539 rm -f conftest.$ac_objext
16540 if { (ac_try="$ac_compile"
16541 case "(($ac_try" in
16542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543   *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546   (eval "$ac_compile") 2>conftest.er1
16547   ac_status=$?
16548   grep -v '^ *+' conftest.er1 >conftest.err
16549   rm -f conftest.er1
16550   cat conftest.err >&5
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } && {
16553          test -z "$ac_c_werror_flag" ||
16554          test ! -s conftest.err
16555        } && test -s conftest.$ac_objext; then
16556   ac_cv_c_const=yes
16557 else
16558   echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16560
16561         ac_cv_c_const=no
16562 fi
16563
16564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565 fi
16566 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16567 echo "${ECHO_T}$ac_cv_c_const" >&6; }
16568 if test $ac_cv_c_const = no; then
16569
16570 cat >>confdefs.h <<\_ACEOF
16571 #define const
16572 _ACEOF
16573
16574 fi
16575
16576 { echo "$as_me:$LINENO: checking for inline" >&5
16577 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
16578 if test "${ac_cv_c_inline+set}" = set; then
16579   echo $ECHO_N "(cached) $ECHO_C" >&6
16580 else
16581   ac_cv_c_inline=no
16582 for ac_kw in inline __inline__ __inline; do
16583   cat >conftest.$ac_ext <<_ACEOF
16584 /* confdefs.h.  */
16585 _ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h.  */
16589 #ifndef __cplusplus
16590 typedef int foo_t;
16591 static $ac_kw foo_t static_foo () {return 0; }
16592 $ac_kw foo_t foo () {return 0; }
16593 #endif
16594
16595 _ACEOF
16596 rm -f conftest.$ac_objext
16597 if { (ac_try="$ac_compile"
16598 case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_compile") 2>conftest.er1
16604   ac_status=$?
16605   grep -v '^ *+' conftest.er1 >conftest.err
16606   rm -f conftest.er1
16607   cat conftest.err >&5
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } && {
16610          test -z "$ac_c_werror_flag" ||
16611          test ! -s conftest.err
16612        } && test -s conftest.$ac_objext; then
16613   ac_cv_c_inline=$ac_kw
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618
16619 fi
16620
16621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622   test "$ac_cv_c_inline" != no && break
16623 done
16624
16625 fi
16626 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16627 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16628
16629
16630 case $ac_cv_c_inline in
16631   inline | yes) ;;
16632   *)
16633     case $ac_cv_c_inline in
16634       no) ac_val=;;
16635       *) ac_val=$ac_cv_c_inline;;
16636     esac
16637     cat >>confdefs.h <<_ACEOF
16638 #ifndef __cplusplus
16639 #define inline $ac_val
16640 #endif
16641 _ACEOF
16642     ;;
16643 esac
16644
16645 { echo "$as_me:$LINENO: checking for mode_t" >&5
16646 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
16647 if test "${ac_cv_type_mode_t+set}" = set; then
16648   echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650   cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h.  */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h.  */
16656 $ac_includes_default
16657 typedef mode_t ac__type_new_;
16658 int
16659 main ()
16660 {
16661 if ((ac__type_new_ *) 0)
16662   return 0;
16663 if (sizeof (ac__type_new_))
16664   return 0;
16665   ;
16666   return 0;
16667 }
16668 _ACEOF
16669 rm -f conftest.$ac_objext
16670 if { (ac_try="$ac_compile"
16671 case "(($ac_try" in
16672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673   *) ac_try_echo=$ac_try;;
16674 esac
16675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676   (eval "$ac_compile") 2>conftest.er1
16677   ac_status=$?
16678   grep -v '^ *+' conftest.er1 >conftest.err
16679   rm -f conftest.er1
16680   cat conftest.err >&5
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); } && {
16683          test -z "$ac_c_werror_flag" ||
16684          test ! -s conftest.err
16685        } && test -s conftest.$ac_objext; then
16686   ac_cv_type_mode_t=yes
16687 else
16688   echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16690
16691         ac_cv_type_mode_t=no
16692 fi
16693
16694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16695 fi
16696 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16697 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
16698 if test $ac_cv_type_mode_t = yes; then
16699
16700 cat >>confdefs.h <<_ACEOF
16701 #define HAVE_MODE_T 1
16702 _ACEOF
16703
16704
16705 fi
16706 { echo "$as_me:$LINENO: checking for off_t" >&5
16707 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
16708 if test "${ac_cv_type_off_t+set}" = set; then
16709   echo $ECHO_N "(cached) $ECHO_C" >&6
16710 else
16711   cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h.  */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h.  */
16717 $ac_includes_default
16718 typedef off_t ac__type_new_;
16719 int
16720 main ()
16721 {
16722 if ((ac__type_new_ *) 0)
16723   return 0;
16724 if (sizeof (ac__type_new_))
16725   return 0;
16726   ;
16727   return 0;
16728 }
16729 _ACEOF
16730 rm -f conftest.$ac_objext
16731 if { (ac_try="$ac_compile"
16732 case "(($ac_try" in
16733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734   *) ac_try_echo=$ac_try;;
16735 esac
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737   (eval "$ac_compile") 2>conftest.er1
16738   ac_status=$?
16739   grep -v '^ *+' conftest.er1 >conftest.err
16740   rm -f conftest.er1
16741   cat conftest.err >&5
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); } && {
16744          test -z "$ac_c_werror_flag" ||
16745          test ! -s conftest.err
16746        } && test -s conftest.$ac_objext; then
16747   ac_cv_type_off_t=yes
16748 else
16749   echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752         ac_cv_type_off_t=no
16753 fi
16754
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 fi
16757 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16758 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
16759 if test $ac_cv_type_off_t = yes; then
16760
16761 cat >>confdefs.h <<_ACEOF
16762 #define HAVE_OFF_T 1
16763 _ACEOF
16764
16765
16766 fi
16767 { echo "$as_me:$LINENO: checking for pid_t" >&5
16768 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16769 if test "${ac_cv_type_pid_t+set}" = set; then
16770   echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772   cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h.  */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h.  */
16778 $ac_includes_default
16779 typedef pid_t ac__type_new_;
16780 int
16781 main ()
16782 {
16783 if ((ac__type_new_ *) 0)
16784   return 0;
16785 if (sizeof (ac__type_new_))
16786   return 0;
16787   ;
16788   return 0;
16789 }
16790 _ACEOF
16791 rm -f conftest.$ac_objext
16792 if { (ac_try="$ac_compile"
16793 case "(($ac_try" in
16794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795   *) ac_try_echo=$ac_try;;
16796 esac
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798   (eval "$ac_compile") 2>conftest.er1
16799   ac_status=$?
16800   grep -v '^ *+' conftest.er1 >conftest.err
16801   rm -f conftest.er1
16802   cat conftest.err >&5
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } && {
16805          test -z "$ac_c_werror_flag" ||
16806          test ! -s conftest.err
16807        } && test -s conftest.$ac_objext; then
16808   ac_cv_type_pid_t=yes
16809 else
16810   echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16812
16813         ac_cv_type_pid_t=no
16814 fi
16815
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817 fi
16818 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16819 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16820 if test $ac_cv_type_pid_t = yes; then
16821
16822 cat >>confdefs.h <<_ACEOF
16823 #define HAVE_PID_T 1
16824 _ACEOF
16825
16826
16827 fi
16828 { echo "$as_me:$LINENO: checking for size_t" >&5
16829 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16830 if test "${ac_cv_type_size_t+set}" = set; then
16831   echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833   cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h.  */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h.  */
16839 $ac_includes_default
16840 typedef size_t ac__type_new_;
16841 int
16842 main ()
16843 {
16844 if ((ac__type_new_ *) 0)
16845   return 0;
16846 if (sizeof (ac__type_new_))
16847   return 0;
16848   ;
16849   return 0;
16850 }
16851 _ACEOF
16852 rm -f conftest.$ac_objext
16853 if { (ac_try="$ac_compile"
16854 case "(($ac_try" in
16855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856   *) ac_try_echo=$ac_try;;
16857 esac
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859   (eval "$ac_compile") 2>conftest.er1
16860   ac_status=$?
16861   grep -v '^ *+' conftest.er1 >conftest.err
16862   rm -f conftest.er1
16863   cat conftest.err >&5
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); } && {
16866          test -z "$ac_c_werror_flag" ||
16867          test ! -s conftest.err
16868        } && test -s conftest.$ac_objext; then
16869   ac_cv_type_size_t=yes
16870 else
16871   echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16873
16874         ac_cv_type_size_t=no
16875 fi
16876
16877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16878 fi
16879 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16880 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16881 if test $ac_cv_type_size_t = yes; then
16882
16883 cat >>confdefs.h <<_ACEOF
16884 #define HAVE_SIZE_T 1
16885 _ACEOF
16886
16887
16888 fi
16889 { echo "$as_me:$LINENO: checking for ssize_t" >&5
16890 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
16891 if test "${ac_cv_type_ssize_t+set}" = set; then
16892   echo $ECHO_N "(cached) $ECHO_C" >&6
16893 else
16894   cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900 $ac_includes_default
16901 typedef ssize_t ac__type_new_;
16902 int
16903 main ()
16904 {
16905 if ((ac__type_new_ *) 0)
16906   return 0;
16907 if (sizeof (ac__type_new_))
16908   return 0;
16909   ;
16910   return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest.$ac_objext
16914 if { (ac_try="$ac_compile"
16915 case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_compile") 2>conftest.er1
16921   ac_status=$?
16922   grep -v '^ *+' conftest.er1 >conftest.err
16923   rm -f conftest.er1
16924   cat conftest.err >&5
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); } && {
16927          test -z "$ac_c_werror_flag" ||
16928          test ! -s conftest.err
16929        } && test -s conftest.$ac_objext; then
16930   ac_cv_type_ssize_t=yes
16931 else
16932   echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935         ac_cv_type_ssize_t=no
16936 fi
16937
16938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16939 fi
16940 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16941 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
16942 if test $ac_cv_type_ssize_t = yes; then
16943
16944 cat >>confdefs.h <<_ACEOF
16945 #define HAVE_SSIZE_T 1
16946 _ACEOF
16947
16948
16949 fi
16950 { echo "$as_me:$LINENO: checking for long long" >&5
16951 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
16952 if test "${ac_cv_type_long_long+set}" = set; then
16953   echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955   cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961 $ac_includes_default
16962 typedef long long ac__type_new_;
16963 int
16964 main ()
16965 {
16966 if ((ac__type_new_ *) 0)
16967   return 0;
16968 if (sizeof (ac__type_new_))
16969   return 0;
16970   ;
16971   return 0;
16972 }
16973 _ACEOF
16974 rm -f conftest.$ac_objext
16975 if { (ac_try="$ac_compile"
16976 case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_compile") 2>conftest.er1
16982   ac_status=$?
16983   grep -v '^ *+' conftest.er1 >conftest.err
16984   rm -f conftest.er1
16985   cat conftest.err >&5
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); } && {
16988          test -z "$ac_c_werror_flag" ||
16989          test ! -s conftest.err
16990        } && test -s conftest.$ac_objext; then
16991   ac_cv_type_long_long=yes
16992 else
16993   echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996         ac_cv_type_long_long=no
16997 fi
16998
16999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17000 fi
17001 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17002 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
17003 if test $ac_cv_type_long_long = yes; then
17004
17005 cat >>confdefs.h <<_ACEOF
17006 #define HAVE_LONG_LONG 1
17007 _ACEOF
17008
17009
17010 fi
17011 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17012 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
17013 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   cat >conftest.$ac_ext <<_ACEOF
17017 /* confdefs.h.  */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h.  */
17022 $ac_includes_default
17023 typedef fsblkcnt_t ac__type_new_;
17024 int
17025 main ()
17026 {
17027 if ((ac__type_new_ *) 0)
17028   return 0;
17029 if (sizeof (ac__type_new_))
17030   return 0;
17031   ;
17032   return 0;
17033 }
17034 _ACEOF
17035 rm -f conftest.$ac_objext
17036 if { (ac_try="$ac_compile"
17037 case "(($ac_try" in
17038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039   *) ac_try_echo=$ac_try;;
17040 esac
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042   (eval "$ac_compile") 2>conftest.er1
17043   ac_status=$?
17044   grep -v '^ *+' conftest.er1 >conftest.err
17045   rm -f conftest.er1
17046   cat conftest.err >&5
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); } && {
17049          test -z "$ac_c_werror_flag" ||
17050          test ! -s conftest.err
17051        } && test -s conftest.$ac_objext; then
17052   ac_cv_type_fsblkcnt_t=yes
17053 else
17054   echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17056
17057         ac_cv_type_fsblkcnt_t=no
17058 fi
17059
17060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17061 fi
17062 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17063 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
17064 if test $ac_cv_type_fsblkcnt_t = yes; then
17065
17066 cat >>confdefs.h <<_ACEOF
17067 #define HAVE_FSBLKCNT_T 1
17068 _ACEOF
17069
17070
17071 fi
17072 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17073 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
17074 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17075   echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17077   cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h.  */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h.  */
17083 $ac_includes_default
17084 typedef fsfilcnt_t ac__type_new_;
17085 int
17086 main ()
17087 {
17088 if ((ac__type_new_ *) 0)
17089   return 0;
17090 if (sizeof (ac__type_new_))
17091   return 0;
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext
17097 if { (ac_try="$ac_compile"
17098 case "(($ac_try" in
17099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100   *) ac_try_echo=$ac_try;;
17101 esac
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103   (eval "$ac_compile") 2>conftest.er1
17104   ac_status=$?
17105   grep -v '^ *+' conftest.er1 >conftest.err
17106   rm -f conftest.er1
17107   cat conftest.err >&5
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); } && {
17110          test -z "$ac_c_werror_flag" ||
17111          test ! -s conftest.err
17112        } && test -s conftest.$ac_objext; then
17113   ac_cv_type_fsfilcnt_t=yes
17114 else
17115   echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118         ac_cv_type_fsfilcnt_t=no
17119 fi
17120
17121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17122 fi
17123 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17124 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
17125 if test $ac_cv_type_fsfilcnt_t = yes; then
17126
17127 cat >>confdefs.h <<_ACEOF
17128 #define HAVE_FSFILCNT_T 1
17129 _ACEOF
17130
17131
17132 fi
17133
17134 { echo "$as_me:$LINENO: checking for sigset_t" >&5
17135 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
17136 if test "${ac_cv_type_sigset_t+set}" = set; then
17137   echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139   cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h.  */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h.  */
17145 #include <signal.h>
17146
17147 typedef sigset_t ac__type_new_;
17148 int
17149 main ()
17150 {
17151 if ((ac__type_new_ *) 0)
17152   return 0;
17153 if (sizeof (ac__type_new_))
17154   return 0;
17155   ;
17156   return 0;
17157 }
17158 _ACEOF
17159 rm -f conftest.$ac_objext
17160 if { (ac_try="$ac_compile"
17161 case "(($ac_try" in
17162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163   *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166   (eval "$ac_compile") 2>conftest.er1
17167   ac_status=$?
17168   grep -v '^ *+' conftest.er1 >conftest.err
17169   rm -f conftest.er1
17170   cat conftest.err >&5
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); } && {
17173          test -z "$ac_c_werror_flag" ||
17174          test ! -s conftest.err
17175        } && test -s conftest.$ac_objext; then
17176   ac_cv_type_sigset_t=yes
17177 else
17178   echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17180
17181         ac_cv_type_sigset_t=no
17182 fi
17183
17184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17185 fi
17186 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17187 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
17188 if test $ac_cv_type_sigset_t = yes; then
17189
17190 cat >>confdefs.h <<_ACEOF
17191 #define HAVE_SIGSET_T 1
17192 _ACEOF
17193
17194
17195 fi
17196
17197 { echo "$as_me:$LINENO: checking for request_sense" >&5
17198 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
17199 if test "${ac_cv_type_request_sense+set}" = set; then
17200   echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202   cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h.  */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h.  */
17208 #include <linux/cdrom.h>
17209
17210 typedef request_sense ac__type_new_;
17211 int
17212 main ()
17213 {
17214 if ((ac__type_new_ *) 0)
17215   return 0;
17216 if (sizeof (ac__type_new_))
17217   return 0;
17218   ;
17219   return 0;
17220 }
17221 _ACEOF
17222 rm -f conftest.$ac_objext
17223 if { (ac_try="$ac_compile"
17224 case "(($ac_try" in
17225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226   *) ac_try_echo=$ac_try;;
17227 esac
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229   (eval "$ac_compile") 2>conftest.er1
17230   ac_status=$?
17231   grep -v '^ *+' conftest.er1 >conftest.err
17232   rm -f conftest.er1
17233   cat conftest.err >&5
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); } && {
17236          test -z "$ac_c_werror_flag" ||
17237          test ! -s conftest.err
17238        } && test -s conftest.$ac_objext; then
17239   ac_cv_type_request_sense=yes
17240 else
17241   echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17243
17244         ac_cv_type_request_sense=no
17245 fi
17246
17247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17248 fi
17249 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17250 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
17251 if test $ac_cv_type_request_sense = yes; then
17252
17253 cat >>confdefs.h <<_ACEOF
17254 #define HAVE_REQUEST_SENSE 1
17255 _ACEOF
17256
17257
17258 fi
17259
17260
17261 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
17262 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
17263 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
17264   echo $ECHO_N "(cached) $ECHO_C" >&6
17265 else
17266   cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h.  */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h.  */
17272 #ifdef HAVE_LINUX_INPUT_H
17273 #include <linux/input.h>
17274 #endif
17275
17276 int
17277 main ()
17278 {
17279 static struct ff_effect ac_aggr;
17280 if (ac_aggr.direction)
17281 return 0;
17282   ;
17283   return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext
17287 if { (ac_try="$ac_compile"
17288 case "(($ac_try" in
17289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290   *) ac_try_echo=$ac_try;;
17291 esac
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293   (eval "$ac_compile") 2>conftest.er1
17294   ac_status=$?
17295   grep -v '^ *+' conftest.er1 >conftest.err
17296   rm -f conftest.er1
17297   cat conftest.err >&5
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); } && {
17300          test -z "$ac_c_werror_flag" ||
17301          test ! -s conftest.err
17302        } && test -s conftest.$ac_objext; then
17303   ac_cv_member_struct_ff_effect_direction=yes
17304 else
17305   echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17307
17308         cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h.  */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h.  */
17314 #ifdef HAVE_LINUX_INPUT_H
17315 #include <linux/input.h>
17316 #endif
17317
17318 int
17319 main ()
17320 {
17321 static struct ff_effect ac_aggr;
17322 if (sizeof ac_aggr.direction)
17323 return 0;
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext
17329 if { (ac_try="$ac_compile"
17330 case "(($ac_try" in
17331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332   *) ac_try_echo=$ac_try;;
17333 esac
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335   (eval "$ac_compile") 2>conftest.er1
17336   ac_status=$?
17337   grep -v '^ *+' conftest.er1 >conftest.err
17338   rm -f conftest.er1
17339   cat conftest.err >&5
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); } && {
17342          test -z "$ac_c_werror_flag" ||
17343          test ! -s conftest.err
17344        } && test -s conftest.$ac_objext; then
17345   ac_cv_member_struct_ff_effect_direction=yes
17346 else
17347   echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17349
17350         ac_cv_member_struct_ff_effect_direction=no
17351 fi
17352
17353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17354 fi
17355
17356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17357 fi
17358 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
17359 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
17360 if test $ac_cv_member_struct_ff_effect_direction = yes; then
17361
17362 cat >>confdefs.h <<_ACEOF
17363 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
17364 _ACEOF
17365
17366
17367 fi
17368
17369
17370 { echo "$as_me:$LINENO: checking for sigaddset" >&5
17371 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
17372 if test "${wine_cv_have_sigaddset+set}" = set; then
17373   echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375   cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h.  */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h.  */
17381 #include <signal.h>
17382 int
17383 main ()
17384 {
17385 sigset_t set; sigaddset(&set,SIGTERM);
17386   ;
17387   return 0;
17388 }
17389 _ACEOF
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (ac_try="$ac_link"
17392 case "(($ac_try" in
17393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394   *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397   (eval "$ac_link") 2>conftest.er1
17398   ac_status=$?
17399   grep -v '^ *+' conftest.er1 >conftest.err
17400   rm -f conftest.er1
17401   cat conftest.err >&5
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); } && {
17404          test -z "$ac_c_werror_flag" ||
17405          test ! -s conftest.err
17406        } && test -s conftest$ac_exeext &&
17407        $as_test_x conftest$ac_exeext; then
17408   wine_cv_have_sigaddset=yes
17409 else
17410   echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17412
17413         wine_cv_have_sigaddset=no
17414 fi
17415
17416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17417       conftest$ac_exeext conftest.$ac_ext
17418 fi
17419 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17420 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
17421 if test "$wine_cv_have_sigaddset" = "yes"
17422 then
17423
17424 cat >>confdefs.h <<\_ACEOF
17425 #define HAVE_SIGADDSET 1
17426 _ACEOF
17427
17428 fi
17429
17430
17431 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17432 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
17433 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17434   echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436   cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h.  */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h.  */
17442 #include <netdb.h>
17443 int
17444 main ()
17445 {
17446
17447     char *name=NULL;
17448     struct hostent he;
17449     struct hostent *result;
17450     char *buf=NULL;
17451     int bufsize=0;
17452     int res,errnr;
17453     char *addr=NULL;
17454     int addrlen=0;
17455     int addrtype=0;
17456     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17457     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17458
17459   ;
17460   return 0;
17461 }
17462 _ACEOF
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (ac_try="$ac_link"
17465 case "(($ac_try" in
17466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467   *) ac_try_echo=$ac_try;;
17468 esac
17469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470   (eval "$ac_link") 2>conftest.er1
17471   ac_status=$?
17472   grep -v '^ *+' conftest.er1 >conftest.err
17473   rm -f conftest.er1
17474   cat conftest.err >&5
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); } && {
17477          test -z "$ac_c_werror_flag" ||
17478          test ! -s conftest.err
17479        } && test -s conftest$ac_exeext &&
17480        $as_test_x conftest$ac_exeext; then
17481   wine_cv_linux_gethostbyname_r_6=yes
17482 else
17483   echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17485
17486         wine_cv_linux_gethostbyname_r_6=no
17487
17488 fi
17489
17490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17491       conftest$ac_exeext conftest.$ac_ext
17492
17493 fi
17494 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17495 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
17496    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17497    then
17498
17499 cat >>confdefs.h <<\_ACEOF
17500 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17501 _ACEOF
17502
17503    fi
17504
17505 if test "$ac_cv_header_linux_joystick_h" = "yes"
17506 then
17507    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17508 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
17509 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17510   echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512   cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h.  */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h.  */
17518
17519         #include <sys/ioctl.h>
17520         #include <sys/types.h>
17521         #include <linux/joystick.h>
17522
17523         struct js_event blub;
17524         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17525         #error "no 2.2 header"
17526         #endif
17527
17528 int
17529 main ()
17530 {
17531 /*empty*/
17532   ;
17533   return 0;
17534 }
17535 _ACEOF
17536 rm -f conftest.$ac_objext
17537 if { (ac_try="$ac_compile"
17538 case "(($ac_try" in
17539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540   *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543   (eval "$ac_compile") 2>conftest.er1
17544   ac_status=$?
17545   grep -v '^ *+' conftest.er1 >conftest.err
17546   rm -f conftest.er1
17547   cat conftest.err >&5
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); } && {
17550          test -z "$ac_c_werror_flag" ||
17551          test ! -s conftest.err
17552        } && test -s conftest.$ac_objext; then
17553   wine_cv_linux_joystick_22_api=yes
17554 else
17555   echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17557
17558         wine_cv_linux_joystick_22_api=no
17559 fi
17560
17561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17562
17563 fi
17564 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17565 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
17566    if test "$wine_cv_linux_joystick_22_api" = "yes"
17567    then
17568
17569 cat >>confdefs.h <<\_ACEOF
17570 #define HAVE_LINUX_22_JOYSTICK_API 1
17571 _ACEOF
17572
17573    fi
17574 fi
17575
17576
17577 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17578 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
17579 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17580   echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582   cat >conftest.$ac_ext <<_ACEOF
17583 /* confdefs.h.  */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h.  */
17588 #include <sys/types.h>
17589 #ifdef HAVE_SYS_PARAM_H
17590 # include <sys/param.h>
17591 #endif
17592 #ifdef HAVE_SYS_MOUNT_H
17593 # include <sys/mount.h>
17594 #endif
17595 #ifdef HAVE_SYS_VFS_H
17596 # include <sys/vfs.h>
17597 #endif
17598 #ifdef HAVE_SYS_STATFS_H
17599 # include <sys/statfs.h>
17600 #endif
17601
17602 int
17603 main ()
17604 {
17605 static struct statfs ac_aggr;
17606 if (ac_aggr.f_bfree)
17607 return 0;
17608   ;
17609   return 0;
17610 }
17611 _ACEOF
17612 rm -f conftest.$ac_objext
17613 if { (ac_try="$ac_compile"
17614 case "(($ac_try" in
17615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616   *) ac_try_echo=$ac_try;;
17617 esac
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619   (eval "$ac_compile") 2>conftest.er1
17620   ac_status=$?
17621   grep -v '^ *+' conftest.er1 >conftest.err
17622   rm -f conftest.er1
17623   cat conftest.err >&5
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } && {
17626          test -z "$ac_c_werror_flag" ||
17627          test ! -s conftest.err
17628        } && test -s conftest.$ac_objext; then
17629   ac_cv_member_struct_statfs_f_bfree=yes
17630 else
17631   echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17633
17634         cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h.  */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h.  */
17640 #include <sys/types.h>
17641 #ifdef HAVE_SYS_PARAM_H
17642 # include <sys/param.h>
17643 #endif
17644 #ifdef HAVE_SYS_MOUNT_H
17645 # include <sys/mount.h>
17646 #endif
17647 #ifdef HAVE_SYS_VFS_H
17648 # include <sys/vfs.h>
17649 #endif
17650 #ifdef HAVE_SYS_STATFS_H
17651 # include <sys/statfs.h>
17652 #endif
17653
17654 int
17655 main ()
17656 {
17657 static struct statfs ac_aggr;
17658 if (sizeof ac_aggr.f_bfree)
17659 return 0;
17660   ;
17661   return 0;
17662 }
17663 _ACEOF
17664 rm -f conftest.$ac_objext
17665 if { (ac_try="$ac_compile"
17666 case "(($ac_try" in
17667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668   *) ac_try_echo=$ac_try;;
17669 esac
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671   (eval "$ac_compile") 2>conftest.er1
17672   ac_status=$?
17673   grep -v '^ *+' conftest.er1 >conftest.err
17674   rm -f conftest.er1
17675   cat conftest.err >&5
17676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); } && {
17678          test -z "$ac_c_werror_flag" ||
17679          test ! -s conftest.err
17680        } && test -s conftest.$ac_objext; then
17681   ac_cv_member_struct_statfs_f_bfree=yes
17682 else
17683   echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17685
17686         ac_cv_member_struct_statfs_f_bfree=no
17687 fi
17688
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17690 fi
17691
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 fi
17694 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17695 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
17696 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17697
17698 cat >>confdefs.h <<_ACEOF
17699 #define HAVE_STRUCT_STATFS_F_BFREE 1
17700 _ACEOF
17701
17702
17703 fi
17704 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17705 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
17706 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17707   echo $ECHO_N "(cached) $ECHO_C" >&6
17708 else
17709   cat >conftest.$ac_ext <<_ACEOF
17710 /* confdefs.h.  */
17711 _ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h.  */
17715 #include <sys/types.h>
17716 #ifdef HAVE_SYS_PARAM_H
17717 # include <sys/param.h>
17718 #endif
17719 #ifdef HAVE_SYS_MOUNT_H
17720 # include <sys/mount.h>
17721 #endif
17722 #ifdef HAVE_SYS_VFS_H
17723 # include <sys/vfs.h>
17724 #endif
17725 #ifdef HAVE_SYS_STATFS_H
17726 # include <sys/statfs.h>
17727 #endif
17728
17729 int
17730 main ()
17731 {
17732 static struct statfs ac_aggr;
17733 if (ac_aggr.f_bavail)
17734 return 0;
17735   ;
17736   return 0;
17737 }
17738 _ACEOF
17739 rm -f conftest.$ac_objext
17740 if { (ac_try="$ac_compile"
17741 case "(($ac_try" in
17742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743   *) ac_try_echo=$ac_try;;
17744 esac
17745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746   (eval "$ac_compile") 2>conftest.er1
17747   ac_status=$?
17748   grep -v '^ *+' conftest.er1 >conftest.err
17749   rm -f conftest.er1
17750   cat conftest.err >&5
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); } && {
17753          test -z "$ac_c_werror_flag" ||
17754          test ! -s conftest.err
17755        } && test -s conftest.$ac_objext; then
17756   ac_cv_member_struct_statfs_f_bavail=yes
17757 else
17758   echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761         cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h.  */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h.  */
17767 #include <sys/types.h>
17768 #ifdef HAVE_SYS_PARAM_H
17769 # include <sys/param.h>
17770 #endif
17771 #ifdef HAVE_SYS_MOUNT_H
17772 # include <sys/mount.h>
17773 #endif
17774 #ifdef HAVE_SYS_VFS_H
17775 # include <sys/vfs.h>
17776 #endif
17777 #ifdef HAVE_SYS_STATFS_H
17778 # include <sys/statfs.h>
17779 #endif
17780
17781 int
17782 main ()
17783 {
17784 static struct statfs ac_aggr;
17785 if (sizeof ac_aggr.f_bavail)
17786 return 0;
17787   ;
17788   return 0;
17789 }
17790 _ACEOF
17791 rm -f conftest.$ac_objext
17792 if { (ac_try="$ac_compile"
17793 case "(($ac_try" in
17794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795   *) ac_try_echo=$ac_try;;
17796 esac
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798   (eval "$ac_compile") 2>conftest.er1
17799   ac_status=$?
17800   grep -v '^ *+' conftest.er1 >conftest.err
17801   rm -f conftest.er1
17802   cat conftest.err >&5
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); } && {
17805          test -z "$ac_c_werror_flag" ||
17806          test ! -s conftest.err
17807        } && test -s conftest.$ac_objext; then
17808   ac_cv_member_struct_statfs_f_bavail=yes
17809 else
17810   echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17812
17813         ac_cv_member_struct_statfs_f_bavail=no
17814 fi
17815
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17817 fi
17818
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820 fi
17821 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17822 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
17823 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17824
17825 cat >>confdefs.h <<_ACEOF
17826 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17827 _ACEOF
17828
17829
17830 fi
17831 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17832 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
17833 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17834   echo $ECHO_N "(cached) $ECHO_C" >&6
17835 else
17836   cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h.  */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h.  */
17842 #include <sys/types.h>
17843 #ifdef HAVE_SYS_PARAM_H
17844 # include <sys/param.h>
17845 #endif
17846 #ifdef HAVE_SYS_MOUNT_H
17847 # include <sys/mount.h>
17848 #endif
17849 #ifdef HAVE_SYS_VFS_H
17850 # include <sys/vfs.h>
17851 #endif
17852 #ifdef HAVE_SYS_STATFS_H
17853 # include <sys/statfs.h>
17854 #endif
17855
17856 int
17857 main ()
17858 {
17859 static struct statfs ac_aggr;
17860 if (ac_aggr.f_frsize)
17861 return 0;
17862   ;
17863   return 0;
17864 }
17865 _ACEOF
17866 rm -f conftest.$ac_objext
17867 if { (ac_try="$ac_compile"
17868 case "(($ac_try" in
17869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870   *) ac_try_echo=$ac_try;;
17871 esac
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873   (eval "$ac_compile") 2>conftest.er1
17874   ac_status=$?
17875   grep -v '^ *+' conftest.er1 >conftest.err
17876   rm -f conftest.er1
17877   cat conftest.err >&5
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); } && {
17880          test -z "$ac_c_werror_flag" ||
17881          test ! -s conftest.err
17882        } && test -s conftest.$ac_objext; then
17883   ac_cv_member_struct_statfs_f_frsize=yes
17884 else
17885   echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888         cat >conftest.$ac_ext <<_ACEOF
17889 /* confdefs.h.  */
17890 _ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h.  */
17894 #include <sys/types.h>
17895 #ifdef HAVE_SYS_PARAM_H
17896 # include <sys/param.h>
17897 #endif
17898 #ifdef HAVE_SYS_MOUNT_H
17899 # include <sys/mount.h>
17900 #endif
17901 #ifdef HAVE_SYS_VFS_H
17902 # include <sys/vfs.h>
17903 #endif
17904 #ifdef HAVE_SYS_STATFS_H
17905 # include <sys/statfs.h>
17906 #endif
17907
17908 int
17909 main ()
17910 {
17911 static struct statfs ac_aggr;
17912 if (sizeof ac_aggr.f_frsize)
17913 return 0;
17914   ;
17915   return 0;
17916 }
17917 _ACEOF
17918 rm -f conftest.$ac_objext
17919 if { (ac_try="$ac_compile"
17920 case "(($ac_try" in
17921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922   *) ac_try_echo=$ac_try;;
17923 esac
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925   (eval "$ac_compile") 2>conftest.er1
17926   ac_status=$?
17927   grep -v '^ *+' conftest.er1 >conftest.err
17928   rm -f conftest.er1
17929   cat conftest.err >&5
17930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931   (exit $ac_status); } && {
17932          test -z "$ac_c_werror_flag" ||
17933          test ! -s conftest.err
17934        } && test -s conftest.$ac_objext; then
17935   ac_cv_member_struct_statfs_f_frsize=yes
17936 else
17937   echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940         ac_cv_member_struct_statfs_f_frsize=no
17941 fi
17942
17943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944 fi
17945
17946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17947 fi
17948 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
17949 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
17950 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
17951
17952 cat >>confdefs.h <<_ACEOF
17953 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
17954 _ACEOF
17955
17956
17957 fi
17958 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
17959 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
17960 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
17961   echo $ECHO_N "(cached) $ECHO_C" >&6
17962 else
17963   cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h.  */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h.  */
17969 #include <sys/types.h>
17970 #ifdef HAVE_SYS_PARAM_H
17971 # include <sys/param.h>
17972 #endif
17973 #ifdef HAVE_SYS_MOUNT_H
17974 # include <sys/mount.h>
17975 #endif
17976 #ifdef HAVE_SYS_VFS_H
17977 # include <sys/vfs.h>
17978 #endif
17979 #ifdef HAVE_SYS_STATFS_H
17980 # include <sys/statfs.h>
17981 #endif
17982
17983 int
17984 main ()
17985 {
17986 static struct statfs ac_aggr;
17987 if (ac_aggr.f_ffree)
17988 return 0;
17989   ;
17990   return 0;
17991 }
17992 _ACEOF
17993 rm -f conftest.$ac_objext
17994 if { (ac_try="$ac_compile"
17995 case "(($ac_try" in
17996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997   *) ac_try_echo=$ac_try;;
17998 esac
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000   (eval "$ac_compile") 2>conftest.er1
18001   ac_status=$?
18002   grep -v '^ *+' conftest.er1 >conftest.err
18003   rm -f conftest.er1
18004   cat conftest.err >&5
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); } && {
18007          test -z "$ac_c_werror_flag" ||
18008          test ! -s conftest.err
18009        } && test -s conftest.$ac_objext; then
18010   ac_cv_member_struct_statfs_f_ffree=yes
18011 else
18012   echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18014
18015         cat >conftest.$ac_ext <<_ACEOF
18016 /* confdefs.h.  */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h.  */
18021 #include <sys/types.h>
18022 #ifdef HAVE_SYS_PARAM_H
18023 # include <sys/param.h>
18024 #endif
18025 #ifdef HAVE_SYS_MOUNT_H
18026 # include <sys/mount.h>
18027 #endif
18028 #ifdef HAVE_SYS_VFS_H
18029 # include <sys/vfs.h>
18030 #endif
18031 #ifdef HAVE_SYS_STATFS_H
18032 # include <sys/statfs.h>
18033 #endif
18034
18035 int
18036 main ()
18037 {
18038 static struct statfs ac_aggr;
18039 if (sizeof ac_aggr.f_ffree)
18040 return 0;
18041   ;
18042   return 0;
18043 }
18044 _ACEOF
18045 rm -f conftest.$ac_objext
18046 if { (ac_try="$ac_compile"
18047 case "(($ac_try" in
18048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049   *) ac_try_echo=$ac_try;;
18050 esac
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052   (eval "$ac_compile") 2>conftest.er1
18053   ac_status=$?
18054   grep -v '^ *+' conftest.er1 >conftest.err
18055   rm -f conftest.er1
18056   cat conftest.err >&5
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); } && {
18059          test -z "$ac_c_werror_flag" ||
18060          test ! -s conftest.err
18061        } && test -s conftest.$ac_objext; then
18062   ac_cv_member_struct_statfs_f_ffree=yes
18063 else
18064   echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18066
18067         ac_cv_member_struct_statfs_f_ffree=no
18068 fi
18069
18070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18071 fi
18072
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074 fi
18075 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18076 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
18077 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18078
18079 cat >>confdefs.h <<_ACEOF
18080 #define HAVE_STRUCT_STATFS_F_FFREE 1
18081 _ACEOF
18082
18083
18084 fi
18085 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18086 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
18087 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18088   echo $ECHO_N "(cached) $ECHO_C" >&6
18089 else
18090   cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h.  */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h.  */
18096 #include <sys/types.h>
18097 #ifdef HAVE_SYS_PARAM_H
18098 # include <sys/param.h>
18099 #endif
18100 #ifdef HAVE_SYS_MOUNT_H
18101 # include <sys/mount.h>
18102 #endif
18103 #ifdef HAVE_SYS_VFS_H
18104 # include <sys/vfs.h>
18105 #endif
18106 #ifdef HAVE_SYS_STATFS_H
18107 # include <sys/statfs.h>
18108 #endif
18109
18110 int
18111 main ()
18112 {
18113 static struct statfs ac_aggr;
18114 if (ac_aggr.f_favail)
18115 return 0;
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 rm -f conftest.$ac_objext
18121 if { (ac_try="$ac_compile"
18122 case "(($ac_try" in
18123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124   *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127   (eval "$ac_compile") 2>conftest.er1
18128   ac_status=$?
18129   grep -v '^ *+' conftest.er1 >conftest.err
18130   rm -f conftest.er1
18131   cat conftest.err >&5
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); } && {
18134          test -z "$ac_c_werror_flag" ||
18135          test ! -s conftest.err
18136        } && test -s conftest.$ac_objext; then
18137   ac_cv_member_struct_statfs_f_favail=yes
18138 else
18139   echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142         cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h.  */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h.  */
18148 #include <sys/types.h>
18149 #ifdef HAVE_SYS_PARAM_H
18150 # include <sys/param.h>
18151 #endif
18152 #ifdef HAVE_SYS_MOUNT_H
18153 # include <sys/mount.h>
18154 #endif
18155 #ifdef HAVE_SYS_VFS_H
18156 # include <sys/vfs.h>
18157 #endif
18158 #ifdef HAVE_SYS_STATFS_H
18159 # include <sys/statfs.h>
18160 #endif
18161
18162 int
18163 main ()
18164 {
18165 static struct statfs ac_aggr;
18166 if (sizeof ac_aggr.f_favail)
18167 return 0;
18168   ;
18169   return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext
18173 if { (ac_try="$ac_compile"
18174 case "(($ac_try" in
18175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176   *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179   (eval "$ac_compile") 2>conftest.er1
18180   ac_status=$?
18181   grep -v '^ *+' conftest.er1 >conftest.err
18182   rm -f conftest.er1
18183   cat conftest.err >&5
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); } && {
18186          test -z "$ac_c_werror_flag" ||
18187          test ! -s conftest.err
18188        } && test -s conftest.$ac_objext; then
18189   ac_cv_member_struct_statfs_f_favail=yes
18190 else
18191   echo "$as_me: failed program was:" >&5
18192 sed 's/^/| /' conftest.$ac_ext >&5
18193
18194         ac_cv_member_struct_statfs_f_favail=no
18195 fi
18196
18197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198 fi
18199
18200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18201 fi
18202 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18203 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
18204 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18205
18206 cat >>confdefs.h <<_ACEOF
18207 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18208 _ACEOF
18209
18210
18211 fi
18212 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18213 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
18214 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18215   echo $ECHO_N "(cached) $ECHO_C" >&6
18216 else
18217   cat >conftest.$ac_ext <<_ACEOF
18218 /* confdefs.h.  */
18219 _ACEOF
18220 cat confdefs.h >>conftest.$ac_ext
18221 cat >>conftest.$ac_ext <<_ACEOF
18222 /* end confdefs.h.  */
18223 #include <sys/types.h>
18224 #ifdef HAVE_SYS_PARAM_H
18225 # include <sys/param.h>
18226 #endif
18227 #ifdef HAVE_SYS_MOUNT_H
18228 # include <sys/mount.h>
18229 #endif
18230 #ifdef HAVE_SYS_VFS_H
18231 # include <sys/vfs.h>
18232 #endif
18233 #ifdef HAVE_SYS_STATFS_H
18234 # include <sys/statfs.h>
18235 #endif
18236
18237 int
18238 main ()
18239 {
18240 static struct statfs ac_aggr;
18241 if (ac_aggr.f_namelen)
18242 return 0;
18243   ;
18244   return 0;
18245 }
18246 _ACEOF
18247 rm -f conftest.$ac_objext
18248 if { (ac_try="$ac_compile"
18249 case "(($ac_try" in
18250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251   *) ac_try_echo=$ac_try;;
18252 esac
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254   (eval "$ac_compile") 2>conftest.er1
18255   ac_status=$?
18256   grep -v '^ *+' conftest.er1 >conftest.err
18257   rm -f conftest.er1
18258   cat conftest.err >&5
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); } && {
18261          test -z "$ac_c_werror_flag" ||
18262          test ! -s conftest.err
18263        } && test -s conftest.$ac_objext; then
18264   ac_cv_member_struct_statfs_f_namelen=yes
18265 else
18266   echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18268
18269         cat >conftest.$ac_ext <<_ACEOF
18270 /* confdefs.h.  */
18271 _ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h.  */
18275 #include <sys/types.h>
18276 #ifdef HAVE_SYS_PARAM_H
18277 # include <sys/param.h>
18278 #endif
18279 #ifdef HAVE_SYS_MOUNT_H
18280 # include <sys/mount.h>
18281 #endif
18282 #ifdef HAVE_SYS_VFS_H
18283 # include <sys/vfs.h>
18284 #endif
18285 #ifdef HAVE_SYS_STATFS_H
18286 # include <sys/statfs.h>
18287 #endif
18288
18289 int
18290 main ()
18291 {
18292 static struct statfs ac_aggr;
18293 if (sizeof ac_aggr.f_namelen)
18294 return 0;
18295   ;
18296   return 0;
18297 }
18298 _ACEOF
18299 rm -f conftest.$ac_objext
18300 if { (ac_try="$ac_compile"
18301 case "(($ac_try" in
18302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303   *) ac_try_echo=$ac_try;;
18304 esac
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306   (eval "$ac_compile") 2>conftest.er1
18307   ac_status=$?
18308   grep -v '^ *+' conftest.er1 >conftest.err
18309   rm -f conftest.er1
18310   cat conftest.err >&5
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); } && {
18313          test -z "$ac_c_werror_flag" ||
18314          test ! -s conftest.err
18315        } && test -s conftest.$ac_objext; then
18316   ac_cv_member_struct_statfs_f_namelen=yes
18317 else
18318   echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18320
18321         ac_cv_member_struct_statfs_f_namelen=no
18322 fi
18323
18324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325 fi
18326
18327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18328 fi
18329 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18330 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
18331 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18332
18333 cat >>confdefs.h <<_ACEOF
18334 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18335 _ACEOF
18336
18337
18338 fi
18339
18340
18341 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18342 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
18343 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18344   echo $ECHO_N "(cached) $ECHO_C" >&6
18345 else
18346   cat >conftest.$ac_ext <<_ACEOF
18347 /* confdefs.h.  */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h.  */
18352 #ifdef HAVE_SYS_STATVFS_H
18353 #include <sys/statvfs.h>
18354 #endif
18355
18356 int
18357 main ()
18358 {
18359 static struct statvfs ac_aggr;
18360 if (ac_aggr.f_blocks)
18361 return 0;
18362   ;
18363   return 0;
18364 }
18365 _ACEOF
18366 rm -f conftest.$ac_objext
18367 if { (ac_try="$ac_compile"
18368 case "(($ac_try" in
18369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370   *) ac_try_echo=$ac_try;;
18371 esac
18372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373   (eval "$ac_compile") 2>conftest.er1
18374   ac_status=$?
18375   grep -v '^ *+' conftest.er1 >conftest.err
18376   rm -f conftest.er1
18377   cat conftest.err >&5
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); } && {
18380          test -z "$ac_c_werror_flag" ||
18381          test ! -s conftest.err
18382        } && test -s conftest.$ac_objext; then
18383   ac_cv_member_struct_statvfs_f_blocks=yes
18384 else
18385   echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18387
18388         cat >conftest.$ac_ext <<_ACEOF
18389 /* confdefs.h.  */
18390 _ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h.  */
18394 #ifdef HAVE_SYS_STATVFS_H
18395 #include <sys/statvfs.h>
18396 #endif
18397
18398 int
18399 main ()
18400 {
18401 static struct statvfs ac_aggr;
18402 if (sizeof ac_aggr.f_blocks)
18403 return 0;
18404   ;
18405   return 0;
18406 }
18407 _ACEOF
18408 rm -f conftest.$ac_objext
18409 if { (ac_try="$ac_compile"
18410 case "(($ac_try" in
18411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412   *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415   (eval "$ac_compile") 2>conftest.er1
18416   ac_status=$?
18417   grep -v '^ *+' conftest.er1 >conftest.err
18418   rm -f conftest.er1
18419   cat conftest.err >&5
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); } && {
18422          test -z "$ac_c_werror_flag" ||
18423          test ! -s conftest.err
18424        } && test -s conftest.$ac_objext; then
18425   ac_cv_member_struct_statvfs_f_blocks=yes
18426 else
18427   echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18429
18430         ac_cv_member_struct_statvfs_f_blocks=no
18431 fi
18432
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434 fi
18435
18436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437 fi
18438 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18439 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
18440 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18441
18442 cat >>confdefs.h <<_ACEOF
18443 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18444 _ACEOF
18445
18446
18447 fi
18448
18449
18450 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18451 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
18452 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18453   echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455   cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h.  */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h.  */
18461 #include <sys/types.h>
18462 #ifdef HAVE_SYS_SOCKET_H
18463 # include <sys/socket.h>
18464 #endif
18465 #ifdef HAVE_SYS_UN_H
18466 # include <sys/un.h>
18467 #endif
18468
18469 int
18470 main ()
18471 {
18472 static struct msghdr ac_aggr;
18473 if (ac_aggr.msg_accrights)
18474 return 0;
18475   ;
18476   return 0;
18477 }
18478 _ACEOF
18479 rm -f conftest.$ac_objext
18480 if { (ac_try="$ac_compile"
18481 case "(($ac_try" in
18482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483   *) ac_try_echo=$ac_try;;
18484 esac
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486   (eval "$ac_compile") 2>conftest.er1
18487   ac_status=$?
18488   grep -v '^ *+' conftest.er1 >conftest.err
18489   rm -f conftest.er1
18490   cat conftest.err >&5
18491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); } && {
18493          test -z "$ac_c_werror_flag" ||
18494          test ! -s conftest.err
18495        } && test -s conftest.$ac_objext; then
18496   ac_cv_member_struct_msghdr_msg_accrights=yes
18497 else
18498   echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18500
18501         cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507 #include <sys/types.h>
18508 #ifdef HAVE_SYS_SOCKET_H
18509 # include <sys/socket.h>
18510 #endif
18511 #ifdef HAVE_SYS_UN_H
18512 # include <sys/un.h>
18513 #endif
18514
18515 int
18516 main ()
18517 {
18518 static struct msghdr ac_aggr;
18519 if (sizeof ac_aggr.msg_accrights)
18520 return 0;
18521   ;
18522   return 0;
18523 }
18524 _ACEOF
18525 rm -f conftest.$ac_objext
18526 if { (ac_try="$ac_compile"
18527 case "(($ac_try" in
18528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529   *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532   (eval "$ac_compile") 2>conftest.er1
18533   ac_status=$?
18534   grep -v '^ *+' conftest.er1 >conftest.err
18535   rm -f conftest.er1
18536   cat conftest.err >&5
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); } && {
18539          test -z "$ac_c_werror_flag" ||
18540          test ! -s conftest.err
18541        } && test -s conftest.$ac_objext; then
18542   ac_cv_member_struct_msghdr_msg_accrights=yes
18543 else
18544   echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547         ac_cv_member_struct_msghdr_msg_accrights=no
18548 fi
18549
18550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18551 fi
18552
18553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18554 fi
18555 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18556 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
18557 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18558
18559 cat >>confdefs.h <<_ACEOF
18560 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18561 _ACEOF
18562
18563
18564 fi
18565 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18566 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
18567 if test "${ac_cv_member_struct_sockaddr_sa_len+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 <sys/types.h>
18577 #ifdef HAVE_SYS_SOCKET_H
18578 # include <sys/socket.h>
18579 #endif
18580 #ifdef HAVE_SYS_UN_H
18581 # include <sys/un.h>
18582 #endif
18583
18584 int
18585 main ()
18586 {
18587 static struct sockaddr ac_aggr;
18588 if (ac_aggr.sa_len)
18589 return 0;
18590   ;
18591   return 0;
18592 }
18593 _ACEOF
18594 rm -f conftest.$ac_objext
18595 if { (ac_try="$ac_compile"
18596 case "(($ac_try" in
18597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598   *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601   (eval "$ac_compile") 2>conftest.er1
18602   ac_status=$?
18603   grep -v '^ *+' conftest.er1 >conftest.err
18604   rm -f conftest.er1
18605   cat conftest.err >&5
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); } && {
18608          test -z "$ac_c_werror_flag" ||
18609          test ! -s conftest.err
18610        } && test -s conftest.$ac_objext; then
18611   ac_cv_member_struct_sockaddr_sa_len=yes
18612 else
18613   echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18615
18616         cat >conftest.$ac_ext <<_ACEOF
18617 /* confdefs.h.  */
18618 _ACEOF
18619 cat confdefs.h >>conftest.$ac_ext
18620 cat >>conftest.$ac_ext <<_ACEOF
18621 /* end confdefs.h.  */
18622 #include <sys/types.h>
18623 #ifdef HAVE_SYS_SOCKET_H
18624 # include <sys/socket.h>
18625 #endif
18626 #ifdef HAVE_SYS_UN_H
18627 # include <sys/un.h>
18628 #endif
18629
18630 int
18631 main ()
18632 {
18633 static struct sockaddr ac_aggr;
18634 if (sizeof ac_aggr.sa_len)
18635 return 0;
18636   ;
18637   return 0;
18638 }
18639 _ACEOF
18640 rm -f conftest.$ac_objext
18641 if { (ac_try="$ac_compile"
18642 case "(($ac_try" in
18643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644   *) ac_try_echo=$ac_try;;
18645 esac
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647   (eval "$ac_compile") 2>conftest.er1
18648   ac_status=$?
18649   grep -v '^ *+' conftest.er1 >conftest.err
18650   rm -f conftest.er1
18651   cat conftest.err >&5
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); } && {
18654          test -z "$ac_c_werror_flag" ||
18655          test ! -s conftest.err
18656        } && test -s conftest.$ac_objext; then
18657   ac_cv_member_struct_sockaddr_sa_len=yes
18658 else
18659   echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18661
18662         ac_cv_member_struct_sockaddr_sa_len=no
18663 fi
18664
18665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18666 fi
18667
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18669 fi
18670 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18671 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
18672 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18673
18674 cat >>confdefs.h <<_ACEOF
18675 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18676 _ACEOF
18677
18678
18679 fi
18680 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18681 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
18682 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18683   echo $ECHO_N "(cached) $ECHO_C" >&6
18684 else
18685   cat >conftest.$ac_ext <<_ACEOF
18686 /* confdefs.h.  */
18687 _ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h.  */
18691 #include <sys/types.h>
18692 #ifdef HAVE_SYS_SOCKET_H
18693 # include <sys/socket.h>
18694 #endif
18695 #ifdef HAVE_SYS_UN_H
18696 # include <sys/un.h>
18697 #endif
18698
18699 int
18700 main ()
18701 {
18702 static struct sockaddr_un ac_aggr;
18703 if (ac_aggr.sun_len)
18704 return 0;
18705   ;
18706   return 0;
18707 }
18708 _ACEOF
18709 rm -f conftest.$ac_objext
18710 if { (ac_try="$ac_compile"
18711 case "(($ac_try" in
18712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713   *) ac_try_echo=$ac_try;;
18714 esac
18715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716   (eval "$ac_compile") 2>conftest.er1
18717   ac_status=$?
18718   grep -v '^ *+' conftest.er1 >conftest.err
18719   rm -f conftest.er1
18720   cat conftest.err >&5
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); } && {
18723          test -z "$ac_c_werror_flag" ||
18724          test ! -s conftest.err
18725        } && test -s conftest.$ac_objext; then
18726   ac_cv_member_struct_sockaddr_un_sun_len=yes
18727 else
18728   echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18730
18731         cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h.  */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h.  */
18737 #include <sys/types.h>
18738 #ifdef HAVE_SYS_SOCKET_H
18739 # include <sys/socket.h>
18740 #endif
18741 #ifdef HAVE_SYS_UN_H
18742 # include <sys/un.h>
18743 #endif
18744
18745 int
18746 main ()
18747 {
18748 static struct sockaddr_un ac_aggr;
18749 if (sizeof ac_aggr.sun_len)
18750 return 0;
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 rm -f conftest.$ac_objext
18756 if { (ac_try="$ac_compile"
18757 case "(($ac_try" in
18758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759   *) ac_try_echo=$ac_try;;
18760 esac
18761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762   (eval "$ac_compile") 2>conftest.er1
18763   ac_status=$?
18764   grep -v '^ *+' conftest.er1 >conftest.err
18765   rm -f conftest.er1
18766   cat conftest.err >&5
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); } && {
18769          test -z "$ac_c_werror_flag" ||
18770          test ! -s conftest.err
18771        } && test -s conftest.$ac_objext; then
18772   ac_cv_member_struct_sockaddr_un_sun_len=yes
18773 else
18774   echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777         ac_cv_member_struct_sockaddr_un_sun_len=no
18778 fi
18779
18780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18781 fi
18782
18783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18784 fi
18785 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18786 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
18787 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18788
18789 cat >>confdefs.h <<_ACEOF
18790 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18791 _ACEOF
18792
18793
18794 fi
18795
18796
18797 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18798 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
18799 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18800   echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802   cat >conftest.$ac_ext <<_ACEOF
18803 /* confdefs.h.  */
18804 _ACEOF
18805 cat confdefs.h >>conftest.$ac_ext
18806 cat >>conftest.$ac_ext <<_ACEOF
18807 /* end confdefs.h.  */
18808 #include <sys/types.h>
18809 #ifdef HAVE_SCSI_SG_H
18810 #include <scsi/sg.h>
18811 #endif
18812
18813 int
18814 main ()
18815 {
18816 static scsireq_t ac_aggr;
18817 if (ac_aggr.cmd)
18818 return 0;
18819   ;
18820   return 0;
18821 }
18822 _ACEOF
18823 rm -f conftest.$ac_objext
18824 if { (ac_try="$ac_compile"
18825 case "(($ac_try" in
18826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827   *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830   (eval "$ac_compile") 2>conftest.er1
18831   ac_status=$?
18832   grep -v '^ *+' conftest.er1 >conftest.err
18833   rm -f conftest.er1
18834   cat conftest.err >&5
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); } && {
18837          test -z "$ac_c_werror_flag" ||
18838          test ! -s conftest.err
18839        } && test -s conftest.$ac_objext; then
18840   ac_cv_member_scsireq_t_cmd=yes
18841 else
18842   echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18844
18845         cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h.  */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h.  */
18851 #include <sys/types.h>
18852 #ifdef HAVE_SCSI_SG_H
18853 #include <scsi/sg.h>
18854 #endif
18855
18856 int
18857 main ()
18858 {
18859 static scsireq_t ac_aggr;
18860 if (sizeof ac_aggr.cmd)
18861 return 0;
18862   ;
18863   return 0;
18864 }
18865 _ACEOF
18866 rm -f conftest.$ac_objext
18867 if { (ac_try="$ac_compile"
18868 case "(($ac_try" in
18869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870   *) ac_try_echo=$ac_try;;
18871 esac
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873   (eval "$ac_compile") 2>conftest.er1
18874   ac_status=$?
18875   grep -v '^ *+' conftest.er1 >conftest.err
18876   rm -f conftest.er1
18877   cat conftest.err >&5
18878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879   (exit $ac_status); } && {
18880          test -z "$ac_c_werror_flag" ||
18881          test ! -s conftest.err
18882        } && test -s conftest.$ac_objext; then
18883   ac_cv_member_scsireq_t_cmd=yes
18884 else
18885   echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18887
18888         ac_cv_member_scsireq_t_cmd=no
18889 fi
18890
18891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18892 fi
18893
18894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18895 fi
18896 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
18897 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
18898 if test $ac_cv_member_scsireq_t_cmd = yes; then
18899
18900 cat >>confdefs.h <<_ACEOF
18901 #define HAVE_SCSIREQ_T_CMD 1
18902 _ACEOF
18903
18904
18905 fi
18906 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
18907 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
18908 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
18909   echo $ECHO_N "(cached) $ECHO_C" >&6
18910 else
18911   cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h.  */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h.  */
18917 #include <sys/types.h>
18918 #ifdef HAVE_SCSI_SG_H
18919 #include <scsi/sg.h>
18920 #endif
18921
18922 int
18923 main ()
18924 {
18925 static sg_io_hdr_t ac_aggr;
18926 if (ac_aggr.interface_id)
18927 return 0;
18928   ;
18929   return 0;
18930 }
18931 _ACEOF
18932 rm -f conftest.$ac_objext
18933 if { (ac_try="$ac_compile"
18934 case "(($ac_try" in
18935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936   *) ac_try_echo=$ac_try;;
18937 esac
18938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939   (eval "$ac_compile") 2>conftest.er1
18940   ac_status=$?
18941   grep -v '^ *+' conftest.er1 >conftest.err
18942   rm -f conftest.er1
18943   cat conftest.err >&5
18944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945   (exit $ac_status); } && {
18946          test -z "$ac_c_werror_flag" ||
18947          test ! -s conftest.err
18948        } && test -s conftest.$ac_objext; then
18949   ac_cv_member_sg_io_hdr_t_interface_id=yes
18950 else
18951   echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18953
18954         cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h.  */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h.  */
18960 #include <sys/types.h>
18961 #ifdef HAVE_SCSI_SG_H
18962 #include <scsi/sg.h>
18963 #endif
18964
18965 int
18966 main ()
18967 {
18968 static sg_io_hdr_t ac_aggr;
18969 if (sizeof ac_aggr.interface_id)
18970 return 0;
18971   ;
18972   return 0;
18973 }
18974 _ACEOF
18975 rm -f conftest.$ac_objext
18976 if { (ac_try="$ac_compile"
18977 case "(($ac_try" in
18978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979   *) ac_try_echo=$ac_try;;
18980 esac
18981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18982   (eval "$ac_compile") 2>conftest.er1
18983   ac_status=$?
18984   grep -v '^ *+' conftest.er1 >conftest.err
18985   rm -f conftest.er1
18986   cat conftest.err >&5
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); } && {
18989          test -z "$ac_c_werror_flag" ||
18990          test ! -s conftest.err
18991        } && test -s conftest.$ac_objext; then
18992   ac_cv_member_sg_io_hdr_t_interface_id=yes
18993 else
18994   echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18996
18997         ac_cv_member_sg_io_hdr_t_interface_id=no
18998 fi
18999
19000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 fi
19002
19003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19004 fi
19005 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19006 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
19007 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19008
19009 cat >>confdefs.h <<_ACEOF
19010 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19011 _ACEOF
19012
19013
19014 fi
19015
19016
19017 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19018 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
19019 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19020   echo $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022   cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h.  */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h.  */
19028 #include <signal.h>
19029
19030 int
19031 main ()
19032 {
19033 static siginfo_t ac_aggr;
19034 if (ac_aggr.si_fd)
19035 return 0;
19036   ;
19037   return 0;
19038 }
19039 _ACEOF
19040 rm -f conftest.$ac_objext
19041 if { (ac_try="$ac_compile"
19042 case "(($ac_try" in
19043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044   *) ac_try_echo=$ac_try;;
19045 esac
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047   (eval "$ac_compile") 2>conftest.er1
19048   ac_status=$?
19049   grep -v '^ *+' conftest.er1 >conftest.err
19050   rm -f conftest.er1
19051   cat conftest.err >&5
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); } && {
19054          test -z "$ac_c_werror_flag" ||
19055          test ! -s conftest.err
19056        } && test -s conftest.$ac_objext; then
19057   ac_cv_member_siginfo_t_si_fd=yes
19058 else
19059   echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19061
19062         cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h.  */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h.  */
19068 #include <signal.h>
19069
19070 int
19071 main ()
19072 {
19073 static siginfo_t ac_aggr;
19074 if (sizeof ac_aggr.si_fd)
19075 return 0;
19076   ;
19077   return 0;
19078 }
19079 _ACEOF
19080 rm -f conftest.$ac_objext
19081 if { (ac_try="$ac_compile"
19082 case "(($ac_try" in
19083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084   *) ac_try_echo=$ac_try;;
19085 esac
19086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19087   (eval "$ac_compile") 2>conftest.er1
19088   ac_status=$?
19089   grep -v '^ *+' conftest.er1 >conftest.err
19090   rm -f conftest.er1
19091   cat conftest.err >&5
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); } && {
19094          test -z "$ac_c_werror_flag" ||
19095          test ! -s conftest.err
19096        } && test -s conftest.$ac_objext; then
19097   ac_cv_member_siginfo_t_si_fd=yes
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102         ac_cv_member_siginfo_t_si_fd=no
19103 fi
19104
19105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19106 fi
19107
19108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19109 fi
19110 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19111 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
19112 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19113
19114 cat >>confdefs.h <<_ACEOF
19115 #define HAVE_SIGINFO_T_SI_FD 1
19116 _ACEOF
19117
19118
19119 fi
19120
19121
19122 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
19123 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
19124 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
19125   echo $ECHO_N "(cached) $ECHO_C" >&6
19126 else
19127   cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133 #include <sys/types.h>
19134 #ifdef HAVE_SYS_MTIO_H
19135 #include <sys/mtio.h>
19136 #endif
19137
19138 int
19139 main ()
19140 {
19141 static struct mtget ac_aggr;
19142 if (ac_aggr.mt_blksiz)
19143 return 0;
19144   ;
19145   return 0;
19146 }
19147 _ACEOF
19148 rm -f conftest.$ac_objext
19149 if { (ac_try="$ac_compile"
19150 case "(($ac_try" in
19151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152   *) ac_try_echo=$ac_try;;
19153 esac
19154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155   (eval "$ac_compile") 2>conftest.er1
19156   ac_status=$?
19157   grep -v '^ *+' conftest.er1 >conftest.err
19158   rm -f conftest.er1
19159   cat conftest.err >&5
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); } && {
19162          test -z "$ac_c_werror_flag" ||
19163          test ! -s conftest.err
19164        } && test -s conftest.$ac_objext; then
19165   ac_cv_member_struct_mtget_mt_blksiz=yes
19166 else
19167   echo "$as_me: failed program was:" >&5
19168 sed 's/^/| /' conftest.$ac_ext >&5
19169
19170         cat >conftest.$ac_ext <<_ACEOF
19171 /* confdefs.h.  */
19172 _ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h.  */
19176 #include <sys/types.h>
19177 #ifdef HAVE_SYS_MTIO_H
19178 #include <sys/mtio.h>
19179 #endif
19180
19181 int
19182 main ()
19183 {
19184 static struct mtget ac_aggr;
19185 if (sizeof ac_aggr.mt_blksiz)
19186 return 0;
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 rm -f conftest.$ac_objext
19192 if { (ac_try="$ac_compile"
19193 case "(($ac_try" in
19194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195   *) ac_try_echo=$ac_try;;
19196 esac
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198   (eval "$ac_compile") 2>conftest.er1
19199   ac_status=$?
19200   grep -v '^ *+' conftest.er1 >conftest.err
19201   rm -f conftest.er1
19202   cat conftest.err >&5
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); } && {
19205          test -z "$ac_c_werror_flag" ||
19206          test ! -s conftest.err
19207        } && test -s conftest.$ac_objext; then
19208   ac_cv_member_struct_mtget_mt_blksiz=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213         ac_cv_member_struct_mtget_mt_blksiz=no
19214 fi
19215
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19217 fi
19218
19219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220 fi
19221 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
19222 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
19223 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
19224
19225 cat >>confdefs.h <<_ACEOF
19226 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
19227 _ACEOF
19228
19229
19230 fi
19231 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
19232 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
19233 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
19234   echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236   cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h.  */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h.  */
19242 #include <sys/types.h>
19243 #ifdef HAVE_SYS_MTIO_H
19244 #include <sys/mtio.h>
19245 #endif
19246
19247 int
19248 main ()
19249 {
19250 static struct mtget ac_aggr;
19251 if (ac_aggr.mt_gstat)
19252 return 0;
19253   ;
19254   return 0;
19255 }
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261   *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264   (eval "$ac_compile") 2>conftest.er1
19265   ac_status=$?
19266   grep -v '^ *+' conftest.er1 >conftest.err
19267   rm -f conftest.er1
19268   cat conftest.err >&5
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); } && {
19271          test -z "$ac_c_werror_flag" ||
19272          test ! -s conftest.err
19273        } && test -s conftest.$ac_objext; then
19274   ac_cv_member_struct_mtget_mt_gstat=yes
19275 else
19276   echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19278
19279         cat >conftest.$ac_ext <<_ACEOF
19280 /* confdefs.h.  */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h.  */
19285 #include <sys/types.h>
19286 #ifdef HAVE_SYS_MTIO_H
19287 #include <sys/mtio.h>
19288 #endif
19289
19290 int
19291 main ()
19292 {
19293 static struct mtget ac_aggr;
19294 if (sizeof ac_aggr.mt_gstat)
19295 return 0;
19296   ;
19297   return 0;
19298 }
19299 _ACEOF
19300 rm -f conftest.$ac_objext
19301 if { (ac_try="$ac_compile"
19302 case "(($ac_try" in
19303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304   *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307   (eval "$ac_compile") 2>conftest.er1
19308   ac_status=$?
19309   grep -v '^ *+' conftest.er1 >conftest.err
19310   rm -f conftest.er1
19311   cat conftest.err >&5
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } && {
19314          test -z "$ac_c_werror_flag" ||
19315          test ! -s conftest.err
19316        } && test -s conftest.$ac_objext; then
19317   ac_cv_member_struct_mtget_mt_gstat=yes
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322         ac_cv_member_struct_mtget_mt_gstat=no
19323 fi
19324
19325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19326 fi
19327
19328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19329 fi
19330 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
19331 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
19332 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
19333
19334 cat >>confdefs.h <<_ACEOF
19335 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
19336 _ACEOF
19337
19338
19339 fi
19340 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
19341 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
19342 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
19343   echo $ECHO_N "(cached) $ECHO_C" >&6
19344 else
19345   cat >conftest.$ac_ext <<_ACEOF
19346 /* confdefs.h.  */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h.  */
19351 #include <sys/types.h>
19352 #ifdef HAVE_SYS_MTIO_H
19353 #include <sys/mtio.h>
19354 #endif
19355
19356 int
19357 main ()
19358 {
19359 static struct mtget ac_aggr;
19360 if (ac_aggr.mt_blkno)
19361 return 0;
19362   ;
19363   return 0;
19364 }
19365 _ACEOF
19366 rm -f conftest.$ac_objext
19367 if { (ac_try="$ac_compile"
19368 case "(($ac_try" in
19369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370   *) ac_try_echo=$ac_try;;
19371 esac
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373   (eval "$ac_compile") 2>conftest.er1
19374   ac_status=$?
19375   grep -v '^ *+' conftest.er1 >conftest.err
19376   rm -f conftest.er1
19377   cat conftest.err >&5
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); } && {
19380          test -z "$ac_c_werror_flag" ||
19381          test ! -s conftest.err
19382        } && test -s conftest.$ac_objext; then
19383   ac_cv_member_struct_mtget_mt_blkno=yes
19384 else
19385   echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388         cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h.  */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h.  */
19394 #include <sys/types.h>
19395 #ifdef HAVE_SYS_MTIO_H
19396 #include <sys/mtio.h>
19397 #endif
19398
19399 int
19400 main ()
19401 {
19402 static struct mtget ac_aggr;
19403 if (sizeof ac_aggr.mt_blkno)
19404 return 0;
19405   ;
19406   return 0;
19407 }
19408 _ACEOF
19409 rm -f conftest.$ac_objext
19410 if { (ac_try="$ac_compile"
19411 case "(($ac_try" in
19412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413   *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416   (eval "$ac_compile") 2>conftest.er1
19417   ac_status=$?
19418   grep -v '^ *+' conftest.er1 >conftest.err
19419   rm -f conftest.er1
19420   cat conftest.err >&5
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } && {
19423          test -z "$ac_c_werror_flag" ||
19424          test ! -s conftest.err
19425        } && test -s conftest.$ac_objext; then
19426   ac_cv_member_struct_mtget_mt_blkno=yes
19427 else
19428   echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19430
19431         ac_cv_member_struct_mtget_mt_blkno=no
19432 fi
19433
19434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19435 fi
19436
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438 fi
19439 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19440 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
19441 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19442
19443 cat >>confdefs.h <<_ACEOF
19444 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
19445 _ACEOF
19446
19447
19448 fi
19449
19450
19451 { echo "$as_me:$LINENO: checking for struct option.name" >&5
19452 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
19453 if test "${ac_cv_member_struct_option_name+set}" = set; then
19454   echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456   cat >conftest.$ac_ext <<_ACEOF
19457 /* confdefs.h.  */
19458 _ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h.  */
19462 #ifdef HAVE_GETOPT_H
19463 #include <getopt.h>
19464 #endif
19465
19466 int
19467 main ()
19468 {
19469 static struct option ac_aggr;
19470 if (ac_aggr.name)
19471 return 0;
19472   ;
19473   return 0;
19474 }
19475 _ACEOF
19476 rm -f conftest.$ac_objext
19477 if { (ac_try="$ac_compile"
19478 case "(($ac_try" in
19479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480   *) ac_try_echo=$ac_try;;
19481 esac
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483   (eval "$ac_compile") 2>conftest.er1
19484   ac_status=$?
19485   grep -v '^ *+' conftest.er1 >conftest.err
19486   rm -f conftest.er1
19487   cat conftest.err >&5
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } && {
19490          test -z "$ac_c_werror_flag" ||
19491          test ! -s conftest.err
19492        } && test -s conftest.$ac_objext; then
19493   ac_cv_member_struct_option_name=yes
19494 else
19495   echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498         cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h.  */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h.  */
19504 #ifdef HAVE_GETOPT_H
19505 #include <getopt.h>
19506 #endif
19507
19508 int
19509 main ()
19510 {
19511 static struct option ac_aggr;
19512 if (sizeof ac_aggr.name)
19513 return 0;
19514   ;
19515   return 0;
19516 }
19517 _ACEOF
19518 rm -f conftest.$ac_objext
19519 if { (ac_try="$ac_compile"
19520 case "(($ac_try" in
19521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522   *) ac_try_echo=$ac_try;;
19523 esac
19524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525   (eval "$ac_compile") 2>conftest.er1
19526   ac_status=$?
19527   grep -v '^ *+' conftest.er1 >conftest.err
19528   rm -f conftest.er1
19529   cat conftest.err >&5
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); } && {
19532          test -z "$ac_c_werror_flag" ||
19533          test ! -s conftest.err
19534        } && test -s conftest.$ac_objext; then
19535   ac_cv_member_struct_option_name=yes
19536 else
19537   echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19539
19540         ac_cv_member_struct_option_name=no
19541 fi
19542
19543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19544 fi
19545
19546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19547 fi
19548 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19549 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
19550 if test $ac_cv_member_struct_option_name = yes; then
19551
19552 cat >>confdefs.h <<_ACEOF
19553 #define HAVE_STRUCT_OPTION_NAME 1
19554 _ACEOF
19555
19556
19557 fi
19558
19559
19560 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19561 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19562 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19563   echo $ECHO_N "(cached) $ECHO_C" >&6
19564 else
19565   cat >conftest.$ac_ext <<_ACEOF
19566 /* confdefs.h.  */
19567 _ACEOF
19568 cat confdefs.h >>conftest.$ac_ext
19569 cat >>conftest.$ac_ext <<_ACEOF
19570 /* end confdefs.h.  */
19571 $ac_includes_default
19572 int
19573 main ()
19574 {
19575 static struct stat ac_aggr;
19576 if (ac_aggr.st_blocks)
19577 return 0;
19578   ;
19579   return 0;
19580 }
19581 _ACEOF
19582 rm -f conftest.$ac_objext
19583 if { (ac_try="$ac_compile"
19584 case "(($ac_try" in
19585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586   *) ac_try_echo=$ac_try;;
19587 esac
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589   (eval "$ac_compile") 2>conftest.er1
19590   ac_status=$?
19591   grep -v '^ *+' conftest.er1 >conftest.err
19592   rm -f conftest.er1
19593   cat conftest.err >&5
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); } && {
19596          test -z "$ac_c_werror_flag" ||
19597          test ! -s conftest.err
19598        } && test -s conftest.$ac_objext; then
19599   ac_cv_member_struct_stat_st_blocks=yes
19600 else
19601   echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19603
19604         cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610 $ac_includes_default
19611 int
19612 main ()
19613 {
19614 static struct stat ac_aggr;
19615 if (sizeof ac_aggr.st_blocks)
19616 return 0;
19617   ;
19618   return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest.$ac_objext
19622 if { (ac_try="$ac_compile"
19623 case "(($ac_try" in
19624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625   *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628   (eval "$ac_compile") 2>conftest.er1
19629   ac_status=$?
19630   grep -v '^ *+' conftest.er1 >conftest.err
19631   rm -f conftest.er1
19632   cat conftest.err >&5
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); } && {
19635          test -z "$ac_c_werror_flag" ||
19636          test ! -s conftest.err
19637        } && test -s conftest.$ac_objext; then
19638   ac_cv_member_struct_stat_st_blocks=yes
19639 else
19640   echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643         ac_cv_member_struct_stat_st_blocks=no
19644 fi
19645
19646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19647 fi
19648
19649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19650 fi
19651 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19652 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19653 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19654
19655 cat >>confdefs.h <<_ACEOF
19656 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19657 _ACEOF
19658
19659
19660 fi
19661
19662
19663 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19664 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
19665 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19666   echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668   cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h.  */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h.  */
19674 #ifdef HAVE_SYS_TYPES_H
19675 #include <sys/types.h>
19676 #endif
19677 #ifdef HAVE_NETINET_IN_H
19678 #include <netinet/in.h>
19679 #endif
19680
19681 int
19682 main ()
19683 {
19684 static struct sockaddr_in6 ac_aggr;
19685 if (ac_aggr.sin6_scope_id)
19686 return 0;
19687   ;
19688   return 0;
19689 }
19690 _ACEOF
19691 rm -f conftest.$ac_objext
19692 if { (ac_try="$ac_compile"
19693 case "(($ac_try" in
19694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695   *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698   (eval "$ac_compile") 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } && {
19705          test -z "$ac_c_werror_flag" ||
19706          test ! -s conftest.err
19707        } && test -s conftest.$ac_objext; then
19708   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19709 else
19710   echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19712
19713         cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h.  */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h.  */
19719 #ifdef HAVE_SYS_TYPES_H
19720 #include <sys/types.h>
19721 #endif
19722 #ifdef HAVE_NETINET_IN_H
19723 #include <netinet/in.h>
19724 #endif
19725
19726 int
19727 main ()
19728 {
19729 static struct sockaddr_in6 ac_aggr;
19730 if (sizeof ac_aggr.sin6_scope_id)
19731 return 0;
19732   ;
19733   return 0;
19734 }
19735 _ACEOF
19736 rm -f conftest.$ac_objext
19737 if { (ac_try="$ac_compile"
19738 case "(($ac_try" in
19739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740   *) ac_try_echo=$ac_try;;
19741 esac
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743   (eval "$ac_compile") 2>conftest.er1
19744   ac_status=$?
19745   grep -v '^ *+' conftest.er1 >conftest.err
19746   rm -f conftest.er1
19747   cat conftest.err >&5
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } && {
19750          test -z "$ac_c_werror_flag" ||
19751          test ! -s conftest.err
19752        } && test -s conftest.$ac_objext; then
19753   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19754 else
19755   echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19757
19758         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
19759 fi
19760
19761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19762 fi
19763
19764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19765 fi
19766 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19767 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
19768 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19769
19770 cat >>confdefs.h <<_ACEOF
19771 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19772 _ACEOF
19773
19774
19775 fi
19776
19777
19778 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
19779 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
19780 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
19781   echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783   cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h.  */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h.  */
19789 #ifdef HAVE_SYS_TYPES_H
19790 #include <sys/types.h>
19791 #endif
19792 #ifdef HAVE_NETINET_IN_H
19793 # include <netinet/in.h>
19794 #endif
19795 #ifdef HAVE_ARPA_NAMESER_H
19796 # include <arpa/nameser.h>
19797 #endif
19798
19799 int
19800 main ()
19801 {
19802 static ns_msg ac_aggr;
19803 if (ac_aggr._msg_ptr)
19804 return 0;
19805   ;
19806   return 0;
19807 }
19808 _ACEOF
19809 rm -f conftest.$ac_objext
19810 if { (ac_try="$ac_compile"
19811 case "(($ac_try" in
19812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813   *) ac_try_echo=$ac_try;;
19814 esac
19815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19816   (eval "$ac_compile") 2>conftest.er1
19817   ac_status=$?
19818   grep -v '^ *+' conftest.er1 >conftest.err
19819   rm -f conftest.er1
19820   cat conftest.err >&5
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); } && {
19823          test -z "$ac_c_werror_flag" ||
19824          test ! -s conftest.err
19825        } && test -s conftest.$ac_objext; then
19826   ac_cv_member_ns_msg__msg_ptr=yes
19827 else
19828   echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19830
19831         cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837 #ifdef HAVE_SYS_TYPES_H
19838 #include <sys/types.h>
19839 #endif
19840 #ifdef HAVE_NETINET_IN_H
19841 # include <netinet/in.h>
19842 #endif
19843 #ifdef HAVE_ARPA_NAMESER_H
19844 # include <arpa/nameser.h>
19845 #endif
19846
19847 int
19848 main ()
19849 {
19850 static ns_msg ac_aggr;
19851 if (sizeof ac_aggr._msg_ptr)
19852 return 0;
19853   ;
19854   return 0;
19855 }
19856 _ACEOF
19857 rm -f conftest.$ac_objext
19858 if { (ac_try="$ac_compile"
19859 case "(($ac_try" in
19860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861   *) ac_try_echo=$ac_try;;
19862 esac
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864   (eval "$ac_compile") 2>conftest.er1
19865   ac_status=$?
19866   grep -v '^ *+' conftest.er1 >conftest.err
19867   rm -f conftest.er1
19868   cat conftest.err >&5
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } && {
19871          test -z "$ac_c_werror_flag" ||
19872          test ! -s conftest.err
19873        } && test -s conftest.$ac_objext; then
19874   ac_cv_member_ns_msg__msg_ptr=yes
19875 else
19876   echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879         ac_cv_member_ns_msg__msg_ptr=no
19880 fi
19881
19882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19883 fi
19884
19885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19886 fi
19887 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
19888 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
19889 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
19890
19891 cat >>confdefs.h <<_ACEOF
19892 #define HAVE_NS_MSG__MSG_PTR 1
19893 _ACEOF
19894
19895
19896 fi
19897
19898
19899 { echo "$as_me:$LINENO: checking for timezone variable" >&5
19900 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
19901 if test "${ac_cv_have_timezone+set}" = set; then
19902   echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904   cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19910 #include <time.h>
19911 int
19912 main ()
19913 {
19914 timezone = 1
19915   ;
19916   return 0;
19917 }
19918 _ACEOF
19919 rm -f conftest.$ac_objext conftest$ac_exeext
19920 if { (ac_try="$ac_link"
19921 case "(($ac_try" in
19922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923   *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926   (eval "$ac_link") 2>conftest.er1
19927   ac_status=$?
19928   grep -v '^ *+' conftest.er1 >conftest.err
19929   rm -f conftest.er1
19930   cat conftest.err >&5
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } && {
19933          test -z "$ac_c_werror_flag" ||
19934          test ! -s conftest.err
19935        } && test -s conftest$ac_exeext &&
19936        $as_test_x conftest$ac_exeext; then
19937   ac_cv_have_timezone="yes"
19938 else
19939   echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942         ac_cv_have_timezone="no"
19943 fi
19944
19945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19946       conftest$ac_exeext conftest.$ac_ext
19947 fi
19948 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19949 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
19950 if test "$ac_cv_have_timezone" = "yes"
19951 then
19952
19953 cat >>confdefs.h <<\_ACEOF
19954 #define HAVE_TIMEZONE 1
19955 _ACEOF
19956
19957 fi
19958 { echo "$as_me:$LINENO: checking for daylight variable" >&5
19959 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
19960 if test "${ac_cv_have_daylight+set}" = set; then
19961   echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963   cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h.  */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h.  */
19969 #include <time.h>
19970 int
19971 main ()
19972 {
19973 daylight = 1
19974   ;
19975   return 0;
19976 }
19977 _ACEOF
19978 rm -f conftest.$ac_objext conftest$ac_exeext
19979 if { (ac_try="$ac_link"
19980 case "(($ac_try" in
19981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982   *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985   (eval "$ac_link") 2>conftest.er1
19986   ac_status=$?
19987   grep -v '^ *+' conftest.er1 >conftest.err
19988   rm -f conftest.er1
19989   cat conftest.err >&5
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); } && {
19992          test -z "$ac_c_werror_flag" ||
19993          test ! -s conftest.err
19994        } && test -s conftest$ac_exeext &&
19995        $as_test_x conftest$ac_exeext; then
19996   ac_cv_have_daylight="yes"
19997 else
19998   echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20000
20001         ac_cv_have_daylight="no"
20002 fi
20003
20004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20005       conftest$ac_exeext conftest.$ac_ext
20006 fi
20007 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20008 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
20009 if test "$ac_cv_have_daylight" = "yes"
20010 then
20011
20012 cat >>confdefs.h <<\_ACEOF
20013 #define HAVE_DAYLIGHT 1
20014 _ACEOF
20015
20016 fi
20017
20018
20019 case $host_cpu in
20020   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20021 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
20022 if test "${ac_cv_cpp_def___i386__+set}" = set; then
20023   echo $ECHO_N "(cached) $ECHO_C" >&6
20024 else
20025   cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h.  */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h.  */
20031 #ifndef __i386__
20032 yes
20033 #endif
20034 _ACEOF
20035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20036   $EGREP "yes" >/dev/null 2>&1; then
20037   ac_cv_cpp_def___i386__=yes
20038 else
20039   ac_cv_cpp_def___i386__=no
20040 fi
20041 rm -f conftest*
20042
20043 fi
20044 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20045 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
20046 if test $ac_cv_cpp_def___i386__ = yes; then
20047   CFLAGS="$CFLAGS -D__i386__"
20048   LINTFLAGS="$LINTFLAGS -D__i386__"
20049 fi
20050  ;;
20051   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
20052 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
20053 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
20054   echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056   cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062 #ifndef __x86_64__
20063 yes
20064 #endif
20065 _ACEOF
20066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20067   $EGREP "yes" >/dev/null 2>&1; then
20068   ac_cv_cpp_def___x86_64__=yes
20069 else
20070   ac_cv_cpp_def___x86_64__=no
20071 fi
20072 rm -f conftest*
20073
20074 fi
20075 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
20076 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
20077 if test $ac_cv_cpp_def___x86_64__ = yes; then
20078   CFLAGS="$CFLAGS -D__x86_64__"
20079   LINTFLAGS="$LINTFLAGS -D__x86_64__"
20080 fi
20081  ;;
20082   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20083 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
20084 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20085   echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087   cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h.  */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h.  */
20093 #ifndef __ALPHA__
20094 yes
20095 #endif
20096 _ACEOF
20097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20098   $EGREP "yes" >/dev/null 2>&1; then
20099   ac_cv_cpp_def___ALPHA__=yes
20100 else
20101   ac_cv_cpp_def___ALPHA__=no
20102 fi
20103 rm -f conftest*
20104
20105 fi
20106 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20107 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
20108 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20109   CFLAGS="$CFLAGS -D__ALPHA__"
20110   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20111 fi
20112  ;;
20113   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20114 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
20115 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20116   echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118   cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124 #ifndef __sparc__
20125 yes
20126 #endif
20127 _ACEOF
20128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20129   $EGREP "yes" >/dev/null 2>&1; then
20130   ac_cv_cpp_def___sparc__=yes
20131 else
20132   ac_cv_cpp_def___sparc__=no
20133 fi
20134 rm -f conftest*
20135
20136 fi
20137 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20138 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
20139 if test $ac_cv_cpp_def___sparc__ = yes; then
20140   CFLAGS="$CFLAGS -D__sparc__"
20141   LINTFLAGS="$LINTFLAGS -D__sparc__"
20142 fi
20143  ;;
20144   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20145 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
20146 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20147   echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149   cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h.  */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h.  */
20155 #ifndef __powerpc__
20156 yes
20157 #endif
20158 _ACEOF
20159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20160   $EGREP "yes" >/dev/null 2>&1; then
20161   ac_cv_cpp_def___powerpc__=yes
20162 else
20163   ac_cv_cpp_def___powerpc__=no
20164 fi
20165 rm -f conftest*
20166
20167 fi
20168 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20169 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
20170 if test $ac_cv_cpp_def___powerpc__ = yes; then
20171   CFLAGS="$CFLAGS -D__powerpc__"
20172   LINTFLAGS="$LINTFLAGS -D__powerpc__"
20173 fi
20174  ;;
20175 esac
20176
20177 case $host_vendor in
20178   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20179 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
20180 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20181   echo $ECHO_N "(cached) $ECHO_C" >&6
20182 else
20183   cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h.  */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h.  */
20189 #ifndef __sun__
20190 yes
20191 #endif
20192 _ACEOF
20193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20194   $EGREP "yes" >/dev/null 2>&1; then
20195   ac_cv_cpp_def___sun__=yes
20196 else
20197   ac_cv_cpp_def___sun__=no
20198 fi
20199 rm -f conftest*
20200
20201 fi
20202 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20203 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
20204 if test $ac_cv_cpp_def___sun__ = yes; then
20205   CFLAGS="$CFLAGS -D__sun__"
20206   LINTFLAGS="$LINTFLAGS -D__sun__"
20207 fi
20208  ;;
20209 esac
20210
20211
20212 DEPENDENCIES="### Dependencies:
20213
20214 .INIT: Makefile
20215 .BEGIN: Makefile
20216 Makefile: dummy
20217         -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
20218
20219 \$(OBJS): \$(IDL_GEN_HEADERS)
20220 \$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
20221 \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
20222 \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
20223
20224
20225
20226
20227
20228 ac_config_commands="$ac_config_commands include/stamp-h"
20229
20230
20231 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
20232
20233 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
20234
20235 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
20236
20237 ac_config_commands="$ac_config_commands dlls/user32/resources"
20238
20239 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
20240
20241 ac_config_commands="$ac_config_commands include/wine"
20242
20243
20244 MAKE_RULES=Make.rules
20245
20246
20247 MAKE_DLL_RULES=dlls/Makedll.rules
20248
20249
20250 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
20251
20252
20253 MAKE_TEST_RULES=dlls/Maketest.rules
20254
20255
20256 MAKE_PROG_RULES=programs/Makeprog.rules
20257
20258
20259 ac_config_files="$ac_config_files Make.rules"
20260
20261 ac_config_files="$ac_config_files dlls/Makedll.rules"
20262
20263 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
20264
20265 ac_config_files="$ac_config_files dlls/Maketest.rules"
20266
20267 ac_config_files="$ac_config_files programs/Makeprog.rules"
20268
20269 ac_config_files="$ac_config_files Makefile"
20270
20271 ac_config_files="$ac_config_files dlls/Makefile"
20272
20273 ac_config_files="$ac_config_files dlls/acledit/Makefile"
20274
20275 ac_config_files="$ac_config_files dlls/activeds/Makefile"
20276
20277 ac_config_files="$ac_config_files dlls/advapi32/Makefile"
20278
20279 ac_config_files="$ac_config_files dlls/advapi32/tests/Makefile"
20280
20281 ac_config_files="$ac_config_files dlls/advpack/Makefile"
20282
20283 ac_config_files="$ac_config_files dlls/advpack/tests/Makefile"
20284
20285 ac_config_files="$ac_config_files dlls/amstream/Makefile"
20286
20287 ac_config_files="$ac_config_files dlls/atl/Makefile"
20288
20289 ac_config_files="$ac_config_files dlls/avicap32/Makefile"
20290
20291 ac_config_files="$ac_config_files dlls/avifil32/Makefile"
20292
20293 ac_config_files="$ac_config_files dlls/browseui/Makefile"
20294
20295 ac_config_files="$ac_config_files dlls/browseui/tests/Makefile"
20296
20297 ac_config_files="$ac_config_files dlls/cabinet/Makefile"
20298
20299 ac_config_files="$ac_config_files dlls/cabinet/tests/Makefile"
20300
20301 ac_config_files="$ac_config_files dlls/capi2032/Makefile"
20302
20303 ac_config_files="$ac_config_files dlls/cards/Makefile"
20304
20305 ac_config_files="$ac_config_files dlls/cfgmgr32/Makefile"
20306
20307 ac_config_files="$ac_config_files dlls/clusapi/Makefile"
20308
20309 ac_config_files="$ac_config_files dlls/comcat/Makefile"
20310
20311 ac_config_files="$ac_config_files dlls/comcat/tests/Makefile"
20312
20313 ac_config_files="$ac_config_files dlls/comctl32/Makefile"
20314
20315 ac_config_files="$ac_config_files dlls/comctl32/tests/Makefile"
20316
20317 ac_config_files="$ac_config_files dlls/comdlg32/Makefile"
20318
20319 ac_config_files="$ac_config_files dlls/comdlg32/tests/Makefile"
20320
20321 ac_config_files="$ac_config_files dlls/compstui/Makefile"
20322
20323 ac_config_files="$ac_config_files dlls/credui/Makefile"
20324
20325 ac_config_files="$ac_config_files dlls/crtdll/Makefile"
20326
20327 ac_config_files="$ac_config_files dlls/crypt32/Makefile"
20328
20329 ac_config_files="$ac_config_files dlls/crypt32/tests/Makefile"
20330
20331 ac_config_files="$ac_config_files dlls/cryptdll/Makefile"
20332
20333 ac_config_files="$ac_config_files dlls/cryptnet/Makefile"
20334
20335 ac_config_files="$ac_config_files dlls/ctl3d32/Makefile"
20336
20337 ac_config_files="$ac_config_files dlls/d3d10/Makefile"
20338
20339 ac_config_files="$ac_config_files dlls/d3d8/Makefile"
20340
20341 ac_config_files="$ac_config_files dlls/d3d8/tests/Makefile"
20342
20343 ac_config_files="$ac_config_files dlls/d3d9/Makefile"
20344
20345 ac_config_files="$ac_config_files dlls/d3d9/tests/Makefile"
20346
20347 ac_config_files="$ac_config_files dlls/d3dim/Makefile"
20348
20349 ac_config_files="$ac_config_files dlls/d3drm/Makefile"
20350
20351 ac_config_files="$ac_config_files dlls/d3drm/tests/Makefile"
20352
20353 ac_config_files="$ac_config_files dlls/d3dx8/Makefile"
20354
20355 ac_config_files="$ac_config_files dlls/d3dxof/Makefile"
20356
20357 ac_config_files="$ac_config_files dlls/dbghelp/Makefile"
20358
20359 ac_config_files="$ac_config_files dlls/dciman32/Makefile"
20360
20361 ac_config_files="$ac_config_files dlls/ddraw/Makefile"
20362
20363 ac_config_files="$ac_config_files dlls/ddraw/tests/Makefile"
20364
20365 ac_config_files="$ac_config_files dlls/ddrawex/Makefile"
20366
20367 ac_config_files="$ac_config_files dlls/devenum/Makefile"
20368
20369 ac_config_files="$ac_config_files dlls/dinput/Makefile"
20370
20371 ac_config_files="$ac_config_files dlls/dinput/tests/Makefile"
20372
20373 ac_config_files="$ac_config_files dlls/dinput8/Makefile"
20374
20375 ac_config_files="$ac_config_files dlls/dmband/Makefile"
20376
20377 ac_config_files="$ac_config_files dlls/dmcompos/Makefile"
20378
20379 ac_config_files="$ac_config_files dlls/dmime/Makefile"
20380
20381 ac_config_files="$ac_config_files dlls/dmloader/Makefile"
20382
20383 ac_config_files="$ac_config_files dlls/dmscript/Makefile"
20384
20385 ac_config_files="$ac_config_files dlls/dmstyle/Makefile"
20386
20387 ac_config_files="$ac_config_files dlls/dmsynth/Makefile"
20388
20389 ac_config_files="$ac_config_files dlls/dmusic/Makefile"
20390
20391 ac_config_files="$ac_config_files dlls/dmusic32/Makefile"
20392
20393 ac_config_files="$ac_config_files dlls/dnsapi/Makefile"
20394
20395 ac_config_files="$ac_config_files dlls/dnsapi/tests/Makefile"
20396
20397 ac_config_files="$ac_config_files dlls/dplay/Makefile"
20398
20399 ac_config_files="$ac_config_files dlls/dplayx/Makefile"
20400
20401 ac_config_files="$ac_config_files dlls/dplayx/tests/Makefile"
20402
20403 ac_config_files="$ac_config_files dlls/dpnaddr/Makefile"
20404
20405 ac_config_files="$ac_config_files dlls/dpnet/Makefile"
20406
20407 ac_config_files="$ac_config_files dlls/dpnhpast/Makefile"
20408
20409 ac_config_files="$ac_config_files dlls/dpnlobby/Makefile"
20410
20411 ac_config_files="$ac_config_files dlls/dsound/Makefile"
20412
20413 ac_config_files="$ac_config_files dlls/dsound/tests/Makefile"
20414
20415 ac_config_files="$ac_config_files dlls/dswave/Makefile"
20416
20417 ac_config_files="$ac_config_files dlls/dwmapi/Makefile"
20418
20419 ac_config_files="$ac_config_files dlls/dxdiagn/Makefile"
20420
20421 ac_config_files="$ac_config_files dlls/dxerr8/Makefile"
20422
20423 ac_config_files="$ac_config_files dlls/dxerr9/Makefile"
20424
20425 ac_config_files="$ac_config_files dlls/dxguid/Makefile"
20426
20427 ac_config_files="$ac_config_files dlls/faultrep/Makefile"
20428
20429 ac_config_files="$ac_config_files dlls/gdi32/Makefile"
20430
20431 ac_config_files="$ac_config_files dlls/gdi32/tests/Makefile"
20432
20433 ac_config_files="$ac_config_files dlls/gdiplus/Makefile"
20434
20435 ac_config_files="$ac_config_files dlls/gdiplus/tests/Makefile"
20436
20437 ac_config_files="$ac_config_files dlls/glu32/Makefile"
20438
20439 ac_config_files="$ac_config_files dlls/gphoto2.ds/Makefile"
20440
20441 ac_config_files="$ac_config_files dlls/hal/Makefile"
20442
20443 ac_config_files="$ac_config_files dlls/hhctrl.ocx/Makefile"
20444
20445 ac_config_files="$ac_config_files dlls/hid/Makefile"
20446
20447 ac_config_files="$ac_config_files dlls/hlink/Makefile"
20448
20449 ac_config_files="$ac_config_files dlls/hlink/tests/Makefile"
20450
20451 ac_config_files="$ac_config_files dlls/hnetcfg/Makefile"
20452
20453 ac_config_files="$ac_config_files dlls/iccvid/Makefile"
20454
20455 ac_config_files="$ac_config_files dlls/icmp/Makefile"
20456
20457 ac_config_files="$ac_config_files dlls/ifsmgr.vxd/Makefile"
20458
20459 ac_config_files="$ac_config_files dlls/imaadp32.acm/Makefile"
20460
20461 ac_config_files="$ac_config_files dlls/imagehlp/Makefile"
20462
20463 ac_config_files="$ac_config_files dlls/imm32/Makefile"
20464
20465 ac_config_files="$ac_config_files dlls/infosoft/Makefile"
20466
20467 ac_config_files="$ac_config_files dlls/infosoft/tests/Makefile"
20468
20469 ac_config_files="$ac_config_files dlls/inkobj/Makefile"
20470
20471 ac_config_files="$ac_config_files dlls/inseng/Makefile"
20472
20473 ac_config_files="$ac_config_files dlls/iphlpapi/Makefile"
20474
20475 ac_config_files="$ac_config_files dlls/iphlpapi/tests/Makefile"
20476
20477 ac_config_files="$ac_config_files dlls/itss/Makefile"
20478
20479 ac_config_files="$ac_config_files dlls/itss/tests/Makefile"
20480
20481 ac_config_files="$ac_config_files dlls/kernel32/Makefile"
20482
20483 ac_config_files="$ac_config_files dlls/kernel32/tests/Makefile"
20484
20485 ac_config_files="$ac_config_files dlls/localspl/Makefile"
20486
20487 ac_config_files="$ac_config_files dlls/localspl/tests/Makefile"
20488
20489 ac_config_files="$ac_config_files dlls/localui/Makefile"
20490
20491 ac_config_files="$ac_config_files dlls/localui/tests/Makefile"
20492
20493 ac_config_files="$ac_config_files dlls/lz32/Makefile"
20494
20495 ac_config_files="$ac_config_files dlls/lz32/tests/Makefile"
20496
20497 ac_config_files="$ac_config_files dlls/mapi32/Makefile"
20498
20499 ac_config_files="$ac_config_files dlls/mapi32/tests/Makefile"
20500
20501 ac_config_files="$ac_config_files dlls/mciavi32/Makefile"
20502
20503 ac_config_files="$ac_config_files dlls/mcicda/Makefile"
20504
20505 ac_config_files="$ac_config_files dlls/mciseq/Makefile"
20506
20507 ac_config_files="$ac_config_files dlls/mciwave/Makefile"
20508
20509 ac_config_files="$ac_config_files dlls/midimap/Makefile"
20510
20511 ac_config_files="$ac_config_files dlls/mlang/Makefile"
20512
20513 ac_config_files="$ac_config_files dlls/mlang/tests/Makefile"
20514
20515 ac_config_files="$ac_config_files dlls/mmdevldr.vxd/Makefile"
20516
20517 ac_config_files="$ac_config_files dlls/monodebg.vxd/Makefile"
20518
20519 ac_config_files="$ac_config_files dlls/mpr/Makefile"
20520
20521 ac_config_files="$ac_config_files dlls/mprapi/Makefile"
20522
20523 ac_config_files="$ac_config_files dlls/msacm32.drv/Makefile"
20524
20525 ac_config_files="$ac_config_files dlls/msacm32/Makefile"
20526
20527 ac_config_files="$ac_config_files dlls/msacm32/tests/Makefile"
20528
20529 ac_config_files="$ac_config_files dlls/msadp32.acm/Makefile"
20530
20531 ac_config_files="$ac_config_files dlls/mscms/Makefile"
20532
20533 ac_config_files="$ac_config_files dlls/mscms/tests/Makefile"
20534
20535 ac_config_files="$ac_config_files dlls/mscoree/Makefile"
20536
20537 ac_config_files="$ac_config_files dlls/msdmo/Makefile"
20538
20539 ac_config_files="$ac_config_files dlls/msftedit/Makefile"
20540
20541 ac_config_files="$ac_config_files dlls/msg711.acm/Makefile"
20542
20543 ac_config_files="$ac_config_files dlls/mshtml.tlb/Makefile"
20544
20545 ac_config_files="$ac_config_files dlls/mshtml/Makefile"
20546
20547 ac_config_files="$ac_config_files dlls/mshtml/tests/Makefile"
20548
20549 ac_config_files="$ac_config_files dlls/msi/Makefile"
20550
20551 ac_config_files="$ac_config_files dlls/msi/tests/Makefile"
20552
20553 ac_config_files="$ac_config_files dlls/msimg32/Makefile"
20554
20555 ac_config_files="$ac_config_files dlls/msisys.ocx/Makefile"
20556
20557 ac_config_files="$ac_config_files dlls/msnet32/Makefile"
20558
20559 ac_config_files="$ac_config_files dlls/msrle32/Makefile"
20560
20561 ac_config_files="$ac_config_files dlls/msvcirt/Makefile"
20562
20563 ac_config_files="$ac_config_files dlls/msvcrt/Makefile"
20564
20565 ac_config_files="$ac_config_files dlls/msvcrt/tests/Makefile"
20566
20567 ac_config_files="$ac_config_files dlls/msvcrt20/Makefile"
20568
20569 ac_config_files="$ac_config_files dlls/msvcrt40/Makefile"
20570
20571 ac_config_files="$ac_config_files dlls/msvcrtd/Makefile"
20572
20573 ac_config_files="$ac_config_files dlls/msvcrtd/tests/Makefile"
20574
20575 ac_config_files="$ac_config_files dlls/msvfw32/Makefile"
20576
20577 ac_config_files="$ac_config_files dlls/msvidc32/Makefile"
20578
20579 ac_config_files="$ac_config_files dlls/mswsock/Makefile"
20580
20581 ac_config_files="$ac_config_files dlls/msxml3/Makefile"
20582
20583 ac_config_files="$ac_config_files dlls/msxml3/tests/Makefile"
20584
20585 ac_config_files="$ac_config_files dlls/nddeapi/Makefile"
20586
20587 ac_config_files="$ac_config_files dlls/netapi32/Makefile"
20588
20589 ac_config_files="$ac_config_files dlls/netapi32/tests/Makefile"
20590
20591 ac_config_files="$ac_config_files dlls/newdev/Makefile"
20592
20593 ac_config_files="$ac_config_files dlls/ntdll/Makefile"
20594
20595 ac_config_files="$ac_config_files dlls/ntdll/tests/Makefile"
20596
20597 ac_config_files="$ac_config_files dlls/ntdsapi/Makefile"
20598
20599 ac_config_files="$ac_config_files dlls/ntoskrnl.exe/Makefile"
20600
20601 ac_config_files="$ac_config_files dlls/ntprint/Makefile"
20602
20603 ac_config_files="$ac_config_files dlls/ntprint/tests/Makefile"
20604
20605 ac_config_files="$ac_config_files dlls/objsel/Makefile"
20606
20607 ac_config_files="$ac_config_files dlls/odbc32/Makefile"
20608
20609 ac_config_files="$ac_config_files dlls/odbccp32/Makefile"
20610
20611 ac_config_files="$ac_config_files dlls/odbccp32/tests/Makefile"
20612
20613 ac_config_files="$ac_config_files dlls/ole32/Makefile"
20614
20615 ac_config_files="$ac_config_files dlls/ole32/tests/Makefile"
20616
20617 ac_config_files="$ac_config_files dlls/oleacc/Makefile"
20618
20619 ac_config_files="$ac_config_files dlls/oleaut32/Makefile"
20620
20621 ac_config_files="$ac_config_files dlls/oleaut32/tests/Makefile"
20622
20623 ac_config_files="$ac_config_files dlls/olecli32/Makefile"
20624
20625 ac_config_files="$ac_config_files dlls/oledlg/Makefile"
20626
20627 ac_config_files="$ac_config_files dlls/olepro32/Makefile"
20628
20629 ac_config_files="$ac_config_files dlls/olesvr32/Makefile"
20630
20631 ac_config_files="$ac_config_files dlls/olethk32/Makefile"
20632
20633 ac_config_files="$ac_config_files dlls/opengl32/Makefile"
20634
20635 ac_config_files="$ac_config_files dlls/opengl32/tests/Makefile"
20636
20637 ac_config_files="$ac_config_files dlls/pdh/Makefile"
20638
20639 ac_config_files="$ac_config_files dlls/pdh/tests/Makefile"
20640
20641 ac_config_files="$ac_config_files dlls/powrprof/Makefile"
20642
20643 ac_config_files="$ac_config_files dlls/printui/Makefile"
20644
20645 ac_config_files="$ac_config_files dlls/psapi/Makefile"
20646
20647 ac_config_files="$ac_config_files dlls/psapi/tests/Makefile"
20648
20649 ac_config_files="$ac_config_files dlls/pstorec/Makefile"
20650
20651 ac_config_files="$ac_config_files dlls/qcap/Makefile"
20652
20653 ac_config_files="$ac_config_files dlls/quartz/Makefile"
20654
20655 ac_config_files="$ac_config_files dlls/quartz/tests/Makefile"
20656
20657 ac_config_files="$ac_config_files dlls/query/Makefile"
20658
20659 ac_config_files="$ac_config_files dlls/rasapi32/Makefile"
20660
20661 ac_config_files="$ac_config_files dlls/resutils/Makefile"
20662
20663 ac_config_files="$ac_config_files dlls/riched20/Makefile"
20664
20665 ac_config_files="$ac_config_files dlls/riched20/tests/Makefile"
20666
20667 ac_config_files="$ac_config_files dlls/riched32/Makefile"
20668
20669 ac_config_files="$ac_config_files dlls/rpcrt4/Makefile"
20670
20671 ac_config_files="$ac_config_files dlls/rpcrt4/tests/Makefile"
20672
20673 ac_config_files="$ac_config_files dlls/rsabase/Makefile"
20674
20675 ac_config_files="$ac_config_files dlls/rsabase/tests/Makefile"
20676
20677 ac_config_files="$ac_config_files dlls/rsaenh/Makefile"
20678
20679 ac_config_files="$ac_config_files dlls/rsaenh/tests/Makefile"
20680
20681 ac_config_files="$ac_config_files dlls/sane.ds/Makefile"
20682
20683 ac_config_files="$ac_config_files dlls/schannel/Makefile"
20684
20685 ac_config_files="$ac_config_files dlls/schannel/tests/Makefile"
20686
20687 ac_config_files="$ac_config_files dlls/secur32/Makefile"
20688
20689 ac_config_files="$ac_config_files dlls/secur32/tests/Makefile"
20690
20691 ac_config_files="$ac_config_files dlls/security/Makefile"
20692
20693 ac_config_files="$ac_config_files dlls/sensapi/Makefile"
20694
20695 ac_config_files="$ac_config_files dlls/serialui/Makefile"
20696
20697 ac_config_files="$ac_config_files dlls/serialui/tests/Makefile"
20698
20699 ac_config_files="$ac_config_files dlls/setupapi/Makefile"
20700
20701 ac_config_files="$ac_config_files dlls/setupapi/tests/Makefile"
20702
20703 ac_config_files="$ac_config_files dlls/sfc/Makefile"
20704
20705 ac_config_files="$ac_config_files dlls/sfc_os/Makefile"
20706
20707 ac_config_files="$ac_config_files dlls/shdoclc/Makefile"
20708
20709 ac_config_files="$ac_config_files dlls/shdocvw/Makefile"
20710
20711 ac_config_files="$ac_config_files dlls/shdocvw/tests/Makefile"
20712
20713 ac_config_files="$ac_config_files dlls/shell32/Makefile"
20714
20715 ac_config_files="$ac_config_files dlls/shell32/tests/Makefile"
20716
20717 ac_config_files="$ac_config_files dlls/shfolder/Makefile"
20718
20719 ac_config_files="$ac_config_files dlls/shlwapi/Makefile"
20720
20721 ac_config_files="$ac_config_files dlls/shlwapi/tests/Makefile"
20722
20723 ac_config_files="$ac_config_files dlls/snmpapi/Makefile"
20724
20725 ac_config_files="$ac_config_files dlls/snmpapi/tests/Makefile"
20726
20727 ac_config_files="$ac_config_files dlls/spoolss/Makefile"
20728
20729 ac_config_files="$ac_config_files dlls/stdole2.tlb/Makefile"
20730
20731 ac_config_files="$ac_config_files dlls/stdole32.tlb/Makefile"
20732
20733 ac_config_files="$ac_config_files dlls/sti/Makefile"
20734
20735 ac_config_files="$ac_config_files dlls/strmiids/Makefile"
20736
20737 ac_config_files="$ac_config_files dlls/svrapi/Makefile"
20738
20739 ac_config_files="$ac_config_files dlls/sxs/Makefile"
20740
20741 ac_config_files="$ac_config_files dlls/tapi32/Makefile"
20742
20743 ac_config_files="$ac_config_files dlls/twain_32/Makefile"
20744
20745 ac_config_files="$ac_config_files dlls/unicows/Makefile"
20746
20747 ac_config_files="$ac_config_files dlls/url/Makefile"
20748
20749 ac_config_files="$ac_config_files dlls/urlmon/Makefile"
20750
20751 ac_config_files="$ac_config_files dlls/urlmon/tests/Makefile"
20752
20753 ac_config_files="$ac_config_files dlls/user32/Makefile"
20754
20755 ac_config_files="$ac_config_files dlls/user32/tests/Makefile"
20756
20757 ac_config_files="$ac_config_files dlls/userenv/Makefile"
20758
20759 ac_config_files="$ac_config_files dlls/usp10/Makefile"
20760
20761 ac_config_files="$ac_config_files dlls/usp10/tests/Makefile"
20762
20763 ac_config_files="$ac_config_files dlls/uuid/Makefile"
20764
20765 ac_config_files="$ac_config_files dlls/uxtheme/Makefile"
20766
20767 ac_config_files="$ac_config_files dlls/uxtheme/tests/Makefile"
20768
20769 ac_config_files="$ac_config_files dlls/vdhcp.vxd/Makefile"
20770
20771 ac_config_files="$ac_config_files dlls/vdmdbg/Makefile"
20772
20773 ac_config_files="$ac_config_files dlls/version/Makefile"
20774
20775 ac_config_files="$ac_config_files dlls/version/tests/Makefile"
20776
20777 ac_config_files="$ac_config_files dlls/vmm.vxd/Makefile"
20778
20779 ac_config_files="$ac_config_files dlls/vnbt.vxd/Makefile"
20780
20781 ac_config_files="$ac_config_files dlls/vnetbios.vxd/Makefile"
20782
20783 ac_config_files="$ac_config_files dlls/vtdapi.vxd/Makefile"
20784
20785 ac_config_files="$ac_config_files dlls/vwin32.vxd/Makefile"
20786
20787 ac_config_files="$ac_config_files dlls/w32skrnl/Makefile"
20788
20789 ac_config_files="$ac_config_files dlls/winealsa.drv/Makefile"
20790
20791 ac_config_files="$ac_config_files dlls/wineaudioio.drv/Makefile"
20792
20793 ac_config_files="$ac_config_files dlls/winecoreaudio.drv/Makefile"
20794
20795 ac_config_files="$ac_config_files dlls/winecrt0/Makefile"
20796
20797 ac_config_files="$ac_config_files dlls/wined3d/Makefile"
20798
20799 ac_config_files="$ac_config_files dlls/winedos/Makefile"
20800
20801 ac_config_files="$ac_config_files dlls/wineesd.drv/Makefile"
20802
20803 ac_config_files="$ac_config_files dlls/winejack.drv/Makefile"
20804
20805 ac_config_files="$ac_config_files dlls/winejoystick.drv/Makefile"
20806
20807 ac_config_files="$ac_config_files dlls/winemp3.acm/Makefile"
20808
20809 ac_config_files="$ac_config_files dlls/winenas.drv/Makefile"
20810
20811 ac_config_files="$ac_config_files dlls/wineoss.drv/Makefile"
20812
20813 ac_config_files="$ac_config_files dlls/wineps.drv/Makefile"
20814
20815 ac_config_files="$ac_config_files dlls/winequartz.drv/Makefile"
20816
20817 ac_config_files="$ac_config_files dlls/winex11.drv/Makefile"
20818
20819 ac_config_files="$ac_config_files dlls/wing32/Makefile"
20820
20821 ac_config_files="$ac_config_files dlls/winhttp/Makefile"
20822
20823 ac_config_files="$ac_config_files dlls/wininet/Makefile"
20824
20825 ac_config_files="$ac_config_files dlls/wininet/tests/Makefile"
20826
20827 ac_config_files="$ac_config_files dlls/winmm/Makefile"
20828
20829 ac_config_files="$ac_config_files dlls/winmm/tests/Makefile"
20830
20831 ac_config_files="$ac_config_files dlls/winnls32/Makefile"
20832
20833 ac_config_files="$ac_config_files dlls/winscard/Makefile"
20834
20835 ac_config_files="$ac_config_files dlls/winspool.drv/Makefile"
20836
20837 ac_config_files="$ac_config_files dlls/winspool.drv/tests/Makefile"
20838
20839 ac_config_files="$ac_config_files dlls/wintab32/Makefile"
20840
20841 ac_config_files="$ac_config_files dlls/wintrust/Makefile"
20842
20843 ac_config_files="$ac_config_files dlls/wintrust/tests/Makefile"
20844
20845 ac_config_files="$ac_config_files dlls/wldap32/Makefile"
20846
20847 ac_config_files="$ac_config_files dlls/wnaspi32/Makefile"
20848
20849 ac_config_files="$ac_config_files dlls/wow32/Makefile"
20850
20851 ac_config_files="$ac_config_files dlls/ws2_32/Makefile"
20852
20853 ac_config_files="$ac_config_files dlls/ws2_32/tests/Makefile"
20854
20855 ac_config_files="$ac_config_files dlls/wsock32/Makefile"
20856
20857 ac_config_files="$ac_config_files dlls/wtsapi32/Makefile"
20858
20859 ac_config_files="$ac_config_files documentation/Makefile"
20860
20861 ac_config_files="$ac_config_files fonts/Makefile"
20862
20863 ac_config_files="$ac_config_files include/Makefile"
20864
20865 ac_config_files="$ac_config_files libs/Makefile"
20866
20867 ac_config_files="$ac_config_files libs/port/Makefile"
20868
20869 ac_config_files="$ac_config_files libs/wine/Makefile"
20870
20871 ac_config_files="$ac_config_files libs/wpp/Makefile"
20872
20873 ac_config_files="$ac_config_files loader/Makefile"
20874
20875 ac_config_files="$ac_config_files programs/Makefile"
20876
20877 ac_config_files="$ac_config_files programs/clock/Makefile"
20878
20879 ac_config_files="$ac_config_files programs/cmd/Makefile"
20880
20881 ac_config_files="$ac_config_files programs/cmdlgtst/Makefile"
20882
20883 ac_config_files="$ac_config_files programs/control/Makefile"
20884
20885 ac_config_files="$ac_config_files programs/eject/Makefile"
20886
20887 ac_config_files="$ac_config_files programs/expand/Makefile"
20888
20889 ac_config_files="$ac_config_files programs/explorer/Makefile"
20890
20891 ac_config_files="$ac_config_files programs/hh/Makefile"
20892
20893 ac_config_files="$ac_config_files programs/icinfo/Makefile"
20894
20895 ac_config_files="$ac_config_files programs/iexplore/Makefile"
20896
20897 ac_config_files="$ac_config_files programs/msiexec/Makefile"
20898
20899 ac_config_files="$ac_config_files programs/net/Makefile"
20900
20901 ac_config_files="$ac_config_files programs/notepad/Makefile"
20902
20903 ac_config_files="$ac_config_files programs/oleview/Makefile"
20904
20905 ac_config_files="$ac_config_files programs/progman/Makefile"
20906
20907 ac_config_files="$ac_config_files programs/regedit/Makefile"
20908
20909 ac_config_files="$ac_config_files programs/regsvr32/Makefile"
20910
20911 ac_config_files="$ac_config_files programs/rpcss/Makefile"
20912
20913 ac_config_files="$ac_config_files programs/rundll32/Makefile"
20914
20915 ac_config_files="$ac_config_files programs/spoolsv/Makefile"
20916
20917 ac_config_files="$ac_config_files programs/start/Makefile"
20918
20919 ac_config_files="$ac_config_files programs/taskmgr/Makefile"
20920
20921 ac_config_files="$ac_config_files programs/uninstaller/Makefile"
20922
20923 ac_config_files="$ac_config_files programs/view/Makefile"
20924
20925 ac_config_files="$ac_config_files programs/wineboot/Makefile"
20926
20927 ac_config_files="$ac_config_files programs/winebrowser/Makefile"
20928
20929 ac_config_files="$ac_config_files programs/winecfg/Makefile"
20930
20931 ac_config_files="$ac_config_files programs/wineconsole/Makefile"
20932
20933 ac_config_files="$ac_config_files programs/winedbg/Makefile"
20934
20935 ac_config_files="$ac_config_files programs/winedevice/Makefile"
20936
20937 ac_config_files="$ac_config_files programs/winefile/Makefile"
20938
20939 ac_config_files="$ac_config_files programs/winemenubuilder/Makefile"
20940
20941 ac_config_files="$ac_config_files programs/winemine/Makefile"
20942
20943 ac_config_files="$ac_config_files programs/winepath/Makefile"
20944
20945 ac_config_files="$ac_config_files programs/winetest/Makefile"
20946
20947 ac_config_files="$ac_config_files programs/winevdm/Makefile"
20948
20949 ac_config_files="$ac_config_files programs/winhelp/Makefile"
20950
20951 ac_config_files="$ac_config_files programs/winver/Makefile"
20952
20953 ac_config_files="$ac_config_files programs/wordpad/Makefile"
20954
20955 ac_config_files="$ac_config_files programs/write/Makefile"
20956
20957 ac_config_files="$ac_config_files programs/xcopy/Makefile"
20958
20959 ac_config_files="$ac_config_files server/Makefile"
20960
20961 ac_config_files="$ac_config_files tools/Makefile"
20962
20963 ac_config_files="$ac_config_files tools/widl/Makefile"
20964
20965 ac_config_files="$ac_config_files tools/winebuild/Makefile"
20966
20967 ac_config_files="$ac_config_files tools/winedump/Makefile"
20968
20969 ac_config_files="$ac_config_files tools/winegcc/Makefile"
20970
20971 ac_config_files="$ac_config_files tools/wmc/Makefile"
20972
20973 ac_config_files="$ac_config_files tools/wrc/Makefile"
20974
20975
20976 cat >confcache <<\_ACEOF
20977 # This file is a shell script that caches the results of configure
20978 # tests run on this system so they can be shared between configure
20979 # scripts and configure runs, see configure's option --config-cache.
20980 # It is not useful on other systems.  If it contains results you don't
20981 # want to keep, you may remove or edit it.
20982 #
20983 # config.status only pays attention to the cache file if you give it
20984 # the --recheck option to rerun configure.
20985 #
20986 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20987 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20988 # following values.
20989
20990 _ACEOF
20991
20992 # The following way of writing the cache mishandles newlines in values,
20993 # but we know of no workaround that is simple, portable, and efficient.
20994 # So, we kill variables containing newlines.
20995 # Ultrix sh set writes to stderr and can't be redirected directly,
20996 # and sets the high bit in the cache file unless we assign to the vars.
20997 (
20998   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20999     eval ac_val=\$$ac_var
21000     case $ac_val in #(
21001     *${as_nl}*)
21002       case $ac_var in #(
21003       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21004 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21005       esac
21006       case $ac_var in #(
21007       _ | IFS | as_nl) ;; #(
21008       *) $as_unset $ac_var ;;
21009       esac ;;
21010     esac
21011   done
21012
21013   (set) 2>&1 |
21014     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21015     *${as_nl}ac_space=\ *)
21016       # `set' does not quote correctly, so add quotes (double-quote
21017       # substitution turns \\\\ into \\, and sed turns \\ into \).
21018       sed -n \
21019         "s/'/'\\\\''/g;
21020           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21021       ;; #(
21022     *)
21023       # `set' quotes correctly as required by POSIX, so do not add quotes.
21024       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21025       ;;
21026     esac |
21027     sort
21028 ) |
21029   sed '
21030      /^ac_cv_env_/b end
21031      t clear
21032      :clear
21033      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21034      t end
21035      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21036      :end' >>confcache
21037 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21038   if test -w "$cache_file"; then
21039     test "x$cache_file" != "x/dev/null" &&
21040       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21041 echo "$as_me: updating cache $cache_file" >&6;}
21042     cat confcache >$cache_file
21043   else
21044     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21045 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21046   fi
21047 fi
21048 rm -f confcache
21049
21050 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21051 # Let make expand exec_prefix.
21052 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21053
21054 DEFS=-DHAVE_CONFIG_H
21055
21056 ac_libobjs=
21057 ac_ltlibobjs=
21058 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21059   # 1. Remove the extension, and $U if already installed.
21060   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21061   ac_i=`echo "$ac_i" | sed "$ac_script"`
21062   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21063   #    will be set to the directory where LIBOBJS objects are built.
21064   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21065   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21066 done
21067 LIBOBJS=$ac_libobjs
21068
21069 LTLIBOBJS=$ac_ltlibobjs
21070
21071
21072
21073 : ${CONFIG_STATUS=./config.status}
21074 ac_clean_files_save=$ac_clean_files
21075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21076 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21077 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21078 cat >$CONFIG_STATUS <<_ACEOF
21079 #! $SHELL
21080 # Generated by $as_me.
21081 # Run this file to recreate the current configuration.
21082 # Compiler output produced by configure, useful for debugging
21083 # configure, is in config.log if it exists.
21084
21085 debug=false
21086 ac_cs_recheck=false
21087 ac_cs_silent=false
21088 SHELL=\${CONFIG_SHELL-$SHELL}
21089 _ACEOF
21090
21091 cat >>$CONFIG_STATUS <<\_ACEOF
21092 ## --------------------- ##
21093 ## M4sh Initialization.  ##
21094 ## --------------------- ##
21095
21096 # Be more Bourne compatible
21097 DUALCASE=1; export DUALCASE # for MKS sh
21098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21099   emulate sh
21100   NULLCMD=:
21101   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21102   # is contrary to our usage.  Disable this feature.
21103   alias -g '${1+"$@"}'='"$@"'
21104   setopt NO_GLOB_SUBST
21105 else
21106   case `(set -o) 2>/dev/null` in
21107   *posix*) set -o posix ;;
21108 esac
21109
21110 fi
21111
21112
21113
21114
21115 # PATH needs CR
21116 # Avoid depending upon Character Ranges.
21117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21120 as_cr_digits='0123456789'
21121 as_cr_alnum=$as_cr_Letters$as_cr_digits
21122
21123 # The user is always right.
21124 if test "${PATH_SEPARATOR+set}" != set; then
21125   echo "#! /bin/sh" >conf$$.sh
21126   echo  "exit 0"   >>conf$$.sh
21127   chmod +x conf$$.sh
21128   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21129     PATH_SEPARATOR=';'
21130   else
21131     PATH_SEPARATOR=:
21132   fi
21133   rm -f conf$$.sh
21134 fi
21135
21136 # Support unset when possible.
21137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21138   as_unset=unset
21139 else
21140   as_unset=false
21141 fi
21142
21143
21144 # IFS
21145 # We need space, tab and new line, in precisely that order.  Quoting is
21146 # there to prevent editors from complaining about space-tab.
21147 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21148 # splitting by setting IFS to empty value.)
21149 as_nl='
21150 '
21151 IFS=" ""        $as_nl"
21152
21153 # Find who we are.  Look in the path if we contain no directory separator.
21154 case $0 in
21155   *[\\/]* ) as_myself=$0 ;;
21156   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21157 for as_dir in $PATH
21158 do
21159   IFS=$as_save_IFS
21160   test -z "$as_dir" && as_dir=.
21161   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21162 done
21163 IFS=$as_save_IFS
21164
21165      ;;
21166 esac
21167 # We did not find ourselves, most probably we were run as `sh COMMAND'
21168 # in which case we are not to be found in the path.
21169 if test "x$as_myself" = x; then
21170   as_myself=$0
21171 fi
21172 if test ! -f "$as_myself"; then
21173   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21174   { (exit 1); exit 1; }
21175 fi
21176
21177 # Work around bugs in pre-3.0 UWIN ksh.
21178 for as_var in ENV MAIL MAILPATH
21179 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21180 done
21181 PS1='$ '
21182 PS2='> '
21183 PS4='+ '
21184
21185 # NLS nuisances.
21186 for as_var in \
21187   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21188   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21189   LC_TELEPHONE LC_TIME
21190 do
21191   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21192     eval $as_var=C; export $as_var
21193   else
21194     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21195   fi
21196 done
21197
21198 # Required to use basename.
21199 if expr a : '\(a\)' >/dev/null 2>&1 &&
21200    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21201   as_expr=expr
21202 else
21203   as_expr=false
21204 fi
21205
21206 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21207   as_basename=basename
21208 else
21209   as_basename=false
21210 fi
21211
21212
21213 # Name of the executable.
21214 as_me=`$as_basename -- "$0" ||
21215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21216          X"$0" : 'X\(//\)$' \| \
21217          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21218 echo X/"$0" |
21219     sed '/^.*\/\([^/][^/]*\)\/*$/{
21220             s//\1/
21221             q
21222           }
21223           /^X\/\(\/\/\)$/{
21224             s//\1/
21225             q
21226           }
21227           /^X\/\(\/\).*/{
21228             s//\1/
21229             q
21230           }
21231           s/.*/./; q'`
21232
21233 # CDPATH.
21234 $as_unset CDPATH
21235
21236
21237
21238   as_lineno_1=$LINENO
21239   as_lineno_2=$LINENO
21240   test "x$as_lineno_1" != "x$as_lineno_2" &&
21241   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21242
21243   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21244   # uniformly replaced by the line number.  The first 'sed' inserts a
21245   # line-number line after each line using $LINENO; the second 'sed'
21246   # does the real work.  The second script uses 'N' to pair each
21247   # line-number line with the line containing $LINENO, and appends
21248   # trailing '-' during substitution so that $LINENO is not a special
21249   # case at line end.
21250   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21251   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21252   # E. McMahon (1931-1989) for sed's syntax.  :-)
21253   sed -n '
21254     p
21255     /[$]LINENO/=
21256   ' <$as_myself |
21257     sed '
21258       s/[$]LINENO.*/&-/
21259       t lineno
21260       b
21261       :lineno
21262       N
21263       :loop
21264       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21265       t loop
21266       s/-\n.*//
21267     ' >$as_me.lineno &&
21268   chmod +x "$as_me.lineno" ||
21269     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21270    { (exit 1); exit 1; }; }
21271
21272   # Don't try to exec as it changes $[0], causing all sort of problems
21273   # (the dirname of $[0] is not the place where we might find the
21274   # original and so on.  Autoconf is especially sensitive to this).
21275   . "./$as_me.lineno"
21276   # Exit status is that of the last command.
21277   exit
21278 }
21279
21280
21281 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21282   as_dirname=dirname
21283 else
21284   as_dirname=false
21285 fi
21286
21287 ECHO_C= ECHO_N= ECHO_T=
21288 case `echo -n x` in
21289 -n*)
21290   case `echo 'x\c'` in
21291   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21292   *)   ECHO_C='\c';;
21293   esac;;
21294 *)
21295   ECHO_N='-n';;
21296 esac
21297
21298 if expr a : '\(a\)' >/dev/null 2>&1 &&
21299    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21300   as_expr=expr
21301 else
21302   as_expr=false
21303 fi
21304
21305 rm -f conf$$ conf$$.exe conf$$.file
21306 if test -d conf$$.dir; then
21307   rm -f conf$$.dir/conf$$.file
21308 else
21309   rm -f conf$$.dir
21310   mkdir conf$$.dir
21311 fi
21312 echo >conf$$.file
21313 if ln -s conf$$.file conf$$ 2>/dev/null; then
21314   as_ln_s='ln -s'
21315   # ... but there are two gotchas:
21316   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21317   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21318   # In both cases, we have to default to `cp -p'.
21319   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21320     as_ln_s='cp -p'
21321 elif ln conf$$.file conf$$ 2>/dev/null; then
21322   as_ln_s=ln
21323 else
21324   as_ln_s='cp -p'
21325 fi
21326 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21327 rmdir conf$$.dir 2>/dev/null
21328
21329 if mkdir -p . 2>/dev/null; then
21330   as_mkdir_p=:
21331 else
21332   test -d ./-p && rmdir ./-p
21333   as_mkdir_p=false
21334 fi
21335
21336 if test -x / >/dev/null 2>&1; then
21337   as_test_x='test -x'
21338 else
21339   if ls -dL / >/dev/null 2>&1; then
21340     as_ls_L_option=L
21341   else
21342     as_ls_L_option=
21343   fi
21344   as_test_x='
21345     eval sh -c '\''
21346       if test -d "$1"; then
21347         test -d "$1/.";
21348       else
21349         case $1 in
21350         -*)set "./$1";;
21351         esac;
21352         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21353         ???[sx]*):;;*)false;;esac;fi
21354     '\'' sh
21355   '
21356 fi
21357 as_executable_p=$as_test_x
21358
21359 # Sed expression to map a string onto a valid CPP name.
21360 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21361
21362 # Sed expression to map a string onto a valid variable name.
21363 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21364
21365
21366 exec 6>&1
21367
21368 # Save the log message, to keep $[0] and so on meaningful, and to
21369 # report actual input values of CONFIG_FILES etc. instead of their
21370 # values after options handling.
21371 ac_log="
21372 This file was extended by Wine $as_me 0.9.46, which was
21373 generated by GNU Autoconf 2.61.  Invocation command line was
21374
21375   CONFIG_FILES    = $CONFIG_FILES
21376   CONFIG_HEADERS  = $CONFIG_HEADERS
21377   CONFIG_LINKS    = $CONFIG_LINKS
21378   CONFIG_COMMANDS = $CONFIG_COMMANDS
21379   $ $0 $@
21380
21381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21382 "
21383
21384 _ACEOF
21385
21386 cat >>$CONFIG_STATUS <<_ACEOF
21387 # Files that config.status was made for.
21388 config_files="$ac_config_files"
21389 config_headers="$ac_config_headers"
21390 config_commands="$ac_config_commands"
21391
21392 _ACEOF
21393
21394 cat >>$CONFIG_STATUS <<\_ACEOF
21395 ac_cs_usage="\
21396 \`$as_me' instantiates files from templates according to the
21397 current configuration.
21398
21399 Usage: $0 [OPTIONS] [FILE]...
21400
21401   -h, --help       print this help, then exit
21402   -V, --version    print version number and configuration settings, then exit
21403   -q, --quiet      do not print progress messages
21404   -d, --debug      don't remove temporary files
21405       --recheck    update $as_me by reconfiguring in the same conditions
21406   --file=FILE[:TEMPLATE]
21407                    instantiate the configuration file FILE
21408   --header=FILE[:TEMPLATE]
21409                    instantiate the configuration header FILE
21410
21411 Configuration files:
21412 $config_files
21413
21414 Configuration headers:
21415 $config_headers
21416
21417 Configuration commands:
21418 $config_commands
21419
21420 Report bugs to <bug-autoconf@gnu.org>."
21421
21422 _ACEOF
21423 cat >>$CONFIG_STATUS <<_ACEOF
21424 ac_cs_version="\\
21425 Wine config.status 0.9.46
21426 configured by $0, generated by GNU Autoconf 2.61,
21427   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21428
21429 Copyright (C) 2006 Free Software Foundation, Inc.
21430 This config.status script is free software; the Free Software Foundation
21431 gives unlimited permission to copy, distribute and modify it."
21432
21433 ac_pwd='$ac_pwd'
21434 srcdir='$srcdir'
21435 INSTALL='$INSTALL'
21436 _ACEOF
21437
21438 cat >>$CONFIG_STATUS <<\_ACEOF
21439 # If no file are specified by the user, then we need to provide default
21440 # value.  By we need to know if files were specified by the user.
21441 ac_need_defaults=:
21442 while test $# != 0
21443 do
21444   case $1 in
21445   --*=*)
21446     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21447     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21448     ac_shift=:
21449     ;;
21450   *)
21451     ac_option=$1
21452     ac_optarg=$2
21453     ac_shift=shift
21454     ;;
21455   esac
21456
21457   case $ac_option in
21458   # Handling of the options.
21459   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21460     ac_cs_recheck=: ;;
21461   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21462     echo "$ac_cs_version"; exit ;;
21463   --debug | --debu | --deb | --de | --d | -d )
21464     debug=: ;;
21465   --file | --fil | --fi | --f )
21466     $ac_shift
21467     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21468     ac_need_defaults=false;;
21469   --header | --heade | --head | --hea )
21470     $ac_shift
21471     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21472     ac_need_defaults=false;;
21473   --he | --h)
21474     # Conflict between --help and --header
21475     { echo "$as_me: error: ambiguous option: $1
21476 Try \`$0 --help' for more information." >&2
21477    { (exit 1); exit 1; }; };;
21478   --help | --hel | -h )
21479     echo "$ac_cs_usage"; exit ;;
21480   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21481   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21482     ac_cs_silent=: ;;
21483
21484   # This is an error.
21485   -*) { echo "$as_me: error: unrecognized option: $1
21486 Try \`$0 --help' for more information." >&2
21487    { (exit 1); exit 1; }; } ;;
21488
21489   *) ac_config_targets="$ac_config_targets $1"
21490      ac_need_defaults=false ;;
21491
21492   esac
21493   shift
21494 done
21495
21496 ac_configure_extra_args=
21497
21498 if $ac_cs_silent; then
21499   exec 6>/dev/null
21500   ac_configure_extra_args="$ac_configure_extra_args --silent"
21501 fi
21502
21503 _ACEOF
21504 cat >>$CONFIG_STATUS <<_ACEOF
21505 if \$ac_cs_recheck; then
21506   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21507   CONFIG_SHELL=$SHELL
21508   export CONFIG_SHELL
21509   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21510 fi
21511
21512 _ACEOF
21513 cat >>$CONFIG_STATUS <<\_ACEOF
21514 exec 5>>config.log
21515 {
21516   echo
21517   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21518 ## Running $as_me. ##
21519 _ASBOX
21520   echo "$ac_log"
21521 } >&5
21522
21523 _ACEOF
21524 cat >>$CONFIG_STATUS <<_ACEOF
21525 _ACEOF
21526
21527 cat >>$CONFIG_STATUS <<\_ACEOF
21528
21529 # Handling of arguments.
21530 for ac_config_target in $ac_config_targets
21531 do
21532   case $ac_config_target in
21533     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21534     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
21535     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
21536     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
21537     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
21538     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
21539     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
21540     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21541     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
21542     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
21543     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
21544     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
21545     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
21546     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21547     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
21548     "dlls/acledit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/acledit/Makefile" ;;
21549     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
21550     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
21551     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
21552     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
21553     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
21554     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
21555     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
21556     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
21557     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
21558     "dlls/browseui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/Makefile" ;;
21559     "dlls/browseui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/tests/Makefile" ;;
21560     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
21561     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
21562     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
21563     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
21564     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
21565     "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
21566     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
21567     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
21568     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
21569     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
21570     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
21571     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
21572     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
21573     "dlls/credui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/credui/Makefile" ;;
21574     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
21575     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
21576     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
21577     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
21578     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
21579     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
21580     "dlls/d3d10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d10/Makefile" ;;
21581     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
21582     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
21583     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
21584     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
21585     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
21586     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
21587     "dlls/d3drm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/tests/Makefile" ;;
21588     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
21589     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
21590     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
21591     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
21592     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
21593     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
21594     "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
21595     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
21596     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
21597     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
21598     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
21599     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
21600     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
21601     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
21602     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
21603     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
21604     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
21605     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
21606     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
21607     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
21608     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
21609     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
21610     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
21611     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
21612     "dlls/dplayx/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/tests/Makefile" ;;
21613     "dlls/dpnaddr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnaddr/Makefile" ;;
21614     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
21615     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
21616     "dlls/dpnlobby/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnlobby/Makefile" ;;
21617     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
21618     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
21619     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
21620     "dlls/dwmapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dwmapi/Makefile" ;;
21621     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
21622     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
21623     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
21624     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
21625     "dlls/faultrep/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/faultrep/Makefile" ;;
21626     "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
21627     "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
21628     "dlls/gdiplus/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/Makefile" ;;
21629     "dlls/gdiplus/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/tests/Makefile" ;;
21630     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
21631     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
21632     "dlls/hal/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hal/Makefile" ;;
21633     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
21634     "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
21635     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
21636     "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
21637     "dlls/hnetcfg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hnetcfg/Makefile" ;;
21638     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
21639     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
21640     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
21641     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
21642     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
21643     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
21644     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
21645     "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
21646     "dlls/inkobj/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inkobj/Makefile" ;;
21647     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
21648     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
21649     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
21650     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
21651     "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
21652     "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
21653     "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
21654     "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
21655     "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
21656     "dlls/localui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/Makefile" ;;
21657     "dlls/localui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/tests/Makefile" ;;
21658     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
21659     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
21660     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
21661     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
21662     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
21663     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
21664     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
21665     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
21666     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
21667     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
21668     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
21669     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
21670     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
21671     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
21672     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
21673     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
21674     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
21675     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
21676     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
21677     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
21678     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
21679     "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
21680     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
21681     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
21682     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
21683     "dlls/mshtml.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml.tlb/Makefile" ;;
21684     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
21685     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
21686     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
21687     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
21688     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
21689     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
21690     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
21691     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
21692     "dlls/msvcirt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcirt/Makefile" ;;
21693     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
21694     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
21695     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
21696     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
21697     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
21698     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
21699     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
21700     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
21701     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
21702     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
21703     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
21704     "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
21705     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21706     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21707     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21708     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21709     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21710     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
21711     "dlls/ntoskrnl.exe/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntoskrnl.exe/Makefile" ;;
21712     "dlls/ntprint/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntprint/Makefile" ;;
21713     "dlls/ntprint/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntprint/tests/Makefile" ;;
21714     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21715     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21716     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
21717     "dlls/odbccp32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/tests/Makefile" ;;
21718     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21719     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21720     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21721     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21722     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21723     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21724     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21725     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21726     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
21727     "dlls/olethk32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olethk32/Makefile" ;;
21728     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
21729     "dlls/opengl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/tests/Makefile" ;;
21730     "dlls/pdh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/Makefile" ;;
21731     "dlls/pdh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/tests/Makefile" ;;
21732     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
21733     "dlls/printui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/printui/Makefile" ;;
21734     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21735     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
21736     "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
21737     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21738     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21739     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
21740     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
21741     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
21742     "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
21743     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21744     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21745     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21746     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21747     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21748     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21749     "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21750     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21751     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21752     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
21753     "dlls/schannel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/Makefile" ;;
21754     "dlls/schannel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/tests/Makefile" ;;
21755     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21756     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21757     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21758     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21759     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
21760     "dlls/serialui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/tests/Makefile" ;;
21761     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21762     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21763     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
21764     "dlls/sfc_os/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc_os/Makefile" ;;
21765     "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
21766     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21767     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21768     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21769     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21770     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21771     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21772     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21773     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
21774     "dlls/snmpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/tests/Makefile" ;;
21775     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21776     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21777     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21778     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21779     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
21780     "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
21781     "dlls/sxs/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sxs/Makefile" ;;
21782     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21783     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21784     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21785     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21786     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21787     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
21788     "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
21789     "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
21790     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
21791     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21792     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21793     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21794     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
21795     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
21796     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21797     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21798     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21799     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21800     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21801     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21802     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21803     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21804     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21805     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
21806     "dlls/winealsa.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winealsa.drv/Makefile" ;;
21807     "dlls/wineaudioio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineaudioio.drv/Makefile" ;;
21808     "dlls/winecoreaudio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecoreaudio.drv/Makefile" ;;
21809     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21810     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21811     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
21812     "dlls/wineesd.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineesd.drv/Makefile" ;;
21813     "dlls/winejack.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejack.drv/Makefile" ;;
21814     "dlls/winejoystick.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejoystick.drv/Makefile" ;;
21815     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
21816     "dlls/winenas.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winenas.drv/Makefile" ;;
21817     "dlls/wineoss.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineoss.drv/Makefile" ;;
21818     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
21819     "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
21820     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
21821     "dlls/wing32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wing32/Makefile" ;;
21822     "dlls/winhttp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winhttp/Makefile" ;;
21823     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21824     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21825     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
21826     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
21827     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
21828     "dlls/winscard/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winscard/Makefile" ;;
21829     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
21830     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
21831     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
21832     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
21833     "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
21834     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
21835     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
21836     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21837     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
21838     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
21839     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21840     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
21841     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
21842     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21843     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21844     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21845     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
21846     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21847     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21848     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21849     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21850     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
21851     "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
21852     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21853     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21854     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
21855     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21856     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
21857     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
21858     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
21859     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
21860     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
21861     "programs/net/Makefile") CONFIG_FILES="$CONFIG_FILES programs/net/Makefile" ;;
21862     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
21863     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
21864     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21865     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21866     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21867     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21868     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
21869     "programs/spoolsv/Makefile") CONFIG_FILES="$CONFIG_FILES programs/spoolsv/Makefile" ;;
21870     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21871     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21872     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21873     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
21874     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21875     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21876     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21877     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21878     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21879     "programs/winedevice/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedevice/Makefile" ;;
21880     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21881     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21882     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21883     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21884     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21885     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21886     "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21887     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21888     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
21889     "programs/write/Makefile") CONFIG_FILES="$CONFIG_FILES programs/write/Makefile" ;;
21890     "programs/xcopy/Makefile") CONFIG_FILES="$CONFIG_FILES programs/xcopy/Makefile" ;;
21891     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21892     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21893     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21894     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21895     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21896     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21897     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21898     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21899
21900   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21901 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21902    { (exit 1); exit 1; }; };;
21903   esac
21904 done
21905
21906
21907 # If the user did not use the arguments to specify the items to instantiate,
21908 # then the envvar interface is used.  Set only those that are not.
21909 # We use the long form for the default assignment because of an extremely
21910 # bizarre bug on SunOS 4.1.3.
21911 if $ac_need_defaults; then
21912   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21913   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21914   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21915 fi
21916
21917 # Have a temporary directory for convenience.  Make it in the build tree
21918 # simply because there is no reason against having it here, and in addition,
21919 # creating and moving files from /tmp can sometimes cause problems.
21920 # Hook for its removal unless debugging.
21921 # Note that there is a small window in which the directory will not be cleaned:
21922 # after its creation but before its name has been assigned to `$tmp'.
21923 $debug ||
21924 {
21925   tmp=
21926   trap 'exit_status=$?
21927   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21928 ' 0
21929   trap '{ (exit 1); exit 1; }' 1 2 13 15
21930 }
21931 # Create a (secure) tmp directory for tmp files.
21932
21933 {
21934   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21935   test -n "$tmp" && test -d "$tmp"
21936 }  ||
21937 {
21938   tmp=./conf$$-$RANDOM
21939   (umask 077 && mkdir "$tmp")
21940 } ||
21941 {
21942    echo "$me: cannot create a temporary directory in ." >&2
21943    { (exit 1); exit 1; }
21944 }
21945
21946 #
21947 # Set up the sed scripts for CONFIG_FILES section.
21948 #
21949
21950 # No need to generate the scripts if there are no CONFIG_FILES.
21951 # This happens for instance when ./config.status config.h
21952 if test -n "$CONFIG_FILES"; then
21953
21954 _ACEOF
21955
21956 # Create sed commands to just substitute file output variables.
21957
21958 # Remaining file output variables are in a fragment that also has non-file
21959 # output varibles.
21960
21961
21962
21963 ac_delim='%!_!# '
21964 for ac_last_try in false false false false false :; do
21965   cat >conf$$subs.sed <<_ACEOF
21966 SHELL!$SHELL$ac_delim
21967 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21968 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21969 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21970 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21971 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21972 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21973 exec_prefix!$exec_prefix$ac_delim
21974 prefix!$prefix$ac_delim
21975 program_transform_name!$program_transform_name$ac_delim
21976 bindir!$bindir$ac_delim
21977 sbindir!$sbindir$ac_delim
21978 libexecdir!$libexecdir$ac_delim
21979 datarootdir!$datarootdir$ac_delim
21980 datadir!$datadir$ac_delim
21981 sysconfdir!$sysconfdir$ac_delim
21982 sharedstatedir!$sharedstatedir$ac_delim
21983 localstatedir!$localstatedir$ac_delim
21984 includedir!$includedir$ac_delim
21985 oldincludedir!$oldincludedir$ac_delim
21986 docdir!$docdir$ac_delim
21987 infodir!$infodir$ac_delim
21988 htmldir!$htmldir$ac_delim
21989 dvidir!$dvidir$ac_delim
21990 pdfdir!$pdfdir$ac_delim
21991 psdir!$psdir$ac_delim
21992 libdir!$libdir$ac_delim
21993 localedir!$localedir$ac_delim
21994 mandir!$mandir$ac_delim
21995 DEFS!$DEFS$ac_delim
21996 ECHO_C!$ECHO_C$ac_delim
21997 ECHO_N!$ECHO_N$ac_delim
21998 ECHO_T!$ECHO_T$ac_delim
21999 LIBS!$LIBS$ac_delim
22000 build_alias!$build_alias$ac_delim
22001 host_alias!$host_alias$ac_delim
22002 target_alias!$target_alias$ac_delim
22003 build!$build$ac_delim
22004 build_cpu!$build_cpu$ac_delim
22005 build_vendor!$build_vendor$ac_delim
22006 build_os!$build_os$ac_delim
22007 host!$host$ac_delim
22008 host_cpu!$host_cpu$ac_delim
22009 host_vendor!$host_vendor$ac_delim
22010 host_os!$host_os$ac_delim
22011 WIN16_FILES!$WIN16_FILES$ac_delim
22012 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
22013 SET_MAKE!$SET_MAKE$ac_delim
22014 CC!$CC$ac_delim
22015 CFLAGS!$CFLAGS$ac_delim
22016 LDFLAGS!$LDFLAGS$ac_delim
22017 CPPFLAGS!$CPPFLAGS$ac_delim
22018 ac_ct_CC!$ac_ct_CC$ac_delim
22019 EXEEXT!$EXEEXT$ac_delim
22020 OBJEXT!$OBJEXT$ac_delim
22021 CXX!$CXX$ac_delim
22022 CXXFLAGS!$CXXFLAGS$ac_delim
22023 ac_ct_CXX!$ac_ct_CXX$ac_delim
22024 CPPBIN!$CPPBIN$ac_delim
22025 TOOLSDIR!$TOOLSDIR$ac_delim
22026 XMKMF!$XMKMF$ac_delim
22027 CPP!$CPP$ac_delim
22028 X_CFLAGS!$X_CFLAGS$ac_delim
22029 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
22030 X_LIBS!$X_LIBS$ac_delim
22031 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
22032 FLEX!$FLEX$ac_delim
22033 BISON!$BISON$ac_delim
22034 AS!$AS$ac_delim
22035 ac_ct_AS!$ac_ct_AS$ac_delim
22036 LD!$LD$ac_delim
22037 AR!$AR$ac_delim
22038 RANLIB!$RANLIB$ac_delim
22039 STRIP!$STRIP$ac_delim
22040 WINDRES!$WINDRES$ac_delim
22041 LN_S!$LN_S$ac_delim
22042 LN!$LN$ac_delim
22043 GREP!$GREP$ac_delim
22044 EGREP!$EGREP$ac_delim
22045 LDCONFIG!$LDCONFIG$ac_delim
22046 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22047 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22048 _ACEOF
22049
22050   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
22051     break
22052   elif $ac_last_try; then
22053     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22054 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22055    { (exit 1); exit 1; }; }
22056   else
22057     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22058   fi
22059 done
22060
22061 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22062 if test -n "$ac_eof"; then
22063   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22064   ac_eof=`expr $ac_eof + 1`
22065 fi
22066
22067 cat >>$CONFIG_STATUS <<_ACEOF
22068 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22069 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22070 /^[      ]*@MAKE_RULES@[         ]*$/{
22071 r $MAKE_RULES
22072 d
22073 }
22074 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
22075 r $MAKE_DLL_RULES
22076 d
22077 }
22078 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
22079 r $MAKE_IMPLIB_RULES
22080 d
22081 }
22082 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
22083 r $MAKE_TEST_RULES
22084 d
22085 }
22086 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
22087 r $MAKE_PROG_RULES
22088 d
22089 }
22090 _ACEOF
22091 sed '
22092 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22093 s/^/s,@/; s/!/@,|#_!!_#|/
22094 :n
22095 t n
22096 s/'"$ac_delim"'$/,g/; t
22097 s/$/\\/; p
22098 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22099 ' >>$CONFIG_STATUS <conf$$subs.sed
22100 rm -f conf$$subs.sed
22101 cat >>$CONFIG_STATUS <<_ACEOF
22102 CEOF$ac_eof
22103 _ACEOF
22104
22105
22106 ac_delim='%!_!# '
22107 for ac_last_try in false false false false false :; do
22108   cat >conf$$subs.sed <<_ACEOF
22109 INSTALL_DATA!$INSTALL_DATA$ac_delim
22110 LINT!$LINT$ac_delim
22111 LINTFLAGS!$LINTFLAGS$ac_delim
22112 FONTFORGE!$FONTFORGE$ac_delim
22113 PKG_CONFIG!$PKG_CONFIG$ac_delim
22114 PRELINK!$PRELINK$ac_delim
22115 LIBPTHREAD!$LIBPTHREAD$ac_delim
22116 XLIB!$XLIB$ac_delim
22117 XFILES!$XFILES$ac_delim
22118 OPENGLFILES!$OPENGLFILES$ac_delim
22119 GLU32FILES!$GLU32FILES$ac_delim
22120 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
22121 QUARTZFILES!$QUARTZFILES$ac_delim
22122 DLLEXT!$DLLEXT$ac_delim
22123 DLLFLAGS!$DLLFLAGS$ac_delim
22124 LDSHARED!$LDSHARED$ac_delim
22125 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
22126 LIBEXT!$LIBEXT$ac_delim
22127 IMPLIBEXT!$IMPLIBEXT$ac_delim
22128 LDRPATH_INSTALL!$LDRPATH_INSTALL$ac_delim
22129 LDRPATH_LOCAL!$LDRPATH_LOCAL$ac_delim
22130 LDD!$LDD$ac_delim
22131 DLLTOOL!$DLLTOOL$ac_delim
22132 DLLWRAP!$DLLWRAP$ac_delim
22133 MINGWAR!$MINGWAR$ac_delim
22134 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
22135 IOKITLIB!$IOKITLIB$ac_delim
22136 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
22137 DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
22138 COREAUDIO!$COREAUDIO$ac_delim
22139 CARBONLIB!$CARBONLIB$ac_delim
22140 CROSSTEST!$CROSSTEST$ac_delim
22141 CROSSCC!$CROSSCC$ac_delim
22142 CROSSWINDRES!$CROSSWINDRES$ac_delim
22143 NASLIBS!$NASLIBS$ac_delim
22144 XML2LIBS!$XML2LIBS$ac_delim
22145 XML2INCL!$XML2INCL$ac_delim
22146 XSLTLIBS!$XSLTLIBS$ac_delim
22147 XSLTINCL!$XSLTINCL$ac_delim
22148 HALINCL!$HALINCL$ac_delim
22149 sane_devel!$sane_devel$ac_delim
22150 SANEINCL!$SANEINCL$ac_delim
22151 gphoto2_devel!$gphoto2_devel$ac_delim
22152 gphoto2port_devel!$gphoto2port_devel$ac_delim
22153 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
22154 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
22155 RESOLVLIBS!$RESOLVLIBS$ac_delim
22156 LCMSLIBS!$LCMSLIBS$ac_delim
22157 LDAPLIBS!$LDAPLIBS$ac_delim
22158 ft_devel!$ft_devel$ac_delim
22159 FREETYPELIBS!$FREETYPELIBS$ac_delim
22160 FREETYPEINCL!$FREETYPEINCL$ac_delim
22161 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
22162 ESDCONFIG!$ESDCONFIG$ac_delim
22163 ESDLIBS!$ESDLIBS$ac_delim
22164 ESDINCL!$ESDINCL$ac_delim
22165 ALSALIBS!$ALSALIBS$ac_delim
22166 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
22167 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
22168 BUILTINFLAG!$BUILTINFLAG$ac_delim
22169 LDPATH!$LDPATH$ac_delim
22170 CRTLIBS!$CRTLIBS$ac_delim
22171 SOCKETLIBS!$SOCKETLIBS$ac_delim
22172 MAIN_BINARY!$MAIN_BINARY$ac_delim
22173 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
22174 LIBDL!$LIBDL$ac_delim
22175 LIBPOLL!$LIBPOLL$ac_delim
22176 DEPENDENCIES!$DEPENDENCIES$ac_delim
22177 LIBOBJS!$LIBOBJS$ac_delim
22178 LTLIBOBJS!$LTLIBOBJS$ac_delim
22179 _ACEOF
22180
22181   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
22182     break
22183   elif $ac_last_try; then
22184     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22185 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22186    { (exit 1); exit 1; }; }
22187   else
22188     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22189   fi
22190 done
22191
22192 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22193 if test -n "$ac_eof"; then
22194   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22195   ac_eof=`expr $ac_eof + 1`
22196 fi
22197
22198 cat >>$CONFIG_STATUS <<_ACEOF
22199 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22201 _ACEOF
22202 sed '
22203 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22204 s/^/s,@/; s/!/@,|#_!!_#|/
22205 :n
22206 t n
22207 s/'"$ac_delim"'$/,g/; t
22208 s/$/\\/; p
22209 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22210 ' >>$CONFIG_STATUS <conf$$subs.sed
22211 rm -f conf$$subs.sed
22212 cat >>$CONFIG_STATUS <<_ACEOF
22213 :end
22214 s/|#_!!_#|//g
22215 CEOF$ac_eof
22216 _ACEOF
22217
22218
22219 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22220 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22221 # trailing colons and then remove the whole line if VPATH becomes empty
22222 # (actually we leave an empty line to preserve line numbers).
22223 if test "x$srcdir" = x.; then
22224   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22225 s/:*\$(srcdir):*/:/
22226 s/:*\${srcdir}:*/:/
22227 s/:*@srcdir@:*/:/
22228 s/^\([^=]*=[     ]*\):*/\1/
22229 s/:*$//
22230 s/^[^=]*=[       ]*$//
22231 }'
22232 fi
22233
22234 cat >>$CONFIG_STATUS <<\_ACEOF
22235 fi # test -n "$CONFIG_FILES"
22236
22237
22238 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22239 do
22240   case $ac_tag in
22241   :[FHLC]) ac_mode=$ac_tag; continue;;
22242   esac
22243   case $ac_mode$ac_tag in
22244   :[FHL]*:*);;
22245   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22246 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22247    { (exit 1); exit 1; }; };;
22248   :[FH]-) ac_tag=-:-;;
22249   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22250   esac
22251   ac_save_IFS=$IFS
22252   IFS=:
22253   set x $ac_tag
22254   IFS=$ac_save_IFS
22255   shift
22256   ac_file=$1
22257   shift
22258
22259   case $ac_mode in
22260   :L) ac_source=$1;;
22261   :[FH])
22262     ac_file_inputs=
22263     for ac_f
22264     do
22265       case $ac_f in
22266       -) ac_f="$tmp/stdin";;
22267       *) # Look for the file first in the build tree, then in the source tree
22268          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22269          # because $ac_f cannot contain `:'.
22270          test -f "$ac_f" ||
22271            case $ac_f in
22272            [\\/$]*) false;;
22273            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22274            esac ||
22275            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22276 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22277    { (exit 1); exit 1; }; };;
22278       esac
22279       ac_file_inputs="$ac_file_inputs $ac_f"
22280     done
22281
22282     # Let's still pretend it is `configure' which instantiates (i.e., don't
22283     # use $as_me), people would be surprised to read:
22284     #    /* config.h.  Generated by config.status.  */
22285     configure_input="Generated from "`IFS=:
22286           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22287     if test x"$ac_file" != x-; then
22288       configure_input="$ac_file.  $configure_input"
22289       { echo "$as_me:$LINENO: creating $ac_file" >&5
22290 echo "$as_me: creating $ac_file" >&6;}
22291     fi
22292
22293     case $ac_tag in
22294     *:-:* | *:-) cat >"$tmp/stdin";;
22295     esac
22296     ;;
22297   esac
22298
22299   ac_dir=`$as_dirname -- "$ac_file" ||
22300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301          X"$ac_file" : 'X\(//\)[^/]' \| \
22302          X"$ac_file" : 'X\(//\)$' \| \
22303          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22304 echo X"$ac_file" |
22305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22306             s//\1/
22307             q
22308           }
22309           /^X\(\/\/\)[^/].*/{
22310             s//\1/
22311             q
22312           }
22313           /^X\(\/\/\)$/{
22314             s//\1/
22315             q
22316           }
22317           /^X\(\/\).*/{
22318             s//\1/
22319             q
22320           }
22321           s/.*/./; q'`
22322   { as_dir="$ac_dir"
22323   case $as_dir in #(
22324   -*) as_dir=./$as_dir;;
22325   esac
22326   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22327     as_dirs=
22328     while :; do
22329       case $as_dir in #(
22330       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22331       *) as_qdir=$as_dir;;
22332       esac
22333       as_dirs="'$as_qdir' $as_dirs"
22334       as_dir=`$as_dirname -- "$as_dir" ||
22335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22336          X"$as_dir" : 'X\(//\)[^/]' \| \
22337          X"$as_dir" : 'X\(//\)$' \| \
22338          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22339 echo X"$as_dir" |
22340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22341             s//\1/
22342             q
22343           }
22344           /^X\(\/\/\)[^/].*/{
22345             s//\1/
22346             q
22347           }
22348           /^X\(\/\/\)$/{
22349             s//\1/
22350             q
22351           }
22352           /^X\(\/\).*/{
22353             s//\1/
22354             q
22355           }
22356           s/.*/./; q'`
22357       test -d "$as_dir" && break
22358     done
22359     test -z "$as_dirs" || eval "mkdir $as_dirs"
22360   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22361 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22362    { (exit 1); exit 1; }; }; }
22363   ac_builddir=.
22364
22365 case "$ac_dir" in
22366 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22367 *)
22368   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22369   # A ".." for each directory in $ac_dir_suffix.
22370   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22371   case $ac_top_builddir_sub in
22372   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22373   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22374   esac ;;
22375 esac
22376 ac_abs_top_builddir=$ac_pwd
22377 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22378 # for backward compatibility:
22379 ac_top_builddir=$ac_top_build_prefix
22380
22381 case $srcdir in
22382   .)  # We are building in place.
22383     ac_srcdir=.
22384     ac_top_srcdir=$ac_top_builddir_sub
22385     ac_abs_top_srcdir=$ac_pwd ;;
22386   [\\/]* | ?:[\\/]* )  # Absolute name.
22387     ac_srcdir=$srcdir$ac_dir_suffix;
22388     ac_top_srcdir=$srcdir
22389     ac_abs_top_srcdir=$srcdir ;;
22390   *) # Relative name.
22391     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22392     ac_top_srcdir=$ac_top_build_prefix$srcdir
22393     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22394 esac
22395 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22396
22397
22398   case $ac_mode in
22399   :F)
22400   #
22401   # CONFIG_FILE
22402   #
22403
22404   case $INSTALL in
22405   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22406   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22407   esac
22408 _ACEOF
22409
22410 cat >>$CONFIG_STATUS <<\_ACEOF
22411 # If the template does not know about datarootdir, expand it.
22412 # FIXME: This hack should be removed a few years after 2.60.
22413 ac_datarootdir_hack=; ac_datarootdir_seen=
22414
22415 case `sed -n '/datarootdir/ {
22416   p
22417   q
22418 }
22419 /@datadir@/p
22420 /@docdir@/p
22421 /@infodir@/p
22422 /@localedir@/p
22423 /@mandir@/p
22424 ' $ac_file_inputs` in
22425 *datarootdir*) ac_datarootdir_seen=yes;;
22426 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22427   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22428 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22429 _ACEOF
22430 cat >>$CONFIG_STATUS <<_ACEOF
22431   ac_datarootdir_hack='
22432   s&@datadir@&$datadir&g
22433   s&@docdir@&$docdir&g
22434   s&@infodir@&$infodir&g
22435   s&@localedir@&$localedir&g
22436   s&@mandir@&$mandir&g
22437     s&\\\${datarootdir}&$datarootdir&g' ;;
22438 esac
22439 _ACEOF
22440
22441 # Neutralize VPATH when `$srcdir' = `.'.
22442 # Shell code in configure.ac might set extrasub.
22443 # FIXME: do we really want to maintain this feature?
22444 cat >>$CONFIG_STATUS <<_ACEOF
22445   sed "$ac_vpsub
22446 $extrasub
22447 _ACEOF
22448 cat >>$CONFIG_STATUS <<\_ACEOF
22449 :t
22450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22451 s&@configure_input@&$configure_input&;t t
22452 s&@top_builddir@&$ac_top_builddir_sub&;t t
22453 s&@srcdir@&$ac_srcdir&;t t
22454 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22455 s&@top_srcdir@&$ac_top_srcdir&;t t
22456 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22457 s&@builddir@&$ac_builddir&;t t
22458 s&@abs_builddir@&$ac_abs_builddir&;t t
22459 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22460 s&@INSTALL@&$ac_INSTALL&;t t
22461 $ac_datarootdir_hack
22462 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22463
22464 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22465   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22466   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22467   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22468 which seems to be undefined.  Please make sure it is defined." >&5
22469 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22470 which seems to be undefined.  Please make sure it is defined." >&2;}
22471
22472   rm -f "$tmp/stdin"
22473   case $ac_file in
22474   -) cat "$tmp/out"; rm -f "$tmp/out";;
22475   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22476   esac
22477  ;;
22478   :H)
22479   #
22480   # CONFIG_HEADER
22481   #
22482 _ACEOF
22483
22484 # Transform confdefs.h into a sed script `conftest.defines', that
22485 # substitutes the proper values into config.h.in to produce config.h.
22486 rm -f conftest.defines conftest.tail
22487 # First, append a space to every undef/define line, to ease matching.
22488 echo 's/$/ /' >conftest.defines
22489 # Then, protect against being on the right side of a sed subst, or in
22490 # an unquoted here document, in config.status.  If some macros were
22491 # called several times there might be several #defines for the same
22492 # symbol, which is useless.  But do not sort them, since the last
22493 # AC_DEFINE must be honored.
22494 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22495 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22496 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22497 # PARAMS is the parameter list in the macro definition--in most cases, it's
22498 # just an empty string.
22499 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22500 ac_dB='\\)[      (].*,\\1define\\2'
22501 ac_dC=' '
22502 ac_dD=' ,'
22503
22504 uniq confdefs.h |
22505   sed -n '
22506         t rset
22507         :rset
22508         s/^[     ]*#[    ]*define[       ][      ]*//
22509         t ok
22510         d
22511         :ok
22512         s/[\\&,]/\\&/g
22513         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22514         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22515   ' >>conftest.defines
22516
22517 # Remove the space that was appended to ease matching.
22518 # Then replace #undef with comments.  This is necessary, for
22519 # example, in the case of _POSIX_SOURCE, which is predefined and required
22520 # on some systems where configure will not decide to define it.
22521 # (The regexp can be short, since the line contains either #define or #undef.)
22522 echo 's/ $//
22523 s,^[     #]*u.*,/* & */,' >>conftest.defines
22524
22525 # Break up conftest.defines:
22526 ac_max_sed_lines=50
22527
22528 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22529 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22530 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22531 # et cetera.
22532 ac_in='$ac_file_inputs'
22533 ac_out='"$tmp/out1"'
22534 ac_nxt='"$tmp/out2"'
22535
22536 while :
22537 do
22538   # Write a here document:
22539     cat >>$CONFIG_STATUS <<_ACEOF
22540     # First, check the format of the line:
22541     cat >"\$tmp/defines.sed" <<\\CEOF
22542 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22543 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22544 b
22545 :def
22546 _ACEOF
22547   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22548   echo 'CEOF
22549     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22550   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22551   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22552   grep . conftest.tail >/dev/null || break
22553   rm -f conftest.defines
22554   mv conftest.tail conftest.defines
22555 done
22556 rm -f conftest.defines conftest.tail
22557
22558 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22559 cat >>$CONFIG_STATUS <<\_ACEOF
22560   if test x"$ac_file" != x-; then
22561     echo "/* $configure_input  */" >"$tmp/config.h"
22562     cat "$ac_result" >>"$tmp/config.h"
22563     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22564       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22565 echo "$as_me: $ac_file is unchanged" >&6;}
22566     else
22567       rm -f $ac_file
22568       mv "$tmp/config.h" $ac_file
22569     fi
22570   else
22571     echo "/* $configure_input  */"
22572     cat "$ac_result"
22573   fi
22574   rm -f "$tmp/out12"
22575  ;;
22576
22577   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22578 echo "$as_me: executing $ac_file commands" >&6;}
22579  ;;
22580   esac
22581
22582
22583   case $ac_file$ac_mode in
22584     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
22585     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
22586 echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
22587     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
22588 echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
22589     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
22590 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
22591     "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
22592 echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
22593     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
22594 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
22595     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
22596 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
22597
22598   esac
22599 done # for ac_tag
22600
22601
22602 { (exit 0); exit 0; }
22603 _ACEOF
22604 chmod +x $CONFIG_STATUS
22605 ac_clean_files=$ac_clean_files_save
22606
22607
22608 # configure is writing to config.log, and then calls config.status.
22609 # config.status does its own redirection, appending to config.log.
22610 # Unfortunately, on DOS this fails, as config.log is still kept open
22611 # by configure, so config.status won't be able to write to it; its
22612 # output is simply discarded.  So we exec the FD to /dev/null,
22613 # effectively closing config.log, so it can be properly (re)opened and
22614 # appended to by config.status.  When coming back to configure, we
22615 # need to make the FD available again.
22616 if test "$no_create" != yes; then
22617   ac_cs_success=:
22618   ac_config_status_args=
22619   test "$silent" = yes &&
22620     ac_config_status_args="$ac_config_status_args --quiet"
22621   exec 5>/dev/null
22622   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22623   exec 5>>config.log
22624   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22625   # would make configure fail if this is the last instruction.
22626   $ac_cs_success || { (exit 1); exit 1; }
22627 fi
22628
22629
22630 if test "$no_create" = "yes"
22631 then
22632   exit 0
22633 fi
22634
22635 ac_save_IFS="$IFS"
22636 IFS="|"
22637 if test "$verbose" = "yes"; then
22638     for msg in $wine_notices; do
22639         if test -n "$msg"; then
22640             echo >&2
22641             { echo "$as_me:$LINENO: $msg" >&5
22642 echo "$as_me: $msg" >&6;}
22643         fi
22644     done
22645 fi
22646 for msg in $wine_warnings; do
22647     if test -n "$msg"; then
22648         echo >&2
22649         { echo "$as_me:$LINENO: WARNING: $msg" >&5
22650 echo "$as_me: WARNING: $msg" >&2;}
22651     fi
22652 done
22653 IFS="$ac_save_IFS"
22654
22655 echo
22656 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
22657 echo
22658