kernel32: GlobalMemoryStatusEx: return the size of physical memory + swapsize in...
[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.32.
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.32'
578 PACKAGE_STRING='Wine 0.9.32'
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 NASLIBS
714 XML2LIBS
715 XML2INCL
716 XSLTLIBS
717 XSLTINCL
718 HALINCL
719 sane_devel
720 SANELIBS
721 SANEINCL
722 gphoto2_devel
723 gphoto2port_devel
724 GPHOTO2LIBS
725 GPHOTO2INCL
726 ICULIBS
727 RESOLVLIBS
728 LCMSLIBS
729 LDAPLIBS
730 FREETYPELIBS
731 FREETYPEINCL
732 ft_devel
733 ft_devel2
734 FONTSSUBDIRS
735 ARTSCCONFIG
736 ARTSLIBS
737 ARTSINCL
738 ESDCONFIG
739 ESDLIBS
740 ESDINCL
741 ALSALIBS
742 AUDIOIOLIBS
743 EXTRACFLAGS
744 BUILTINFLAG
745 DLLEXT
746 DLLFLAGS
747 LDSHARED
748 LDDLLFLAGS
749 LIBEXT
750 IMPLIBEXT
751 LIBWINE_LDFLAGS
752 DLLTOOL
753 DLLWRAP
754 MINGWAR
755 COREFOUNDATIONLIB
756 IOKITLIB
757 LDEXECFLAGS
758 DISKARBITRATIONLIB
759 COREAUDIO
760 CARBONLIB
761 CROSSTEST
762 CROSSCC
763 CROSSWINDRES
764 LDPATH
765 CRTLIBS
766 SOCKETLIBS
767 MAIN_BINARY
768 EXTRA_BINARIES
769 LDD
770 LIBDL
771 LIBPOLL
772 DEPENDENCIES
773 LIBOBJS
774 LTLIBOBJS'
775 ac_subst_files='MAKE_RULES
776 MAKE_DLL_RULES
777 MAKE_IMPLIB_RULES
778 MAKE_TEST_RULES
779 MAKE_PROG_RULES'
780       ac_precious_vars='build_alias
781 host_alias
782 target_alias
783 CC
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
788 CXX
789 CXXFLAGS
790 CCC
791 XMKMF
792 CPP'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845   # If the previous option needs an argument, assign it.
846   if test -n "$ac_prev"; then
847     eval $ac_prev=\$ac_option
848     ac_prev=
849     continue
850   fi
851
852   case $ac_option in
853   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854   *)    ac_optarg=yes ;;
855   esac
856
857   # Accept the important Cygnus configure options, so we can diagnose typos.
858
859   case $ac_dashdash$ac_option in
860   --)
861     ac_dashdash=yes ;;
862
863   -bindir | --bindir | --bindi | --bind | --bin | --bi)
864     ac_prev=bindir ;;
865   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866     bindir=$ac_optarg ;;
867
868   -build | --build | --buil | --bui | --bu)
869     ac_prev=build_alias ;;
870   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871     build_alias=$ac_optarg ;;
872
873   -cache-file | --cache-file | --cache-fil | --cache-fi \
874   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875     ac_prev=cache_file ;;
876   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878     cache_file=$ac_optarg ;;
879
880   --config-cache | -C)
881     cache_file=config.cache ;;
882
883   -datadir | --datadir | --datadi | --datad)
884     ac_prev=datadir ;;
885   -datadir=* | --datadir=* | --datadi=* | --datad=*)
886     datadir=$ac_optarg ;;
887
888   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889   | --dataroo | --dataro | --datar)
890     ac_prev=datarootdir ;;
891   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893     datarootdir=$ac_optarg ;;
894
895   -disable-* | --disable-*)
896     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897     # Reject names that are not valid shell variable names.
898     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900    { (exit 1); exit 1; }; }
901     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902     eval enable_$ac_feature=no ;;
903
904   -docdir | --docdir | --docdi | --doc | --do)
905     ac_prev=docdir ;;
906   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907     docdir=$ac_optarg ;;
908
909   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910     ac_prev=dvidir ;;
911   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912     dvidir=$ac_optarg ;;
913
914   -enable-* | --enable-*)
915     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916     # Reject names that are not valid shell variable names.
917     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919    { (exit 1); exit 1; }; }
920     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921     eval enable_$ac_feature=\$ac_optarg ;;
922
923   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925   | --exec | --exe | --ex)
926     ac_prev=exec_prefix ;;
927   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929   | --exec=* | --exe=* | --ex=*)
930     exec_prefix=$ac_optarg ;;
931
932   -gas | --gas | --ga | --g)
933     # Obsolete; use --with-gas.
934     with_gas=yes ;;
935
936   -help | --help | --hel | --he | -h)
937     ac_init_help=long ;;
938   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939     ac_init_help=recursive ;;
940   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941     ac_init_help=short ;;
942
943   -host | --host | --hos | --ho)
944     ac_prev=host_alias ;;
945   -host=* | --host=* | --hos=* | --ho=*)
946     host_alias=$ac_optarg ;;
947
948   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949     ac_prev=htmldir ;;
950   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951   | --ht=*)
952     htmldir=$ac_optarg ;;
953
954   -includedir | --includedir | --includedi | --included | --include \
955   | --includ | --inclu | --incl | --inc)
956     ac_prev=includedir ;;
957   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958   | --includ=* | --inclu=* | --incl=* | --inc=*)
959     includedir=$ac_optarg ;;
960
961   -infodir | --infodir | --infodi | --infod | --info | --inf)
962     ac_prev=infodir ;;
963   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964     infodir=$ac_optarg ;;
965
966   -libdir | --libdir | --libdi | --libd)
967     ac_prev=libdir ;;
968   -libdir=* | --libdir=* | --libdi=* | --libd=*)
969     libdir=$ac_optarg ;;
970
971   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972   | --libexe | --libex | --libe)
973     ac_prev=libexecdir ;;
974   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975   | --libexe=* | --libex=* | --libe=*)
976     libexecdir=$ac_optarg ;;
977
978   -localedir | --localedir | --localedi | --localed | --locale)
979     ac_prev=localedir ;;
980   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981     localedir=$ac_optarg ;;
982
983   -localstatedir | --localstatedir | --localstatedi | --localstated \
984   | --localstate | --localstat | --localsta | --localst | --locals)
985     ac_prev=localstatedir ;;
986   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988     localstatedir=$ac_optarg ;;
989
990   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991     ac_prev=mandir ;;
992   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993     mandir=$ac_optarg ;;
994
995   -nfp | --nfp | --nf)
996     # Obsolete; use --without-fp.
997     with_fp=no ;;
998
999   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000   | --no-cr | --no-c | -n)
1001     no_create=yes ;;
1002
1003   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005     no_recursion=yes ;;
1006
1007   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009   | --oldin | --oldi | --old | --ol | --o)
1010     ac_prev=oldincludedir ;;
1011   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014     oldincludedir=$ac_optarg ;;
1015
1016   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017     ac_prev=prefix ;;
1018   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019     prefix=$ac_optarg ;;
1020
1021   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022   | --program-pre | --program-pr | --program-p)
1023     ac_prev=program_prefix ;;
1024   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026     program_prefix=$ac_optarg ;;
1027
1028   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029   | --program-suf | --program-su | --program-s)
1030     ac_prev=program_suffix ;;
1031   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033     program_suffix=$ac_optarg ;;
1034
1035   -program-transform-name | --program-transform-name \
1036   | --program-transform-nam | --program-transform-na \
1037   | --program-transform-n | --program-transform- \
1038   | --program-transform | --program-transfor \
1039   | --program-transfo | --program-transf \
1040   | --program-trans | --program-tran \
1041   | --progr-tra | --program-tr | --program-t)
1042     ac_prev=program_transform_name ;;
1043   -program-transform-name=* | --program-transform-name=* \
1044   | --program-transform-nam=* | --program-transform-na=* \
1045   | --program-transform-n=* | --program-transform-=* \
1046   | --program-transform=* | --program-transfor=* \
1047   | --program-transfo=* | --program-transf=* \
1048   | --program-trans=* | --program-tran=* \
1049   | --progr-tra=* | --program-tr=* | --program-t=*)
1050     program_transform_name=$ac_optarg ;;
1051
1052   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053     ac_prev=pdfdir ;;
1054   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055     pdfdir=$ac_optarg ;;
1056
1057   -psdir | --psdir | --psdi | --psd | --ps)
1058     ac_prev=psdir ;;
1059   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060     psdir=$ac_optarg ;;
1061
1062   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063   | -silent | --silent | --silen | --sile | --sil)
1064     silent=yes ;;
1065
1066   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067     ac_prev=sbindir ;;
1068   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069   | --sbi=* | --sb=*)
1070     sbindir=$ac_optarg ;;
1071
1072   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074   | --sharedst | --shareds | --shared | --share | --shar \
1075   | --sha | --sh)
1076     ac_prev=sharedstatedir ;;
1077   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080   | --sha=* | --sh=*)
1081     sharedstatedir=$ac_optarg ;;
1082
1083   -site | --site | --sit)
1084     ac_prev=site ;;
1085   -site=* | --site=* | --sit=*)
1086     site=$ac_optarg ;;
1087
1088   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089     ac_prev=srcdir ;;
1090   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091     srcdir=$ac_optarg ;;
1092
1093   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094   | --syscon | --sysco | --sysc | --sys | --sy)
1095     ac_prev=sysconfdir ;;
1096   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098     sysconfdir=$ac_optarg ;;
1099
1100   -target | --target | --targe | --targ | --tar | --ta | --t)
1101     ac_prev=target_alias ;;
1102   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103     target_alias=$ac_optarg ;;
1104
1105   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106     verbose=yes ;;
1107
1108   -version | --version | --versio | --versi | --vers | -V)
1109     ac_init_version=: ;;
1110
1111   -with-* | --with-*)
1112     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115       { echo "$as_me: error: invalid package name: $ac_package" >&2
1116    { (exit 1); exit 1; }; }
1117     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118     eval with_$ac_package=\$ac_optarg ;;
1119
1120   -without-* | --without-*)
1121     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127     eval with_$ac_package=no ;;
1128
1129   --x)
1130     # Obsolete; use --with-x.
1131     with_x=yes ;;
1132
1133   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134   | --x-incl | --x-inc | --x-in | --x-i)
1135     ac_prev=x_includes ;;
1136   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138     x_includes=$ac_optarg ;;
1139
1140   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142     ac_prev=x_libraries ;;
1143   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145     x_libraries=$ac_optarg ;;
1146
1147   -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149    { (exit 1); exit 1; }; }
1150     ;;
1151
1152   *=*)
1153     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157    { (exit 1); exit 1; }; }
1158     eval $ac_envvar=\$ac_optarg
1159     export $ac_envvar ;;
1160
1161   *)
1162     # FIXME: should be removed in autoconf 3.0.
1163     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167     ;;
1168
1169   esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174   { echo "$as_me: error: missing argument to $ac_option" >&2
1175    { (exit 1); exit 1; }; }
1176 fi
1177
1178 # Be sure to have absolute directory names.
1179 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180                 datadir sysconfdir sharedstatedir localstatedir includedir \
1181                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182                 libdir localedir mandir
1183 do
1184   eval ac_val=\$$ac_var
1185   case $ac_val in
1186     [\\/$]* | ?:[\\/]* )  continue;;
1187     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188   esac
1189   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190    { (exit 1); exit 1; }; }
1191 done
1192
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1199
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202   if test "x$build_alias" = x; then
1203     cross_compiling=maybe
1204     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205     If a cross compiler is detected then cross compile mode will be used." >&2
1206   elif test "x$build_alias" != "x$host_alias"; then
1207     cross_compiling=yes
1208   fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220   { echo "$as_me: error: Working directory cannot be determined" >&2
1221    { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223   { echo "$as_me: error: pwd does not report name of working directory" >&2
1224    { (exit 1); exit 1; }; }
1225
1226
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229   ac_srcdir_defaulted=yes
1230   # Try the directory containing this script, then the parent directory.
1231   ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233          X"$0" : 'X\(//\)[^/]' \| \
1234          X"$0" : 'X\(//\)$' \| \
1235          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1236 echo X"$0" |
1237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238             s//\1/
1239             q
1240           }
1241           /^X\(\/\/\)[^/].*/{
1242             s//\1/
1243             q
1244           }
1245           /^X\(\/\/\)$/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\).*/{
1250             s//\1/
1251             q
1252           }
1253           s/.*/./; q'`
1254   srcdir=$ac_confdir
1255   if test ! -r "$srcdir/$ac_unique_file"; then
1256     srcdir=..
1257   fi
1258 else
1259   ac_srcdir_defaulted=no
1260 fi
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264    { (exit 1); exit 1; }; }
1265 fi
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269    { (exit 1); exit 1; }; }
1270         pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273   srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283   eval ac_env_${ac_var}_value=\$${ac_var}
1284   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292   # Omit some internal or obsolete options to make the list less imposing.
1293   # This message is too long to be a string in the A/UX 3.1 sh.
1294   cat <<_ACEOF
1295 \`configure' configures Wine 0.9.32 to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE.  See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305   -h, --help              display this help and exit
1306       --help=short        display options specific to this package
1307       --help=recursive    display the short help of all the included packages
1308   -V, --version           display version information and exit
1309   -q, --quiet, --silent   do not print \`checking...' messages
1310       --cache-file=FILE   cache test results in FILE [disabled]
1311   -C, --config-cache      alias for \`--cache-file=config.cache'
1312   -n, --no-create         do not create output files
1313       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316   --prefix=PREFIX         install architecture-independent files in PREFIX
1317                           [$ac_default_prefix]
1318   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1319                           [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329   --bindir=DIR           user executables [EPREFIX/bin]
1330   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1331   --libexecdir=DIR       program executables [EPREFIX/libexec]
1332   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1333   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1334   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1335   --libdir=DIR           object code libraries [EPREFIX/lib]
1336   --includedir=DIR       C header files [PREFIX/include]
1337   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1338   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1339   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1340   --infodir=DIR          info documentation [DATAROOTDIR/info]
1341   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1342   --mandir=DIR           man documentation [DATAROOTDIR/man]
1343   --docdir=DIR           documentation root [DATAROOTDIR/doc/wine]
1344   --htmldir=DIR          html documentation [DOCDIR]
1345   --dvidir=DIR           dvi documentation [DOCDIR]
1346   --pdfdir=DIR           pdf documentation [DOCDIR]
1347   --psdir=DIR            ps documentation [DOCDIR]
1348 _ACEOF
1349
1350   cat <<\_ACEOF
1351
1352 X features:
1353   --x-includes=DIR    X include files are in DIR
1354   --x-libraries=DIR   X library files are in DIR
1355
1356 System types:
1357   --build=BUILD     configure for building on BUILD [guessed]
1358   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1359 _ACEOF
1360 fi
1361
1362 if test -n "$ac_init_help"; then
1363   case $ac_init_help in
1364      short | recursive ) echo "Configuration of Wine 0.9.32:";;
1365    esac
1366   cat <<\_ACEOF
1367
1368 Optional Features:
1369   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1370   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1371   --disable-win16         do not include Win16 support
1372   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1373                           binaries)
1374
1375 Optional Packages:
1376   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1377   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1378   --without-opengl        do not use OpenGL
1379   --with-wine-tools=<dir> use Wine tools from directory <dir>
1380   --with-x                use the X Window System
1381
1382 Some influential environment variables:
1383   CC          C compiler command
1384   CFLAGS      C compiler flags
1385   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1386               nonstandard directory <lib dir>
1387   LIBS        libraries to pass to the linker, e.g. -l<library>
1388   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1389               you have headers in a nonstandard directory <include dir>
1390   CXX         C++ compiler command
1391   CXXFLAGS    C++ compiler flags
1392   XMKMF       Path to xmkmf, Makefile generator for X Window System
1393   CPP         C preprocessor
1394
1395 Use these variables to override the choices made by `configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1397
1398 Report bugs to <wine-devel@winehq.org>.
1399 _ACEOF
1400 ac_status=$?
1401 fi
1402
1403 if test "$ac_init_help" = "recursive"; then
1404   # If there are subdirs, report their specific --help.
1405   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406     test -d "$ac_dir" || continue
1407     ac_builddir=.
1408
1409 case "$ac_dir" in
1410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *)
1412   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1413   # A ".." for each directory in $ac_dir_suffix.
1414   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1415   case $ac_top_builddir_sub in
1416   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1418   esac ;;
1419 esac
1420 ac_abs_top_builddir=$ac_pwd
1421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1422 # for backward compatibility:
1423 ac_top_builddir=$ac_top_build_prefix
1424
1425 case $srcdir in
1426   .)  # We are building in place.
1427     ac_srcdir=.
1428     ac_top_srcdir=$ac_top_builddir_sub
1429     ac_abs_top_srcdir=$ac_pwd ;;
1430   [\\/]* | ?:[\\/]* )  # Absolute name.
1431     ac_srcdir=$srcdir$ac_dir_suffix;
1432     ac_top_srcdir=$srcdir
1433     ac_abs_top_srcdir=$srcdir ;;
1434   *) # Relative name.
1435     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1436     ac_top_srcdir=$ac_top_build_prefix$srcdir
1437     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438 esac
1439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440
1441     cd "$ac_dir" || { ac_status=$?; continue; }
1442     # Check for guested configure.
1443     if test -f "$ac_srcdir/configure.gnu"; then
1444       echo &&
1445       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1446     elif test -f "$ac_srcdir/configure"; then
1447       echo &&
1448       $SHELL "$ac_srcdir/configure" --help=recursive
1449     else
1450       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451     fi || ac_status=$?
1452     cd "$ac_pwd" || { ac_status=$?; break; }
1453   done
1454 fi
1455
1456 test -n "$ac_init_help" && exit $ac_status
1457 if $ac_init_version; then
1458   cat <<\_ACEOF
1459 Wine configure 0.9.32
1460 generated by GNU Autoconf 2.61
1461
1462 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1463 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1464 This configure script is free software; the Free Software Foundation
1465 gives unlimited permission to copy, distribute and modify it.
1466 _ACEOF
1467   exit
1468 fi
1469 cat >config.log <<_ACEOF
1470 This file contains any messages produced by compilers while
1471 running configure, to aid debugging if configure makes a mistake.
1472
1473 It was created by Wine $as_me 0.9.32, which was
1474 generated by GNU Autoconf 2.61.  Invocation command line was
1475
1476   $ $0 $@
1477
1478 _ACEOF
1479 exec 5>>config.log
1480 {
1481 cat <<_ASUNAME
1482 ## --------- ##
1483 ## Platform. ##
1484 ## --------- ##
1485
1486 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1487 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1488 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1489 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1490 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1491
1492 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1493 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1494
1495 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1496 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1497 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1498 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1499 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1500 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1501 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1502
1503 _ASUNAME
1504
1505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 for as_dir in $PATH
1507 do
1508   IFS=$as_save_IFS
1509   test -z "$as_dir" && as_dir=.
1510   echo "PATH: $as_dir"
1511 done
1512 IFS=$as_save_IFS
1513
1514 } >&5
1515
1516 cat >&5 <<_ACEOF
1517
1518
1519 ## ----------- ##
1520 ## Core tests. ##
1521 ## ----------- ##
1522
1523 _ACEOF
1524
1525
1526 # Keep a trace of the command line.
1527 # Strip out --no-create and --no-recursion so they do not pile up.
1528 # Strip out --silent because we don't want to record it for future runs.
1529 # Also quote any args containing shell meta-characters.
1530 # Make two passes to allow for proper duplicate-argument suppression.
1531 ac_configure_args=
1532 ac_configure_args0=
1533 ac_configure_args1=
1534 ac_must_keep_next=false
1535 for ac_pass in 1 2
1536 do
1537   for ac_arg
1538   do
1539     case $ac_arg in
1540     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1541     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1542     | -silent | --silent | --silen | --sile | --sil)
1543       continue ;;
1544     *\'*)
1545       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1546     esac
1547     case $ac_pass in
1548     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1549     2)
1550       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1551       if test $ac_must_keep_next = true; then
1552         ac_must_keep_next=false # Got value, back to normal.
1553       else
1554         case $ac_arg in
1555           *=* | --config-cache | -C | -disable-* | --disable-* \
1556           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1557           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1558           | -with-* | --with-* | -without-* | --without-* | --x)
1559             case "$ac_configure_args0 " in
1560               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1561             esac
1562             ;;
1563           -* ) ac_must_keep_next=true ;;
1564         esac
1565       fi
1566       ac_configure_args="$ac_configure_args '$ac_arg'"
1567       ;;
1568     esac
1569   done
1570 done
1571 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1572 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1573
1574 # When interrupted or exit'd, cleanup temporary files, and complete
1575 # config.log.  We remove comments because anyway the quotes in there
1576 # would cause problems or look ugly.
1577 # WARNING: Use '\'' to represent an apostrophe within the trap.
1578 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1579 trap 'exit_status=$?
1580   # Save into config.log some information that might help in debugging.
1581   {
1582     echo
1583
1584     cat <<\_ASBOX
1585 ## ---------------- ##
1586 ## Cache variables. ##
1587 ## ---------------- ##
1588 _ASBOX
1589     echo
1590     # The following way of writing the cache mishandles newlines in values,
1591 (
1592   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1593     eval ac_val=\$$ac_var
1594     case $ac_val in #(
1595     *${as_nl}*)
1596       case $ac_var in #(
1597       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1598 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1599       esac
1600       case $ac_var in #(
1601       _ | IFS | as_nl) ;; #(
1602       *) $as_unset $ac_var ;;
1603       esac ;;
1604     esac
1605   done
1606   (set) 2>&1 |
1607     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1608     *${as_nl}ac_space=\ *)
1609       sed -n \
1610         "s/'\''/'\''\\\\'\'''\''/g;
1611           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1612       ;; #(
1613     *)
1614       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1615       ;;
1616     esac |
1617     sort
1618 )
1619     echo
1620
1621     cat <<\_ASBOX
1622 ## ----------------- ##
1623 ## Output variables. ##
1624 ## ----------------- ##
1625 _ASBOX
1626     echo
1627     for ac_var in $ac_subst_vars
1628     do
1629       eval ac_val=\$$ac_var
1630       case $ac_val in
1631       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632       esac
1633       echo "$ac_var='\''$ac_val'\''"
1634     done | sort
1635     echo
1636
1637     if test -n "$ac_subst_files"; then
1638       cat <<\_ASBOX
1639 ## ------------------- ##
1640 ## File substitutions. ##
1641 ## ------------------- ##
1642 _ASBOX
1643       echo
1644       for ac_var in $ac_subst_files
1645       do
1646         eval ac_val=\$$ac_var
1647         case $ac_val in
1648         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649         esac
1650         echo "$ac_var='\''$ac_val'\''"
1651       done | sort
1652       echo
1653     fi
1654
1655     if test -s confdefs.h; then
1656       cat <<\_ASBOX
1657 ## ----------- ##
1658 ## confdefs.h. ##
1659 ## ----------- ##
1660 _ASBOX
1661       echo
1662       cat confdefs.h
1663       echo
1664     fi
1665     test "$ac_signal" != 0 &&
1666       echo "$as_me: caught signal $ac_signal"
1667     echo "$as_me: exit $exit_status"
1668   } >&5
1669   rm -f core *.core core.conftest.* &&
1670     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1671     exit $exit_status
1672 ' 0
1673 for ac_signal in 1 2 13 15; do
1674   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1675 done
1676 ac_signal=0
1677
1678 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1679 rm -f -r conftest* confdefs.h
1680
1681 # Predefined preprocessor variables.
1682
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_NAME "$PACKAGE_NAME"
1685 _ACEOF
1686
1687
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1690 _ACEOF
1691
1692
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1695 _ACEOF
1696
1697
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_STRING "$PACKAGE_STRING"
1700 _ACEOF
1701
1702
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1705 _ACEOF
1706
1707
1708 # Let the site file select an alternate cache file if it wants to.
1709 # Prefer explicitly selected file to automatically selected ones.
1710 if test -n "$CONFIG_SITE"; then
1711   set x "$CONFIG_SITE"
1712 elif test "x$prefix" != xNONE; then
1713   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1714 else
1715   set x "$ac_default_prefix/share/config.site" \
1716         "$ac_default_prefix/etc/config.site"
1717 fi
1718 shift
1719 for ac_site_file
1720 do
1721   if test -r "$ac_site_file"; then
1722     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1723 echo "$as_me: loading site script $ac_site_file" >&6;}
1724     sed 's/^/| /' "$ac_site_file" >&5
1725     . "$ac_site_file"
1726   fi
1727 done
1728
1729 if test -r "$cache_file"; then
1730   # Some versions of bash will fail to source /dev/null (special
1731   # files actually), so we avoid doing that.
1732   if test -f "$cache_file"; then
1733     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1734 echo "$as_me: loading cache $cache_file" >&6;}
1735     case $cache_file in
1736       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1737       *)                      . "./$cache_file";;
1738     esac
1739   fi
1740 else
1741   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1742 echo "$as_me: creating cache $cache_file" >&6;}
1743   >$cache_file
1744 fi
1745
1746 # Check that the precious variables saved in the cache have kept the same
1747 # value.
1748 ac_cache_corrupted=false
1749 for ac_var in $ac_precious_vars; do
1750   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1751   eval ac_new_set=\$ac_env_${ac_var}_set
1752   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1753   eval ac_new_val=\$ac_env_${ac_var}_value
1754   case $ac_old_set,$ac_new_set in
1755     set,)
1756       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1757 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1758       ac_cache_corrupted=: ;;
1759     ,set)
1760       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1761 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1762       ac_cache_corrupted=: ;;
1763     ,);;
1764     *)
1765       if test "x$ac_old_val" != "x$ac_new_val"; then
1766         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1767 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1768         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1769 echo "$as_me:   former value:  $ac_old_val" >&2;}
1770         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1771 echo "$as_me:   current value: $ac_new_val" >&2;}
1772         ac_cache_corrupted=:
1773       fi;;
1774   esac
1775   # Pass precious variables to config.status.
1776   if test "$ac_new_set" = set; then
1777     case $ac_new_val in
1778     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1779     *) ac_arg=$ac_var=$ac_new_val ;;
1780     esac
1781     case " $ac_configure_args " in
1782       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1783       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1784     esac
1785   fi
1786 done
1787 if $ac_cache_corrupted; then
1788   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1789 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1790   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1791 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1792    { (exit 1); exit 1; }; }
1793 fi
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819 ac_ext=c
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824
1825
1826
1827 ac_config_headers="$ac_config_headers include/config.h"
1828
1829 ac_aux_dir=
1830 for ac_dir in tools "$srcdir"/tools; do
1831   if test -f "$ac_dir/install-sh"; then
1832     ac_aux_dir=$ac_dir
1833     ac_install_sh="$ac_aux_dir/install-sh -c"
1834     break
1835   elif test -f "$ac_dir/install.sh"; then
1836     ac_aux_dir=$ac_dir
1837     ac_install_sh="$ac_aux_dir/install.sh -c"
1838     break
1839   elif test -f "$ac_dir/shtool"; then
1840     ac_aux_dir=$ac_dir
1841     ac_install_sh="$ac_aux_dir/shtool install -c"
1842     break
1843   fi
1844 done
1845 if test -z "$ac_aux_dir"; then
1846   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1847 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1848    { (exit 1); exit 1; }; }
1849 fi
1850
1851 # These three variables are undocumented and unsupported,
1852 # and are intended to be withdrawn in a future Autoconf release.
1853 # They can cause serious problems if a builder's source tree is in a directory
1854 # whose full name contains unusual characters.
1855 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1856 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1857 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1858
1859
1860
1861
1862 # Check whether --enable-win16 was given.
1863 if test "${enable_win16+set}" = set; then
1864   enableval=$enable_win16;
1865 fi
1866
1867 # Check whether --enable-win64 was given.
1868 if test "${enable_win64+set}" = set; then
1869   enableval=$enable_win64;
1870 fi
1871
1872
1873
1874 # Check whether --with-opengl was given.
1875 if test "${with_opengl+set}" = set; then
1876   withval=$with_opengl;
1877 fi
1878
1879
1880 # Check whether --with-wine-tools was given.
1881 if test "${with_wine_tools+set}" = set; then
1882   withval=$with_wine_tools;
1883 fi
1884
1885
1886 # Make sure we can run config.sub.
1887 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1888   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1889 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1890    { (exit 1); exit 1; }; }
1891
1892 { echo "$as_me:$LINENO: checking build system type" >&5
1893 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1894 if test "${ac_cv_build+set}" = set; then
1895   echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897   ac_build_alias=$build_alias
1898 test "x$ac_build_alias" = x &&
1899   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1900 test "x$ac_build_alias" = x &&
1901   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1902 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1903    { (exit 1); exit 1; }; }
1904 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1905   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1906 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1907    { (exit 1); exit 1; }; }
1908
1909 fi
1910 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1911 echo "${ECHO_T}$ac_cv_build" >&6; }
1912 case $ac_cv_build in
1913 *-*-*) ;;
1914 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1915 echo "$as_me: error: invalid value of canonical build" >&2;}
1916    { (exit 1); exit 1; }; };;
1917 esac
1918 build=$ac_cv_build
1919 ac_save_IFS=$IFS; IFS='-'
1920 set x $ac_cv_build
1921 shift
1922 build_cpu=$1
1923 build_vendor=$2
1924 shift; shift
1925 # Remember, the first character of IFS is used to create $*,
1926 # except with old shells:
1927 build_os=$*
1928 IFS=$ac_save_IFS
1929 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1930
1931
1932 { echo "$as_me:$LINENO: checking host system type" >&5
1933 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1934 if test "${ac_cv_host+set}" = set; then
1935   echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937   if test "x$host_alias" = x; then
1938   ac_cv_host=$ac_cv_build
1939 else
1940   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1941     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1942 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1943    { (exit 1); exit 1; }; }
1944 fi
1945
1946 fi
1947 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1948 echo "${ECHO_T}$ac_cv_host" >&6; }
1949 case $ac_cv_host in
1950 *-*-*) ;;
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1952 echo "$as_me: error: invalid value of canonical host" >&2;}
1953    { (exit 1); exit 1; }; };;
1954 esac
1955 host=$ac_cv_host
1956 ac_save_IFS=$IFS; IFS='-'
1957 set x $ac_cv_host
1958 shift
1959 host_cpu=$1
1960 host_vendor=$2
1961 shift; shift
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1964 host_os=$*
1965 IFS=$ac_save_IFS
1966 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1967
1968
1969 case $host in
1970   x86_64*linux*)
1971     if test "x$enable_win64" != "xyes"
1972     then
1973       test -n "$CC" || CC="gcc -m32"
1974       test -n "$LD" || LD="ld -m elf_i386"
1975       test -n "$AS" || AS="as --32"
1976       host_cpu="i386"
1977     fi
1978     ;;
1979 esac
1980
1981 case $host_cpu in
1982   *i[3456789]86*)
1983     if test "x$enable_win16" != "xno"
1984     then
1985       enable_win16="yes"
1986     fi
1987     ;;
1988 esac
1989
1990 WIN16_FILES="\$(WIN16_FILES)"
1991
1992 WIN16_INSTALL="\$(WIN16_INSTALL)"
1993
1994 if test "x$enable_win16" != "xyes"
1995 then
1996   WIN16_FILES=""
1997   WIN16_INSTALL=""
1998 fi
1999
2000 case "$srcdir" in
2001  .) ;;
2002  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2003       { { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2004 You need to run 'make distclean' in the source tree first." >&5
2005 echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2006 You need to run 'make distclean' in the source tree first." >&2;}
2007    { (exit 1); exit 1; }; }
2008     fi ;;
2009 esac
2010
2011
2012 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2013 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2014 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2015 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   cat >conftest.make <<\_ACEOF
2019 SHELL = /bin/sh
2020 all:
2021         @echo '@@@%%%=$(MAKE)=@@@%%%'
2022 _ACEOF
2023 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2024 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2025   *@@@%%%=?*=@@@%%%*)
2026     eval ac_cv_prog_make_${ac_make}_set=yes;;
2027   *)
2028     eval ac_cv_prog_make_${ac_make}_set=no;;
2029 esac
2030 rm -f conftest.make
2031 fi
2032 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2033   { echo "$as_me:$LINENO: result: yes" >&5
2034 echo "${ECHO_T}yes" >&6; }
2035   SET_MAKE=
2036 else
2037   { echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6; }
2039   SET_MAKE="MAKE=${MAKE-make}"
2040 fi
2041
2042 ac_ext=c
2043 ac_cpp='$CPP $CPPFLAGS'
2044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047 if test -n "$ac_tool_prefix"; then
2048   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2049 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053   echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055   if test -n "$CC"; then
2056   ac_cv_prog_CC="$CC" # Let the user override the test.
2057 else
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2060 do
2061   IFS=$as_save_IFS
2062   test -z "$as_dir" && as_dir=.
2063   for ac_exec_ext in '' $ac_executable_extensions; do
2064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2065     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067     break 2
2068   fi
2069 done
2070 done
2071 IFS=$as_save_IFS
2072
2073 fi
2074 fi
2075 CC=$ac_cv_prog_CC
2076 if test -n "$CC"; then
2077   { echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6; }
2079 else
2080   { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2082 fi
2083
2084
2085 fi
2086 if test -z "$ac_cv_prog_CC"; then
2087   ac_ct_CC=$CC
2088   # Extract the first word of "gcc", so it can be a program name with args.
2089 set dummy gcc; ac_word=$2
2090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093   echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095   if test -n "$ac_ct_CC"; then
2096   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101   IFS=$as_save_IFS
2102   test -z "$as_dir" && as_dir=.
2103   for ac_exec_ext in '' $ac_executable_extensions; do
2104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2105     ac_cv_prog_ac_ct_CC="gcc"
2106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107     break 2
2108   fi
2109 done
2110 done
2111 IFS=$as_save_IFS
2112
2113 fi
2114 fi
2115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116 if test -n "$ac_ct_CC"; then
2117   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118 echo "${ECHO_T}$ac_ct_CC" >&6; }
2119 else
2120   { echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6; }
2122 fi
2123
2124   if test "x$ac_ct_CC" = x; then
2125     CC=""
2126   else
2127     case $cross_compiling:$ac_tool_warned in
2128 yes:)
2129 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2130 whose name does not start with the host triplet.  If you think this
2131 configuration is useful to you, please write to autoconf@gnu.org." >&5
2132 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2133 whose name does not start with the host triplet.  If you think this
2134 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2135 ac_tool_warned=yes ;;
2136 esac
2137     CC=$ac_ct_CC
2138   fi
2139 else
2140   CC="$ac_cv_prog_CC"
2141 fi
2142
2143 if test -z "$CC"; then
2144           if test -n "$ac_tool_prefix"; then
2145     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2146 set dummy ${ac_tool_prefix}cc; ac_word=$2
2147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2149 if test "${ac_cv_prog_CC+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   if test -n "$CC"; then
2153   ac_cv_prog_CC="$CC" # Let the user override the test.
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
2158   IFS=$as_save_IFS
2159   test -z "$as_dir" && as_dir=.
2160   for ac_exec_ext in '' $ac_executable_extensions; do
2161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162     ac_cv_prog_CC="${ac_tool_prefix}cc"
2163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164     break 2
2165   fi
2166 done
2167 done
2168 IFS=$as_save_IFS
2169
2170 fi
2171 fi
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174   { echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6; }
2176 else
2177   { echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6; }
2179 fi
2180
2181
2182   fi
2183 fi
2184 if test -z "$CC"; then
2185   # Extract the first word of "cc", so it can be a program name with args.
2186 set dummy cc; ac_word=$2
2187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2189 if test "${ac_cv_prog_CC+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   if test -n "$CC"; then
2193   ac_cv_prog_CC="$CC" # Let the user override the test.
2194 else
2195   ac_prog_rejected=no
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199   IFS=$as_save_IFS
2200   test -z "$as_dir" && as_dir=.
2201   for ac_exec_ext in '' $ac_executable_extensions; do
2202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2204        ac_prog_rejected=yes
2205        continue
2206      fi
2207     ac_cv_prog_CC="cc"
2208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209     break 2
2210   fi
2211 done
2212 done
2213 IFS=$as_save_IFS
2214
2215 if test $ac_prog_rejected = yes; then
2216   # We found a bogon in the path, so make sure we never use it.
2217   set dummy $ac_cv_prog_CC
2218   shift
2219   if test $# != 0; then
2220     # We chose a different compiler from the bogus one.
2221     # However, it has the same basename, so the bogon will be chosen
2222     # first if we set CC to just the basename; use the full file name.
2223     shift
2224     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2225   fi
2226 fi
2227 fi
2228 fi
2229 CC=$ac_cv_prog_CC
2230 if test -n "$CC"; then
2231   { echo "$as_me:$LINENO: result: $CC" >&5
2232 echo "${ECHO_T}$CC" >&6; }
2233 else
2234   { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2236 fi
2237
2238
2239 fi
2240 if test -z "$CC"; then
2241   if test -n "$ac_tool_prefix"; then
2242   for ac_prog in cl.exe
2243   do
2244     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 if test "${ac_cv_prog_CC+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   if test -n "$CC"; then
2252   ac_cv_prog_CC="$CC" # Let the user override the test.
2253 else
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257   IFS=$as_save_IFS
2258   test -z "$as_dir" && as_dir=.
2259   for ac_exec_ext in '' $ac_executable_extensions; do
2260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263     break 2
2264   fi
2265 done
2266 done
2267 IFS=$as_save_IFS
2268
2269 fi
2270 fi
2271 CC=$ac_cv_prog_CC
2272 if test -n "$CC"; then
2273   { echo "$as_me:$LINENO: result: $CC" >&5
2274 echo "${ECHO_T}$CC" >&6; }
2275 else
2276   { echo "$as_me:$LINENO: result: no" >&5
2277 echo "${ECHO_T}no" >&6; }
2278 fi
2279
2280
2281     test -n "$CC" && break
2282   done
2283 fi
2284 if test -z "$CC"; then
2285   ac_ct_CC=$CC
2286   for ac_prog in cl.exe
2287 do
2288   # Extract the first word of "$ac_prog", so it can be a program name with args.
2289 set dummy $ac_prog; ac_word=$2
2290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   if test -n "$ac_ct_CC"; then
2296   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301   IFS=$as_save_IFS
2302   test -z "$as_dir" && as_dir=.
2303   for ac_exec_ext in '' $ac_executable_extensions; do
2304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305     ac_cv_prog_ac_ct_CC="$ac_prog"
2306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307     break 2
2308   fi
2309 done
2310 done
2311 IFS=$as_save_IFS
2312
2313 fi
2314 fi
2315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2316 if test -n "$ac_ct_CC"; then
2317   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2318 echo "${ECHO_T}$ac_ct_CC" >&6; }
2319 else
2320   { echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6; }
2322 fi
2323
2324
2325   test -n "$ac_ct_CC" && break
2326 done
2327
2328   if test "x$ac_ct_CC" = x; then
2329     CC=""
2330   else
2331     case $cross_compiling:$ac_tool_warned in
2332 yes:)
2333 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2334 whose name does not start with the host triplet.  If you think this
2335 configuration is useful to you, please write to autoconf@gnu.org." >&5
2336 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2337 whose name does not start with the host triplet.  If you think this
2338 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2339 ac_tool_warned=yes ;;
2340 esac
2341     CC=$ac_ct_CC
2342   fi
2343 fi
2344
2345 fi
2346
2347
2348 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: no acceptable C compiler found in \$PATH
2351 See \`config.log' for more details." >&2;}
2352    { (exit 1); exit 1; }; }
2353
2354 # Provide some information about the compiler.
2355 echo "$as_me:$LINENO: checking for C compiler version" >&5
2356 ac_compiler=`set X $ac_compile; echo $2`
2357 { (ac_try="$ac_compiler --version >&5"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363   (eval "$ac_compiler --version >&5") 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }
2367 { (ac_try="$ac_compiler -v >&5"
2368 case "(($ac_try" in
2369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370   *) ac_try_echo=$ac_try;;
2371 esac
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373   (eval "$ac_compiler -v >&5") 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }
2377 { (ac_try="$ac_compiler -V >&5"
2378 case "(($ac_try" in
2379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380   *) ac_try_echo=$ac_try;;
2381 esac
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383   (eval "$ac_compiler -V >&5") 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }
2387
2388 cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h.  */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h.  */
2394
2395 int
2396 main ()
2397 {
2398
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 ac_clean_files_save=$ac_clean_files
2404 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2405 # Try to create an executable without -o first, disregard a.out.
2406 # It will help us diagnose broken compilers, and finding out an intuition
2407 # of exeext.
2408 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2409 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2410 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2411 #
2412 # List of possible output files, starting from the most likely.
2413 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2414 # only as a last resort.  b.out is created by i960 compilers.
2415 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2416 #
2417 # The IRIX 6 linker writes into existing files which may not be
2418 # executable, retaining their permissions.  Remove them first so a
2419 # subsequent execution test works.
2420 ac_rmfiles=
2421 for ac_file in $ac_files
2422 do
2423   case $ac_file in
2424     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2425     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2426   esac
2427 done
2428 rm -f $ac_rmfiles
2429
2430 if { (ac_try="$ac_link_default"
2431 case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436   (eval "$ac_link_default") 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; then
2440   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2442 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2443 # so that the user can short-circuit this test for compilers unknown to
2444 # Autoconf.
2445 for ac_file in $ac_files ''
2446 do
2447   test -f "$ac_file" || continue
2448   case $ac_file in
2449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2450         ;;
2451     [ab].out )
2452         # We found the default executable, but exeext='' is most
2453         # certainly right.
2454         break;;
2455     *.* )
2456         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2457         then :; else
2458            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2459         fi
2460         # We set ac_cv_exeext here because the later test for it is not
2461         # safe: cross compilers may not add the suffix if given an `-o'
2462         # argument, so we may need to know it at that point already.
2463         # Even if this section looks crufty: it has the advantage of
2464         # actually working.
2465         break;;
2466     * )
2467         break;;
2468   esac
2469 done
2470 test "$ac_cv_exeext" = no && ac_cv_exeext=
2471
2472 else
2473   ac_file=''
2474 fi
2475
2476 { echo "$as_me:$LINENO: result: $ac_file" >&5
2477 echo "${ECHO_T}$ac_file" >&6; }
2478 if test -z "$ac_file"; then
2479   echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: C compiler cannot create executables
2485 See \`config.log' for more details." >&2;}
2486    { (exit 77); exit 77; }; }
2487 fi
2488
2489 ac_exeext=$ac_cv_exeext
2490
2491 # Check that the compiler produces executables we can run.  If not, either
2492 # the compiler is broken, or we cross compile.
2493 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2494 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2495 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2496 # If not cross compiling, check that we can run a simple program.
2497 if test "$cross_compiling" != yes; then
2498   if { ac_try='./$ac_file'
2499   { (case "(($ac_try" in
2500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501   *) ac_try_echo=$ac_try;;
2502 esac
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504   (eval "$ac_try") 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; }; then
2508     cross_compiling=no
2509   else
2510     if test "$cross_compiling" = maybe; then
2511         cross_compiling=yes
2512     else
2513         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2514 If you meant to cross compile, use \`--host'.
2515 See \`config.log' for more details." >&5
2516 echo "$as_me: error: cannot run C compiled programs.
2517 If you meant to cross compile, use \`--host'.
2518 See \`config.log' for more details." >&2;}
2519    { (exit 1); exit 1; }; }
2520     fi
2521   fi
2522 fi
2523 { echo "$as_me:$LINENO: result: yes" >&5
2524 echo "${ECHO_T}yes" >&6; }
2525
2526 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2527 ac_clean_files=$ac_clean_files_save
2528 # Check that the compiler produces executables we can run.  If not, either
2529 # the compiler is broken, or we cross compile.
2530 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2531 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2532 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2533 echo "${ECHO_T}$cross_compiling" >&6; }
2534
2535 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2536 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2537 if { (ac_try="$ac_link"
2538 case "(($ac_try" in
2539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540   *) ac_try_echo=$ac_try;;
2541 esac
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543   (eval "$ac_link") 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; then
2547   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2548 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2549 # work properly (i.e., refer to `conftest.exe'), while it won't with
2550 # `rm'.
2551 for ac_file in conftest.exe conftest conftest.*; do
2552   test -f "$ac_file" || continue
2553   case $ac_file in
2554     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2555     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2556           break;;
2557     * ) break;;
2558   esac
2559 done
2560 else
2561   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2562 See \`config.log' for more details." >&5
2563 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2564 See \`config.log' for more details." >&2;}
2565    { (exit 1); exit 1; }; }
2566 fi
2567
2568 rm -f conftest$ac_cv_exeext
2569 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2570 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2571
2572 rm -f conftest.$ac_ext
2573 EXEEXT=$ac_cv_exeext
2574 ac_exeext=$EXEEXT
2575 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2576 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2577 if test "${ac_cv_objext+set}" = set; then
2578   echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580   cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h.  */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h.  */
2586
2587 int
2588 main ()
2589 {
2590
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.o conftest.obj
2596 if { (ac_try="$ac_compile"
2597 case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_compile") 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; then
2606   for ac_file in conftest.o conftest.obj conftest.*; do
2607   test -f "$ac_file" || continue;
2608   case $ac_file in
2609     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2610     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2611        break;;
2612   esac
2613 done
2614 else
2615   echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2619 See \`config.log' for more details." >&5
2620 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2621 See \`config.log' for more details." >&2;}
2622    { (exit 1); exit 1; }; }
2623 fi
2624
2625 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2626 fi
2627 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2628 echo "${ECHO_T}$ac_cv_objext" >&6; }
2629 OBJEXT=$ac_cv_objext
2630 ac_objext=$OBJEXT
2631 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2632 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2633 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2634   echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636   cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h.  */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h.  */
2642
2643 int
2644 main ()
2645 {
2646 #ifndef __GNUC__
2647        choke me
2648 #endif
2649
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2656 case "(($ac_try" in
2657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658   *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661   (eval "$ac_compile") 2>conftest.er1
2662   ac_status=$?
2663   grep -v '^ *+' conftest.er1 >conftest.err
2664   rm -f conftest.er1
2665   cat conftest.err >&5
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); } && {
2668          test -z "$ac_c_werror_flag" ||
2669          test ! -s conftest.err
2670        } && test -s conftest.$ac_objext; then
2671   ac_compiler_gnu=yes
2672 else
2673   echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676         ac_compiler_gnu=no
2677 fi
2678
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2681
2682 fi
2683 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2684 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2685 GCC=`test $ac_compiler_gnu = yes && echo yes`
2686 ac_test_CFLAGS=${CFLAGS+set}
2687 ac_save_CFLAGS=$CFLAGS
2688 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2689 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2690 if test "${ac_cv_prog_cc_g+set}" = set; then
2691   echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693   ac_save_c_werror_flag=$ac_c_werror_flag
2694    ac_c_werror_flag=yes
2695    ac_cv_prog_cc_g=no
2696    CFLAGS="-g"
2697    cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703
2704 int
2705 main ()
2706 {
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (ac_try="$ac_compile"
2714 case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719   (eval "$ac_compile") 2>conftest.er1
2720   ac_status=$?
2721   grep -v '^ *+' conftest.er1 >conftest.err
2722   rm -f conftest.er1
2723   cat conftest.err >&5
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } && {
2726          test -z "$ac_c_werror_flag" ||
2727          test ! -s conftest.err
2728        } && test -s conftest.$ac_objext; then
2729   ac_cv_prog_cc_g=yes
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734         CFLAGS=""
2735       cat >conftest.$ac_ext <<_ACEOF
2736 /* confdefs.h.  */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h.  */
2741
2742 int
2743 main ()
2744 {
2745
2746   ;
2747   return 0;
2748 }
2749 _ACEOF
2750 rm -f conftest.$ac_objext
2751 if { (ac_try="$ac_compile"
2752 case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_compile") 2>conftest.er1
2758   ac_status=$?
2759   grep -v '^ *+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } && {
2764          test -z "$ac_c_werror_flag" ||
2765          test ! -s conftest.err
2766        } && test -s conftest.$ac_objext; then
2767   :
2768 else
2769   echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2771
2772         ac_c_werror_flag=$ac_save_c_werror_flag
2773          CFLAGS="-g"
2774          cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780
2781 int
2782 main ()
2783 {
2784
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 rm -f conftest.$ac_objext
2790 if { (ac_try="$ac_compile"
2791 case "(($ac_try" in
2792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793   *) ac_try_echo=$ac_try;;
2794 esac
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796   (eval "$ac_compile") 2>conftest.er1
2797   ac_status=$?
2798   grep -v '^ *+' conftest.er1 >conftest.err
2799   rm -f conftest.er1
2800   cat conftest.err >&5
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } && {
2803          test -z "$ac_c_werror_flag" ||
2804          test ! -s conftest.err
2805        } && test -s conftest.$ac_objext; then
2806   ac_cv_prog_cc_g=yes
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811
2812 fi
2813
2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815 fi
2816
2817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818 fi
2819
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821    ac_c_werror_flag=$ac_save_c_werror_flag
2822 fi
2823 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2824 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2825 if test "$ac_test_CFLAGS" = set; then
2826   CFLAGS=$ac_save_CFLAGS
2827 elif test $ac_cv_prog_cc_g = yes; then
2828   if test "$GCC" = yes; then
2829     CFLAGS="-g -O2"
2830   else
2831     CFLAGS="-g"
2832   fi
2833 else
2834   if test "$GCC" = yes; then
2835     CFLAGS="-O2"
2836   else
2837     CFLAGS=
2838   fi
2839 fi
2840 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2841 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2842 if test "${ac_cv_prog_cc_c89+set}" = set; then
2843   echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845   ac_cv_prog_cc_c89=no
2846 ac_save_CC=$CC
2847 cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853 #include <stdarg.h>
2854 #include <stdio.h>
2855 #include <sys/types.h>
2856 #include <sys/stat.h>
2857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2858 struct buf { int x; };
2859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2860 static char *e (p, i)
2861      char **p;
2862      int i;
2863 {
2864   return p[i];
2865 }
2866 static char *f (char * (*g) (char **, int), char **p, ...)
2867 {
2868   char *s;
2869   va_list v;
2870   va_start (v,p);
2871   s = g (p, va_arg (v,int));
2872   va_end (v);
2873   return s;
2874 }
2875
2876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2877    function prototypes and stuff, but not '\xHH' hex character constants.
2878    These don't provoke an error unfortunately, instead are silently treated
2879    as 'x'.  The following induces an error, until -std is added to get
2880    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2881    array size at least.  It's necessary to write '\x00'==0 to get something
2882    that's true only with -std.  */
2883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2884
2885 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2886    inside strings and character constants.  */
2887 #define FOO(x) 'x'
2888 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2889
2890 int test (int i, double x);
2891 struct s1 {int (*f) (int a);};
2892 struct s2 {int (*f) (double a);};
2893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2894 int argc;
2895 char **argv;
2896 int
2897 main ()
2898 {
2899 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2905         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2906 do
2907   CC="$ac_save_CC $ac_arg"
2908   rm -f conftest.$ac_objext
2909 if { (ac_try="$ac_compile"
2910 case "(($ac_try" in
2911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912   *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915   (eval "$ac_compile") 2>conftest.er1
2916   ac_status=$?
2917   grep -v '^ *+' conftest.er1 >conftest.err
2918   rm -f conftest.er1
2919   cat conftest.err >&5
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); } && {
2922          test -z "$ac_c_werror_flag" ||
2923          test ! -s conftest.err
2924        } && test -s conftest.$ac_objext; then
2925   ac_cv_prog_cc_c89=$ac_arg
2926 else
2927   echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2929
2930
2931 fi
2932
2933 rm -f core conftest.err conftest.$ac_objext
2934   test "x$ac_cv_prog_cc_c89" != "xno" && break
2935 done
2936 rm -f conftest.$ac_ext
2937 CC=$ac_save_CC
2938
2939 fi
2940 # AC_CACHE_VAL
2941 case "x$ac_cv_prog_cc_c89" in
2942   x)
2943     { echo "$as_me:$LINENO: result: none needed" >&5
2944 echo "${ECHO_T}none needed" >&6; } ;;
2945   xno)
2946     { echo "$as_me:$LINENO: result: unsupported" >&5
2947 echo "${ECHO_T}unsupported" >&6; } ;;
2948   *)
2949     CC="$CC $ac_cv_prog_cc_c89"
2950     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2951 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2952 esac
2953
2954
2955 ac_ext=c
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960
2961 ac_ext=cpp
2962 ac_cpp='$CXXCPP $CPPFLAGS'
2963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2966 if test -z "$CXX"; then
2967   if test -n "$CCC"; then
2968     CXX=$CCC
2969   else
2970     if test -n "$ac_tool_prefix"; then
2971   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2972   do
2973     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2977 if test "${ac_cv_prog_CXX+set}" = set; then
2978   echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980   if test -n "$CXX"; then
2981   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988   for ac_exec_ext in '' $ac_executable_extensions; do
2989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 CXX=$ac_cv_prog_CXX
3001 if test -n "$CXX"; then
3002   { echo "$as_me:$LINENO: result: $CXX" >&5
3003 echo "${ECHO_T}$CXX" >&6; }
3004 else
3005   { echo "$as_me:$LINENO: result: no" >&5
3006 echo "${ECHO_T}no" >&6; }
3007 fi
3008
3009
3010     test -n "$CXX" && break
3011   done
3012 fi
3013 if test -z "$CXX"; then
3014   ac_ct_CXX=$CXX
3015   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3016 do
3017   # Extract the first word of "$ac_prog", so it can be a program name with args.
3018 set dummy $ac_prog; ac_word=$2
3019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   if test -n "$ac_ct_CXX"; then
3025   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030   IFS=$as_save_IFS
3031   test -z "$as_dir" && as_dir=.
3032   for ac_exec_ext in '' $ac_executable_extensions; do
3033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3034     ac_cv_prog_ac_ct_CXX="$ac_prog"
3035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036     break 2
3037   fi
3038 done
3039 done
3040 IFS=$as_save_IFS
3041
3042 fi
3043 fi
3044 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3045 if test -n "$ac_ct_CXX"; then
3046   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3047 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3048 else
3049   { echo "$as_me:$LINENO: result: no" >&5
3050 echo "${ECHO_T}no" >&6; }
3051 fi
3052
3053
3054   test -n "$ac_ct_CXX" && break
3055 done
3056
3057   if test "x$ac_ct_CXX" = x; then
3058     CXX="g++"
3059   else
3060     case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3063 whose name does not start with the host triplet.  If you think this
3064 configuration is useful to you, please write to autoconf@gnu.org." >&5
3065 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3066 whose name does not start with the host triplet.  If you think this
3067 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3068 ac_tool_warned=yes ;;
3069 esac
3070     CXX=$ac_ct_CXX
3071   fi
3072 fi
3073
3074   fi
3075 fi
3076 # Provide some information about the compiler.
3077 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3078 ac_compiler=`set X $ac_compile; echo $2`
3079 { (ac_try="$ac_compiler --version >&5"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085   (eval "$ac_compiler --version >&5") 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }
3089 { (ac_try="$ac_compiler -v >&5"
3090 case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_compiler -v >&5") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }
3099 { (ac_try="$ac_compiler -V >&5"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_compiler -V >&5") 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }
3109
3110 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3111 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3112 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121
3122 int
3123 main ()
3124 {
3125 #ifndef __GNUC__
3126        choke me
3127 #endif
3128
3129   ;
3130   return 0;
3131 }
3132 _ACEOF
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3135 case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_compile") 2>conftest.er1
3141   ac_status=$?
3142   grep -v '^ *+' conftest.er1 >conftest.err
3143   rm -f conftest.er1
3144   cat conftest.err >&5
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); } && {
3147          test -z "$ac_cxx_werror_flag" ||
3148          test ! -s conftest.err
3149        } && test -s conftest.$ac_objext; then
3150   ac_compiler_gnu=yes
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155         ac_compiler_gnu=no
3156 fi
3157
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3160
3161 fi
3162 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3163 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3164 GXX=`test $ac_compiler_gnu = yes && echo yes`
3165 ac_test_CXXFLAGS=${CXXFLAGS+set}
3166 ac_save_CXXFLAGS=$CXXFLAGS
3167 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3168 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3169 if test "${ac_cv_prog_cxx_g+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3173    ac_cxx_werror_flag=yes
3174    ac_cv_prog_cxx_g=no
3175    CXXFLAGS="-g"
3176    cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198   (eval "$ac_compile") 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } && {
3205          test -z "$ac_cxx_werror_flag" ||
3206          test ! -s conftest.err
3207        } && test -s conftest.$ac_objext; then
3208   ac_cv_prog_cxx_g=yes
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213         CXXFLAGS=""
3214       cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220
3221 int
3222 main ()
3223 {
3224
3225   ;
3226   return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_compile") 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } && {
3243          test -z "$ac_cxx_werror_flag" ||
3244          test ! -s conftest.err
3245        } && test -s conftest.$ac_objext; then
3246   :
3247 else
3248   echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3252          CXXFLAGS="-g"
3253          cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259
3260 int
3261 main ()
3262 {
3263
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_compile") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } && {
3282          test -z "$ac_cxx_werror_flag" ||
3283          test ! -s conftest.err
3284        } && test -s conftest.$ac_objext; then
3285   ac_cv_prog_cxx_g=yes
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290
3291 fi
3292
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 fi
3295
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 fi
3298
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3301 fi
3302 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3303 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3304 if test "$ac_test_CXXFLAGS" = set; then
3305   CXXFLAGS=$ac_save_CXXFLAGS
3306 elif test $ac_cv_prog_cxx_g = yes; then
3307   if test "$GXX" = yes; then
3308     CXXFLAGS="-g -O2"
3309   else
3310     CXXFLAGS="-g"
3311   fi
3312 else
3313   if test "$GXX" = yes; then
3314     CXXFLAGS="-O2"
3315   else
3316     CXXFLAGS=
3317   fi
3318 fi
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324
3325 if test -n "$ac_tool_prefix"; then
3326   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3330 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3331   echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333   if test -n "$CPPBIN"; then
3334   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339   IFS=$as_save_IFS
3340   test -z "$as_dir" && as_dir=.
3341   for ac_exec_ext in '' $ac_executable_extensions; do
3342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345     break 2
3346   fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 CPPBIN=$ac_cv_prog_CPPBIN
3354 if test -n "$CPPBIN"; then
3355   { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3356 echo "${ECHO_T}$CPPBIN" >&6; }
3357 else
3358   { echo "$as_me:$LINENO: result: no" >&5
3359 echo "${ECHO_T}no" >&6; }
3360 fi
3361
3362
3363 fi
3364 if test -z "$ac_cv_prog_CPPBIN"; then
3365   ac_ct_CPPBIN=$CPPBIN
3366   # Extract the first word of "cpp", so it can be a program name with args.
3367 set dummy cpp; ac_word=$2
3368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3370 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3371   echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373   if test -n "$ac_ct_CPPBIN"; then
3374   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3378 do
3379   IFS=$as_save_IFS
3380   test -z "$as_dir" && as_dir=.
3381   for ac_exec_ext in '' $ac_executable_extensions; do
3382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383     ac_cv_prog_ac_ct_CPPBIN="cpp"
3384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385     break 2
3386   fi
3387 done
3388 done
3389 IFS=$as_save_IFS
3390
3391 fi
3392 fi
3393 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3394 if test -n "$ac_ct_CPPBIN"; then
3395   { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3396 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3397 else
3398   { echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6; }
3400 fi
3401
3402   if test "x$ac_ct_CPPBIN" = x; then
3403     CPPBIN="cpp"
3404   else
3405     case $cross_compiling:$ac_tool_warned in
3406 yes:)
3407 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3408 whose name does not start with the host triplet.  If you think this
3409 configuration is useful to you, please write to autoconf@gnu.org." >&5
3410 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3411 whose name does not start with the host triplet.  If you think this
3412 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3413 ac_tool_warned=yes ;;
3414 esac
3415     CPPBIN=$ac_ct_CPPBIN
3416   fi
3417 else
3418   CPPBIN="$ac_cv_prog_CPPBIN"
3419 fi
3420
3421
3422 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3423 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3424 if test "${wine_cv_toolsdir+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   if test -z "$with_wine_tools"; then
3428      if test "$cross_compiling" = "yes"; then
3429        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3430 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3431    { (exit 1); exit 1; }; }
3432      else
3433        wine_cv_toolsdir="\$(TOPOBJDIR)"
3434      fi
3435    elif test -d "$with_wine_tools/tools/winebuild"; then
3436      case $with_wine_tools in
3437        /*) wine_cv_toolsdir="$with_wine_tools" ;;
3438        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3439      esac
3440    else
3441      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3442 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3443    { (exit 1); exit 1; }; }
3444    fi
3445 fi
3446 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3447 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3448 TOOLSDIR=$wine_cv_toolsdir
3449
3450
3451
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3458 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3459 # On Suns, sometimes $CPP names a directory.
3460 if test -n "$CPP" && test -d "$CPP"; then
3461   CPP=
3462 fi
3463 if test -z "$CPP"; then
3464   if test "${ac_cv_prog_CPP+set}" = set; then
3465   echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467       # Double quotes because CPP needs to be expanded
3468     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3469     do
3470       ac_preproc_ok=false
3471 for ac_c_preproc_warn_flag in '' yes
3472 do
3473   # Use a header file that comes with gcc, so configuring glibc
3474   # with a fresh cross-compiler works.
3475   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3476   # <limits.h> exists even on freestanding compilers.
3477   # On the NeXT, cc -E runs the code through the compiler's parser,
3478   # not just through cpp. "Syntax error" is here to catch this case.
3479   cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485 #ifdef __STDC__
3486 # include <limits.h>
3487 #else
3488 # include <assert.h>
3489 #endif
3490                      Syntax error
3491 _ACEOF
3492 if { (ac_try="$ac_cpp conftest.$ac_ext"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3499   ac_status=$?
3500   grep -v '^ *+' conftest.er1 >conftest.err
3501   rm -f conftest.er1
3502   cat conftest.err >&5
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); } >/dev/null && {
3505          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3506          test ! -s conftest.err
3507        }; then
3508   :
3509 else
3510   echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513   # Broken: fails on valid input.
3514 continue
3515 fi
3516
3517 rm -f conftest.err conftest.$ac_ext
3518
3519   # OK, works on sane cases.  Now check whether nonexistent headers
3520   # can be detected and how.
3521   cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527 #include <ac_nonexistent.h>
3528 _ACEOF
3529 if { (ac_try="$ac_cpp conftest.$ac_ext"
3530 case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3536   ac_status=$?
3537   grep -v '^ *+' conftest.er1 >conftest.err
3538   rm -f conftest.er1
3539   cat conftest.err >&5
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } >/dev/null && {
3542          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3543          test ! -s conftest.err
3544        }; then
3545   # Broken: success on invalid input.
3546 continue
3547 else
3548   echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551   # Passes both tests.
3552 ac_preproc_ok=:
3553 break
3554 fi
3555
3556 rm -f conftest.err conftest.$ac_ext
3557
3558 done
3559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3560 rm -f conftest.err conftest.$ac_ext
3561 if $ac_preproc_ok; then
3562   break
3563 fi
3564
3565     done
3566     ac_cv_prog_CPP=$CPP
3567
3568 fi
3569   CPP=$ac_cv_prog_CPP
3570 else
3571   ac_cv_prog_CPP=$CPP
3572 fi
3573 { echo "$as_me:$LINENO: result: $CPP" >&5
3574 echo "${ECHO_T}$CPP" >&6; }
3575 ac_preproc_ok=false
3576 for ac_c_preproc_warn_flag in '' yes
3577 do
3578   # Use a header file that comes with gcc, so configuring glibc
3579   # with a fresh cross-compiler works.
3580   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3581   # <limits.h> exists even on freestanding compilers.
3582   # On the NeXT, cc -E runs the code through the compiler's parser,
3583   # not just through cpp. "Syntax error" is here to catch this case.
3584   cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h.  */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h.  */
3590 #ifdef __STDC__
3591 # include <limits.h>
3592 #else
3593 # include <assert.h>
3594 #endif
3595                      Syntax error
3596 _ACEOF
3597 if { (ac_try="$ac_cpp conftest.$ac_ext"
3598 case "(($ac_try" in
3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600   *) ac_try_echo=$ac_try;;
3601 esac
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3604   ac_status=$?
3605   grep -v '^ *+' conftest.er1 >conftest.err
3606   rm -f conftest.er1
3607   cat conftest.err >&5
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); } >/dev/null && {
3610          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3611          test ! -s conftest.err
3612        }; then
3613   :
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618   # Broken: fails on valid input.
3619 continue
3620 fi
3621
3622 rm -f conftest.err conftest.$ac_ext
3623
3624   # OK, works on sane cases.  Now check whether nonexistent headers
3625   # can be detected and how.
3626   cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632 #include <ac_nonexistent.h>
3633 _ACEOF
3634 if { (ac_try="$ac_cpp conftest.$ac_ext"
3635 case "(($ac_try" in
3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637   *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641   ac_status=$?
3642   grep -v '^ *+' conftest.er1 >conftest.err
3643   rm -f conftest.er1
3644   cat conftest.err >&5
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); } >/dev/null && {
3647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3648          test ! -s conftest.err
3649        }; then
3650   # Broken: success on invalid input.
3651 continue
3652 else
3653   echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3655
3656   # Passes both tests.
3657 ac_preproc_ok=:
3658 break
3659 fi
3660
3661 rm -f conftest.err conftest.$ac_ext
3662
3663 done
3664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3665 rm -f conftest.err conftest.$ac_ext
3666 if $ac_preproc_ok; then
3667   :
3668 else
3669   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3670 See \`config.log' for more details." >&5
3671 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3672 See \`config.log' for more details." >&2;}
3673    { (exit 1); exit 1; }; }
3674 fi
3675
3676 ac_ext=c
3677 ac_cpp='$CPP $CPPFLAGS'
3678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681
3682
3683 { echo "$as_me:$LINENO: checking for X" >&5
3684 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3685
3686
3687 # Check whether --with-x was given.
3688 if test "${with_x+set}" = set; then
3689   withval=$with_x;
3690 fi
3691
3692 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3693 if test "x$with_x" = xno; then
3694   # The user explicitly disabled X.
3695   have_x=disabled
3696 else
3697   case $x_includes,$x_libraries in #(
3698     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3699 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3700    { (exit 1); exit 1; }; };; #(
3701     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3702   echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704   # One or both of the vars are not set, and there is no cached value.
3705 ac_x_includes=no ac_x_libraries=no
3706 rm -f -r conftest.dir
3707 if mkdir conftest.dir; then
3708   cd conftest.dir
3709   cat >Imakefile <<'_ACEOF'
3710 incroot:
3711         @echo incroot='${INCROOT}'
3712 usrlibdir:
3713         @echo usrlibdir='${USRLIBDIR}'
3714 libdir:
3715         @echo libdir='${LIBDIR}'
3716 _ACEOF
3717   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3718     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3719     for ac_var in incroot usrlibdir libdir; do
3720       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3721     done
3722     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3723     for ac_extension in a so sl; do
3724       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3725          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3726         ac_im_usrlibdir=$ac_im_libdir; break
3727       fi
3728     done
3729     # Screen out bogus values from the imake configuration.  They are
3730     # bogus both because they are the default anyway, and because
3731     # using them would break gcc on systems where it needs fixed includes.
3732     case $ac_im_incroot in
3733         /usr/include) ac_x_includes= ;;
3734         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3735     esac
3736     case $ac_im_usrlibdir in
3737         /usr/lib | /lib) ;;
3738         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3739     esac
3740   fi
3741   cd ..
3742   rm -f -r conftest.dir
3743 fi
3744
3745 # Standard set of common directories for X headers.
3746 # Check X11 before X11Rn because it is often a symlink to the current release.
3747 ac_x_header_dirs='
3748 /usr/X11/include
3749 /usr/X11R6/include
3750 /usr/X11R5/include
3751 /usr/X11R4/include
3752
3753 /usr/include/X11
3754 /usr/include/X11R6
3755 /usr/include/X11R5
3756 /usr/include/X11R4
3757
3758 /usr/local/X11/include
3759 /usr/local/X11R6/include
3760 /usr/local/X11R5/include
3761 /usr/local/X11R4/include
3762
3763 /usr/local/include/X11
3764 /usr/local/include/X11R6
3765 /usr/local/include/X11R5
3766 /usr/local/include/X11R4
3767
3768 /usr/X386/include
3769 /usr/x386/include
3770 /usr/XFree86/include/X11
3771
3772 /usr/include
3773 /usr/local/include
3774 /usr/unsupported/include
3775 /usr/athena/include
3776 /usr/local/x11r5/include
3777 /usr/lpp/Xamples/include
3778
3779 /usr/openwin/include
3780 /usr/openwin/share/include'
3781
3782 if test "$ac_x_includes" = no; then
3783   # Guess where to find include files, by looking for Xlib.h.
3784   # First, try using that file with no special directory specified.
3785   cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h.  */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h.  */
3791 #include <X11/Xlib.h>
3792 _ACEOF
3793 if { (ac_try="$ac_cpp conftest.$ac_ext"
3794 case "(($ac_try" in
3795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796   *) ac_try_echo=$ac_try;;
3797 esac
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3800   ac_status=$?
3801   grep -v '^ *+' conftest.er1 >conftest.err
3802   rm -f conftest.er1
3803   cat conftest.err >&5
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); } >/dev/null && {
3806          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3807          test ! -s conftest.err
3808        }; then
3809   # We can compile using X headers with no special include directory.
3810 ac_x_includes=
3811 else
3812   echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815   for ac_dir in $ac_x_header_dirs; do
3816   if test -r "$ac_dir/X11/Xlib.h"; then
3817     ac_x_includes=$ac_dir
3818     break
3819   fi
3820 done
3821 fi
3822
3823 rm -f conftest.err conftest.$ac_ext
3824 fi # $ac_x_includes = no
3825
3826 if test "$ac_x_libraries" = no; then
3827   # Check for the libraries.
3828   # See if we find them without any special options.
3829   # Don't add to $LIBS permanently.
3830   ac_save_LIBS=$LIBS
3831   LIBS="-lX11 $LIBS"
3832   cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838 #include <X11/Xlib.h>
3839 int
3840 main ()
3841 {
3842 XrmInitialize ()
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 rm -f conftest.$ac_objext conftest$ac_exeext
3848 if { (ac_try="$ac_link"
3849 case "(($ac_try" in
3850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851   *) ac_try_echo=$ac_try;;
3852 esac
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854   (eval "$ac_link") 2>conftest.er1
3855   ac_status=$?
3856   grep -v '^ *+' conftest.er1 >conftest.err
3857   rm -f conftest.er1
3858   cat conftest.err >&5
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); } && {
3861          test -z "$ac_c_werror_flag" ||
3862          test ! -s conftest.err
3863        } && test -s conftest$ac_exeext &&
3864        $as_test_x conftest$ac_exeext; then
3865   LIBS=$ac_save_LIBS
3866 # We can link X programs with no special library path.
3867 ac_x_libraries=
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872         LIBS=$ac_save_LIBS
3873 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3874 do
3875   # Don't even attempt the hair of trying to link an X program!
3876   for ac_extension in a so sl; do
3877     if test -r "$ac_dir/libX11.$ac_extension"; then
3878       ac_x_libraries=$ac_dir
3879       break 2
3880     fi
3881   done
3882 done
3883 fi
3884
3885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3886       conftest$ac_exeext conftest.$ac_ext
3887 fi # $ac_x_libraries = no
3888
3889 case $ac_x_includes,$ac_x_libraries in #(
3890   no,* | *,no | *\'*)
3891     # Didn't find X, or a directory has "'" in its name.
3892     ac_cv_have_x="have_x=no";; #(
3893   *)
3894     # Record where we found X for the cache.
3895     ac_cv_have_x="have_x=yes\
3896         ac_x_includes='$ac_x_includes'\
3897         ac_x_libraries='$ac_x_libraries'"
3898 esac
3899 fi
3900 ;; #(
3901     *) have_x=yes;;
3902   esac
3903   eval "$ac_cv_have_x"
3904 fi # $with_x != no
3905
3906 if test "$have_x" != yes; then
3907   { echo "$as_me:$LINENO: result: $have_x" >&5
3908 echo "${ECHO_T}$have_x" >&6; }
3909   no_x=yes
3910 else
3911   # If each of the values was on the command line, it overrides each guess.
3912   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3913   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3914   # Update the cache value to reflect the command line values.
3915   ac_cv_have_x="have_x=yes\
3916         ac_x_includes='$x_includes'\
3917         ac_x_libraries='$x_libraries'"
3918   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3919 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3920 fi
3921
3922 if test "$no_x" = yes; then
3923   # Not all programs may use this symbol, but it does not hurt to define it.
3924
3925 cat >>confdefs.h <<\_ACEOF
3926 #define X_DISPLAY_MISSING 1
3927 _ACEOF
3928
3929   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3930 else
3931   if test -n "$x_includes"; then
3932     X_CFLAGS="$X_CFLAGS -I$x_includes"
3933   fi
3934
3935   # It would also be nice to do this for all -L options, not just this one.
3936   if test -n "$x_libraries"; then
3937     X_LIBS="$X_LIBS -L$x_libraries"
3938     # For Solaris; some versions of Sun CC require a space after -R and
3939     # others require no space.  Words are not sufficient . . . .
3940     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3941 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3942     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3943     ac_xsave_c_werror_flag=$ac_c_werror_flag
3944     ac_c_werror_flag=yes
3945     cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951
3952 int
3953 main ()
3954 {
3955
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 rm -f conftest.$ac_objext conftest$ac_exeext
3961 if { (ac_try="$ac_link"
3962 case "(($ac_try" in
3963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964   *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967   (eval "$ac_link") 2>conftest.er1
3968   ac_status=$?
3969   grep -v '^ *+' conftest.er1 >conftest.err
3970   rm -f conftest.er1
3971   cat conftest.err >&5
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); } && {
3974          test -z "$ac_c_werror_flag" ||
3975          test ! -s conftest.err
3976        } && test -s conftest$ac_exeext &&
3977        $as_test_x conftest$ac_exeext; then
3978   { echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6; }
3980        X_LIBS="$X_LIBS -R$x_libraries"
3981 else
3982   echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985         LIBS="$ac_xsave_LIBS -R $x_libraries"
3986        cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h.  */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h.  */
3992
3993 int
3994 main ()
3995 {
3996
3997   ;
3998   return 0;
3999 }
4000 _ACEOF
4001 rm -f conftest.$ac_objext conftest$ac_exeext
4002 if { (ac_try="$ac_link"
4003 case "(($ac_try" in
4004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005   *) ac_try_echo=$ac_try;;
4006 esac
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008   (eval "$ac_link") 2>conftest.er1
4009   ac_status=$?
4010   grep -v '^ *+' conftest.er1 >conftest.err
4011   rm -f conftest.er1
4012   cat conftest.err >&5
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } && {
4015          test -z "$ac_c_werror_flag" ||
4016          test ! -s conftest.err
4017        } && test -s conftest$ac_exeext &&
4018        $as_test_x conftest$ac_exeext; then
4019   { echo "$as_me:$LINENO: result: yes" >&5
4020 echo "${ECHO_T}yes" >&6; }
4021           X_LIBS="$X_LIBS -R $x_libraries"
4022 else
4023   echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4025
4026         { echo "$as_me:$LINENO: result: neither works" >&5
4027 echo "${ECHO_T}neither works" >&6; }
4028 fi
4029
4030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4031       conftest$ac_exeext conftest.$ac_ext
4032 fi
4033
4034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4035       conftest$ac_exeext conftest.$ac_ext
4036     ac_c_werror_flag=$ac_xsave_c_werror_flag
4037     LIBS=$ac_xsave_LIBS
4038   fi
4039
4040   # Check for system-dependent libraries X programs must link with.
4041   # Do this before checking for the system-independent R6 libraries
4042   # (-lICE), since we may need -lsocket or whatever for X linking.
4043
4044   if test "$ISC" = yes; then
4045     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4046   else
4047     # Martyn Johnson says this is needed for Ultrix, if the X
4048     # libraries were built with DECnet support.  And Karl Berry says
4049     # the Alpha needs dnet_stub (dnet does not exist).
4050     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4051     cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057
4058 /* Override any GCC internal prototype to avoid an error.
4059    Use char because int might match the return type of a GCC
4060    builtin and then its argument prototype would still apply.  */
4061 #ifdef __cplusplus
4062 extern "C"
4063 #endif
4064 char XOpenDisplay ();
4065 int
4066 main ()
4067 {
4068 return XOpenDisplay ();
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 rm -f conftest.$ac_objext conftest$ac_exeext
4074 if { (ac_try="$ac_link"
4075 case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080   (eval "$ac_link") 2>conftest.er1
4081   ac_status=$?
4082   grep -v '^ *+' conftest.er1 >conftest.err
4083   rm -f conftest.er1
4084   cat conftest.err >&5
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); } && {
4087          test -z "$ac_c_werror_flag" ||
4088          test ! -s conftest.err
4089        } && test -s conftest$ac_exeext &&
4090        $as_test_x conftest$ac_exeext; then
4091   :
4092 else
4093   echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4097 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4098 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   ac_check_lib_save_LIBS=$LIBS
4102 LIBS="-ldnet  $LIBS"
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109
4110 /* Override any GCC internal prototype to avoid an error.
4111    Use char because int might match the return type of a GCC
4112    builtin and then its argument prototype would still apply.  */
4113 #ifdef __cplusplus
4114 extern "C"
4115 #endif
4116 char dnet_ntoa ();
4117 int
4118 main ()
4119 {
4120 return dnet_ntoa ();
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 rm -f conftest.$ac_objext conftest$ac_exeext
4126 if { (ac_try="$ac_link"
4127 case "(($ac_try" in
4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129   *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132   (eval "$ac_link") 2>conftest.er1
4133   ac_status=$?
4134   grep -v '^ *+' conftest.er1 >conftest.err
4135   rm -f conftest.er1
4136   cat conftest.err >&5
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); } && {
4139          test -z "$ac_c_werror_flag" ||
4140          test ! -s conftest.err
4141        } && test -s conftest$ac_exeext &&
4142        $as_test_x conftest$ac_exeext; then
4143   ac_cv_lib_dnet_dnet_ntoa=yes
4144 else
4145   echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148         ac_cv_lib_dnet_dnet_ntoa=no
4149 fi
4150
4151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4152       conftest$ac_exeext conftest.$ac_ext
4153 LIBS=$ac_check_lib_save_LIBS
4154 fi
4155 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4156 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4157 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4158   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4159 fi
4160
4161     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4162       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4163 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4164 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4165   echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167   ac_check_lib_save_LIBS=$LIBS
4168 LIBS="-ldnet_stub  $LIBS"
4169 cat >conftest.$ac_ext <<_ACEOF
4170 /* confdefs.h.  */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h.  */
4175
4176 /* Override any GCC internal prototype to avoid an error.
4177    Use char because int might match the return type of a GCC
4178    builtin and then its argument prototype would still apply.  */
4179 #ifdef __cplusplus
4180 extern "C"
4181 #endif
4182 char dnet_ntoa ();
4183 int
4184 main ()
4185 {
4186 return dnet_ntoa ();
4187   ;
4188   return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest.$ac_objext conftest$ac_exeext
4192 if { (ac_try="$ac_link"
4193 case "(($ac_try" in
4194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195   *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198   (eval "$ac_link") 2>conftest.er1
4199   ac_status=$?
4200   grep -v '^ *+' conftest.er1 >conftest.err
4201   rm -f conftest.er1
4202   cat conftest.err >&5
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); } && {
4205          test -z "$ac_c_werror_flag" ||
4206          test ! -s conftest.err
4207        } && test -s conftest$ac_exeext &&
4208        $as_test_x conftest$ac_exeext; then
4209   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4210 else
4211   echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214         ac_cv_lib_dnet_stub_dnet_ntoa=no
4215 fi
4216
4217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4218       conftest$ac_exeext conftest.$ac_ext
4219 LIBS=$ac_check_lib_save_LIBS
4220 fi
4221 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4222 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4223 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4224   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4225 fi
4226
4227     fi
4228 fi
4229
4230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4231       conftest$ac_exeext conftest.$ac_ext
4232     LIBS="$ac_xsave_LIBS"
4233
4234     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4235     # to get the SysV transport functions.
4236     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4237     # needs -lnsl.
4238     # The nsl library prevents programs from opening the X display
4239     # on Irix 5.2, according to T.E. Dickey.
4240     # The functions gethostbyname, getservbyname, and inet_addr are
4241     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4242     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4243 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4244 if test "${ac_cv_func_gethostbyname+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4255 #define gethostbyname innocuous_gethostbyname
4256
4257 /* System header to define __stub macros and hopefully few prototypes,
4258     which can conflict with char gethostbyname (); below.
4259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4260     <limits.h> exists even on freestanding compilers.  */
4261
4262 #ifdef __STDC__
4263 # include <limits.h>
4264 #else
4265 # include <assert.h>
4266 #endif
4267
4268 #undef gethostbyname
4269
4270 /* Override any GCC internal prototype to avoid an error.
4271    Use char because int might match the return type of a GCC
4272    builtin and then its argument prototype would still apply.  */
4273 #ifdef __cplusplus
4274 extern "C"
4275 #endif
4276 char gethostbyname ();
4277 /* The GNU C library defines this for functions which it implements
4278     to always fail with ENOSYS.  Some functions are actually named
4279     something starting with __ and the normal name is an alias.  */
4280 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4281 choke me
4282 #endif
4283
4284 int
4285 main ()
4286 {
4287 return gethostbyname ();
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292 rm -f conftest.$ac_objext conftest$ac_exeext
4293 if { (ac_try="$ac_link"
4294 case "(($ac_try" in
4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296   *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299   (eval "$ac_link") 2>conftest.er1
4300   ac_status=$?
4301   grep -v '^ *+' conftest.er1 >conftest.err
4302   rm -f conftest.er1
4303   cat conftest.err >&5
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); } && {
4306          test -z "$ac_c_werror_flag" ||
4307          test ! -s conftest.err
4308        } && test -s conftest$ac_exeext &&
4309        $as_test_x conftest$ac_exeext; then
4310   ac_cv_func_gethostbyname=yes
4311 else
4312   echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315         ac_cv_func_gethostbyname=no
4316 fi
4317
4318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4319       conftest$ac_exeext conftest.$ac_ext
4320 fi
4321 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4322 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4323
4324     if test $ac_cv_func_gethostbyname = no; then
4325       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4326 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4327 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   ac_check_lib_save_LIBS=$LIBS
4331 LIBS="-lnsl  $LIBS"
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338
4339 /* Override any GCC internal prototype to avoid an error.
4340    Use char because int might match the return type of a GCC
4341    builtin and then its argument prototype would still apply.  */
4342 #ifdef __cplusplus
4343 extern "C"
4344 #endif
4345 char gethostbyname ();
4346 int
4347 main ()
4348 {
4349 return gethostbyname ();
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 rm -f conftest.$ac_objext conftest$ac_exeext
4355 if { (ac_try="$ac_link"
4356 case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361   (eval "$ac_link") 2>conftest.er1
4362   ac_status=$?
4363   grep -v '^ *+' conftest.er1 >conftest.err
4364   rm -f conftest.er1
4365   cat conftest.err >&5
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } && {
4368          test -z "$ac_c_werror_flag" ||
4369          test ! -s conftest.err
4370        } && test -s conftest$ac_exeext &&
4371        $as_test_x conftest$ac_exeext; then
4372   ac_cv_lib_nsl_gethostbyname=yes
4373 else
4374   echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4376
4377         ac_cv_lib_nsl_gethostbyname=no
4378 fi
4379
4380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4381       conftest$ac_exeext conftest.$ac_ext
4382 LIBS=$ac_check_lib_save_LIBS
4383 fi
4384 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4385 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4386 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4387   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4388 fi
4389
4390       if test $ac_cv_lib_nsl_gethostbyname = no; then
4391         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4392 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4393 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   ac_check_lib_save_LIBS=$LIBS
4397 LIBS="-lbsd  $LIBS"
4398 cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h.  */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h.  */
4404
4405 /* Override any GCC internal prototype to avoid an error.
4406    Use char because int might match the return type of a GCC
4407    builtin and then its argument prototype would still apply.  */
4408 #ifdef __cplusplus
4409 extern "C"
4410 #endif
4411 char gethostbyname ();
4412 int
4413 main ()
4414 {
4415 return gethostbyname ();
4416   ;
4417   return 0;
4418 }
4419 _ACEOF
4420 rm -f conftest.$ac_objext conftest$ac_exeext
4421 if { (ac_try="$ac_link"
4422 case "(($ac_try" in
4423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424   *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427   (eval "$ac_link") 2>conftest.er1
4428   ac_status=$?
4429   grep -v '^ *+' conftest.er1 >conftest.err
4430   rm -f conftest.er1
4431   cat conftest.err >&5
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); } && {
4434          test -z "$ac_c_werror_flag" ||
4435          test ! -s conftest.err
4436        } && test -s conftest$ac_exeext &&
4437        $as_test_x conftest$ac_exeext; then
4438   ac_cv_lib_bsd_gethostbyname=yes
4439 else
4440   echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443         ac_cv_lib_bsd_gethostbyname=no
4444 fi
4445
4446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4447       conftest$ac_exeext conftest.$ac_ext
4448 LIBS=$ac_check_lib_save_LIBS
4449 fi
4450 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4451 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4452 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4453   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4454 fi
4455
4456       fi
4457     fi
4458
4459     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4460     # socket/setsockopt and other routines are undefined under SCO ODT
4461     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4462     # on later versions), says Simon Leinen: it contains gethostby*
4463     # variants that don't use the name server (or something).  -lsocket
4464     # must be given before -lnsl if both are needed.  We assume that
4465     # if connect needs -lnsl, so does gethostbyname.
4466     { echo "$as_me:$LINENO: checking for connect" >&5
4467 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4468 if test "${ac_cv_func_connect+set}" = set; then
4469   echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471   cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4479 #define connect innocuous_connect
4480
4481 /* System header to define __stub macros and hopefully few prototypes,
4482     which can conflict with char connect (); below.
4483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4484     <limits.h> exists even on freestanding compilers.  */
4485
4486 #ifdef __STDC__
4487 # include <limits.h>
4488 #else
4489 # include <assert.h>
4490 #endif
4491
4492 #undef connect
4493
4494 /* Override any GCC internal prototype to avoid an error.
4495    Use char because int might match the return type of a GCC
4496    builtin and then its argument prototype would still apply.  */
4497 #ifdef __cplusplus
4498 extern "C"
4499 #endif
4500 char connect ();
4501 /* The GNU C library defines this for functions which it implements
4502     to always fail with ENOSYS.  Some functions are actually named
4503     something starting with __ and the normal name is an alias.  */
4504 #if defined __stub_connect || defined __stub___connect
4505 choke me
4506 #endif
4507
4508 int
4509 main ()
4510 {
4511 return connect ();
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (ac_try="$ac_link"
4518 case "(($ac_try" in
4519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520   *) ac_try_echo=$ac_try;;
4521 esac
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523   (eval "$ac_link") 2>conftest.er1
4524   ac_status=$?
4525   grep -v '^ *+' conftest.er1 >conftest.err
4526   rm -f conftest.er1
4527   cat conftest.err >&5
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); } && {
4530          test -z "$ac_c_werror_flag" ||
4531          test ! -s conftest.err
4532        } && test -s conftest$ac_exeext &&
4533        $as_test_x conftest$ac_exeext; then
4534   ac_cv_func_connect=yes
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539         ac_cv_func_connect=no
4540 fi
4541
4542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4543       conftest$ac_exeext conftest.$ac_ext
4544 fi
4545 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4546 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4547
4548     if test $ac_cv_func_connect = no; then
4549       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4550 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4551 if test "${ac_cv_lib_socket_connect+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   ac_check_lib_save_LIBS=$LIBS
4555 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4556 cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h.  */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h.  */
4562
4563 /* Override any GCC internal prototype to avoid an error.
4564    Use char because int might match the return type of a GCC
4565    builtin and then its argument prototype would still apply.  */
4566 #ifdef __cplusplus
4567 extern "C"
4568 #endif
4569 char connect ();
4570 int
4571 main ()
4572 {
4573 return connect ();
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.$ac_objext conftest$ac_exeext
4579 if { (ac_try="$ac_link"
4580 case "(($ac_try" in
4581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582   *) ac_try_echo=$ac_try;;
4583 esac
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585   (eval "$ac_link") 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } && {
4592          test -z "$ac_c_werror_flag" ||
4593          test ! -s conftest.err
4594        } && test -s conftest$ac_exeext &&
4595        $as_test_x conftest$ac_exeext; then
4596   ac_cv_lib_socket_connect=yes
4597 else
4598   echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4600
4601         ac_cv_lib_socket_connect=no
4602 fi
4603
4604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4605       conftest$ac_exeext conftest.$ac_ext
4606 LIBS=$ac_check_lib_save_LIBS
4607 fi
4608 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4609 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4610 if test $ac_cv_lib_socket_connect = yes; then
4611   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4612 fi
4613
4614     fi
4615
4616     # Guillermo Gomez says -lposix is necessary on A/UX.
4617     { echo "$as_me:$LINENO: checking for remove" >&5
4618 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4619 if test "${ac_cv_func_remove+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h.  */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h.  */
4628 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4630 #define remove innocuous_remove
4631
4632 /* System header to define __stub macros and hopefully few prototypes,
4633     which can conflict with char remove (); below.
4634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4635     <limits.h> exists even on freestanding compilers.  */
4636
4637 #ifdef __STDC__
4638 # include <limits.h>
4639 #else
4640 # include <assert.h>
4641 #endif
4642
4643 #undef remove
4644
4645 /* Override any GCC internal prototype to avoid an error.
4646    Use char because int might match the return type of a GCC
4647    builtin and then its argument prototype would still apply.  */
4648 #ifdef __cplusplus
4649 extern "C"
4650 #endif
4651 char remove ();
4652 /* The GNU C library defines this for functions which it implements
4653     to always fail with ENOSYS.  Some functions are actually named
4654     something starting with __ and the normal name is an alias.  */
4655 #if defined __stub_remove || defined __stub___remove
4656 choke me
4657 #endif
4658
4659 int
4660 main ()
4661 {
4662 return remove ();
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 rm -f conftest.$ac_objext conftest$ac_exeext
4668 if { (ac_try="$ac_link"
4669 case "(($ac_try" in
4670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671   *) ac_try_echo=$ac_try;;
4672 esac
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674   (eval "$ac_link") 2>conftest.er1
4675   ac_status=$?
4676   grep -v '^ *+' conftest.er1 >conftest.err
4677   rm -f conftest.er1
4678   cat conftest.err >&5
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); } && {
4681          test -z "$ac_c_werror_flag" ||
4682          test ! -s conftest.err
4683        } && test -s conftest$ac_exeext &&
4684        $as_test_x conftest$ac_exeext; then
4685   ac_cv_func_remove=yes
4686 else
4687   echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690         ac_cv_func_remove=no
4691 fi
4692
4693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4694       conftest$ac_exeext conftest.$ac_ext
4695 fi
4696 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4697 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4698
4699     if test $ac_cv_func_remove = no; then
4700       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4701 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4702 if test "${ac_cv_lib_posix_remove+set}" = set; then
4703   echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705   ac_check_lib_save_LIBS=$LIBS
4706 LIBS="-lposix  $LIBS"
4707 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h.  */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h.  */
4713
4714 /* Override any GCC internal prototype to avoid an error.
4715    Use char because int might match the return type of a GCC
4716    builtin and then its argument prototype would still apply.  */
4717 #ifdef __cplusplus
4718 extern "C"
4719 #endif
4720 char remove ();
4721 int
4722 main ()
4723 {
4724 return remove ();
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 rm -f conftest.$ac_objext conftest$ac_exeext
4730 if { (ac_try="$ac_link"
4731 case "(($ac_try" in
4732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733   *) ac_try_echo=$ac_try;;
4734 esac
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736   (eval "$ac_link") 2>conftest.er1
4737   ac_status=$?
4738   grep -v '^ *+' conftest.er1 >conftest.err
4739   rm -f conftest.er1
4740   cat conftest.err >&5
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } && {
4743          test -z "$ac_c_werror_flag" ||
4744          test ! -s conftest.err
4745        } && test -s conftest$ac_exeext &&
4746        $as_test_x conftest$ac_exeext; then
4747   ac_cv_lib_posix_remove=yes
4748 else
4749   echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752         ac_cv_lib_posix_remove=no
4753 fi
4754
4755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4756       conftest$ac_exeext conftest.$ac_ext
4757 LIBS=$ac_check_lib_save_LIBS
4758 fi
4759 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4760 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4761 if test $ac_cv_lib_posix_remove = yes; then
4762   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4763 fi
4764
4765     fi
4766
4767     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4768     { echo "$as_me:$LINENO: checking for shmat" >&5
4769 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4770 if test "${ac_cv_func_shmat+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4781 #define shmat innocuous_shmat
4782
4783 /* System header to define __stub macros and hopefully few prototypes,
4784     which can conflict with char shmat (); below.
4785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4786     <limits.h> exists even on freestanding compilers.  */
4787
4788 #ifdef __STDC__
4789 # include <limits.h>
4790 #else
4791 # include <assert.h>
4792 #endif
4793
4794 #undef shmat
4795
4796 /* Override any GCC internal prototype to avoid an error.
4797    Use char because int might match the return type of a GCC
4798    builtin and then its argument prototype would still apply.  */
4799 #ifdef __cplusplus
4800 extern "C"
4801 #endif
4802 char shmat ();
4803 /* The GNU C library defines this for functions which it implements
4804     to always fail with ENOSYS.  Some functions are actually named
4805     something starting with __ and the normal name is an alias.  */
4806 #if defined __stub_shmat || defined __stub___shmat
4807 choke me
4808 #endif
4809
4810 int
4811 main ()
4812 {
4813 return shmat ();
4814   ;
4815   return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.$ac_objext conftest$ac_exeext
4819 if { (ac_try="$ac_link"
4820 case "(($ac_try" in
4821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822   *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825   (eval "$ac_link") 2>conftest.er1
4826   ac_status=$?
4827   grep -v '^ *+' conftest.er1 >conftest.err
4828   rm -f conftest.er1
4829   cat conftest.err >&5
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); } && {
4832          test -z "$ac_c_werror_flag" ||
4833          test ! -s conftest.err
4834        } && test -s conftest$ac_exeext &&
4835        $as_test_x conftest$ac_exeext; then
4836   ac_cv_func_shmat=yes
4837 else
4838   echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841         ac_cv_func_shmat=no
4842 fi
4843
4844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4845       conftest$ac_exeext conftest.$ac_ext
4846 fi
4847 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4848 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4849
4850     if test $ac_cv_func_shmat = no; then
4851       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4852 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4853 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   ac_check_lib_save_LIBS=$LIBS
4857 LIBS="-lipc  $LIBS"
4858 cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h.  */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h.  */
4864
4865 /* Override any GCC internal prototype to avoid an error.
4866    Use char because int might match the return type of a GCC
4867    builtin and then its argument prototype would still apply.  */
4868 #ifdef __cplusplus
4869 extern "C"
4870 #endif
4871 char shmat ();
4872 int
4873 main ()
4874 {
4875 return shmat ();
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 rm -f conftest.$ac_objext conftest$ac_exeext
4881 if { (ac_try="$ac_link"
4882 case "(($ac_try" in
4883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884   *) ac_try_echo=$ac_try;;
4885 esac
4886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887   (eval "$ac_link") 2>conftest.er1
4888   ac_status=$?
4889   grep -v '^ *+' conftest.er1 >conftest.err
4890   rm -f conftest.er1
4891   cat conftest.err >&5
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); } && {
4894          test -z "$ac_c_werror_flag" ||
4895          test ! -s conftest.err
4896        } && test -s conftest$ac_exeext &&
4897        $as_test_x conftest$ac_exeext; then
4898   ac_cv_lib_ipc_shmat=yes
4899 else
4900   echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903         ac_cv_lib_ipc_shmat=no
4904 fi
4905
4906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4907       conftest$ac_exeext conftest.$ac_ext
4908 LIBS=$ac_check_lib_save_LIBS
4909 fi
4910 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4911 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4912 if test $ac_cv_lib_ipc_shmat = yes; then
4913   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4914 fi
4915
4916     fi
4917   fi
4918
4919   # Check for libraries that X11R6 Xt/Xaw programs need.
4920   ac_save_LDFLAGS=$LDFLAGS
4921   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4922   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4923   # check for ICE first), but we must link in the order -lSM -lICE or
4924   # we get undefined symbols.  So assume we have SM if we have ICE.
4925   # These have to be linked with before -lX11, unlike the other
4926   # libraries we check for below, so use a different variable.
4927   # John Interrante, Karl Berry
4928   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4929 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4930 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933   ac_check_lib_save_LIBS=$LIBS
4934 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941
4942 /* Override any GCC internal prototype to avoid an error.
4943    Use char because int might match the return type of a GCC
4944    builtin and then its argument prototype would still apply.  */
4945 #ifdef __cplusplus
4946 extern "C"
4947 #endif
4948 char IceConnectionNumber ();
4949 int
4950 main ()
4951 {
4952 return IceConnectionNumber ();
4953   ;
4954   return 0;
4955 }
4956 _ACEOF
4957 rm -f conftest.$ac_objext conftest$ac_exeext
4958 if { (ac_try="$ac_link"
4959 case "(($ac_try" in
4960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961   *) ac_try_echo=$ac_try;;
4962 esac
4963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964   (eval "$ac_link") 2>conftest.er1
4965   ac_status=$?
4966   grep -v '^ *+' conftest.er1 >conftest.err
4967   rm -f conftest.er1
4968   cat conftest.err >&5
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); } && {
4971          test -z "$ac_c_werror_flag" ||
4972          test ! -s conftest.err
4973        } && test -s conftest$ac_exeext &&
4974        $as_test_x conftest$ac_exeext; then
4975   ac_cv_lib_ICE_IceConnectionNumber=yes
4976 else
4977   echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980         ac_cv_lib_ICE_IceConnectionNumber=no
4981 fi
4982
4983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4984       conftest$ac_exeext conftest.$ac_ext
4985 LIBS=$ac_check_lib_save_LIBS
4986 fi
4987 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4988 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4989 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4990   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4991 fi
4992
4993   LDFLAGS=$ac_save_LDFLAGS
4994
4995 fi
4996
4997
4998 for ac_prog in flex
4999 do
5000   # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_prog_FLEX+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   if test -n "$FLEX"; then
5008   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013   IFS=$as_save_IFS
5014   test -z "$as_dir" && as_dir=.
5015   for ac_exec_ext in '' $ac_executable_extensions; do
5016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017     ac_cv_prog_FLEX="$ac_prog"
5018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 FLEX=$ac_cv_prog_FLEX
5028 if test -n "$FLEX"; then
5029   { echo "$as_me:$LINENO: result: $FLEX" >&5
5030 echo "${ECHO_T}$FLEX" >&6; }
5031 else
5032   { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5034 fi
5035
5036
5037   test -n "$FLEX" && break
5038 done
5039 test -n "$FLEX" || FLEX="none"
5040
5041 if test "$FLEX" = "none"
5042 then
5043   { { echo "$as_me:$LINENO: error: no suitable flex found. Please install the 'flex' package." >&5
5044 echo "$as_me: error: no suitable flex found. Please install the 'flex' package." >&2;}
5045    { (exit 1); exit 1; }; }
5046 fi
5047
5048 for ac_prog in bison
5049 do
5050   # Extract the first word of "$ac_prog", so it can be a program name with args.
5051 set dummy $ac_prog; ac_word=$2
5052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5054 if test "${ac_cv_prog_BISON+set}" = set; then
5055   echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057   if test -n "$BISON"; then
5058   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065   for ac_exec_ext in '' $ac_executable_extensions; do
5066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067     ac_cv_prog_BISON="$ac_prog"
5068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069     break 2
5070   fi
5071 done
5072 done
5073 IFS=$as_save_IFS
5074
5075 fi
5076 fi
5077 BISON=$ac_cv_prog_BISON
5078 if test -n "$BISON"; then
5079   { echo "$as_me:$LINENO: result: $BISON" >&5
5080 echo "${ECHO_T}$BISON" >&6; }
5081 else
5082   { echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6; }
5084 fi
5085
5086
5087   test -n "$BISON" && break
5088 done
5089 test -n "$BISON" || BISON="none"
5090
5091 if test "$BISON" = "none"
5092 then
5093   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5094 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5095    { (exit 1); exit 1; }; }
5096 fi
5097
5098 if test -n "$ac_tool_prefix"; then
5099   for ac_prog in gas as
5100   do
5101     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5105 if test "${ac_cv_prog_AS+set}" = set; then
5106   echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108   if test -n "$AS"; then
5109   ac_cv_prog_AS="$AS" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116   for ac_exec_ext in '' $ac_executable_extensions; do
5117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123 done
5124 IFS=$as_save_IFS
5125
5126 fi
5127 fi
5128 AS=$ac_cv_prog_AS
5129 if test -n "$AS"; then
5130   { echo "$as_me:$LINENO: result: $AS" >&5
5131 echo "${ECHO_T}$AS" >&6; }
5132 else
5133   { echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6; }
5135 fi
5136
5137
5138     test -n "$AS" && break
5139   done
5140 fi
5141 if test -z "$AS"; then
5142   ac_ct_AS=$AS
5143   for ac_prog in gas as
5144 do
5145   # Extract the first word of "$ac_prog", so it can be a program name with args.
5146 set dummy $ac_prog; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   if test -n "$ac_ct_AS"; then
5153   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158   IFS=$as_save_IFS
5159   test -z "$as_dir" && as_dir=.
5160   for ac_exec_ext in '' $ac_executable_extensions; do
5161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162     ac_cv_prog_ac_ct_AS="$ac_prog"
5163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164     break 2
5165   fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5173 if test -n "$ac_ct_AS"; then
5174   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5175 echo "${ECHO_T}$ac_ct_AS" >&6; }
5176 else
5177   { echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6; }
5179 fi
5180
5181
5182   test -n "$ac_ct_AS" && break
5183 done
5184
5185   if test "x$ac_ct_AS" = x; then
5186     AS="as"
5187   else
5188     case $cross_compiling:$ac_tool_warned in
5189 yes:)
5190 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5191 whose name does not start with the host triplet.  If you think this
5192 configuration is useful to you, please write to autoconf@gnu.org." >&5
5193 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5194 whose name does not start with the host triplet.  If you think this
5195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5196 ac_tool_warned=yes ;;
5197 esac
5198     AS=$ac_ct_AS
5199   fi
5200 fi
5201
5202 if test -n "$ac_tool_prefix"; then
5203   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5204 set dummy ${ac_tool_prefix}ld; ac_word=$2
5205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5207 if test "${ac_cv_prog_LD+set}" = set; then
5208   echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210   if test -n "$LD"; then
5211   ac_cv_prog_LD="$LD" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216   IFS=$as_save_IFS
5217   test -z "$as_dir" && as_dir=.
5218   for ac_exec_ext in '' $ac_executable_extensions; do
5219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220     ac_cv_prog_LD="${ac_tool_prefix}ld"
5221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222     break 2
5223   fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 LD=$ac_cv_prog_LD
5231 if test -n "$LD"; then
5232   { echo "$as_me:$LINENO: result: $LD" >&5
5233 echo "${ECHO_T}$LD" >&6; }
5234 else
5235   { echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; }
5237 fi
5238
5239
5240 fi
5241 if test -z "$ac_cv_prog_LD"; then
5242   ac_ct_LD=$LD
5243   # Extract the first word of "ld", so it can be a program name with args.
5244 set dummy ld; ac_word=$2
5245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5247 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250   if test -n "$ac_ct_LD"; then
5251   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256   IFS=$as_save_IFS
5257   test -z "$as_dir" && as_dir=.
5258   for ac_exec_ext in '' $ac_executable_extensions; do
5259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260     ac_cv_prog_ac_ct_LD="ld"
5261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262     break 2
5263   fi
5264 done
5265 done
5266 IFS=$as_save_IFS
5267
5268 fi
5269 fi
5270 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5271 if test -n "$ac_ct_LD"; then
5272   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5273 echo "${ECHO_T}$ac_ct_LD" >&6; }
5274 else
5275   { echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6; }
5277 fi
5278
5279   if test "x$ac_ct_LD" = x; then
5280     LD="ld"
5281   else
5282     case $cross_compiling:$ac_tool_warned in
5283 yes:)
5284 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5285 whose name does not start with the host triplet.  If you think this
5286 configuration is useful to you, please write to autoconf@gnu.org." >&5
5287 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5288 whose name does not start with the host triplet.  If you think this
5289 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5290 ac_tool_warned=yes ;;
5291 esac
5292     LD=$ac_ct_LD
5293   fi
5294 else
5295   LD="$ac_cv_prog_LD"
5296 fi
5297
5298 if test -n "$ac_tool_prefix"; then
5299   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5300 set dummy ${ac_tool_prefix}ar; ac_word=$2
5301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5303 if test "${ac_cv_prog_AR+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   if test -n "$AR"; then
5307   ac_cv_prog_AR="$AR" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312   IFS=$as_save_IFS
5313   test -z "$as_dir" && as_dir=.
5314   for ac_exec_ext in '' $ac_executable_extensions; do
5315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316     ac_cv_prog_AR="${ac_tool_prefix}ar"
5317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318     break 2
5319   fi
5320 done
5321 done
5322 IFS=$as_save_IFS
5323
5324 fi
5325 fi
5326 AR=$ac_cv_prog_AR
5327 if test -n "$AR"; then
5328   { echo "$as_me:$LINENO: result: $AR" >&5
5329 echo "${ECHO_T}$AR" >&6; }
5330 else
5331   { echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6; }
5333 fi
5334
5335
5336 fi
5337 if test -z "$ac_cv_prog_AR"; then
5338   ac_ct_AR=$AR
5339   # Extract the first word of "ar", so it can be a program name with args.
5340 set dummy ar; ac_word=$2
5341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5343 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   if test -n "$ac_ct_AR"; then
5347   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354   for ac_exec_ext in '' $ac_executable_extensions; do
5355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356     ac_cv_prog_ac_ct_AR="ar"
5357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361 done
5362 IFS=$as_save_IFS
5363
5364 fi
5365 fi
5366 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5367 if test -n "$ac_ct_AR"; then
5368   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5369 echo "${ECHO_T}$ac_ct_AR" >&6; }
5370 else
5371   { echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6; }
5373 fi
5374
5375   if test "x$ac_ct_AR" = x; then
5376     AR="ar"
5377   else
5378     case $cross_compiling:$ac_tool_warned in
5379 yes:)
5380 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5381 whose name does not start with the host triplet.  If you think this
5382 configuration is useful to you, please write to autoconf@gnu.org." >&5
5383 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5384 whose name does not start with the host triplet.  If you think this
5385 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5386 ac_tool_warned=yes ;;
5387 esac
5388     AR=$ac_ct_AR
5389   fi
5390 else
5391   AR="$ac_cv_prog_AR"
5392 fi
5393
5394 if test -n "$ac_tool_prefix"; then
5395   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5396 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5399 if test "${ac_cv_prog_RANLIB+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402   if test -n "$RANLIB"; then
5403   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408   IFS=$as_save_IFS
5409   test -z "$as_dir" && as_dir=.
5410   for ac_exec_ext in '' $ac_executable_extensions; do
5411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414     break 2
5415   fi
5416 done
5417 done
5418 IFS=$as_save_IFS
5419
5420 fi
5421 fi
5422 RANLIB=$ac_cv_prog_RANLIB
5423 if test -n "$RANLIB"; then
5424   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5425 echo "${ECHO_T}$RANLIB" >&6; }
5426 else
5427   { echo "$as_me:$LINENO: result: no" >&5
5428 echo "${ECHO_T}no" >&6; }
5429 fi
5430
5431
5432 fi
5433 if test -z "$ac_cv_prog_RANLIB"; then
5434   ac_ct_RANLIB=$RANLIB
5435   # Extract the first word of "ranlib", so it can be a program name with args.
5436 set dummy ranlib; ac_word=$2
5437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5439 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5440   echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442   if test -n "$ac_ct_RANLIB"; then
5443   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5444 else
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5447 do
5448   IFS=$as_save_IFS
5449   test -z "$as_dir" && as_dir=.
5450   for ac_exec_ext in '' $ac_executable_extensions; do
5451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452     ac_cv_prog_ac_ct_RANLIB="ranlib"
5453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454     break 2
5455   fi
5456 done
5457 done
5458 IFS=$as_save_IFS
5459
5460 fi
5461 fi
5462 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5463 if test -n "$ac_ct_RANLIB"; then
5464   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5465 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5466 else
5467   { echo "$as_me:$LINENO: result: no" >&5
5468 echo "${ECHO_T}no" >&6; }
5469 fi
5470
5471   if test "x$ac_ct_RANLIB" = x; then
5472     RANLIB=":"
5473   else
5474     case $cross_compiling:$ac_tool_warned in
5475 yes:)
5476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5477 whose name does not start with the host triplet.  If you think this
5478 configuration is useful to you, please write to autoconf@gnu.org." >&5
5479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5480 whose name does not start with the host triplet.  If you think this
5481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5482 ac_tool_warned=yes ;;
5483 esac
5484     RANLIB=$ac_ct_RANLIB
5485   fi
5486 else
5487   RANLIB="$ac_cv_prog_RANLIB"
5488 fi
5489
5490 if test -n "$ac_tool_prefix"; then
5491   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5492 set dummy ${ac_tool_prefix}strip; ac_word=$2
5493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5495 if test "${ac_cv_prog_STRIP+set}" = set; then
5496   echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498   if test -n "$STRIP"; then
5499   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504   IFS=$as_save_IFS
5505   test -z "$as_dir" && as_dir=.
5506   for ac_exec_ext in '' $ac_executable_extensions; do
5507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510     break 2
5511   fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 fi
5517 fi
5518 STRIP=$ac_cv_prog_STRIP
5519 if test -n "$STRIP"; then
5520   { echo "$as_me:$LINENO: result: $STRIP" >&5
5521 echo "${ECHO_T}$STRIP" >&6; }
5522 else
5523   { echo "$as_me:$LINENO: result: no" >&5
5524 echo "${ECHO_T}no" >&6; }
5525 fi
5526
5527
5528 fi
5529 if test -z "$ac_cv_prog_STRIP"; then
5530   ac_ct_STRIP=$STRIP
5531   # Extract the first word of "strip", so it can be a program name with args.
5532 set dummy strip; ac_word=$2
5533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5535 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5536   echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538   if test -n "$ac_ct_STRIP"; then
5539   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544   IFS=$as_save_IFS
5545   test -z "$as_dir" && as_dir=.
5546   for ac_exec_ext in '' $ac_executable_extensions; do
5547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548     ac_cv_prog_ac_ct_STRIP="strip"
5549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550     break 2
5551   fi
5552 done
5553 done
5554 IFS=$as_save_IFS
5555
5556 fi
5557 fi
5558 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5559 if test -n "$ac_ct_STRIP"; then
5560   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5561 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5562 else
5563   { echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6; }
5565 fi
5566
5567   if test "x$ac_ct_STRIP" = x; then
5568     STRIP="strip"
5569   else
5570     case $cross_compiling:$ac_tool_warned in
5571 yes:)
5572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5573 whose name does not start with the host triplet.  If you think this
5574 configuration is useful to you, please write to autoconf@gnu.org." >&5
5575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5576 whose name does not start with the host triplet.  If you think this
5577 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5578 ac_tool_warned=yes ;;
5579 esac
5580     STRIP=$ac_ct_STRIP
5581   fi
5582 else
5583   STRIP="$ac_cv_prog_STRIP"
5584 fi
5585
5586 if test -n "$ac_tool_prefix"; then
5587   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5588 set dummy ${ac_tool_prefix}windres; ac_word=$2
5589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5591 if test "${ac_cv_prog_WINDRES+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   if test -n "$WINDRES"; then
5595   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600   IFS=$as_save_IFS
5601   test -z "$as_dir" && as_dir=.
5602   for ac_exec_ext in '' $ac_executable_extensions; do
5603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606     break 2
5607   fi
5608 done
5609 done
5610 IFS=$as_save_IFS
5611
5612 fi
5613 fi
5614 WINDRES=$ac_cv_prog_WINDRES
5615 if test -n "$WINDRES"; then
5616   { echo "$as_me:$LINENO: result: $WINDRES" >&5
5617 echo "${ECHO_T}$WINDRES" >&6; }
5618 else
5619   { echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6; }
5621 fi
5622
5623
5624 fi
5625 if test -z "$ac_cv_prog_WINDRES"; then
5626   ac_ct_WINDRES=$WINDRES
5627   # Extract the first word of "windres", so it can be a program name with args.
5628 set dummy windres; ac_word=$2
5629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5631 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   if test -n "$ac_ct_WINDRES"; then
5635   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640   IFS=$as_save_IFS
5641   test -z "$as_dir" && as_dir=.
5642   for ac_exec_ext in '' $ac_executable_extensions; do
5643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644     ac_cv_prog_ac_ct_WINDRES="windres"
5645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646     break 2
5647   fi
5648 done
5649 done
5650 IFS=$as_save_IFS
5651
5652 fi
5653 fi
5654 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5655 if test -n "$ac_ct_WINDRES"; then
5656   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5657 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
5658 else
5659   { echo "$as_me:$LINENO: result: no" >&5
5660 echo "${ECHO_T}no" >&6; }
5661 fi
5662
5663   if test "x$ac_ct_WINDRES" = x; then
5664     WINDRES="false"
5665   else
5666     case $cross_compiling:$ac_tool_warned in
5667 yes:)
5668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5669 whose name does not start with the host triplet.  If you think this
5670 configuration is useful to you, please write to autoconf@gnu.org." >&5
5671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5672 whose name does not start with the host triplet.  If you think this
5673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5674 ac_tool_warned=yes ;;
5675 esac
5676     WINDRES=$ac_ct_WINDRES
5677   fi
5678 else
5679   WINDRES="$ac_cv_prog_WINDRES"
5680 fi
5681
5682 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5683 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5684 LN_S=$as_ln_s
5685 if test "$LN_S" = "ln -s"; then
5686   { echo "$as_me:$LINENO: result: yes" >&5
5687 echo "${ECHO_T}yes" >&6; }
5688 else
5689   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5690 echo "${ECHO_T}no, using $LN_S" >&6; }
5691 fi
5692
5693 { echo "$as_me:$LINENO: checking whether ln works" >&5
5694 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
5695 rm -f conf$$ conf$$.file
5696 echo >conf$$.file
5697 if ln conf$$.file conf$$ 2>/dev/null; then
5698   LN=ln
5699
5700   { echo "$as_me:$LINENO: result: yes" >&5
5701 echo "${ECHO_T}yes" >&6; }
5702 else
5703   LN="cp -p"
5704
5705   { echo "$as_me:$LINENO: result: no, using $LN" >&5
5706 echo "${ECHO_T}no, using $LN" >&6; }
5707 fi
5708 rm -f conf$$ conf$$.file
5709 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5710 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5711 if test "${ac_cv_path_GREP+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   # Extract the first word of "grep ggrep" to use in msg output
5715 if test -z "$GREP"; then
5716 set dummy grep ggrep; ac_prog_name=$2
5717 if test "${ac_cv_path_GREP+set}" = set; then
5718   echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720   ac_path_GREP_found=false
5721 # Loop through the user's path and test for each of PROGNAME-LIST
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5724 do
5725   IFS=$as_save_IFS
5726   test -z "$as_dir" && as_dir=.
5727   for ac_prog in grep ggrep; do
5728   for ac_exec_ext in '' $ac_executable_extensions; do
5729     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5730     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5731     # Check for GNU ac_path_GREP and select it if it is found.
5732   # Check for GNU $ac_path_GREP
5733 case `"$ac_path_GREP" --version 2>&1` in
5734 *GNU*)
5735   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5736 *)
5737   ac_count=0
5738   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5739   while :
5740   do
5741     cat "conftest.in" "conftest.in" >"conftest.tmp"
5742     mv "conftest.tmp" "conftest.in"
5743     cp "conftest.in" "conftest.nl"
5744     echo 'GREP' >> "conftest.nl"
5745     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5746     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5747     ac_count=`expr $ac_count + 1`
5748     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5749       # Best one so far, save it but keep looking for a better one
5750       ac_cv_path_GREP="$ac_path_GREP"
5751       ac_path_GREP_max=$ac_count
5752     fi
5753     # 10*(2^10) chars as input seems more than enough
5754     test $ac_count -gt 10 && break
5755   done
5756   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5757 esac
5758
5759
5760     $ac_path_GREP_found && break 3
5761   done
5762 done
5763
5764 done
5765 IFS=$as_save_IFS
5766
5767
5768 fi
5769
5770 GREP="$ac_cv_path_GREP"
5771 if test -z "$GREP"; then
5772   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5773 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5774    { (exit 1); exit 1; }; }
5775 fi
5776
5777 else
5778   ac_cv_path_GREP=$GREP
5779 fi
5780
5781
5782 fi
5783 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5784 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5785  GREP="$ac_cv_path_GREP"
5786
5787
5788 { echo "$as_me:$LINENO: checking for egrep" >&5
5789 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5790 if test "${ac_cv_path_EGREP+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5794    then ac_cv_path_EGREP="$GREP -E"
5795    else
5796      # Extract the first word of "egrep" to use in msg output
5797 if test -z "$EGREP"; then
5798 set dummy egrep; ac_prog_name=$2
5799 if test "${ac_cv_path_EGREP+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   ac_path_EGREP_found=false
5803 # Loop through the user's path and test for each of PROGNAME-LIST
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_prog in egrep; do
5810   for ac_exec_ext in '' $ac_executable_extensions; do
5811     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5812     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5813     # Check for GNU ac_path_EGREP and select it if it is found.
5814   # Check for GNU $ac_path_EGREP
5815 case `"$ac_path_EGREP" --version 2>&1` in
5816 *GNU*)
5817   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5818 *)
5819   ac_count=0
5820   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5821   while :
5822   do
5823     cat "conftest.in" "conftest.in" >"conftest.tmp"
5824     mv "conftest.tmp" "conftest.in"
5825     cp "conftest.in" "conftest.nl"
5826     echo 'EGREP' >> "conftest.nl"
5827     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5828     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5829     ac_count=`expr $ac_count + 1`
5830     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5831       # Best one so far, save it but keep looking for a better one
5832       ac_cv_path_EGREP="$ac_path_EGREP"
5833       ac_path_EGREP_max=$ac_count
5834     fi
5835     # 10*(2^10) chars as input seems more than enough
5836     test $ac_count -gt 10 && break
5837   done
5838   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5839 esac
5840
5841
5842     $ac_path_EGREP_found && break 3
5843   done
5844 done
5845
5846 done
5847 IFS=$as_save_IFS
5848
5849
5850 fi
5851
5852 EGREP="$ac_cv_path_EGREP"
5853 if test -z "$EGREP"; then
5854   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5855 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5856    { (exit 1); exit 1; }; }
5857 fi
5858
5859 else
5860   ac_cv_path_EGREP=$EGREP
5861 fi
5862
5863
5864    fi
5865 fi
5866 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5867 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5868  EGREP="$ac_cv_path_EGREP"
5869
5870
5871 # Extract the first word of "ldconfig", so it can be a program name with args.
5872 set dummy ldconfig; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   case $LDCONFIG in
5879   [\\/]* | ?:[\\/]*)
5880   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5881   ;;
5882   *)
5883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in /sbin /usr/sbin $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888   for ac_exec_ext in '' $ac_executable_extensions; do
5889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5890     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5899   ;;
5900 esac
5901 fi
5902 LDCONFIG=$ac_cv_path_LDCONFIG
5903 if test -n "$LDCONFIG"; then
5904   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5905 echo "${ECHO_T}$LDCONFIG" >&6; }
5906 else
5907   { echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6; }
5909 fi
5910
5911
5912 # Find a good install program.  We prefer a C program (faster),
5913 # so one script is as good as another.  But avoid the broken or
5914 # incompatible versions:
5915 # SysV /etc/install, /usr/sbin/install
5916 # SunOS /usr/etc/install
5917 # IRIX /sbin/install
5918 # AIX /bin/install
5919 # AmigaOS /C/install, which installs bootblocks on floppy discs
5920 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5921 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5922 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5923 # OS/2's system install, which has a completely different semantic
5924 # ./install, which can be erroneously created by make from ./install.sh.
5925 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5926 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5927 if test -z "$INSTALL"; then
5928 if test "${ac_cv_path_install+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936   # Account for people who put trailing slashes in PATH elements.
5937 case $as_dir/ in
5938   ./ | .// | /cC/* | \
5939   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5940   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5941   /usr/ucb/* ) ;;
5942   *)
5943     # OSF1 and SCO ODT 3.0 have their own names for install.
5944     # Don't use installbsd from OSF since it installs stuff as root
5945     # by default.
5946     for ac_prog in ginstall scoinst install; do
5947       for ac_exec_ext in '' $ac_executable_extensions; do
5948         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5949           if test $ac_prog = install &&
5950             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5951             # AIX install.  It has an incompatible calling convention.
5952             :
5953           elif test $ac_prog = install &&
5954             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5955             # program-specific install script used by HP pwplus--don't use.
5956             :
5957           else
5958             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5959             break 3
5960           fi
5961         fi
5962       done
5963     done
5964     ;;
5965 esac
5966 done
5967 IFS=$as_save_IFS
5968
5969
5970 fi
5971   if test "${ac_cv_path_install+set}" = set; then
5972     INSTALL=$ac_cv_path_install
5973   else
5974     # As a last resort, use the slow shell script.  Don't cache a
5975     # value for INSTALL within a source directory, because that will
5976     # break other packages using the cache if that directory is
5977     # removed, or if the value is a relative name.
5978     INSTALL=$ac_install_sh
5979   fi
5980 fi
5981 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5982 echo "${ECHO_T}$INSTALL" >&6; }
5983
5984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5985 # It thinks the first close brace ends the variable substitution.
5986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5987
5988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5989
5990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5991
5992 case "$INSTALL" in
5993   [\\/$]* | ?:[\\/]* ) ;;
5994   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5995 esac
5996
5997 for ac_prog in lclint lint
5998 do
5999   # Extract the first word of "$ac_prog", so it can be a program name with args.
6000 set dummy $ac_prog; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_prog_LINT+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   if test -n "$LINT"; then
6007   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_exec_ext in '' $ac_executable_extensions; do
6015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016     ac_cv_prog_LINT="$ac_prog"
6017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 LINT=$ac_cv_prog_LINT
6027 if test -n "$LINT"; then
6028   { echo "$as_me:$LINENO: result: $LINT" >&5
6029 echo "${ECHO_T}$LINT" >&6; }
6030 else
6031   { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6033 fi
6034
6035
6036   test -n "$LINT" && break
6037 done
6038
6039 if test "$LINT" = "lint"
6040 then
6041   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6042   fi
6043
6044
6045
6046 for ac_prog in fontforge
6047 do
6048   # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy $ac_prog; ac_word=$2
6050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6052 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   if test -n "$FONTFORGE"; then
6056   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063   for ac_exec_ext in '' $ac_executable_extensions; do
6064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065     ac_cv_prog_FONTFORGE="$ac_prog"
6066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 FONTFORGE=$ac_cv_prog_FONTFORGE
6076 if test -n "$FONTFORGE"; then
6077   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6078 echo "${ECHO_T}$FONTFORGE" >&6; }
6079 else
6080   { echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6; }
6082 fi
6083
6084
6085   test -n "$FONTFORGE" && break
6086 done
6087 test -n "$FONTFORGE" || FONTFORGE="false"
6088
6089 for ac_prog in pkg-config
6090 do
6091   # Extract the first word of "$ac_prog", so it can be a program name with args.
6092 set dummy $ac_prog; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098   if test -n "$PKG_CONFIG"; then
6099   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106   for ac_exec_ext in '' $ac_executable_extensions; do
6107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108     ac_cv_prog_PKG_CONFIG="$ac_prog"
6109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6119 if test -n "$PKG_CONFIG"; then
6120   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6121 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6122 else
6123   { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6125 fi
6126
6127
6128   test -n "$PKG_CONFIG" && break
6129 done
6130 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6131
6132
6133 case $host_cpu in
6134   *i[3456789]86*)
6135     # Extract the first word of "prelink", so it can be a program name with args.
6136 set dummy prelink; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_path_PRELINK+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   case $PRELINK in
6143   [\\/]* | ?:[\\/]*)
6144   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6145   ;;
6146   *)
6147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in /sbin /usr/sbin $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152   for ac_exec_ext in '' $ac_executable_extensions; do
6153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6163   ;;
6164 esac
6165 fi
6166 PRELINK=$ac_cv_path_PRELINK
6167 if test -n "$PRELINK"; then
6168   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6169 echo "${ECHO_T}$PRELINK" >&6; }
6170 else
6171   { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6173 fi
6174
6175
6176     ;;
6177 esac
6178
6179
6180
6181 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6182 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6183 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   ac_check_lib_save_LIBS=$LIBS
6187 LIBS="-li386  $LIBS"
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194
6195 /* Override any GCC internal prototype to avoid an error.
6196    Use char because int might match the return type of a GCC
6197    builtin and then its argument prototype would still apply.  */
6198 #ifdef __cplusplus
6199 extern "C"
6200 #endif
6201 char i386_set_ldt ();
6202 int
6203 main ()
6204 {
6205 return i386_set_ldt ();
6206   ;
6207   return 0;
6208 }
6209 _ACEOF
6210 rm -f conftest.$ac_objext conftest$ac_exeext
6211 if { (ac_try="$ac_link"
6212 case "(($ac_try" in
6213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214   *) ac_try_echo=$ac_try;;
6215 esac
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217   (eval "$ac_link") 2>conftest.er1
6218   ac_status=$?
6219   grep -v '^ *+' conftest.er1 >conftest.err
6220   rm -f conftest.er1
6221   cat conftest.err >&5
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); } && {
6224          test -z "$ac_c_werror_flag" ||
6225          test ! -s conftest.err
6226        } && test -s conftest$ac_exeext &&
6227        $as_test_x conftest$ac_exeext; then
6228   ac_cv_lib_i386_i386_set_ldt=yes
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233         ac_cv_lib_i386_i386_set_ldt=no
6234 fi
6235
6236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6237       conftest$ac_exeext conftest.$ac_ext
6238 LIBS=$ac_check_lib_save_LIBS
6239 fi
6240 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6241 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
6242 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
6243   cat >>confdefs.h <<_ACEOF
6244 #define HAVE_LIBI386 1
6245 _ACEOF
6246
6247   LIBS="-li386 $LIBS"
6248
6249 fi
6250
6251
6252 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6253 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6254 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6255   echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257   ac_check_lib_save_LIBS=$LIBS
6258 LIBS="-lossaudio  $LIBS"
6259 cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265
6266 /* Override any GCC internal prototype to avoid an error.
6267    Use char because int might match the return type of a GCC
6268    builtin and then its argument prototype would still apply.  */
6269 #ifdef __cplusplus
6270 extern "C"
6271 #endif
6272 char _oss_ioctl ();
6273 int
6274 main ()
6275 {
6276 return _oss_ioctl ();
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (ac_try="$ac_link"
6283 case "(($ac_try" in
6284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285   *) ac_try_echo=$ac_try;;
6286 esac
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288   (eval "$ac_link") 2>conftest.er1
6289   ac_status=$?
6290   grep -v '^ *+' conftest.er1 >conftest.err
6291   rm -f conftest.er1
6292   cat conftest.err >&5
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } && {
6295          test -z "$ac_c_werror_flag" ||
6296          test ! -s conftest.err
6297        } && test -s conftest$ac_exeext &&
6298        $as_test_x conftest$ac_exeext; then
6299   ac_cv_lib_ossaudio__oss_ioctl=yes
6300 else
6301   echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304         ac_cv_lib_ossaudio__oss_ioctl=no
6305 fi
6306
6307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6308       conftest$ac_exeext conftest.$ac_ext
6309 LIBS=$ac_check_lib_save_LIBS
6310 fi
6311 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6312 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6313 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6314   cat >>confdefs.h <<_ACEOF
6315 #define HAVE_LIBOSSAUDIO 1
6316 _ACEOF
6317
6318   LIBS="-lossaudio $LIBS"
6319
6320 fi
6321
6322
6323 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6324 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
6325 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328   ac_check_lib_save_LIBS=$LIBS
6329 LIBS="-lxpg4  $LIBS"
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h.  */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h.  */
6336
6337 /* Override any GCC internal prototype to avoid an error.
6338    Use char because int might match the return type of a GCC
6339    builtin and then its argument prototype would still apply.  */
6340 #ifdef __cplusplus
6341 extern "C"
6342 #endif
6343 char _xpg4_setrunelocale ();
6344 int
6345 main ()
6346 {
6347 return _xpg4_setrunelocale ();
6348   ;
6349   return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext conftest$ac_exeext
6353 if { (ac_try="$ac_link"
6354 case "(($ac_try" in
6355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356   *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359   (eval "$ac_link") 2>conftest.er1
6360   ac_status=$?
6361   grep -v '^ *+' conftest.er1 >conftest.err
6362   rm -f conftest.er1
6363   cat conftest.err >&5
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); } && {
6366          test -z "$ac_c_werror_flag" ||
6367          test ! -s conftest.err
6368        } && test -s conftest$ac_exeext &&
6369        $as_test_x conftest$ac_exeext; then
6370   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375         ac_cv_lib_xpg4__xpg4_setrunelocale=no
6376 fi
6377
6378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6379       conftest$ac_exeext conftest.$ac_ext
6380 LIBS=$ac_check_lib_save_LIBS
6381 fi
6382 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6383 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
6384 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6385   cat >>confdefs.h <<_ACEOF
6386 #define HAVE_LIBXPG4 1
6387 _ACEOF
6388
6389   LIBS="-lxpg4 $LIBS"
6390
6391 fi
6392
6393 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6394 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
6395 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   ac_check_lib_save_LIBS=$LIBS
6399 LIBS="-lpthread  $LIBS"
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406
6407 /* Override any GCC internal prototype to avoid an error.
6408    Use char because int might match the return type of a GCC
6409    builtin and then its argument prototype would still apply.  */
6410 #ifdef __cplusplus
6411 extern "C"
6412 #endif
6413 char pthread_create ();
6414 int
6415 main ()
6416 {
6417 return pthread_create ();
6418   ;
6419   return 0;
6420 }
6421 _ACEOF
6422 rm -f conftest.$ac_objext conftest$ac_exeext
6423 if { (ac_try="$ac_link"
6424 case "(($ac_try" in
6425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426   *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429   (eval "$ac_link") 2>conftest.er1
6430   ac_status=$?
6431   grep -v '^ *+' conftest.er1 >conftest.err
6432   rm -f conftest.er1
6433   cat conftest.err >&5
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); } && {
6436          test -z "$ac_c_werror_flag" ||
6437          test ! -s conftest.err
6438        } && test -s conftest$ac_exeext &&
6439        $as_test_x conftest$ac_exeext; then
6440   ac_cv_lib_pthread_pthread_create=yes
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445         ac_cv_lib_pthread_pthread_create=no
6446 fi
6447
6448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6449       conftest$ac_exeext conftest.$ac_ext
6450 LIBS=$ac_check_lib_save_LIBS
6451 fi
6452 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6453 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
6454 if test $ac_cv_lib_pthread_pthread_create = yes; then
6455   LIBPTHREAD="-lpthread"
6456
6457 fi
6458
6459
6460 XLIB=""
6461
6462 XFILES=""
6463
6464 OPENGLFILES=""
6465
6466 GLU32FILES=""
6467
6468 OPENGL_LIBS=""
6469
6470 QUARTZFILES=""
6471
6472
6473
6474 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6476 if test "${ac_cv_header_stdc+set}" = set; then
6477   echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479   cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h.  */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h.  */
6485 #include <stdlib.h>
6486 #include <stdarg.h>
6487 #include <string.h>
6488 #include <float.h>
6489
6490 int
6491 main ()
6492 {
6493
6494   ;
6495   return 0;
6496 }
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (ac_try="$ac_compile"
6500 case "(($ac_try" in
6501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502   *) ac_try_echo=$ac_try;;
6503 esac
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505   (eval "$ac_compile") 2>conftest.er1
6506   ac_status=$?
6507   grep -v '^ *+' conftest.er1 >conftest.err
6508   rm -f conftest.er1
6509   cat conftest.err >&5
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); } && {
6512          test -z "$ac_c_werror_flag" ||
6513          test ! -s conftest.err
6514        } && test -s conftest.$ac_objext; then
6515   ac_cv_header_stdc=yes
6516 else
6517   echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520         ac_cv_header_stdc=no
6521 fi
6522
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524
6525 if test $ac_cv_header_stdc = yes; then
6526   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6527   cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h.  */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h.  */
6533 #include <string.h>
6534
6535 _ACEOF
6536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6537   $EGREP "memchr" >/dev/null 2>&1; then
6538   :
6539 else
6540   ac_cv_header_stdc=no
6541 fi
6542 rm -f conftest*
6543
6544 fi
6545
6546 if test $ac_cv_header_stdc = yes; then
6547   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6548   cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554 #include <stdlib.h>
6555
6556 _ACEOF
6557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6558   $EGREP "free" >/dev/null 2>&1; then
6559   :
6560 else
6561   ac_cv_header_stdc=no
6562 fi
6563 rm -f conftest*
6564
6565 fi
6566
6567 if test $ac_cv_header_stdc = yes; then
6568   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6569   if test "$cross_compiling" = yes; then
6570   :
6571 else
6572   cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h.  */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h.  */
6578 #include <ctype.h>
6579 #include <stdlib.h>
6580 #if ((' ' & 0x0FF) == 0x020)
6581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6583 #else
6584 # define ISLOWER(c) \
6585                    (('a' <= (c) && (c) <= 'i') \
6586                      || ('j' <= (c) && (c) <= 'r') \
6587                      || ('s' <= (c) && (c) <= 'z'))
6588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6589 #endif
6590
6591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6592 int
6593 main ()
6594 {
6595   int i;
6596   for (i = 0; i < 256; i++)
6597     if (XOR (islower (i), ISLOWER (i))
6598         || toupper (i) != TOUPPER (i))
6599       return 2;
6600   return 0;
6601 }
6602 _ACEOF
6603 rm -f conftest$ac_exeext
6604 if { (ac_try="$ac_link"
6605 case "(($ac_try" in
6606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607   *) ac_try_echo=$ac_try;;
6608 esac
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610   (eval "$ac_link") 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6614   { (case "(($ac_try" in
6615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616   *) ac_try_echo=$ac_try;;
6617 esac
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619   (eval "$ac_try") 2>&5
6620   ac_status=$?
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); }; }; then
6623   :
6624 else
6625   echo "$as_me: program exited with status $ac_status" >&5
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629 ( exit $ac_status )
6630 ac_cv_header_stdc=no
6631 fi
6632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6633 fi
6634
6635
6636 fi
6637 fi
6638 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6639 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6640 if test $ac_cv_header_stdc = yes; then
6641
6642 cat >>confdefs.h <<\_ACEOF
6643 #define STDC_HEADERS 1
6644 _ACEOF
6645
6646 fi
6647
6648 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6659                   inttypes.h stdint.h unistd.h
6660 do
6661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   cat >conftest.$ac_ext <<_ACEOF
6668 /* confdefs.h.  */
6669 _ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h.  */
6673 $ac_includes_default
6674
6675 #include <$ac_header>
6676 _ACEOF
6677 rm -f conftest.$ac_objext
6678 if { (ac_try="$ac_compile"
6679 case "(($ac_try" in
6680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681   *) ac_try_echo=$ac_try;;
6682 esac
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684   (eval "$ac_compile") 2>conftest.er1
6685   ac_status=$?
6686   grep -v '^ *+' conftest.er1 >conftest.err
6687   rm -f conftest.er1
6688   cat conftest.err >&5
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); } && {
6691          test -z "$ac_c_werror_flag" ||
6692          test ! -s conftest.err
6693        } && test -s conftest.$ac_objext; then
6694   eval "$as_ac_Header=yes"
6695 else
6696   echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699         eval "$as_ac_Header=no"
6700 fi
6701
6702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703 fi
6704 ac_res=`eval echo '${'$as_ac_Header'}'`
6705                { echo "$as_me:$LINENO: result: $ac_res" >&5
6706 echo "${ECHO_T}$ac_res" >&6; }
6707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6708   cat >>confdefs.h <<_ACEOF
6709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6710 _ACEOF
6711
6712 fi
6713
6714 done
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
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826 for ac_header in \
6827         AudioUnit/AudioUnit.h \
6828         Carbon/Carbon.h \
6829         CoreAudio/CoreAudio.h \
6830         DiskArbitration/DiskArbitration.h \
6831         IOKit/IOKitLib.h \
6832         alsa/asoundlib.h \
6833         arpa/inet.h \
6834         arpa/nameser.h \
6835         asm/types.h \
6836         capi20.h \
6837         cups/cups.h \
6838         curses.h \
6839         direct.h \
6840         dlfcn.h \
6841         elf.h \
6842         float.h \
6843         fontconfig/fontconfig.h \
6844         getopt.h \
6845         ieeefp.h \
6846         io.h \
6847         jack/jack.h \
6848         jpeglib.h \
6849         lber.h \
6850         lcms.h \
6851         lcms/lcms.h \
6852         ldap.h \
6853         libaudioio.h \
6854         link.h \
6855         linux/cdrom.h \
6856         linux/compiler.h \
6857         linux/hdreg.h \
6858         linux/input.h \
6859         linux/ioctl.h \
6860         linux/joystick.h \
6861         linux/major.h \
6862         linux/param.h \
6863         linux/serial.h \
6864         linux/ucdrom.h \
6865         mach/mach.h \
6866         mach/machine.h \
6867         machine/cpu.h \
6868         machine/limits.h \
6869         machine/soundcard.h \
6870         mntent.h \
6871         ncurses.h \
6872         netdb.h \
6873         netinet/in.h \
6874         netinet/in_systm.h \
6875         netinet/tcp.h \
6876         netinet/tcp_fsm.h \
6877         openssl/err.h \
6878         openssl/ssl.h \
6879         poll.h \
6880         process.h \
6881         pthread.h \
6882         pwd.h \
6883         regex.h \
6884         sched.h \
6885         scsi/scsi.h \
6886         scsi/scsi_ioctl.h \
6887         scsi/sg.h \
6888         soundcard.h \
6889         stdint.h \
6890         strings.h \
6891         sys/asoundlib.h \
6892         sys/cdio.h \
6893         sys/elf32.h \
6894         sys/epoll.h \
6895         sys/errno.h \
6896         sys/event.h \
6897         sys/exec_elf.h \
6898         sys/filio.h \
6899         sys/ioctl.h \
6900         sys/ipc.h \
6901         sys/limits.h \
6902         sys/link.h \
6903         sys/lwp.h \
6904         sys/mman.h \
6905         sys/modem.h \
6906         sys/msg.h \
6907         sys/mtio.h \
6908         sys/param.h \
6909         sys/poll.h \
6910         sys/prctl.h \
6911         sys/ptrace.h \
6912         sys/reg.h \
6913         sys/resource.h \
6914         sys/scsiio.h \
6915         sys/shm.h \
6916         sys/signal.h \
6917         sys/socket.h \
6918         sys/sockio.h \
6919         sys/soundcard.h \
6920         sys/statvfs.h \
6921         sys/strtio.h \
6922         sys/syscall.h \
6923         sys/sysctl.h \
6924         sys/time.h \
6925         sys/times.h \
6926         sys/uio.h \
6927         sys/un.h \
6928         sys/vm86.h \
6929         sys/wait.h \
6930         syscall.h \
6931         termios.h \
6932         unicode/ubidi.h \
6933         unistd.h \
6934         utime.h \
6935         valgrind/memcheck.h
6936
6937 do
6938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6940   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 fi
6945 ac_res=`eval echo '${'$as_ac_Header'}'`
6946                { echo "$as_me:$LINENO: result: $ac_res" >&5
6947 echo "${ECHO_T}$ac_res" >&6; }
6948 else
6949   # Is the header compilable?
6950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h.  */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h.  */
6958 $ac_includes_default
6959 #include <$ac_header>
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6963 case "(($ac_try" in
6964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965   *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968   (eval "$ac_compile") 2>conftest.er1
6969   ac_status=$?
6970   grep -v '^ *+' conftest.er1 >conftest.err
6971   rm -f conftest.er1
6972   cat conftest.err >&5
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } && {
6975          test -z "$ac_c_werror_flag" ||
6976          test ! -s conftest.err
6977        } && test -s conftest.$ac_objext; then
6978   ac_header_compiler=yes
6979 else
6980   echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983         ac_header_compiler=no
6984 fi
6985
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6988 echo "${ECHO_T}$ac_header_compiler" >&6; }
6989
6990 # Is the header present?
6991 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h.  */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h.  */
6999 #include <$ac_header>
7000 _ACEOF
7001 if { (ac_try="$ac_cpp conftest.$ac_ext"
7002 case "(($ac_try" in
7003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004   *) ac_try_echo=$ac_try;;
7005 esac
7006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7008   ac_status=$?
7009   grep -v '^ *+' conftest.er1 >conftest.err
7010   rm -f conftest.er1
7011   cat conftest.err >&5
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } >/dev/null && {
7014          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7015          test ! -s conftest.err
7016        }; then
7017   ac_header_preproc=yes
7018 else
7019   echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022   ac_header_preproc=no
7023 fi
7024
7025 rm -f conftest.err conftest.$ac_ext
7026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7027 echo "${ECHO_T}$ac_header_preproc" >&6; }
7028
7029 # So?  What about this header?
7030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7031   yes:no: )
7032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7036     ac_header_preproc=yes
7037     ;;
7038   no:yes:* )
7039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7051     ( cat <<\_ASBOX
7052 ## ------------------------------------ ##
7053 ## Report this to wine-devel@winehq.org ##
7054 ## ------------------------------------ ##
7055 _ASBOX
7056      ) | sed "s/^/$as_me: WARNING:     /" >&2
7057     ;;
7058 esac
7059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   eval "$as_ac_Header=\$ac_header_preproc"
7065 fi
7066 ac_res=`eval echo '${'$as_ac_Header'}'`
7067                { echo "$as_me:$LINENO: result: $ac_res" >&5
7068 echo "${ECHO_T}$ac_res" >&6; }
7069
7070 fi
7071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7072   cat >>confdefs.h <<_ACEOF
7073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7074 _ACEOF
7075
7076 fi
7077
7078 done
7079
7080 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7081 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7082 if test "${ac_cv_header_stat_broken+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h.  */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h.  */
7091 #include <sys/types.h>
7092 #include <sys/stat.h>
7093
7094 #if defined S_ISBLK && defined S_IFDIR
7095 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7096 #endif
7097
7098 #if defined S_ISBLK && defined S_IFCHR
7099 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7100 #endif
7101
7102 #if defined S_ISLNK && defined S_IFREG
7103 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7104 #endif
7105
7106 #if defined S_ISSOCK && defined S_IFREG
7107 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7108 #endif
7109
7110 _ACEOF
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7113 case "(($ac_try" in
7114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115   *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118   (eval "$ac_compile") 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } && {
7125          test -z "$ac_c_werror_flag" ||
7126          test ! -s conftest.err
7127        } && test -s conftest.$ac_objext; then
7128   ac_cv_header_stat_broken=no
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133         ac_cv_header_stat_broken=yes
7134 fi
7135
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 fi
7138 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7139 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7140 if test $ac_cv_header_stat_broken = yes; then
7141
7142 cat >>confdefs.h <<\_ACEOF
7143 #define STAT_MACROS_BROKEN 1
7144 _ACEOF
7145
7146 fi
7147
7148
7149
7150
7151
7152
7153
7154 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7155 do
7156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7160   echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162   cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h.  */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h.  */
7168 #include <sys/types.h>
7169      #if HAVE_SYS_PARAM_H
7170      # include <sys/param.h>
7171      #endif
7172
7173 #include <$ac_header>
7174 _ACEOF
7175 rm -f conftest.$ac_objext
7176 if { (ac_try="$ac_compile"
7177 case "(($ac_try" in
7178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179   *) ac_try_echo=$ac_try;;
7180 esac
7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182   (eval "$ac_compile") 2>conftest.er1
7183   ac_status=$?
7184   grep -v '^ *+' conftest.er1 >conftest.err
7185   rm -f conftest.er1
7186   cat conftest.err >&5
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); } && {
7189          test -z "$ac_c_werror_flag" ||
7190          test ! -s conftest.err
7191        } && test -s conftest.$ac_objext; then
7192   eval "$as_ac_Header=yes"
7193 else
7194   echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197         eval "$as_ac_Header=no"
7198 fi
7199
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 fi
7202 ac_res=`eval echo '${'$as_ac_Header'}'`
7203                { echo "$as_me:$LINENO: result: $ac_res" >&5
7204 echo "${ECHO_T}$ac_res" >&6; }
7205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7206   cat >>confdefs.h <<_ACEOF
7207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7208 _ACEOF
7209
7210 fi
7211
7212 done
7213
7214
7215
7216
7217
7218
7219
7220
7221 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
7222 do
7223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7227   echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229   cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h.  */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h.  */
7235 #include <sys/types.h>
7236      #if HAVE_SYS_SOCKET_H
7237      # include <sys/socket.h>
7238      #endif
7239
7240 #include <$ac_header>
7241 _ACEOF
7242 rm -f conftest.$ac_objext
7243 if { (ac_try="$ac_compile"
7244 case "(($ac_try" in
7245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246   *) ac_try_echo=$ac_try;;
7247 esac
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249   (eval "$ac_compile") 2>conftest.er1
7250   ac_status=$?
7251   grep -v '^ *+' conftest.er1 >conftest.err
7252   rm -f conftest.er1
7253   cat conftest.err >&5
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); } && {
7256          test -z "$ac_c_werror_flag" ||
7257          test ! -s conftest.err
7258        } && test -s conftest.$ac_objext; then
7259   eval "$as_ac_Header=yes"
7260 else
7261   echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264         eval "$as_ac_Header=no"
7265 fi
7266
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 fi
7269 ac_res=`eval echo '${'$as_ac_Header'}'`
7270                { echo "$as_me:$LINENO: result: $ac_res" >&5
7271 echo "${ECHO_T}$ac_res" >&6; }
7272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7273   cat >>confdefs.h <<_ACEOF
7274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7275 _ACEOF
7276
7277 fi
7278
7279 done
7280
7281
7282
7283 for ac_header in linux/ipx.h
7284 do
7285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7289   echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291   cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h.  */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h.  */
7297 #include <sys/types.h>
7298      #ifdef HAVE_ASM_TYPES_H
7299      # include <asm/types.h>
7300      #endif
7301      #if HAVE_SYS_SOCKET_H
7302      # include <sys/socket.h>
7303      #endif
7304
7305 #include <$ac_header>
7306 _ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (ac_try="$ac_compile"
7309 case "(($ac_try" in
7310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311   *) ac_try_echo=$ac_try;;
7312 esac
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314   (eval "$ac_compile") 2>conftest.er1
7315   ac_status=$?
7316   grep -v '^ *+' conftest.er1 >conftest.err
7317   rm -f conftest.er1
7318   cat conftest.err >&5
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } && {
7321          test -z "$ac_c_werror_flag" ||
7322          test ! -s conftest.err
7323        } && test -s conftest.$ac_objext; then
7324   eval "$as_ac_Header=yes"
7325 else
7326   echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329         eval "$as_ac_Header=no"
7330 fi
7331
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 fi
7334 ac_res=`eval echo '${'$as_ac_Header'}'`
7335                { echo "$as_me:$LINENO: result: $ac_res" >&5
7336 echo "${ECHO_T}$ac_res" >&6; }
7337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7338   cat >>confdefs.h <<_ACEOF
7339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7340 _ACEOF
7341
7342 fi
7343
7344 done
7345
7346
7347
7348 for ac_header in resolv.h
7349 do
7350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356   cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h.  */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h.  */
7362 #include <sys/types.h>
7363      #if HAVE_SYS_SOCKET_H
7364      # include <sys/socket.h>
7365      #endif
7366      #if HAVE_NETINET_IN_H
7367      # include <netinet/in.h>
7368      #endif
7369      #if HAVE_ARPA_NAMESER_H
7370      # include <arpa/nameser.h>
7371      #endif
7372
7373 #include <$ac_header>
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (ac_try="$ac_compile"
7377 case "(($ac_try" in
7378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379   *) ac_try_echo=$ac_try;;
7380 esac
7381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382   (eval "$ac_compile") 2>conftest.er1
7383   ac_status=$?
7384   grep -v '^ *+' conftest.er1 >conftest.err
7385   rm -f conftest.er1
7386   cat conftest.err >&5
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); } && {
7389          test -z "$ac_c_werror_flag" ||
7390          test ! -s conftest.err
7391        } && test -s conftest.$ac_objext; then
7392   eval "$as_ac_Header=yes"
7393 else
7394   echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397         eval "$as_ac_Header=no"
7398 fi
7399
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401 fi
7402 ac_res=`eval echo '${'$as_ac_Header'}'`
7403                { echo "$as_me:$LINENO: result: $ac_res" >&5
7404 echo "${ECHO_T}$ac_res" >&6; }
7405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7406   cat >>confdefs.h <<_ACEOF
7407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7408 _ACEOF
7409
7410 fi
7411
7412 done
7413
7414
7415
7416 for ac_header in ucontext.h
7417 do
7418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7422   echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424   cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h.  */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h.  */
7430 #include <signal.h>
7431
7432 #include <$ac_header>
7433 _ACEOF
7434 rm -f conftest.$ac_objext
7435 if { (ac_try="$ac_compile"
7436 case "(($ac_try" in
7437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438   *) ac_try_echo=$ac_try;;
7439 esac
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441   (eval "$ac_compile") 2>conftest.er1
7442   ac_status=$?
7443   grep -v '^ *+' conftest.er1 >conftest.err
7444   rm -f conftest.er1
7445   cat conftest.err >&5
7446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); } && {
7448          test -z "$ac_c_werror_flag" ||
7449          test ! -s conftest.err
7450        } && test -s conftest.$ac_objext; then
7451   eval "$as_ac_Header=yes"
7452 else
7453   echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7455
7456         eval "$as_ac_Header=no"
7457 fi
7458
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 fi
7461 ac_res=`eval echo '${'$as_ac_Header'}'`
7462                { echo "$as_me:$LINENO: result: $ac_res" >&5
7463 echo "${ECHO_T}$ac_res" >&6; }
7464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7465   cat >>confdefs.h <<_ACEOF
7466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7467 _ACEOF
7468
7469 fi
7470
7471 done
7472
7473
7474
7475 for ac_header in pthread_np.h
7476 do
7477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h.  */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h.  */
7489 #ifdef HAVE_PTHREAD_H
7490 #include <pthread.h>
7491 #endif
7492
7493 #include <$ac_header>
7494 _ACEOF
7495 rm -f conftest.$ac_objext
7496 if { (ac_try="$ac_compile"
7497 case "(($ac_try" in
7498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499   *) ac_try_echo=$ac_try;;
7500 esac
7501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502   (eval "$ac_compile") 2>conftest.er1
7503   ac_status=$?
7504   grep -v '^ *+' conftest.er1 >conftest.err
7505   rm -f conftest.er1
7506   cat conftest.err >&5
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); } && {
7509          test -z "$ac_c_werror_flag" ||
7510          test ! -s conftest.err
7511        } && test -s conftest.$ac_objext; then
7512   eval "$as_ac_Header=yes"
7513 else
7514   echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7516
7517         eval "$as_ac_Header=no"
7518 fi
7519
7520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521 fi
7522 ac_res=`eval echo '${'$as_ac_Header'}'`
7523                { echo "$as_me:$LINENO: result: $ac_res" >&5
7524 echo "${ECHO_T}$ac_res" >&6; }
7525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7526   cat >>confdefs.h <<_ACEOF
7527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7528 _ACEOF
7529
7530 fi
7531
7532 done
7533
7534
7535
7536 for ac_header in linux/videodev.h
7537 do
7538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h.  */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h.  */
7550 #ifdef HAVE_SYS_TIME_H
7551 #include <sys/time.h>
7552 #endif
7553 #include <sys/types.h>
7554 #ifdef HAVE_ASM_TYPES_H
7555 #include <asm/types.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/capi.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 #define __user
7616
7617 #include <$ac_header>
7618 _ACEOF
7619 rm -f conftest.$ac_objext
7620 if { (ac_try="$ac_compile"
7621 case "(($ac_try" in
7622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623   *) ac_try_echo=$ac_try;;
7624 esac
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626   (eval "$ac_compile") 2>conftest.er1
7627   ac_status=$?
7628   grep -v '^ *+' conftest.er1 >conftest.err
7629   rm -f conftest.er1
7630   cat conftest.err >&5
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); } && {
7633          test -z "$ac_c_werror_flag" ||
7634          test ! -s conftest.err
7635        } && test -s conftest.$ac_objext; then
7636   eval "$as_ac_Header=yes"
7637 else
7638   echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7640
7641         eval "$as_ac_Header=no"
7642 fi
7643
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 fi
7646 ac_res=`eval echo '${'$as_ac_Header'}'`
7647                { echo "$as_me:$LINENO: result: $ac_res" >&5
7648 echo "${ECHO_T}$ac_res" >&6; }
7649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7650   cat >>confdefs.h <<_ACEOF
7651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7652 _ACEOF
7653
7654 fi
7655
7656 done
7657
7658
7659
7660 if test "$have_x" = "yes"
7661 then
7662     XLIB="-lXext -lX11"
7663     ac_save_CPPFLAGS="$CPPFLAGS"
7664     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676 for ac_header in X11/Xlib.h \
7677                       X11/XKBlib.h \
7678                       X11/Xutil.h \
7679                       X11/extensions/shape.h \
7680                       X11/extensions/XInput.h \
7681                       X11/extensions/XShm.h \
7682                       X11/extensions/Xinerama.h \
7683                       X11/extensions/Xrandr.h \
7684                       X11/extensions/Xrender.h \
7685                       X11/extensions/xf86vmode.h
7686 do
7687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7691   echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693   cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699 #ifdef HAVE_X11_XLIB_H
7700 # include <X11/Xlib.h>
7701 #endif
7702 #ifdef HAVE_X11_XUTIL_H
7703 # include <X11/Xutil.h>
7704 #endif
7705
7706 #include <$ac_header>
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7710 case "(($ac_try" in
7711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712   *) ac_try_echo=$ac_try;;
7713 esac
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715   (eval "$ac_compile") 2>conftest.er1
7716   ac_status=$?
7717   grep -v '^ *+' conftest.er1 >conftest.err
7718   rm -f conftest.er1
7719   cat conftest.err >&5
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); } && {
7722          test -z "$ac_c_werror_flag" ||
7723          test ! -s conftest.err
7724        } && test -s conftest.$ac_objext; then
7725   eval "$as_ac_Header=yes"
7726 else
7727   echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7729
7730         eval "$as_ac_Header=no"
7731 fi
7732
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 fi
7735 ac_res=`eval echo '${'$as_ac_Header'}'`
7736                { echo "$as_me:$LINENO: result: $ac_res" >&5
7737 echo "${ECHO_T}$ac_res" >&6; }
7738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7739   cat >>confdefs.h <<_ACEOF
7740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7741 _ACEOF
7742
7743 fi
7744
7745 done
7746
7747
7748                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7749         then
7750               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7751 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
7752 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7753   echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755   ac_check_lib_save_LIBS=$LIBS
7756 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7757 cat >conftest.$ac_ext <<_ACEOF
7758 /* confdefs.h.  */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h.  */
7763
7764 /* Override any GCC internal prototype to avoid an error.
7765    Use char because int might match the return type of a GCC
7766    builtin and then its argument prototype would still apply.  */
7767 #ifdef __cplusplus
7768 extern "C"
7769 #endif
7770 char XkbQueryExtension ();
7771 int
7772 main ()
7773 {
7774 return XkbQueryExtension ();
7775   ;
7776   return 0;
7777 }
7778 _ACEOF
7779 rm -f conftest.$ac_objext conftest$ac_exeext
7780 if { (ac_try="$ac_link"
7781 case "(($ac_try" in
7782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783   *) ac_try_echo=$ac_try;;
7784 esac
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786   (eval "$ac_link") 2>conftest.er1
7787   ac_status=$?
7788   grep -v '^ *+' conftest.er1 >conftest.err
7789   rm -f conftest.er1
7790   cat conftest.err >&5
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); } && {
7793          test -z "$ac_c_werror_flag" ||
7794          test ! -s conftest.err
7795        } && test -s conftest$ac_exeext &&
7796        $as_test_x conftest$ac_exeext; then
7797   ac_cv_lib_X11_XkbQueryExtension=yes
7798 else
7799   echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7801
7802         ac_cv_lib_X11_XkbQueryExtension=no
7803 fi
7804
7805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7806       conftest$ac_exeext conftest.$ac_ext
7807 LIBS=$ac_check_lib_save_LIBS
7808 fi
7809 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7810 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
7811 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7812
7813 cat >>confdefs.h <<\_ACEOF
7814 #define HAVE_XKB 1
7815 _ACEOF
7816
7817 fi
7818
7819         fi
7820
7821                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7822         then
7823               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7824 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
7825 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7826   echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828   ac_check_lib_save_LIBS=$LIBS
7829 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7830 cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h.  */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h.  */
7836
7837 /* Override any GCC internal prototype to avoid an error.
7838    Use char because int might match the return type of a GCC
7839    builtin and then its argument prototype would still apply.  */
7840 #ifdef __cplusplus
7841 extern "C"
7842 #endif
7843 char XShmQueryExtension ();
7844 int
7845 main ()
7846 {
7847 return XShmQueryExtension ();
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7854 case "(($ac_try" in
7855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856   *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859   (eval "$ac_link") 2>conftest.er1
7860   ac_status=$?
7861   grep -v '^ *+' conftest.er1 >conftest.err
7862   rm -f conftest.er1
7863   cat conftest.err >&5
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); } && {
7866          test -z "$ac_c_werror_flag" ||
7867          test ! -s conftest.err
7868        } && test -s conftest$ac_exeext &&
7869        $as_test_x conftest$ac_exeext; then
7870   ac_cv_lib_Xext_XShmQueryExtension=yes
7871 else
7872   echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7874
7875         ac_cv_lib_Xext_XShmQueryExtension=no
7876 fi
7877
7878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7879       conftest$ac_exeext conftest.$ac_ext
7880 LIBS=$ac_check_lib_save_LIBS
7881 fi
7882 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7883 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
7884 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7885
7886 cat >>confdefs.h <<\_ACEOF
7887 #define HAVE_LIBXXSHM 1
7888 _ACEOF
7889
7890 fi
7891
7892         fi
7893
7894                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7895         then
7896               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7897 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
7898 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7899   echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901   ac_check_lib_save_LIBS=$LIBS
7902 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h.  */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h.  */
7909
7910 /* Override any GCC internal prototype to avoid an error.
7911    Use char because int might match the return type of a GCC
7912    builtin and then its argument prototype would still apply.  */
7913 #ifdef __cplusplus
7914 extern "C"
7915 #endif
7916 char XShapeQueryExtension ();
7917 int
7918 main ()
7919 {
7920 return XShapeQueryExtension ();
7921   ;
7922   return 0;
7923 }
7924 _ACEOF
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (ac_try="$ac_link"
7927 case "(($ac_try" in
7928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929   *) ac_try_echo=$ac_try;;
7930 esac
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932   (eval "$ac_link") 2>conftest.er1
7933   ac_status=$?
7934   grep -v '^ *+' conftest.er1 >conftest.err
7935   rm -f conftest.er1
7936   cat conftest.err >&5
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); } && {
7939          test -z "$ac_c_werror_flag" ||
7940          test ! -s conftest.err
7941        } && test -s conftest$ac_exeext &&
7942        $as_test_x conftest$ac_exeext; then
7943   ac_cv_lib_Xext_XShapeQueryExtension=yes
7944 else
7945   echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7947
7948         ac_cv_lib_Xext_XShapeQueryExtension=no
7949 fi
7950
7951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7952       conftest$ac_exeext conftest.$ac_ext
7953 LIBS=$ac_check_lib_save_LIBS
7954 fi
7955 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7956 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
7957 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7958
7959 cat >>confdefs.h <<\_ACEOF
7960 #define HAVE_LIBXSHAPE 1
7961 _ACEOF
7962
7963 fi
7964
7965         fi
7966
7967                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7968         then
7969                 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7970 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
7971 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7972   echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974   ac_check_lib_save_LIBS=$LIBS
7975 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7976 cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h.  */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h.  */
7982
7983 /* Override any GCC internal prototype to avoid an error.
7984    Use char because int might match the return type of a GCC
7985    builtin and then its argument prototype would still apply.  */
7986 #ifdef __cplusplus
7987 extern "C"
7988 #endif
7989 char XF86VidModeQueryExtension ();
7990 int
7991 main ()
7992 {
7993 return XF86VidModeQueryExtension ();
7994   ;
7995   return 0;
7996 }
7997 _ACEOF
7998 rm -f conftest.$ac_objext conftest$ac_exeext
7999 if { (ac_try="$ac_link"
8000 case "(($ac_try" in
8001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002   *) ac_try_echo=$ac_try;;
8003 esac
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005   (eval "$ac_link") 2>conftest.er1
8006   ac_status=$?
8007   grep -v '^ *+' conftest.er1 >conftest.err
8008   rm -f conftest.er1
8009   cat conftest.err >&5
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); } && {
8012          test -z "$ac_c_werror_flag" ||
8013          test ! -s conftest.err
8014        } && test -s conftest$ac_exeext &&
8015        $as_test_x conftest$ac_exeext; then
8016   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8017 else
8018   echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8022 fi
8023
8024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8025       conftest$ac_exeext conftest.$ac_ext
8026 LIBS=$ac_check_lib_save_LIBS
8027 fi
8028 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8029 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
8030 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8031
8032 cat >>confdefs.h <<\_ACEOF
8033 #define HAVE_LIBXXF86VM 1
8034 _ACEOF
8035
8036                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8037
8038 fi
8039
8040         fi
8041
8042                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8043         then
8044                 cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h.  */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h.  */
8050 #include <X11/Xlib.h>
8051 #include <X11/extensions/Xrandr.h>
8052 int
8053 main ()
8054 {
8055 static typeof(XRRSetScreenConfigAndRate) * func;
8056   ;
8057   return 0;
8058 }
8059 _ACEOF
8060 rm -f conftest.$ac_objext
8061 if { (ac_try="$ac_compile"
8062 case "(($ac_try" in
8063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064   *) ac_try_echo=$ac_try;;
8065 esac
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067   (eval "$ac_compile") 2>conftest.er1
8068   ac_status=$?
8069   grep -v '^ *+' conftest.er1 >conftest.err
8070   rm -f conftest.er1
8071   cat conftest.err >&5
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); } && {
8074          test -z "$ac_c_werror_flag" ||
8075          test ! -s conftest.err
8076        } && test -s conftest.$ac_objext; then
8077
8078 cat >>confdefs.h <<\_ACEOF
8079 #define HAVE_LIBXRANDR 1
8080 _ACEOF
8081
8082 else
8083   echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086
8087 fi
8088
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090         fi
8091
8092                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8093         then
8094               { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8095 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
8096 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099   ac_check_lib_save_LIBS=$LIBS
8100 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8101 cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107
8108 /* Override any GCC internal prototype to avoid an error.
8109    Use char because int might match the return type of a GCC
8110    builtin and then its argument prototype would still apply.  */
8111 #ifdef __cplusplus
8112 extern "C"
8113 #endif
8114 char XRenderSetPictureTransform ();
8115 int
8116 main ()
8117 {
8118 return XRenderSetPictureTransform ();
8119   ;
8120   return 0;
8121 }
8122 _ACEOF
8123 rm -f conftest.$ac_objext conftest$ac_exeext
8124 if { (ac_try="$ac_link"
8125 case "(($ac_try" in
8126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127   *) ac_try_echo=$ac_try;;
8128 esac
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130   (eval "$ac_link") 2>conftest.er1
8131   ac_status=$?
8132   grep -v '^ *+' conftest.er1 >conftest.err
8133   rm -f conftest.er1
8134   cat conftest.err >&5
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); } && {
8137          test -z "$ac_c_werror_flag" ||
8138          test ! -s conftest.err
8139        } && test -s conftest$ac_exeext &&
8140        $as_test_x conftest$ac_exeext; then
8141   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8142 else
8143   echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8147 fi
8148
8149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8150       conftest$ac_exeext conftest.$ac_ext
8151 LIBS=$ac_check_lib_save_LIBS
8152 fi
8153 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8154 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8155 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8156
8157 cat >>confdefs.h <<\_ACEOF
8158 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8159 _ACEOF
8160
8161 fi
8162
8163         fi
8164
8165                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8166         then
8167                 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173 #include <X11/Xlib.h>
8174 #include <X11/extensions/Xinerama.h>
8175 int
8176 main ()
8177 {
8178 static typeof(XineramaQueryScreens) * func;
8179   ;
8180   return 0;
8181 }
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8185 case "(($ac_try" in
8186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187   *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190   (eval "$ac_compile") 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } && {
8197          test -z "$ac_c_werror_flag" ||
8198          test ! -s conftest.err
8199        } && test -s conftest.$ac_objext; then
8200
8201 cat >>confdefs.h <<\_ACEOF
8202 #define HAVE_LIBXINERAMA 1
8203 _ACEOF
8204
8205 else
8206   echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209
8210 fi
8211
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213         fi
8214
8215
8216         if test "x$with_opengl" != "xno"
8217     then
8218
8219
8220
8221
8222 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
8223 do
8224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h.  */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h.  */
8236 #ifdef HAVE_GL_GLX_H
8237 # include <GL/glx.h>
8238 #endif
8239
8240 #include <$ac_header>
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8244 case "(($ac_try" in
8245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246   *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249   (eval "$ac_compile") 2>conftest.er1
8250   ac_status=$?
8251   grep -v '^ *+' conftest.er1 >conftest.err
8252   rm -f conftest.er1
8253   cat conftest.err >&5
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } && {
8256          test -z "$ac_c_werror_flag" ||
8257          test ! -s conftest.err
8258        } && test -s conftest.$ac_objext; then
8259   eval "$as_ac_Header=yes"
8260 else
8261   echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264         eval "$as_ac_Header=no"
8265 fi
8266
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 fi
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270                { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273   cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275 _ACEOF
8276
8277 fi
8278
8279 done
8280
8281         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8282         then
8283                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8284 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
8285 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288   cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h.  */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h.  */
8294 #include <GL/gl.h>
8295 int
8296 main ()
8297 {
8298 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8299   ;
8300   return 0;
8301 }
8302 _ACEOF
8303 rm -f conftest.$ac_objext
8304 if { (ac_try="$ac_compile"
8305 case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310   (eval "$ac_compile") 2>conftest.er1
8311   ac_status=$?
8312   grep -v '^ *+' conftest.er1 >conftest.err
8313   rm -f conftest.er1
8314   cat conftest.err >&5
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); } && {
8317          test -z "$ac_c_werror_flag" ||
8318          test ! -s conftest.err
8319        } && test -s conftest.$ac_objext; then
8320   wine_cv_opengl_header_version_OK="yes"
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325         wine_cv_opengl_header_version_OK="no"
8326
8327 fi
8328
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330
8331 fi
8332 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
8333 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
8334
8335             if test "$wine_cv_opengl_header_version_OK" = "yes"
8336             then
8337                                 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8338 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
8339 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   ac_check_lib_save_LIBS=$LIBS
8343 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350
8351 /* Override any GCC internal prototype to avoid an error.
8352    Use char because int might match the return type of a GCC
8353    builtin and then its argument prototype would still apply.  */
8354 #ifdef __cplusplus
8355 extern "C"
8356 #endif
8357 char glXCreateContext ();
8358 int
8359 main ()
8360 {
8361 return glXCreateContext ();
8362   ;
8363   return 0;
8364 }
8365 _ACEOF
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (ac_try="$ac_link"
8368 case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373   (eval "$ac_link") 2>conftest.er1
8374   ac_status=$?
8375   grep -v '^ *+' conftest.er1 >conftest.err
8376   rm -f conftest.er1
8377   cat conftest.err >&5
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } && {
8380          test -z "$ac_c_werror_flag" ||
8381          test ! -s conftest.err
8382        } && test -s conftest$ac_exeext &&
8383        $as_test_x conftest$ac_exeext; then
8384   ac_cv_lib_GL_glXCreateContext=yes
8385 else
8386   echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8388
8389         ac_cv_lib_GL_glXCreateContext=no
8390 fi
8391
8392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8393       conftest$ac_exeext conftest.$ac_ext
8394 LIBS=$ac_check_lib_save_LIBS
8395 fi
8396 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8397 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
8398 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8399   OPENGL_LIBS="-lGL"
8400                              OPENGLFILES='$(OPENGLFILES)'
8401
8402 cat >>confdefs.h <<\_ACEOF
8403 #define HAVE_OPENGL 1
8404 _ACEOF
8405
8406
8407 fi
8408
8409
8410                                 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8411 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
8412 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   ac_check_lib_save_LIBS=$LIBS
8416 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8417                  $LIBS"
8418 cat >conftest.$ac_ext <<_ACEOF
8419 /* confdefs.h.  */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h.  */
8424
8425 /* Override any GCC internal prototype to avoid an error.
8426    Use char because int might match the return type of a GCC
8427    builtin and then its argument prototype would still apply.  */
8428 #ifdef __cplusplus
8429 extern "C"
8430 #endif
8431 char gluLookAt ();
8432 int
8433 main ()
8434 {
8435 return gluLookAt ();
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8442 case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_link") 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } && {
8454          test -z "$ac_c_werror_flag" ||
8455          test ! -s conftest.err
8456        } && test -s conftest$ac_exeext &&
8457        $as_test_x conftest$ac_exeext; then
8458   ac_cv_lib_GLU_gluLookAt=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463         ac_cv_lib_GLU_gluLookAt=no
8464 fi
8465
8466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8467       conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8469 fi
8470 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8471 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
8472 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8473   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8474                              GLU32FILES='$(GLU32FILES)'
8475
8476 fi
8477
8478              fi
8479          else
8480              wine_cv_opengl_headers_found="no"
8481          fi
8482     fi
8483         NASLIBS=""
8484
8485
8486 for ac_header in audio/audiolib.h
8487 do
8488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8490   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 fi
8495 ac_res=`eval echo '${'$as_ac_Header'}'`
8496                { echo "$as_me:$LINENO: result: $ac_res" >&5
8497 echo "${ECHO_T}$ac_res" >&6; }
8498 else
8499   # Is the header compilable?
8500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h.  */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h.  */
8508 $ac_includes_default
8509 #include <$ac_header>
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8513 case "(($ac_try" in
8514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515   *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518   (eval "$ac_compile") 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } && {
8525          test -z "$ac_c_werror_flag" ||
8526          test ! -s conftest.err
8527        } && test -s conftest.$ac_objext; then
8528   ac_header_compiler=yes
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533         ac_header_compiler=no
8534 fi
8535
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8538 echo "${ECHO_T}$ac_header_compiler" >&6; }
8539
8540 # Is the header present?
8541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8543 cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h.  */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h.  */
8549 #include <$ac_header>
8550 _ACEOF
8551 if { (ac_try="$ac_cpp conftest.$ac_ext"
8552 case "(($ac_try" in
8553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554   *) ac_try_echo=$ac_try;;
8555 esac
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8558   ac_status=$?
8559   grep -v '^ *+' conftest.er1 >conftest.err
8560   rm -f conftest.er1
8561   cat conftest.err >&5
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); } >/dev/null && {
8564          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8565          test ! -s conftest.err
8566        }; then
8567   ac_header_preproc=yes
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572   ac_header_preproc=no
8573 fi
8574
8575 rm -f conftest.err conftest.$ac_ext
8576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8577 echo "${ECHO_T}$ac_header_preproc" >&6; }
8578
8579 # So?  What about this header?
8580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8581   yes:no: )
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8586     ac_header_preproc=yes
8587     ;;
8588   no:yes:* )
8589     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8591     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8592 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8593     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8595     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8596 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8599     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8601     ( cat <<\_ASBOX
8602 ## ------------------------------------ ##
8603 ## Report this to wine-devel@winehq.org ##
8604 ## ------------------------------------ ##
8605 _ASBOX
8606      ) | sed "s/^/$as_me: WARNING:     /" >&2
8607     ;;
8608 esac
8609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8612   echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614   eval "$as_ac_Header=\$ac_header_preproc"
8615 fi
8616 ac_res=`eval echo '${'$as_ac_Header'}'`
8617                { echo "$as_me:$LINENO: result: $ac_res" >&5
8618 echo "${ECHO_T}$ac_res" >&6; }
8619
8620 fi
8621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8622   cat >>confdefs.h <<_ACEOF
8623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8624 _ACEOF
8625
8626 for ac_header in audio/soundlib.h
8627 do
8628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634   cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640 #include <audio/audiolib.h>
8641
8642 #include <$ac_header>
8643 _ACEOF
8644 rm -f conftest.$ac_objext
8645 if { (ac_try="$ac_compile"
8646 case "(($ac_try" in
8647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648   *) ac_try_echo=$ac_try;;
8649 esac
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651   (eval "$ac_compile") 2>conftest.er1
8652   ac_status=$?
8653   grep -v '^ *+' conftest.er1 >conftest.err
8654   rm -f conftest.er1
8655   cat conftest.err >&5
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); } && {
8658          test -z "$ac_c_werror_flag" ||
8659          test ! -s conftest.err
8660        } && test -s conftest.$ac_objext; then
8661   eval "$as_ac_Header=yes"
8662 else
8663   echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666         eval "$as_ac_Header=no"
8667 fi
8668
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 fi
8671 ac_res=`eval echo '${'$as_ac_Header'}'`
8672                { echo "$as_me:$LINENO: result: $ac_res" >&5
8673 echo "${ECHO_T}$ac_res" >&6; }
8674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8675   cat >>confdefs.h <<_ACEOF
8676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8677 _ACEOF
8678
8679 fi
8680
8681 done
8682
8683           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8684 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
8685 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688   ac_check_lib_save_LIBS=$LIBS
8689 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696
8697 /* Override any GCC internal prototype to avoid an error.
8698    Use char because int might match the return type of a GCC
8699    builtin and then its argument prototype would still apply.  */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 char AuCreateFlow ();
8704 int
8705 main ()
8706 {
8707 return AuCreateFlow ();
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (ac_try="$ac_link"
8714 case "(($ac_try" in
8715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716   *) ac_try_echo=$ac_try;;
8717 esac
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719   (eval "$ac_link") 2>conftest.er1
8720   ac_status=$?
8721   grep -v '^ *+' conftest.er1 >conftest.err
8722   rm -f conftest.er1
8723   cat conftest.err >&5
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); } && {
8726          test -z "$ac_c_werror_flag" ||
8727          test ! -s conftest.err
8728        } && test -s conftest$ac_exeext &&
8729        $as_test_x conftest$ac_exeext; then
8730   ac_cv_lib_audio_AuCreateFlow=yes
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735         ac_cv_lib_audio_AuCreateFlow=no
8736 fi
8737
8738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8739       conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_check_lib_save_LIBS
8741 fi
8742 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8743 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
8744 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8745
8746 cat >>confdefs.h <<\_ACEOF
8747 #define HAVE_NAS 1
8748 _ACEOF
8749
8750                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8751 fi
8752
8753 fi
8754
8755 done
8756
8757
8758     CPPFLAGS="$ac_save_CPPFLAGS"
8759     XFILES='$(XFILES)'
8760 else
8761     XLIB=""
8762     X_CFLAGS=""
8763     X_LIBS=""
8764 fi
8765
8766
8767 XML2LIBS=""
8768
8769 XML2INCL=""
8770
8771 XSLTLIBS=""
8772
8773 XSLTINCL=""
8774
8775 if test "$PKG_CONFIG" != "false"
8776 then
8777     ac_save_CPPFLAGS="$CPPFLAGS"
8778     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8779     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8780     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8781
8782 for ac_header in libxml/parser.h
8783 do
8784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8786   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8789   echo $ECHO_N "(cached) $ECHO_C" >&6
8790 fi
8791 ac_res=`eval echo '${'$as_ac_Header'}'`
8792                { echo "$as_me:$LINENO: result: $ac_res" >&5
8793 echo "${ECHO_T}$ac_res" >&6; }
8794 else
8795   # Is the header compilable?
8796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8798 cat >conftest.$ac_ext <<_ACEOF
8799 /* confdefs.h.  */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h.  */
8804 $ac_includes_default
8805 #include <$ac_header>
8806 _ACEOF
8807 rm -f conftest.$ac_objext
8808 if { (ac_try="$ac_compile"
8809 case "(($ac_try" in
8810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811   *) ac_try_echo=$ac_try;;
8812 esac
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814   (eval "$ac_compile") 2>conftest.er1
8815   ac_status=$?
8816   grep -v '^ *+' conftest.er1 >conftest.err
8817   rm -f conftest.er1
8818   cat conftest.err >&5
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } && {
8821          test -z "$ac_c_werror_flag" ||
8822          test ! -s conftest.err
8823        } && test -s conftest.$ac_objext; then
8824   ac_header_compiler=yes
8825 else
8826   echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8828
8829         ac_header_compiler=no
8830 fi
8831
8832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8834 echo "${ECHO_T}$ac_header_compiler" >&6; }
8835
8836 # Is the header present?
8837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8839 cat >conftest.$ac_ext <<_ACEOF
8840 /* confdefs.h.  */
8841 _ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h.  */
8845 #include <$ac_header>
8846 _ACEOF
8847 if { (ac_try="$ac_cpp conftest.$ac_ext"
8848 case "(($ac_try" in
8849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850   *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8854   ac_status=$?
8855   grep -v '^ *+' conftest.er1 >conftest.err
8856   rm -f conftest.er1
8857   cat conftest.err >&5
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); } >/dev/null && {
8860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8861          test ! -s conftest.err
8862        }; then
8863   ac_header_preproc=yes
8864 else
8865   echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868   ac_header_preproc=no
8869 fi
8870
8871 rm -f conftest.err conftest.$ac_ext
8872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8873 echo "${ECHO_T}$ac_header_preproc" >&6; }
8874
8875 # So?  What about this header?
8876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8877   yes:no: )
8878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8882     ac_header_preproc=yes
8883     ;;
8884   no:yes:* )
8885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8897     ( cat <<\_ASBOX
8898 ## ------------------------------------ ##
8899 ## Report this to wine-devel@winehq.org ##
8900 ## ------------------------------------ ##
8901 _ASBOX
8902      ) | sed "s/^/$as_me: WARNING:     /" >&2
8903     ;;
8904 esac
8905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8908   echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910   eval "$as_ac_Header=\$ac_header_preproc"
8911 fi
8912 ac_res=`eval echo '${'$as_ac_Header'}'`
8913                { echo "$as_me:$LINENO: result: $ac_res" >&5
8914 echo "${ECHO_T}$ac_res" >&6; }
8915
8916 fi
8917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8918   cat >>confdefs.h <<_ACEOF
8919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8920 _ACEOF
8921  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
8922 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
8923 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
8924   echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926   ac_check_lib_save_LIBS=$LIBS
8927 LIBS="-lxml2 $ac_xml_libs $LIBS"
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h.  */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h.  */
8934
8935 /* Override any GCC internal prototype to avoid an error.
8936    Use char because int might match the return type of a GCC
8937    builtin and then its argument prototype would still apply.  */
8938 #ifdef __cplusplus
8939 extern "C"
8940 #endif
8941 char xmlParseMemory ();
8942 int
8943 main ()
8944 {
8945 return xmlParseMemory ();
8946   ;
8947   return 0;
8948 }
8949 _ACEOF
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (ac_try="$ac_link"
8952 case "(($ac_try" in
8953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954   *) ac_try_echo=$ac_try;;
8955 esac
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957   (eval "$ac_link") 2>conftest.er1
8958   ac_status=$?
8959   grep -v '^ *+' conftest.er1 >conftest.err
8960   rm -f conftest.er1
8961   cat conftest.err >&5
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); } && {
8964          test -z "$ac_c_werror_flag" ||
8965          test ! -s conftest.err
8966        } && test -s conftest$ac_exeext &&
8967        $as_test_x conftest$ac_exeext; then
8968   ac_cv_lib_xml2_xmlParseMemory=yes
8969 else
8970   echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8972
8973         ac_cv_lib_xml2_xmlParseMemory=no
8974 fi
8975
8976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8977       conftest$ac_exeext conftest.$ac_ext
8978 LIBS=$ac_check_lib_save_LIBS
8979 fi
8980 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
8981 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
8982 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
8983
8984 cat >>confdefs.h <<\_ACEOF
8985 #define HAVE_LIBXML2 1
8986 _ACEOF
8987
8988              XML2LIBS="$ac_xml_libs"
8989              XML2INCL="$ac_xml_cflags"
8990 fi
8991
8992          { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
8993 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
8994 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
8995   echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997   ac_check_lib_save_LIBS=$LIBS
8998 LIBS="-lxml2 $ac_xml_libs $LIBS"
8999 cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h.  */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h.  */
9005
9006 /* Override any GCC internal prototype to avoid an error.
9007    Use char because int might match the return type of a GCC
9008    builtin and then its argument prototype would still apply.  */
9009 #ifdef __cplusplus
9010 extern "C"
9011 #endif
9012 char xmlReadMemory ();
9013 int
9014 main ()
9015 {
9016 return xmlReadMemory ();
9017   ;
9018   return 0;
9019 }
9020 _ACEOF
9021 rm -f conftest.$ac_objext conftest$ac_exeext
9022 if { (ac_try="$ac_link"
9023 case "(($ac_try" in
9024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025   *) ac_try_echo=$ac_try;;
9026 esac
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028   (eval "$ac_link") 2>conftest.er1
9029   ac_status=$?
9030   grep -v '^ *+' conftest.er1 >conftest.err
9031   rm -f conftest.er1
9032   cat conftest.err >&5
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } && {
9035          test -z "$ac_c_werror_flag" ||
9036          test ! -s conftest.err
9037        } && test -s conftest$ac_exeext &&
9038        $as_test_x conftest$ac_exeext; then
9039   ac_cv_lib_xml2_xmlReadMemory=yes
9040 else
9041   echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044         ac_cv_lib_xml2_xmlReadMemory=no
9045 fi
9046
9047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9048       conftest$ac_exeext conftest.$ac_ext
9049 LIBS=$ac_check_lib_save_LIBS
9050 fi
9051 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9052 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9053 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
9054
9055 cat >>confdefs.h <<\_ACEOF
9056 #define HAVE_XMLREADMEMORY 1
9057 _ACEOF
9058
9059 fi
9060
9061          { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
9062 echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
9063 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
9064   echo $ECHO_N "(cached) $ECHO_C" >&6
9065 else
9066   ac_check_lib_save_LIBS=$LIBS
9067 LIBS="-lxml2 $ac_xml_libs $LIBS"
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h.  */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h.  */
9074
9075 /* Override any GCC internal prototype to avoid an error.
9076    Use char because int might match the return type of a GCC
9077    builtin and then its argument prototype would still apply.  */
9078 #ifdef __cplusplus
9079 extern "C"
9080 #endif
9081 char xmlNewDocPI ();
9082 int
9083 main ()
9084 {
9085 return xmlNewDocPI ();
9086   ;
9087   return 0;
9088 }
9089 _ACEOF
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (ac_try="$ac_link"
9092 case "(($ac_try" in
9093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094   *) ac_try_echo=$ac_try;;
9095 esac
9096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9097   (eval "$ac_link") 2>conftest.er1
9098   ac_status=$?
9099   grep -v '^ *+' conftest.er1 >conftest.err
9100   rm -f conftest.er1
9101   cat conftest.err >&5
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); } && {
9104          test -z "$ac_c_werror_flag" ||
9105          test ! -s conftest.err
9106        } && test -s conftest$ac_exeext &&
9107        $as_test_x conftest$ac_exeext; then
9108   ac_cv_lib_xml2_xmlNewDocPI=yes
9109 else
9110   echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9112
9113         ac_cv_lib_xml2_xmlNewDocPI=no
9114 fi
9115
9116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9117       conftest$ac_exeext conftest.$ac_ext
9118 LIBS=$ac_check_lib_save_LIBS
9119 fi
9120 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9121 echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9122 if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
9123
9124 cat >>confdefs.h <<\_ACEOF
9125 #define HAVE_XMLNEWDOCPI 1
9126 _ACEOF
9127
9128 fi
9129
9130
9131 fi
9132
9133 done
9134
9135     CPPFLAGS="$ac_save_CPPFLAGS"
9136     ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9137     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9138     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9139
9140
9141 for ac_header in libxslt/pattern.h libxslt/transform.h
9142 do
9143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9147   echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149   cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h.  */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h.  */
9155 #ifdef HAVE_LIBXSLT_PATTERN_H
9156 # include <libxslt/pattern.h>
9157 #endif
9158
9159 #include <$ac_header>
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9163 case "(($ac_try" in
9164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165   *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168   (eval "$ac_compile") 2>conftest.er1
9169   ac_status=$?
9170   grep -v '^ *+' conftest.er1 >conftest.err
9171   rm -f conftest.er1
9172   cat conftest.err >&5
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); } && {
9175          test -z "$ac_c_werror_flag" ||
9176          test ! -s conftest.err
9177        } && test -s conftest.$ac_objext; then
9178   eval "$as_ac_Header=yes"
9179 else
9180   echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183         eval "$as_ac_Header=no"
9184 fi
9185
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 fi
9188 ac_res=`eval echo '${'$as_ac_Header'}'`
9189                { echo "$as_me:$LINENO: result: $ac_res" >&5
9190 echo "${ECHO_T}$ac_res" >&6; }
9191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9192   cat >>confdefs.h <<_ACEOF
9193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9194 _ACEOF
9195  { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
9196 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
9197 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
9198   echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200   ac_check_lib_save_LIBS=$LIBS
9201 LIBS="-lxslt $ac_xslt_libs $LIBS"
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208
9209 /* Override any GCC internal prototype to avoid an error.
9210    Use char because int might match the return type of a GCC
9211    builtin and then its argument prototype would still apply.  */
9212 #ifdef __cplusplus
9213 extern "C"
9214 #endif
9215 char xsltCompilePattern ();
9216 int
9217 main ()
9218 {
9219 return xsltCompilePattern ();
9220   ;
9221   return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (ac_try="$ac_link"
9226 case "(($ac_try" in
9227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228   *) ac_try_echo=$ac_try;;
9229 esac
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231   (eval "$ac_link") 2>conftest.er1
9232   ac_status=$?
9233   grep -v '^ *+' conftest.er1 >conftest.err
9234   rm -f conftest.er1
9235   cat conftest.err >&5
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); } && {
9238          test -z "$ac_c_werror_flag" ||
9239          test ! -s conftest.err
9240        } && test -s conftest$ac_exeext &&
9241        $as_test_x conftest$ac_exeext; then
9242   ac_cv_lib_xslt_xsltCompilePattern=yes
9243 else
9244   echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247         ac_cv_lib_xslt_xsltCompilePattern=no
9248 fi
9249
9250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9251       conftest$ac_exeext conftest.$ac_ext
9252 LIBS=$ac_check_lib_save_LIBS
9253 fi
9254 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
9255 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
9256 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
9257
9258 cat >>confdefs.h <<\_ACEOF
9259 #define HAVE_LIBXSLT 1
9260 _ACEOF
9261
9262              XSLTLIBS="$ac_xslt_libs"
9263              XSLTINCL="$ac_xslt_cflags"
9264 fi
9265
9266
9267 fi
9268
9269 done
9270
9271     CPPFLAGS="$ac_save_CPPFLAGS"
9272 fi
9273
9274 HALINCL=""
9275
9276 if test "$PKG_CONFIG" != "false"
9277 then
9278     ac_save_CPPFLAGS="$CPPFLAGS"
9279     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9280     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9281     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9282
9283
9284 for ac_header in dbus/dbus.h hal/libhal.h
9285 do
9286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9288   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 fi
9293 ac_res=`eval echo '${'$as_ac_Header'}'`
9294                { echo "$as_me:$LINENO: result: $ac_res" >&5
9295 echo "${ECHO_T}$ac_res" >&6; }
9296 else
9297   # Is the header compilable?
9298 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9300 cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h.  */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h.  */
9306 $ac_includes_default
9307 #include <$ac_header>
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (ac_try="$ac_compile"
9311 case "(($ac_try" in
9312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313   *) ac_try_echo=$ac_try;;
9314 esac
9315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316   (eval "$ac_compile") 2>conftest.er1
9317   ac_status=$?
9318   grep -v '^ *+' conftest.er1 >conftest.err
9319   rm -f conftest.er1
9320   cat conftest.err >&5
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); } && {
9323          test -z "$ac_c_werror_flag" ||
9324          test ! -s conftest.err
9325        } && test -s conftest.$ac_objext; then
9326   ac_header_compiler=yes
9327 else
9328   echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9330
9331         ac_header_compiler=no
9332 fi
9333
9334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9336 echo "${ECHO_T}$ac_header_compiler" >&6; }
9337
9338 # Is the header present?
9339 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347 #include <$ac_header>
9348 _ACEOF
9349 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
9362          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9363          test ! -s conftest.err
9364        }; then
9365   ac_header_preproc=yes
9366 else
9367   echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9369
9370   ac_header_preproc=no
9371 fi
9372
9373 rm -f conftest.err conftest.$ac_ext
9374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9375 echo "${ECHO_T}$ac_header_preproc" >&6; }
9376
9377 # So?  What about this header?
9378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9379   yes:no: )
9380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9384     ac_header_preproc=yes
9385     ;;
9386   no:yes:* )
9387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9399     ( cat <<\_ASBOX
9400 ## ------------------------------------ ##
9401 ## Report this to wine-devel@winehq.org ##
9402 ## ------------------------------------ ##
9403 _ASBOX
9404      ) | sed "s/^/$as_me: WARNING:     /" >&2
9405     ;;
9406 esac
9407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   eval "$as_ac_Header=\$ac_header_preproc"
9413 fi
9414 ac_res=`eval echo '${'$as_ac_Header'}'`
9415                { echo "$as_me:$LINENO: result: $ac_res" >&5
9416 echo "${ECHO_T}$ac_res" >&6; }
9417
9418 fi
9419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9420   cat >>confdefs.h <<_ACEOF
9421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9422 _ACEOF
9423
9424 fi
9425
9426 done
9427
9428     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9429     then
9430         { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
9431 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
9432 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
9433   echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435   ac_check_lib_save_LIBS=$LIBS
9436 LIBS="-lhal  $LIBS"
9437 cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h.  */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h.  */
9443
9444 /* Override any GCC internal prototype to avoid an error.
9445    Use char because int might match the return type of a GCC
9446    builtin and then its argument prototype would still apply.  */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 char libhal_ctx_new ();
9451 int
9452 main ()
9453 {
9454 return libhal_ctx_new ();
9455   ;
9456   return 0;
9457 }
9458 _ACEOF
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (ac_try="$ac_link"
9461 case "(($ac_try" in
9462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463   *) ac_try_echo=$ac_try;;
9464 esac
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466   (eval "$ac_link") 2>conftest.er1
9467   ac_status=$?
9468   grep -v '^ *+' conftest.er1 >conftest.err
9469   rm -f conftest.er1
9470   cat conftest.err >&5
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); } && {
9473          test -z "$ac_c_werror_flag" ||
9474          test ! -s conftest.err
9475        } && test -s conftest$ac_exeext &&
9476        $as_test_x conftest$ac_exeext; then
9477   ac_cv_lib_hal_libhal_ctx_new=yes
9478 else
9479   echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482         ac_cv_lib_hal_libhal_ctx_new=no
9483 fi
9484
9485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9486       conftest$ac_exeext conftest.$ac_ext
9487 LIBS=$ac_check_lib_save_LIBS
9488 fi
9489 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
9490 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
9491 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
9492   { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
9493 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
9494 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
9495   echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497   ac_check_lib_save_LIBS=$LIBS
9498 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9499 cat >conftest.$ac_ext <<_ACEOF
9500 /* confdefs.h.  */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h.  */
9505
9506 /* Override any GCC internal prototype to avoid an error.
9507    Use char because int might match the return type of a GCC
9508    builtin and then its argument prototype would still apply.  */
9509 #ifdef __cplusplus
9510 extern "C"
9511 #endif
9512 char dbus_connection_close ();
9513 int
9514 main ()
9515 {
9516 return dbus_connection_close ();
9517   ;
9518   return 0;
9519 }
9520 _ACEOF
9521 rm -f conftest.$ac_objext conftest$ac_exeext
9522 if { (ac_try="$ac_link"
9523 case "(($ac_try" in
9524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525   *) ac_try_echo=$ac_try;;
9526 esac
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528   (eval "$ac_link") 2>conftest.er1
9529   ac_status=$?
9530   grep -v '^ *+' conftest.er1 >conftest.err
9531   rm -f conftest.er1
9532   cat conftest.err >&5
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); } && {
9535          test -z "$ac_c_werror_flag" ||
9536          test ! -s conftest.err
9537        } && test -s conftest$ac_exeext &&
9538        $as_test_x conftest$ac_exeext; then
9539   ac_cv_lib_dbus_1_dbus_connection_close=yes
9540 else
9541   echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9543
9544         ac_cv_lib_dbus_1_dbus_connection_close=no
9545 fi
9546
9547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9548       conftest$ac_exeext conftest.$ac_ext
9549 LIBS=$ac_check_lib_save_LIBS
9550 fi
9551 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9552 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9553 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
9554
9555 cat >>confdefs.h <<\_ACEOF
9556 #define HAVE_LIBHAL 1
9557 _ACEOF
9558
9559              HALINCL="$ac_hal_cflags"
9560 fi
9561
9562 fi
9563
9564     fi
9565     CPPFLAGS="$ac_save_CPPFLAGS"
9566 fi
9567
9568 CURSESLIBS=""
9569 if test "$ac_cv_header_ncurses_h" = "yes"
9570 then
9571     { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9572 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
9573 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9574   echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576   ac_check_lib_save_LIBS=$LIBS
9577 LIBS="-lncurses  $LIBS"
9578 cat >conftest.$ac_ext <<_ACEOF
9579 /* confdefs.h.  */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h.  */
9584
9585 /* Override any GCC internal prototype to avoid an error.
9586    Use char because int might match the return type of a GCC
9587    builtin and then its argument prototype would still apply.  */
9588 #ifdef __cplusplus
9589 extern "C"
9590 #endif
9591 char waddch ();
9592 int
9593 main ()
9594 {
9595 return waddch ();
9596   ;
9597   return 0;
9598 }
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9602 case "(($ac_try" in
9603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604   *) ac_try_echo=$ac_try;;
9605 esac
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607   (eval "$ac_link") 2>conftest.er1
9608   ac_status=$?
9609   grep -v '^ *+' conftest.er1 >conftest.err
9610   rm -f conftest.er1
9611   cat conftest.err >&5
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); } && {
9614          test -z "$ac_c_werror_flag" ||
9615          test ! -s conftest.err
9616        } && test -s conftest$ac_exeext &&
9617        $as_test_x conftest$ac_exeext; then
9618   ac_cv_lib_ncurses_waddch=yes
9619 else
9620   echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623         ac_cv_lib_ncurses_waddch=no
9624 fi
9625
9626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9627       conftest$ac_exeext conftest.$ac_ext
9628 LIBS=$ac_check_lib_save_LIBS
9629 fi
9630 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9631 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
9632 if test $ac_cv_lib_ncurses_waddch = yes; then
9633   CURSESLIBS="-lncurses"
9634 fi
9635
9636 elif test "$ac_cv_header_curses_h" = "yes"
9637 then
9638     { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9639 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
9640 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9641   echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643   ac_check_lib_save_LIBS=$LIBS
9644 LIBS="-lcurses  $LIBS"
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h.  */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h.  */
9651
9652 /* Override any GCC internal prototype to avoid an error.
9653    Use char because int might match the return type of a GCC
9654    builtin and then its argument prototype would still apply.  */
9655 #ifdef __cplusplus
9656 extern "C"
9657 #endif
9658 char waddch ();
9659 int
9660 main ()
9661 {
9662 return waddch ();
9663   ;
9664   return 0;
9665 }
9666 _ACEOF
9667 rm -f conftest.$ac_objext conftest$ac_exeext
9668 if { (ac_try="$ac_link"
9669 case "(($ac_try" in
9670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671   *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674   (eval "$ac_link") 2>conftest.er1
9675   ac_status=$?
9676   grep -v '^ *+' conftest.er1 >conftest.err
9677   rm -f conftest.er1
9678   cat conftest.err >&5
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); } && {
9681          test -z "$ac_c_werror_flag" ||
9682          test ! -s conftest.err
9683        } && test -s conftest$ac_exeext &&
9684        $as_test_x conftest$ac_exeext; then
9685   ac_cv_lib_curses_waddch=yes
9686 else
9687   echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9689
9690         ac_cv_lib_curses_waddch=no
9691 fi
9692
9693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9694       conftest$ac_exeext conftest.$ac_ext
9695 LIBS=$ac_check_lib_save_LIBS
9696 fi
9697 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9698 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
9699 if test $ac_cv_lib_curses_waddch = yes; then
9700   CURSESLIBS="-lcurses"
9701 fi
9702
9703 fi
9704 ac_save_LIBS="$LIBS"
9705 LIBS="$LIBS $CURSESLIBS"
9706
9707 for ac_func in mousemask
9708 do
9709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h.  */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h.  */
9721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9723 #define $ac_func innocuous_$ac_func
9724
9725 /* System header to define __stub macros and hopefully few prototypes,
9726     which can conflict with char $ac_func (); below.
9727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728     <limits.h> exists even on freestanding compilers.  */
9729
9730 #ifdef __STDC__
9731 # include <limits.h>
9732 #else
9733 # include <assert.h>
9734 #endif
9735
9736 #undef $ac_func
9737
9738 /* Override any GCC internal prototype to avoid an error.
9739    Use char because int might match the return type of a GCC
9740    builtin and then its argument prototype would still apply.  */
9741 #ifdef __cplusplus
9742 extern "C"
9743 #endif
9744 char $ac_func ();
9745 /* The GNU C library defines this for functions which it implements
9746     to always fail with ENOSYS.  Some functions are actually named
9747     something starting with __ and the normal name is an alias.  */
9748 #if defined __stub_$ac_func || defined __stub___$ac_func
9749 choke me
9750 #endif
9751
9752 int
9753 main ()
9754 {
9755 return $ac_func ();
9756   ;
9757   return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9762 case "(($ac_try" in
9763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764   *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767   (eval "$ac_link") 2>conftest.er1
9768   ac_status=$?
9769   grep -v '^ *+' conftest.er1 >conftest.err
9770   rm -f conftest.er1
9771   cat conftest.err >&5
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); } && {
9774          test -z "$ac_c_werror_flag" ||
9775          test ! -s conftest.err
9776        } && test -s conftest$ac_exeext &&
9777        $as_test_x conftest$ac_exeext; then
9778   eval "$as_ac_var=yes"
9779 else
9780   echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783         eval "$as_ac_var=no"
9784 fi
9785
9786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787       conftest$ac_exeext conftest.$ac_ext
9788 fi
9789 ac_res=`eval echo '${'$as_ac_var'}'`
9790                { echo "$as_me:$LINENO: result: $ac_res" >&5
9791 echo "${ECHO_T}$ac_res" >&6; }
9792 if test `eval echo '${'$as_ac_var'}'` = yes; then
9793   cat >>confdefs.h <<_ACEOF
9794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9795 _ACEOF
9796
9797 fi
9798 done
9799
9800 LIBS="$ac_save_LIBS"
9801
9802 # Extract the first word of "sane-config", so it can be a program name with args.
9803 set dummy sane-config; ac_word=$2
9804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9806 if test "${ac_cv_prog_sane_devel+set}" = set; then
9807   echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809   if test -n "$sane_devel"; then
9810   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9811 else
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in $PATH
9814 do
9815   IFS=$as_save_IFS
9816   test -z "$as_dir" && as_dir=.
9817   for ac_exec_ext in '' $ac_executable_extensions; do
9818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9819     ac_cv_prog_sane_devel="sane-config"
9820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9821     break 2
9822   fi
9823 done
9824 done
9825 IFS=$as_save_IFS
9826
9827   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9828 fi
9829 fi
9830 sane_devel=$ac_cv_prog_sane_devel
9831 if test -n "$sane_devel"; then
9832   { echo "$as_me:$LINENO: result: $sane_devel" >&5
9833 echo "${ECHO_T}$sane_devel" >&6; }
9834 else
9835   { echo "$as_me:$LINENO: result: no" >&5
9836 echo "${ECHO_T}no" >&6; }
9837 fi
9838
9839
9840 SANELIBS=""
9841
9842 SANEINCL=""
9843
9844 if test "$sane_devel" != "no"
9845 then
9846     SANELIBS="`$sane_devel --libs`"
9847     SANEINCL="`$sane_devel --cflags`"
9848     ac_save_CPPFLAGS="$CPPFLAGS"
9849     ac_save_LIBS="$LIBS"
9850     CPPFLAGS="$CPPFLAGS $SANEINCL"
9851     LIBS="$LIBS $SANELIBS"
9852     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9853   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9854 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
9855 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9856   echo $ECHO_N "(cached) $ECHO_C" >&6
9857 fi
9858 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9859 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
9860 else
9861   # Is the header compilable?
9862 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9863 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
9864 cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h.  */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h.  */
9870 $ac_includes_default
9871 #include <sane/sane.h>
9872 _ACEOF
9873 rm -f conftest.$ac_objext
9874 if { (ac_try="$ac_compile"
9875 case "(($ac_try" in
9876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877   *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880   (eval "$ac_compile") 2>conftest.er1
9881   ac_status=$?
9882   grep -v '^ *+' conftest.er1 >conftest.err
9883   rm -f conftest.er1
9884   cat conftest.err >&5
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } && {
9887          test -z "$ac_c_werror_flag" ||
9888          test ! -s conftest.err
9889        } && test -s conftest.$ac_objext; then
9890   ac_header_compiler=yes
9891 else
9892   echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9894
9895         ac_header_compiler=no
9896 fi
9897
9898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9900 echo "${ECHO_T}$ac_header_compiler" >&6; }
9901
9902 # Is the header present?
9903 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9904 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911 #include <sane/sane.h>
9912 _ACEOF
9913 if { (ac_try="$ac_cpp conftest.$ac_ext"
9914 case "(($ac_try" in
9915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916   *) ac_try_echo=$ac_try;;
9917 esac
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9920   ac_status=$?
9921   grep -v '^ *+' conftest.er1 >conftest.err
9922   rm -f conftest.er1
9923   cat conftest.err >&5
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); } >/dev/null && {
9926          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9927          test ! -s conftest.err
9928        }; then
9929   ac_header_preproc=yes
9930 else
9931   echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9933
9934   ac_header_preproc=no
9935 fi
9936
9937 rm -f conftest.err conftest.$ac_ext
9938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9939 echo "${ECHO_T}$ac_header_preproc" >&6; }
9940
9941 # So?  What about this header?
9942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9943   yes:no: )
9944     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9945 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9946     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9947 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9948     ac_header_preproc=yes
9949     ;;
9950   no:yes:* )
9951     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9952 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9953     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
9954 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
9955     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9956 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9957     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
9958 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9959     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9960 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9961     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9962 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9963     ( cat <<\_ASBOX
9964 ## ------------------------------------ ##
9965 ## Report this to wine-devel@winehq.org ##
9966 ## ------------------------------------ ##
9967 _ASBOX
9968      ) | sed "s/^/$as_me: WARNING:     /" >&2
9969     ;;
9970 esac
9971 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9972 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
9973 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   ac_cv_header_sane_sane_h=$ac_header_preproc
9977 fi
9978 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9979 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
9980
9981 fi
9982 if test $ac_cv_header_sane_sane_h = yes; then
9983   { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9984 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
9985 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   ac_check_lib_save_LIBS=$LIBS
9989 LIBS="-lsane  $LIBS"
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h.  */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h.  */
9996
9997 /* Override any GCC internal prototype to avoid an error.
9998    Use char because int might match the return type of a GCC
9999    builtin and then its argument prototype would still apply.  */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 char sane_open ();
10004 int
10005 main ()
10006 {
10007 return sane_open ();
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_link") 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } && {
10026          test -z "$ac_c_werror_flag" ||
10027          test ! -s conftest.err
10028        } && test -s conftest$ac_exeext &&
10029        $as_test_x conftest$ac_exeext; then
10030   ac_cv_lib_sane_sane_open=yes
10031 else
10032   echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035         ac_cv_lib_sane_sane_open=no
10036 fi
10037
10038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039       conftest$ac_exeext conftest.$ac_ext
10040 LIBS=$ac_check_lib_save_LIBS
10041 fi
10042 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10043 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
10044 if test $ac_cv_lib_sane_sane_open = yes; then
10045
10046 cat >>confdefs.h <<\_ACEOF
10047 #define HAVE_SANE 1
10048 _ACEOF
10049
10050 else
10051   SANELIBS=""
10052                                   SANEINCL=""
10053 fi
10054
10055 else
10056   SANELIBS=""
10057                     SANEINCL=""
10058 fi
10059
10060
10061     LIBS="$ac_save_LIBS"
10062     CPPFLAGS="$ac_save_CPPFLAGS"
10063 fi
10064
10065 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10066 set dummy gphoto2-config; ac_word=$2
10067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10069 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   if test -n "$gphoto2_devel"; then
10073   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10074 else
10075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10076 for as_dir in $PATH
10077 do
10078   IFS=$as_save_IFS
10079   test -z "$as_dir" && as_dir=.
10080   for ac_exec_ext in '' $ac_executable_extensions; do
10081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10082     ac_cv_prog_gphoto2_devel="gphoto2-config"
10083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10084     break 2
10085   fi
10086 done
10087 done
10088 IFS=$as_save_IFS
10089
10090   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10091 fi
10092 fi
10093 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10094 if test -n "$gphoto2_devel"; then
10095   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
10096 echo "${ECHO_T}$gphoto2_devel" >&6; }
10097 else
10098   { echo "$as_me:$LINENO: result: no" >&5
10099 echo "${ECHO_T}no" >&6; }
10100 fi
10101
10102
10103 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10104 set dummy gphoto2-port-config; ac_word=$2
10105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10107 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
10108   echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110   if test -n "$gphoto2port_devel"; then
10111   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10112 else
10113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10115 do
10116   IFS=$as_save_IFS
10117   test -z "$as_dir" && as_dir=.
10118   for ac_exec_ext in '' $ac_executable_extensions; do
10119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10120     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10122     break 2
10123   fi
10124 done
10125 done
10126 IFS=$as_save_IFS
10127
10128   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10129 fi
10130 fi
10131 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10132 if test -n "$gphoto2port_devel"; then
10133   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
10134 echo "${ECHO_T}$gphoto2port_devel" >&6; }
10135 else
10136   { echo "$as_me:$LINENO: result: no" >&5
10137 echo "${ECHO_T}no" >&6; }
10138 fi
10139
10140
10141 GPHOTO2LIBS=""
10142
10143 GPHOTO2INCL=""
10144
10145 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10146 then
10147     GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10148     GPHOTO2LIBS=""
10149     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10150     do
10151       case "$i" in
10152         -L/usr/lib|-L/usr/lib64) ;;
10153         -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
10154       esac
10155     done
10156     ac_save_CPPFLAGS="$CPPFLAGS"
10157     ac_save_LIBS="$LIBS"
10158     CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
10159     LIBS="$LIBS $GPHOTO2LIBS"
10160     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10161   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10162 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10163 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10164   echo $ECHO_N "(cached) $ECHO_C" >&6
10165 fi
10166 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10167 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10168 else
10169   # Is the header compilable?
10170 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
10171 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h.  */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h.  */
10178 $ac_includes_default
10179 #include <gphoto2-camera.h>
10180 _ACEOF
10181 rm -f conftest.$ac_objext
10182 if { (ac_try="$ac_compile"
10183 case "(($ac_try" in
10184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185   *) ac_try_echo=$ac_try;;
10186 esac
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188   (eval "$ac_compile") 2>conftest.er1
10189   ac_status=$?
10190   grep -v '^ *+' conftest.er1 >conftest.err
10191   rm -f conftest.er1
10192   cat conftest.err >&5
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } && {
10195          test -z "$ac_c_werror_flag" ||
10196          test ! -s conftest.err
10197        } && test -s conftest.$ac_objext; then
10198   ac_header_compiler=yes
10199 else
10200   echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203         ac_header_compiler=no
10204 fi
10205
10206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10208 echo "${ECHO_T}$ac_header_compiler" >&6; }
10209
10210 # Is the header present?
10211 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
10212 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
10213 cat >conftest.$ac_ext <<_ACEOF
10214 /* confdefs.h.  */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h.  */
10219 #include <gphoto2-camera.h>
10220 _ACEOF
10221 if { (ac_try="$ac_cpp conftest.$ac_ext"
10222 case "(($ac_try" in
10223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224   *) ac_try_echo=$ac_try;;
10225 esac
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10228   ac_status=$?
10229   grep -v '^ *+' conftest.er1 >conftest.err
10230   rm -f conftest.er1
10231   cat conftest.err >&5
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } >/dev/null && {
10234          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10235          test ! -s conftest.err
10236        }; then
10237   ac_header_preproc=yes
10238 else
10239   echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242   ac_header_preproc=no
10243 fi
10244
10245 rm -f conftest.err conftest.$ac_ext
10246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10247 echo "${ECHO_T}$ac_header_preproc" >&6; }
10248
10249 # So?  What about this header?
10250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10251   yes:no: )
10252     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
10253 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10254     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
10255 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
10256     ac_header_preproc=yes
10257     ;;
10258   no:yes:* )
10259     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
10260 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
10261     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
10262 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
10263     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
10264 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
10265     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
10266 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10267     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
10268 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
10269     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
10270 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
10271     ( cat <<\_ASBOX
10272 ## ------------------------------------ ##
10273 ## Report this to wine-devel@winehq.org ##
10274 ## ------------------------------------ ##
10275 _ASBOX
10276      ) | sed "s/^/$as_me: WARNING:     /" >&2
10277     ;;
10278 esac
10279 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10280 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10281 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10282   echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
10285 fi
10286 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10287 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10288
10289 fi
10290 if test $ac_cv_header_gphoto2_camera_h = yes; then
10291   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
10292 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
10293 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296   ac_check_lib_save_LIBS=$LIBS
10297 LIBS="-lgphoto2  $LIBS"
10298 cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h.  */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h.  */
10304
10305 /* Override any GCC internal prototype to avoid an error.
10306    Use char because int might match the return type of a GCC
10307    builtin and then its argument prototype would still apply.  */
10308 #ifdef __cplusplus
10309 extern "C"
10310 #endif
10311 char gp_camera_new ();
10312 int
10313 main ()
10314 {
10315 return gp_camera_new ();
10316   ;
10317   return 0;
10318 }
10319 _ACEOF
10320 rm -f conftest.$ac_objext conftest$ac_exeext
10321 if { (ac_try="$ac_link"
10322 case "(($ac_try" in
10323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324   *) ac_try_echo=$ac_try;;
10325 esac
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327   (eval "$ac_link") 2>conftest.er1
10328   ac_status=$?
10329   grep -v '^ *+' conftest.er1 >conftest.err
10330   rm -f conftest.er1
10331   cat conftest.err >&5
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); } && {
10334          test -z "$ac_c_werror_flag" ||
10335          test ! -s conftest.err
10336        } && test -s conftest$ac_exeext &&
10337        $as_test_x conftest$ac_exeext; then
10338   ac_cv_lib_gphoto2_gp_camera_new=yes
10339 else
10340   echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10342
10343         ac_cv_lib_gphoto2_gp_camera_new=no
10344 fi
10345
10346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347       conftest$ac_exeext conftest.$ac_ext
10348 LIBS=$ac_check_lib_save_LIBS
10349 fi
10350 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10351 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10352 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
10353
10354 cat >>confdefs.h <<\_ACEOF
10355 #define HAVE_GPHOTO2 1
10356 _ACEOF
10357
10358 else
10359   GPHOTO2LIBS=""
10360                                   GPHOTO2INCL=""
10361 fi
10362
10363 else
10364   GPHOTO2LIBS=""
10365                     GPHOTO2INCL=""
10366 fi
10367
10368
10369     LIBS="$ac_save_LIBS"
10370     CPPFLAGS="$ac_save_CPPFLAGS"
10371 fi
10372
10373 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10374 then
10375     saved_libs="$LIBS"
10376     for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
10377     do
10378         TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
10379         TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
10380         { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
10381 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
10382         LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10383         cat >conftest.$ac_ext <<_ACEOF
10384 /* confdefs.h.  */
10385 _ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h.  */
10389 #include <unicode/ubidi.h>
10390 int
10391 main ()
10392 {
10393 ubidi_open()
10394   ;
10395   return 0;
10396 }
10397 _ACEOF
10398 rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (ac_try="$ac_link"
10400 case "(($ac_try" in
10401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402   *) ac_try_echo=$ac_try;;
10403 esac
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405   (eval "$ac_link") 2>conftest.er1
10406   ac_status=$?
10407   grep -v '^ *+' conftest.er1 >conftest.err
10408   rm -f conftest.er1
10409   cat conftest.err >&5
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } && {
10412          test -z "$ac_c_werror_flag" ||
10413          test ! -s conftest.err
10414        } && test -s conftest$ac_exeext &&
10415        $as_test_x conftest$ac_exeext; then
10416
10417 cat >>confdefs.h <<\_ACEOF
10418 #define HAVE_ICU 1
10419 _ACEOF
10420
10421                      ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10422
10423                      { echo "$as_me:$LINENO: result: yes" >&5
10424 echo "${ECHO_T}yes" >&6; }
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429         { echo "$as_me:$LINENO: result: no" >&5
10430 echo "${ECHO_T}no" >&6; }
10431 fi
10432
10433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10434       conftest$ac_exeext conftest.$ac_ext
10435     done
10436     LIBS="$saved_libs"
10437 fi
10438
10439 RESOLVLIBS=""
10440
10441 if test "$ac_cv_header_resolv_h" = "yes"
10442 then
10443     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
10444 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
10445 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
10446   echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448   ac_check_lib_save_LIBS=$LIBS
10449 LIBS="-lresolv  $LIBS"
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h.  */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h.  */
10456
10457 /* Override any GCC internal prototype to avoid an error.
10458    Use char because int might match the return type of a GCC
10459    builtin and then its argument prototype would still apply.  */
10460 #ifdef __cplusplus
10461 extern "C"
10462 #endif
10463 char res_query ();
10464 int
10465 main ()
10466 {
10467 return res_query ();
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (ac_try="$ac_link"
10474 case "(($ac_try" in
10475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476   *) ac_try_echo=$ac_try;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479   (eval "$ac_link") 2>conftest.er1
10480   ac_status=$?
10481   grep -v '^ *+' conftest.er1 >conftest.err
10482   rm -f conftest.er1
10483   cat conftest.err >&5
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } && {
10486          test -z "$ac_c_werror_flag" ||
10487          test ! -s conftest.err
10488        } && test -s conftest$ac_exeext &&
10489        $as_test_x conftest$ac_exeext; then
10490   ac_cv_lib_resolv_res_query=yes
10491 else
10492   echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495         ac_cv_lib_resolv_res_query=no
10496 fi
10497
10498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10499       conftest$ac_exeext conftest.$ac_ext
10500 LIBS=$ac_check_lib_save_LIBS
10501 fi
10502 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
10503 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
10504 if test $ac_cv_lib_resolv_res_query = yes; then
10505
10506 cat >>confdefs.h <<\_ACEOF
10507 #define HAVE_RESOLV 1
10508 _ACEOF
10509
10510          RESOLVLIBS="-lresolv"
10511 fi
10512
10513 fi
10514
10515 LCMSLIBS=""
10516
10517 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10518 then
10519     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
10520 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
10521 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
10522   echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524   ac_check_lib_save_LIBS=$LIBS
10525 LIBS="-llcms  $LIBS"
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h.  */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h.  */
10532
10533 /* Override any GCC internal prototype to avoid an error.
10534    Use char because int might match the return type of a GCC
10535    builtin and then its argument prototype would still apply.  */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 char cmsOpenProfileFromFile ();
10540 int
10541 main ()
10542 {
10543 return cmsOpenProfileFromFile ();
10544   ;
10545   return 0;
10546 }
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (ac_try="$ac_link"
10550 case "(($ac_try" in
10551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552   *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555   (eval "$ac_link") 2>conftest.er1
10556   ac_status=$?
10557   grep -v '^ *+' conftest.er1 >conftest.err
10558   rm -f conftest.er1
10559   cat conftest.err >&5
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); } && {
10562          test -z "$ac_c_werror_flag" ||
10563          test ! -s conftest.err
10564        } && test -s conftest$ac_exeext &&
10565        $as_test_x conftest$ac_exeext; then
10566   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10567 else
10568   echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10572 fi
10573
10574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10575       conftest$ac_exeext conftest.$ac_ext
10576 LIBS=$ac_check_lib_save_LIBS
10577 fi
10578 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10579 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10580 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
10581
10582 cat >>confdefs.h <<\_ACEOF
10583 #define HAVE_LCMS 1
10584 _ACEOF
10585
10586          LCMSLIBS="-llcms"
10587 fi
10588
10589 fi
10590
10591 LDAPLIBS=""
10592
10593 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
10594 then
10595     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
10596 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
10597 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
10598   echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600   ac_check_lib_save_LIBS=$LIBS
10601 LIBS="-lldap_r $LIBPTHREAD $LIBS"
10602 cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608
10609 /* Override any GCC internal prototype to avoid an error.
10610    Use char because int might match the return type of a GCC
10611    builtin and then its argument prototype would still apply.  */
10612 #ifdef __cplusplus
10613 extern "C"
10614 #endif
10615 char ldap_initialize ();
10616 int
10617 main ()
10618 {
10619 return ldap_initialize ();
10620   ;
10621   return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest.$ac_objext conftest$ac_exeext
10625 if { (ac_try="$ac_link"
10626 case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_link") 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } && {
10638          test -z "$ac_c_werror_flag" ||
10639          test ! -s conftest.err
10640        } && test -s conftest$ac_exeext &&
10641        $as_test_x conftest$ac_exeext; then
10642   ac_cv_lib_ldap_r_ldap_initialize=yes
10643 else
10644   echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646
10647         ac_cv_lib_ldap_r_ldap_initialize=no
10648 fi
10649
10650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10651       conftest$ac_exeext conftest.$ac_ext
10652 LIBS=$ac_check_lib_save_LIBS
10653 fi
10654 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
10655 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
10656 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
10657   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
10658 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
10659 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
10660   echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662   ac_check_lib_save_LIBS=$LIBS
10663 LIBS="-llber $LIBPTHREAD $LIBS"
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h.  */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h.  */
10670
10671 /* Override any GCC internal prototype to avoid an error.
10672    Use char because int might match the return type of a GCC
10673    builtin and then its argument prototype would still apply.  */
10674 #ifdef __cplusplus
10675 extern "C"
10676 #endif
10677 char ber_init ();
10678 int
10679 main ()
10680 {
10681 return ber_init ();
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690   *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693   (eval "$ac_link") 2>conftest.er1
10694   ac_status=$?
10695   grep -v '^ *+' conftest.er1 >conftest.err
10696   rm -f conftest.er1
10697   cat conftest.err >&5
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); } && {
10700          test -z "$ac_c_werror_flag" ||
10701          test ! -s conftest.err
10702        } && test -s conftest$ac_exeext &&
10703        $as_test_x conftest$ac_exeext; then
10704   ac_cv_lib_lber_ber_init=yes
10705 else
10706   echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709         ac_cv_lib_lber_ber_init=no
10710 fi
10711
10712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10713       conftest$ac_exeext conftest.$ac_ext
10714 LIBS=$ac_check_lib_save_LIBS
10715 fi
10716 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
10717 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
10718 if test $ac_cv_lib_lber_ber_init = yes; then
10719
10720 cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_LDAP 1
10722 _ACEOF
10723
10724              LDAPLIBS="-lldap_r -llber"
10725 fi
10726
10727 fi
10728
10729     ac_wine_check_funcs_save_LIBS="$LIBS"
10730 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
10731
10732
10733
10734
10735 for ac_func in \
10736         ldap_count_references \
10737         ldap_first_reference \
10738         ldap_next_reference \
10739         ldap_parse_reference
10740 do
10741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10745   echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747   cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h.  */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h.  */
10753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10755 #define $ac_func innocuous_$ac_func
10756
10757 /* System header to define __stub macros and hopefully few prototypes,
10758     which can conflict with char $ac_func (); below.
10759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10760     <limits.h> exists even on freestanding compilers.  */
10761
10762 #ifdef __STDC__
10763 # include <limits.h>
10764 #else
10765 # include <assert.h>
10766 #endif
10767
10768 #undef $ac_func
10769
10770 /* Override any GCC internal prototype to avoid an error.
10771    Use char because int might match the return type of a GCC
10772    builtin and then its argument prototype would still apply.  */
10773 #ifdef __cplusplus
10774 extern "C"
10775 #endif
10776 char $ac_func ();
10777 /* The GNU C library defines this for functions which it implements
10778     to always fail with ENOSYS.  Some functions are actually named
10779     something starting with __ and the normal name is an alias.  */
10780 #if defined __stub_$ac_func || defined __stub___$ac_func
10781 choke me
10782 #endif
10783
10784 int
10785 main ()
10786 {
10787 return $ac_func ();
10788   ;
10789   return 0;
10790 }
10791 _ACEOF
10792 rm -f conftest.$ac_objext conftest$ac_exeext
10793 if { (ac_try="$ac_link"
10794 case "(($ac_try" in
10795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796   *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799   (eval "$ac_link") 2>conftest.er1
10800   ac_status=$?
10801   grep -v '^ *+' conftest.er1 >conftest.err
10802   rm -f conftest.er1
10803   cat conftest.err >&5
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); } && {
10806          test -z "$ac_c_werror_flag" ||
10807          test ! -s conftest.err
10808        } && test -s conftest$ac_exeext &&
10809        $as_test_x conftest$ac_exeext; then
10810   eval "$as_ac_var=yes"
10811 else
10812   echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815         eval "$as_ac_var=no"
10816 fi
10817
10818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10819       conftest$ac_exeext conftest.$ac_ext
10820 fi
10821 ac_res=`eval echo '${'$as_ac_var'}'`
10822                { echo "$as_me:$LINENO: result: $ac_res" >&5
10823 echo "${ECHO_T}$ac_res" >&6; }
10824 if test `eval echo '${'$as_ac_var'}'` = yes; then
10825   cat >>confdefs.h <<_ACEOF
10826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10827 _ACEOF
10828
10829 fi
10830 done
10831
10832 LIBS="$ac_wine_check_funcs_save_LIBS"
10833 fi
10834
10835 FREETYPELIBS=""
10836
10837 FREETYPEINCL=""
10838
10839 # Extract the first word of "freetype-config", so it can be a program name with args.
10840 set dummy freetype-config; ac_word=$2
10841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10843 if test "${ac_cv_prog_ft_devel+set}" = set; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846   if test -n "$ft_devel"; then
10847   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10848 else
10849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850 for as_dir in $PATH
10851 do
10852   IFS=$as_save_IFS
10853   test -z "$as_dir" && as_dir=.
10854   for ac_exec_ext in '' $ac_executable_extensions; do
10855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10856     ac_cv_prog_ft_devel="freetype-config"
10857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10858     break 2
10859   fi
10860 done
10861 done
10862 IFS=$as_save_IFS
10863
10864   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10865 fi
10866 fi
10867 ft_devel=$ac_cv_prog_ft_devel
10868 if test -n "$ft_devel"; then
10869   { echo "$as_me:$LINENO: result: $ft_devel" >&5
10870 echo "${ECHO_T}$ft_devel" >&6; }
10871 else
10872   { echo "$as_me:$LINENO: result: no" >&5
10873 echo "${ECHO_T}no" >&6; }
10874 fi
10875
10876
10877 if test "$ft_devel" = "no"
10878 then
10879     # Extract the first word of "freetype2-config", so it can be a program name with args.
10880 set dummy freetype2-config; ac_word=$2
10881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10883 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10884   echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886   if test -n "$ft_devel2"; then
10887   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10888 else
10889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890 for as_dir in $PATH
10891 do
10892   IFS=$as_save_IFS
10893   test -z "$as_dir" && as_dir=.
10894   for ac_exec_ext in '' $ac_executable_extensions; do
10895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10896     ac_cv_prog_ft_devel2="freetype2-config"
10897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10898     break 2
10899   fi
10900 done
10901 done
10902 IFS=$as_save_IFS
10903
10904   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10905 fi
10906 fi
10907 ft_devel2=$ac_cv_prog_ft_devel2
10908 if test -n "$ft_devel2"; then
10909   { echo "$as_me:$LINENO: result: $ft_devel2" >&5
10910 echo "${ECHO_T}$ft_devel2" >&6; }
10911 else
10912   { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10914 fi
10915
10916
10917     if test "$ft_devel2" = "freetype2-config"
10918     then
10919         ft_devel=$ft_devel2
10920     fi
10921 fi
10922
10923 if test "$ft_devel" = "no"
10924 then
10925     wine_cv_msg_freetype=yes
10926 else
10927     FREETYPELIBS=`$ft_devel --libs`
10928     FREETYPEINCL=`$ft_devel --cflags`
10929     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10930 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
10931 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10932   echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934   ac_check_lib_save_LIBS=$LIBS
10935 LIBS="-lfreetype $FREETYPELIBS $LIBS"
10936 cat >conftest.$ac_ext <<_ACEOF
10937 /* confdefs.h.  */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h.  */
10942
10943 /* Override any GCC internal prototype to avoid an error.
10944    Use char because int might match the return type of a GCC
10945    builtin and then its argument prototype would still apply.  */
10946 #ifdef __cplusplus
10947 extern "C"
10948 #endif
10949 char FT_Init_FreeType ();
10950 int
10951 main ()
10952 {
10953 return FT_Init_FreeType ();
10954   ;
10955   return 0;
10956 }
10957 _ACEOF
10958 rm -f conftest.$ac_objext conftest$ac_exeext
10959 if { (ac_try="$ac_link"
10960 case "(($ac_try" in
10961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962   *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965   (eval "$ac_link") 2>conftest.er1
10966   ac_status=$?
10967   grep -v '^ *+' conftest.er1 >conftest.err
10968   rm -f conftest.er1
10969   cat conftest.err >&5
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); } && {
10972          test -z "$ac_c_werror_flag" ||
10973          test ! -s conftest.err
10974        } && test -s conftest$ac_exeext &&
10975        $as_test_x conftest$ac_exeext; then
10976   ac_cv_lib_freetype_FT_Init_FreeType=yes
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981         ac_cv_lib_freetype_FT_Init_FreeType=no
10982 fi
10983
10984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10985       conftest$ac_exeext conftest.$ac_ext
10986 LIBS=$ac_check_lib_save_LIBS
10987 fi
10988 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10989 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
10990 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10991   ft_lib=yes
10992 else
10993   ft_lib=no
10994 fi
10995
10996     if test "$ft_lib" = "no"
10997     then
10998         wine_cv_msg_freetype=yes
10999         FREETYPELIBS=""
11000         FREETYPEINCL=""
11001     else
11002         ac_save_CPPFLAGS="$CPPFLAGS"
11003         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015 for ac_header in ft2build.h \
11016                          freetype/freetype.h \
11017                          freetype/ftglyph.h \
11018                          freetype/tttables.h \
11019                          freetype/ftnames.h \
11020                          freetype/ftsnames.h \
11021                          freetype/ttnameid.h \
11022                          freetype/ftoutln.h \
11023                          freetype/ftwinfnt.h \
11024                          freetype/ftmodapi.h \
11025                          freetype/internal/sfnt.h
11026 do
11027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11031   echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033   cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039 #if HAVE_FT2BUILD_H
11040                           #include <ft2build.h>
11041                           #endif
11042
11043 #include <$ac_header>
11044 _ACEOF
11045 rm -f conftest.$ac_objext
11046 if { (ac_try="$ac_compile"
11047 case "(($ac_try" in
11048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049   *) ac_try_echo=$ac_try;;
11050 esac
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052   (eval "$ac_compile") 2>conftest.er1
11053   ac_status=$?
11054   grep -v '^ *+' conftest.er1 >conftest.err
11055   rm -f conftest.er1
11056   cat conftest.err >&5
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); } && {
11059          test -z "$ac_c_werror_flag" ||
11060          test ! -s conftest.err
11061        } && test -s conftest.$ac_objext; then
11062   eval "$as_ac_Header=yes"
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067         eval "$as_ac_Header=no"
11068 fi
11069
11070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 fi
11072 ac_res=`eval echo '${'$as_ac_Header'}'`
11073                { echo "$as_me:$LINENO: result: $ac_res" >&5
11074 echo "${ECHO_T}$ac_res" >&6; }
11075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11076   cat >>confdefs.h <<_ACEOF
11077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11078 _ACEOF
11079
11080 fi
11081
11082 done
11083
11084         cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h.  */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h.  */
11090 #include <ft2build.h>
11091                     #include <freetype/fttrigon.h>
11092 _ACEOF
11093 if { (ac_try="$ac_cpp conftest.$ac_ext"
11094 case "(($ac_try" in
11095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096   *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11100   ac_status=$?
11101   grep -v '^ *+' conftest.er1 >conftest.err
11102   rm -f conftest.er1
11103   cat conftest.err >&5
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); } >/dev/null && {
11106          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11107          test ! -s conftest.err
11108        }; then
11109
11110 cat >>confdefs.h <<\_ACEOF
11111 #define HAVE_FREETYPE_FTTRIGON_H 1
11112 _ACEOF
11113
11114                     wine_cv_fttrigon=yes
11115 else
11116   echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11118
11119   wine_cv_fttrigon=no
11120 fi
11121
11122 rm -f conftest.err conftest.$ac_ext
11123         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
11124 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
11125 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128   cat >conftest.$ac_ext <<_ACEOF
11129 /* confdefs.h.  */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h.  */
11134 #include <freetype/ftmodapi.h>
11135
11136 typedef FT_TrueTypeEngineType ac__type_new_;
11137 int
11138 main ()
11139 {
11140 if ((ac__type_new_ *) 0)
11141   return 0;
11142 if (sizeof (ac__type_new_))
11143   return 0;
11144   ;
11145   return 0;
11146 }
11147 _ACEOF
11148 rm -f conftest.$ac_objext
11149 if { (ac_try="$ac_compile"
11150 case "(($ac_try" in
11151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152   *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155   (eval "$ac_compile") 2>conftest.er1
11156   ac_status=$?
11157   grep -v '^ *+' conftest.er1 >conftest.err
11158   rm -f conftest.er1
11159   cat conftest.err >&5
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); } && {
11162          test -z "$ac_c_werror_flag" ||
11163          test ! -s conftest.err
11164        } && test -s conftest.$ac_objext; then
11165   ac_cv_type_FT_TrueTypeEngineType=yes
11166 else
11167   echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11169
11170         ac_cv_type_FT_TrueTypeEngineType=no
11171 fi
11172
11173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11174 fi
11175 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
11176 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
11177 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
11178
11179 cat >>confdefs.h <<_ACEOF
11180 #define HAVE_FT_TRUETYPEENGINETYPE 1
11181 _ACEOF
11182
11183
11184 fi
11185
11186         ac_save_CFLAGS="$CFLAGS"
11187         CFLAGS="$CFLAGS $FREETYPELIBS"
11188
11189 for ac_func in FT_Load_Sfnt_Table
11190 do
11191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11194 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11195   echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197   cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h.  */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h.  */
11203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11205 #define $ac_func innocuous_$ac_func
11206
11207 /* System header to define __stub macros and hopefully few prototypes,
11208     which can conflict with char $ac_func (); below.
11209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11210     <limits.h> exists even on freestanding compilers.  */
11211
11212 #ifdef __STDC__
11213 # include <limits.h>
11214 #else
11215 # include <assert.h>
11216 #endif
11217
11218 #undef $ac_func
11219
11220 /* Override any GCC internal prototype to avoid an error.
11221    Use char because int might match the return type of a GCC
11222    builtin and then its argument prototype would still apply.  */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char $ac_func ();
11227 /* The GNU C library defines this for functions which it implements
11228     to always fail with ENOSYS.  Some functions are actually named
11229     something starting with __ and the normal name is an alias.  */
11230 #if defined __stub_$ac_func || defined __stub___$ac_func
11231 choke me
11232 #endif
11233
11234 int
11235 main ()
11236 {
11237 return $ac_func ();
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (ac_try="$ac_link"
11244 case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_link") 2>conftest.er1
11250   ac_status=$?
11251   grep -v '^ *+' conftest.er1 >conftest.err
11252   rm -f conftest.er1
11253   cat conftest.err >&5
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); } && {
11256          test -z "$ac_c_werror_flag" ||
11257          test ! -s conftest.err
11258        } && test -s conftest$ac_exeext &&
11259        $as_test_x conftest$ac_exeext; then
11260   eval "$as_ac_var=yes"
11261 else
11262   echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265         eval "$as_ac_var=no"
11266 fi
11267
11268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11269       conftest$ac_exeext conftest.$ac_ext
11270 fi
11271 ac_res=`eval echo '${'$as_ac_var'}'`
11272                { echo "$as_me:$LINENO: result: $ac_res" >&5
11273 echo "${ECHO_T}$ac_res" >&6; }
11274 if test `eval echo '${'$as_ac_var'}'` = yes; then
11275   cat >>confdefs.h <<_ACEOF
11276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11277 _ACEOF
11278
11279 fi
11280 done
11281
11282         CFLAGS="$ac_save_CFLAGS"
11283         CPPFLAGS="$ac_save_CPPFLAGS"
11284                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11285         then
11286
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_FREETYPE 1
11289 _ACEOF
11290
11291             wine_cv_msg_freetype=no
11292         else
11293             FREETYPELIBS=""
11294             FREETYPEINCL=""
11295             wine_cv_msg_freetype=yes
11296         fi
11297     fi
11298 fi
11299
11300 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
11301 then
11302   FONTSSUBDIRS="fonts"
11303
11304 fi
11305
11306 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
11307 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
11308 if test "${ac_cv_c_ppdev+set}" = set; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311   cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h.  */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h.  */
11317 #include <linux/ppdev.h>
11318 int
11319 main ()
11320 {
11321 ioctl (1,PPCLAIM,0)
11322   ;
11323   return 0;
11324 }
11325 _ACEOF
11326 rm -f conftest.$ac_objext
11327 if { (ac_try="$ac_compile"
11328 case "(($ac_try" in
11329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330   *) ac_try_echo=$ac_try;;
11331 esac
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333   (eval "$ac_compile") 2>conftest.er1
11334   ac_status=$?
11335   grep -v '^ *+' conftest.er1 >conftest.err
11336   rm -f conftest.er1
11337   cat conftest.err >&5
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); } && {
11340          test -z "$ac_c_werror_flag" ||
11341          test ! -s conftest.err
11342        } && test -s conftest.$ac_objext; then
11343   ac_cv_c_ppdev="yes"
11344 else
11345   echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348         ac_cv_c_ppdev="no"
11349 fi
11350
11351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352
11353 fi
11354 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
11355 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
11356 if test "$ac_cv_c_ppdev" = "yes"
11357 then
11358
11359 cat >>confdefs.h <<\_ACEOF
11360 #define HAVE_PPDEV 1
11361 _ACEOF
11362
11363 fi
11364
11365 { echo "$as_me:$LINENO: checking for va_copy" >&5
11366 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
11367 if test "${ac_cv_c_va_copy+set}" = set; then
11368   echo $ECHO_N "(cached) $ECHO_C" >&6
11369 else
11370   cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376 #include <stdarg.h>
11377 int
11378 main ()
11379 {
11380 va_list ap1, ap2;
11381     va_copy(ap1,ap2);
11382
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 rm -f conftest.$ac_objext conftest$ac_exeext
11388 if { (ac_try="$ac_link"
11389 case "(($ac_try" in
11390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391   *) ac_try_echo=$ac_try;;
11392 esac
11393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394   (eval "$ac_link") 2>conftest.er1
11395   ac_status=$?
11396   grep -v '^ *+' conftest.er1 >conftest.err
11397   rm -f conftest.er1
11398   cat conftest.err >&5
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); } && {
11401          test -z "$ac_c_werror_flag" ||
11402          test ! -s conftest.err
11403        } && test -s conftest$ac_exeext &&
11404        $as_test_x conftest$ac_exeext; then
11405   ac_cv_c_va_copy="yes"
11406 else
11407   echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410         ac_cv_c_va_copy="no"
11411 fi
11412
11413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11414       conftest$ac_exeext conftest.$ac_ext
11415
11416 fi
11417 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
11418 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
11419 if test "$ac_cv_c_va_copy" = "yes"
11420 then
11421
11422 cat >>confdefs.h <<\_ACEOF
11423 #define HAVE_VA_COPY 1
11424 _ACEOF
11425
11426 fi
11427 { echo "$as_me:$LINENO: checking for __va_copy" >&5
11428 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
11429 if test "${ac_cv_c___va_copy+set}" = set; then
11430   echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432   cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h.  */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h.  */
11438 #include <stdarg.h>
11439 int
11440 main ()
11441 {
11442 va_list ap1, ap2;
11443     __va_copy(ap1,ap2);
11444
11445   ;
11446   return 0;
11447 }
11448 _ACEOF
11449 rm -f conftest.$ac_objext conftest$ac_exeext
11450 if { (ac_try="$ac_link"
11451 case "(($ac_try" in
11452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453   *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456   (eval "$ac_link") 2>conftest.er1
11457   ac_status=$?
11458   grep -v '^ *+' conftest.er1 >conftest.err
11459   rm -f conftest.er1
11460   cat conftest.err >&5
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); } && {
11463          test -z "$ac_c_werror_flag" ||
11464          test ! -s conftest.err
11465        } && test -s conftest$ac_exeext &&
11466        $as_test_x conftest$ac_exeext; then
11467   ac_cv_c___va_copy="yes"
11468 else
11469   echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11471
11472         ac_cv_c___va_copy="no"
11473 fi
11474
11475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11476       conftest$ac_exeext conftest.$ac_ext
11477
11478 fi
11479 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
11480 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
11481 if test "$ac_cv_c___va_copy" = "yes"
11482 then
11483
11484 cat >>confdefs.h <<\_ACEOF
11485 #define HAVE___VA_COPY 1
11486 _ACEOF
11487
11488 fi
11489
11490 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11491 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
11492 if test "${ac_cv_c_sigsetjmp+set}" = set; then
11493   echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495   cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 #include <setjmp.h>
11502 int
11503 main ()
11504 {
11505 sigjmp_buf buf;
11506     sigsetjmp( buf, 1 );
11507     siglongjmp( buf, 1 );
11508   ;
11509   return 0;
11510 }
11511 _ACEOF
11512 rm -f conftest.$ac_objext conftest$ac_exeext
11513 if { (ac_try="$ac_link"
11514 case "(($ac_try" in
11515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516   *) ac_try_echo=$ac_try;;
11517 esac
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519   (eval "$ac_link") 2>conftest.er1
11520   ac_status=$?
11521   grep -v '^ *+' conftest.er1 >conftest.err
11522   rm -f conftest.er1
11523   cat conftest.err >&5
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); } && {
11526          test -z "$ac_c_werror_flag" ||
11527          test ! -s conftest.err
11528        } && test -s conftest$ac_exeext &&
11529        $as_test_x conftest$ac_exeext; then
11530   ac_cv_c_sigsetjmp="yes"
11531 else
11532   echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535         ac_cv_c_sigsetjmp="no"
11536 fi
11537
11538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11539       conftest$ac_exeext conftest.$ac_ext
11540
11541 fi
11542 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11543 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
11544 if test "$ac_cv_c_sigsetjmp" = "yes"
11545 then
11546
11547 cat >>confdefs.h <<\_ACEOF
11548 #define HAVE_SIGSETJMP 1
11549 _ACEOF
11550
11551 fi
11552
11553 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11554 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
11555 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11556   echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558   cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h.  */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h.  */
11564 #define _GNU_SOURCE
11565 #include <pthread.h>
11566
11567 typedef pthread_rwlock_t ac__type_new_;
11568 int
11569 main ()
11570 {
11571 if ((ac__type_new_ *) 0)
11572   return 0;
11573 if (sizeof (ac__type_new_))
11574   return 0;
11575   ;
11576   return 0;
11577 }
11578 _ACEOF
11579 rm -f conftest.$ac_objext
11580 if { (ac_try="$ac_compile"
11581 case "(($ac_try" in
11582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583   *) ac_try_echo=$ac_try;;
11584 esac
11585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586   (eval "$ac_compile") 2>conftest.er1
11587   ac_status=$?
11588   grep -v '^ *+' conftest.er1 >conftest.err
11589   rm -f conftest.er1
11590   cat conftest.err >&5
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); } && {
11593          test -z "$ac_c_werror_flag" ||
11594          test ! -s conftest.err
11595        } && test -s conftest.$ac_objext; then
11596   ac_cv_type_pthread_rwlock_t=yes
11597 else
11598   echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11600
11601         ac_cv_type_pthread_rwlock_t=no
11602 fi
11603
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605 fi
11606 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11607 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
11608 if test $ac_cv_type_pthread_rwlock_t = yes; then
11609
11610 cat >>confdefs.h <<_ACEOF
11611 #define HAVE_PTHREAD_RWLOCK_T 1
11612 _ACEOF
11613
11614
11615 fi
11616 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11617 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
11618 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621   cat >conftest.$ac_ext <<_ACEOF
11622 /* confdefs.h.  */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h.  */
11627 #define _GNU_SOURCE
11628 #include <pthread.h>
11629
11630 typedef pthread_rwlockattr_t ac__type_new_;
11631 int
11632 main ()
11633 {
11634 if ((ac__type_new_ *) 0)
11635   return 0;
11636 if (sizeof (ac__type_new_))
11637   return 0;
11638   ;
11639   return 0;
11640 }
11641 _ACEOF
11642 rm -f conftest.$ac_objext
11643 if { (ac_try="$ac_compile"
11644 case "(($ac_try" in
11645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646   *) ac_try_echo=$ac_try;;
11647 esac
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649   (eval "$ac_compile") 2>conftest.er1
11650   ac_status=$?
11651   grep -v '^ *+' conftest.er1 >conftest.err
11652   rm -f conftest.er1
11653   cat conftest.err >&5
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); } && {
11656          test -z "$ac_c_werror_flag" ||
11657          test ! -s conftest.err
11658        } && test -s conftest.$ac_objext; then
11659   ac_cv_type_pthread_rwlockattr_t=yes
11660 else
11661   echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664         ac_cv_type_pthread_rwlockattr_t=no
11665 fi
11666
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668 fi
11669 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11670 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
11671 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11672
11673 cat >>confdefs.h <<_ACEOF
11674 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11675 _ACEOF
11676
11677
11678 fi
11679
11680
11681 ac_wine_check_funcs_save_LIBS="$LIBS"
11682 LIBS="$LIBS $LIBPTHREAD"
11683
11684
11685
11686
11687 for ac_func in \
11688         pthread_attr_get_np \
11689         pthread_getattr_np \
11690         pthread_get_stackaddr_np \
11691         pthread_get_stacksize_np
11692 do
11693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11707 #define $ac_func innocuous_$ac_func
11708
11709 /* System header to define __stub macros and hopefully few prototypes,
11710     which can conflict with char $ac_func (); below.
11711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712     <limits.h> exists even on freestanding compilers.  */
11713
11714 #ifdef __STDC__
11715 # include <limits.h>
11716 #else
11717 # include <assert.h>
11718 #endif
11719
11720 #undef $ac_func
11721
11722 /* Override any GCC internal prototype to avoid an error.
11723    Use char because int might match the return type of a GCC
11724    builtin and then its argument prototype would still apply.  */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 char $ac_func ();
11729 /* The GNU C library defines this for functions which it implements
11730     to always fail with ENOSYS.  Some functions are actually named
11731     something starting with __ and the normal name is an alias.  */
11732 #if defined __stub_$ac_func || defined __stub___$ac_func
11733 choke me
11734 #endif
11735
11736 int
11737 main ()
11738 {
11739 return $ac_func ();
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (ac_try="$ac_link"
11746 case "(($ac_try" in
11747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748   *) ac_try_echo=$ac_try;;
11749 esac
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751   (eval "$ac_link") 2>conftest.er1
11752   ac_status=$?
11753   grep -v '^ *+' conftest.er1 >conftest.err
11754   rm -f conftest.er1
11755   cat conftest.err >&5
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } && {
11758          test -z "$ac_c_werror_flag" ||
11759          test ! -s conftest.err
11760        } && test -s conftest$ac_exeext &&
11761        $as_test_x conftest$ac_exeext; then
11762   eval "$as_ac_var=yes"
11763 else
11764   echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11766
11767         eval "$as_ac_var=no"
11768 fi
11769
11770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11771       conftest$ac_exeext conftest.$ac_ext
11772 fi
11773 ac_res=`eval echo '${'$as_ac_var'}'`
11774                { echo "$as_me:$LINENO: result: $ac_res" >&5
11775 echo "${ECHO_T}$ac_res" >&6; }
11776 if test `eval echo '${'$as_ac_var'}'` = yes; then
11777   cat >>confdefs.h <<_ACEOF
11778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11779 _ACEOF
11780
11781 fi
11782 done
11783
11784 LIBS="$ac_wine_check_funcs_save_LIBS"
11785
11786 # Extract the first word of "artsc-config", so it can be a program name with args.
11787 set dummy artsc-config; ac_word=$2
11788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11790 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11791   echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793   case $ARTSCCONFIG in
11794   [\\/]* | ?:[\\/]*)
11795   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11796   ;;
11797   *)
11798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH
11800 do
11801   IFS=$as_save_IFS
11802   test -z "$as_dir" && as_dir=.
11803   for ac_exec_ext in '' $ac_executable_extensions; do
11804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11805     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11807     break 2
11808   fi
11809 done
11810 done
11811 IFS=$as_save_IFS
11812
11813   ;;
11814 esac
11815 fi
11816 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11817 if test -n "$ARTSCCONFIG"; then
11818   { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11819 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
11820 else
11821   { echo "$as_me:$LINENO: result: no" >&5
11822 echo "${ECHO_T}no" >&6; }
11823 fi
11824
11825
11826 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11827 then
11828     ARTSC_CFLAGS=""
11829     for i in `$ARTSCCONFIG --cflags`
11830     do
11831       case "$i" in
11832         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11833       esac
11834     done
11835     ARTSC_LIBS=""
11836     for i in `$ARTSCCONFIG --libs`
11837     do
11838       case "$i" in
11839         -L/usr/lib|-L/usr/lib64) ;;
11840         -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
11841       esac
11842     done
11843     save_CFLAGS="$CFLAGS"
11844     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11845     { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
11846 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
11847 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
11848   echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850   ac_check_lib_save_LIBS=$LIBS
11851 LIBS="-lartsc $ARTSC_LIBS $LIBS"
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h.  */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h.  */
11858
11859 /* Override any GCC internal prototype to avoid an error.
11860    Use char because int might match the return type of a GCC
11861    builtin and then its argument prototype would still apply.  */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 char arts_init ();
11866 int
11867 main ()
11868 {
11869 return arts_init ();
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (ac_try="$ac_link"
11876 case "(($ac_try" in
11877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878   *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881   (eval "$ac_link") 2>conftest.er1
11882   ac_status=$?
11883   grep -v '^ *+' conftest.er1 >conftest.err
11884   rm -f conftest.er1
11885   cat conftest.err >&5
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } && {
11888          test -z "$ac_c_werror_flag" ||
11889          test ! -s conftest.err
11890        } && test -s conftest$ac_exeext &&
11891        $as_test_x conftest$ac_exeext; then
11892   ac_cv_lib_artsc_arts_init=yes
11893 else
11894   echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11896
11897         ac_cv_lib_artsc_arts_init=no
11898 fi
11899
11900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11901       conftest$ac_exeext conftest.$ac_ext
11902 LIBS=$ac_check_lib_save_LIBS
11903 fi
11904 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
11905 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
11906 if test $ac_cv_lib_artsc_arts_init = yes; then
11907   cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913 #include <artsc.h>
11914 int
11915 main ()
11916 {
11917 arts_stream_t stream;
11918   ;
11919   return 0;
11920 }
11921 _ACEOF
11922 rm -f conftest.$ac_objext
11923 if { (ac_try="$ac_compile"
11924 case "(($ac_try" in
11925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926   *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929   (eval "$ac_compile") 2>conftest.er1
11930   ac_status=$?
11931   grep -v '^ *+' conftest.er1 >conftest.err
11932   rm -f conftest.er1
11933   cat conftest.err >&5
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } && {
11936          test -z "$ac_c_werror_flag" ||
11937          test ! -s conftest.err
11938        } && test -s conftest.$ac_objext; then
11939   ARTSLIBS=$ARTSC_LIBS
11940
11941             ARTSINCL=$ARTSC_CFLAGS
11942
11943
11944 cat >>confdefs.h <<\_ACEOF
11945 #define HAVE_ARTS 1
11946 _ACEOF
11947
11948 else
11949   echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11951
11952
11953 fi
11954
11955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 fi
11957
11958     CFLAGS="$save_CFLAGS"
11959 fi
11960
11961 # Extract the first word of "esd-config", so it can be a program name with args.
11962 set dummy esd-config; ac_word=$2
11963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11965 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
11966   echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968   case $ESDCONFIG in
11969   [\\/]* | ?:[\\/]*)
11970   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
11971   ;;
11972   *)
11973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11975 do
11976   IFS=$as_save_IFS
11977   test -z "$as_dir" && as_dir=.
11978   for ac_exec_ext in '' $ac_executable_extensions; do
11979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11980     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11982     break 2
11983   fi
11984 done
11985 done
11986 IFS=$as_save_IFS
11987
11988   ;;
11989 esac
11990 fi
11991 ESDCONFIG=$ac_cv_path_ESDCONFIG
11992 if test -n "$ESDCONFIG"; then
11993   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
11994 echo "${ECHO_T}$ESDCONFIG" >&6; }
11995 else
11996   { echo "$as_me:$LINENO: result: no" >&5
11997 echo "${ECHO_T}no" >&6; }
11998 fi
11999
12000
12001 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
12002 then
12003     ESD_CFLAGS=""
12004     for i in `$ESDCONFIG --cflags`
12005     do
12006       case "$i" in
12007         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
12008       esac
12009     done
12010     ESD_LIBS=`$ESDCONFIG --libs`
12011     save_CFLAGS="$CFLAGS"
12012     CFLAGS="$CFLAGS $ESD_CFLAGS"
12013     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
12014 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
12015 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
12016   echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018   ac_check_lib_save_LIBS=$LIBS
12019 LIBS="-lesd  $LIBS"
12020 cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h.  */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h.  */
12026
12027 /* Override any GCC internal prototype to avoid an error.
12028    Use char because int might match the return type of a GCC
12029    builtin and then its argument prototype would still apply.  */
12030 #ifdef __cplusplus
12031 extern "C"
12032 #endif
12033 char esd_open_sound ();
12034 int
12035 main ()
12036 {
12037 return esd_open_sound ();
12038   ;
12039   return 0;
12040 }
12041 _ACEOF
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (ac_try="$ac_link"
12044 case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_link") 2>conftest.er1
12050   ac_status=$?
12051   grep -v '^ *+' conftest.er1 >conftest.err
12052   rm -f conftest.er1
12053   cat conftest.err >&5
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } && {
12056          test -z "$ac_c_werror_flag" ||
12057          test ! -s conftest.err
12058        } && test -s conftest$ac_exeext &&
12059        $as_test_x conftest$ac_exeext; then
12060   ac_cv_lib_esd_esd_open_sound=yes
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065         ac_cv_lib_esd_esd_open_sound=no
12066 fi
12067
12068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12069       conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12071 fi
12072 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
12073 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
12074 if test $ac_cv_lib_esd_esd_open_sound = yes; then
12075   ESDLIBS=$ESD_LIBS
12076
12077          ESDINCL=$ESD_CFLAGS
12078
12079
12080 cat >>confdefs.h <<\_ACEOF
12081 #define HAVE_ESD 1
12082 _ACEOF
12083
12084 fi
12085
12086     CFLAGS="$save_CFLAGS"
12087 fi
12088
12089 ALSALIBS=""
12090
12091 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12092 then
12093     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
12094 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
12095 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098   ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-lasound  $LIBS"
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h.  */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h.  */
12106
12107 /* Override any GCC internal prototype to avoid an error.
12108    Use char because int might match the return type of a GCC
12109    builtin and then its argument prototype would still apply.  */
12110 #ifdef __cplusplus
12111 extern "C"
12112 #endif
12113 char snd_pcm_hw_params_get_access ();
12114 int
12115 main ()
12116 {
12117 return snd_pcm_hw_params_get_access ();
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (ac_try="$ac_link"
12124 case "(($ac_try" in
12125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126   *) ac_try_echo=$ac_try;;
12127 esac
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129   (eval "$ac_link") 2>conftest.er1
12130   ac_status=$?
12131   grep -v '^ *+' conftest.er1 >conftest.err
12132   rm -f conftest.er1
12133   cat conftest.err >&5
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); } && {
12136          test -z "$ac_c_werror_flag" ||
12137          test ! -s conftest.err
12138        } && test -s conftest$ac_exeext &&
12139        $as_test_x conftest$ac_exeext; then
12140   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
12146 fi
12147
12148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12149       conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12151 fi
12152 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
12153 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
12154 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
12155   cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h.  */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h.  */
12161 #ifdef HAVE_ALSA_ASOUNDLIB_H
12162 #include <alsa/asoundlib.h>
12163 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12164 #include <sys/asoundlib.h>
12165 #endif
12166 int
12167 main ()
12168 {
12169 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
12170   ;
12171   return 0;
12172 }
12173 _ACEOF
12174 rm -f conftest.$ac_objext
12175 if { (ac_try="$ac_compile"
12176 case "(($ac_try" in
12177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178   *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181   (eval "$ac_compile") 2>conftest.er1
12182   ac_status=$?
12183   grep -v '^ *+' conftest.er1 >conftest.err
12184   rm -f conftest.er1
12185   cat conftest.err >&5
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } && {
12188          test -z "$ac_c_werror_flag" ||
12189          test ! -s conftest.err
12190        } && test -s conftest.$ac_objext; then
12191
12192 cat >>confdefs.h <<\_ACEOF
12193 #define HAVE_ALSA 1
12194 _ACEOF
12195
12196                          ALSALIBS="-lasound"
12197 else
12198   echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201
12202 fi
12203
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 fi
12206
12207 fi
12208
12209
12210 AUDIOIOLIBS=""
12211
12212 if test "$ac_cv_header_libaudioio_h" = "yes"
12213 then
12214     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12215 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
12216 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12217   echo $ECHO_N "(cached) $ECHO_C" >&6
12218 else
12219   ac_check_lib_save_LIBS=$LIBS
12220 LIBS="-laudioio  $LIBS"
12221 cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h.  */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h.  */
12227
12228 /* Override any GCC internal prototype to avoid an error.
12229    Use char because int might match the return type of a GCC
12230    builtin and then its argument prototype would still apply.  */
12231 #ifdef __cplusplus
12232 extern "C"
12233 #endif
12234 char AudioIOGetVersion ();
12235 int
12236 main ()
12237 {
12238 return AudioIOGetVersion ();
12239   ;
12240   return 0;
12241 }
12242 _ACEOF
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (ac_try="$ac_link"
12245 case "(($ac_try" in
12246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247   *) ac_try_echo=$ac_try;;
12248 esac
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250   (eval "$ac_link") 2>conftest.er1
12251   ac_status=$?
12252   grep -v '^ *+' conftest.er1 >conftest.err
12253   rm -f conftest.er1
12254   cat conftest.err >&5
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); } && {
12257          test -z "$ac_c_werror_flag" ||
12258          test ! -s conftest.err
12259        } && test -s conftest$ac_exeext &&
12260        $as_test_x conftest$ac_exeext; then
12261   ac_cv_lib_audioio_AudioIOGetVersion=yes
12262 else
12263   echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266         ac_cv_lib_audioio_AudioIOGetVersion=no
12267 fi
12268
12269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12270       conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12272 fi
12273 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12274 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
12275 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12276   AUDIOIOLIBS="-laudioio"
12277
12278 cat >>confdefs.h <<\_ACEOF
12279 #define HAVE_LIBAUDIOIO 1
12280 _ACEOF
12281
12282 fi
12283
12284 fi
12285
12286
12287 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12288 then
12289     { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12290 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
12291 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12292   echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294   ac_check_lib_save_LIBS=$LIBS
12295 LIBS="-lcapi20  $LIBS"
12296 cat >conftest.$ac_ext <<_ACEOF
12297 /* confdefs.h.  */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h.  */
12302
12303 /* Override any GCC internal prototype to avoid an error.
12304    Use char because int might match the return type of a GCC
12305    builtin and then its argument prototype would still apply.  */
12306 #ifdef __cplusplus
12307 extern "C"
12308 #endif
12309 char capi20_register ();
12310 int
12311 main ()
12312 {
12313 return capi20_register ();
12314   ;
12315   return 0;
12316 }
12317 _ACEOF
12318 rm -f conftest.$ac_objext conftest$ac_exeext
12319 if { (ac_try="$ac_link"
12320 case "(($ac_try" in
12321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322   *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325   (eval "$ac_link") 2>conftest.er1
12326   ac_status=$?
12327   grep -v '^ *+' conftest.er1 >conftest.err
12328   rm -f conftest.er1
12329   cat conftest.err >&5
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } && {
12332          test -z "$ac_c_werror_flag" ||
12333          test ! -s conftest.err
12334        } && test -s conftest$ac_exeext &&
12335        $as_test_x conftest$ac_exeext; then
12336   ac_cv_lib_capi20_capi20_register=yes
12337 else
12338   echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12340
12341         ac_cv_lib_capi20_capi20_register=no
12342 fi
12343
12344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12345       conftest$ac_exeext conftest.$ac_ext
12346 LIBS=$ac_check_lib_save_LIBS
12347 fi
12348 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12349 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
12350 if test $ac_cv_lib_capi20_capi20_register = yes; then
12351
12352 cat >>confdefs.h <<\_ACEOF
12353 #define HAVE_CAPI4LINUX 1
12354 _ACEOF
12355
12356 fi
12357
12358 fi
12359
12360
12361 EXTRACFLAGS=""
12362
12363 if test "x${GCC}" = "xyes"
12364 then
12365   EXTRACFLAGS="-Wall -pipe"
12366
12367     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12368 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
12369 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12370   echo $ECHO_N "(cached) $ECHO_C" >&6
12371 else
12372   if test "$cross_compiling" = yes; then
12373   ac_cv_c_gcc_strength_bug="yes"
12374 else
12375   cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h.  */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h.  */
12381
12382 int     L[4] = {0,1,2,3};
12383 int main(void) {
12384   static int Array[3];
12385   unsigned int B = 3;
12386   int i;
12387   for(i=0; i<B; i++) Array[i] = i - 3;
12388   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12389   L[i] = 4;
12390
12391   exit( Array[1] != -2 || L[2] != 3);
12392 }
12393 _ACEOF
12394 rm -f conftest$ac_exeext
12395 if { (ac_try="$ac_link"
12396 case "(($ac_try" in
12397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398   *) ac_try_echo=$ac_try;;
12399 esac
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401   (eval "$ac_link") 2>&5
12402   ac_status=$?
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12405   { (case "(($ac_try" in
12406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407   *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410   (eval "$ac_try") 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; }; then
12414   ac_cv_c_gcc_strength_bug="no"
12415 else
12416   echo "$as_me: program exited with status $ac_status" >&5
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12419
12420 ( exit $ac_status )
12421 ac_cv_c_gcc_strength_bug="yes"
12422 fi
12423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12424 fi
12425
12426
12427 fi
12428 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12429 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
12430   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12431   then
12432     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12433   fi
12434
12435
12436   { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
12437 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
12438 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
12439   echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441   ac_wine_try_cflags_saved=$CFLAGS
12442 CFLAGS="$CFLAGS -fshort-wchar"
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h.  */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h.  */
12449
12450 int
12451 main ()
12452 {
12453
12454   ;
12455   return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (ac_try="$ac_link"
12460 case "(($ac_try" in
12461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462   *) ac_try_echo=$ac_try;;
12463 esac
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465   (eval "$ac_link") 2>conftest.er1
12466   ac_status=$?
12467   grep -v '^ *+' conftest.er1 >conftest.err
12468   rm -f conftest.er1
12469   cat conftest.err >&5
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); } && {
12472          test -z "$ac_c_werror_flag" ||
12473          test ! -s conftest.err
12474        } && test -s conftest$ac_exeext &&
12475        $as_test_x conftest$ac_exeext; then
12476   ac_cv_cflags__fshort_wchar=yes
12477 else
12478   echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481         ac_cv_cflags__fshort_wchar=no
12482 fi
12483
12484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12485       conftest$ac_exeext conftest.$ac_ext
12486 CFLAGS=$ac_wine_try_cflags_saved
12487 fi
12488 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
12489 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
12490 if test $ac_cv_cflags__fshort_wchar = yes; then
12491
12492 cat >>confdefs.h <<\_ACEOF
12493 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12494 _ACEOF
12495
12496 fi
12497
12498   { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
12499 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
12500 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
12501   echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503   ac_wine_try_cflags_saved=$CFLAGS
12504 CFLAGS="$CFLAGS -fno-strict-aliasing"
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511
12512 int
12513 main ()
12514 {
12515
12516   ;
12517   return 0;
12518 }
12519 _ACEOF
12520 rm -f conftest.$ac_objext conftest$ac_exeext
12521 if { (ac_try="$ac_link"
12522 case "(($ac_try" in
12523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524   *) ac_try_echo=$ac_try;;
12525 esac
12526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527   (eval "$ac_link") 2>conftest.er1
12528   ac_status=$?
12529   grep -v '^ *+' conftest.er1 >conftest.err
12530   rm -f conftest.er1
12531   cat conftest.err >&5
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); } && {
12534          test -z "$ac_c_werror_flag" ||
12535          test ! -s conftest.err
12536        } && test -s conftest$ac_exeext &&
12537        $as_test_x conftest$ac_exeext; then
12538   ac_cv_cflags__fno_strict_aliasing=yes
12539 else
12540   echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543         ac_cv_cflags__fno_strict_aliasing=no
12544 fi
12545
12546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12547       conftest$ac_exeext conftest.$ac_ext
12548 CFLAGS=$ac_wine_try_cflags_saved
12549 fi
12550 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12551 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
12552 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
12553   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12554 fi
12555
12556   { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12557 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
12558 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   ac_wine_try_cflags_saved=$CFLAGS
12562 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h.  */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h.  */
12569
12570 int
12571 main ()
12572 {
12573
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 rm -f conftest.$ac_objext conftest$ac_exeext
12579 if { (ac_try="$ac_link"
12580 case "(($ac_try" in
12581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582   *) ac_try_echo=$ac_try;;
12583 esac
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585   (eval "$ac_link") 2>conftest.er1
12586   ac_status=$?
12587   grep -v '^ *+' conftest.er1 >conftest.err
12588   rm -f conftest.er1
12589   cat conftest.err >&5
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); } && {
12592          test -z "$ac_c_werror_flag" ||
12593          test ! -s conftest.err
12594        } && test -s conftest$ac_exeext &&
12595        $as_test_x conftest$ac_exeext; then
12596   ac_cv_cflags__Wdeclaration_after_statement=yes
12597 else
12598   echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12600
12601         ac_cv_cflags__Wdeclaration_after_statement=no
12602 fi
12603
12604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12605       conftest$ac_exeext conftest.$ac_ext
12606 CFLAGS=$ac_wine_try_cflags_saved
12607 fi
12608 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12609 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12610 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
12611   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12612 fi
12613
12614   { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
12615 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
12616 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   ac_wine_try_cflags_saved=$CFLAGS
12620 CFLAGS="$CFLAGS -Wwrite-strings"
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h.  */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h.  */
12627
12628 int
12629 main ()
12630 {
12631
12632   ;
12633   return 0;
12634 }
12635 _ACEOF
12636 rm -f conftest.$ac_objext conftest$ac_exeext
12637 if { (ac_try="$ac_link"
12638 case "(($ac_try" in
12639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640   *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643   (eval "$ac_link") 2>conftest.er1
12644   ac_status=$?
12645   grep -v '^ *+' conftest.er1 >conftest.err
12646   rm -f conftest.er1
12647   cat conftest.err >&5
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); } && {
12650          test -z "$ac_c_werror_flag" ||
12651          test ! -s conftest.err
12652        } && test -s conftest$ac_exeext &&
12653        $as_test_x conftest$ac_exeext; then
12654   ac_cv_cflags__Wwrite_strings=yes
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659         ac_cv_cflags__Wwrite_strings=no
12660 fi
12661
12662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12663       conftest$ac_exeext conftest.$ac_ext
12664 CFLAGS=$ac_wine_try_cflags_saved
12665 fi
12666 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
12667 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
12668 if test $ac_cv_cflags__Wwrite_strings = yes; then
12669   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12670 fi
12671
12672
12673     saved_CFLAGS="$CFLAGS"
12674   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12675   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12676 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
12677 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12678   echo $ECHO_N "(cached) $ECHO_C" >&6
12679 else
12680   cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h.  */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h.  */
12686 #include <string.h>
12687 int
12688 main ()
12689 {
12690
12691   ;
12692   return 0;
12693 }
12694 _ACEOF
12695 rm -f conftest.$ac_objext
12696 if { (ac_try="$ac_compile"
12697 case "(($ac_try" in
12698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699   *) ac_try_echo=$ac_try;;
12700 esac
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702   (eval "$ac_compile") 2>conftest.er1
12703   ac_status=$?
12704   grep -v '^ *+' conftest.er1 >conftest.err
12705   rm -f conftest.er1
12706   cat conftest.err >&5
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } && {
12709          test -z "$ac_c_werror_flag" ||
12710          test ! -s conftest.err
12711        } && test -s conftest.$ac_objext; then
12712   ac_cv_c_string_h_warnings=no
12713 else
12714   echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12716
12717         ac_cv_c_string_h_warnings=yes
12718 fi
12719
12720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12721 fi
12722 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12723 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
12724   CFLAGS="$saved_CFLAGS"
12725   if test "$ac_cv_c_string_h_warnings" = "no"
12726   then
12727     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12728   fi
12729
12730   BUILTINFLAG=""
12731
12732   saved_CFLAGS="$CFLAGS"
12733   CFLAGS="$CFLAGS -Werror"
12734   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
12735 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
12736 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
12737   echo $ECHO_N "(cached) $ECHO_C" >&6
12738 else
12739   cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h.  */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h.  */
12745
12746 int
12747 main ()
12748 {
12749 int iswlower(unsigned short);
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext
12755 if { (ac_try="$ac_compile"
12756 case "(($ac_try" in
12757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758   *) ac_try_echo=$ac_try;;
12759 esac
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761   (eval "$ac_compile") 2>conftest.er1
12762   ac_status=$?
12763   grep -v '^ *+' conftest.er1 >conftest.err
12764   rm -f conftest.er1
12765   cat conftest.err >&5
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); } && {
12768          test -z "$ac_c_werror_flag" ||
12769          test ! -s conftest.err
12770        } && test -s conftest.$ac_objext; then
12771   ac_cv_c_builtin_wchar_ctype=no
12772 else
12773   echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12775
12776         ac_cv_c_builtin_wchar_ctype=yes
12777 fi
12778
12779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12780 fi
12781 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
12782 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
12783   CFLAGS="$saved_CFLAGS"
12784   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
12785   then
12786     BUILTINFLAG="-fno-builtin"
12787   fi
12788 fi
12789
12790
12791 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12792 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
12793 if test "${ac_cv_asm_func_def+set}" = set; then
12794   echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796   cat >conftest.$ac_ext <<_ACEOF
12797 /* confdefs.h.  */
12798 _ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h.  */
12802 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
12803
12804 int
12805 main ()
12806 {
12807
12808   ;
12809   return 0;
12810 }
12811 _ACEOF
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813 if { (ac_try="$ac_link"
12814 case "(($ac_try" in
12815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816   *) ac_try_echo=$ac_try;;
12817 esac
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819   (eval "$ac_link") 2>conftest.er1
12820   ac_status=$?
12821   grep -v '^ *+' conftest.er1 >conftest.err
12822   rm -f conftest.er1
12823   cat conftest.err >&5
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); } && {
12826          test -z "$ac_c_werror_flag" ||
12827          test ! -s conftest.err
12828        } && test -s conftest$ac_exeext &&
12829        $as_test_x conftest$ac_exeext; then
12830   ac_cv_asm_func_def=".def"
12831 else
12832   echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835         cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h.  */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h.  */
12841 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12842
12843 int
12844 main ()
12845 {
12846
12847   ;
12848   return 0;
12849 }
12850 _ACEOF
12851 rm -f conftest.$ac_objext conftest$ac_exeext
12852 if { (ac_try="$ac_link"
12853 case "(($ac_try" in
12854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855   *) ac_try_echo=$ac_try;;
12856 esac
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858   (eval "$ac_link") 2>conftest.er1
12859   ac_status=$?
12860   grep -v '^ *+' conftest.er1 >conftest.err
12861   rm -f conftest.er1
12862   cat conftest.err >&5
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); } && {
12865          test -z "$ac_c_werror_flag" ||
12866          test ! -s conftest.err
12867        } && test -s conftest$ac_exeext &&
12868        $as_test_x conftest$ac_exeext; then
12869   ac_cv_asm_func_def=".type @function"
12870 else
12871   echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12873
12874         cat >conftest.$ac_ext <<_ACEOF
12875 /* confdefs.h.  */
12876 _ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h.  */
12880 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12881
12882 int
12883 main ()
12884 {
12885
12886   ;
12887   return 0;
12888 }
12889 _ACEOF
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (ac_try="$ac_link"
12892 case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897   (eval "$ac_link") 2>conftest.er1
12898   ac_status=$?
12899   grep -v '^ *+' conftest.er1 >conftest.err
12900   rm -f conftest.er1
12901   cat conftest.err >&5
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); } && {
12904          test -z "$ac_c_werror_flag" ||
12905          test ! -s conftest.err
12906        } && test -s conftest$ac_exeext &&
12907        $as_test_x conftest$ac_exeext; then
12908   ac_cv_asm_func_def=".type 2"
12909 else
12910   echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12912
12913         ac_cv_asm_func_def="unknown"
12914 fi
12915
12916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12917       conftest$ac_exeext conftest.$ac_ext
12918 fi
12919
12920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12921       conftest$ac_exeext conftest.$ac_ext
12922 fi
12923
12924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12925       conftest$ac_exeext conftest.$ac_ext
12926 fi
12927 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12928 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
12929
12930
12931
12932 case "$ac_cv_asm_func_def" in
12933   ".def")
12934      cat >>confdefs.h <<\_ACEOF
12935 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12936 _ACEOF
12937  ;;
12938   ".type @function")
12939      cat >>confdefs.h <<\_ACEOF
12940 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12941 _ACEOF
12942  ;;
12943   ".type 2")
12944      cat >>confdefs.h <<\_ACEOF
12945 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12946 _ACEOF
12947  ;;
12948   *)
12949      cat >>confdefs.h <<\_ACEOF
12950 #define __ASM_FUNC(name) ""
12951 _ACEOF
12952  ;;
12953 esac
12954
12955
12956 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12957 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
12958 if test "${ac_cv_c_extern_prefix+set}" = set; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961   cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h.  */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h.  */
12967 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12968 extern int ac_test;
12969 int
12970 main ()
12971 {
12972 if (ac_test) return 1
12973   ;
12974   return 0;
12975 }
12976 _ACEOF
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978 if { (ac_try="$ac_link"
12979 case "(($ac_try" in
12980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981   *) ac_try_echo=$ac_try;;
12982 esac
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984   (eval "$ac_link") 2>conftest.er1
12985   ac_status=$?
12986   grep -v '^ *+' conftest.er1 >conftest.err
12987   rm -f conftest.er1
12988   cat conftest.err >&5
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); } && {
12991          test -z "$ac_c_werror_flag" ||
12992          test ! -s conftest.err
12993        } && test -s conftest$ac_exeext &&
12994        $as_test_x conftest$ac_exeext; then
12995   ac_cv_c_extern_prefix="yes"
12996 else
12997   echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
12999
13000         ac_cv_c_extern_prefix="no"
13001 fi
13002
13003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13004       conftest$ac_exeext conftest.$ac_ext
13005 fi
13006 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13007 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
13008
13009
13010
13011 if test "$ac_cv_c_extern_prefix" = "yes"
13012 then
13013   cat >>confdefs.h <<\_ACEOF
13014 #define __ASM_NAME(name) "_" name
13015 _ACEOF
13016
13017 else
13018   cat >>confdefs.h <<\_ACEOF
13019 #define __ASM_NAME(name) name
13020 _ACEOF
13021
13022 fi
13023
13024
13025 DLLEXT=""
13026
13027 DLLFLAGS="-D_REENTRANT"
13028
13029 LDSHARED=""
13030
13031 LDDLLFLAGS=""
13032
13033 LIBEXT="so"
13034
13035 IMPLIBEXT="def"
13036
13037 LIBWINE_LDFLAGS=""
13038
13039
13040 case $host_os in
13041   cygwin*|mingw32*)
13042     if test -n "$ac_tool_prefix"; then
13043   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13044 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13047 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13048   echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050   if test -n "$DLLTOOL"; then
13051   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13052 else
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13055 do
13056   IFS=$as_save_IFS
13057   test -z "$as_dir" && as_dir=.
13058   for ac_exec_ext in '' $ac_executable_extensions; do
13059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13062     break 2
13063   fi
13064 done
13065 done
13066 IFS=$as_save_IFS
13067
13068 fi
13069 fi
13070 DLLTOOL=$ac_cv_prog_DLLTOOL
13071 if test -n "$DLLTOOL"; then
13072   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13073 echo "${ECHO_T}$DLLTOOL" >&6; }
13074 else
13075   { echo "$as_me:$LINENO: result: no" >&5
13076 echo "${ECHO_T}no" >&6; }
13077 fi
13078
13079
13080 fi
13081 if test -z "$ac_cv_prog_DLLTOOL"; then
13082   ac_ct_DLLTOOL=$DLLTOOL
13083   # Extract the first word of "dlltool", so it can be a program name with args.
13084 set dummy dlltool; ac_word=$2
13085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13087 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   if test -n "$ac_ct_DLLTOOL"; then
13091   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13092 else
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13095 do
13096   IFS=$as_save_IFS
13097   test -z "$as_dir" && as_dir=.
13098   for ac_exec_ext in '' $ac_executable_extensions; do
13099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13100     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13102     break 2
13103   fi
13104 done
13105 done
13106 IFS=$as_save_IFS
13107
13108 fi
13109 fi
13110 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13111 if test -n "$ac_ct_DLLTOOL"; then
13112   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13113 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
13114 else
13115   { echo "$as_me:$LINENO: result: no" >&5
13116 echo "${ECHO_T}no" >&6; }
13117 fi
13118
13119   if test "x$ac_ct_DLLTOOL" = x; then
13120     DLLTOOL="false"
13121   else
13122     case $cross_compiling:$ac_tool_warned in
13123 yes:)
13124 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13125 whose name does not start with the host triplet.  If you think this
13126 configuration is useful to you, please write to autoconf@gnu.org." >&5
13127 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13128 whose name does not start with the host triplet.  If you think this
13129 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13130 ac_tool_warned=yes ;;
13131 esac
13132     DLLTOOL=$ac_ct_DLLTOOL
13133   fi
13134 else
13135   DLLTOOL="$ac_cv_prog_DLLTOOL"
13136 fi
13137
13138     if test -n "$ac_tool_prefix"; then
13139   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13140 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13143 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13144   echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146   if test -n "$DLLWRAP"; then
13147   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13148 else
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13151 do
13152   IFS=$as_save_IFS
13153   test -z "$as_dir" && as_dir=.
13154   for ac_exec_ext in '' $ac_executable_extensions; do
13155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13158     break 2
13159   fi
13160 done
13161 done
13162 IFS=$as_save_IFS
13163
13164 fi
13165 fi
13166 DLLWRAP=$ac_cv_prog_DLLWRAP
13167 if test -n "$DLLWRAP"; then
13168   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13169 echo "${ECHO_T}$DLLWRAP" >&6; }
13170 else
13171   { echo "$as_me:$LINENO: result: no" >&5
13172 echo "${ECHO_T}no" >&6; }
13173 fi
13174
13175
13176 fi
13177 if test -z "$ac_cv_prog_DLLWRAP"; then
13178   ac_ct_DLLWRAP=$DLLWRAP
13179   # Extract the first word of "dllwrap", so it can be a program name with args.
13180 set dummy dllwrap; ac_word=$2
13181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13183 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13184   echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186   if test -n "$ac_ct_DLLWRAP"; then
13187   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13191 do
13192   IFS=$as_save_IFS
13193   test -z "$as_dir" && as_dir=.
13194   for ac_exec_ext in '' $ac_executable_extensions; do
13195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13198     break 2
13199   fi
13200 done
13201 done
13202 IFS=$as_save_IFS
13203
13204 fi
13205 fi
13206 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13207 if test -n "$ac_ct_DLLWRAP"; then
13208   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13209 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
13210 else
13211   { echo "$as_me:$LINENO: result: no" >&5
13212 echo "${ECHO_T}no" >&6; }
13213 fi
13214
13215   if test "x$ac_ct_DLLWRAP" = x; then
13216     DLLWRAP="false"
13217   else
13218     case $cross_compiling:$ac_tool_warned in
13219 yes:)
13220 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13221 whose name does not start with the host triplet.  If you think this
13222 configuration is useful to you, please write to autoconf@gnu.org." >&5
13223 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13224 whose name does not start with the host triplet.  If you think this
13225 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13226 ac_tool_warned=yes ;;
13227 esac
13228     DLLWRAP=$ac_ct_DLLWRAP
13229   fi
13230 else
13231   DLLWRAP="$ac_cv_prog_DLLWRAP"
13232 fi
13233
13234     if test -n "$ac_tool_prefix"; then
13235   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13236 set dummy ${ac_tool_prefix}ar; ac_word=$2
13237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13239 if test "${ac_cv_prog_MINGWAR+set}" = set; then
13240   echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242   if test -n "$MINGWAR"; then
13243   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
13244 else
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13247 do
13248   IFS=$as_save_IFS
13249   test -z "$as_dir" && as_dir=.
13250   for ac_exec_ext in '' $ac_executable_extensions; do
13251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252     ac_cv_prog_MINGWAR="${ac_tool_prefix}ar"
13253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13254     break 2
13255   fi
13256 done
13257 done
13258 IFS=$as_save_IFS
13259
13260 fi
13261 fi
13262 MINGWAR=$ac_cv_prog_MINGWAR
13263 if test -n "$MINGWAR"; then
13264   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
13265 echo "${ECHO_T}$MINGWAR" >&6; }
13266 else
13267   { echo "$as_me:$LINENO: result: no" >&5
13268 echo "${ECHO_T}no" >&6; }
13269 fi
13270
13271
13272 fi
13273 if test -z "$ac_cv_prog_MINGWAR"; then
13274   ac_ct_MINGWAR=$MINGWAR
13275   # Extract the first word of "ar", so it can be a program name with args.
13276 set dummy ar; ac_word=$2
13277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13279 if test "${ac_cv_prog_ac_ct_MINGWAR+set}" = set; then
13280   echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282   if test -n "$ac_ct_MINGWAR"; then
13283   ac_cv_prog_ac_ct_MINGWAR="$ac_ct_MINGWAR" # Let the user override the test.
13284 else
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13287 do
13288   IFS=$as_save_IFS
13289   test -z "$as_dir" && as_dir=.
13290   for ac_exec_ext in '' $ac_executable_extensions; do
13291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13292     ac_cv_prog_ac_ct_MINGWAR="ar"
13293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13294     break 2
13295   fi
13296 done
13297 done
13298 IFS=$as_save_IFS
13299
13300 fi
13301 fi
13302 ac_ct_MINGWAR=$ac_cv_prog_ac_ct_MINGWAR
13303 if test -n "$ac_ct_MINGWAR"; then
13304   { echo "$as_me:$LINENO: result: $ac_ct_MINGWAR" >&5
13305 echo "${ECHO_T}$ac_ct_MINGWAR" >&6; }
13306 else
13307   { echo "$as_me:$LINENO: result: no" >&5
13308 echo "${ECHO_T}no" >&6; }
13309 fi
13310
13311   if test "x$ac_ct_MINGWAR" = x; then
13312     MINGWAR="false"
13313   else
13314     case $cross_compiling:$ac_tool_warned in
13315 yes:)
13316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13317 whose name does not start with the host triplet.  If you think this
13318 configuration is useful to you, please write to autoconf@gnu.org." >&5
13319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13320 whose name does not start with the host triplet.  If you think this
13321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13322 ac_tool_warned=yes ;;
13323 esac
13324     MINGWAR=$ac_ct_MINGWAR
13325   fi
13326 else
13327   MINGWAR="$ac_cv_prog_MINGWAR"
13328 fi
13329
13330     if test "$DLLWRAP" = "false"; then
13331       LIBEXT="a"
13332     else
13333             LIBEXT="dll"
13334     fi
13335     IMPLIBEXT="a"
13336         WIN16_FILES=""
13337     WIN16_INSTALL=""
13338     ;;
13339   darwin*|macosx*)
13340     DLLEXT=".so"
13341     LIBEXT="dylib"
13342     DLLFLAGS="$DLLFLAGS -fPIC"
13343     LDDLLFLAGS="-bundle -multiply_defined suppress"
13344     LIBWINE_LDFLAGS="-multiply_defined suppress"
13345     LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
13346     STRIP="$STRIP -u -r"
13347         COREFOUNDATIONLIB="-framework CoreFoundation"
13348
13349     IOKITLIB="-framework IOKit -framework CoreFoundation"
13350
13351     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
13352
13353     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
13354     then
13355                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
13356
13357     fi
13358     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
13359     then
13360                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
13361
13362     fi
13363     case $host_cpu in
13364       *powerpc*)
13365         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
13366     esac
13367         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
13368     then
13369         CARBONLIB="-framework Carbon"
13370
13371         QUARTZFILES='$(QUARTZFILES)'
13372     fi
13373     ;;
13374   *)
13375     DLLFLAGS="$DLLFLAGS -fPIC"
13376     DLLEXT=".so"
13377     { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13378 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
13379 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   ac_wine_try_cflags_saved=$CFLAGS
13383 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
13384 cat >conftest.$ac_ext <<_ACEOF
13385 void myfunc() {}
13386 _ACEOF
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (ac_try="$ac_link"
13389 case "(($ac_try" in
13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391   *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394   (eval "$ac_link") 2>conftest.er1
13395   ac_status=$?
13396   grep -v '^ *+' conftest.er1 >conftest.err
13397   rm -f conftest.er1
13398   cat conftest.err >&5
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } && {
13401          test -z "$ac_c_werror_flag" ||
13402          test ! -s conftest.err
13403        } && test -s conftest$ac_exeext &&
13404        $as_test_x conftest$ac_exeext; then
13405   ac_cv_c_dll_gnuelf="yes"
13406 else
13407   echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13409
13410         ac_cv_c_dll_gnuelf="no"
13411 fi
13412
13413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13414       conftest$ac_exeext conftest.$ac_ext
13415 CFLAGS=$ac_wine_try_cflags_saved
13416 fi
13417 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13418 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
13419     if test "$ac_cv_c_dll_gnuelf" = "yes"
13420     then
13421       LDSHARED="\$(CC) -shared"
13422       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13423       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
13424 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
13425 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
13426   echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428   ac_wine_try_cflags_saved=$CFLAGS
13429 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
13430 cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436
13437 int
13438 main ()
13439 {
13440
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 rm -f conftest.$ac_objext conftest$ac_exeext
13446 if { (ac_try="$ac_link"
13447 case "(($ac_try" in
13448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449   *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452   (eval "$ac_link") 2>conftest.er1
13453   ac_status=$?
13454   grep -v '^ *+' conftest.er1 >conftest.err
13455   rm -f conftest.er1
13456   cat conftest.err >&5
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); } && {
13459          test -z "$ac_c_werror_flag" ||
13460          test ! -s conftest.err
13461        } && test -s conftest$ac_exeext &&
13462        $as_test_x conftest$ac_exeext; then
13463   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
13464 else
13465   echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13467
13468         ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
13469 fi
13470
13471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13472       conftest$ac_exeext conftest.$ac_ext
13473 CFLAGS=$ac_wine_try_cflags_saved
13474 fi
13475 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
13476 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
13477 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
13478   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13479 else
13480   { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
13481 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
13482 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485   ac_wine_try_cflags_saved=$CFLAGS
13486 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
13487 cat >conftest.$ac_ext <<_ACEOF
13488 /* confdefs.h.  */
13489 _ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h.  */
13493
13494 int
13495 main ()
13496 {
13497
13498   ;
13499   return 0;
13500 }
13501 _ACEOF
13502 rm -f conftest.$ac_objext conftest$ac_exeext
13503 if { (ac_try="$ac_link"
13504 case "(($ac_try" in
13505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506   *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509   (eval "$ac_link") 2>conftest.er1
13510   ac_status=$?
13511   grep -v '^ *+' conftest.er1 >conftest.err
13512   rm -f conftest.er1
13513   cat conftest.err >&5
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); } && {
13516          test -z "$ac_c_werror_flag" ||
13517          test ! -s conftest.err
13518        } && test -s conftest$ac_exeext &&
13519        $as_test_x conftest$ac_exeext; then
13520   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
13521 else
13522   echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13524
13525         ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
13526 fi
13527
13528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13529       conftest$ac_exeext conftest.$ac_ext
13530 CFLAGS=$ac_wine_try_cflags_saved
13531 fi
13532 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
13533 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
13534 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
13535   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
13536 fi
13537
13538 fi
13539
13540
13541       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
13542 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
13543 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
13544   echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546   ac_wine_try_cflags_saved=$CFLAGS
13547 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13548 cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h.  */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h.  */
13554
13555 int
13556 main ()
13557 {
13558
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 rm -f conftest.$ac_objext conftest$ac_exeext
13564 if { (ac_try="$ac_link"
13565 case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570   (eval "$ac_link") 2>conftest.er1
13571   ac_status=$?
13572   grep -v '^ *+' conftest.er1 >conftest.err
13573   rm -f conftest.er1
13574   cat conftest.err >&5
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); } && {
13577          test -z "$ac_c_werror_flag" ||
13578          test ! -s conftest.err
13579        } && test -s conftest$ac_exeext &&
13580        $as_test_x conftest$ac_exeext; then
13581   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
13582 else
13583   echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
13587 fi
13588
13589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13590       conftest$ac_exeext conftest.$ac_ext
13591 CFLAGS=$ac_wine_try_cflags_saved
13592 fi
13593 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
13594 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
13595 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
13596   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13597 fi
13598
13599
13600       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
13601 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
13602 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
13603   echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605   ac_wine_try_cflags_saved=$CFLAGS
13606 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13607 cat >conftest.$ac_ext <<_ACEOF
13608 /* confdefs.h.  */
13609 _ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h.  */
13613
13614 int
13615 main ()
13616 {
13617
13618   ;
13619   return 0;
13620 }
13621 _ACEOF
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (ac_try="$ac_link"
13624 case "(($ac_try" in
13625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626   *) ac_try_echo=$ac_try;;
13627 esac
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629   (eval "$ac_link") 2>conftest.er1
13630   ac_status=$?
13631   grep -v '^ *+' conftest.er1 >conftest.err
13632   rm -f conftest.er1
13633   cat conftest.err >&5
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); } && {
13636          test -z "$ac_c_werror_flag" ||
13637          test ! -s conftest.err
13638        } && test -s conftest$ac_exeext &&
13639        $as_test_x conftest$ac_exeext; then
13640   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
13641 else
13642   echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13644
13645         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
13646 fi
13647
13648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13649       conftest$ac_exeext conftest.$ac_ext
13650 CFLAGS=$ac_wine_try_cflags_saved
13651 fi
13652 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
13653 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
13654 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
13655   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13656 fi
13657
13658
13659       echo '{ global: *; };' >conftest.map
13660       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
13661 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
13662 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
13663   echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665   ac_wine_try_cflags_saved=$CFLAGS
13666 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673
13674 int
13675 main ()
13676 {
13677
13678   ;
13679   return 0;
13680 }
13681 _ACEOF
13682 rm -f conftest.$ac_objext conftest$ac_exeext
13683 if { (ac_try="$ac_link"
13684 case "(($ac_try" in
13685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13686   *) ac_try_echo=$ac_try;;
13687 esac
13688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13689   (eval "$ac_link") 2>conftest.er1
13690   ac_status=$?
13691   grep -v '^ *+' conftest.er1 >conftest.err
13692   rm -f conftest.er1
13693   cat conftest.err >&5
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); } && {
13696          test -z "$ac_c_werror_flag" ||
13697          test ! -s conftest.err
13698        } && test -s conftest$ac_exeext &&
13699        $as_test_x conftest$ac_exeext; then
13700   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
13701 else
13702   echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13704
13705         ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
13706 fi
13707
13708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13709       conftest$ac_exeext conftest.$ac_ext
13710 CFLAGS=$ac_wine_try_cflags_saved
13711 fi
13712 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
13713 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
13714 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
13715   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13716 fi
13717
13718       rm -f conftest.map
13719
13720       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
13721 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
13722 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
13723   echo $ECHO_N "(cached) $ECHO_C" >&6
13724 else
13725   ac_wine_try_cflags_saved=$CFLAGS
13726 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13727 cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733
13734 int
13735 main ()
13736 {
13737
13738   ;
13739   return 0;
13740 }
13741 _ACEOF
13742 rm -f conftest.$ac_objext conftest$ac_exeext
13743 if { (ac_try="$ac_link"
13744 case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_link") 2>conftest.er1
13750   ac_status=$?
13751   grep -v '^ *+' conftest.er1 >conftest.err
13752   rm -f conftest.er1
13753   cat conftest.err >&5
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } && {
13756          test -z "$ac_c_werror_flag" ||
13757          test ! -s conftest.err
13758        } && test -s conftest$ac_exeext &&
13759        $as_test_x conftest$ac_exeext; then
13760   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
13761 else
13762   echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13764
13765         ac_cv_cflags__fPIC__Wl___export_dynamic=no
13766 fi
13767
13768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13769       conftest$ac_exeext conftest.$ac_ext
13770 CFLAGS=$ac_wine_try_cflags_saved
13771 fi
13772 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
13773 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
13774 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
13775   LDEXECFLAGS="-Wl,--export-dynamic"
13776
13777 fi
13778
13779
13780       as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
13781 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
13782 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
13783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13784   echo $ECHO_N "(cached) $ECHO_C" >&6
13785 else
13786   ac_wine_try_cflags_saved=$CFLAGS
13787 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
13788 cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h.  */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h.  */
13794
13795 int
13796 main ()
13797 {
13798
13799   ;
13800   return 0;
13801 }
13802 _ACEOF
13803 rm -f conftest.$ac_objext conftest$ac_exeext
13804 if { (ac_try="$ac_link"
13805 case "(($ac_try" in
13806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807   *) ac_try_echo=$ac_try;;
13808 esac
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810   (eval "$ac_link") 2>conftest.er1
13811   ac_status=$?
13812   grep -v '^ *+' conftest.er1 >conftest.err
13813   rm -f conftest.er1
13814   cat conftest.err >&5
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); } && {
13817          test -z "$ac_c_werror_flag" ||
13818          test ! -s conftest.err
13819        } && test -s conftest$ac_exeext &&
13820        $as_test_x conftest$ac_exeext; then
13821   eval "$as_ac_var=yes"
13822 else
13823   echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13825
13826         eval "$as_ac_var=no"
13827 fi
13828
13829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13830       conftest$ac_exeext conftest.$ac_ext
13831 CFLAGS=$ac_wine_try_cflags_saved
13832 fi
13833 ac_res=`eval echo '${'$as_ac_var'}'`
13834                { echo "$as_me:$LINENO: result: $ac_res" >&5
13835 echo "${ECHO_T}$ac_res" >&6; }
13836 if test `eval echo '${'$as_ac_var'}'` = yes; then
13837   LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
13838 fi
13839
13840
13841       case $host_cpu in
13842         *i[3456789]86* | x86_64)
13843           { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
13844 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
13845 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
13846   echo $ECHO_N "(cached) $ECHO_C" >&6
13847 else
13848   ac_wine_try_cflags_saved=$CFLAGS
13849 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
13850 cat >conftest.$ac_ext <<_ACEOF
13851 /* confdefs.h.  */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h.  */
13856
13857 int
13858 main ()
13859 {
13860
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (ac_try="$ac_link"
13867 case "(($ac_try" in
13868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869   *) ac_try_echo=$ac_try;;
13870 esac
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872   (eval "$ac_link") 2>conftest.er1
13873   ac_status=$?
13874   grep -v '^ *+' conftest.er1 >conftest.err
13875   rm -f conftest.er1
13876   cat conftest.err >&5
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } && {
13879          test -z "$ac_c_werror_flag" ||
13880          test ! -s conftest.err
13881        } && test -s conftest$ac_exeext &&
13882        $as_test_x conftest$ac_exeext; then
13883   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
13884 else
13885   echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13887
13888         ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
13889 fi
13890
13891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13892       conftest$ac_exeext conftest.$ac_ext
13893 CFLAGS=$ac_wine_try_cflags_saved
13894 fi
13895 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
13896 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
13897 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
13898   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
13899 fi
13900
13901           ;;
13902       esac
13903
13904     else
13905       { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13906 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
13907 if test "${ac_cv_c_dll_unixware+set}" = set; then
13908   echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910   ac_wine_try_cflags_saved=$CFLAGS
13911 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13912 cat >conftest.$ac_ext <<_ACEOF
13913 void myfunc() {}
13914 _ACEOF
13915 rm -f conftest.$ac_objext conftest$ac_exeext
13916 if { (ac_try="$ac_link"
13917 case "(($ac_try" in
13918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919   *) ac_try_echo=$ac_try;;
13920 esac
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922   (eval "$ac_link") 2>conftest.er1
13923   ac_status=$?
13924   grep -v '^ *+' conftest.er1 >conftest.err
13925   rm -f conftest.er1
13926   cat conftest.err >&5
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); } && {
13929          test -z "$ac_c_werror_flag" ||
13930          test ! -s conftest.err
13931        } && test -s conftest$ac_exeext &&
13932        $as_test_x conftest$ac_exeext; then
13933   ac_cv_c_dll_unixware="yes"
13934 else
13935   echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13937
13938         ac_cv_c_dll_unixware="no"
13939 fi
13940
13941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13942       conftest$ac_exeext conftest.$ac_ext
13943 CFLAGS=$ac_wine_try_cflags_saved
13944 fi
13945 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13946 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
13947       if test "$ac_cv_c_dll_unixware" = "yes"
13948       then
13949         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13950         LDDLLFLAGS="-Wl,-G,-B,symbolic"
13951
13952       else
13953         { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
13954 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
13955 if test "${ac_cv_c_dll_hpux+set}" = set; then
13956   echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958   ac_wine_try_cflags_saved=$CFLAGS
13959 CFLAGS="$CFLAGS -shared"
13960 cat >conftest.$ac_ext <<_ACEOF
13961 void myfunc() {}
13962 _ACEOF
13963 rm -f conftest.$ac_objext conftest$ac_exeext
13964 if { (ac_try="$ac_link"
13965 case "(($ac_try" in
13966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967   *) ac_try_echo=$ac_try;;
13968 esac
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970   (eval "$ac_link") 2>conftest.er1
13971   ac_status=$?
13972   grep -v '^ *+' conftest.er1 >conftest.err
13973   rm -f conftest.er1
13974   cat conftest.err >&5
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); } && {
13977          test -z "$ac_c_werror_flag" ||
13978          test ! -s conftest.err
13979        } && test -s conftest$ac_exeext &&
13980        $as_test_x conftest$ac_exeext; then
13981   ac_cv_c_dll_hpux="yes"
13982 else
13983   echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13985
13986         ac_cv_c_dll_hpux="no"
13987 fi
13988
13989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13990       conftest$ac_exeext conftest.$ac_ext
13991 CFLAGS=$ac_wine_try_cflags_saved
13992 fi
13993 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
13994 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
13995         if test "$ac_cv_c_dll_hpux" = "yes"
13996         then
13997           LIBEXT="sl"
13998           DLLEXT=".sl"
13999           LDDLLFLAGS="-shared -fPIC"
14000           LDSHARED="\$(CC) -shared"
14001         fi
14002       fi
14003     fi
14004
14005         CROSSTEST=""
14006
14007     if test "$cross_compiling" = "no"
14008     then
14009       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
14010 do
14011   # Extract the first word of "$ac_prog", so it can be a program name with args.
14012 set dummy $ac_prog; ac_word=$2
14013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14015 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   if test -n "$CROSSCC"; then
14019   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14020 else
14021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14023 do
14024   IFS=$as_save_IFS
14025   test -z "$as_dir" && as_dir=.
14026   for ac_exec_ext in '' $ac_executable_extensions; do
14027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14028     ac_cv_prog_CROSSCC="$ac_prog"
14029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14030     break 2
14031   fi
14032 done
14033 done
14034 IFS=$as_save_IFS
14035
14036 fi
14037 fi
14038 CROSSCC=$ac_cv_prog_CROSSCC
14039 if test -n "$CROSSCC"; then
14040   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
14041 echo "${ECHO_T}$CROSSCC" >&6; }
14042 else
14043   { echo "$as_me:$LINENO: result: no" >&5
14044 echo "${ECHO_T}no" >&6; }
14045 fi
14046
14047
14048   test -n "$CROSSCC" && break
14049 done
14050 test -n "$CROSSCC" || CROSSCC="false"
14051
14052       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
14053 do
14054   # Extract the first word of "$ac_prog", so it can be a program name with args.
14055 set dummy $ac_prog; ac_word=$2
14056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14058 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061   if test -n "$DLLTOOL"; then
14062   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14063 else
14064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14065 for as_dir in $PATH
14066 do
14067   IFS=$as_save_IFS
14068   test -z "$as_dir" && as_dir=.
14069   for ac_exec_ext in '' $ac_executable_extensions; do
14070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14071     ac_cv_prog_DLLTOOL="$ac_prog"
14072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14073     break 2
14074   fi
14075 done
14076 done
14077 IFS=$as_save_IFS
14078
14079 fi
14080 fi
14081 DLLTOOL=$ac_cv_prog_DLLTOOL
14082 if test -n "$DLLTOOL"; then
14083   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14084 echo "${ECHO_T}$DLLTOOL" >&6; }
14085 else
14086   { echo "$as_me:$LINENO: result: no" >&5
14087 echo "${ECHO_T}no" >&6; }
14088 fi
14089
14090
14091   test -n "$DLLTOOL" && break
14092 done
14093 test -n "$DLLTOOL" || DLLTOOL="false"
14094
14095       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
14096 do
14097   # Extract the first word of "$ac_prog", so it can be a program name with args.
14098 set dummy $ac_prog; ac_word=$2
14099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14101 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   if test -n "$CROSSWINDRES"; then
14105   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14106 else
14107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14108 for as_dir in $PATH
14109 do
14110   IFS=$as_save_IFS
14111   test -z "$as_dir" && as_dir=.
14112   for ac_exec_ext in '' $ac_executable_extensions; do
14113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14114     ac_cv_prog_CROSSWINDRES="$ac_prog"
14115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14116     break 2
14117   fi
14118 done
14119 done
14120 IFS=$as_save_IFS
14121
14122 fi
14123 fi
14124 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14125 if test -n "$CROSSWINDRES"; then
14126   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14127 echo "${ECHO_T}$CROSSWINDRES" >&6; }
14128 else
14129   { echo "$as_me:$LINENO: result: no" >&5
14130 echo "${ECHO_T}no" >&6; }
14131 fi
14132
14133
14134   test -n "$CROSSWINDRES" && break
14135 done
14136 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14137
14138       for ac_prog in i586-mingw32msvc-ar i386-mingw32msvc-ar i386-mingw32-ar mingw32-ar mingw-ar
14139 do
14140   # Extract the first word of "$ac_prog", so it can be a program name with args.
14141 set dummy $ac_prog; ac_word=$2
14142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14144 if test "${ac_cv_prog_MINGWAR+set}" = set; then
14145   echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147   if test -n "$MINGWAR"; then
14148   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
14149 else
14150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14151 for as_dir in $PATH
14152 do
14153   IFS=$as_save_IFS
14154   test -z "$as_dir" && as_dir=.
14155   for ac_exec_ext in '' $ac_executable_extensions; do
14156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14157     ac_cv_prog_MINGWAR="$ac_prog"
14158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14159     break 2
14160   fi
14161 done
14162 done
14163 IFS=$as_save_IFS
14164
14165 fi
14166 fi
14167 MINGWAR=$ac_cv_prog_MINGWAR
14168 if test -n "$MINGWAR"; then
14169   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
14170 echo "${ECHO_T}$MINGWAR" >&6; }
14171 else
14172   { echo "$as_me:$LINENO: result: no" >&5
14173 echo "${ECHO_T}no" >&6; }
14174 fi
14175
14176
14177   test -n "$MINGWAR" && break
14178 done
14179 test -n "$MINGWAR" || MINGWAR="false"
14180
14181       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14182     fi
14183     ;;
14184 esac
14185
14186 if test "$LIBEXT" = "a"; then
14187   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14188 It is currently not possible to build Wine without shared library
14189 (.so) support to allow transparent switch between .so and .dll files.
14190 If you are using Linux, you will need a newer binutils.
14191 " >&5
14192 echo "$as_me: error: could not find a way to build shared libraries.
14193 It is currently not possible to build Wine without shared library
14194 (.so) support to allow transparent switch between .so and .dll files.
14195 If you are using Linux, you will need a newer binutils.
14196 " >&2;}
14197    { (exit 1); exit 1; }; }
14198 fi
14199
14200 case $build_os in
14201   cygwin*|mingw32*)
14202     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
14203  ;;
14204   darwin*|macosx*)
14205     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
14206  ;;
14207   *)
14208     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
14209  ;;
14210 esac
14211
14212 case $host_os in
14213   mingw32*)
14214     CRTLIBS="-lmsvcrt"
14215
14216     SOCKETLIBS="-lws2_32"
14217
14218     ;;
14219 esac
14220
14221 MAIN_BINARY="wine-pthread"
14222   case $host_cpu in
14223   *i[3456789]86*)
14224     case $host_os in
14225       linux* | k*bsd*-gnu)
14226         MAIN_BINARY="wine-glibc"
14227
14228         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
14229  ;;
14230     esac
14231     ;;
14232 esac
14233
14234
14235 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14236 then
14237   # Extract the first word of "ldd", so it can be a program name with args.
14238 set dummy ldd; ac_word=$2
14239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14241 if test "${ac_cv_path_LDD+set}" = set; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244   case $LDD in
14245   [\\/]* | ?:[\\/]*)
14246   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14247   ;;
14248   *)
14249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 as_dummy="/sbin:/usr/sbin:$PATH"
14251 for as_dir in $as_dummy
14252 do
14253   IFS=$as_save_IFS
14254   test -z "$as_dir" && as_dir=.
14255   for ac_exec_ext in '' $ac_executable_extensions; do
14256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14257     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14259     break 2
14260   fi
14261 done
14262 done
14263 IFS=$as_save_IFS
14264
14265   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14266   ;;
14267 esac
14268 fi
14269 LDD=$ac_cv_path_LDD
14270 if test -n "$LDD"; then
14271   { echo "$as_me:$LINENO: result: $LDD" >&5
14272 echo "${ECHO_T}$LDD" >&6; }
14273 else
14274   { echo "$as_me:$LINENO: result: no" >&5
14275 echo "${ECHO_T}no" >&6; }
14276 fi
14277
14278
14279 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14280 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
14281 if test "${ac_cv_lib_soname_X11+set}" = set; then
14282   echo $ECHO_N "(cached) $ECHO_C" >&6
14283 else
14284   ac_get_soname_save_LIBS=$LIBS
14285 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14286   cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292
14293 /* Override any GCC internal prototype to avoid an error.
14294    Use char because int might match the return type of a GCC
14295    builtin and then its argument prototype would still apply.  */
14296 #ifdef __cplusplus
14297 extern "C"
14298 #endif
14299 char XCreateWindow ();
14300 int
14301 main ()
14302 {
14303 return XCreateWindow ();
14304   ;
14305   return 0;
14306 }
14307 _ACEOF
14308 rm -f conftest.$ac_objext conftest$ac_exeext
14309 if { (ac_try="$ac_link"
14310 case "(($ac_try" in
14311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312   *) ac_try_echo=$ac_try;;
14313 esac
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315   (eval "$ac_link") 2>conftest.er1
14316   ac_status=$?
14317   grep -v '^ *+' conftest.er1 >conftest.err
14318   rm -f conftest.er1
14319   cat conftest.err >&5
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); } && {
14322          test -z "$ac_c_werror_flag" ||
14323          test ! -s conftest.err
14324        } && test -s conftest$ac_exeext &&
14325        $as_test_x conftest$ac_exeext; then
14326   case "$LIBEXT" in
14327     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'` ;;
14328     so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^        ]*\).*$/\1/"';2,$d'` ;;
14329   esac
14330   if test "x$ac_cv_lib_soname_X11" = "x"
14331   then
14332      ac_cv_lib_soname_X11="libX11.$LIBEXT"
14333   fi
14334 else
14335   echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14337
14338         ac_cv_lib_soname_X11="libX11.$LIBEXT"
14339 fi
14340
14341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14342       conftest$ac_exeext conftest.$ac_ext
14343   LIBS=$ac_get_soname_save_LIBS
14344 fi
14345 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14346 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
14347 if test "${ac_cv_lib_soname_X11+set}" = set; then
14348
14349 cat >>confdefs.h <<_ACEOF
14350 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14351 _ACEOF
14352
14353 fi
14354
14355   { echo "$as_me:$LINENO: checking for -lXext soname" >&5
14356 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
14357 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   ac_get_soname_save_LIBS=$LIBS
14361 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14362   cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368
14369 /* Override any GCC internal prototype to avoid an error.
14370    Use char because int might match the return type of a GCC
14371    builtin and then its argument prototype would still apply.  */
14372 #ifdef __cplusplus
14373 extern "C"
14374 #endif
14375 char XextCreateExtension ();
14376 int
14377 main ()
14378 {
14379 return XextCreateExtension ();
14380   ;
14381   return 0;
14382 }
14383 _ACEOF
14384 rm -f conftest.$ac_objext conftest$ac_exeext
14385 if { (ac_try="$ac_link"
14386 case "(($ac_try" in
14387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388   *) ac_try_echo=$ac_try;;
14389 esac
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391   (eval "$ac_link") 2>conftest.er1
14392   ac_status=$?
14393   grep -v '^ *+' conftest.er1 >conftest.err
14394   rm -f conftest.er1
14395   cat conftest.err >&5
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); } && {
14398          test -z "$ac_c_werror_flag" ||
14399          test ! -s conftest.err
14400        } && test -s conftest$ac_exeext &&
14401        $as_test_x conftest$ac_exeext; then
14402   case "$LIBEXT" in
14403     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'` ;;
14404     so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^     ]*\).*$/\1/"';2,$d'` ;;
14405   esac
14406   if test "x$ac_cv_lib_soname_Xext" = "x"
14407   then
14408      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14409   fi
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414         ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14415 fi
14416
14417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14418       conftest$ac_exeext conftest.$ac_ext
14419   LIBS=$ac_get_soname_save_LIBS
14420 fi
14421 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14422 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
14423 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14424
14425 cat >>confdefs.h <<_ACEOF
14426 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14427 _ACEOF
14428
14429 fi
14430
14431   { echo "$as_me:$LINENO: checking for -lXi soname" >&5
14432 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
14433 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14434   echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436   ac_get_soname_save_LIBS=$LIBS
14437 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14438   cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h.  */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h.  */
14444
14445 /* Override any GCC internal prototype to avoid an error.
14446    Use char because int might match the return type of a GCC
14447    builtin and then its argument prototype would still apply.  */
14448 #ifdef __cplusplus
14449 extern "C"
14450 #endif
14451 char XOpenDevice ();
14452 int
14453 main ()
14454 {
14455 return XOpenDevice ();
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (ac_try="$ac_link"
14462 case "(($ac_try" in
14463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464   *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467   (eval "$ac_link") 2>conftest.er1
14468   ac_status=$?
14469   grep -v '^ *+' conftest.er1 >conftest.err
14470   rm -f conftest.er1
14471   cat conftest.err >&5
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); } && {
14474          test -z "$ac_c_werror_flag" ||
14475          test ! -s conftest.err
14476        } && test -s conftest$ac_exeext &&
14477        $as_test_x conftest$ac_exeext; then
14478   case "$LIBEXT" in
14479     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'` ;;
14480     so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^   ]*\).*$/\1/"';2,$d'` ;;
14481   esac
14482   if test "x$ac_cv_lib_soname_Xi" = "x"
14483   then
14484      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14485   fi
14486 else
14487   echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14489
14490         ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14491 fi
14492
14493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14494       conftest$ac_exeext conftest.$ac_ext
14495   LIBS=$ac_get_soname_save_LIBS
14496 fi
14497 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14498 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
14499 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14500
14501 cat >>confdefs.h <<_ACEOF
14502 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14503 _ACEOF
14504
14505 fi
14506
14507   { echo "$as_me:$LINENO: checking for -lXinerama soname" >&5
14508 echo $ECHO_N "checking for -lXinerama soname... $ECHO_C" >&6; }
14509 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14510   echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512   ac_get_soname_save_LIBS=$LIBS
14513 LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14514   cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h.  */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h.  */
14520
14521 /* Override any GCC internal prototype to avoid an error.
14522    Use char because int might match the return type of a GCC
14523    builtin and then its argument prototype would still apply.  */
14524 #ifdef __cplusplus
14525 extern "C"
14526 #endif
14527 char XineramaQueryScreens ();
14528 int
14529 main ()
14530 {
14531 return XineramaQueryScreens ();
14532   ;
14533   return 0;
14534 }
14535 _ACEOF
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540   *) ac_try_echo=$ac_try;;
14541 esac
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543   (eval "$ac_link") 2>conftest.er1
14544   ac_status=$?
14545   grep -v '^ *+' conftest.er1 >conftest.err
14546   rm -f conftest.er1
14547   cat conftest.err >&5
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); } && {
14550          test -z "$ac_c_werror_flag" ||
14551          test ! -s conftest.err
14552        } && test -s conftest$ac_exeext &&
14553        $as_test_x conftest$ac_exeext; then
14554   case "$LIBEXT" in
14555     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'` ;;
14556     so) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep libXinerama\\.so | sed -e "s/^.*\(libXinerama\.so[^         ]*\).*$/\1/"';2,$d'` ;;
14557   esac
14558   if test "x$ac_cv_lib_soname_Xinerama" = "x"
14559   then
14560      ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14561   fi
14562 else
14563   echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14565
14566         ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14567 fi
14568
14569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14570       conftest$ac_exeext conftest.$ac_ext
14571   LIBS=$ac_get_soname_save_LIBS
14572 fi
14573 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
14574 echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
14575 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14576
14577 cat >>confdefs.h <<_ACEOF
14578 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
14579 _ACEOF
14580
14581 fi
14582
14583   { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14584 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
14585 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14586   echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588   ac_get_soname_save_LIBS=$LIBS
14589 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14590   cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h.  */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h.  */
14596
14597 /* Override any GCC internal prototype to avoid an error.
14598    Use char because int might match the return type of a GCC
14599    builtin and then its argument prototype would still apply.  */
14600 #ifdef __cplusplus
14601 extern "C"
14602 #endif
14603 char XRenderQueryExtension ();
14604 int
14605 main ()
14606 {
14607 return XRenderQueryExtension ();
14608   ;
14609   return 0;
14610 }
14611 _ACEOF
14612 rm -f conftest.$ac_objext conftest$ac_exeext
14613 if { (ac_try="$ac_link"
14614 case "(($ac_try" in
14615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616   *) ac_try_echo=$ac_try;;
14617 esac
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619   (eval "$ac_link") 2>conftest.er1
14620   ac_status=$?
14621   grep -v '^ *+' conftest.er1 >conftest.err
14622   rm -f conftest.er1
14623   cat conftest.err >&5
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); } && {
14626          test -z "$ac_c_werror_flag" ||
14627          test ! -s conftest.err
14628        } && test -s conftest$ac_exeext &&
14629        $as_test_x conftest$ac_exeext; then
14630   case "$LIBEXT" in
14631     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'` ;;
14632     so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^    ]*\).*$/\1/"';2,$d'` ;;
14633   esac
14634   if test "x$ac_cv_lib_soname_Xrender" = "x"
14635   then
14636      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14637   fi
14638 else
14639   echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642         ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14643 fi
14644
14645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14646       conftest$ac_exeext conftest.$ac_ext
14647   LIBS=$ac_get_soname_save_LIBS
14648 fi
14649 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14650 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
14651 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14652
14653 cat >>confdefs.h <<_ACEOF
14654 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14655 _ACEOF
14656
14657 fi
14658
14659   { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14660 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
14661 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   ac_get_soname_save_LIBS=$LIBS
14665 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14666   cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h.  */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h.  */
14672
14673 /* Override any GCC internal prototype to avoid an error.
14674    Use char because int might match the return type of a GCC
14675    builtin and then its argument prototype would still apply.  */
14676 #ifdef __cplusplus
14677 extern "C"
14678 #endif
14679 char XRRQueryExtension ();
14680 int
14681 main ()
14682 {
14683 return XRRQueryExtension ();
14684   ;
14685   return 0;
14686 }
14687 _ACEOF
14688 rm -f conftest.$ac_objext conftest$ac_exeext
14689 if { (ac_try="$ac_link"
14690 case "(($ac_try" in
14691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14692   *) ac_try_echo=$ac_try;;
14693 esac
14694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14695   (eval "$ac_link") 2>conftest.er1
14696   ac_status=$?
14697   grep -v '^ *+' conftest.er1 >conftest.err
14698   rm -f conftest.er1
14699   cat conftest.err >&5
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); } && {
14702          test -z "$ac_c_werror_flag" ||
14703          test ! -s conftest.err
14704        } && test -s conftest$ac_exeext &&
14705        $as_test_x conftest$ac_exeext; then
14706   case "$LIBEXT" in
14707     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'` ;;
14708     so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^       ]*\).*$/\1/"';2,$d'` ;;
14709   esac
14710   if test "x$ac_cv_lib_soname_Xrandr" = "x"
14711   then
14712      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14713   fi
14714 else
14715   echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718         ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14719 fi
14720
14721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14722       conftest$ac_exeext conftest.$ac_ext
14723   LIBS=$ac_get_soname_save_LIBS
14724 fi
14725 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14726 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
14727 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14728
14729 cat >>confdefs.h <<_ACEOF
14730 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14731 _ACEOF
14732
14733 fi
14734
14735   { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14736 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
14737 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14738   echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740   ac_get_soname_save_LIBS=$LIBS
14741 LIBS="-lfreetype $X_LIBS $LIBS"
14742   cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h.  */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h.  */
14748
14749 /* Override any GCC internal prototype to avoid an error.
14750    Use char because int might match the return type of a GCC
14751    builtin and then its argument prototype would still apply.  */
14752 #ifdef __cplusplus
14753 extern "C"
14754 #endif
14755 char FT_Init_FreeType ();
14756 int
14757 main ()
14758 {
14759 return FT_Init_FreeType ();
14760   ;
14761   return 0;
14762 }
14763 _ACEOF
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (ac_try="$ac_link"
14766 case "(($ac_try" in
14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768   *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771   (eval "$ac_link") 2>conftest.er1
14772   ac_status=$?
14773   grep -v '^ *+' conftest.er1 >conftest.err
14774   rm -f conftest.er1
14775   cat conftest.err >&5
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } && {
14778          test -z "$ac_c_werror_flag" ||
14779          test ! -s conftest.err
14780        } && test -s conftest$ac_exeext &&
14781        $as_test_x conftest$ac_exeext; then
14782   case "$LIBEXT" in
14783     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'` ;;
14784     so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^         ]*\).*$/\1/"';2,$d'` ;;
14785   esac
14786   if test "x$ac_cv_lib_soname_freetype" = "x"
14787   then
14788      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14789   fi
14790 else
14791   echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14793
14794         ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14795 fi
14796
14797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14798       conftest$ac_exeext conftest.$ac_ext
14799   LIBS=$ac_get_soname_save_LIBS
14800 fi
14801 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14802 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
14803 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14804
14805 cat >>confdefs.h <<_ACEOF
14806 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14807 _ACEOF
14808
14809 fi
14810
14811   { echo "$as_me:$LINENO: checking for -lGL soname" >&5
14812 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
14813 if test "${ac_cv_lib_soname_GL+set}" = set; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   ac_get_soname_save_LIBS=$LIBS
14817 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14818   cat >conftest.$ac_ext <<_ACEOF
14819 /* confdefs.h.  */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h.  */
14824
14825 /* Override any GCC internal prototype to avoid an error.
14826    Use char because int might match the return type of a GCC
14827    builtin and then its argument prototype would still apply.  */
14828 #ifdef __cplusplus
14829 extern "C"
14830 #endif
14831 char glXQueryExtension ();
14832 int
14833 main ()
14834 {
14835 return glXQueryExtension ();
14836   ;
14837   return 0;
14838 }
14839 _ACEOF
14840 rm -f conftest.$ac_objext conftest$ac_exeext
14841 if { (ac_try="$ac_link"
14842 case "(($ac_try" in
14843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844   *) ac_try_echo=$ac_try;;
14845 esac
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847   (eval "$ac_link") 2>conftest.er1
14848   ac_status=$?
14849   grep -v '^ *+' conftest.er1 >conftest.err
14850   rm -f conftest.er1
14851   cat conftest.err >&5
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } && {
14854          test -z "$ac_c_werror_flag" ||
14855          test ! -s conftest.err
14856        } && test -s conftest$ac_exeext &&
14857        $as_test_x conftest$ac_exeext; then
14858   case "$LIBEXT" in
14859     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'` ;;
14860     so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^   ]*\).*$/\1/"';2,$d'` ;;
14861   esac
14862   if test "x$ac_cv_lib_soname_GL" = "x"
14863   then
14864      ac_cv_lib_soname_GL="libGL.$LIBEXT"
14865   fi
14866 else
14867   echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870         ac_cv_lib_soname_GL="libGL.$LIBEXT"
14871 fi
14872
14873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14874       conftest$ac_exeext conftest.$ac_ext
14875   LIBS=$ac_get_soname_save_LIBS
14876 fi
14877 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14878 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
14879 if test "${ac_cv_lib_soname_GL+set}" = set; then
14880
14881 cat >>confdefs.h <<_ACEOF
14882 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14883 _ACEOF
14884
14885 fi
14886
14887   { echo "$as_me:$LINENO: checking for -lhal soname" >&5
14888 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
14889 if test "${ac_cv_lib_soname_hal+set}" = set; then
14890   echo $ECHO_N "(cached) $ECHO_C" >&6
14891 else
14892   ac_get_soname_save_LIBS=$LIBS
14893 LIBS="-lhal  $LIBS"
14894   cat >conftest.$ac_ext <<_ACEOF
14895 /* confdefs.h.  */
14896 _ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h.  */
14900
14901 /* Override any GCC internal prototype to avoid an error.
14902    Use char because int might match the return type of a GCC
14903    builtin and then its argument prototype would still apply.  */
14904 #ifdef __cplusplus
14905 extern "C"
14906 #endif
14907 char libhal_ctx_new ();
14908 int
14909 main ()
14910 {
14911 return libhal_ctx_new ();
14912   ;
14913   return 0;
14914 }
14915 _ACEOF
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (ac_try="$ac_link"
14918 case "(($ac_try" in
14919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920   *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923   (eval "$ac_link") 2>conftest.er1
14924   ac_status=$?
14925   grep -v '^ *+' conftest.er1 >conftest.err
14926   rm -f conftest.er1
14927   cat conftest.err >&5
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); } && {
14930          test -z "$ac_c_werror_flag" ||
14931          test ! -s conftest.err
14932        } && test -s conftest$ac_exeext &&
14933        $as_test_x conftest$ac_exeext; then
14934   case "$LIBEXT" in
14935     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'` ;;
14936     so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^        ]*\).*$/\1/"';2,$d'` ;;
14937   esac
14938   if test "x$ac_cv_lib_soname_hal" = "x"
14939   then
14940      ac_cv_lib_soname_hal="libhal.$LIBEXT"
14941   fi
14942 else
14943   echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14945
14946         ac_cv_lib_soname_hal="libhal.$LIBEXT"
14947 fi
14948
14949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14950       conftest$ac_exeext conftest.$ac_ext
14951   LIBS=$ac_get_soname_save_LIBS
14952 fi
14953 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
14954 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
14955 if test "${ac_cv_lib_soname_hal+set}" = set; then
14956
14957 cat >>confdefs.h <<_ACEOF
14958 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
14959 _ACEOF
14960
14961 fi
14962
14963   { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14964 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
14965 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14966   echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968   ac_get_soname_save_LIBS=$LIBS
14969 LIBS="-ltxc_dxtn  $LIBS"
14970   cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h.  */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h.  */
14976
14977 /* Override any GCC internal prototype to avoid an error.
14978    Use char because int might match the return type of a GCC
14979    builtin and then its argument prototype would still apply.  */
14980 #ifdef __cplusplus
14981 extern "C"
14982 #endif
14983 char fetch_2d_texel_rgba_dxt1 ();
14984 int
14985 main ()
14986 {
14987 return fetch_2d_texel_rgba_dxt1 ();
14988   ;
14989   return 0;
14990 }
14991 _ACEOF
14992 rm -f conftest.$ac_objext conftest$ac_exeext
14993 if { (ac_try="$ac_link"
14994 case "(($ac_try" in
14995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996   *) ac_try_echo=$ac_try;;
14997 esac
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999   (eval "$ac_link") 2>conftest.er1
15000   ac_status=$?
15001   grep -v '^ *+' conftest.er1 >conftest.err
15002   rm -f conftest.er1
15003   cat conftest.err >&5
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); } && {
15006          test -z "$ac_c_werror_flag" ||
15007          test ! -s conftest.err
15008        } && test -s conftest$ac_exeext &&
15009        $as_test_x conftest$ac_exeext; then
15010   case "$LIBEXT" in
15011     dylib) ac_cv_lib_soname_txc_dxtn=`otool -L conftest$ac_exeext | grep libtxc_dxtn\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libtxc_dxtn\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15012     so) ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.so | sed -e "s/^.*\(libtxc_dxtn\.so[^         ]*\).*$/\1/"';2,$d'` ;;
15013   esac
15014   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15015   then
15016      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15017   fi
15018 else
15019   echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022         ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15023 fi
15024
15025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15026       conftest$ac_exeext conftest.$ac_ext
15027   LIBS=$ac_get_soname_save_LIBS
15028 fi
15029 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15030 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
15031 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15032
15033 cat >>confdefs.h <<_ACEOF
15034 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15035 _ACEOF
15036
15037 fi
15038
15039   { echo "$as_me:$LINENO: checking for -lcups soname" >&5
15040 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
15041 if test "${ac_cv_lib_soname_cups+set}" = set; then
15042   echo $ECHO_N "(cached) $ECHO_C" >&6
15043 else
15044   ac_get_soname_save_LIBS=$LIBS
15045 LIBS="-lcups  $LIBS"
15046   cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h.  */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h.  */
15052
15053 /* Override any GCC internal prototype to avoid an error.
15054    Use char because int might match the return type of a GCC
15055    builtin and then its argument prototype would still apply.  */
15056 #ifdef __cplusplus
15057 extern "C"
15058 #endif
15059 char cupsGetDefault ();
15060 int
15061 main ()
15062 {
15063 return cupsGetDefault ();
15064   ;
15065   return 0;
15066 }
15067 _ACEOF
15068 rm -f conftest.$ac_objext conftest$ac_exeext
15069 if { (ac_try="$ac_link"
15070 case "(($ac_try" in
15071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072   *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075   (eval "$ac_link") 2>conftest.er1
15076   ac_status=$?
15077   grep -v '^ *+' conftest.er1 >conftest.err
15078   rm -f conftest.er1
15079   cat conftest.err >&5
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); } && {
15082          test -z "$ac_c_werror_flag" ||
15083          test ! -s conftest.err
15084        } && test -s conftest$ac_exeext &&
15085        $as_test_x conftest$ac_exeext; then
15086   case "$LIBEXT" in
15087     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'` ;;
15088     so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^     ]*\).*$/\1/"';2,$d'` ;;
15089   esac
15090   if test "x$ac_cv_lib_soname_cups" = "x"
15091   then
15092      ac_cv_lib_soname_cups="libcups.$LIBEXT"
15093   fi
15094 else
15095   echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15097
15098         ac_cv_lib_soname_cups="libcups.$LIBEXT"
15099 fi
15100
15101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15102       conftest$ac_exeext conftest.$ac_ext
15103   LIBS=$ac_get_soname_save_LIBS
15104 fi
15105 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15106 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
15107 if test "${ac_cv_lib_soname_cups+set}" = set; then
15108
15109 cat >>confdefs.h <<_ACEOF
15110 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15111 _ACEOF
15112
15113 fi
15114
15115   { echo "$as_me:$LINENO: checking for -ljack soname" >&5
15116 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
15117 if test "${ac_cv_lib_soname_jack+set}" = set; then
15118   echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120   ac_get_soname_save_LIBS=$LIBS
15121 LIBS="-ljack  $LIBS"
15122   cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h.  */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h.  */
15128
15129 /* Override any GCC internal prototype to avoid an error.
15130    Use char because int might match the return type of a GCC
15131    builtin and then its argument prototype would still apply.  */
15132 #ifdef __cplusplus
15133 extern "C"
15134 #endif
15135 char jack_client_new ();
15136 int
15137 main ()
15138 {
15139 return jack_client_new ();
15140   ;
15141   return 0;
15142 }
15143 _ACEOF
15144 rm -f conftest.$ac_objext conftest$ac_exeext
15145 if { (ac_try="$ac_link"
15146 case "(($ac_try" in
15147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148   *) ac_try_echo=$ac_try;;
15149 esac
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151   (eval "$ac_link") 2>conftest.er1
15152   ac_status=$?
15153   grep -v '^ *+' conftest.er1 >conftest.err
15154   rm -f conftest.er1
15155   cat conftest.err >&5
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); } && {
15158          test -z "$ac_c_werror_flag" ||
15159          test ! -s conftest.err
15160        } && test -s conftest$ac_exeext &&
15161        $as_test_x conftest$ac_exeext; then
15162   case "$LIBEXT" in
15163     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'` ;;
15164     so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^     ]*\).*$/\1/"';2,$d'` ;;
15165   esac
15166   if test "x$ac_cv_lib_soname_jack" = "x"
15167   then
15168      ac_cv_lib_soname_jack="libjack.$LIBEXT"
15169   fi
15170 else
15171   echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15173
15174         ac_cv_lib_soname_jack="libjack.$LIBEXT"
15175 fi
15176
15177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15178       conftest$ac_exeext conftest.$ac_ext
15179   LIBS=$ac_get_soname_save_LIBS
15180 fi
15181 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15182 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
15183 if test "${ac_cv_lib_soname_jack+set}" = set; then
15184
15185 cat >>confdefs.h <<_ACEOF
15186 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15187 _ACEOF
15188
15189 fi
15190
15191   { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15192 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
15193 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15194   echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196   ac_get_soname_save_LIBS=$LIBS
15197 LIBS="-lfontconfig  $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
15206    Use char because int might match the return type of a GCC
15207    builtin and then its argument prototype would still apply.  */
15208 #ifdef __cplusplus
15209 extern "C"
15210 #endif
15211 char FcInit ();
15212 int
15213 main ()
15214 {
15215 return FcInit ();
15216   ;
15217   return 0;
15218 }
15219 _ACEOF
15220 rm -f conftest.$ac_objext conftest$ac_exeext
15221 if { (ac_try="$ac_link"
15222 case "(($ac_try" in
15223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224   *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227   (eval "$ac_link") 2>conftest.er1
15228   ac_status=$?
15229   grep -v '^ *+' conftest.er1 >conftest.err
15230   rm -f conftest.er1
15231   cat conftest.err >&5
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); } && {
15234          test -z "$ac_c_werror_flag" ||
15235          test ! -s conftest.err
15236        } && test -s conftest$ac_exeext &&
15237        $as_test_x conftest$ac_exeext; then
15238   case "$LIBEXT" in
15239     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'` ;;
15240     so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^   ]*\).*$/\1/"';2,$d'` ;;
15241   esac
15242   if test "x$ac_cv_lib_soname_fontconfig" = "x"
15243   then
15244      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15245   fi
15246 else
15247   echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15249
15250         ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15251 fi
15252
15253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15254       conftest$ac_exeext conftest.$ac_ext
15255   LIBS=$ac_get_soname_save_LIBS
15256 fi
15257 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15258 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
15259 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15260
15261 cat >>confdefs.h <<_ACEOF
15262 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15263 _ACEOF
15264
15265 fi
15266
15267   { echo "$as_me:$LINENO: checking for -lssl soname" >&5
15268 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
15269 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15270   echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272   ac_get_soname_save_LIBS=$LIBS
15273 LIBS="-lssl  $LIBS"
15274   cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h.  */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h.  */
15280
15281 /* Override any GCC internal prototype to avoid an error.
15282    Use char because int might match the return type of a GCC
15283    builtin and then its argument prototype would still apply.  */
15284 #ifdef __cplusplus
15285 extern "C"
15286 #endif
15287 char SSL_library_init ();
15288 int
15289 main ()
15290 {
15291 return SSL_library_init ();
15292   ;
15293   return 0;
15294 }
15295 _ACEOF
15296 rm -f conftest.$ac_objext conftest$ac_exeext
15297 if { (ac_try="$ac_link"
15298 case "(($ac_try" in
15299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300   *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303   (eval "$ac_link") 2>conftest.er1
15304   ac_status=$?
15305   grep -v '^ *+' conftest.er1 >conftest.err
15306   rm -f conftest.er1
15307   cat conftest.err >&5
15308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309   (exit $ac_status); } && {
15310          test -z "$ac_c_werror_flag" ||
15311          test ! -s conftest.err
15312        } && test -s conftest$ac_exeext &&
15313        $as_test_x conftest$ac_exeext; then
15314   case "$LIBEXT" in
15315     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'` ;;
15316     so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^        ]*\).*$/\1/"';2,$d'` ;;
15317   esac
15318   if test "x$ac_cv_lib_soname_ssl" = "x"
15319   then
15320      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15321   fi
15322 else
15323   echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15325
15326         ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15327 fi
15328
15329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15330       conftest$ac_exeext conftest.$ac_ext
15331   LIBS=$ac_get_soname_save_LIBS
15332 fi
15333 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15334 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
15335 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15336
15337 cat >>confdefs.h <<_ACEOF
15338 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15339 _ACEOF
15340
15341 fi
15342
15343   { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15344 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
15345 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15346   echo $ECHO_N "(cached) $ECHO_C" >&6
15347 else
15348   ac_get_soname_save_LIBS=$LIBS
15349 LIBS="-lcrypto  $LIBS"
15350   cat >conftest.$ac_ext <<_ACEOF
15351 /* confdefs.h.  */
15352 _ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h.  */
15356
15357 /* Override any GCC internal prototype to avoid an error.
15358    Use char because int might match the return type of a GCC
15359    builtin and then its argument prototype would still apply.  */
15360 #ifdef __cplusplus
15361 extern "C"
15362 #endif
15363 char BIO_new_socket ();
15364 int
15365 main ()
15366 {
15367 return BIO_new_socket ();
15368   ;
15369   return 0;
15370 }
15371 _ACEOF
15372 rm -f conftest.$ac_objext conftest$ac_exeext
15373 if { (ac_try="$ac_link"
15374 case "(($ac_try" in
15375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376   *) ac_try_echo=$ac_try;;
15377 esac
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379   (eval "$ac_link") 2>conftest.er1
15380   ac_status=$?
15381   grep -v '^ *+' conftest.er1 >conftest.err
15382   rm -f conftest.er1
15383   cat conftest.err >&5
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); } && {
15386          test -z "$ac_c_werror_flag" ||
15387          test ! -s conftest.err
15388        } && test -s conftest$ac_exeext &&
15389        $as_test_x conftest$ac_exeext; then
15390   case "$LIBEXT" in
15391     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'` ;;
15392     so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^       ]*\).*$/\1/"';2,$d'` ;;
15393   esac
15394   if test "x$ac_cv_lib_soname_crypto" = "x"
15395   then
15396      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15397   fi
15398 else
15399   echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15401
15402         ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15403 fi
15404
15405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15406       conftest$ac_exeext conftest.$ac_ext
15407   LIBS=$ac_get_soname_save_LIBS
15408 fi
15409 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15410 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
15411 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15412
15413 cat >>confdefs.h <<_ACEOF
15414 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15415 _ACEOF
15416
15417 fi
15418
15419   { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15420 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
15421 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15422   echo $ECHO_N "(cached) $ECHO_C" >&6
15423 else
15424   ac_get_soname_save_LIBS=$LIBS
15425 LIBS="-lncurses  $LIBS"
15426   cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h.  */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h.  */
15432
15433 /* Override any GCC internal prototype to avoid an error.
15434    Use char because int might match the return type of a GCC
15435    builtin and then its argument prototype would still apply.  */
15436 #ifdef __cplusplus
15437 extern "C"
15438 #endif
15439 char waddch ();
15440 int
15441 main ()
15442 {
15443 return waddch ();
15444   ;
15445   return 0;
15446 }
15447 _ACEOF
15448 rm -f conftest.$ac_objext conftest$ac_exeext
15449 if { (ac_try="$ac_link"
15450 case "(($ac_try" in
15451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452   *) ac_try_echo=$ac_try;;
15453 esac
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455   (eval "$ac_link") 2>conftest.er1
15456   ac_status=$?
15457   grep -v '^ *+' conftest.er1 >conftest.err
15458   rm -f conftest.er1
15459   cat conftest.err >&5
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); } && {
15462          test -z "$ac_c_werror_flag" ||
15463          test ! -s conftest.err
15464        } && test -s conftest$ac_exeext &&
15465        $as_test_x conftest$ac_exeext; then
15466   case "$LIBEXT" in
15467     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'` ;;
15468     so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^    ]*\).*$/\1/"';2,$d'` ;;
15469   esac
15470   if test "x$ac_cv_lib_soname_ncurses" = "x"
15471   then
15472      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15473   fi
15474 else
15475   echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15477
15478         ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15479 fi
15480
15481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15482       conftest$ac_exeext conftest.$ac_ext
15483   LIBS=$ac_get_soname_save_LIBS
15484 fi
15485 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15486 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
15487 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15488
15489 cat >>confdefs.h <<_ACEOF
15490 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15491 _ACEOF
15492
15493 fi
15494
15495   { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15496 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
15497 if test "${ac_cv_lib_soname_curses+set}" = set; then
15498   echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500   ac_get_soname_save_LIBS=$LIBS
15501 LIBS="-lcurses  $LIBS"
15502   cat >conftest.$ac_ext <<_ACEOF
15503 /* confdefs.h.  */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h.  */
15508
15509 /* Override any GCC internal prototype to avoid an error.
15510    Use char because int might match the return type of a GCC
15511    builtin and then its argument prototype would still apply.  */
15512 #ifdef __cplusplus
15513 extern "C"
15514 #endif
15515 char waddch ();
15516 int
15517 main ()
15518 {
15519 return waddch ();
15520   ;
15521   return 0;
15522 }
15523 _ACEOF
15524 rm -f conftest.$ac_objext conftest$ac_exeext
15525 if { (ac_try="$ac_link"
15526 case "(($ac_try" in
15527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528   *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531   (eval "$ac_link") 2>conftest.er1
15532   ac_status=$?
15533   grep -v '^ *+' conftest.er1 >conftest.err
15534   rm -f conftest.er1
15535   cat conftest.err >&5
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } && {
15538          test -z "$ac_c_werror_flag" ||
15539          test ! -s conftest.err
15540        } && test -s conftest$ac_exeext &&
15541        $as_test_x conftest$ac_exeext; then
15542   case "$LIBEXT" in
15543     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'` ;;
15544     so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^       ]*\).*$/\1/"';2,$d'` ;;
15545   esac
15546   if test "x$ac_cv_lib_soname_curses" = "x"
15547   then
15548      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15549   fi
15550 else
15551   echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554         ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15555 fi
15556
15557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15558       conftest$ac_exeext conftest.$ac_ext
15559   LIBS=$ac_get_soname_save_LIBS
15560 fi
15561 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15562 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
15563 if test "${ac_cv_lib_soname_curses+set}" = set; then
15564
15565 cat >>confdefs.h <<_ACEOF
15566 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15567 _ACEOF
15568
15569 fi
15570
15571   { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15572 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
15573 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15574   echo $ECHO_N "(cached) $ECHO_C" >&6
15575 else
15576   ac_get_soname_save_LIBS=$LIBS
15577 LIBS="-ljpeg  $LIBS"
15578   cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h.  */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h.  */
15584
15585 /* Override any GCC internal prototype to avoid an error.
15586    Use char because int might match the return type of a GCC
15587    builtin and then its argument prototype would still apply.  */
15588 #ifdef __cplusplus
15589 extern "C"
15590 #endif
15591 char jpeg_start_decompress ();
15592 int
15593 main ()
15594 {
15595 return jpeg_start_decompress ();
15596   ;
15597   return 0;
15598 }
15599 _ACEOF
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (ac_try="$ac_link"
15602 case "(($ac_try" in
15603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604   *) ac_try_echo=$ac_try;;
15605 esac
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607   (eval "$ac_link") 2>conftest.er1
15608   ac_status=$?
15609   grep -v '^ *+' conftest.er1 >conftest.err
15610   rm -f conftest.er1
15611   cat conftest.err >&5
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); } && {
15614          test -z "$ac_c_werror_flag" ||
15615          test ! -s conftest.err
15616        } && test -s conftest$ac_exeext &&
15617        $as_test_x conftest$ac_exeext; then
15618   case "$LIBEXT" in
15619     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'` ;;
15620     so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^     ]*\).*$/\1/"';2,$d'` ;;
15621   esac
15622   if test "x$ac_cv_lib_soname_jpeg" = "x"
15623   then
15624      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15625   fi
15626 else
15627   echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15629
15630         ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15631 fi
15632
15633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15634       conftest$ac_exeext conftest.$ac_ext
15635   LIBS=$ac_get_soname_save_LIBS
15636 fi
15637 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15638 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
15639 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15640
15641 cat >>confdefs.h <<_ACEOF
15642 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15643 _ACEOF
15644
15645 fi
15646
15647   { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15648 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
15649 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15650   echo $ECHO_N "(cached) $ECHO_C" >&6
15651 else
15652   ac_get_soname_save_LIBS=$LIBS
15653 LIBS="-lcapi20  $LIBS"
15654   cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h.  */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h.  */
15660
15661 /* Override any GCC internal prototype to avoid an error.
15662    Use char because int might match the return type of a GCC
15663    builtin and then its argument prototype would still apply.  */
15664 #ifdef __cplusplus
15665 extern "C"
15666 #endif
15667 char capi20_isinstalled ();
15668 int
15669 main ()
15670 {
15671 return capi20_isinstalled ();
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (ac_try="$ac_link"
15678 case "(($ac_try" in
15679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680   *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683   (eval "$ac_link") 2>conftest.er1
15684   ac_status=$?
15685   grep -v '^ *+' conftest.er1 >conftest.err
15686   rm -f conftest.er1
15687   cat conftest.err >&5
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); } && {
15690          test -z "$ac_c_werror_flag" ||
15691          test ! -s conftest.err
15692        } && test -s conftest$ac_exeext &&
15693        $as_test_x conftest$ac_exeext; then
15694   case "$LIBEXT" in
15695     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'` ;;
15696     so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^       ]*\).*$/\1/"';2,$d'` ;;
15697   esac
15698   if test "x$ac_cv_lib_soname_capi20" = "x"
15699   then
15700      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15701   fi
15702 else
15703   echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706         ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15707 fi
15708
15709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15710       conftest$ac_exeext conftest.$ac_ext
15711   LIBS=$ac_get_soname_save_LIBS
15712 fi
15713 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15714 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
15715 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15716
15717 cat >>confdefs.h <<_ACEOF
15718 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15719 _ACEOF
15720
15721 fi
15722
15723   { echo "$as_me:$LINENO: checking for -lsane soname" >&5
15724 echo $ECHO_N "checking for -lsane soname... $ECHO_C" >&6; }
15725 if test "${ac_cv_lib_soname_sane+set}" = set; then
15726   echo $ECHO_N "(cached) $ECHO_C" >&6
15727 else
15728   ac_get_soname_save_LIBS=$LIBS
15729 LIBS="-lsane  $LIBS"
15730   cat >conftest.$ac_ext <<_ACEOF
15731 /* confdefs.h.  */
15732 _ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h.  */
15736
15737 /* Override any GCC internal prototype to avoid an error.
15738    Use char because int might match the return type of a GCC
15739    builtin and then its argument prototype would still apply.  */
15740 #ifdef __cplusplus
15741 extern "C"
15742 #endif
15743 char sane_init ();
15744 int
15745 main ()
15746 {
15747 return sane_init ();
15748   ;
15749   return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext conftest$ac_exeext
15753 if { (ac_try="$ac_link"
15754 case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759   (eval "$ac_link") 2>conftest.er1
15760   ac_status=$?
15761   grep -v '^ *+' conftest.er1 >conftest.err
15762   rm -f conftest.er1
15763   cat conftest.err >&5
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } && {
15766          test -z "$ac_c_werror_flag" ||
15767          test ! -s conftest.err
15768        } && test -s conftest$ac_exeext &&
15769        $as_test_x conftest$ac_exeext; then
15770   case "$LIBEXT" in
15771     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'` ;;
15772     so) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep libsane\\.so | sed -e "s/^.*\(libsane\.so[^     ]*\).*$/\1/"';2,$d'` ;;
15773   esac
15774   if test "x$ac_cv_lib_soname_sane" = "x"
15775   then
15776      ac_cv_lib_soname_sane="libsane.$LIBEXT"
15777   fi
15778 else
15779   echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15781
15782         ac_cv_lib_soname_sane="libsane.$LIBEXT"
15783 fi
15784
15785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15786       conftest$ac_exeext conftest.$ac_ext
15787   LIBS=$ac_get_soname_save_LIBS
15788 fi
15789 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_sane" >&5
15790 echo "${ECHO_T}$ac_cv_lib_soname_sane" >&6; }
15791 if test "${ac_cv_lib_soname_sane+set}" = set; then
15792
15793 cat >>confdefs.h <<_ACEOF
15794 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
15795 _ACEOF
15796
15797 fi
15798
15799 fi
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874 for ac_func in \
15875         _pclose \
15876         _popen \
15877         _snprintf \
15878         _spawnvp \
15879         _stricmp \
15880         _strnicmp \
15881         _vsnprintf \
15882         asctime_r \
15883         chsize \
15884         clone \
15885         connect \
15886         dlopen \
15887         epoll_create \
15888         ffs \
15889         finite \
15890         fork \
15891         fpclass \
15892         fstatfs \
15893         fstatvfs \
15894         ftruncate \
15895         futimes \
15896         futimesat \
15897         getaddrinfo \
15898         getdirentries \
15899         gethostbyname \
15900         getnameinfo \
15901         getnetbyname \
15902         getopt_long \
15903         getpagesize \
15904         getprotobyname \
15905         getprotobynumber \
15906         getpwuid \
15907         getservbyport \
15908         gettid \
15909         gettimeofday \
15910         getuid \
15911         inet_aton \
15912         inet_network \
15913         kqueue \
15914         lstat \
15915         memmove \
15916         mmap \
15917         pclose \
15918         poll \
15919         popen \
15920         prctl \
15921         pread \
15922         pwrite \
15923         readlink \
15924         rfork \
15925         sched_yield \
15926         select \
15927         sendmsg \
15928         setrlimit \
15929         settimeofday \
15930         sigaltstack \
15931         sigprocmask \
15932         snprintf \
15933         spawnvp \
15934         statfs \
15935         statvfs \
15936         strcasecmp \
15937         strerror \
15938         strncasecmp \
15939         strtold \
15940         tcgetattr \
15941         timegm \
15942         usleep \
15943         vsnprintf \
15944         wait4 \
15945         waitpid \
15946
15947 do
15948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15952   echo $ECHO_N "(cached) $ECHO_C" >&6
15953 else
15954   cat >conftest.$ac_ext <<_ACEOF
15955 /* confdefs.h.  */
15956 _ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h.  */
15960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15962 #define $ac_func innocuous_$ac_func
15963
15964 /* System header to define __stub macros and hopefully few prototypes,
15965     which can conflict with char $ac_func (); below.
15966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15967     <limits.h> exists even on freestanding compilers.  */
15968
15969 #ifdef __STDC__
15970 # include <limits.h>
15971 #else
15972 # include <assert.h>
15973 #endif
15974
15975 #undef $ac_func
15976
15977 /* Override any GCC internal prototype to avoid an error.
15978    Use char because int might match the return type of a GCC
15979    builtin and then its argument prototype would still apply.  */
15980 #ifdef __cplusplus
15981 extern "C"
15982 #endif
15983 char $ac_func ();
15984 /* The GNU C library defines this for functions which it implements
15985     to always fail with ENOSYS.  Some functions are actually named
15986     something starting with __ and the normal name is an alias.  */
15987 #if defined __stub_$ac_func || defined __stub___$ac_func
15988 choke me
15989 #endif
15990
15991 int
15992 main ()
15993 {
15994 return $ac_func ();
15995   ;
15996   return 0;
15997 }
15998 _ACEOF
15999 rm -f conftest.$ac_objext conftest$ac_exeext
16000 if { (ac_try="$ac_link"
16001 case "(($ac_try" in
16002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003   *) ac_try_echo=$ac_try;;
16004 esac
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006   (eval "$ac_link") 2>conftest.er1
16007   ac_status=$?
16008   grep -v '^ *+' conftest.er1 >conftest.err
16009   rm -f conftest.er1
16010   cat conftest.err >&5
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } && {
16013          test -z "$ac_c_werror_flag" ||
16014          test ! -s conftest.err
16015        } && test -s conftest$ac_exeext &&
16016        $as_test_x conftest$ac_exeext; then
16017   eval "$as_ac_var=yes"
16018 else
16019   echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022         eval "$as_ac_var=no"
16023 fi
16024
16025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16026       conftest$ac_exeext conftest.$ac_ext
16027 fi
16028 ac_res=`eval echo '${'$as_ac_var'}'`
16029                { echo "$as_me:$LINENO: result: $ac_res" >&5
16030 echo "${ECHO_T}$ac_res" >&6; }
16031 if test `eval echo '${'$as_ac_var'}'` = yes; then
16032   cat >>confdefs.h <<_ACEOF
16033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16034 _ACEOF
16035
16036 fi
16037 done
16038
16039
16040 if test "$ac_cv_func_dlopen" = no
16041 then
16042     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16043 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16044 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16045   echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047   ac_check_lib_save_LIBS=$LIBS
16048 LIBS="-ldl  $LIBS"
16049 cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h.  */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h.  */
16055
16056 /* Override any GCC internal prototype to avoid an error.
16057    Use char because int might match the return type of a GCC
16058    builtin and then its argument prototype would still apply.  */
16059 #ifdef __cplusplus
16060 extern "C"
16061 #endif
16062 char dlopen ();
16063 int
16064 main ()
16065 {
16066 return dlopen ();
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (ac_try="$ac_link"
16073 case "(($ac_try" in
16074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075   *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078   (eval "$ac_link") 2>conftest.er1
16079   ac_status=$?
16080   grep -v '^ *+' conftest.er1 >conftest.err
16081   rm -f conftest.er1
16082   cat conftest.err >&5
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); } && {
16085          test -z "$ac_c_werror_flag" ||
16086          test ! -s conftest.err
16087        } && test -s conftest$ac_exeext &&
16088        $as_test_x conftest$ac_exeext; then
16089   ac_cv_lib_dl_dlopen=yes
16090 else
16091   echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16093
16094         ac_cv_lib_dl_dlopen=no
16095 fi
16096
16097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16098       conftest$ac_exeext conftest.$ac_ext
16099 LIBS=$ac_check_lib_save_LIBS
16100 fi
16101 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16102 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16103 if test $ac_cv_lib_dl_dlopen = yes; then
16104   cat >>confdefs.h <<\_ACEOF
16105 #define HAVE_DLOPEN 1
16106 _ACEOF
16107  LIBDL="-ldl"
16108
16109 fi
16110
16111 fi
16112 ac_wine_check_funcs_save_LIBS="$LIBS"
16113 LIBS="$LIBS $LIBDL"
16114
16115 for ac_func in dladdr
16116 do
16117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16121   echo $ECHO_N "(cached) $ECHO_C" >&6
16122 else
16123   cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h.  */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h.  */
16129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16131 #define $ac_func innocuous_$ac_func
16132
16133 /* System header to define __stub macros and hopefully few prototypes,
16134     which can conflict with char $ac_func (); below.
16135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16136     <limits.h> exists even on freestanding compilers.  */
16137
16138 #ifdef __STDC__
16139 # include <limits.h>
16140 #else
16141 # include <assert.h>
16142 #endif
16143
16144 #undef $ac_func
16145
16146 /* Override any GCC internal prototype to avoid an error.
16147    Use char because int might match the return type of a GCC
16148    builtin and then its argument prototype would still apply.  */
16149 #ifdef __cplusplus
16150 extern "C"
16151 #endif
16152 char $ac_func ();
16153 /* The GNU C library defines this for functions which it implements
16154     to always fail with ENOSYS.  Some functions are actually named
16155     something starting with __ and the normal name is an alias.  */
16156 #if defined __stub_$ac_func || defined __stub___$ac_func
16157 choke me
16158 #endif
16159
16160 int
16161 main ()
16162 {
16163 return $ac_func ();
16164   ;
16165   return 0;
16166 }
16167 _ACEOF
16168 rm -f conftest.$ac_objext conftest$ac_exeext
16169 if { (ac_try="$ac_link"
16170 case "(($ac_try" in
16171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172   *) ac_try_echo=$ac_try;;
16173 esac
16174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175   (eval "$ac_link") 2>conftest.er1
16176   ac_status=$?
16177   grep -v '^ *+' conftest.er1 >conftest.err
16178   rm -f conftest.er1
16179   cat conftest.err >&5
16180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); } && {
16182          test -z "$ac_c_werror_flag" ||
16183          test ! -s conftest.err
16184        } && test -s conftest$ac_exeext &&
16185        $as_test_x conftest$ac_exeext; then
16186   eval "$as_ac_var=yes"
16187 else
16188   echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191         eval "$as_ac_var=no"
16192 fi
16193
16194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16195       conftest$ac_exeext conftest.$ac_ext
16196 fi
16197 ac_res=`eval echo '${'$as_ac_var'}'`
16198                { echo "$as_me:$LINENO: result: $ac_res" >&5
16199 echo "${ECHO_T}$ac_res" >&6; }
16200 if test `eval echo '${'$as_ac_var'}'` = yes; then
16201   cat >>confdefs.h <<_ACEOF
16202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16203 _ACEOF
16204
16205 fi
16206 done
16207
16208 LIBS="$ac_wine_check_funcs_save_LIBS"
16209
16210 if test "$ac_cv_func_poll" = no
16211 then
16212     { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
16213 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
16214 if test "${ac_cv_lib_poll_poll+set}" = set; then
16215   echo $ECHO_N "(cached) $ECHO_C" >&6
16216 else
16217   ac_check_lib_save_LIBS=$LIBS
16218 LIBS="-lpoll  $LIBS"
16219 cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225
16226 /* Override any GCC internal prototype to avoid an error.
16227    Use char because int might match the return type of a GCC
16228    builtin and then its argument prototype would still apply.  */
16229 #ifdef __cplusplus
16230 extern "C"
16231 #endif
16232 char poll ();
16233 int
16234 main ()
16235 {
16236 return poll ();
16237   ;
16238   return 0;
16239 }
16240 _ACEOF
16241 rm -f conftest.$ac_objext conftest$ac_exeext
16242 if { (ac_try="$ac_link"
16243 case "(($ac_try" in
16244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245   *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248   (eval "$ac_link") 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } && {
16255          test -z "$ac_c_werror_flag" ||
16256          test ! -s conftest.err
16257        } && test -s conftest$ac_exeext &&
16258        $as_test_x conftest$ac_exeext; then
16259   ac_cv_lib_poll_poll=yes
16260 else
16261   echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16263
16264         ac_cv_lib_poll_poll=no
16265 fi
16266
16267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16268       conftest$ac_exeext conftest.$ac_ext
16269 LIBS=$ac_check_lib_save_LIBS
16270 fi
16271 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
16272 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
16273 if test $ac_cv_lib_poll_poll = yes; then
16274   cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_POLL 1
16276 _ACEOF
16277  LIBPOLL="-lpoll"
16278
16279 fi
16280
16281 fi
16282
16283 if test "$ac_cv_func_gethostbyname" = no
16284 then
16285
16286 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
16287 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
16288 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
16289   echo $ECHO_N "(cached) $ECHO_C" >&6
16290 else
16291   ac_check_lib_save_LIBS=$LIBS
16292 LIBS="-lnsl  $LIBS"
16293 cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h.  */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h.  */
16299
16300 /* Override any GCC internal prototype to avoid an error.
16301    Use char because int might match the return type of a GCC
16302    builtin and then its argument prototype would still apply.  */
16303 #ifdef __cplusplus
16304 extern "C"
16305 #endif
16306 char gethostbyname ();
16307 int
16308 main ()
16309 {
16310 return gethostbyname ();
16311   ;
16312   return 0;
16313 }
16314 _ACEOF
16315 rm -f conftest.$ac_objext conftest$ac_exeext
16316 if { (ac_try="$ac_link"
16317 case "(($ac_try" in
16318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319   *) ac_try_echo=$ac_try;;
16320 esac
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322   (eval "$ac_link") 2>conftest.er1
16323   ac_status=$?
16324   grep -v '^ *+' conftest.er1 >conftest.err
16325   rm -f conftest.er1
16326   cat conftest.err >&5
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } && {
16329          test -z "$ac_c_werror_flag" ||
16330          test ! -s conftest.err
16331        } && test -s conftest$ac_exeext &&
16332        $as_test_x conftest$ac_exeext; then
16333   ac_cv_lib_nsl_gethostbyname=yes
16334 else
16335   echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16337
16338         ac_cv_lib_nsl_gethostbyname=no
16339 fi
16340
16341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16342       conftest$ac_exeext conftest.$ac_ext
16343 LIBS=$ac_check_lib_save_LIBS
16344 fi
16345 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
16346 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
16347 if test $ac_cv_lib_nsl_gethostbyname = yes; then
16348   cat >>confdefs.h <<_ACEOF
16349 #define HAVE_LIBNSL 1
16350 _ACEOF
16351
16352   LIBS="-lnsl $LIBS"
16353
16354 fi
16355
16356 fi
16357
16358 if test "$ac_cv_func_connect" = no
16359 then
16360
16361 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
16362 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
16363 if test "${ac_cv_lib_socket_connect+set}" = set; then
16364   echo $ECHO_N "(cached) $ECHO_C" >&6
16365 else
16366   ac_check_lib_save_LIBS=$LIBS
16367 LIBS="-lsocket  $LIBS"
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h.  */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h.  */
16374
16375 /* Override any GCC internal prototype to avoid an error.
16376    Use char because int might match the return type of a GCC
16377    builtin and then its argument prototype would still apply.  */
16378 #ifdef __cplusplus
16379 extern "C"
16380 #endif
16381 char connect ();
16382 int
16383 main ()
16384 {
16385 return connect ();
16386   ;
16387   return 0;
16388 }
16389 _ACEOF
16390 rm -f conftest.$ac_objext conftest$ac_exeext
16391 if { (ac_try="$ac_link"
16392 case "(($ac_try" in
16393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394   *) ac_try_echo=$ac_try;;
16395 esac
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397   (eval "$ac_link") 2>conftest.er1
16398   ac_status=$?
16399   grep -v '^ *+' conftest.er1 >conftest.err
16400   rm -f conftest.er1
16401   cat conftest.err >&5
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); } && {
16404          test -z "$ac_c_werror_flag" ||
16405          test ! -s conftest.err
16406        } && test -s conftest$ac_exeext &&
16407        $as_test_x conftest$ac_exeext; then
16408   ac_cv_lib_socket_connect=yes
16409 else
16410   echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16412
16413         ac_cv_lib_socket_connect=no
16414 fi
16415
16416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16417       conftest$ac_exeext conftest.$ac_ext
16418 LIBS=$ac_check_lib_save_LIBS
16419 fi
16420 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
16421 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
16422 if test $ac_cv_lib_socket_connect = yes; then
16423   cat >>confdefs.h <<_ACEOF
16424 #define HAVE_LIBSOCKET 1
16425 _ACEOF
16426
16427   LIBS="-lsocket $LIBS"
16428
16429 fi
16430
16431 fi
16432
16433 if test "$ac_cv_func_inet_aton" = no
16434 then
16435
16436 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16437 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16438 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16439   echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441   ac_check_lib_save_LIBS=$LIBS
16442 LIBS="-lresolv  $LIBS"
16443 cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449
16450 /* Override any GCC internal prototype to avoid an error.
16451    Use char because int might match the return type of a GCC
16452    builtin and then its argument prototype would still apply.  */
16453 #ifdef __cplusplus
16454 extern "C"
16455 #endif
16456 char inet_aton ();
16457 int
16458 main ()
16459 {
16460 return inet_aton ();
16461   ;
16462   return 0;
16463 }
16464 _ACEOF
16465 rm -f conftest.$ac_objext conftest$ac_exeext
16466 if { (ac_try="$ac_link"
16467 case "(($ac_try" in
16468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469   *) ac_try_echo=$ac_try;;
16470 esac
16471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472   (eval "$ac_link") 2>conftest.er1
16473   ac_status=$?
16474   grep -v '^ *+' conftest.er1 >conftest.err
16475   rm -f conftest.er1
16476   cat conftest.err >&5
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); } && {
16479          test -z "$ac_c_werror_flag" ||
16480          test ! -s conftest.err
16481        } && test -s conftest$ac_exeext &&
16482        $as_test_x conftest$ac_exeext; then
16483   ac_cv_lib_resolv_inet_aton=yes
16484 else
16485   echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16487
16488         ac_cv_lib_resolv_inet_aton=no
16489 fi
16490
16491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16492       conftest$ac_exeext conftest.$ac_ext
16493 LIBS=$ac_check_lib_save_LIBS
16494 fi
16495 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16496 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16497 if test $ac_cv_lib_resolv_inet_aton = yes; then
16498   cat >>confdefs.h <<_ACEOF
16499 #define HAVE_LIBRESOLV 1
16500 _ACEOF
16501
16502   LIBS="-lresolv $LIBS"
16503
16504 fi
16505
16506 fi
16507
16508
16509 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16510 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
16511 if test "${ac_cv_c_const+set}" = set; then
16512   echo $ECHO_N "(cached) $ECHO_C" >&6
16513 else
16514   cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520
16521 int
16522 main ()
16523 {
16524 /* FIXME: Include the comments suggested by Paul. */
16525 #ifndef __cplusplus
16526   /* Ultrix mips cc rejects this.  */
16527   typedef int charset[2];
16528   const charset cs;
16529   /* SunOS 4.1.1 cc rejects this.  */
16530   char const *const *pcpcc;
16531   char **ppc;
16532   /* NEC SVR4.0.2 mips cc rejects this.  */
16533   struct point {int x, y;};
16534   static struct point const zero = {0,0};
16535   /* AIX XL C 1.02.0.0 rejects this.
16536      It does not let you subtract one const X* pointer from another in
16537      an arm of an if-expression whose if-part is not a constant
16538      expression */
16539   const char *g = "string";
16540   pcpcc = &g + (g ? g-g : 0);
16541   /* HPUX 7.0 cc rejects these. */
16542   ++pcpcc;
16543   ppc = (char**) pcpcc;
16544   pcpcc = (char const *const *) ppc;
16545   { /* SCO 3.2v4 cc rejects this.  */
16546     char *t;
16547     char const *s = 0 ? (char *) 0 : (char const *) 0;
16548
16549     *t++ = 0;
16550     if (s) return 0;
16551   }
16552   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16553     int x[] = {25, 17};
16554     const int *foo = &x[0];
16555     ++foo;
16556   }
16557   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16558     typedef const int *iptr;
16559     iptr p = 0;
16560     ++p;
16561   }
16562   { /* AIX XL C 1.02.0.0 rejects this saying
16563        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16564     struct s { int j; const int *ap[3]; };
16565     struct s *b; b->j = 5;
16566   }
16567   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16568     const int foo = 10;
16569     if (!foo) return 0;
16570   }
16571   return !cs[0] && !zero.x;
16572 #endif
16573
16574   ;
16575   return 0;
16576 }
16577 _ACEOF
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582   *) ac_try_echo=$ac_try;;
16583 esac
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585   (eval "$ac_compile") 2>conftest.er1
16586   ac_status=$?
16587   grep -v '^ *+' conftest.er1 >conftest.err
16588   rm -f conftest.er1
16589   cat conftest.err >&5
16590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591   (exit $ac_status); } && {
16592          test -z "$ac_c_werror_flag" ||
16593          test ! -s conftest.err
16594        } && test -s conftest.$ac_objext; then
16595   ac_cv_c_const=yes
16596 else
16597   echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600         ac_cv_c_const=no
16601 fi
16602
16603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16604 fi
16605 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16606 echo "${ECHO_T}$ac_cv_c_const" >&6; }
16607 if test $ac_cv_c_const = no; then
16608
16609 cat >>confdefs.h <<\_ACEOF
16610 #define const
16611 _ACEOF
16612
16613 fi
16614
16615 { echo "$as_me:$LINENO: checking for inline" >&5
16616 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
16617 if test "${ac_cv_c_inline+set}" = set; then
16618   echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620   ac_cv_c_inline=no
16621 for ac_kw in inline __inline__ __inline; do
16622   cat >conftest.$ac_ext <<_ACEOF
16623 /* confdefs.h.  */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h.  */
16628 #ifndef __cplusplus
16629 typedef int foo_t;
16630 static $ac_kw foo_t static_foo () {return 0; }
16631 $ac_kw foo_t foo () {return 0; }
16632 #endif
16633
16634 _ACEOF
16635 rm -f conftest.$ac_objext
16636 if { (ac_try="$ac_compile"
16637 case "(($ac_try" in
16638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639   *) ac_try_echo=$ac_try;;
16640 esac
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642   (eval "$ac_compile") 2>conftest.er1
16643   ac_status=$?
16644   grep -v '^ *+' conftest.er1 >conftest.err
16645   rm -f conftest.er1
16646   cat conftest.err >&5
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); } && {
16649          test -z "$ac_c_werror_flag" ||
16650          test ! -s conftest.err
16651        } && test -s conftest.$ac_objext; then
16652   ac_cv_c_inline=$ac_kw
16653 else
16654   echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16656
16657
16658 fi
16659
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661   test "$ac_cv_c_inline" != no && break
16662 done
16663
16664 fi
16665 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16666 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16667
16668
16669 case $ac_cv_c_inline in
16670   inline | yes) ;;
16671   *)
16672     case $ac_cv_c_inline in
16673       no) ac_val=;;
16674       *) ac_val=$ac_cv_c_inline;;
16675     esac
16676     cat >>confdefs.h <<_ACEOF
16677 #ifndef __cplusplus
16678 #define inline $ac_val
16679 #endif
16680 _ACEOF
16681     ;;
16682 esac
16683
16684 { echo "$as_me:$LINENO: checking for mode_t" >&5
16685 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
16686 if test "${ac_cv_type_mode_t+set}" = set; then
16687   echo $ECHO_N "(cached) $ECHO_C" >&6
16688 else
16689   cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h.  */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h.  */
16695 $ac_includes_default
16696 typedef mode_t ac__type_new_;
16697 int
16698 main ()
16699 {
16700 if ((ac__type_new_ *) 0)
16701   return 0;
16702 if (sizeof (ac__type_new_))
16703   return 0;
16704   ;
16705   return 0;
16706 }
16707 _ACEOF
16708 rm -f conftest.$ac_objext
16709 if { (ac_try="$ac_compile"
16710 case "(($ac_try" in
16711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712   *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715   (eval "$ac_compile") 2>conftest.er1
16716   ac_status=$?
16717   grep -v '^ *+' conftest.er1 >conftest.err
16718   rm -f conftest.er1
16719   cat conftest.err >&5
16720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721   (exit $ac_status); } && {
16722          test -z "$ac_c_werror_flag" ||
16723          test ! -s conftest.err
16724        } && test -s conftest.$ac_objext; then
16725   ac_cv_type_mode_t=yes
16726 else
16727   echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16729
16730         ac_cv_type_mode_t=no
16731 fi
16732
16733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734 fi
16735 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16736 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
16737 if test $ac_cv_type_mode_t = yes; then
16738
16739 cat >>confdefs.h <<_ACEOF
16740 #define HAVE_MODE_T 1
16741 _ACEOF
16742
16743
16744 fi
16745 { echo "$as_me:$LINENO: checking for off_t" >&5
16746 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
16747 if test "${ac_cv_type_off_t+set}" = set; then
16748   echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750   cat >conftest.$ac_ext <<_ACEOF
16751 /* confdefs.h.  */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h.  */
16756 $ac_includes_default
16757 typedef off_t ac__type_new_;
16758 int
16759 main ()
16760 {
16761 if ((ac__type_new_ *) 0)
16762   return 0;
16763 if (sizeof (ac__type_new_))
16764   return 0;
16765   ;
16766   return 0;
16767 }
16768 _ACEOF
16769 rm -f conftest.$ac_objext
16770 if { (ac_try="$ac_compile"
16771 case "(($ac_try" in
16772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773   *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776   (eval "$ac_compile") 2>conftest.er1
16777   ac_status=$?
16778   grep -v '^ *+' conftest.er1 >conftest.err
16779   rm -f conftest.er1
16780   cat conftest.err >&5
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); } && {
16783          test -z "$ac_c_werror_flag" ||
16784          test ! -s conftest.err
16785        } && test -s conftest.$ac_objext; then
16786   ac_cv_type_off_t=yes
16787 else
16788   echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791         ac_cv_type_off_t=no
16792 fi
16793
16794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16795 fi
16796 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16797 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
16798 if test $ac_cv_type_off_t = yes; then
16799
16800 cat >>confdefs.h <<_ACEOF
16801 #define HAVE_OFF_T 1
16802 _ACEOF
16803
16804
16805 fi
16806 { echo "$as_me:$LINENO: checking for pid_t" >&5
16807 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16808 if test "${ac_cv_type_pid_t+set}" = set; then
16809   echo $ECHO_N "(cached) $ECHO_C" >&6
16810 else
16811   cat >conftest.$ac_ext <<_ACEOF
16812 /* confdefs.h.  */
16813 _ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h.  */
16817 $ac_includes_default
16818 typedef pid_t ac__type_new_;
16819 int
16820 main ()
16821 {
16822 if ((ac__type_new_ *) 0)
16823   return 0;
16824 if (sizeof (ac__type_new_))
16825   return 0;
16826   ;
16827   return 0;
16828 }
16829 _ACEOF
16830 rm -f conftest.$ac_objext
16831 if { (ac_try="$ac_compile"
16832 case "(($ac_try" in
16833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834   *) ac_try_echo=$ac_try;;
16835 esac
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837   (eval "$ac_compile") 2>conftest.er1
16838   ac_status=$?
16839   grep -v '^ *+' conftest.er1 >conftest.err
16840   rm -f conftest.er1
16841   cat conftest.err >&5
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); } && {
16844          test -z "$ac_c_werror_flag" ||
16845          test ! -s conftest.err
16846        } && test -s conftest.$ac_objext; then
16847   ac_cv_type_pid_t=yes
16848 else
16849   echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16851
16852         ac_cv_type_pid_t=no
16853 fi
16854
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856 fi
16857 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16858 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16859 if test $ac_cv_type_pid_t = yes; then
16860
16861 cat >>confdefs.h <<_ACEOF
16862 #define HAVE_PID_T 1
16863 _ACEOF
16864
16865
16866 fi
16867 { echo "$as_me:$LINENO: checking for size_t" >&5
16868 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16869 if test "${ac_cv_type_size_t+set}" = set; then
16870   echo $ECHO_N "(cached) $ECHO_C" >&6
16871 else
16872   cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878 $ac_includes_default
16879 typedef size_t ac__type_new_;
16880 int
16881 main ()
16882 {
16883 if ((ac__type_new_ *) 0)
16884   return 0;
16885 if (sizeof (ac__type_new_))
16886   return 0;
16887   ;
16888   return 0;
16889 }
16890 _ACEOF
16891 rm -f conftest.$ac_objext
16892 if { (ac_try="$ac_compile"
16893 case "(($ac_try" in
16894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895   *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898   (eval "$ac_compile") 2>conftest.er1
16899   ac_status=$?
16900   grep -v '^ *+' conftest.er1 >conftest.err
16901   rm -f conftest.er1
16902   cat conftest.err >&5
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); } && {
16905          test -z "$ac_c_werror_flag" ||
16906          test ! -s conftest.err
16907        } && test -s conftest.$ac_objext; then
16908   ac_cv_type_size_t=yes
16909 else
16910   echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16912
16913         ac_cv_type_size_t=no
16914 fi
16915
16916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16917 fi
16918 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16919 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16920 if test $ac_cv_type_size_t = yes; then
16921
16922 cat >>confdefs.h <<_ACEOF
16923 #define HAVE_SIZE_T 1
16924 _ACEOF
16925
16926
16927 fi
16928 { echo "$as_me:$LINENO: checking for ssize_t" >&5
16929 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
16930 if test "${ac_cv_type_ssize_t+set}" = set; then
16931   echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933   cat >conftest.$ac_ext <<_ACEOF
16934 /* confdefs.h.  */
16935 _ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h.  */
16939 $ac_includes_default
16940 typedef ssize_t ac__type_new_;
16941 int
16942 main ()
16943 {
16944 if ((ac__type_new_ *) 0)
16945   return 0;
16946 if (sizeof (ac__type_new_))
16947   return 0;
16948   ;
16949   return 0;
16950 }
16951 _ACEOF
16952 rm -f conftest.$ac_objext
16953 if { (ac_try="$ac_compile"
16954 case "(($ac_try" in
16955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956   *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959   (eval "$ac_compile") 2>conftest.er1
16960   ac_status=$?
16961   grep -v '^ *+' conftest.er1 >conftest.err
16962   rm -f conftest.er1
16963   cat conftest.err >&5
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); } && {
16966          test -z "$ac_c_werror_flag" ||
16967          test ! -s conftest.err
16968        } && test -s conftest.$ac_objext; then
16969   ac_cv_type_ssize_t=yes
16970 else
16971   echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16973
16974         ac_cv_type_ssize_t=no
16975 fi
16976
16977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16978 fi
16979 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16980 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
16981 if test $ac_cv_type_ssize_t = yes; then
16982
16983 cat >>confdefs.h <<_ACEOF
16984 #define HAVE_SSIZE_T 1
16985 _ACEOF
16986
16987
16988 fi
16989 { echo "$as_me:$LINENO: checking for long long" >&5
16990 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
16991 if test "${ac_cv_type_long_long+set}" = set; then
16992   echo $ECHO_N "(cached) $ECHO_C" >&6
16993 else
16994   cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h.  */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h.  */
17000 $ac_includes_default
17001 typedef long long ac__type_new_;
17002 int
17003 main ()
17004 {
17005 if ((ac__type_new_ *) 0)
17006   return 0;
17007 if (sizeof (ac__type_new_))
17008   return 0;
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext
17014 if { (ac_try="$ac_compile"
17015 case "(($ac_try" in
17016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017   *) ac_try_echo=$ac_try;;
17018 esac
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020   (eval "$ac_compile") 2>conftest.er1
17021   ac_status=$?
17022   grep -v '^ *+' conftest.er1 >conftest.err
17023   rm -f conftest.er1
17024   cat conftest.err >&5
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); } && {
17027          test -z "$ac_c_werror_flag" ||
17028          test ! -s conftest.err
17029        } && test -s conftest.$ac_objext; then
17030   ac_cv_type_long_long=yes
17031 else
17032   echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035         ac_cv_type_long_long=no
17036 fi
17037
17038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17039 fi
17040 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17041 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
17042 if test $ac_cv_type_long_long = yes; then
17043
17044 cat >>confdefs.h <<_ACEOF
17045 #define HAVE_LONG_LONG 1
17046 _ACEOF
17047
17048
17049 fi
17050 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17051 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
17052 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17053   echo $ECHO_N "(cached) $ECHO_C" >&6
17054 else
17055   cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h.  */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h.  */
17061 $ac_includes_default
17062 typedef fsblkcnt_t ac__type_new_;
17063 int
17064 main ()
17065 {
17066 if ((ac__type_new_ *) 0)
17067   return 0;
17068 if (sizeof (ac__type_new_))
17069   return 0;
17070   ;
17071   return 0;
17072 }
17073 _ACEOF
17074 rm -f conftest.$ac_objext
17075 if { (ac_try="$ac_compile"
17076 case "(($ac_try" in
17077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078   *) ac_try_echo=$ac_try;;
17079 esac
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081   (eval "$ac_compile") 2>conftest.er1
17082   ac_status=$?
17083   grep -v '^ *+' conftest.er1 >conftest.err
17084   rm -f conftest.er1
17085   cat conftest.err >&5
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); } && {
17088          test -z "$ac_c_werror_flag" ||
17089          test ! -s conftest.err
17090        } && test -s conftest.$ac_objext; then
17091   ac_cv_type_fsblkcnt_t=yes
17092 else
17093   echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17095
17096         ac_cv_type_fsblkcnt_t=no
17097 fi
17098
17099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17100 fi
17101 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17102 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
17103 if test $ac_cv_type_fsblkcnt_t = yes; then
17104
17105 cat >>confdefs.h <<_ACEOF
17106 #define HAVE_FSBLKCNT_T 1
17107 _ACEOF
17108
17109
17110 fi
17111 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17112 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
17113 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17114   echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116   cat >conftest.$ac_ext <<_ACEOF
17117 /* confdefs.h.  */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h.  */
17122 $ac_includes_default
17123 typedef fsfilcnt_t ac__type_new_;
17124 int
17125 main ()
17126 {
17127 if ((ac__type_new_ *) 0)
17128   return 0;
17129 if (sizeof (ac__type_new_))
17130   return 0;
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext
17136 if { (ac_try="$ac_compile"
17137 case "(($ac_try" in
17138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139   *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142   (eval "$ac_compile") 2>conftest.er1
17143   ac_status=$?
17144   grep -v '^ *+' conftest.er1 >conftest.err
17145   rm -f conftest.er1
17146   cat conftest.err >&5
17147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); } && {
17149          test -z "$ac_c_werror_flag" ||
17150          test ! -s conftest.err
17151        } && test -s conftest.$ac_objext; then
17152   ac_cv_type_fsfilcnt_t=yes
17153 else
17154   echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157         ac_cv_type_fsfilcnt_t=no
17158 fi
17159
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161 fi
17162 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17163 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
17164 if test $ac_cv_type_fsfilcnt_t = yes; then
17165
17166 cat >>confdefs.h <<_ACEOF
17167 #define HAVE_FSFILCNT_T 1
17168 _ACEOF
17169
17170
17171 fi
17172
17173 { echo "$as_me:$LINENO: checking for sigset_t" >&5
17174 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
17175 if test "${ac_cv_type_sigset_t+set}" = set; then
17176   echo $ECHO_N "(cached) $ECHO_C" >&6
17177 else
17178   cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h.  */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h.  */
17184 #include <signal.h>
17185
17186 typedef sigset_t ac__type_new_;
17187 int
17188 main ()
17189 {
17190 if ((ac__type_new_ *) 0)
17191   return 0;
17192 if (sizeof (ac__type_new_))
17193   return 0;
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 rm -f conftest.$ac_objext
17199 if { (ac_try="$ac_compile"
17200 case "(($ac_try" in
17201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202   *) ac_try_echo=$ac_try;;
17203 esac
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205   (eval "$ac_compile") 2>conftest.er1
17206   ac_status=$?
17207   grep -v '^ *+' conftest.er1 >conftest.err
17208   rm -f conftest.er1
17209   cat conftest.err >&5
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); } && {
17212          test -z "$ac_c_werror_flag" ||
17213          test ! -s conftest.err
17214        } && test -s conftest.$ac_objext; then
17215   ac_cv_type_sigset_t=yes
17216 else
17217   echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17219
17220         ac_cv_type_sigset_t=no
17221 fi
17222
17223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224 fi
17225 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17226 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
17227 if test $ac_cv_type_sigset_t = yes; then
17228
17229 cat >>confdefs.h <<_ACEOF
17230 #define HAVE_SIGSET_T 1
17231 _ACEOF
17232
17233
17234 fi
17235
17236 { echo "$as_me:$LINENO: checking for request_sense" >&5
17237 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
17238 if test "${ac_cv_type_request_sense+set}" = set; then
17239   echo $ECHO_N "(cached) $ECHO_C" >&6
17240 else
17241   cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h.  */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h.  */
17247 #include <linux/cdrom.h>
17248
17249 typedef request_sense ac__type_new_;
17250 int
17251 main ()
17252 {
17253 if ((ac__type_new_ *) 0)
17254   return 0;
17255 if (sizeof (ac__type_new_))
17256   return 0;
17257   ;
17258   return 0;
17259 }
17260 _ACEOF
17261 rm -f conftest.$ac_objext
17262 if { (ac_try="$ac_compile"
17263 case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268   (eval "$ac_compile") 2>conftest.er1
17269   ac_status=$?
17270   grep -v '^ *+' conftest.er1 >conftest.err
17271   rm -f conftest.er1
17272   cat conftest.err >&5
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } && {
17275          test -z "$ac_c_werror_flag" ||
17276          test ! -s conftest.err
17277        } && test -s conftest.$ac_objext; then
17278   ac_cv_type_request_sense=yes
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283         ac_cv_type_request_sense=no
17284 fi
17285
17286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17287 fi
17288 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17289 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
17290 if test $ac_cv_type_request_sense = yes; then
17291
17292 cat >>confdefs.h <<_ACEOF
17293 #define HAVE_REQUEST_SENSE 1
17294 _ACEOF
17295
17296
17297 fi
17298
17299
17300 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
17301 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
17302 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
17303   echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305   cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h.  */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h.  */
17311 #ifdef HAVE_LINUX_INPUT_H
17312 #include <linux/input.h>
17313 #endif
17314
17315 int
17316 main ()
17317 {
17318 static struct ff_effect ac_aggr;
17319 if (ac_aggr.direction)
17320 return 0;
17321   ;
17322   return 0;
17323 }
17324 _ACEOF
17325 rm -f conftest.$ac_objext
17326 if { (ac_try="$ac_compile"
17327 case "(($ac_try" in
17328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329   *) ac_try_echo=$ac_try;;
17330 esac
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332   (eval "$ac_compile") 2>conftest.er1
17333   ac_status=$?
17334   grep -v '^ *+' conftest.er1 >conftest.err
17335   rm -f conftest.er1
17336   cat conftest.err >&5
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); } && {
17339          test -z "$ac_c_werror_flag" ||
17340          test ! -s conftest.err
17341        } && test -s conftest.$ac_objext; then
17342   ac_cv_member_struct_ff_effect_direction=yes
17343 else
17344   echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17346
17347         cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h.  */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h.  */
17353 #ifdef HAVE_LINUX_INPUT_H
17354 #include <linux/input.h>
17355 #endif
17356
17357 int
17358 main ()
17359 {
17360 static struct ff_effect ac_aggr;
17361 if (sizeof ac_aggr.direction)
17362 return 0;
17363   ;
17364   return 0;
17365 }
17366 _ACEOF
17367 rm -f conftest.$ac_objext
17368 if { (ac_try="$ac_compile"
17369 case "(($ac_try" in
17370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371   *) ac_try_echo=$ac_try;;
17372 esac
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374   (eval "$ac_compile") 2>conftest.er1
17375   ac_status=$?
17376   grep -v '^ *+' conftest.er1 >conftest.err
17377   rm -f conftest.er1
17378   cat conftest.err >&5
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); } && {
17381          test -z "$ac_c_werror_flag" ||
17382          test ! -s conftest.err
17383        } && test -s conftest.$ac_objext; then
17384   ac_cv_member_struct_ff_effect_direction=yes
17385 else
17386   echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17388
17389         ac_cv_member_struct_ff_effect_direction=no
17390 fi
17391
17392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17393 fi
17394
17395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17396 fi
17397 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
17398 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
17399 if test $ac_cv_member_struct_ff_effect_direction = yes; then
17400
17401 cat >>confdefs.h <<_ACEOF
17402 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
17403 _ACEOF
17404
17405
17406 fi
17407
17408
17409 { echo "$as_me:$LINENO: checking for sigaddset" >&5
17410 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
17411 if test "${wine_cv_have_sigaddset+set}" = set; then
17412   echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414   cat >conftest.$ac_ext <<_ACEOF
17415 /* confdefs.h.  */
17416 _ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h.  */
17420 #include <signal.h>
17421 int
17422 main ()
17423 {
17424 sigset_t set; sigaddset(&set,SIGTERM);
17425   ;
17426   return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (ac_try="$ac_link"
17431 case "(($ac_try" in
17432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433   *) ac_try_echo=$ac_try;;
17434 esac
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436   (eval "$ac_link") 2>conftest.er1
17437   ac_status=$?
17438   grep -v '^ *+' conftest.er1 >conftest.err
17439   rm -f conftest.er1
17440   cat conftest.err >&5
17441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442   (exit $ac_status); } && {
17443          test -z "$ac_c_werror_flag" ||
17444          test ! -s conftest.err
17445        } && test -s conftest$ac_exeext &&
17446        $as_test_x conftest$ac_exeext; then
17447   wine_cv_have_sigaddset=yes
17448 else
17449   echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17451
17452         wine_cv_have_sigaddset=no
17453 fi
17454
17455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17456       conftest$ac_exeext conftest.$ac_ext
17457 fi
17458 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17459 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
17460 if test "$wine_cv_have_sigaddset" = "yes"
17461 then
17462
17463 cat >>confdefs.h <<\_ACEOF
17464 #define HAVE_SIGADDSET 1
17465 _ACEOF
17466
17467 fi
17468
17469
17470 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17471 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
17472 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17473   echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475   cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h.  */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h.  */
17481
17482 #include <netdb.h>
17483
17484 int
17485 main ()
17486 {
17487
17488     char *name=NULL;
17489     struct hostent he;
17490     struct hostent *result;
17491     char *buf=NULL;
17492     int bufsize=0;
17493     int res,errnr;
17494     char *addr=NULL;
17495     int addrlen=0;
17496     int addrtype=0;
17497     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17498     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17499
17500   ;
17501   return 0;
17502 }
17503 _ACEOF
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (ac_try="$ac_link"
17506 case "(($ac_try" in
17507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508   *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511   (eval "$ac_link") 2>conftest.er1
17512   ac_status=$?
17513   grep -v '^ *+' conftest.er1 >conftest.err
17514   rm -f conftest.er1
17515   cat conftest.err >&5
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); } && {
17518          test -z "$ac_c_werror_flag" ||
17519          test ! -s conftest.err
17520        } && test -s conftest$ac_exeext &&
17521        $as_test_x conftest$ac_exeext; then
17522   wine_cv_linux_gethostbyname_r_6=yes
17523 else
17524   echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17526
17527         wine_cv_linux_gethostbyname_r_6=no
17528
17529 fi
17530
17531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17532       conftest$ac_exeext conftest.$ac_ext
17533
17534 fi
17535 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17536 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
17537    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17538    then
17539
17540 cat >>confdefs.h <<\_ACEOF
17541 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17542 _ACEOF
17543
17544    fi
17545
17546 if test "$ac_cv_header_linux_joystick_h" = "yes"
17547 then
17548    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17549 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
17550 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17551   echo $ECHO_N "(cached) $ECHO_C" >&6
17552 else
17553   cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h.  */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h.  */
17559
17560         #include <sys/ioctl.h>
17561         #include <linux/joystick.h>
17562
17563         struct js_event blub;
17564         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17565         #error "no 2.2 header"
17566         #endif
17567
17568 int
17569 main ()
17570 {
17571 /*empty*/
17572   ;
17573   return 0;
17574 }
17575 _ACEOF
17576 rm -f conftest.$ac_objext
17577 if { (ac_try="$ac_compile"
17578 case "(($ac_try" in
17579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580   *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583   (eval "$ac_compile") 2>conftest.er1
17584   ac_status=$?
17585   grep -v '^ *+' conftest.er1 >conftest.err
17586   rm -f conftest.er1
17587   cat conftest.err >&5
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); } && {
17590          test -z "$ac_c_werror_flag" ||
17591          test ! -s conftest.err
17592        } && test -s conftest.$ac_objext; then
17593   wine_cv_linux_joystick_22_api=yes
17594 else
17595   echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17597
17598         wine_cv_linux_joystick_22_api=no
17599 fi
17600
17601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602
17603 fi
17604 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17605 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
17606    if test "$wine_cv_linux_joystick_22_api" = "yes"
17607    then
17608
17609 cat >>confdefs.h <<\_ACEOF
17610 #define HAVE_LINUX_22_JOYSTICK_API 1
17611 _ACEOF
17612
17613    fi
17614 fi
17615
17616
17617 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17618 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
17619 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17620   echo $ECHO_N "(cached) $ECHO_C" >&6
17621 else
17622   cat >conftest.$ac_ext <<_ACEOF
17623 /* confdefs.h.  */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h.  */
17628 #include <sys/types.h>
17629 #ifdef HAVE_SYS_PARAM_H
17630 # include <sys/param.h>
17631 #endif
17632 #ifdef HAVE_SYS_MOUNT_H
17633 # include <sys/mount.h>
17634 #endif
17635 #ifdef HAVE_SYS_VFS_H
17636 # include <sys/vfs.h>
17637 #endif
17638 #ifdef HAVE_SYS_STATFS_H
17639 # include <sys/statfs.h>
17640 #endif
17641
17642 int
17643 main ()
17644 {
17645 static struct statfs ac_aggr;
17646 if (ac_aggr.f_bfree)
17647 return 0;
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext
17653 if { (ac_try="$ac_compile"
17654 case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659   (eval "$ac_compile") 2>conftest.er1
17660   ac_status=$?
17661   grep -v '^ *+' conftest.er1 >conftest.err
17662   rm -f conftest.er1
17663   cat conftest.err >&5
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); } && {
17666          test -z "$ac_c_werror_flag" ||
17667          test ! -s conftest.err
17668        } && test -s conftest.$ac_objext; then
17669   ac_cv_member_struct_statfs_f_bfree=yes
17670 else
17671   echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17673
17674         cat >conftest.$ac_ext <<_ACEOF
17675 /* confdefs.h.  */
17676 _ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h.  */
17680 #include <sys/types.h>
17681 #ifdef HAVE_SYS_PARAM_H
17682 # include <sys/param.h>
17683 #endif
17684 #ifdef HAVE_SYS_MOUNT_H
17685 # include <sys/mount.h>
17686 #endif
17687 #ifdef HAVE_SYS_VFS_H
17688 # include <sys/vfs.h>
17689 #endif
17690 #ifdef HAVE_SYS_STATFS_H
17691 # include <sys/statfs.h>
17692 #endif
17693
17694 int
17695 main ()
17696 {
17697 static struct statfs ac_aggr;
17698 if (sizeof ac_aggr.f_bfree)
17699 return 0;
17700   ;
17701   return 0;
17702 }
17703 _ACEOF
17704 rm -f conftest.$ac_objext
17705 if { (ac_try="$ac_compile"
17706 case "(($ac_try" in
17707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708   *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711   (eval "$ac_compile") 2>conftest.er1
17712   ac_status=$?
17713   grep -v '^ *+' conftest.er1 >conftest.err
17714   rm -f conftest.er1
17715   cat conftest.err >&5
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); } && {
17718          test -z "$ac_c_werror_flag" ||
17719          test ! -s conftest.err
17720        } && test -s conftest.$ac_objext; then
17721   ac_cv_member_struct_statfs_f_bfree=yes
17722 else
17723   echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17725
17726         ac_cv_member_struct_statfs_f_bfree=no
17727 fi
17728
17729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17730 fi
17731
17732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17733 fi
17734 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17735 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
17736 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17737
17738 cat >>confdefs.h <<_ACEOF
17739 #define HAVE_STRUCT_STATFS_F_BFREE 1
17740 _ACEOF
17741
17742
17743 fi
17744 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17745 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
17746 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17747   echo $ECHO_N "(cached) $ECHO_C" >&6
17748 else
17749   cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h.  */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h.  */
17755 #include <sys/types.h>
17756 #ifdef HAVE_SYS_PARAM_H
17757 # include <sys/param.h>
17758 #endif
17759 #ifdef HAVE_SYS_MOUNT_H
17760 # include <sys/mount.h>
17761 #endif
17762 #ifdef HAVE_SYS_VFS_H
17763 # include <sys/vfs.h>
17764 #endif
17765 #ifdef HAVE_SYS_STATFS_H
17766 # include <sys/statfs.h>
17767 #endif
17768
17769 int
17770 main ()
17771 {
17772 static struct statfs ac_aggr;
17773 if (ac_aggr.f_bavail)
17774 return 0;
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783   *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786   (eval "$ac_compile") 2>conftest.er1
17787   ac_status=$?
17788   grep -v '^ *+' conftest.er1 >conftest.err
17789   rm -f conftest.er1
17790   cat conftest.err >&5
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } && {
17793          test -z "$ac_c_werror_flag" ||
17794          test ! -s conftest.err
17795        } && test -s conftest.$ac_objext; then
17796   ac_cv_member_struct_statfs_f_bavail=yes
17797 else
17798   echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801         cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h.  */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h.  */
17807 #include <sys/types.h>
17808 #ifdef HAVE_SYS_PARAM_H
17809 # include <sys/param.h>
17810 #endif
17811 #ifdef HAVE_SYS_MOUNT_H
17812 # include <sys/mount.h>
17813 #endif
17814 #ifdef HAVE_SYS_VFS_H
17815 # include <sys/vfs.h>
17816 #endif
17817 #ifdef HAVE_SYS_STATFS_H
17818 # include <sys/statfs.h>
17819 #endif
17820
17821 int
17822 main ()
17823 {
17824 static struct statfs ac_aggr;
17825 if (sizeof ac_aggr.f_bavail)
17826 return 0;
17827   ;
17828   return 0;
17829 }
17830 _ACEOF
17831 rm -f conftest.$ac_objext
17832 if { (ac_try="$ac_compile"
17833 case "(($ac_try" in
17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835   *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838   (eval "$ac_compile") 2>conftest.er1
17839   ac_status=$?
17840   grep -v '^ *+' conftest.er1 >conftest.err
17841   rm -f conftest.er1
17842   cat conftest.err >&5
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); } && {
17845          test -z "$ac_c_werror_flag" ||
17846          test ! -s conftest.err
17847        } && test -s conftest.$ac_objext; then
17848   ac_cv_member_struct_statfs_f_bavail=yes
17849 else
17850   echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17852
17853         ac_cv_member_struct_statfs_f_bavail=no
17854 fi
17855
17856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17857 fi
17858
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17860 fi
17861 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17862 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
17863 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17864
17865 cat >>confdefs.h <<_ACEOF
17866 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17867 _ACEOF
17868
17869
17870 fi
17871 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17872 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
17873 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17874   echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876   cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h.  */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h.  */
17882 #include <sys/types.h>
17883 #ifdef HAVE_SYS_PARAM_H
17884 # include <sys/param.h>
17885 #endif
17886 #ifdef HAVE_SYS_MOUNT_H
17887 # include <sys/mount.h>
17888 #endif
17889 #ifdef HAVE_SYS_VFS_H
17890 # include <sys/vfs.h>
17891 #endif
17892 #ifdef HAVE_SYS_STATFS_H
17893 # include <sys/statfs.h>
17894 #endif
17895
17896 int
17897 main ()
17898 {
17899 static struct statfs ac_aggr;
17900 if (ac_aggr.f_frsize)
17901 return 0;
17902   ;
17903   return 0;
17904 }
17905 _ACEOF
17906 rm -f conftest.$ac_objext
17907 if { (ac_try="$ac_compile"
17908 case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_compile") 2>conftest.er1
17914   ac_status=$?
17915   grep -v '^ *+' conftest.er1 >conftest.err
17916   rm -f conftest.er1
17917   cat conftest.err >&5
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); } && {
17920          test -z "$ac_c_werror_flag" ||
17921          test ! -s conftest.err
17922        } && test -s conftest.$ac_objext; then
17923   ac_cv_member_struct_statfs_f_frsize=yes
17924 else
17925   echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17927
17928         cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h.  */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h.  */
17934 #include <sys/types.h>
17935 #ifdef HAVE_SYS_PARAM_H
17936 # include <sys/param.h>
17937 #endif
17938 #ifdef HAVE_SYS_MOUNT_H
17939 # include <sys/mount.h>
17940 #endif
17941 #ifdef HAVE_SYS_VFS_H
17942 # include <sys/vfs.h>
17943 #endif
17944 #ifdef HAVE_SYS_STATFS_H
17945 # include <sys/statfs.h>
17946 #endif
17947
17948 int
17949 main ()
17950 {
17951 static struct statfs ac_aggr;
17952 if (sizeof ac_aggr.f_frsize)
17953 return 0;
17954   ;
17955   return 0;
17956 }
17957 _ACEOF
17958 rm -f conftest.$ac_objext
17959 if { (ac_try="$ac_compile"
17960 case "(($ac_try" in
17961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962   *) ac_try_echo=$ac_try;;
17963 esac
17964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965   (eval "$ac_compile") 2>conftest.er1
17966   ac_status=$?
17967   grep -v '^ *+' conftest.er1 >conftest.err
17968   rm -f conftest.er1
17969   cat conftest.err >&5
17970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971   (exit $ac_status); } && {
17972          test -z "$ac_c_werror_flag" ||
17973          test ! -s conftest.err
17974        } && test -s conftest.$ac_objext; then
17975   ac_cv_member_struct_statfs_f_frsize=yes
17976 else
17977   echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980         ac_cv_member_struct_statfs_f_frsize=no
17981 fi
17982
17983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17984 fi
17985
17986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17987 fi
17988 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
17989 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
17990 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
17991
17992 cat >>confdefs.h <<_ACEOF
17993 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
17994 _ACEOF
17995
17996
17997 fi
17998 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
17999 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
18000 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18001   echo $ECHO_N "(cached) $ECHO_C" >&6
18002 else
18003   cat >conftest.$ac_ext <<_ACEOF
18004 /* confdefs.h.  */
18005 _ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h.  */
18009 #include <sys/types.h>
18010 #ifdef HAVE_SYS_PARAM_H
18011 # include <sys/param.h>
18012 #endif
18013 #ifdef HAVE_SYS_MOUNT_H
18014 # include <sys/mount.h>
18015 #endif
18016 #ifdef HAVE_SYS_VFS_H
18017 # include <sys/vfs.h>
18018 #endif
18019 #ifdef HAVE_SYS_STATFS_H
18020 # include <sys/statfs.h>
18021 #endif
18022
18023 int
18024 main ()
18025 {
18026 static struct statfs ac_aggr;
18027 if (ac_aggr.f_ffree)
18028 return 0;
18029   ;
18030   return 0;
18031 }
18032 _ACEOF
18033 rm -f conftest.$ac_objext
18034 if { (ac_try="$ac_compile"
18035 case "(($ac_try" in
18036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037   *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040   (eval "$ac_compile") 2>conftest.er1
18041   ac_status=$?
18042   grep -v '^ *+' conftest.er1 >conftest.err
18043   rm -f conftest.er1
18044   cat conftest.err >&5
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } && {
18047          test -z "$ac_c_werror_flag" ||
18048          test ! -s conftest.err
18049        } && test -s conftest.$ac_objext; then
18050   ac_cv_member_struct_statfs_f_ffree=yes
18051 else
18052   echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055         cat >conftest.$ac_ext <<_ACEOF
18056 /* confdefs.h.  */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h.  */
18061 #include <sys/types.h>
18062 #ifdef HAVE_SYS_PARAM_H
18063 # include <sys/param.h>
18064 #endif
18065 #ifdef HAVE_SYS_MOUNT_H
18066 # include <sys/mount.h>
18067 #endif
18068 #ifdef HAVE_SYS_VFS_H
18069 # include <sys/vfs.h>
18070 #endif
18071 #ifdef HAVE_SYS_STATFS_H
18072 # include <sys/statfs.h>
18073 #endif
18074
18075 int
18076 main ()
18077 {
18078 static struct statfs ac_aggr;
18079 if (sizeof ac_aggr.f_ffree)
18080 return 0;
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext
18086 if { (ac_try="$ac_compile"
18087 case "(($ac_try" in
18088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089   *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092   (eval "$ac_compile") 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } && {
18099          test -z "$ac_c_werror_flag" ||
18100          test ! -s conftest.err
18101        } && test -s conftest.$ac_objext; then
18102   ac_cv_member_struct_statfs_f_ffree=yes
18103 else
18104   echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107         ac_cv_member_struct_statfs_f_ffree=no
18108 fi
18109
18110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111 fi
18112
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 fi
18115 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18116 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
18117 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18118
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_STRUCT_STATFS_F_FFREE 1
18121 _ACEOF
18122
18123
18124 fi
18125 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18126 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
18127 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18128   echo $ECHO_N "(cached) $ECHO_C" >&6
18129 else
18130   cat >conftest.$ac_ext <<_ACEOF
18131 /* confdefs.h.  */
18132 _ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h.  */
18136 #include <sys/types.h>
18137 #ifdef HAVE_SYS_PARAM_H
18138 # include <sys/param.h>
18139 #endif
18140 #ifdef HAVE_SYS_MOUNT_H
18141 # include <sys/mount.h>
18142 #endif
18143 #ifdef HAVE_SYS_VFS_H
18144 # include <sys/vfs.h>
18145 #endif
18146 #ifdef HAVE_SYS_STATFS_H
18147 # include <sys/statfs.h>
18148 #endif
18149
18150 int
18151 main ()
18152 {
18153 static struct statfs ac_aggr;
18154 if (ac_aggr.f_favail)
18155 return 0;
18156   ;
18157   return 0;
18158 }
18159 _ACEOF
18160 rm -f conftest.$ac_objext
18161 if { (ac_try="$ac_compile"
18162 case "(($ac_try" in
18163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18164   *) ac_try_echo=$ac_try;;
18165 esac
18166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18167   (eval "$ac_compile") 2>conftest.er1
18168   ac_status=$?
18169   grep -v '^ *+' conftest.er1 >conftest.err
18170   rm -f conftest.er1
18171   cat conftest.err >&5
18172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173   (exit $ac_status); } && {
18174          test -z "$ac_c_werror_flag" ||
18175          test ! -s conftest.err
18176        } && test -s conftest.$ac_objext; then
18177   ac_cv_member_struct_statfs_f_favail=yes
18178 else
18179   echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18181
18182         cat >conftest.$ac_ext <<_ACEOF
18183 /* confdefs.h.  */
18184 _ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h.  */
18188 #include <sys/types.h>
18189 #ifdef HAVE_SYS_PARAM_H
18190 # include <sys/param.h>
18191 #endif
18192 #ifdef HAVE_SYS_MOUNT_H
18193 # include <sys/mount.h>
18194 #endif
18195 #ifdef HAVE_SYS_VFS_H
18196 # include <sys/vfs.h>
18197 #endif
18198 #ifdef HAVE_SYS_STATFS_H
18199 # include <sys/statfs.h>
18200 #endif
18201
18202 int
18203 main ()
18204 {
18205 static struct statfs ac_aggr;
18206 if (sizeof ac_aggr.f_favail)
18207 return 0;
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext
18213 if { (ac_try="$ac_compile"
18214 case "(($ac_try" in
18215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216   *) ac_try_echo=$ac_try;;
18217 esac
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219   (eval "$ac_compile") 2>conftest.er1
18220   ac_status=$?
18221   grep -v '^ *+' conftest.er1 >conftest.err
18222   rm -f conftest.er1
18223   cat conftest.err >&5
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); } && {
18226          test -z "$ac_c_werror_flag" ||
18227          test ! -s conftest.err
18228        } && test -s conftest.$ac_objext; then
18229   ac_cv_member_struct_statfs_f_favail=yes
18230 else
18231   echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18233
18234         ac_cv_member_struct_statfs_f_favail=no
18235 fi
18236
18237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18238 fi
18239
18240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18241 fi
18242 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18243 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
18244 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18245
18246 cat >>confdefs.h <<_ACEOF
18247 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18248 _ACEOF
18249
18250
18251 fi
18252 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18253 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
18254 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18255   echo $ECHO_N "(cached) $ECHO_C" >&6
18256 else
18257   cat >conftest.$ac_ext <<_ACEOF
18258 /* confdefs.h.  */
18259 _ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h.  */
18263 #include <sys/types.h>
18264 #ifdef HAVE_SYS_PARAM_H
18265 # include <sys/param.h>
18266 #endif
18267 #ifdef HAVE_SYS_MOUNT_H
18268 # include <sys/mount.h>
18269 #endif
18270 #ifdef HAVE_SYS_VFS_H
18271 # include <sys/vfs.h>
18272 #endif
18273 #ifdef HAVE_SYS_STATFS_H
18274 # include <sys/statfs.h>
18275 #endif
18276
18277 int
18278 main ()
18279 {
18280 static struct statfs ac_aggr;
18281 if (ac_aggr.f_namelen)
18282 return 0;
18283   ;
18284   return 0;
18285 }
18286 _ACEOF
18287 rm -f conftest.$ac_objext
18288 if { (ac_try="$ac_compile"
18289 case "(($ac_try" in
18290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291   *) ac_try_echo=$ac_try;;
18292 esac
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294   (eval "$ac_compile") 2>conftest.er1
18295   ac_status=$?
18296   grep -v '^ *+' conftest.er1 >conftest.err
18297   rm -f conftest.er1
18298   cat conftest.err >&5
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); } && {
18301          test -z "$ac_c_werror_flag" ||
18302          test ! -s conftest.err
18303        } && test -s conftest.$ac_objext; then
18304   ac_cv_member_struct_statfs_f_namelen=yes
18305 else
18306   echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18308
18309         cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h.  */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h.  */
18315 #include <sys/types.h>
18316 #ifdef HAVE_SYS_PARAM_H
18317 # include <sys/param.h>
18318 #endif
18319 #ifdef HAVE_SYS_MOUNT_H
18320 # include <sys/mount.h>
18321 #endif
18322 #ifdef HAVE_SYS_VFS_H
18323 # include <sys/vfs.h>
18324 #endif
18325 #ifdef HAVE_SYS_STATFS_H
18326 # include <sys/statfs.h>
18327 #endif
18328
18329 int
18330 main ()
18331 {
18332 static struct statfs ac_aggr;
18333 if (sizeof ac_aggr.f_namelen)
18334 return 0;
18335   ;
18336   return 0;
18337 }
18338 _ACEOF
18339 rm -f conftest.$ac_objext
18340 if { (ac_try="$ac_compile"
18341 case "(($ac_try" in
18342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343   *) ac_try_echo=$ac_try;;
18344 esac
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346   (eval "$ac_compile") 2>conftest.er1
18347   ac_status=$?
18348   grep -v '^ *+' conftest.er1 >conftest.err
18349   rm -f conftest.er1
18350   cat conftest.err >&5
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); } && {
18353          test -z "$ac_c_werror_flag" ||
18354          test ! -s conftest.err
18355        } && test -s conftest.$ac_objext; then
18356   ac_cv_member_struct_statfs_f_namelen=yes
18357 else
18358   echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18360
18361         ac_cv_member_struct_statfs_f_namelen=no
18362 fi
18363
18364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18365 fi
18366
18367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18368 fi
18369 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18370 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
18371 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18372
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18375 _ACEOF
18376
18377
18378 fi
18379
18380
18381 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18382 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
18383 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18384   echo $ECHO_N "(cached) $ECHO_C" >&6
18385 else
18386   cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h.  */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h.  */
18392 #ifdef HAVE_SYS_STATVFS_H
18393 #include <sys/statvfs.h>
18394 #endif
18395
18396 int
18397 main ()
18398 {
18399 static struct statvfs ac_aggr;
18400 if (ac_aggr.f_blocks)
18401 return 0;
18402   ;
18403   return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext
18407 if { (ac_try="$ac_compile"
18408 case "(($ac_try" in
18409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410   *) ac_try_echo=$ac_try;;
18411 esac
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413   (eval "$ac_compile") 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } && {
18420          test -z "$ac_c_werror_flag" ||
18421          test ! -s conftest.err
18422        } && test -s conftest.$ac_objext; then
18423   ac_cv_member_struct_statvfs_f_blocks=yes
18424 else
18425   echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18427
18428         cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h.  */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h.  */
18434 #ifdef HAVE_SYS_STATVFS_H
18435 #include <sys/statvfs.h>
18436 #endif
18437
18438 int
18439 main ()
18440 {
18441 static struct statvfs ac_aggr;
18442 if (sizeof ac_aggr.f_blocks)
18443 return 0;
18444   ;
18445   return 0;
18446 }
18447 _ACEOF
18448 rm -f conftest.$ac_objext
18449 if { (ac_try="$ac_compile"
18450 case "(($ac_try" in
18451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452   *) ac_try_echo=$ac_try;;
18453 esac
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455   (eval "$ac_compile") 2>conftest.er1
18456   ac_status=$?
18457   grep -v '^ *+' conftest.er1 >conftest.err
18458   rm -f conftest.er1
18459   cat conftest.err >&5
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); } && {
18462          test -z "$ac_c_werror_flag" ||
18463          test ! -s conftest.err
18464        } && test -s conftest.$ac_objext; then
18465   ac_cv_member_struct_statvfs_f_blocks=yes
18466 else
18467   echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18469
18470         ac_cv_member_struct_statvfs_f_blocks=no
18471 fi
18472
18473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474 fi
18475
18476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18477 fi
18478 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18479 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
18480 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18481
18482 cat >>confdefs.h <<_ACEOF
18483 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18484 _ACEOF
18485
18486
18487 fi
18488
18489
18490 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18491 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
18492 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18493   echo $ECHO_N "(cached) $ECHO_C" >&6
18494 else
18495   cat >conftest.$ac_ext <<_ACEOF
18496 /* confdefs.h.  */
18497 _ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h.  */
18501 #include <sys/types.h>
18502 #ifdef HAVE_SYS_SOCKET_H
18503 # include <sys/socket.h>
18504 #endif
18505 #ifdef HAVE_SYS_UN_H
18506 # include <sys/un.h>
18507 #endif
18508
18509 int
18510 main ()
18511 {
18512 static struct msghdr ac_aggr;
18513 if (ac_aggr.msg_accrights)
18514 return 0;
18515   ;
18516   return 0;
18517 }
18518 _ACEOF
18519 rm -f conftest.$ac_objext
18520 if { (ac_try="$ac_compile"
18521 case "(($ac_try" in
18522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523   *) ac_try_echo=$ac_try;;
18524 esac
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526   (eval "$ac_compile") 2>conftest.er1
18527   ac_status=$?
18528   grep -v '^ *+' conftest.er1 >conftest.err
18529   rm -f conftest.er1
18530   cat conftest.err >&5
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); } && {
18533          test -z "$ac_c_werror_flag" ||
18534          test ! -s conftest.err
18535        } && test -s conftest.$ac_objext; then
18536   ac_cv_member_struct_msghdr_msg_accrights=yes
18537 else
18538   echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18540
18541         cat >conftest.$ac_ext <<_ACEOF
18542 /* confdefs.h.  */
18543 _ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h.  */
18547 #include <sys/types.h>
18548 #ifdef HAVE_SYS_SOCKET_H
18549 # include <sys/socket.h>
18550 #endif
18551 #ifdef HAVE_SYS_UN_H
18552 # include <sys/un.h>
18553 #endif
18554
18555 int
18556 main ()
18557 {
18558 static struct msghdr ac_aggr;
18559 if (sizeof ac_aggr.msg_accrights)
18560 return 0;
18561   ;
18562   return 0;
18563 }
18564 _ACEOF
18565 rm -f conftest.$ac_objext
18566 if { (ac_try="$ac_compile"
18567 case "(($ac_try" in
18568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569   *) ac_try_echo=$ac_try;;
18570 esac
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572   (eval "$ac_compile") 2>conftest.er1
18573   ac_status=$?
18574   grep -v '^ *+' conftest.er1 >conftest.err
18575   rm -f conftest.er1
18576   cat conftest.err >&5
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); } && {
18579          test -z "$ac_c_werror_flag" ||
18580          test ! -s conftest.err
18581        } && test -s conftest.$ac_objext; then
18582   ac_cv_member_struct_msghdr_msg_accrights=yes
18583 else
18584   echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18586
18587         ac_cv_member_struct_msghdr_msg_accrights=no
18588 fi
18589
18590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18591 fi
18592
18593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18594 fi
18595 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18596 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
18597 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18598
18599 cat >>confdefs.h <<_ACEOF
18600 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18601 _ACEOF
18602
18603
18604 fi
18605 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18606 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
18607 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18608   echo $ECHO_N "(cached) $ECHO_C" >&6
18609 else
18610   cat >conftest.$ac_ext <<_ACEOF
18611 /* confdefs.h.  */
18612 _ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h.  */
18616 #include <sys/types.h>
18617 #ifdef HAVE_SYS_SOCKET_H
18618 # include <sys/socket.h>
18619 #endif
18620 #ifdef HAVE_SYS_UN_H
18621 # include <sys/un.h>
18622 #endif
18623
18624 int
18625 main ()
18626 {
18627 static struct sockaddr ac_aggr;
18628 if (ac_aggr.sa_len)
18629 return 0;
18630   ;
18631   return 0;
18632 }
18633 _ACEOF
18634 rm -f conftest.$ac_objext
18635 if { (ac_try="$ac_compile"
18636 case "(($ac_try" in
18637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638   *) ac_try_echo=$ac_try;;
18639 esac
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641   (eval "$ac_compile") 2>conftest.er1
18642   ac_status=$?
18643   grep -v '^ *+' conftest.er1 >conftest.err
18644   rm -f conftest.er1
18645   cat conftest.err >&5
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); } && {
18648          test -z "$ac_c_werror_flag" ||
18649          test ! -s conftest.err
18650        } && test -s conftest.$ac_objext; then
18651   ac_cv_member_struct_sockaddr_sa_len=yes
18652 else
18653   echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18655
18656         cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h.  */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h.  */
18662 #include <sys/types.h>
18663 #ifdef HAVE_SYS_SOCKET_H
18664 # include <sys/socket.h>
18665 #endif
18666 #ifdef HAVE_SYS_UN_H
18667 # include <sys/un.h>
18668 #endif
18669
18670 int
18671 main ()
18672 {
18673 static struct sockaddr ac_aggr;
18674 if (sizeof ac_aggr.sa_len)
18675 return 0;
18676   ;
18677   return 0;
18678 }
18679 _ACEOF
18680 rm -f conftest.$ac_objext
18681 if { (ac_try="$ac_compile"
18682 case "(($ac_try" in
18683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684   *) ac_try_echo=$ac_try;;
18685 esac
18686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687   (eval "$ac_compile") 2>conftest.er1
18688   ac_status=$?
18689   grep -v '^ *+' conftest.er1 >conftest.err
18690   rm -f conftest.er1
18691   cat conftest.err >&5
18692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693   (exit $ac_status); } && {
18694          test -z "$ac_c_werror_flag" ||
18695          test ! -s conftest.err
18696        } && test -s conftest.$ac_objext; then
18697   ac_cv_member_struct_sockaddr_sa_len=yes
18698 else
18699   echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18701
18702         ac_cv_member_struct_sockaddr_sa_len=no
18703 fi
18704
18705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18706 fi
18707
18708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18709 fi
18710 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18711 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
18712 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18713
18714 cat >>confdefs.h <<_ACEOF
18715 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18716 _ACEOF
18717
18718
18719 fi
18720 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18721 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
18722 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18723   echo $ECHO_N "(cached) $ECHO_C" >&6
18724 else
18725   cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h.  */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h.  */
18731 #include <sys/types.h>
18732 #ifdef HAVE_SYS_SOCKET_H
18733 # include <sys/socket.h>
18734 #endif
18735 #ifdef HAVE_SYS_UN_H
18736 # include <sys/un.h>
18737 #endif
18738
18739 int
18740 main ()
18741 {
18742 static struct sockaddr_un ac_aggr;
18743 if (ac_aggr.sun_len)
18744 return 0;
18745   ;
18746   return 0;
18747 }
18748 _ACEOF
18749 rm -f conftest.$ac_objext
18750 if { (ac_try="$ac_compile"
18751 case "(($ac_try" in
18752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753   *) ac_try_echo=$ac_try;;
18754 esac
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756   (eval "$ac_compile") 2>conftest.er1
18757   ac_status=$?
18758   grep -v '^ *+' conftest.er1 >conftest.err
18759   rm -f conftest.er1
18760   cat conftest.err >&5
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); } && {
18763          test -z "$ac_c_werror_flag" ||
18764          test ! -s conftest.err
18765        } && test -s conftest.$ac_objext; then
18766   ac_cv_member_struct_sockaddr_un_sun_len=yes
18767 else
18768   echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18770
18771         cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h.  */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h.  */
18777 #include <sys/types.h>
18778 #ifdef HAVE_SYS_SOCKET_H
18779 # include <sys/socket.h>
18780 #endif
18781 #ifdef HAVE_SYS_UN_H
18782 # include <sys/un.h>
18783 #endif
18784
18785 int
18786 main ()
18787 {
18788 static struct sockaddr_un ac_aggr;
18789 if (sizeof ac_aggr.sun_len)
18790 return 0;
18791   ;
18792   return 0;
18793 }
18794 _ACEOF
18795 rm -f conftest.$ac_objext
18796 if { (ac_try="$ac_compile"
18797 case "(($ac_try" in
18798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799   *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802   (eval "$ac_compile") 2>conftest.er1
18803   ac_status=$?
18804   grep -v '^ *+' conftest.er1 >conftest.err
18805   rm -f conftest.er1
18806   cat conftest.err >&5
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); } && {
18809          test -z "$ac_c_werror_flag" ||
18810          test ! -s conftest.err
18811        } && test -s conftest.$ac_objext; then
18812   ac_cv_member_struct_sockaddr_un_sun_len=yes
18813 else
18814   echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817         ac_cv_member_struct_sockaddr_un_sun_len=no
18818 fi
18819
18820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18821 fi
18822
18823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18824 fi
18825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18826 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
18827 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18828
18829 cat >>confdefs.h <<_ACEOF
18830 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18831 _ACEOF
18832
18833
18834 fi
18835
18836
18837 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18838 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
18839 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18840   echo $ECHO_N "(cached) $ECHO_C" >&6
18841 else
18842   cat >conftest.$ac_ext <<_ACEOF
18843 /* confdefs.h.  */
18844 _ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h.  */
18848 #include <sys/types.h>
18849 #ifdef HAVE_SCSI_SG_H
18850 #include <scsi/sg.h>
18851 #endif
18852
18853 int
18854 main ()
18855 {
18856 static scsireq_t ac_aggr;
18857 if (ac_aggr.cmd)
18858 return 0;
18859   ;
18860   return 0;
18861 }
18862 _ACEOF
18863 rm -f conftest.$ac_objext
18864 if { (ac_try="$ac_compile"
18865 case "(($ac_try" in
18866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867   *) ac_try_echo=$ac_try;;
18868 esac
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870   (eval "$ac_compile") 2>conftest.er1
18871   ac_status=$?
18872   grep -v '^ *+' conftest.er1 >conftest.err
18873   rm -f conftest.er1
18874   cat conftest.err >&5
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); } && {
18877          test -z "$ac_c_werror_flag" ||
18878          test ! -s conftest.err
18879        } && test -s conftest.$ac_objext; then
18880   ac_cv_member_scsireq_t_cmd=yes
18881 else
18882   echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18884
18885         cat >conftest.$ac_ext <<_ACEOF
18886 /* confdefs.h.  */
18887 _ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h.  */
18891 #include <sys/types.h>
18892 #ifdef HAVE_SCSI_SG_H
18893 #include <scsi/sg.h>
18894 #endif
18895
18896 int
18897 main ()
18898 {
18899 static scsireq_t ac_aggr;
18900 if (sizeof ac_aggr.cmd)
18901 return 0;
18902   ;
18903   return 0;
18904 }
18905 _ACEOF
18906 rm -f conftest.$ac_objext
18907 if { (ac_try="$ac_compile"
18908 case "(($ac_try" in
18909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910   *) ac_try_echo=$ac_try;;
18911 esac
18912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913   (eval "$ac_compile") 2>conftest.er1
18914   ac_status=$?
18915   grep -v '^ *+' conftest.er1 >conftest.err
18916   rm -f conftest.er1
18917   cat conftest.err >&5
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); } && {
18920          test -z "$ac_c_werror_flag" ||
18921          test ! -s conftest.err
18922        } && test -s conftest.$ac_objext; then
18923   ac_cv_member_scsireq_t_cmd=yes
18924 else
18925   echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18927
18928         ac_cv_member_scsireq_t_cmd=no
18929 fi
18930
18931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18932 fi
18933
18934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935 fi
18936 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
18937 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
18938 if test $ac_cv_member_scsireq_t_cmd = yes; then
18939
18940 cat >>confdefs.h <<_ACEOF
18941 #define HAVE_SCSIREQ_T_CMD 1
18942 _ACEOF
18943
18944
18945 fi
18946 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
18947 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
18948 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
18949   echo $ECHO_N "(cached) $ECHO_C" >&6
18950 else
18951   cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h.  */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h.  */
18957 #include <sys/types.h>
18958 #ifdef HAVE_SCSI_SG_H
18959 #include <scsi/sg.h>
18960 #endif
18961
18962 int
18963 main ()
18964 {
18965 static sg_io_hdr_t ac_aggr;
18966 if (ac_aggr.interface_id)
18967 return 0;
18968   ;
18969   return 0;
18970 }
18971 _ACEOF
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976   *) ac_try_echo=$ac_try;;
18977 esac
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979   (eval "$ac_compile") 2>conftest.er1
18980   ac_status=$?
18981   grep -v '^ *+' conftest.er1 >conftest.err
18982   rm -f conftest.er1
18983   cat conftest.err >&5
18984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); } && {
18986          test -z "$ac_c_werror_flag" ||
18987          test ! -s conftest.err
18988        } && test -s conftest.$ac_objext; then
18989   ac_cv_member_sg_io_hdr_t_interface_id=yes
18990 else
18991   echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18993
18994         cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000 #include <sys/types.h>
19001 #ifdef HAVE_SCSI_SG_H
19002 #include <scsi/sg.h>
19003 #endif
19004
19005 int
19006 main ()
19007 {
19008 static sg_io_hdr_t ac_aggr;
19009 if (sizeof ac_aggr.interface_id)
19010 return 0;
19011   ;
19012   return 0;
19013 }
19014 _ACEOF
19015 rm -f conftest.$ac_objext
19016 if { (ac_try="$ac_compile"
19017 case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_compile") 2>conftest.er1
19023   ac_status=$?
19024   grep -v '^ *+' conftest.er1 >conftest.err
19025   rm -f conftest.er1
19026   cat conftest.err >&5
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); } && {
19029          test -z "$ac_c_werror_flag" ||
19030          test ! -s conftest.err
19031        } && test -s conftest.$ac_objext; then
19032   ac_cv_member_sg_io_hdr_t_interface_id=yes
19033 else
19034   echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19036
19037         ac_cv_member_sg_io_hdr_t_interface_id=no
19038 fi
19039
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041 fi
19042
19043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19044 fi
19045 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19046 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
19047 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19048
19049 cat >>confdefs.h <<_ACEOF
19050 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19051 _ACEOF
19052
19053
19054 fi
19055
19056
19057 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19058 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
19059 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
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 (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         cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h.  */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h.  */
19108 #include <signal.h>
19109
19110 int
19111 main ()
19112 {
19113 static siginfo_t ac_aggr;
19114 if (sizeof ac_aggr.si_fd)
19115 return 0;
19116   ;
19117   return 0;
19118 }
19119 _ACEOF
19120 rm -f conftest.$ac_objext
19121 if { (ac_try="$ac_compile"
19122 case "(($ac_try" in
19123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124   *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127   (eval "$ac_compile") 2>conftest.er1
19128   ac_status=$?
19129   grep -v '^ *+' conftest.er1 >conftest.err
19130   rm -f conftest.er1
19131   cat conftest.err >&5
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); } && {
19134          test -z "$ac_c_werror_flag" ||
19135          test ! -s conftest.err
19136        } && test -s conftest.$ac_objext; then
19137   ac_cv_member_siginfo_t_si_fd=yes
19138 else
19139   echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142         ac_cv_member_siginfo_t_si_fd=no
19143 fi
19144
19145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19146 fi
19147
19148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19149 fi
19150 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19151 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
19152 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19153
19154 cat >>confdefs.h <<_ACEOF
19155 #define HAVE_SIGINFO_T_SI_FD 1
19156 _ACEOF
19157
19158
19159 fi
19160
19161
19162 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
19163 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
19164 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
19165   echo $ECHO_N "(cached) $ECHO_C" >&6
19166 else
19167   cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h.  */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h.  */
19173 #include <sys/types.h>
19174 #ifdef HAVE_SYS_MTIO_H
19175 #include <sys/mtio.h>
19176 #endif
19177
19178 int
19179 main ()
19180 {
19181 static struct mtget ac_aggr;
19182 if (ac_aggr.mt_blksiz)
19183 return 0;
19184   ;
19185   return 0;
19186 }
19187 _ACEOF
19188 rm -f conftest.$ac_objext
19189 if { (ac_try="$ac_compile"
19190 case "(($ac_try" in
19191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192   *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195   (eval "$ac_compile") 2>conftest.er1
19196   ac_status=$?
19197   grep -v '^ *+' conftest.er1 >conftest.err
19198   rm -f conftest.er1
19199   cat conftest.err >&5
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); } && {
19202          test -z "$ac_c_werror_flag" ||
19203          test ! -s conftest.err
19204        } && test -s conftest.$ac_objext; then
19205   ac_cv_member_struct_mtget_mt_blksiz=yes
19206 else
19207   echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19209
19210         cat >conftest.$ac_ext <<_ACEOF
19211 /* confdefs.h.  */
19212 _ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h.  */
19216 #include <sys/types.h>
19217 #ifdef HAVE_SYS_MTIO_H
19218 #include <sys/mtio.h>
19219 #endif
19220
19221 int
19222 main ()
19223 {
19224 static struct mtget ac_aggr;
19225 if (sizeof ac_aggr.mt_blksiz)
19226 return 0;
19227   ;
19228   return 0;
19229 }
19230 _ACEOF
19231 rm -f conftest.$ac_objext
19232 if { (ac_try="$ac_compile"
19233 case "(($ac_try" in
19234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235   *) ac_try_echo=$ac_try;;
19236 esac
19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238   (eval "$ac_compile") 2>conftest.er1
19239   ac_status=$?
19240   grep -v '^ *+' conftest.er1 >conftest.err
19241   rm -f conftest.er1
19242   cat conftest.err >&5
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } && {
19245          test -z "$ac_c_werror_flag" ||
19246          test ! -s conftest.err
19247        } && test -s conftest.$ac_objext; then
19248   ac_cv_member_struct_mtget_mt_blksiz=yes
19249 else
19250   echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19252
19253         ac_cv_member_struct_mtget_mt_blksiz=no
19254 fi
19255
19256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19257 fi
19258
19259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19260 fi
19261 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
19262 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
19263 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
19264
19265 cat >>confdefs.h <<_ACEOF
19266 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
19267 _ACEOF
19268
19269
19270 fi
19271 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
19272 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
19273 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
19274   echo $ECHO_N "(cached) $ECHO_C" >&6
19275 else
19276   cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h.  */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h.  */
19282 #include <sys/types.h>
19283 #ifdef HAVE_SYS_MTIO_H
19284 #include <sys/mtio.h>
19285 #endif
19286
19287 int
19288 main ()
19289 {
19290 static struct mtget ac_aggr;
19291 if (ac_aggr.mt_gstat)
19292 return 0;
19293   ;
19294   return 0;
19295 }
19296 _ACEOF
19297 rm -f conftest.$ac_objext
19298 if { (ac_try="$ac_compile"
19299 case "(($ac_try" in
19300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301   *) ac_try_echo=$ac_try;;
19302 esac
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304   (eval "$ac_compile") 2>conftest.er1
19305   ac_status=$?
19306   grep -v '^ *+' conftest.er1 >conftest.err
19307   rm -f conftest.er1
19308   cat conftest.err >&5
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); } && {
19311          test -z "$ac_c_werror_flag" ||
19312          test ! -s conftest.err
19313        } && test -s conftest.$ac_objext; then
19314   ac_cv_member_struct_mtget_mt_gstat=yes
19315 else
19316   echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19318
19319         cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h.  */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h.  */
19325 #include <sys/types.h>
19326 #ifdef HAVE_SYS_MTIO_H
19327 #include <sys/mtio.h>
19328 #endif
19329
19330 int
19331 main ()
19332 {
19333 static struct mtget ac_aggr;
19334 if (sizeof ac_aggr.mt_gstat)
19335 return 0;
19336   ;
19337   return 0;
19338 }
19339 _ACEOF
19340 rm -f conftest.$ac_objext
19341 if { (ac_try="$ac_compile"
19342 case "(($ac_try" in
19343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344   *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347   (eval "$ac_compile") 2>conftest.er1
19348   ac_status=$?
19349   grep -v '^ *+' conftest.er1 >conftest.err
19350   rm -f conftest.er1
19351   cat conftest.err >&5
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); } && {
19354          test -z "$ac_c_werror_flag" ||
19355          test ! -s conftest.err
19356        } && test -s conftest.$ac_objext; then
19357   ac_cv_member_struct_mtget_mt_gstat=yes
19358 else
19359   echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362         ac_cv_member_struct_mtget_mt_gstat=no
19363 fi
19364
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19366 fi
19367
19368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19369 fi
19370 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
19371 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
19372 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
19373
19374 cat >>confdefs.h <<_ACEOF
19375 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
19376 _ACEOF
19377
19378
19379 fi
19380 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
19381 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
19382 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
19383   echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385   cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391 #include <sys/types.h>
19392 #ifdef HAVE_SYS_MTIO_H
19393 #include <sys/mtio.h>
19394 #endif
19395
19396 int
19397 main ()
19398 {
19399 static struct mtget ac_aggr;
19400 if (ac_aggr.mt_blkno)
19401 return 0;
19402   ;
19403   return 0;
19404 }
19405 _ACEOF
19406 rm -f conftest.$ac_objext
19407 if { (ac_try="$ac_compile"
19408 case "(($ac_try" in
19409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410   *) ac_try_echo=$ac_try;;
19411 esac
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413   (eval "$ac_compile") 2>conftest.er1
19414   ac_status=$?
19415   grep -v '^ *+' conftest.er1 >conftest.err
19416   rm -f conftest.er1
19417   cat conftest.err >&5
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); } && {
19420          test -z "$ac_c_werror_flag" ||
19421          test ! -s conftest.err
19422        } && test -s conftest.$ac_objext; then
19423   ac_cv_member_struct_mtget_mt_blkno=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428         cat >conftest.$ac_ext <<_ACEOF
19429 /* confdefs.h.  */
19430 _ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h.  */
19434 #include <sys/types.h>
19435 #ifdef HAVE_SYS_MTIO_H
19436 #include <sys/mtio.h>
19437 #endif
19438
19439 int
19440 main ()
19441 {
19442 static struct mtget ac_aggr;
19443 if (sizeof ac_aggr.mt_blkno)
19444 return 0;
19445   ;
19446   return 0;
19447 }
19448 _ACEOF
19449 rm -f conftest.$ac_objext
19450 if { (ac_try="$ac_compile"
19451 case "(($ac_try" in
19452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453   *) ac_try_echo=$ac_try;;
19454 esac
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456   (eval "$ac_compile") 2>conftest.er1
19457   ac_status=$?
19458   grep -v '^ *+' conftest.er1 >conftest.err
19459   rm -f conftest.er1
19460   cat conftest.err >&5
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); } && {
19463          test -z "$ac_c_werror_flag" ||
19464          test ! -s conftest.err
19465        } && test -s conftest.$ac_objext; then
19466   ac_cv_member_struct_mtget_mt_blkno=yes
19467 else
19468   echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19470
19471         ac_cv_member_struct_mtget_mt_blkno=no
19472 fi
19473
19474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19475 fi
19476
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19478 fi
19479 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19480 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
19481 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19482
19483 cat >>confdefs.h <<_ACEOF
19484 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
19485 _ACEOF
19486
19487
19488 fi
19489
19490
19491 { echo "$as_me:$LINENO: checking for struct option.name" >&5
19492 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
19493 if test "${ac_cv_member_struct_option_name+set}" = set; then
19494   echo $ECHO_N "(cached) $ECHO_C" >&6
19495 else
19496   cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h.  */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h.  */
19502 #ifdef HAVE_GETOPT_H
19503 #include <getopt.h>
19504 #endif
19505
19506 int
19507 main ()
19508 {
19509 static struct option ac_aggr;
19510 if (ac_aggr.name)
19511 return 0;
19512   ;
19513   return 0;
19514 }
19515 _ACEOF
19516 rm -f conftest.$ac_objext
19517 if { (ac_try="$ac_compile"
19518 case "(($ac_try" in
19519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520   *) ac_try_echo=$ac_try;;
19521 esac
19522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523   (eval "$ac_compile") 2>conftest.er1
19524   ac_status=$?
19525   grep -v '^ *+' conftest.er1 >conftest.err
19526   rm -f conftest.er1
19527   cat conftest.err >&5
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); } && {
19530          test -z "$ac_c_werror_flag" ||
19531          test ! -s conftest.err
19532        } && test -s conftest.$ac_objext; then
19533   ac_cv_member_struct_option_name=yes
19534 else
19535   echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538         cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h.  */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h.  */
19544 #ifdef HAVE_GETOPT_H
19545 #include <getopt.h>
19546 #endif
19547
19548 int
19549 main ()
19550 {
19551 static struct option ac_aggr;
19552 if (sizeof ac_aggr.name)
19553 return 0;
19554   ;
19555   return 0;
19556 }
19557 _ACEOF
19558 rm -f conftest.$ac_objext
19559 if { (ac_try="$ac_compile"
19560 case "(($ac_try" in
19561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562   *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565   (eval "$ac_compile") 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } && {
19572          test -z "$ac_c_werror_flag" ||
19573          test ! -s conftest.err
19574        } && test -s conftest.$ac_objext; then
19575   ac_cv_member_struct_option_name=yes
19576 else
19577   echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19579
19580         ac_cv_member_struct_option_name=no
19581 fi
19582
19583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19584 fi
19585
19586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19587 fi
19588 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19589 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
19590 if test $ac_cv_member_struct_option_name = yes; then
19591
19592 cat >>confdefs.h <<_ACEOF
19593 #define HAVE_STRUCT_OPTION_NAME 1
19594 _ACEOF
19595
19596
19597 fi
19598
19599
19600 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19601 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19602 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19603   echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605   cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h.  */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h.  */
19611 $ac_includes_default
19612 int
19613 main ()
19614 {
19615 static struct stat ac_aggr;
19616 if (ac_aggr.st_blocks)
19617 return 0;
19618   ;
19619   return 0;
19620 }
19621 _ACEOF
19622 rm -f conftest.$ac_objext
19623 if { (ac_try="$ac_compile"
19624 case "(($ac_try" in
19625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626   *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629   (eval "$ac_compile") 2>conftest.er1
19630   ac_status=$?
19631   grep -v '^ *+' conftest.er1 >conftest.err
19632   rm -f conftest.er1
19633   cat conftest.err >&5
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); } && {
19636          test -z "$ac_c_werror_flag" ||
19637          test ! -s conftest.err
19638        } && test -s conftest.$ac_objext; then
19639   ac_cv_member_struct_stat_st_blocks=yes
19640 else
19641   echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19643
19644         cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650 $ac_includes_default
19651 int
19652 main ()
19653 {
19654 static struct stat ac_aggr;
19655 if (sizeof ac_aggr.st_blocks)
19656 return 0;
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest.$ac_objext
19662 if { (ac_try="$ac_compile"
19663 case "(($ac_try" in
19664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665   *) ac_try_echo=$ac_try;;
19666 esac
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668   (eval "$ac_compile") 2>conftest.er1
19669   ac_status=$?
19670   grep -v '^ *+' conftest.er1 >conftest.err
19671   rm -f conftest.er1
19672   cat conftest.err >&5
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); } && {
19675          test -z "$ac_c_werror_flag" ||
19676          test ! -s conftest.err
19677        } && test -s conftest.$ac_objext; then
19678   ac_cv_member_struct_stat_st_blocks=yes
19679 else
19680   echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.$ac_ext >&5
19682
19683         ac_cv_member_struct_stat_st_blocks=no
19684 fi
19685
19686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19687 fi
19688
19689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19690 fi
19691 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19692 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19693 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19694
19695 cat >>confdefs.h <<_ACEOF
19696 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19697 _ACEOF
19698
19699
19700 fi
19701
19702
19703 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19704 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
19705 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19706   echo $ECHO_N "(cached) $ECHO_C" >&6
19707 else
19708   cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h.  */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h.  */
19714 #ifdef HAVE_SYS_TYPES_H
19715 #include <sys/types.h>
19716 #endif
19717 #ifdef HAVE_NETINET_IN_H
19718 #include <netinet/in.h>
19719 #endif
19720
19721 int
19722 main ()
19723 {
19724 static struct sockaddr_in6 ac_aggr;
19725 if (ac_aggr.sin6_scope_id)
19726 return 0;
19727   ;
19728   return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext
19732 if { (ac_try="$ac_compile"
19733 case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_compile") 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } && {
19745          test -z "$ac_c_werror_flag" ||
19746          test ! -s conftest.err
19747        } && test -s conftest.$ac_objext; then
19748   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19749 else
19750   echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753         cat >conftest.$ac_ext <<_ACEOF
19754 /* confdefs.h.  */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h.  */
19759 #ifdef HAVE_SYS_TYPES_H
19760 #include <sys/types.h>
19761 #endif
19762 #ifdef HAVE_NETINET_IN_H
19763 #include <netinet/in.h>
19764 #endif
19765
19766 int
19767 main ()
19768 {
19769 static struct sockaddr_in6 ac_aggr;
19770 if (sizeof ac_aggr.sin6_scope_id)
19771 return 0;
19772   ;
19773   return 0;
19774 }
19775 _ACEOF
19776 rm -f conftest.$ac_objext
19777 if { (ac_try="$ac_compile"
19778 case "(($ac_try" in
19779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780   *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783   (eval "$ac_compile") 2>conftest.er1
19784   ac_status=$?
19785   grep -v '^ *+' conftest.er1 >conftest.err
19786   rm -f conftest.er1
19787   cat conftest.err >&5
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); } && {
19790          test -z "$ac_c_werror_flag" ||
19791          test ! -s conftest.err
19792        } && test -s conftest.$ac_objext; then
19793   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19794 else
19795   echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19797
19798         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
19799 fi
19800
19801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19802 fi
19803
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19805 fi
19806 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19807 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
19808 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19809
19810 cat >>confdefs.h <<_ACEOF
19811 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19812 _ACEOF
19813
19814
19815 fi
19816
19817
19818 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
19819 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
19820 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
19821   echo $ECHO_N "(cached) $ECHO_C" >&6
19822 else
19823   cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h.  */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h.  */
19829 #ifdef HAVE_SYS_TYPES_H
19830 #include <sys/types.h>
19831 #endif
19832 #ifdef HAVE_NETINET_IN_H
19833 # include <netinet/in.h>
19834 #endif
19835 #ifdef HAVE_ARPA_NAMESER_H
19836 # include <arpa/nameser.h>
19837 #endif
19838
19839 int
19840 main ()
19841 {
19842 static ns_msg ac_aggr;
19843 if (ac_aggr._msg_ptr)
19844 return 0;
19845   ;
19846   return 0;
19847 }
19848 _ACEOF
19849 rm -f conftest.$ac_objext
19850 if { (ac_try="$ac_compile"
19851 case "(($ac_try" in
19852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853   *) ac_try_echo=$ac_try;;
19854 esac
19855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856   (eval "$ac_compile") 2>conftest.er1
19857   ac_status=$?
19858   grep -v '^ *+' conftest.er1 >conftest.err
19859   rm -f conftest.er1
19860   cat conftest.err >&5
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } && {
19863          test -z "$ac_c_werror_flag" ||
19864          test ! -s conftest.err
19865        } && test -s conftest.$ac_objext; then
19866   ac_cv_member_ns_msg__msg_ptr=yes
19867 else
19868   echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19870
19871         cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h.  */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h.  */
19877 #ifdef HAVE_SYS_TYPES_H
19878 #include <sys/types.h>
19879 #endif
19880 #ifdef HAVE_NETINET_IN_H
19881 # include <netinet/in.h>
19882 #endif
19883 #ifdef HAVE_ARPA_NAMESER_H
19884 # include <arpa/nameser.h>
19885 #endif
19886
19887 int
19888 main ()
19889 {
19890 static ns_msg ac_aggr;
19891 if (sizeof ac_aggr._msg_ptr)
19892 return 0;
19893   ;
19894   return 0;
19895 }
19896 _ACEOF
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901   *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904   (eval "$ac_compile") 2>conftest.er1
19905   ac_status=$?
19906   grep -v '^ *+' conftest.er1 >conftest.err
19907   rm -f conftest.er1
19908   cat conftest.err >&5
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); } && {
19911          test -z "$ac_c_werror_flag" ||
19912          test ! -s conftest.err
19913        } && test -s conftest.$ac_objext; then
19914   ac_cv_member_ns_msg__msg_ptr=yes
19915 else
19916   echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919         ac_cv_member_ns_msg__msg_ptr=no
19920 fi
19921
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 fi
19924
19925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19926 fi
19927 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
19928 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
19929 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
19930
19931 cat >>confdefs.h <<_ACEOF
19932 #define HAVE_NS_MSG__MSG_PTR 1
19933 _ACEOF
19934
19935
19936 fi
19937
19938
19939 { echo "$as_me:$LINENO: checking for timezone variable" >&5
19940 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
19941 if test "${ac_cv_have_timezone+set}" = set; then
19942   echo $ECHO_N "(cached) $ECHO_C" >&6
19943 else
19944   cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 #include <time.h>
19951 int
19952 main ()
19953 {
19954 timezone = 1
19955   ;
19956   return 0;
19957 }
19958 _ACEOF
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (ac_try="$ac_link"
19961 case "(($ac_try" in
19962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963   *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966   (eval "$ac_link") 2>conftest.er1
19967   ac_status=$?
19968   grep -v '^ *+' conftest.er1 >conftest.err
19969   rm -f conftest.er1
19970   cat conftest.err >&5
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } && {
19973          test -z "$ac_c_werror_flag" ||
19974          test ! -s conftest.err
19975        } && test -s conftest$ac_exeext &&
19976        $as_test_x conftest$ac_exeext; then
19977   ac_cv_have_timezone="yes"
19978 else
19979   echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19981
19982         ac_cv_have_timezone="no"
19983 fi
19984
19985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19986       conftest$ac_exeext conftest.$ac_ext
19987 fi
19988 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19989 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
19990 if test "$ac_cv_have_timezone" = "yes"
19991 then
19992
19993 cat >>confdefs.h <<\_ACEOF
19994 #define HAVE_TIMEZONE 1
19995 _ACEOF
19996
19997 fi
19998 { echo "$as_me:$LINENO: checking for daylight variable" >&5
19999 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
20000 if test "${ac_cv_have_daylight+set}" = set; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 else
20003   cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h.  */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h.  */
20009 #include <time.h>
20010 int
20011 main ()
20012 {
20013 daylight = 1
20014   ;
20015   return 0;
20016 }
20017 _ACEOF
20018 rm -f conftest.$ac_objext conftest$ac_exeext
20019 if { (ac_try="$ac_link"
20020 case "(($ac_try" in
20021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022   *) ac_try_echo=$ac_try;;
20023 esac
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025   (eval "$ac_link") 2>conftest.er1
20026   ac_status=$?
20027   grep -v '^ *+' conftest.er1 >conftest.err
20028   rm -f conftest.er1
20029   cat conftest.err >&5
20030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031   (exit $ac_status); } && {
20032          test -z "$ac_c_werror_flag" ||
20033          test ! -s conftest.err
20034        } && test -s conftest$ac_exeext &&
20035        $as_test_x conftest$ac_exeext; then
20036   ac_cv_have_daylight="yes"
20037 else
20038   echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20040
20041         ac_cv_have_daylight="no"
20042 fi
20043
20044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20045       conftest$ac_exeext conftest.$ac_ext
20046 fi
20047 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20048 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
20049 if test "$ac_cv_have_daylight" = "yes"
20050 then
20051
20052 cat >>confdefs.h <<\_ACEOF
20053 #define HAVE_DAYLIGHT 1
20054 _ACEOF
20055
20056 fi
20057
20058
20059 case $host_cpu in
20060   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20061 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
20062 if test "${ac_cv_cpp_def___i386__+set}" = set; then
20063   echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065   cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h.  */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h.  */
20071 #ifndef __i386__
20072 yes
20073 #endif
20074 _ACEOF
20075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20076   $EGREP "yes" >/dev/null 2>&1; then
20077   ac_cv_cpp_def___i386__=yes
20078 else
20079   ac_cv_cpp_def___i386__=no
20080 fi
20081 rm -f conftest*
20082
20083 fi
20084 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20085 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
20086 if test $ac_cv_cpp_def___i386__ = yes; then
20087   CFLAGS="$CFLAGS -D__i386__"
20088   LINTFLAGS="$LINTFLAGS -D__i386__"
20089 fi
20090  ;;
20091   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
20092 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
20093 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
20094   echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096   cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h.  */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h.  */
20102 #ifndef __x86_64__
20103 yes
20104 #endif
20105 _ACEOF
20106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20107   $EGREP "yes" >/dev/null 2>&1; then
20108   ac_cv_cpp_def___x86_64__=yes
20109 else
20110   ac_cv_cpp_def___x86_64__=no
20111 fi
20112 rm -f conftest*
20113
20114 fi
20115 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
20116 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
20117 if test $ac_cv_cpp_def___x86_64__ = yes; then
20118   CFLAGS="$CFLAGS -D__x86_64__"
20119   LINTFLAGS="$LINTFLAGS -D__x86_64__"
20120 fi
20121  ;;
20122   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20123 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
20124 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20125   echo $ECHO_N "(cached) $ECHO_C" >&6
20126 else
20127   cat >conftest.$ac_ext <<_ACEOF
20128 /* confdefs.h.  */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h.  */
20133 #ifndef __ALPHA__
20134 yes
20135 #endif
20136 _ACEOF
20137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20138   $EGREP "yes" >/dev/null 2>&1; then
20139   ac_cv_cpp_def___ALPHA__=yes
20140 else
20141   ac_cv_cpp_def___ALPHA__=no
20142 fi
20143 rm -f conftest*
20144
20145 fi
20146 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20147 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
20148 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20149   CFLAGS="$CFLAGS -D__ALPHA__"
20150   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20151 fi
20152  ;;
20153   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20154 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
20155 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20156   echo $ECHO_N "(cached) $ECHO_C" >&6
20157 else
20158   cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h.  */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h.  */
20164 #ifndef __sparc__
20165 yes
20166 #endif
20167 _ACEOF
20168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20169   $EGREP "yes" >/dev/null 2>&1; then
20170   ac_cv_cpp_def___sparc__=yes
20171 else
20172   ac_cv_cpp_def___sparc__=no
20173 fi
20174 rm -f conftest*
20175
20176 fi
20177 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20178 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
20179 if test $ac_cv_cpp_def___sparc__ = yes; then
20180   CFLAGS="$CFLAGS -D__sparc__"
20181   LINTFLAGS="$LINTFLAGS -D__sparc__"
20182 fi
20183  ;;
20184   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20185 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
20186 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20187   echo $ECHO_N "(cached) $ECHO_C" >&6
20188 else
20189   cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h.  */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h.  */
20195 #ifndef __powerpc__
20196 yes
20197 #endif
20198 _ACEOF
20199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20200   $EGREP "yes" >/dev/null 2>&1; then
20201   ac_cv_cpp_def___powerpc__=yes
20202 else
20203   ac_cv_cpp_def___powerpc__=no
20204 fi
20205 rm -f conftest*
20206
20207 fi
20208 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20209 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
20210 if test $ac_cv_cpp_def___powerpc__ = yes; then
20211   CFLAGS="$CFLAGS -D__powerpc__"
20212   LINTFLAGS="$LINTFLAGS -D__powerpc__"
20213 fi
20214  ;;
20215 esac
20216
20217 case $host_vendor in
20218   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20219 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
20220 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20221   echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223   cat >conftest.$ac_ext <<_ACEOF
20224 /* confdefs.h.  */
20225 _ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h.  */
20229 #ifndef __sun__
20230 yes
20231 #endif
20232 _ACEOF
20233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20234   $EGREP "yes" >/dev/null 2>&1; then
20235   ac_cv_cpp_def___sun__=yes
20236 else
20237   ac_cv_cpp_def___sun__=no
20238 fi
20239 rm -f conftest*
20240
20241 fi
20242 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20243 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
20244 if test $ac_cv_cpp_def___sun__ = yes; then
20245   CFLAGS="$CFLAGS -D__sun__"
20246   LINTFLAGS="$LINTFLAGS -D__sun__"
20247 fi
20248  ;;
20249 esac
20250
20251
20252 DEPENDENCIES="### Dependencies:
20253
20254 .INIT: Makefile
20255 .BEGIN: Makefile
20256 Makefile: dummy
20257         -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
20258
20259 \$(OBJS): \$(IDL_GEN_HEADERS)
20260 \$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
20261 \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
20262 \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
20263
20264
20265
20266
20267
20268 ac_config_commands="$ac_config_commands include/stamp-h"
20269
20270
20271 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
20272
20273 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
20274
20275 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
20276
20277 ac_config_commands="$ac_config_commands dlls/user32/resources"
20278
20279 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
20280
20281 ac_config_commands="$ac_config_commands include/wine"
20282
20283
20284 MAKE_RULES=Make.rules
20285
20286
20287 MAKE_DLL_RULES=dlls/Makedll.rules
20288
20289
20290 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
20291
20292
20293 MAKE_TEST_RULES=dlls/Maketest.rules
20294
20295
20296 MAKE_PROG_RULES=programs/Makeprog.rules
20297
20298
20299 ac_config_files="$ac_config_files Make.rules"
20300
20301 ac_config_files="$ac_config_files dlls/Makedll.rules"
20302
20303 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
20304
20305 ac_config_files="$ac_config_files dlls/Maketest.rules"
20306
20307 ac_config_files="$ac_config_files programs/Makeprog.rules"
20308
20309 ac_config_files="$ac_config_files Makefile"
20310
20311 ac_config_files="$ac_config_files dlls/Makefile"
20312
20313 ac_config_files="$ac_config_files dlls/activeds/Makefile"
20314
20315 ac_config_files="$ac_config_files dlls/advapi32/Makefile"
20316
20317 ac_config_files="$ac_config_files dlls/advapi32/tests/Makefile"
20318
20319 ac_config_files="$ac_config_files dlls/advpack/Makefile"
20320
20321 ac_config_files="$ac_config_files dlls/advpack/tests/Makefile"
20322
20323 ac_config_files="$ac_config_files dlls/amstream/Makefile"
20324
20325 ac_config_files="$ac_config_files dlls/atl/Makefile"
20326
20327 ac_config_files="$ac_config_files dlls/avicap32/Makefile"
20328
20329 ac_config_files="$ac_config_files dlls/avifil32/Makefile"
20330
20331 ac_config_files="$ac_config_files dlls/browseui/Makefile"
20332
20333 ac_config_files="$ac_config_files dlls/browseui/tests/Makefile"
20334
20335 ac_config_files="$ac_config_files dlls/cabinet/Makefile"
20336
20337 ac_config_files="$ac_config_files dlls/cabinet/tests/Makefile"
20338
20339 ac_config_files="$ac_config_files dlls/capi2032/Makefile"
20340
20341 ac_config_files="$ac_config_files dlls/cards/Makefile"
20342
20343 ac_config_files="$ac_config_files dlls/cfgmgr32/Makefile"
20344
20345 ac_config_files="$ac_config_files dlls/clusapi/Makefile"
20346
20347 ac_config_files="$ac_config_files dlls/comcat/Makefile"
20348
20349 ac_config_files="$ac_config_files dlls/comcat/tests/Makefile"
20350
20351 ac_config_files="$ac_config_files dlls/comctl32/Makefile"
20352
20353 ac_config_files="$ac_config_files dlls/comctl32/tests/Makefile"
20354
20355 ac_config_files="$ac_config_files dlls/comdlg32/Makefile"
20356
20357 ac_config_files="$ac_config_files dlls/comdlg32/tests/Makefile"
20358
20359 ac_config_files="$ac_config_files dlls/compstui/Makefile"
20360
20361 ac_config_files="$ac_config_files dlls/credui/Makefile"
20362
20363 ac_config_files="$ac_config_files dlls/crtdll/Makefile"
20364
20365 ac_config_files="$ac_config_files dlls/crypt32/Makefile"
20366
20367 ac_config_files="$ac_config_files dlls/crypt32/tests/Makefile"
20368
20369 ac_config_files="$ac_config_files dlls/cryptdll/Makefile"
20370
20371 ac_config_files="$ac_config_files dlls/cryptnet/Makefile"
20372
20373 ac_config_files="$ac_config_files dlls/ctl3d32/Makefile"
20374
20375 ac_config_files="$ac_config_files dlls/d3d8/Makefile"
20376
20377 ac_config_files="$ac_config_files dlls/d3d8/tests/Makefile"
20378
20379 ac_config_files="$ac_config_files dlls/d3d9/Makefile"
20380
20381 ac_config_files="$ac_config_files dlls/d3d9/tests/Makefile"
20382
20383 ac_config_files="$ac_config_files dlls/d3dim/Makefile"
20384
20385 ac_config_files="$ac_config_files dlls/d3drm/Makefile"
20386
20387 ac_config_files="$ac_config_files dlls/d3dx8/Makefile"
20388
20389 ac_config_files="$ac_config_files dlls/d3dxof/Makefile"
20390
20391 ac_config_files="$ac_config_files dlls/dbghelp/Makefile"
20392
20393 ac_config_files="$ac_config_files dlls/dciman32/Makefile"
20394
20395 ac_config_files="$ac_config_files dlls/ddraw/Makefile"
20396
20397 ac_config_files="$ac_config_files dlls/ddraw/tests/Makefile"
20398
20399 ac_config_files="$ac_config_files dlls/ddrawex/Makefile"
20400
20401 ac_config_files="$ac_config_files dlls/devenum/Makefile"
20402
20403 ac_config_files="$ac_config_files dlls/dinput/Makefile"
20404
20405 ac_config_files="$ac_config_files dlls/dinput/tests/Makefile"
20406
20407 ac_config_files="$ac_config_files dlls/dinput8/Makefile"
20408
20409 ac_config_files="$ac_config_files dlls/dmband/Makefile"
20410
20411 ac_config_files="$ac_config_files dlls/dmcompos/Makefile"
20412
20413 ac_config_files="$ac_config_files dlls/dmime/Makefile"
20414
20415 ac_config_files="$ac_config_files dlls/dmloader/Makefile"
20416
20417 ac_config_files="$ac_config_files dlls/dmscript/Makefile"
20418
20419 ac_config_files="$ac_config_files dlls/dmstyle/Makefile"
20420
20421 ac_config_files="$ac_config_files dlls/dmsynth/Makefile"
20422
20423 ac_config_files="$ac_config_files dlls/dmusic/Makefile"
20424
20425 ac_config_files="$ac_config_files dlls/dmusic32/Makefile"
20426
20427 ac_config_files="$ac_config_files dlls/dnsapi/Makefile"
20428
20429 ac_config_files="$ac_config_files dlls/dnsapi/tests/Makefile"
20430
20431 ac_config_files="$ac_config_files dlls/dplay/Makefile"
20432
20433 ac_config_files="$ac_config_files dlls/dplayx/Makefile"
20434
20435 ac_config_files="$ac_config_files dlls/dplayx/tests/Makefile"
20436
20437 ac_config_files="$ac_config_files dlls/dpnaddr/Makefile"
20438
20439 ac_config_files="$ac_config_files dlls/dpnet/Makefile"
20440
20441 ac_config_files="$ac_config_files dlls/dpnhpast/Makefile"
20442
20443 ac_config_files="$ac_config_files dlls/dsound/Makefile"
20444
20445 ac_config_files="$ac_config_files dlls/dsound/tests/Makefile"
20446
20447 ac_config_files="$ac_config_files dlls/dswave/Makefile"
20448
20449 ac_config_files="$ac_config_files dlls/dxdiagn/Makefile"
20450
20451 ac_config_files="$ac_config_files dlls/dxerr8/Makefile"
20452
20453 ac_config_files="$ac_config_files dlls/dxerr9/Makefile"
20454
20455 ac_config_files="$ac_config_files dlls/dxguid/Makefile"
20456
20457 ac_config_files="$ac_config_files dlls/gdi32/Makefile"
20458
20459 ac_config_files="$ac_config_files dlls/gdi32/tests/Makefile"
20460
20461 ac_config_files="$ac_config_files dlls/glu32/Makefile"
20462
20463 ac_config_files="$ac_config_files dlls/gphoto2.ds/Makefile"
20464
20465 ac_config_files="$ac_config_files dlls/hhctrl.ocx/Makefile"
20466
20467 ac_config_files="$ac_config_files dlls/hid/Makefile"
20468
20469 ac_config_files="$ac_config_files dlls/hlink/Makefile"
20470
20471 ac_config_files="$ac_config_files dlls/hlink/tests/Makefile"
20472
20473 ac_config_files="$ac_config_files dlls/iccvid/Makefile"
20474
20475 ac_config_files="$ac_config_files dlls/icmp/Makefile"
20476
20477 ac_config_files="$ac_config_files dlls/ifsmgr.vxd/Makefile"
20478
20479 ac_config_files="$ac_config_files dlls/imaadp32.acm/Makefile"
20480
20481 ac_config_files="$ac_config_files dlls/imagehlp/Makefile"
20482
20483 ac_config_files="$ac_config_files dlls/imm32/Makefile"
20484
20485 ac_config_files="$ac_config_files dlls/infosoft/Makefile"
20486
20487 ac_config_files="$ac_config_files dlls/infosoft/tests/Makefile"
20488
20489 ac_config_files="$ac_config_files dlls/inseng/Makefile"
20490
20491 ac_config_files="$ac_config_files dlls/iphlpapi/Makefile"
20492
20493 ac_config_files="$ac_config_files dlls/iphlpapi/tests/Makefile"
20494
20495 ac_config_files="$ac_config_files dlls/itss/Makefile"
20496
20497 ac_config_files="$ac_config_files dlls/itss/tests/Makefile"
20498
20499 ac_config_files="$ac_config_files dlls/kernel32/Makefile"
20500
20501 ac_config_files="$ac_config_files dlls/kernel32/tests/Makefile"
20502
20503 ac_config_files="$ac_config_files dlls/localspl/Makefile"
20504
20505 ac_config_files="$ac_config_files dlls/localspl/tests/Makefile"
20506
20507 ac_config_files="$ac_config_files dlls/lz32/Makefile"
20508
20509 ac_config_files="$ac_config_files dlls/lz32/tests/Makefile"
20510
20511 ac_config_files="$ac_config_files dlls/mapi32/Makefile"
20512
20513 ac_config_files="$ac_config_files dlls/mapi32/tests/Makefile"
20514
20515 ac_config_files="$ac_config_files dlls/mciavi32/Makefile"
20516
20517 ac_config_files="$ac_config_files dlls/mcicda/Makefile"
20518
20519 ac_config_files="$ac_config_files dlls/mciseq/Makefile"
20520
20521 ac_config_files="$ac_config_files dlls/mciwave/Makefile"
20522
20523 ac_config_files="$ac_config_files dlls/midimap/Makefile"
20524
20525 ac_config_files="$ac_config_files dlls/mlang/Makefile"
20526
20527 ac_config_files="$ac_config_files dlls/mlang/tests/Makefile"
20528
20529 ac_config_files="$ac_config_files dlls/mmdevldr.vxd/Makefile"
20530
20531 ac_config_files="$ac_config_files dlls/monodebg.vxd/Makefile"
20532
20533 ac_config_files="$ac_config_files dlls/mpr/Makefile"
20534
20535 ac_config_files="$ac_config_files dlls/mprapi/Makefile"
20536
20537 ac_config_files="$ac_config_files dlls/msacm32.drv/Makefile"
20538
20539 ac_config_files="$ac_config_files dlls/msacm32/Makefile"
20540
20541 ac_config_files="$ac_config_files dlls/msacm32/tests/Makefile"
20542
20543 ac_config_files="$ac_config_files dlls/msadp32.acm/Makefile"
20544
20545 ac_config_files="$ac_config_files dlls/mscms/Makefile"
20546
20547 ac_config_files="$ac_config_files dlls/mscms/tests/Makefile"
20548
20549 ac_config_files="$ac_config_files dlls/mscoree/Makefile"
20550
20551 ac_config_files="$ac_config_files dlls/msdmo/Makefile"
20552
20553 ac_config_files="$ac_config_files dlls/msftedit/Makefile"
20554
20555 ac_config_files="$ac_config_files dlls/msg711.acm/Makefile"
20556
20557 ac_config_files="$ac_config_files dlls/mshtml/Makefile"
20558
20559 ac_config_files="$ac_config_files dlls/mshtml/tests/Makefile"
20560
20561 ac_config_files="$ac_config_files dlls/msi/Makefile"
20562
20563 ac_config_files="$ac_config_files dlls/msi/tests/Makefile"
20564
20565 ac_config_files="$ac_config_files dlls/msimg32/Makefile"
20566
20567 ac_config_files="$ac_config_files dlls/msisys.ocx/Makefile"
20568
20569 ac_config_files="$ac_config_files dlls/msnet32/Makefile"
20570
20571 ac_config_files="$ac_config_files dlls/msrle32/Makefile"
20572
20573 ac_config_files="$ac_config_files dlls/msvcrt/Makefile"
20574
20575 ac_config_files="$ac_config_files dlls/msvcrt/tests/Makefile"
20576
20577 ac_config_files="$ac_config_files dlls/msvcrt20/Makefile"
20578
20579 ac_config_files="$ac_config_files dlls/msvcrt40/Makefile"
20580
20581 ac_config_files="$ac_config_files dlls/msvcrtd/Makefile"
20582
20583 ac_config_files="$ac_config_files dlls/msvcrtd/tests/Makefile"
20584
20585 ac_config_files="$ac_config_files dlls/msvfw32/Makefile"
20586
20587 ac_config_files="$ac_config_files dlls/msvidc32/Makefile"
20588
20589 ac_config_files="$ac_config_files dlls/mswsock/Makefile"
20590
20591 ac_config_files="$ac_config_files dlls/msxml3/Makefile"
20592
20593 ac_config_files="$ac_config_files dlls/msxml3/tests/Makefile"
20594
20595 ac_config_files="$ac_config_files dlls/nddeapi/Makefile"
20596
20597 ac_config_files="$ac_config_files dlls/netapi32/Makefile"
20598
20599 ac_config_files="$ac_config_files dlls/netapi32/tests/Makefile"
20600
20601 ac_config_files="$ac_config_files dlls/newdev/Makefile"
20602
20603 ac_config_files="$ac_config_files dlls/ntdll/Makefile"
20604
20605 ac_config_files="$ac_config_files dlls/ntdll/tests/Makefile"
20606
20607 ac_config_files="$ac_config_files dlls/ntdsapi/Makefile"
20608
20609 ac_config_files="$ac_config_files dlls/objsel/Makefile"
20610
20611 ac_config_files="$ac_config_files dlls/odbc32/Makefile"
20612
20613 ac_config_files="$ac_config_files dlls/odbccp32/Makefile"
20614
20615 ac_config_files="$ac_config_files dlls/odbccp32/tests/Makefile"
20616
20617 ac_config_files="$ac_config_files dlls/ole32/Makefile"
20618
20619 ac_config_files="$ac_config_files dlls/ole32/tests/Makefile"
20620
20621 ac_config_files="$ac_config_files dlls/oleacc/Makefile"
20622
20623 ac_config_files="$ac_config_files dlls/oleaut32/Makefile"
20624
20625 ac_config_files="$ac_config_files dlls/oleaut32/tests/Makefile"
20626
20627 ac_config_files="$ac_config_files dlls/olecli32/Makefile"
20628
20629 ac_config_files="$ac_config_files dlls/oledlg/Makefile"
20630
20631 ac_config_files="$ac_config_files dlls/olepro32/Makefile"
20632
20633 ac_config_files="$ac_config_files dlls/olesvr32/Makefile"
20634
20635 ac_config_files="$ac_config_files dlls/opengl32/Makefile"
20636
20637 ac_config_files="$ac_config_files dlls/powrprof/Makefile"
20638
20639 ac_config_files="$ac_config_files dlls/psapi/Makefile"
20640
20641 ac_config_files="$ac_config_files dlls/psapi/tests/Makefile"
20642
20643 ac_config_files="$ac_config_files dlls/pstorec/Makefile"
20644
20645 ac_config_files="$ac_config_files dlls/qcap/Makefile"
20646
20647 ac_config_files="$ac_config_files dlls/quartz/Makefile"
20648
20649 ac_config_files="$ac_config_files dlls/quartz/tests/Makefile"
20650
20651 ac_config_files="$ac_config_files dlls/query/Makefile"
20652
20653 ac_config_files="$ac_config_files dlls/rasapi32/Makefile"
20654
20655 ac_config_files="$ac_config_files dlls/resutils/Makefile"
20656
20657 ac_config_files="$ac_config_files dlls/riched20/Makefile"
20658
20659 ac_config_files="$ac_config_files dlls/riched20/tests/Makefile"
20660
20661 ac_config_files="$ac_config_files dlls/riched32/Makefile"
20662
20663 ac_config_files="$ac_config_files dlls/rpcrt4/Makefile"
20664
20665 ac_config_files="$ac_config_files dlls/rpcrt4/tests/Makefile"
20666
20667 ac_config_files="$ac_config_files dlls/rsabase/Makefile"
20668
20669 ac_config_files="$ac_config_files dlls/rsabase/tests/Makefile"
20670
20671 ac_config_files="$ac_config_files dlls/rsaenh/Makefile"
20672
20673 ac_config_files="$ac_config_files dlls/rsaenh/tests/Makefile"
20674
20675 ac_config_files="$ac_config_files dlls/sane.ds/Makefile"
20676
20677 ac_config_files="$ac_config_files dlls/schannel/Makefile"
20678
20679 ac_config_files="$ac_config_files dlls/secur32/Makefile"
20680
20681 ac_config_files="$ac_config_files dlls/secur32/tests/Makefile"
20682
20683 ac_config_files="$ac_config_files dlls/security/Makefile"
20684
20685 ac_config_files="$ac_config_files dlls/sensapi/Makefile"
20686
20687 ac_config_files="$ac_config_files dlls/serialui/Makefile"
20688
20689 ac_config_files="$ac_config_files dlls/serialui/tests/Makefile"
20690
20691 ac_config_files="$ac_config_files dlls/setupapi/Makefile"
20692
20693 ac_config_files="$ac_config_files dlls/setupapi/tests/Makefile"
20694
20695 ac_config_files="$ac_config_files dlls/sfc/Makefile"
20696
20697 ac_config_files="$ac_config_files dlls/sfc_os/Makefile"
20698
20699 ac_config_files="$ac_config_files dlls/shdoclc/Makefile"
20700
20701 ac_config_files="$ac_config_files dlls/shdocvw/Makefile"
20702
20703 ac_config_files="$ac_config_files dlls/shdocvw/tests/Makefile"
20704
20705 ac_config_files="$ac_config_files dlls/shell32/Makefile"
20706
20707 ac_config_files="$ac_config_files dlls/shell32/tests/Makefile"
20708
20709 ac_config_files="$ac_config_files dlls/shfolder/Makefile"
20710
20711 ac_config_files="$ac_config_files dlls/shlwapi/Makefile"
20712
20713 ac_config_files="$ac_config_files dlls/shlwapi/tests/Makefile"
20714
20715 ac_config_files="$ac_config_files dlls/snmpapi/Makefile"
20716
20717 ac_config_files="$ac_config_files dlls/snmpapi/tests/Makefile"
20718
20719 ac_config_files="$ac_config_files dlls/spoolss/Makefile"
20720
20721 ac_config_files="$ac_config_files dlls/stdole2.tlb/Makefile"
20722
20723 ac_config_files="$ac_config_files dlls/stdole32.tlb/Makefile"
20724
20725 ac_config_files="$ac_config_files dlls/sti/Makefile"
20726
20727 ac_config_files="$ac_config_files dlls/strmiids/Makefile"
20728
20729 ac_config_files="$ac_config_files dlls/svrapi/Makefile"
20730
20731 ac_config_files="$ac_config_files dlls/tapi32/Makefile"
20732
20733 ac_config_files="$ac_config_files dlls/twain_32/Makefile"
20734
20735 ac_config_files="$ac_config_files dlls/unicows/Makefile"
20736
20737 ac_config_files="$ac_config_files dlls/url/Makefile"
20738
20739 ac_config_files="$ac_config_files dlls/urlmon/Makefile"
20740
20741 ac_config_files="$ac_config_files dlls/urlmon/tests/Makefile"
20742
20743 ac_config_files="$ac_config_files dlls/user32/Makefile"
20744
20745 ac_config_files="$ac_config_files dlls/user32/tests/Makefile"
20746
20747 ac_config_files="$ac_config_files dlls/userenv/Makefile"
20748
20749 ac_config_files="$ac_config_files dlls/usp10/Makefile"
20750
20751 ac_config_files="$ac_config_files dlls/usp10/tests/Makefile"
20752
20753 ac_config_files="$ac_config_files dlls/uuid/Makefile"
20754
20755 ac_config_files="$ac_config_files dlls/uxtheme/Makefile"
20756
20757 ac_config_files="$ac_config_files dlls/uxtheme/tests/Makefile"
20758
20759 ac_config_files="$ac_config_files dlls/vdhcp.vxd/Makefile"
20760
20761 ac_config_files="$ac_config_files dlls/vdmdbg/Makefile"
20762
20763 ac_config_files="$ac_config_files dlls/version/Makefile"
20764
20765 ac_config_files="$ac_config_files dlls/version/tests/Makefile"
20766
20767 ac_config_files="$ac_config_files dlls/vmm.vxd/Makefile"
20768
20769 ac_config_files="$ac_config_files dlls/vnbt.vxd/Makefile"
20770
20771 ac_config_files="$ac_config_files dlls/vnetbios.vxd/Makefile"
20772
20773 ac_config_files="$ac_config_files dlls/vtdapi.vxd/Makefile"
20774
20775 ac_config_files="$ac_config_files dlls/vwin32.vxd/Makefile"
20776
20777 ac_config_files="$ac_config_files dlls/w32skrnl/Makefile"
20778
20779 ac_config_files="$ac_config_files dlls/winealsa.drv/Makefile"
20780
20781 ac_config_files="$ac_config_files dlls/winearts.drv/Makefile"
20782
20783 ac_config_files="$ac_config_files dlls/wineaudioio.drv/Makefile"
20784
20785 ac_config_files="$ac_config_files dlls/winecoreaudio.drv/Makefile"
20786
20787 ac_config_files="$ac_config_files dlls/winecrt0/Makefile"
20788
20789 ac_config_files="$ac_config_files dlls/wined3d/Makefile"
20790
20791 ac_config_files="$ac_config_files dlls/winedos/Makefile"
20792
20793 ac_config_files="$ac_config_files dlls/wineesd.drv/Makefile"
20794
20795 ac_config_files="$ac_config_files dlls/winejack.drv/Makefile"
20796
20797 ac_config_files="$ac_config_files dlls/winejoystick.drv/Makefile"
20798
20799 ac_config_files="$ac_config_files dlls/winemp3.acm/Makefile"
20800
20801 ac_config_files="$ac_config_files dlls/winenas.drv/Makefile"
20802
20803 ac_config_files="$ac_config_files dlls/wineoss.drv/Makefile"
20804
20805 ac_config_files="$ac_config_files dlls/wineps.drv/Makefile"
20806
20807 ac_config_files="$ac_config_files dlls/winequartz.drv/Makefile"
20808
20809 ac_config_files="$ac_config_files dlls/winex11.drv/Makefile"
20810
20811 ac_config_files="$ac_config_files dlls/wing32/Makefile"
20812
20813 ac_config_files="$ac_config_files dlls/wininet/Makefile"
20814
20815 ac_config_files="$ac_config_files dlls/wininet/tests/Makefile"
20816
20817 ac_config_files="$ac_config_files dlls/winmm/Makefile"
20818
20819 ac_config_files="$ac_config_files dlls/winmm/tests/Makefile"
20820
20821 ac_config_files="$ac_config_files dlls/winnls32/Makefile"
20822
20823 ac_config_files="$ac_config_files dlls/winspool.drv/Makefile"
20824
20825 ac_config_files="$ac_config_files dlls/winspool.drv/tests/Makefile"
20826
20827 ac_config_files="$ac_config_files dlls/wintab32/Makefile"
20828
20829 ac_config_files="$ac_config_files dlls/wintrust/Makefile"
20830
20831 ac_config_files="$ac_config_files dlls/wintrust/tests/Makefile"
20832
20833 ac_config_files="$ac_config_files dlls/wldap32/Makefile"
20834
20835 ac_config_files="$ac_config_files dlls/wnaspi32/Makefile"
20836
20837 ac_config_files="$ac_config_files dlls/wow32/Makefile"
20838
20839 ac_config_files="$ac_config_files dlls/ws2_32/Makefile"
20840
20841 ac_config_files="$ac_config_files dlls/ws2_32/tests/Makefile"
20842
20843 ac_config_files="$ac_config_files dlls/wsock32/Makefile"
20844
20845 ac_config_files="$ac_config_files dlls/wtsapi32/Makefile"
20846
20847 ac_config_files="$ac_config_files documentation/Makefile"
20848
20849 ac_config_files="$ac_config_files fonts/Makefile"
20850
20851 ac_config_files="$ac_config_files include/Makefile"
20852
20853 ac_config_files="$ac_config_files libs/Makefile"
20854
20855 ac_config_files="$ac_config_files libs/port/Makefile"
20856
20857 ac_config_files="$ac_config_files libs/wine/Makefile"
20858
20859 ac_config_files="$ac_config_files libs/wpp/Makefile"
20860
20861 ac_config_files="$ac_config_files loader/Makefile"
20862
20863 ac_config_files="$ac_config_files programs/Makefile"
20864
20865 ac_config_files="$ac_config_files programs/clock/Makefile"
20866
20867 ac_config_files="$ac_config_files programs/cmd/Makefile"
20868
20869 ac_config_files="$ac_config_files programs/cmdlgtst/Makefile"
20870
20871 ac_config_files="$ac_config_files programs/control/Makefile"
20872
20873 ac_config_files="$ac_config_files programs/eject/Makefile"
20874
20875 ac_config_files="$ac_config_files programs/expand/Makefile"
20876
20877 ac_config_files="$ac_config_files programs/explorer/Makefile"
20878
20879 ac_config_files="$ac_config_files programs/hh/Makefile"
20880
20881 ac_config_files="$ac_config_files programs/icinfo/Makefile"
20882
20883 ac_config_files="$ac_config_files programs/iexplore/Makefile"
20884
20885 ac_config_files="$ac_config_files programs/msiexec/Makefile"
20886
20887 ac_config_files="$ac_config_files programs/notepad/Makefile"
20888
20889 ac_config_files="$ac_config_files programs/oleview/Makefile"
20890
20891 ac_config_files="$ac_config_files programs/progman/Makefile"
20892
20893 ac_config_files="$ac_config_files programs/regedit/Makefile"
20894
20895 ac_config_files="$ac_config_files programs/regsvr32/Makefile"
20896
20897 ac_config_files="$ac_config_files programs/rpcss/Makefile"
20898
20899 ac_config_files="$ac_config_files programs/rundll32/Makefile"
20900
20901 ac_config_files="$ac_config_files programs/start/Makefile"
20902
20903 ac_config_files="$ac_config_files programs/taskmgr/Makefile"
20904
20905 ac_config_files="$ac_config_files programs/uninstaller/Makefile"
20906
20907 ac_config_files="$ac_config_files programs/view/Makefile"
20908
20909 ac_config_files="$ac_config_files programs/wineboot/Makefile"
20910
20911 ac_config_files="$ac_config_files programs/winebrowser/Makefile"
20912
20913 ac_config_files="$ac_config_files programs/winecfg/Makefile"
20914
20915 ac_config_files="$ac_config_files programs/wineconsole/Makefile"
20916
20917 ac_config_files="$ac_config_files programs/winedbg/Makefile"
20918
20919 ac_config_files="$ac_config_files programs/winefile/Makefile"
20920
20921 ac_config_files="$ac_config_files programs/winemenubuilder/Makefile"
20922
20923 ac_config_files="$ac_config_files programs/winemine/Makefile"
20924
20925 ac_config_files="$ac_config_files programs/winepath/Makefile"
20926
20927 ac_config_files="$ac_config_files programs/winetest/Makefile"
20928
20929 ac_config_files="$ac_config_files programs/winevdm/Makefile"
20930
20931 ac_config_files="$ac_config_files programs/winhelp/Makefile"
20932
20933 ac_config_files="$ac_config_files programs/winver/Makefile"
20934
20935 ac_config_files="$ac_config_files programs/wordpad/Makefile"
20936
20937 ac_config_files="$ac_config_files server/Makefile"
20938
20939 ac_config_files="$ac_config_files tools/Makefile"
20940
20941 ac_config_files="$ac_config_files tools/widl/Makefile"
20942
20943 ac_config_files="$ac_config_files tools/winebuild/Makefile"
20944
20945 ac_config_files="$ac_config_files tools/winedump/Makefile"
20946
20947 ac_config_files="$ac_config_files tools/winegcc/Makefile"
20948
20949 ac_config_files="$ac_config_files tools/wmc/Makefile"
20950
20951 ac_config_files="$ac_config_files tools/wrc/Makefile"
20952
20953
20954 cat >confcache <<\_ACEOF
20955 # This file is a shell script that caches the results of configure
20956 # tests run on this system so they can be shared between configure
20957 # scripts and configure runs, see configure's option --config-cache.
20958 # It is not useful on other systems.  If it contains results you don't
20959 # want to keep, you may remove or edit it.
20960 #
20961 # config.status only pays attention to the cache file if you give it
20962 # the --recheck option to rerun configure.
20963 #
20964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20966 # following values.
20967
20968 _ACEOF
20969
20970 # The following way of writing the cache mishandles newlines in values,
20971 # but we know of no workaround that is simple, portable, and efficient.
20972 # So, we kill variables containing newlines.
20973 # Ultrix sh set writes to stderr and can't be redirected directly,
20974 # and sets the high bit in the cache file unless we assign to the vars.
20975 (
20976   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20977     eval ac_val=\$$ac_var
20978     case $ac_val in #(
20979     *${as_nl}*)
20980       case $ac_var in #(
20981       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20982 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20983       esac
20984       case $ac_var in #(
20985       _ | IFS | as_nl) ;; #(
20986       *) $as_unset $ac_var ;;
20987       esac ;;
20988     esac
20989   done
20990
20991   (set) 2>&1 |
20992     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20993     *${as_nl}ac_space=\ *)
20994       # `set' does not quote correctly, so add quotes (double-quote
20995       # substitution turns \\\\ into \\, and sed turns \\ into \).
20996       sed -n \
20997         "s/'/'\\\\''/g;
20998           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20999       ;; #(
21000     *)
21001       # `set' quotes correctly as required by POSIX, so do not add quotes.
21002       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21003       ;;
21004     esac |
21005     sort
21006 ) |
21007   sed '
21008      /^ac_cv_env_/b end
21009      t clear
21010      :clear
21011      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21012      t end
21013      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21014      :end' >>confcache
21015 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21016   if test -w "$cache_file"; then
21017     test "x$cache_file" != "x/dev/null" &&
21018       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21019 echo "$as_me: updating cache $cache_file" >&6;}
21020     cat confcache >$cache_file
21021   else
21022     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21023 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21024   fi
21025 fi
21026 rm -f confcache
21027
21028 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21029 # Let make expand exec_prefix.
21030 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21031
21032 DEFS=-DHAVE_CONFIG_H
21033
21034 ac_libobjs=
21035 ac_ltlibobjs=
21036 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21037   # 1. Remove the extension, and $U if already installed.
21038   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21039   ac_i=`echo "$ac_i" | sed "$ac_script"`
21040   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21041   #    will be set to the directory where LIBOBJS objects are built.
21042   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21043   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21044 done
21045 LIBOBJS=$ac_libobjs
21046
21047 LTLIBOBJS=$ac_ltlibobjs
21048
21049
21050
21051 : ${CONFIG_STATUS=./config.status}
21052 ac_clean_files_save=$ac_clean_files
21053 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21054 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21055 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21056 cat >$CONFIG_STATUS <<_ACEOF
21057 #! $SHELL
21058 # Generated by $as_me.
21059 # Run this file to recreate the current configuration.
21060 # Compiler output produced by configure, useful for debugging
21061 # configure, is in config.log if it exists.
21062
21063 debug=false
21064 ac_cs_recheck=false
21065 ac_cs_silent=false
21066 SHELL=\${CONFIG_SHELL-$SHELL}
21067 _ACEOF
21068
21069 cat >>$CONFIG_STATUS <<\_ACEOF
21070 ## --------------------- ##
21071 ## M4sh Initialization.  ##
21072 ## --------------------- ##
21073
21074 # Be more Bourne compatible
21075 DUALCASE=1; export DUALCASE # for MKS sh
21076 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21077   emulate sh
21078   NULLCMD=:
21079   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21080   # is contrary to our usage.  Disable this feature.
21081   alias -g '${1+"$@"}'='"$@"'
21082   setopt NO_GLOB_SUBST
21083 else
21084   case `(set -o) 2>/dev/null` in
21085   *posix*) set -o posix ;;
21086 esac
21087
21088 fi
21089
21090
21091
21092
21093 # PATH needs CR
21094 # Avoid depending upon Character Ranges.
21095 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21096 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21097 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21098 as_cr_digits='0123456789'
21099 as_cr_alnum=$as_cr_Letters$as_cr_digits
21100
21101 # The user is always right.
21102 if test "${PATH_SEPARATOR+set}" != set; then
21103   echo "#! /bin/sh" >conf$$.sh
21104   echo  "exit 0"   >>conf$$.sh
21105   chmod +x conf$$.sh
21106   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21107     PATH_SEPARATOR=';'
21108   else
21109     PATH_SEPARATOR=:
21110   fi
21111   rm -f conf$$.sh
21112 fi
21113
21114 # Support unset when possible.
21115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21116   as_unset=unset
21117 else
21118   as_unset=false
21119 fi
21120
21121
21122 # IFS
21123 # We need space, tab and new line, in precisely that order.  Quoting is
21124 # there to prevent editors from complaining about space-tab.
21125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21126 # splitting by setting IFS to empty value.)
21127 as_nl='
21128 '
21129 IFS=" ""        $as_nl"
21130
21131 # Find who we are.  Look in the path if we contain no directory separator.
21132 case $0 in
21133   *[\\/]* ) as_myself=$0 ;;
21134   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21135 for as_dir in $PATH
21136 do
21137   IFS=$as_save_IFS
21138   test -z "$as_dir" && as_dir=.
21139   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21140 done
21141 IFS=$as_save_IFS
21142
21143      ;;
21144 esac
21145 # We did not find ourselves, most probably we were run as `sh COMMAND'
21146 # in which case we are not to be found in the path.
21147 if test "x$as_myself" = x; then
21148   as_myself=$0
21149 fi
21150 if test ! -f "$as_myself"; then
21151   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21152   { (exit 1); exit 1; }
21153 fi
21154
21155 # Work around bugs in pre-3.0 UWIN ksh.
21156 for as_var in ENV MAIL MAILPATH
21157 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21158 done
21159 PS1='$ '
21160 PS2='> '
21161 PS4='+ '
21162
21163 # NLS nuisances.
21164 for as_var in \
21165   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21166   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21167   LC_TELEPHONE LC_TIME
21168 do
21169   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21170     eval $as_var=C; export $as_var
21171   else
21172     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21173   fi
21174 done
21175
21176 # Required to use basename.
21177 if expr a : '\(a\)' >/dev/null 2>&1 &&
21178    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21179   as_expr=expr
21180 else
21181   as_expr=false
21182 fi
21183
21184 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21185   as_basename=basename
21186 else
21187   as_basename=false
21188 fi
21189
21190
21191 # Name of the executable.
21192 as_me=`$as_basename -- "$0" ||
21193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21194          X"$0" : 'X\(//\)$' \| \
21195          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21196 echo X/"$0" |
21197     sed '/^.*\/\([^/][^/]*\)\/*$/{
21198             s//\1/
21199             q
21200           }
21201           /^X\/\(\/\/\)$/{
21202             s//\1/
21203             q
21204           }
21205           /^X\/\(\/\).*/{
21206             s//\1/
21207             q
21208           }
21209           s/.*/./; q'`
21210
21211 # CDPATH.
21212 $as_unset CDPATH
21213
21214
21215
21216   as_lineno_1=$LINENO
21217   as_lineno_2=$LINENO
21218   test "x$as_lineno_1" != "x$as_lineno_2" &&
21219   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21220
21221   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21222   # uniformly replaced by the line number.  The first 'sed' inserts a
21223   # line-number line after each line using $LINENO; the second 'sed'
21224   # does the real work.  The second script uses 'N' to pair each
21225   # line-number line with the line containing $LINENO, and appends
21226   # trailing '-' during substitution so that $LINENO is not a special
21227   # case at line end.
21228   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21229   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21230   # E. McMahon (1931-1989) for sed's syntax.  :-)
21231   sed -n '
21232     p
21233     /[$]LINENO/=
21234   ' <$as_myself |
21235     sed '
21236       s/[$]LINENO.*/&-/
21237       t lineno
21238       b
21239       :lineno
21240       N
21241       :loop
21242       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21243       t loop
21244       s/-\n.*//
21245     ' >$as_me.lineno &&
21246   chmod +x "$as_me.lineno" ||
21247     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21248    { (exit 1); exit 1; }; }
21249
21250   # Don't try to exec as it changes $[0], causing all sort of problems
21251   # (the dirname of $[0] is not the place where we might find the
21252   # original and so on.  Autoconf is especially sensitive to this).
21253   . "./$as_me.lineno"
21254   # Exit status is that of the last command.
21255   exit
21256 }
21257
21258
21259 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21260   as_dirname=dirname
21261 else
21262   as_dirname=false
21263 fi
21264
21265 ECHO_C= ECHO_N= ECHO_T=
21266 case `echo -n x` in
21267 -n*)
21268   case `echo 'x\c'` in
21269   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21270   *)   ECHO_C='\c';;
21271   esac;;
21272 *)
21273   ECHO_N='-n';;
21274 esac
21275
21276 if expr a : '\(a\)' >/dev/null 2>&1 &&
21277    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21278   as_expr=expr
21279 else
21280   as_expr=false
21281 fi
21282
21283 rm -f conf$$ conf$$.exe conf$$.file
21284 if test -d conf$$.dir; then
21285   rm -f conf$$.dir/conf$$.file
21286 else
21287   rm -f conf$$.dir
21288   mkdir conf$$.dir
21289 fi
21290 echo >conf$$.file
21291 if ln -s conf$$.file conf$$ 2>/dev/null; then
21292   as_ln_s='ln -s'
21293   # ... but there are two gotchas:
21294   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21295   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21296   # In both cases, we have to default to `cp -p'.
21297   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21298     as_ln_s='cp -p'
21299 elif ln conf$$.file conf$$ 2>/dev/null; then
21300   as_ln_s=ln
21301 else
21302   as_ln_s='cp -p'
21303 fi
21304 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21305 rmdir conf$$.dir 2>/dev/null
21306
21307 if mkdir -p . 2>/dev/null; then
21308   as_mkdir_p=:
21309 else
21310   test -d ./-p && rmdir ./-p
21311   as_mkdir_p=false
21312 fi
21313
21314 if test -x / >/dev/null 2>&1; then
21315   as_test_x='test -x'
21316 else
21317   if ls -dL / >/dev/null 2>&1; then
21318     as_ls_L_option=L
21319   else
21320     as_ls_L_option=
21321   fi
21322   as_test_x='
21323     eval sh -c '\''
21324       if test -d "$1"; then
21325         test -d "$1/.";
21326       else
21327         case $1 in
21328         -*)set "./$1";;
21329         esac;
21330         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21331         ???[sx]*):;;*)false;;esac;fi
21332     '\'' sh
21333   '
21334 fi
21335 as_executable_p=$as_test_x
21336
21337 # Sed expression to map a string onto a valid CPP name.
21338 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21339
21340 # Sed expression to map a string onto a valid variable name.
21341 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21342
21343
21344 exec 6>&1
21345
21346 # Save the log message, to keep $[0] and so on meaningful, and to
21347 # report actual input values of CONFIG_FILES etc. instead of their
21348 # values after options handling.
21349 ac_log="
21350 This file was extended by Wine $as_me 0.9.32, which was
21351 generated by GNU Autoconf 2.61.  Invocation command line was
21352
21353   CONFIG_FILES    = $CONFIG_FILES
21354   CONFIG_HEADERS  = $CONFIG_HEADERS
21355   CONFIG_LINKS    = $CONFIG_LINKS
21356   CONFIG_COMMANDS = $CONFIG_COMMANDS
21357   $ $0 $@
21358
21359 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21360 "
21361
21362 _ACEOF
21363
21364 cat >>$CONFIG_STATUS <<_ACEOF
21365 # Files that config.status was made for.
21366 config_files="$ac_config_files"
21367 config_headers="$ac_config_headers"
21368 config_commands="$ac_config_commands"
21369
21370 _ACEOF
21371
21372 cat >>$CONFIG_STATUS <<\_ACEOF
21373 ac_cs_usage="\
21374 \`$as_me' instantiates files from templates according to the
21375 current configuration.
21376
21377 Usage: $0 [OPTIONS] [FILE]...
21378
21379   -h, --help       print this help, then exit
21380   -V, --version    print version number and configuration settings, then exit
21381   -q, --quiet      do not print progress messages
21382   -d, --debug      don't remove temporary files
21383       --recheck    update $as_me by reconfiguring in the same conditions
21384   --file=FILE[:TEMPLATE]
21385                    instantiate the configuration file FILE
21386   --header=FILE[:TEMPLATE]
21387                    instantiate the configuration header FILE
21388
21389 Configuration files:
21390 $config_files
21391
21392 Configuration headers:
21393 $config_headers
21394
21395 Configuration commands:
21396 $config_commands
21397
21398 Report bugs to <bug-autoconf@gnu.org>."
21399
21400 _ACEOF
21401 cat >>$CONFIG_STATUS <<_ACEOF
21402 ac_cs_version="\\
21403 Wine config.status 0.9.32
21404 configured by $0, generated by GNU Autoconf 2.61,
21405   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21406
21407 Copyright (C) 2006 Free Software Foundation, Inc.
21408 This config.status script is free software; the Free Software Foundation
21409 gives unlimited permission to copy, distribute and modify it."
21410
21411 ac_pwd='$ac_pwd'
21412 srcdir='$srcdir'
21413 INSTALL='$INSTALL'
21414 _ACEOF
21415
21416 cat >>$CONFIG_STATUS <<\_ACEOF
21417 # If no file are specified by the user, then we need to provide default
21418 # value.  By we need to know if files were specified by the user.
21419 ac_need_defaults=:
21420 while test $# != 0
21421 do
21422   case $1 in
21423   --*=*)
21424     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21425     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21426     ac_shift=:
21427     ;;
21428   *)
21429     ac_option=$1
21430     ac_optarg=$2
21431     ac_shift=shift
21432     ;;
21433   esac
21434
21435   case $ac_option in
21436   # Handling of the options.
21437   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21438     ac_cs_recheck=: ;;
21439   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21440     echo "$ac_cs_version"; exit ;;
21441   --debug | --debu | --deb | --de | --d | -d )
21442     debug=: ;;
21443   --file | --fil | --fi | --f )
21444     $ac_shift
21445     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21446     ac_need_defaults=false;;
21447   --header | --heade | --head | --hea )
21448     $ac_shift
21449     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21450     ac_need_defaults=false;;
21451   --he | --h)
21452     # Conflict between --help and --header
21453     { echo "$as_me: error: ambiguous option: $1
21454 Try \`$0 --help' for more information." >&2
21455    { (exit 1); exit 1; }; };;
21456   --help | --hel | -h )
21457     echo "$ac_cs_usage"; exit ;;
21458   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21459   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21460     ac_cs_silent=: ;;
21461
21462   # This is an error.
21463   -*) { echo "$as_me: error: unrecognized option: $1
21464 Try \`$0 --help' for more information." >&2
21465    { (exit 1); exit 1; }; } ;;
21466
21467   *) ac_config_targets="$ac_config_targets $1"
21468      ac_need_defaults=false ;;
21469
21470   esac
21471   shift
21472 done
21473
21474 ac_configure_extra_args=
21475
21476 if $ac_cs_silent; then
21477   exec 6>/dev/null
21478   ac_configure_extra_args="$ac_configure_extra_args --silent"
21479 fi
21480
21481 _ACEOF
21482 cat >>$CONFIG_STATUS <<_ACEOF
21483 if \$ac_cs_recheck; then
21484   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21485   CONFIG_SHELL=$SHELL
21486   export CONFIG_SHELL
21487   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21488 fi
21489
21490 _ACEOF
21491 cat >>$CONFIG_STATUS <<\_ACEOF
21492 exec 5>>config.log
21493 {
21494   echo
21495   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21496 ## Running $as_me. ##
21497 _ASBOX
21498   echo "$ac_log"
21499 } >&5
21500
21501 _ACEOF
21502 cat >>$CONFIG_STATUS <<_ACEOF
21503 _ACEOF
21504
21505 cat >>$CONFIG_STATUS <<\_ACEOF
21506
21507 # Handling of arguments.
21508 for ac_config_target in $ac_config_targets
21509 do
21510   case $ac_config_target in
21511     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21512     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
21513     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
21514     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
21515     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
21516     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
21517     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
21518     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21519     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
21520     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
21521     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
21522     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
21523     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
21524     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21525     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
21526     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
21527     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
21528     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
21529     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
21530     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
21531     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
21532     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
21533     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
21534     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
21535     "dlls/browseui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/Makefile" ;;
21536     "dlls/browseui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/tests/Makefile" ;;
21537     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
21538     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
21539     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
21540     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
21541     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
21542     "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
21543     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
21544     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
21545     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
21546     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
21547     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
21548     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
21549     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
21550     "dlls/credui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/credui/Makefile" ;;
21551     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
21552     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
21553     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
21554     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
21555     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
21556     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
21557     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
21558     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
21559     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
21560     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
21561     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
21562     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
21563     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
21564     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
21565     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
21566     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
21567     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
21568     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
21569     "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
21570     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
21571     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
21572     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
21573     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
21574     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
21575     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
21576     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
21577     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
21578     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
21579     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
21580     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
21581     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
21582     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
21583     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
21584     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
21585     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
21586     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
21587     "dlls/dplayx/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/tests/Makefile" ;;
21588     "dlls/dpnaddr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnaddr/Makefile" ;;
21589     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
21590     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
21591     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
21592     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
21593     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
21594     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
21595     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
21596     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
21597     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
21598     "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
21599     "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
21600     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
21601     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
21602     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
21603     "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
21604     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
21605     "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
21606     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
21607     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
21608     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
21609     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
21610     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
21611     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
21612     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
21613     "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
21614     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
21615     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
21616     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
21617     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
21618     "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
21619     "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
21620     "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
21621     "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
21622     "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
21623     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
21624     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
21625     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
21626     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
21627     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
21628     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
21629     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
21630     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
21631     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
21632     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
21633     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
21634     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
21635     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
21636     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
21637     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
21638     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
21639     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
21640     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
21641     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
21642     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
21643     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
21644     "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
21645     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
21646     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
21647     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
21648     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
21649     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
21650     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
21651     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
21652     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
21653     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
21654     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
21655     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
21656     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
21657     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
21658     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
21659     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
21660     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
21661     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
21662     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
21663     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
21664     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
21665     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
21666     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
21667     "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
21668     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21669     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21670     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21671     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21672     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21673     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
21674     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21675     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21676     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
21677     "dlls/odbccp32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/tests/Makefile" ;;
21678     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21679     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21680     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21681     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21682     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21683     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21684     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21685     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21686     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
21687     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
21688     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
21689     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21690     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
21691     "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
21692     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21693     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21694     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
21695     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
21696     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
21697     "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
21698     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21699     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21700     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21701     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21702     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21703     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21704     "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21705     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21706     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21707     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
21708     "dlls/schannel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/Makefile" ;;
21709     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21710     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21711     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21712     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21713     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
21714     "dlls/serialui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/tests/Makefile" ;;
21715     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21716     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21717     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
21718     "dlls/sfc_os/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc_os/Makefile" ;;
21719     "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
21720     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21721     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21722     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21723     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21724     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21725     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21726     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21727     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
21728     "dlls/snmpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/tests/Makefile" ;;
21729     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21730     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21731     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21732     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21733     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
21734     "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
21735     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21736     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21737     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21738     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21739     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21740     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
21741     "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
21742     "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
21743     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
21744     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21745     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21746     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21747     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
21748     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
21749     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21750     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21751     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21752     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21753     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21754     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21755     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21756     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21757     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21758     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
21759     "dlls/winealsa.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winealsa.drv/Makefile" ;;
21760     "dlls/winearts.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winearts.drv/Makefile" ;;
21761     "dlls/wineaudioio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineaudioio.drv/Makefile" ;;
21762     "dlls/winecoreaudio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecoreaudio.drv/Makefile" ;;
21763     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21764     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21765     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
21766     "dlls/wineesd.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineesd.drv/Makefile" ;;
21767     "dlls/winejack.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejack.drv/Makefile" ;;
21768     "dlls/winejoystick.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejoystick.drv/Makefile" ;;
21769     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
21770     "dlls/winenas.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winenas.drv/Makefile" ;;
21771     "dlls/wineoss.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineoss.drv/Makefile" ;;
21772     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
21773     "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
21774     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
21775     "dlls/wing32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wing32/Makefile" ;;
21776     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21777     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21778     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
21779     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
21780     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
21781     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
21782     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
21783     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
21784     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
21785     "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
21786     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
21787     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
21788     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21789     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
21790     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
21791     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21792     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
21793     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
21794     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21795     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21796     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21797     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
21798     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21799     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21800     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21801     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21802     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
21803     "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
21804     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21805     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21806     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
21807     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21808     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
21809     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
21810     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
21811     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
21812     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
21813     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
21814     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
21815     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21816     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21817     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21818     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21819     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
21820     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21821     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21822     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21823     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
21824     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21825     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21826     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21827     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21828     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21829     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21830     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21831     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21832     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21833     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21834     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21835     "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21836     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21837     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
21838     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21839     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21840     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21841     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21842     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21843     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21844     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21845     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21846
21847   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21848 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21849    { (exit 1); exit 1; }; };;
21850   esac
21851 done
21852
21853
21854 # If the user did not use the arguments to specify the items to instantiate,
21855 # then the envvar interface is used.  Set only those that are not.
21856 # We use the long form for the default assignment because of an extremely
21857 # bizarre bug on SunOS 4.1.3.
21858 if $ac_need_defaults; then
21859   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21860   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21861   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21862 fi
21863
21864 # Have a temporary directory for convenience.  Make it in the build tree
21865 # simply because there is no reason against having it here, and in addition,
21866 # creating and moving files from /tmp can sometimes cause problems.
21867 # Hook for its removal unless debugging.
21868 # Note that there is a small window in which the directory will not be cleaned:
21869 # after its creation but before its name has been assigned to `$tmp'.
21870 $debug ||
21871 {
21872   tmp=
21873   trap 'exit_status=$?
21874   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21875 ' 0
21876   trap '{ (exit 1); exit 1; }' 1 2 13 15
21877 }
21878 # Create a (secure) tmp directory for tmp files.
21879
21880 {
21881   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21882   test -n "$tmp" && test -d "$tmp"
21883 }  ||
21884 {
21885   tmp=./conf$$-$RANDOM
21886   (umask 077 && mkdir "$tmp")
21887 } ||
21888 {
21889    echo "$me: cannot create a temporary directory in ." >&2
21890    { (exit 1); exit 1; }
21891 }
21892
21893 #
21894 # Set up the sed scripts for CONFIG_FILES section.
21895 #
21896
21897 # No need to generate the scripts if there are no CONFIG_FILES.
21898 # This happens for instance when ./config.status config.h
21899 if test -n "$CONFIG_FILES"; then
21900
21901 _ACEOF
21902
21903 # Create sed commands to just substitute file output variables.
21904
21905 # Remaining file output variables are in a fragment that also has non-file
21906 # output varibles.
21907
21908
21909
21910 ac_delim='%!_!# '
21911 for ac_last_try in false false false false false :; do
21912   cat >conf$$subs.sed <<_ACEOF
21913 SHELL!$SHELL$ac_delim
21914 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21915 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21916 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21917 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21918 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21919 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21920 exec_prefix!$exec_prefix$ac_delim
21921 prefix!$prefix$ac_delim
21922 program_transform_name!$program_transform_name$ac_delim
21923 bindir!$bindir$ac_delim
21924 sbindir!$sbindir$ac_delim
21925 libexecdir!$libexecdir$ac_delim
21926 datarootdir!$datarootdir$ac_delim
21927 datadir!$datadir$ac_delim
21928 sysconfdir!$sysconfdir$ac_delim
21929 sharedstatedir!$sharedstatedir$ac_delim
21930 localstatedir!$localstatedir$ac_delim
21931 includedir!$includedir$ac_delim
21932 oldincludedir!$oldincludedir$ac_delim
21933 docdir!$docdir$ac_delim
21934 infodir!$infodir$ac_delim
21935 htmldir!$htmldir$ac_delim
21936 dvidir!$dvidir$ac_delim
21937 pdfdir!$pdfdir$ac_delim
21938 psdir!$psdir$ac_delim
21939 libdir!$libdir$ac_delim
21940 localedir!$localedir$ac_delim
21941 mandir!$mandir$ac_delim
21942 DEFS!$DEFS$ac_delim
21943 ECHO_C!$ECHO_C$ac_delim
21944 ECHO_N!$ECHO_N$ac_delim
21945 ECHO_T!$ECHO_T$ac_delim
21946 LIBS!$LIBS$ac_delim
21947 build_alias!$build_alias$ac_delim
21948 host_alias!$host_alias$ac_delim
21949 target_alias!$target_alias$ac_delim
21950 build!$build$ac_delim
21951 build_cpu!$build_cpu$ac_delim
21952 build_vendor!$build_vendor$ac_delim
21953 build_os!$build_os$ac_delim
21954 host!$host$ac_delim
21955 host_cpu!$host_cpu$ac_delim
21956 host_vendor!$host_vendor$ac_delim
21957 host_os!$host_os$ac_delim
21958 WIN16_FILES!$WIN16_FILES$ac_delim
21959 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
21960 SET_MAKE!$SET_MAKE$ac_delim
21961 CC!$CC$ac_delim
21962 CFLAGS!$CFLAGS$ac_delim
21963 LDFLAGS!$LDFLAGS$ac_delim
21964 CPPFLAGS!$CPPFLAGS$ac_delim
21965 ac_ct_CC!$ac_ct_CC$ac_delim
21966 EXEEXT!$EXEEXT$ac_delim
21967 OBJEXT!$OBJEXT$ac_delim
21968 CXX!$CXX$ac_delim
21969 CXXFLAGS!$CXXFLAGS$ac_delim
21970 ac_ct_CXX!$ac_ct_CXX$ac_delim
21971 CPPBIN!$CPPBIN$ac_delim
21972 TOOLSDIR!$TOOLSDIR$ac_delim
21973 XMKMF!$XMKMF$ac_delim
21974 CPP!$CPP$ac_delim
21975 X_CFLAGS!$X_CFLAGS$ac_delim
21976 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21977 X_LIBS!$X_LIBS$ac_delim
21978 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21979 FLEX!$FLEX$ac_delim
21980 BISON!$BISON$ac_delim
21981 AS!$AS$ac_delim
21982 ac_ct_AS!$ac_ct_AS$ac_delim
21983 LD!$LD$ac_delim
21984 AR!$AR$ac_delim
21985 RANLIB!$RANLIB$ac_delim
21986 STRIP!$STRIP$ac_delim
21987 WINDRES!$WINDRES$ac_delim
21988 LN_S!$LN_S$ac_delim
21989 LN!$LN$ac_delim
21990 GREP!$GREP$ac_delim
21991 EGREP!$EGREP$ac_delim
21992 LDCONFIG!$LDCONFIG$ac_delim
21993 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21994 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21995 _ACEOF
21996
21997   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
21998     break
21999   elif $ac_last_try; then
22000     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22001 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22002    { (exit 1); exit 1; }; }
22003   else
22004     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22005   fi
22006 done
22007
22008 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22009 if test -n "$ac_eof"; then
22010   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22011   ac_eof=`expr $ac_eof + 1`
22012 fi
22013
22014 cat >>$CONFIG_STATUS <<_ACEOF
22015 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22017 /^[      ]*@MAKE_RULES@[         ]*$/{
22018 r $MAKE_RULES
22019 d
22020 }
22021 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
22022 r $MAKE_DLL_RULES
22023 d
22024 }
22025 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
22026 r $MAKE_IMPLIB_RULES
22027 d
22028 }
22029 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
22030 r $MAKE_TEST_RULES
22031 d
22032 }
22033 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
22034 r $MAKE_PROG_RULES
22035 d
22036 }
22037 _ACEOF
22038 sed '
22039 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22040 s/^/s,@/; s/!/@,|#_!!_#|/
22041 :n
22042 t n
22043 s/'"$ac_delim"'$/,g/; t
22044 s/$/\\/; p
22045 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22046 ' >>$CONFIG_STATUS <conf$$subs.sed
22047 rm -f conf$$subs.sed
22048 cat >>$CONFIG_STATUS <<_ACEOF
22049 CEOF$ac_eof
22050 _ACEOF
22051
22052
22053 ac_delim='%!_!# '
22054 for ac_last_try in false false false false false :; do
22055   cat >conf$$subs.sed <<_ACEOF
22056 INSTALL_DATA!$INSTALL_DATA$ac_delim
22057 LINT!$LINT$ac_delim
22058 LINTFLAGS!$LINTFLAGS$ac_delim
22059 FONTFORGE!$FONTFORGE$ac_delim
22060 PKG_CONFIG!$PKG_CONFIG$ac_delim
22061 PRELINK!$PRELINK$ac_delim
22062 LIBPTHREAD!$LIBPTHREAD$ac_delim
22063 XLIB!$XLIB$ac_delim
22064 XFILES!$XFILES$ac_delim
22065 OPENGLFILES!$OPENGLFILES$ac_delim
22066 GLU32FILES!$GLU32FILES$ac_delim
22067 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
22068 QUARTZFILES!$QUARTZFILES$ac_delim
22069 NASLIBS!$NASLIBS$ac_delim
22070 XML2LIBS!$XML2LIBS$ac_delim
22071 XML2INCL!$XML2INCL$ac_delim
22072 XSLTLIBS!$XSLTLIBS$ac_delim
22073 XSLTINCL!$XSLTINCL$ac_delim
22074 HALINCL!$HALINCL$ac_delim
22075 sane_devel!$sane_devel$ac_delim
22076 SANELIBS!$SANELIBS$ac_delim
22077 SANEINCL!$SANEINCL$ac_delim
22078 gphoto2_devel!$gphoto2_devel$ac_delim
22079 gphoto2port_devel!$gphoto2port_devel$ac_delim
22080 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
22081 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
22082 ICULIBS!$ICULIBS$ac_delim
22083 RESOLVLIBS!$RESOLVLIBS$ac_delim
22084 LCMSLIBS!$LCMSLIBS$ac_delim
22085 LDAPLIBS!$LDAPLIBS$ac_delim
22086 FREETYPELIBS!$FREETYPELIBS$ac_delim
22087 FREETYPEINCL!$FREETYPEINCL$ac_delim
22088 ft_devel!$ft_devel$ac_delim
22089 ft_devel2!$ft_devel2$ac_delim
22090 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
22091 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
22092 ARTSLIBS!$ARTSLIBS$ac_delim
22093 ARTSINCL!$ARTSINCL$ac_delim
22094 ESDCONFIG!$ESDCONFIG$ac_delim
22095 ESDLIBS!$ESDLIBS$ac_delim
22096 ESDINCL!$ESDINCL$ac_delim
22097 ALSALIBS!$ALSALIBS$ac_delim
22098 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
22099 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
22100 BUILTINFLAG!$BUILTINFLAG$ac_delim
22101 DLLEXT!$DLLEXT$ac_delim
22102 DLLFLAGS!$DLLFLAGS$ac_delim
22103 LDSHARED!$LDSHARED$ac_delim
22104 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
22105 LIBEXT!$LIBEXT$ac_delim
22106 IMPLIBEXT!$IMPLIBEXT$ac_delim
22107 LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim
22108 DLLTOOL!$DLLTOOL$ac_delim
22109 DLLWRAP!$DLLWRAP$ac_delim
22110 MINGWAR!$MINGWAR$ac_delim
22111 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
22112 IOKITLIB!$IOKITLIB$ac_delim
22113 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
22114 DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
22115 COREAUDIO!$COREAUDIO$ac_delim
22116 CARBONLIB!$CARBONLIB$ac_delim
22117 CROSSTEST!$CROSSTEST$ac_delim
22118 CROSSCC!$CROSSCC$ac_delim
22119 CROSSWINDRES!$CROSSWINDRES$ac_delim
22120 LDPATH!$LDPATH$ac_delim
22121 CRTLIBS!$CRTLIBS$ac_delim
22122 SOCKETLIBS!$SOCKETLIBS$ac_delim
22123 MAIN_BINARY!$MAIN_BINARY$ac_delim
22124 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
22125 LDD!$LDD$ac_delim
22126 LIBDL!$LIBDL$ac_delim
22127 LIBPOLL!$LIBPOLL$ac_delim
22128 DEPENDENCIES!$DEPENDENCIES$ac_delim
22129 LIBOBJS!$LIBOBJS$ac_delim
22130 LTLIBOBJS!$LTLIBOBJS$ac_delim
22131 _ACEOF
22132
22133   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
22134     break
22135   elif $ac_last_try; then
22136     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22137 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22138    { (exit 1); exit 1; }; }
22139   else
22140     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22141   fi
22142 done
22143
22144 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22145 if test -n "$ac_eof"; then
22146   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22147   ac_eof=`expr $ac_eof + 1`
22148 fi
22149
22150 cat >>$CONFIG_STATUS <<_ACEOF
22151 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22153 _ACEOF
22154 sed '
22155 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22156 s/^/s,@/; s/!/@,|#_!!_#|/
22157 :n
22158 t n
22159 s/'"$ac_delim"'$/,g/; t
22160 s/$/\\/; p
22161 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22162 ' >>$CONFIG_STATUS <conf$$subs.sed
22163 rm -f conf$$subs.sed
22164 cat >>$CONFIG_STATUS <<_ACEOF
22165 :end
22166 s/|#_!!_#|//g
22167 CEOF$ac_eof
22168 _ACEOF
22169
22170
22171 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22172 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22173 # trailing colons and then remove the whole line if VPATH becomes empty
22174 # (actually we leave an empty line to preserve line numbers).
22175 if test "x$srcdir" = x.; then
22176   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22177 s/:*\$(srcdir):*/:/
22178 s/:*\${srcdir}:*/:/
22179 s/:*@srcdir@:*/:/
22180 s/^\([^=]*=[     ]*\):*/\1/
22181 s/:*$//
22182 s/^[^=]*=[       ]*$//
22183 }'
22184 fi
22185
22186 cat >>$CONFIG_STATUS <<\_ACEOF
22187 fi # test -n "$CONFIG_FILES"
22188
22189
22190 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22191 do
22192   case $ac_tag in
22193   :[FHLC]) ac_mode=$ac_tag; continue;;
22194   esac
22195   case $ac_mode$ac_tag in
22196   :[FHL]*:*);;
22197   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22198 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22199    { (exit 1); exit 1; }; };;
22200   :[FH]-) ac_tag=-:-;;
22201   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22202   esac
22203   ac_save_IFS=$IFS
22204   IFS=:
22205   set x $ac_tag
22206   IFS=$ac_save_IFS
22207   shift
22208   ac_file=$1
22209   shift
22210
22211   case $ac_mode in
22212   :L) ac_source=$1;;
22213   :[FH])
22214     ac_file_inputs=
22215     for ac_f
22216     do
22217       case $ac_f in
22218       -) ac_f="$tmp/stdin";;
22219       *) # Look for the file first in the build tree, then in the source tree
22220          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22221          # because $ac_f cannot contain `:'.
22222          test -f "$ac_f" ||
22223            case $ac_f in
22224            [\\/$]*) false;;
22225            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22226            esac ||
22227            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22228 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22229    { (exit 1); exit 1; }; };;
22230       esac
22231       ac_file_inputs="$ac_file_inputs $ac_f"
22232     done
22233
22234     # Let's still pretend it is `configure' which instantiates (i.e., don't
22235     # use $as_me), people would be surprised to read:
22236     #    /* config.h.  Generated by config.status.  */
22237     configure_input="Generated from "`IFS=:
22238           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22239     if test x"$ac_file" != x-; then
22240       configure_input="$ac_file.  $configure_input"
22241       { echo "$as_me:$LINENO: creating $ac_file" >&5
22242 echo "$as_me: creating $ac_file" >&6;}
22243     fi
22244
22245     case $ac_tag in
22246     *:-:* | *:-) cat >"$tmp/stdin";;
22247     esac
22248     ;;
22249   esac
22250
22251   ac_dir=`$as_dirname -- "$ac_file" ||
22252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22253          X"$ac_file" : 'X\(//\)[^/]' \| \
22254          X"$ac_file" : 'X\(//\)$' \| \
22255          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22256 echo X"$ac_file" |
22257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22258             s//\1/
22259             q
22260           }
22261           /^X\(\/\/\)[^/].*/{
22262             s//\1/
22263             q
22264           }
22265           /^X\(\/\/\)$/{
22266             s//\1/
22267             q
22268           }
22269           /^X\(\/\).*/{
22270             s//\1/
22271             q
22272           }
22273           s/.*/./; q'`
22274   { as_dir="$ac_dir"
22275   case $as_dir in #(
22276   -*) as_dir=./$as_dir;;
22277   esac
22278   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22279     as_dirs=
22280     while :; do
22281       case $as_dir in #(
22282       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22283       *) as_qdir=$as_dir;;
22284       esac
22285       as_dirs="'$as_qdir' $as_dirs"
22286       as_dir=`$as_dirname -- "$as_dir" ||
22287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22288          X"$as_dir" : 'X\(//\)[^/]' \| \
22289          X"$as_dir" : 'X\(//\)$' \| \
22290          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22291 echo X"$as_dir" |
22292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22293             s//\1/
22294             q
22295           }
22296           /^X\(\/\/\)[^/].*/{
22297             s//\1/
22298             q
22299           }
22300           /^X\(\/\/\)$/{
22301             s//\1/
22302             q
22303           }
22304           /^X\(\/\).*/{
22305             s//\1/
22306             q
22307           }
22308           s/.*/./; q'`
22309       test -d "$as_dir" && break
22310     done
22311     test -z "$as_dirs" || eval "mkdir $as_dirs"
22312   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22313 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22314    { (exit 1); exit 1; }; }; }
22315   ac_builddir=.
22316
22317 case "$ac_dir" in
22318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22319 *)
22320   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22321   # A ".." for each directory in $ac_dir_suffix.
22322   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22323   case $ac_top_builddir_sub in
22324   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22325   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22326   esac ;;
22327 esac
22328 ac_abs_top_builddir=$ac_pwd
22329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22330 # for backward compatibility:
22331 ac_top_builddir=$ac_top_build_prefix
22332
22333 case $srcdir in
22334   .)  # We are building in place.
22335     ac_srcdir=.
22336     ac_top_srcdir=$ac_top_builddir_sub
22337     ac_abs_top_srcdir=$ac_pwd ;;
22338   [\\/]* | ?:[\\/]* )  # Absolute name.
22339     ac_srcdir=$srcdir$ac_dir_suffix;
22340     ac_top_srcdir=$srcdir
22341     ac_abs_top_srcdir=$srcdir ;;
22342   *) # Relative name.
22343     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22344     ac_top_srcdir=$ac_top_build_prefix$srcdir
22345     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22346 esac
22347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22348
22349
22350   case $ac_mode in
22351   :F)
22352   #
22353   # CONFIG_FILE
22354   #
22355
22356   case $INSTALL in
22357   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22358   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22359   esac
22360 _ACEOF
22361
22362 cat >>$CONFIG_STATUS <<\_ACEOF
22363 # If the template does not know about datarootdir, expand it.
22364 # FIXME: This hack should be removed a few years after 2.60.
22365 ac_datarootdir_hack=; ac_datarootdir_seen=
22366
22367 case `sed -n '/datarootdir/ {
22368   p
22369   q
22370 }
22371 /@datadir@/p
22372 /@docdir@/p
22373 /@infodir@/p
22374 /@localedir@/p
22375 /@mandir@/p
22376 ' $ac_file_inputs` in
22377 *datarootdir*) ac_datarootdir_seen=yes;;
22378 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22379   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22380 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22381 _ACEOF
22382 cat >>$CONFIG_STATUS <<_ACEOF
22383   ac_datarootdir_hack='
22384   s&@datadir@&$datadir&g
22385   s&@docdir@&$docdir&g
22386   s&@infodir@&$infodir&g
22387   s&@localedir@&$localedir&g
22388   s&@mandir@&$mandir&g
22389     s&\\\${datarootdir}&$datarootdir&g' ;;
22390 esac
22391 _ACEOF
22392
22393 # Neutralize VPATH when `$srcdir' = `.'.
22394 # Shell code in configure.ac might set extrasub.
22395 # FIXME: do we really want to maintain this feature?
22396 cat >>$CONFIG_STATUS <<_ACEOF
22397   sed "$ac_vpsub
22398 $extrasub
22399 _ACEOF
22400 cat >>$CONFIG_STATUS <<\_ACEOF
22401 :t
22402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22403 s&@configure_input@&$configure_input&;t t
22404 s&@top_builddir@&$ac_top_builddir_sub&;t t
22405 s&@srcdir@&$ac_srcdir&;t t
22406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22407 s&@top_srcdir@&$ac_top_srcdir&;t t
22408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22409 s&@builddir@&$ac_builddir&;t t
22410 s&@abs_builddir@&$ac_abs_builddir&;t t
22411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22412 s&@INSTALL@&$ac_INSTALL&;t t
22413 $ac_datarootdir_hack
22414 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22415
22416 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22417   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22418   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22419   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22420 which seems to be undefined.  Please make sure it is defined." >&5
22421 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22422 which seems to be undefined.  Please make sure it is defined." >&2;}
22423
22424   rm -f "$tmp/stdin"
22425   case $ac_file in
22426   -) cat "$tmp/out"; rm -f "$tmp/out";;
22427   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22428   esac
22429  ;;
22430   :H)
22431   #
22432   # CONFIG_HEADER
22433   #
22434 _ACEOF
22435
22436 # Transform confdefs.h into a sed script `conftest.defines', that
22437 # substitutes the proper values into config.h.in to produce config.h.
22438 rm -f conftest.defines conftest.tail
22439 # First, append a space to every undef/define line, to ease matching.
22440 echo 's/$/ /' >conftest.defines
22441 # Then, protect against being on the right side of a sed subst, or in
22442 # an unquoted here document, in config.status.  If some macros were
22443 # called several times there might be several #defines for the same
22444 # symbol, which is useless.  But do not sort them, since the last
22445 # AC_DEFINE must be honored.
22446 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22447 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22448 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22449 # PARAMS is the parameter list in the macro definition--in most cases, it's
22450 # just an empty string.
22451 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22452 ac_dB='\\)[      (].*,\\1define\\2'
22453 ac_dC=' '
22454 ac_dD=' ,'
22455
22456 uniq confdefs.h |
22457   sed -n '
22458         t rset
22459         :rset
22460         s/^[     ]*#[    ]*define[       ][      ]*//
22461         t ok
22462         d
22463         :ok
22464         s/[\\&,]/\\&/g
22465         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22466         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22467   ' >>conftest.defines
22468
22469 # Remove the space that was appended to ease matching.
22470 # Then replace #undef with comments.  This is necessary, for
22471 # example, in the case of _POSIX_SOURCE, which is predefined and required
22472 # on some systems where configure will not decide to define it.
22473 # (The regexp can be short, since the line contains either #define or #undef.)
22474 echo 's/ $//
22475 s,^[     #]*u.*,/* & */,' >>conftest.defines
22476
22477 # Break up conftest.defines:
22478 ac_max_sed_lines=50
22479
22480 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22481 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22482 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22483 # et cetera.
22484 ac_in='$ac_file_inputs'
22485 ac_out='"$tmp/out1"'
22486 ac_nxt='"$tmp/out2"'
22487
22488 while :
22489 do
22490   # Write a here document:
22491     cat >>$CONFIG_STATUS <<_ACEOF
22492     # First, check the format of the line:
22493     cat >"\$tmp/defines.sed" <<\\CEOF
22494 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22495 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22496 b
22497 :def
22498 _ACEOF
22499   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22500   echo 'CEOF
22501     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22502   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22503   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22504   grep . conftest.tail >/dev/null || break
22505   rm -f conftest.defines
22506   mv conftest.tail conftest.defines
22507 done
22508 rm -f conftest.defines conftest.tail
22509
22510 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22511 cat >>$CONFIG_STATUS <<\_ACEOF
22512   if test x"$ac_file" != x-; then
22513     echo "/* $configure_input  */" >"$tmp/config.h"
22514     cat "$ac_result" >>"$tmp/config.h"
22515     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22516       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22517 echo "$as_me: $ac_file is unchanged" >&6;}
22518     else
22519       rm -f $ac_file
22520       mv "$tmp/config.h" $ac_file
22521     fi
22522   else
22523     echo "/* $configure_input  */"
22524     cat "$ac_result"
22525   fi
22526   rm -f "$tmp/out12"
22527  ;;
22528
22529   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22530 echo "$as_me: executing $ac_file commands" >&6;}
22531  ;;
22532   esac
22533
22534
22535   case $ac_file$ac_mode in
22536     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
22537     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
22538 echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
22539     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
22540 echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
22541     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
22542 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
22543     "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
22544 echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
22545     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
22546 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
22547     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
22548 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
22549
22550   esac
22551 done # for ac_tag
22552
22553
22554 { (exit 0); exit 0; }
22555 _ACEOF
22556 chmod +x $CONFIG_STATUS
22557 ac_clean_files=$ac_clean_files_save
22558
22559
22560 # configure is writing to config.log, and then calls config.status.
22561 # config.status does its own redirection, appending to config.log.
22562 # Unfortunately, on DOS this fails, as config.log is still kept open
22563 # by configure, so config.status won't be able to write to it; its
22564 # output is simply discarded.  So we exec the FD to /dev/null,
22565 # effectively closing config.log, so it can be properly (re)opened and
22566 # appended to by config.status.  When coming back to configure, we
22567 # need to make the FD available again.
22568 if test "$no_create" != yes; then
22569   ac_cs_success=:
22570   ac_config_status_args=
22571   test "$silent" = yes &&
22572     ac_config_status_args="$ac_config_status_args --quiet"
22573   exec 5>/dev/null
22574   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22575   exec 5>>config.log
22576   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22577   # would make configure fail if this is the last instruction.
22578   $ac_cs_success || { (exit 1); exit 1; }
22579 fi
22580
22581
22582
22583 if test "$no_create" = "yes"
22584 then
22585   exit 0
22586 fi
22587
22588 if test "$verbose" = "yes"
22589 then
22590     if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes"
22591   then
22592     echo >&2
22593     { echo "$as_me:$LINENO: libcapi20 development files not found." >&5
22594 echo "$as_me: libcapi20 development files not found." >&6;}
22595     { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5
22596 echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;}
22597   fi
22598
22599     if test "$ac_cv_header_cups_cups_h" != "yes"
22600   then
22601     echo >&2
22602     { echo "$as_me:$LINENO: libcups development files not found." >&5
22603 echo "$as_me: libcups development files not found." >&6;}
22604     { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
22605 echo "$as_me: Wine will be built without CUPS support." >&6;}
22606   fi
22607
22608
22609     if test "$ac_cv_header_gphoto2_camera_h" != "yes"
22610   then
22611     echo >&2
22612     { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
22613 echo "$as_me: libgphoto2 development files not found." >&6;}
22614     if test "$ac_cv_header_sane_sane_h" = "yes"
22615     then
22616       { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
22617 echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
22618     else
22619       { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
22620 echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
22621     fi
22622   fi
22623
22624       if test "$ac_cv_header_hal_libhal_h" != "yes"
22625   then
22626     echo >&2
22627     { echo "$as_me:$LINENO: libhal development files not found." >&5
22628 echo "$as_me: libhal development files not found." >&6;}
22629     { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
22630 echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
22631   fi
22632
22633     if test "$ac_cv_header_unicode_ubidi_h" != "yes"
22634   then
22635     echo >&2
22636     { echo "$as_me:$LINENO: libicu development files not found." >&5
22637 echo "$as_me: libicu development files not found." >&6;}
22638     { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
22639 echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
22640   fi
22641
22642     if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
22643   then
22644     echo >&2
22645     { echo "$as_me:$LINENO: liblcms development files not found." >&5
22646 echo "$as_me: liblcms development files not found." >&6;}
22647     { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
22648 echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
22649   fi
22650
22651     if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
22652   then
22653     echo >&2
22654     { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
22655 echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
22656     { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
22657 echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
22658   fi
22659
22660     if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
22661   then
22662     echo >&2
22663     { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
22664 echo "$as_me: lib(n)curses development files not found." >&6;}
22665     { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
22666 echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
22667   fi
22668
22669     if test "$ac_cv_header_sane_sane_h" != "yes"
22670   then
22671     echo >&2
22672     { echo "$as_me:$LINENO: libsane development files not found." >&5
22673 echo "$as_me: libsane development files not found." >&6;}
22674     { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
22675 echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
22676   fi
22677
22678       if test "$have_x" = "yes"
22679   then
22680         if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
22681     then
22682       echo >&2
22683       { echo "$as_me:$LINENO: libxext development files not found." >&5
22684 echo "$as_me: libxext development files not found." >&6;}
22685       { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
22686 echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
22687     fi
22688
22689         if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
22690     then
22691       echo >&2
22692       { echo "$as_me:$LINENO: libXrandr development files not found." >&5
22693 echo "$as_me: libXrandr development files not found." >&6;}
22694       { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
22695 echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
22696     fi
22697
22698         if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
22699     then
22700       echo >&2
22701       { echo "$as_me:$LINENO: libXrender development files not found." >&5
22702 echo "$as_me: libXrender development files not found." >&6;}
22703       { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
22704 echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
22705     fi
22706
22707         if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
22708     then
22709       echo >&2
22710       { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
22711 echo "$as_me: libXxf86vm development files not found." >&6;}
22712       { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
22713 echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
22714     fi
22715   fi
22716
22717     if test "$ac_cv_header_libxml_parser_h" != "yes"
22718   then
22719     echo >&2
22720     { echo "$as_me:$LINENO: libxml2 development files not found." >&5
22721 echo "$as_me: libxml2 development files not found." >&6;}
22722     { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
22723 echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
22724   fi
22725
22726     if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
22727   then
22728     echo >&2
22729     { echo "$as_me:$LINENO: libxslt development files not found." >&5
22730 echo "$as_me: libxslt development files not found." >&6;}
22731     { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
22732 echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
22733   fi
22734 fi
22735
22736
22737 if test "$have_x" = "no"
22738 then
22739   echo >&2
22740   { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
22741 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
22742   { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
22743 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
22744   { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
22745 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
22746   { echo "$as_me:$LINENO: WARNING:  packages of Xlib/Xfree86 at the very least." >&5
22747 echo "$as_me: WARNING:  packages of Xlib/Xfree86 at the very least." >&2;}
22748 fi
22749
22750 if test -z "$OPENGLFILES"
22751 then
22752   echo >&2
22753   { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
22754 echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
22755   { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
22756 echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
22757   if test "$wine_cv_opengl_headers_found" = "no"
22758   then
22759     { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
22760 echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
22761   fi
22762   if test "$wine_cv_opengl_header_version_OK" = "no"
22763   then
22764     { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
22765 echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
22766   elif test "$ac_cv_lib_GL_glXCreateContext" = "no"
22767   then
22768      if test -f /usr/X11R6/lib/libGL.a
22769      then
22770         { echo "$as_me:$LINENO: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22771 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&5
22772 echo "$as_me: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22773 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&2;}
22774      else
22775         { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
22776 echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
22777      fi
22778   fi
22779 fi
22780
22781 if test "$wine_cv_msg_freetype" = "yes"
22782 then
22783   echo >&2
22784   { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
22785 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
22786   { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
22787 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
22788   { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
22789 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
22790   { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
22791 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
22792 fi
22793
22794 if test -z "$FONTSSUBDIRS"
22795 then
22796   echo >&2
22797   if test "$FONTFORGE" = "false"
22798   then
22799     { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
22800 echo "$as_me: WARNING: FontForge is missing." >&2;}
22801   else
22802     { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
22803 echo "$as_me: WARNING: FreeType is missing." >&2;}
22804   fi
22805   { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
22806 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
22807 fi
22808
22809 if test -z "$ALSALIBS" -a \
22810         -z "$ARTSC_LIBS" -a \
22811         -z "$AUDIOIOLIBS" -a \
22812         -z "$NASLIBS" -a \
22813         -z "$ESD_LIBS" -a \
22814         -z "$ac_cv_lib_soname_jack" -a \
22815         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
22816         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
22817         "$ac_cv_header_soundcard_h" != "yes"
22818 then
22819   echo >&2
22820   { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
22821 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
22822   { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
22823 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
22824   { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
22825 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
22826 fi
22827
22828 echo
22829 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
22830 echo
22831