configure: Make sure timezone and daylight are variables.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a for Wine 0.9.20.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='Wine'
561 PACKAGE_TARNAME='wine'
562 PACKAGE_VERSION='0.9.20'
563 PACKAGE_STRING='Wine 0.9.20'
564 PACKAGE_BUGREPORT='wine-devel@winehq.org'
565
566 ac_unique_file="server/atom.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 build
641 build_cpu
642 build_vendor
643 build_os
644 host
645 host_cpu
646 host_vendor
647 host_os
648 WIN16_FILES
649 WIN16_INSTALL
650 SET_MAKE
651 CC
652 CFLAGS
653 LDFLAGS
654 CPPFLAGS
655 ac_ct_CC
656 EXEEXT
657 OBJEXT
658 CXX
659 CXXFLAGS
660 ac_ct_CXX
661 CPPBIN
662 TOOLSDIR
663 XMKMF
664 CPP
665 X_CFLAGS
666 X_PRE_LIBS
667 X_LIBS
668 X_EXTRA_LIBS
669 LEX
670 LEXLIB
671 LEX_OUTPUT_ROOT
672 XLEX
673 BISON
674 AS
675 ac_ct_AS
676 LD
677 AR
678 RANLIB
679 STRIP
680 WINDRES
681 LN_S
682 LN
683 GREP
684 EGREP
685 LDCONFIG
686 INSTALL_PROGRAM
687 INSTALL_SCRIPT
688 INSTALL_DATA
689 LINT
690 LINTFLAGS
691 FONTFORGE
692 PKG_CONFIG
693 PRELINK
694 LIBPTHREAD
695 XLIB
696 XFILES
697 OPENGLFILES
698 GLU32FILES
699 OPENGL_LIBS
700 GLUT_LIBS
701 GLUT32FILES
702 NASLIBS
703 XML2LIBS
704 XML2INCL
705 XSLTLIBS
706 XSLTINCL
707 HALINCL
708 CURSESLIBS
709 sane_devel
710 SANELIBS
711 SANEINCL
712 gphoto2_devel
713 gphoto2port_devel
714 GPHOTO2LIBS
715 GPHOTO2INCL
716 ICULIBS
717 RESOLVLIBS
718 LCMSLIBS
719 LDAPLIBS
720 FREETYPELIBS
721 FREETYPEINCL
722 ft_devel
723 ft_devel2
724 FONTSSUBDIRS
725 ARTSCCONFIG
726 ARTSLIBS
727 ARTSINCL
728 ESDCONFIG
729 ESDLIBS
730 ESDINCL
731 ALSALIBS
732 AUDIOIOLIBS
733 EXTRACFLAGS
734 BUILTINFLAG
735 DLLEXT
736 DLLFLAGS
737 LDSHARED
738 LDDLLFLAGS
739 LIBEXT
740 IMPLIBEXT
741 DLLTOOL
742 DLLWRAP
743 COREFOUNDATIONLIB
744 IOKITLIB
745 LDEXECFLAGS
746 COREAUDIO
747 LDEXERPATH
748 CROSSTEST
749 CROSSCC
750 CROSSWINDRES
751 LDPATH
752 CRTLIBS
753 SOCKETLIBS
754 MAIN_BINARY
755 EXTRA_BINARIES
756 LDD
757 LIBDL
758 LIBPOLL
759 LIBOBJS
760 LTLIBOBJS'
761 ac_subst_files='MAKE_RULES
762 MAKE_DLL_RULES
763 MAKE_IMPLIB_RULES
764 MAKE_TEST_RULES
765 MAKE_PROG_RULES'
766       ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 CPPFLAGS
773 CXX
774 CXXFLAGS
775 CCC
776 XMKMF
777 CPP'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830   # If the previous option needs an argument, assign it.
831   if test -n "$ac_prev"; then
832     eval $ac_prev=\$ac_option
833     ac_prev=
834     continue
835   fi
836
837   case $ac_option in
838   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839   *)    ac_optarg=yes ;;
840   esac
841
842   # Accept the important Cygnus configure options, so we can diagnose typos.
843
844   case $ac_dashdash$ac_option in
845   --)
846     ac_dashdash=yes ;;
847
848   -bindir | --bindir | --bindi | --bind | --bin | --bi)
849     ac_prev=bindir ;;
850   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851     bindir=$ac_optarg ;;
852
853   -build | --build | --buil | --bui | --bu)
854     ac_prev=build_alias ;;
855   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856     build_alias=$ac_optarg ;;
857
858   -cache-file | --cache-file | --cache-fil | --cache-fi \
859   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860     ac_prev=cache_file ;;
861   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863     cache_file=$ac_optarg ;;
864
865   --config-cache | -C)
866     cache_file=config.cache ;;
867
868   -datadir | --datadir | --datadi | --datad)
869     ac_prev=datadir ;;
870   -datadir=* | --datadir=* | --datadi=* | --datad=*)
871     datadir=$ac_optarg ;;
872
873   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874   | --dataroo | --dataro | --datar)
875     ac_prev=datarootdir ;;
876   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878     datarootdir=$ac_optarg ;;
879
880   -disable-* | --disable-*)
881     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
884       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885    { (exit 1); exit 1; }; }
886     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
887     eval enable_$ac_feature=no ;;
888
889   -docdir | --docdir | --docdi | --doc | --do)
890     ac_prev=docdir ;;
891   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892     docdir=$ac_optarg ;;
893
894   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895     ac_prev=dvidir ;;
896   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897     dvidir=$ac_optarg ;;
898
899   -enable-* | --enable-*)
900     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901     # Reject names that are not valid shell variable names.
902     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
903       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904    { (exit 1); exit 1; }; }
905     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
906     eval enable_$ac_feature=\$ac_optarg ;;
907
908   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910   | --exec | --exe | --ex)
911     ac_prev=exec_prefix ;;
912   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914   | --exec=* | --exe=* | --ex=*)
915     exec_prefix=$ac_optarg ;;
916
917   -gas | --gas | --ga | --g)
918     # Obsolete; use --with-gas.
919     with_gas=yes ;;
920
921   -help | --help | --hel | --he | -h)
922     ac_init_help=long ;;
923   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924     ac_init_help=recursive ;;
925   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926     ac_init_help=short ;;
927
928   -host | --host | --hos | --ho)
929     ac_prev=host_alias ;;
930   -host=* | --host=* | --hos=* | --ho=*)
931     host_alias=$ac_optarg ;;
932
933   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934     ac_prev=htmldir ;;
935   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936   | --ht=*)
937     htmldir=$ac_optarg ;;
938
939   -includedir | --includedir | --includedi | --included | --include \
940   | --includ | --inclu | --incl | --inc)
941     ac_prev=includedir ;;
942   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943   | --includ=* | --inclu=* | --incl=* | --inc=*)
944     includedir=$ac_optarg ;;
945
946   -infodir | --infodir | --infodi | --infod | --info | --inf)
947     ac_prev=infodir ;;
948   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949     infodir=$ac_optarg ;;
950
951   -libdir | --libdir | --libdi | --libd)
952     ac_prev=libdir ;;
953   -libdir=* | --libdir=* | --libdi=* | --libd=*)
954     libdir=$ac_optarg ;;
955
956   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957   | --libexe | --libex | --libe)
958     ac_prev=libexecdir ;;
959   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960   | --libexe=* | --libex=* | --libe=*)
961     libexecdir=$ac_optarg ;;
962
963   -localedir | --localedir | --localedi | --localed | --locale)
964     ac_prev=localedir ;;
965   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966     localedir=$ac_optarg ;;
967
968   -localstatedir | --localstatedir | --localstatedi | --localstated \
969   | --localstate | --localstat | --localsta | --localst | --locals)
970     ac_prev=localstatedir ;;
971   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973     localstatedir=$ac_optarg ;;
974
975   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976     ac_prev=mandir ;;
977   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978     mandir=$ac_optarg ;;
979
980   -nfp | --nfp | --nf)
981     # Obsolete; use --without-fp.
982     with_fp=no ;;
983
984   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985   | --no-cr | --no-c | -n)
986     no_create=yes ;;
987
988   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990     no_recursion=yes ;;
991
992   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994   | --oldin | --oldi | --old | --ol | --o)
995     ac_prev=oldincludedir ;;
996   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999     oldincludedir=$ac_optarg ;;
1000
1001   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002     ac_prev=prefix ;;
1003   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004     prefix=$ac_optarg ;;
1005
1006   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007   | --program-pre | --program-pr | --program-p)
1008     ac_prev=program_prefix ;;
1009   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011     program_prefix=$ac_optarg ;;
1012
1013   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014   | --program-suf | --program-su | --program-s)
1015     ac_prev=program_suffix ;;
1016   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018     program_suffix=$ac_optarg ;;
1019
1020   -program-transform-name | --program-transform-name \
1021   | --program-transform-nam | --program-transform-na \
1022   | --program-transform-n | --program-transform- \
1023   | --program-transform | --program-transfor \
1024   | --program-transfo | --program-transf \
1025   | --program-trans | --program-tran \
1026   | --progr-tra | --program-tr | --program-t)
1027     ac_prev=program_transform_name ;;
1028   -program-transform-name=* | --program-transform-name=* \
1029   | --program-transform-nam=* | --program-transform-na=* \
1030   | --program-transform-n=* | --program-transform-=* \
1031   | --program-transform=* | --program-transfor=* \
1032   | --program-transfo=* | --program-transf=* \
1033   | --program-trans=* | --program-tran=* \
1034   | --progr-tra=* | --program-tr=* | --program-t=*)
1035     program_transform_name=$ac_optarg ;;
1036
1037   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038     ac_prev=pdfdir ;;
1039   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040     pdfdir=$ac_optarg ;;
1041
1042   -psdir | --psdir | --psdi | --psd | --ps)
1043     ac_prev=psdir ;;
1044   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045     psdir=$ac_optarg ;;
1046
1047   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048   | -silent | --silent | --silen | --sile | --sil)
1049     silent=yes ;;
1050
1051   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052     ac_prev=sbindir ;;
1053   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054   | --sbi=* | --sb=*)
1055     sbindir=$ac_optarg ;;
1056
1057   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059   | --sharedst | --shareds | --shared | --share | --shar \
1060   | --sha | --sh)
1061     ac_prev=sharedstatedir ;;
1062   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065   | --sha=* | --sh=*)
1066     sharedstatedir=$ac_optarg ;;
1067
1068   -site | --site | --sit)
1069     ac_prev=site ;;
1070   -site=* | --site=* | --sit=*)
1071     site=$ac_optarg ;;
1072
1073   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074     ac_prev=srcdir ;;
1075   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076     srcdir=$ac_optarg ;;
1077
1078   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079   | --syscon | --sysco | --sysc | --sys | --sy)
1080     ac_prev=sysconfdir ;;
1081   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083     sysconfdir=$ac_optarg ;;
1084
1085   -target | --target | --targe | --targ | --tar | --ta | --t)
1086     ac_prev=target_alias ;;
1087   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088     target_alias=$ac_optarg ;;
1089
1090   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091     verbose=yes ;;
1092
1093   -version | --version | --versio | --versi | --vers | -V)
1094     ac_init_version=: ;;
1095
1096   -with-* | --with-*)
1097     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1100       { echo "$as_me: error: invalid package name: $ac_package" >&2
1101    { (exit 1); exit 1; }; }
1102     ac_package=`echo $ac_package| sed 's/-/_/g'`
1103     eval with_$ac_package=\$ac_optarg ;;
1104
1105   -without-* | --without-*)
1106     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1109       { echo "$as_me: error: invalid package name: $ac_package" >&2
1110    { (exit 1); exit 1; }; }
1111     ac_package=`echo $ac_package | sed 's/-/_/g'`
1112     eval with_$ac_package=no ;;
1113
1114   --x)
1115     # Obsolete; use --with-x.
1116     with_x=yes ;;
1117
1118   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119   | --x-incl | --x-inc | --x-in | --x-i)
1120     ac_prev=x_includes ;;
1121   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123     x_includes=$ac_optarg ;;
1124
1125   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127     ac_prev=x_libraries ;;
1128   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130     x_libraries=$ac_optarg ;;
1131
1132   -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134    { (exit 1); exit 1; }; }
1135     ;;
1136
1137   *=*)
1138     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142    { (exit 1); exit 1; }; }
1143     eval $ac_envvar=\$ac_optarg
1144     export $ac_envvar ;;
1145
1146   *)
1147     # FIXME: should be removed in autoconf 3.0.
1148     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1152     ;;
1153
1154   esac
1155 done
1156
1157 if test -n "$ac_prev"; then
1158   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159   { echo "$as_me: error: missing argument to $ac_option" >&2
1160    { (exit 1); exit 1; }; }
1161 fi
1162
1163 # Be sure to have absolute directory names.
1164 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165                 datadir sysconfdir sharedstatedir localstatedir includedir \
1166                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167                 libdir localedir mandir
1168 do
1169   eval ac_val=\$$ac_var
1170   case $ac_val in
1171     [\\/$]* | ?:[\\/]* )  continue;;
1172     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173   esac
1174   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175    { (exit 1); exit 1; }; }
1176 done
1177
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1181 build=$build_alias
1182 host=$host_alias
1183 target=$target_alias
1184
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187   if test "x$build_alias" = x; then
1188     cross_compiling=maybe
1189     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190     If a cross compiler is detected then cross compile mode will be used." >&2
1191   elif test "x$build_alias" != "x$host_alias"; then
1192     cross_compiling=yes
1193   fi
1194 fi
1195
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198
1199 test "$silent" = yes && exec 6>/dev/null
1200
1201
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205   { echo "$as_me: error: Working directory cannot be determined" >&2
1206    { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208   { echo "$as_me: error: pwd does not report name of working directory" >&2
1209    { (exit 1); exit 1; }; }
1210
1211
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214   ac_srcdir_defaulted=yes
1215   # Try the directory containing this script, then the parent directory.
1216   ac_confdir=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218          X"$0" : 'X\(//\)[^/]' \| \
1219          X"$0" : 'X\(//\)$' \| \
1220          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1221 echo X"$0" |
1222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223             s//\1/
1224             q
1225           }
1226           /^X\(\/\/\)[^/].*/{
1227             s//\1/
1228             q
1229           }
1230           /^X\(\/\/\)$/{
1231             s//\1/
1232             q
1233           }
1234           /^X\(\/\).*/{
1235             s//\1/
1236             q
1237           }
1238           s/.*/./; q'`
1239   srcdir=$ac_confdir
1240   if test ! -r "$srcdir/$ac_unique_file"; then
1241     srcdir=..
1242   fi
1243 else
1244   ac_srcdir_defaulted=no
1245 fi
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249    { (exit 1); exit 1; }; }
1250 fi
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254    { (exit 1); exit 1; }; }
1255         pwd)`
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258   srcdir=.
1259 fi
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1263 case $srcdir in
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 esac
1266 for ac_var in $ac_precious_vars; do
1267   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268   eval ac_env_${ac_var}_value=\$${ac_var}
1269   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 done
1272
1273 #
1274 # Report the --help message.
1275 #
1276 if test "$ac_init_help" = "long"; then
1277   # Omit some internal or obsolete options to make the list less imposing.
1278   # This message is too long to be a string in the A/UX 3.1 sh.
1279   cat <<_ACEOF
1280 \`configure' configures Wine 0.9.20 to adapt to many kinds of systems.
1281
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1283
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE.  See below for descriptions of some of the useful variables.
1286
1287 Defaults for the options are specified in brackets.
1288
1289 Configuration:
1290   -h, --help              display this help and exit
1291       --help=short        display options specific to this package
1292       --help=recursive    display the short help of all the included packages
1293   -V, --version           display version information and exit
1294   -q, --quiet, --silent   do not print \`checking...' messages
1295       --cache-file=FILE   cache test results in FILE [disabled]
1296   -C, --config-cache      alias for \`--cache-file=config.cache'
1297   -n, --no-create         do not create output files
1298       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1299
1300 Installation directories:
1301   --prefix=PREFIX         install architecture-independent files in PREFIX
1302                           [$ac_default_prefix]
1303   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1304                           [PREFIX]
1305
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1310
1311 For better control, use the options below.
1312
1313 Fine tuning of the installation directories:
1314   --bindir=DIR           user executables [EPREFIX/bin]
1315   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1316   --libexecdir=DIR       program executables [EPREFIX/libexec]
1317   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1318   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1319   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1320   --libdir=DIR           object code libraries [EPREFIX/lib]
1321   --includedir=DIR       C header files [PREFIX/include]
1322   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1323   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1324   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1325   --infodir=DIR          info documentation [DATAROOTDIR/info]
1326   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1327   --mandir=DIR           man documentation [DATAROOTDIR/man]
1328   --docdir=DIR           documentation root [DATAROOTDIR/doc/wine]
1329   --htmldir=DIR          html documentation [DOCDIR]
1330   --dvidir=DIR           dvi documentation [DOCDIR]
1331   --pdfdir=DIR           pdf documentation [DOCDIR]
1332   --psdir=DIR            ps documentation [DOCDIR]
1333 _ACEOF
1334
1335   cat <<\_ACEOF
1336
1337 X features:
1338   --x-includes=DIR    X include files are in DIR
1339   --x-libraries=DIR   X library files are in DIR
1340
1341 System types:
1342   --build=BUILD     configure for building on BUILD [guessed]
1343   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1344 _ACEOF
1345 fi
1346
1347 if test -n "$ac_init_help"; then
1348   case $ac_init_help in
1349      short | recursive ) echo "Configuration of Wine 0.9.20:";;
1350    esac
1351   cat <<\_ACEOF
1352
1353 Optional Features:
1354   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1355   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1356   --disable-win16         do not include Win16 support
1357   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1358                           binaries)
1359
1360 Optional Packages:
1361   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1362   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1363   --without-opengl        do not use OpenGL
1364   --without-curses        do not use curses
1365   --with-wine-tools=<dir> use Wine tools from directory <dir>
1366   --with-x                use the X Window System
1367
1368 Some influential environment variables:
1369   CC          C compiler command
1370   CFLAGS      C compiler flags
1371   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1372               nonstandard directory <lib dir>
1373   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374               you have headers in a nonstandard directory <include dir>
1375   CXX         C++ compiler command
1376   CXXFLAGS    C++ compiler flags
1377   XMKMF       Path to xmkmf, Makefile generator for X Window System
1378   CPP         C preprocessor
1379
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1382
1383 Report bugs to <wine-devel@winehq.org>.
1384 _ACEOF
1385 ac_status=$?
1386 fi
1387
1388 if test "$ac_init_help" = "recursive"; then
1389   # If there are subdirs, report their specific --help.
1390   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391     test -d "$ac_dir" || continue
1392     ac_builddir=.
1393
1394 case "$ac_dir" in
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *)
1397   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1398   # A ".." for each directory in $ac_dir_suffix.
1399   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1400   case $ac_top_builddir_sub in
1401   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403   esac ;;
1404 esac
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1409
1410 case $srcdir in
1411   .)  # We are building in place.
1412     ac_srcdir=.
1413     ac_top_srcdir=$ac_top_builddir_sub
1414     ac_abs_top_srcdir=$ac_pwd ;;
1415   [\\/]* | ?:[\\/]* )  # Absolute name.
1416     ac_srcdir=$srcdir$ac_dir_suffix;
1417     ac_top_srcdir=$srcdir
1418     ac_abs_top_srcdir=$srcdir ;;
1419   *) # Relative name.
1420     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421     ac_top_srcdir=$ac_top_build_prefix$srcdir
1422     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 esac
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425
1426     cd "$ac_dir" || { ac_status=$?; continue; }
1427     # Check for guested configure.
1428     if test -f "$ac_srcdir/configure.gnu"; then
1429       echo &&
1430       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431     elif test -f "$ac_srcdir/configure"; then
1432       echo &&
1433       $SHELL "$ac_srcdir/configure" --help=recursive
1434     else
1435       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436     fi || ac_status=$?
1437     cd "$ac_pwd" || { ac_status=$?; break; }
1438   done
1439 fi
1440
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1443   cat <<\_ACEOF
1444 Wine configure 0.9.20
1445 generated by GNU Autoconf 2.60a
1446
1447 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1448 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1451 _ACEOF
1452   exit
1453 fi
1454 cat >config.log <<_ACEOF
1455 This file contains any messages produced by compilers while
1456 running configure, to aid debugging if configure makes a mistake.
1457
1458 It was created by Wine $as_me 0.9.20, which was
1459 generated by GNU Autoconf 2.60a.  Invocation command line was
1460
1461   $ $0 $@
1462
1463 _ACEOF
1464 exec 5>>config.log
1465 {
1466 cat <<_ASUNAME
1467 ## --------- ##
1468 ## Platform. ##
1469 ## --------- ##
1470
1471 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1472 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476
1477 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1478 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1479
1480 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1481 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1482 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1483 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1484 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1485 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1486 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1487
1488 _ASUNAME
1489
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1492 do
1493   IFS=$as_save_IFS
1494   test -z "$as_dir" && as_dir=.
1495   echo "PATH: $as_dir"
1496 done
1497 IFS=$as_save_IFS
1498
1499 } >&5
1500
1501 cat >&5 <<_ACEOF
1502
1503
1504 ## ----------- ##
1505 ## Core tests. ##
1506 ## ----------- ##
1507
1508 _ACEOF
1509
1510
1511 # Keep a trace of the command line.
1512 # Strip out --no-create and --no-recursion so they do not pile up.
1513 # Strip out --silent because we don't want to record it for future runs.
1514 # Also quote any args containing shell meta-characters.
1515 # Make two passes to allow for proper duplicate-argument suppression.
1516 ac_configure_args=
1517 ac_configure_args0=
1518 ac_configure_args1=
1519 ac_must_keep_next=false
1520 for ac_pass in 1 2
1521 do
1522   for ac_arg
1523   do
1524     case $ac_arg in
1525     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527     | -silent | --silent | --silen | --sile | --sil)
1528       continue ;;
1529     *\'*)
1530       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1531     esac
1532     case $ac_pass in
1533     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534     2)
1535       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536       if test $ac_must_keep_next = true; then
1537         ac_must_keep_next=false # Got value, back to normal.
1538       else
1539         case $ac_arg in
1540           *=* | --config-cache | -C | -disable-* | --disable-* \
1541           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543           | -with-* | --with-* | -without-* | --without-* | --x)
1544             case "$ac_configure_args0 " in
1545               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1546             esac
1547             ;;
1548           -* ) ac_must_keep_next=true ;;
1549         esac
1550       fi
1551       ac_configure_args="$ac_configure_args '$ac_arg'"
1552       ;;
1553     esac
1554   done
1555 done
1556 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1558
1559 # When interrupted or exit'd, cleanup temporary files, and complete
1560 # config.log.  We remove comments because anyway the quotes in there
1561 # would cause problems or look ugly.
1562 # WARNING: Use '\'' to represent an apostrophe within the trap.
1563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1564 trap 'exit_status=$?
1565   # Save into config.log some information that might help in debugging.
1566   {
1567     echo
1568
1569     cat <<\_ASBOX
1570 ## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##
1573 _ASBOX
1574     echo
1575     # The following way of writing the cache mishandles newlines in values,
1576 (
1577   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1578     eval ac_val=\$$ac_var
1579     case $ac_val in #(
1580     *${as_nl}*)
1581       case $ac_var in #(
1582       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1584       esac
1585       case $ac_var in #(
1586       _ | IFS | as_nl) ;; #(
1587       *) $as_unset $ac_var ;;
1588       esac ;;
1589     esac
1590   done
1591   (set) 2>&1 |
1592     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593     *${as_nl}ac_space=\ *)
1594       sed -n \
1595         "s/'\''/'\''\\\\'\'''\''/g;
1596           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597       ;; #(
1598     *)
1599       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1600       ;;
1601     esac |
1602     sort
1603 )
1604     echo
1605
1606     cat <<\_ASBOX
1607 ## ----------------- ##
1608 ## Output variables. ##
1609 ## ----------------- ##
1610 _ASBOX
1611     echo
1612     for ac_var in $ac_subst_vars
1613     do
1614       eval ac_val=\$$ac_var
1615       case $ac_val in
1616       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617       esac
1618       echo "$ac_var='\''$ac_val'\''"
1619     done | sort
1620     echo
1621
1622     if test -n "$ac_subst_files"; then
1623       cat <<\_ASBOX
1624 ## ------------------- ##
1625 ## File substitutions. ##
1626 ## ------------------- ##
1627 _ASBOX
1628       echo
1629       for ac_var in $ac_subst_files
1630       do
1631         eval ac_val=\$$ac_var
1632         case $ac_val in
1633         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634         esac
1635         echo "$ac_var='\''$ac_val'\''"
1636       done | sort
1637       echo
1638     fi
1639
1640     if test -s confdefs.h; then
1641       cat <<\_ASBOX
1642 ## ----------- ##
1643 ## confdefs.h. ##
1644 ## ----------- ##
1645 _ASBOX
1646       echo
1647       cat confdefs.h
1648       echo
1649     fi
1650     test "$ac_signal" != 0 &&
1651       echo "$as_me: caught signal $ac_signal"
1652     echo "$as_me: exit $exit_status"
1653   } >&5
1654   rm -f core *.core core.conftest.* &&
1655     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1656     exit $exit_status
1657 ' 0
1658 for ac_signal in 1 2 13 15; do
1659   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660 done
1661 ac_signal=0
1662
1663 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1664 rm -f -r conftest* confdefs.h
1665
1666 # Predefined preprocessor variables.
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_NAME "$PACKAGE_NAME"
1670 _ACEOF
1671
1672
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675 _ACEOF
1676
1677
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1680 _ACEOF
1681
1682
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_STRING "$PACKAGE_STRING"
1685 _ACEOF
1686
1687
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690 _ACEOF
1691
1692
1693 # Let the site file select an alternate cache file if it wants to.
1694 # Prefer explicitly selected file to automatically selected ones.
1695 if test -n "$CONFIG_SITE"; then
1696   set x "$CONFIG_SITE"
1697 elif test "x$prefix" != xNONE; then
1698   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699 else
1700   set x "$ac_default_prefix/share/config.site" \
1701         "$ac_default_prefix/etc/config.site"
1702 fi
1703 shift
1704 for ac_site_file
1705 do
1706   if test -r "$ac_site_file"; then
1707     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 echo "$as_me: loading site script $ac_site_file" >&6;}
1709     sed 's/^/| /' "$ac_site_file" >&5
1710     . "$ac_site_file"
1711   fi
1712 done
1713
1714 if test -r "$cache_file"; then
1715   # Some versions of bash will fail to source /dev/null (special
1716   # files actually), so we avoid doing that.
1717   if test -f "$cache_file"; then
1718     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 echo "$as_me: loading cache $cache_file" >&6;}
1720     case $cache_file in
1721       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722       *)                      . "./$cache_file";;
1723     esac
1724   fi
1725 else
1726   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 echo "$as_me: creating cache $cache_file" >&6;}
1728   >$cache_file
1729 fi
1730
1731 # Check that the precious variables saved in the cache have kept the same
1732 # value.
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736   eval ac_new_set=\$ac_env_${ac_var}_set
1737   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738   eval ac_new_val=\$ac_env_${ac_var}_value
1739   case $ac_old_set,$ac_new_set in
1740     set,)
1741       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743       ac_cache_corrupted=: ;;
1744     ,set)
1745       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1746 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747       ac_cache_corrupted=: ;;
1748     ,);;
1749     *)
1750       if test "x$ac_old_val" != "x$ac_new_val"; then
1751         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1752 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1753         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1754 echo "$as_me:   former value:  $ac_old_val" >&2;}
1755         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1756 echo "$as_me:   current value: $ac_new_val" >&2;}
1757         ac_cache_corrupted=:
1758       fi;;
1759   esac
1760   # Pass precious variables to config.status.
1761   if test "$ac_new_set" = set; then
1762     case $ac_new_val in
1763     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1764     *) ac_arg=$ac_var=$ac_new_val ;;
1765     esac
1766     case " $ac_configure_args " in
1767       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1768       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769     esac
1770   fi
1771 done
1772 if $ac_cache_corrupted; then
1773   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1774 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1775   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1776 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1777    { (exit 1); exit 1; }; }
1778 fi
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804 ac_ext=c
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809
1810
1811
1812 ac_config_headers="$ac_config_headers include/config.h"
1813
1814 ac_aux_dir=
1815 for ac_dir in tools "$srcdir"/tools; do
1816   if test -f "$ac_dir/install-sh"; then
1817     ac_aux_dir=$ac_dir
1818     ac_install_sh="$ac_aux_dir/install-sh -c"
1819     break
1820   elif test -f "$ac_dir/install.sh"; then
1821     ac_aux_dir=$ac_dir
1822     ac_install_sh="$ac_aux_dir/install.sh -c"
1823     break
1824   elif test -f "$ac_dir/shtool"; then
1825     ac_aux_dir=$ac_dir
1826     ac_install_sh="$ac_aux_dir/shtool install -c"
1827     break
1828   fi
1829 done
1830 if test -z "$ac_aux_dir"; then
1831   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1832 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1833    { (exit 1); exit 1; }; }
1834 fi
1835
1836 # These three variables are undocumented and unsupported,
1837 # and are intended to be withdrawn in a future Autoconf release.
1838 # They can cause serious problems if a builder's source tree is in a directory
1839 # whose full name contains unusual characters.
1840 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1841 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1842 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1843
1844
1845
1846
1847 # Check whether --enable-win16 was given.
1848 if test "${enable_win16+set}" = set; then
1849   enableval=$enable_win16;
1850 fi
1851
1852 # Check whether --enable-win64 was given.
1853 if test "${enable_win64+set}" = set; then
1854   enableval=$enable_win64;
1855 fi
1856
1857
1858
1859 # Check whether --with-opengl was given.
1860 if test "${with_opengl+set}" = set; then
1861   withval=$with_opengl;
1862 fi
1863
1864
1865 # Check whether --with-curses was given.
1866 if test "${with_curses+set}" = set; then
1867   withval=$with_curses;
1868 fi
1869
1870
1871 # Check whether --with-wine-tools was given.
1872 if test "${with_wine_tools+set}" = set; then
1873   withval=$with_wine_tools;
1874 fi
1875
1876
1877 # Make sure we can run config.sub.
1878 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1879   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1880 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1881    { (exit 1); exit 1; }; }
1882
1883 { echo "$as_me:$LINENO: checking build system type" >&5
1884 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1885 if test "${ac_cv_build+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   ac_build_alias=$build_alias
1889 test "x$ac_build_alias" = x &&
1890   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1891 test "x$ac_build_alias" = x &&
1892   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1893 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1894    { (exit 1); exit 1; }; }
1895 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1896   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1897 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1898    { (exit 1); exit 1; }; }
1899
1900 fi
1901 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1902 echo "${ECHO_T}$ac_cv_build" >&6; }
1903 case $ac_cv_build in
1904 *-*-*) ;;
1905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1906 echo "$as_me: error: invalid value of canonical build" >&2;}
1907    { (exit 1); exit 1; }; };;
1908 esac
1909 build=$ac_cv_build
1910 ac_save_IFS=$IFS; IFS='-'
1911 set x $ac_cv_build
1912 shift
1913 build_cpu=$1
1914 build_vendor=$2
1915 shift; shift
1916 # Remember, the first character of IFS is used to create $*,
1917 # except with old shells:
1918 build_os=$*
1919 IFS=$ac_save_IFS
1920 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1921
1922
1923 { echo "$as_me:$LINENO: checking host system type" >&5
1924 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1925 if test "${ac_cv_host+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   if test "x$host_alias" = x; then
1929   ac_cv_host=$ac_cv_build
1930 else
1931   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1932     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 fi
1938 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1939 echo "${ECHO_T}$ac_cv_host" >&6; }
1940 case $ac_cv_host in
1941 *-*-*) ;;
1942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1943 echo "$as_me: error: invalid value of canonical host" >&2;}
1944    { (exit 1); exit 1; }; };;
1945 esac
1946 host=$ac_cv_host
1947 ac_save_IFS=$IFS; IFS='-'
1948 set x $ac_cv_host
1949 shift
1950 host_cpu=$1
1951 host_vendor=$2
1952 shift; shift
1953 # Remember, the first character of IFS is used to create $*,
1954 # except with old shells:
1955 host_os=$*
1956 IFS=$ac_save_IFS
1957 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1958
1959
1960 case $host in
1961   x86_64*linux*)
1962     if test "x$enable_win64" != "xyes"
1963     then
1964       test -n "$CC" || CC="gcc -m32"
1965       test -n "$LD" || LD="ld -m elf_i386"
1966       test -n "$AS" || AS="as --32"
1967       host_cpu="i386"
1968     fi
1969     ;;
1970 esac
1971
1972 case $host_cpu in
1973   *i[3456789]86*)
1974     if test "x$enable_win16" != "xno"
1975     then
1976       enable_win16="yes"
1977     fi
1978     ;;
1979 esac
1980
1981 WIN16_FILES="\$(WIN16_FILES)"
1982
1983 WIN16_INSTALL="\$(WIN16_INSTALL)"
1984
1985 if test "x$enable_win16" != "xyes"
1986 then
1987   WIN16_FILES=""
1988   WIN16_INSTALL=""
1989 fi
1990
1991
1992 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1993 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1994 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1995 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   cat >conftest.make <<\_ACEOF
1999 SHELL = /bin/sh
2000 all:
2001         @echo '@@@%%%=$(MAKE)=@@@%%%'
2002 _ACEOF
2003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2004 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2005   *@@@%%%=?*=@@@%%%*)
2006     eval ac_cv_prog_make_${ac_make}_set=yes;;
2007   *)
2008     eval ac_cv_prog_make_${ac_make}_set=no;;
2009 esac
2010 rm -f conftest.make
2011 fi
2012 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2013   { echo "$as_me:$LINENO: result: yes" >&5
2014 echo "${ECHO_T}yes" >&6; }
2015   SET_MAKE=
2016 else
2017   { echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6; }
2019   SET_MAKE="MAKE=${MAKE-make}"
2020 fi
2021
2022 ac_ext=c
2023 ac_cpp='$CPP $CPPFLAGS'
2024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027 if test -n "$ac_tool_prefix"; then
2028   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032 if test "${ac_cv_prog_CC+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$CC"; then
2036   ac_cv_prog_CC="$CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2045     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051 IFS=$as_save_IFS
2052
2053 fi
2054 fi
2055 CC=$ac_cv_prog_CC
2056 if test -n "$CC"; then
2057   { echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6; }
2059 else
2060   { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2062 fi
2063
2064
2065 fi
2066 if test -z "$ac_cv_prog_CC"; then
2067   ac_ct_CC=$CC
2068   # Extract the first word of "gcc", so it can be a program name with args.
2069 set dummy gcc; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   if test -n "$ac_ct_CC"; then
2076   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2085     ac_cv_prog_ac_ct_CC="gcc"
2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091 IFS=$as_save_IFS
2092
2093 fi
2094 fi
2095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096 if test -n "$ac_ct_CC"; then
2097   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098 echo "${ECHO_T}$ac_ct_CC" >&6; }
2099 else
2100   { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2102 fi
2103
2104   if test "x$ac_ct_CC" = x; then
2105     CC=""
2106   else
2107     case $cross_compiling:$ac_tool_warned in
2108 yes:)
2109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2110 whose name does not start with the host triplet.  If you think this
2111 configuration is useful to you, please write to autoconf@gnu.org." >&5
2112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2113 whose name does not start with the host triplet.  If you think this
2114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2115 ac_tool_warned=yes ;;
2116 esac
2117     CC=$ac_ct_CC
2118   fi
2119 else
2120   CC="$ac_cv_prog_CC"
2121 fi
2122
2123 if test -z "$CC"; then
2124           if test -n "$ac_tool_prefix"; then
2125     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2126 set dummy ${ac_tool_prefix}cc; ac_word=$2
2127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130   echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132   if test -n "$CC"; then
2133   ac_cv_prog_CC="$CC" # Let the user override the test.
2134 else
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138   IFS=$as_save_IFS
2139   test -z "$as_dir" && as_dir=.
2140   for ac_exec_ext in '' $ac_executable_extensions; do
2141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2142     ac_cv_prog_CC="${ac_tool_prefix}cc"
2143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144     break 2
2145   fi
2146 done
2147 done
2148 IFS=$as_save_IFS
2149
2150 fi
2151 fi
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154   { echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6; }
2156 else
2157   { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2159 fi
2160
2161
2162   fi
2163 fi
2164 if test -z "$CC"; then
2165   # Extract the first word of "cc", so it can be a program name with args.
2166 set dummy cc; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_CC+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   if test -n "$CC"; then
2173   ac_cv_prog_CC="$CC" # Let the user override the test.
2174 else
2175   ac_prog_rejected=no
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   for ac_exec_ext in '' $ac_executable_extensions; do
2182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2183     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2184        ac_prog_rejected=yes
2185        continue
2186      fi
2187     ac_cv_prog_CC="cc"
2188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189     break 2
2190   fi
2191 done
2192 done
2193 IFS=$as_save_IFS
2194
2195 if test $ac_prog_rejected = yes; then
2196   # We found a bogon in the path, so make sure we never use it.
2197   set dummy $ac_cv_prog_CC
2198   shift
2199   if test $# != 0; then
2200     # We chose a different compiler from the bogus one.
2201     # However, it has the same basename, so the bogon will be chosen
2202     # first if we set CC to just the basename; use the full file name.
2203     shift
2204     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2205   fi
2206 fi
2207 fi
2208 fi
2209 CC=$ac_cv_prog_CC
2210 if test -n "$CC"; then
2211   { echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6; }
2213 else
2214   { echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6; }
2216 fi
2217
2218
2219 fi
2220 if test -z "$CC"; then
2221   if test -n "$ac_tool_prefix"; then
2222   for ac_prog in cl.exe
2223   do
2224     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test -n "$CC"; then
2232   ac_cv_prog_CC="$CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237   IFS=$as_save_IFS
2238   test -z "$as_dir" && as_dir=.
2239   for ac_exec_ext in '' $ac_executable_extensions; do
2240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2241     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243     break 2
2244   fi
2245 done
2246 done
2247 IFS=$as_save_IFS
2248
2249 fi
2250 fi
2251 CC=$ac_cv_prog_CC
2252 if test -n "$CC"; then
2253   { echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6; }
2255 else
2256   { echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6; }
2258 fi
2259
2260
2261     test -n "$CC" && break
2262   done
2263 fi
2264 if test -z "$CC"; then
2265   ac_ct_CC=$CC
2266   for ac_prog in cl.exe
2267 do
2268   # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   if test -n "$ac_ct_CC"; then
2276   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2285     ac_cv_prog_ac_ct_CC="$ac_prog"
2286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287     break 2
2288   fi
2289 done
2290 done
2291 IFS=$as_save_IFS
2292
2293 fi
2294 fi
2295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296 if test -n "$ac_ct_CC"; then
2297   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2298 echo "${ECHO_T}$ac_ct_CC" >&6; }
2299 else
2300   { echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6; }
2302 fi
2303
2304
2305   test -n "$ac_ct_CC" && break
2306 done
2307
2308   if test "x$ac_ct_CC" = x; then
2309     CC=""
2310   else
2311     case $cross_compiling:$ac_tool_warned in
2312 yes:)
2313 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2314 whose name does not start with the host triplet.  If you think this
2315 configuration is useful to you, please write to autoconf@gnu.org." >&5
2316 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2317 whose name does not start with the host triplet.  If you think this
2318 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2319 ac_tool_warned=yes ;;
2320 esac
2321     CC=$ac_ct_CC
2322   fi
2323 fi
2324
2325 fi
2326
2327
2328 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: no acceptable C compiler found in \$PATH
2331 See \`config.log' for more details." >&2;}
2332    { (exit 1); exit 1; }; }
2333
2334 # Provide some information about the compiler.
2335 echo "$as_me:$LINENO: checking for C compiler version" >&5
2336 ac_compiler=`set X $ac_compile; echo $2`
2337 { (ac_try="$ac_compiler --version >&5"
2338 case "(($ac_try" in
2339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340   *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343   (eval "$ac_compiler --version >&5") 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }
2347 { (ac_try="$ac_compiler -v >&5"
2348 case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_compiler -v >&5") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }
2357 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }
2367
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374
2375 int
2376 main ()
2377 {
2378
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 ac_clean_files_save=$ac_clean_files
2384 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2385 # Try to create an executable without -o first, disregard a.out.
2386 # It will help us diagnose broken compilers, and finding out an intuition
2387 # of exeext.
2388 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2389 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2390 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2391 #
2392 # List of possible output files, starting from the most likely.
2393 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2394 # only as a last resort.  b.out is created by i960 compilers.
2395 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2396 #
2397 # The IRIX 6 linker writes into existing files which may not be
2398 # executable, retaining their permissions.  Remove them first so a
2399 # subsequent execution test works.
2400 ac_rmfiles=
2401 for ac_file in $ac_files
2402 do
2403   case $ac_file in
2404     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2405     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2406   esac
2407 done
2408 rm -f $ac_rmfiles
2409
2410 if { (ac_try="$ac_link_default"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416   (eval "$ac_link_default") 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; then
2420   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2421 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2422 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2423 # so that the user can short-circuit this test for compilers unknown to
2424 # Autoconf.
2425 for ac_file in $ac_files ''
2426 do
2427   test -f "$ac_file" || continue
2428   case $ac_file in
2429     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2430         ;;
2431     [ab].out )
2432         # We found the default executable, but exeext='' is most
2433         # certainly right.
2434         break;;
2435     *.* )
2436         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2437         then :; else
2438            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2439         fi
2440         # We set ac_cv_exeext here because the later test for it is not
2441         # safe: cross compilers may not add the suffix if given an `-o'
2442         # argument, so we may need to know it at that point already.
2443         # Even if this section looks crufty: it has the advantage of
2444         # actually working.
2445         break;;
2446     * )
2447         break;;
2448   esac
2449 done
2450 test "$ac_cv_exeext" = no && ac_cv_exeext=
2451
2452 else
2453   ac_file=''
2454 fi
2455
2456 { echo "$as_me:$LINENO: result: $ac_file" >&5
2457 echo "${ECHO_T}$ac_file" >&6; }
2458 if test -z "$ac_file"; then
2459   echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: C compiler cannot create executables
2465 See \`config.log' for more details." >&2;}
2466    { (exit 77); exit 77; }; }
2467 fi
2468
2469 ac_exeext=$ac_cv_exeext
2470
2471 # Check that the compiler produces executables we can run.  If not, either
2472 # the compiler is broken, or we cross compile.
2473 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2474 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2475 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2476 # If not cross compiling, check that we can run a simple program.
2477 if test "$cross_compiling" != yes; then
2478   if { ac_try='./$ac_file'
2479   { (case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484   (eval "$ac_try") 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488     cross_compiling=no
2489   else
2490     if test "$cross_compiling" = maybe; then
2491         cross_compiling=yes
2492     else
2493         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2494 If you meant to cross compile, use \`--host'.
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: cannot run C compiled programs.
2497 If you meant to cross compile, use \`--host'.
2498 See \`config.log' for more details." >&2;}
2499    { (exit 1); exit 1; }; }
2500     fi
2501   fi
2502 fi
2503 { echo "$as_me:$LINENO: result: yes" >&5
2504 echo "${ECHO_T}yes" >&6; }
2505
2506 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2507 ac_clean_files=$ac_clean_files_save
2508 # Check that the compiler produces executables we can run.  If not, either
2509 # the compiler is broken, or we cross compile.
2510 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2511 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2512 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2513 echo "${ECHO_T}$cross_compiling" >&6; }
2514
2515 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2516 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2517 if { (ac_try="$ac_link"
2518 case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_link") 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; then
2527   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2528 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2529 # work properly (i.e., refer to `conftest.exe'), while it won't with
2530 # `rm'.
2531 for ac_file in conftest.exe conftest conftest.*; do
2532   test -f "$ac_file" || continue
2533   case $ac_file in
2534     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2535     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2536           break;;
2537     * ) break;;
2538   esac
2539 done
2540 else
2541   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2542 See \`config.log' for more details." >&5
2543 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2544 See \`config.log' for more details." >&2;}
2545    { (exit 1); exit 1; }; }
2546 fi
2547
2548 rm -f conftest$ac_cv_exeext
2549 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2550 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2551
2552 rm -f conftest.$ac_ext
2553 EXEEXT=$ac_cv_exeext
2554 ac_exeext=$EXEEXT
2555 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2556 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2557 if test "${ac_cv_objext+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   cat >conftest.$ac_ext <<_ACEOF
2561 /* confdefs.h.  */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h.  */
2566
2567 int
2568 main ()
2569 {
2570
2571   ;
2572   return 0;
2573 }
2574 _ACEOF
2575 rm -f conftest.o conftest.obj
2576 if { (ac_try="$ac_compile"
2577 case "(($ac_try" in
2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579   *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582   (eval "$ac_compile") 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; then
2586   for ac_file in conftest.o conftest.obj conftest.*; do
2587   test -f "$ac_file" || continue;
2588   case $ac_file in
2589     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2590     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2591        break;;
2592   esac
2593 done
2594 else
2595   echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2597
2598 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2599 See \`config.log' for more details." >&5
2600 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2601 See \`config.log' for more details." >&2;}
2602    { (exit 1); exit 1; }; }
2603 fi
2604
2605 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2606 fi
2607 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2608 echo "${ECHO_T}$ac_cv_objext" >&6; }
2609 OBJEXT=$ac_cv_objext
2610 ac_objext=$OBJEXT
2611 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2612 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2613 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h.  */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h.  */
2622
2623 int
2624 main ()
2625 {
2626 #ifndef __GNUC__
2627        choke me
2628 #endif
2629
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 rm -f conftest.$ac_objext
2635 if { (ac_try="$ac_compile"
2636 case "(($ac_try" in
2637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638   *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641   (eval "$ac_compile") 2>conftest.er1
2642   ac_status=$?
2643   grep -v '^ *+' conftest.er1 >conftest.err
2644   rm -f conftest.er1
2645   cat conftest.err >&5
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } &&
2648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2649   { (case "(($ac_try" in
2650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651   *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654   (eval "$ac_try") 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); }; } &&
2658          { ac_try='test -s conftest.$ac_objext'
2659   { (case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_try") 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; }; then
2668   ac_compiler_gnu=yes
2669 else
2670   echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673         ac_compiler_gnu=no
2674 fi
2675
2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2678
2679 fi
2680 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2681 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2682 GCC=`test $ac_compiler_gnu = yes && echo yes`
2683 ac_test_CFLAGS=${CFLAGS+set}
2684 ac_save_CFLAGS=$CFLAGS
2685 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2686 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2687 if test "${ac_cv_prog_cc_g+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690   ac_save_c_werror_flag=$ac_c_werror_flag
2691    ac_c_werror_flag=yes
2692    ac_cv_prog_cc_g=no
2693    CFLAGS="-g"
2694    cat >conftest.$ac_ext <<_ACEOF
2695 /* confdefs.h.  */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h.  */
2700
2701 int
2702 main ()
2703 {
2704
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (ac_try="$ac_compile"
2711 case "(($ac_try" in
2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713   *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716   (eval "$ac_compile") 2>conftest.er1
2717   ac_status=$?
2718   grep -v '^ *+' conftest.er1 >conftest.err
2719   rm -f conftest.er1
2720   cat conftest.err >&5
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); } &&
2723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2724   { (case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_try") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; } &&
2733          { ac_try='test -s conftest.$ac_objext'
2734   { (case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739   (eval "$ac_try") 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; }; then
2743   ac_cv_prog_cc_g=yes
2744 else
2745   echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2747
2748         CFLAGS=""
2749       cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2755
2756 int
2757 main ()
2758 {
2759
2760   ;
2761   return 0;
2762 }
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (ac_try="$ac_compile"
2766 case "(($ac_try" in
2767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768   *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771   (eval "$ac_compile") 2>conftest.er1
2772   ac_status=$?
2773   grep -v '^ *+' conftest.er1 >conftest.err
2774   rm -f conftest.er1
2775   cat conftest.err >&5
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); } &&
2778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2779   { (case "(($ac_try" in
2780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781   *) ac_try_echo=$ac_try;;
2782 esac
2783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784   (eval "$ac_try") 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (case "(($ac_try" in
2790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791   *) ac_try_echo=$ac_try;;
2792 esac
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794   (eval "$ac_try") 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   :
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803         ac_c_werror_flag=$ac_save_c_werror_flag
2804          CFLAGS="-g"
2805          cat >conftest.$ac_ext <<_ACEOF
2806 /* confdefs.h.  */
2807 _ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h.  */
2811
2812 int
2813 main ()
2814 {
2815
2816   ;
2817   return 0;
2818 }
2819 _ACEOF
2820 rm -f conftest.$ac_objext
2821 if { (ac_try="$ac_compile"
2822 case "(($ac_try" in
2823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824   *) ac_try_echo=$ac_try;;
2825 esac
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827   (eval "$ac_compile") 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } &&
2834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2835   { (case "(($ac_try" in
2836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837   *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840   (eval "$ac_try") 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); }; } &&
2844          { ac_try='test -s conftest.$ac_objext'
2845   { (case "(($ac_try" in
2846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847   *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850   (eval "$ac_try") 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; }; then
2854   ac_cv_prog_cc_g=yes
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859
2860 fi
2861
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 fi
2864
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 fi
2867
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869    ac_c_werror_flag=$ac_save_c_werror_flag
2870 fi
2871 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2873 if test "$ac_test_CFLAGS" = set; then
2874   CFLAGS=$ac_save_CFLAGS
2875 elif test $ac_cv_prog_cc_g = yes; then
2876   if test "$GCC" = yes; then
2877     CFLAGS="-g -O2"
2878   else
2879     CFLAGS="-g"
2880   fi
2881 else
2882   if test "$GCC" = yes; then
2883     CFLAGS="-O2"
2884   else
2885     CFLAGS=
2886   fi
2887 fi
2888 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2889 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2890 if test "${ac_cv_prog_cc_c89+set}" = set; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893   ac_cv_prog_cc_c89=no
2894 ac_save_CC=$CC
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h.  */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h.  */
2901 #include <stdarg.h>
2902 #include <stdio.h>
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2909      char **p;
2910      int i;
2911 {
2912   return p[i];
2913 }
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2915 {
2916   char *s;
2917   va_list v;
2918   va_start (v,p);
2919   s = g (p, va_arg (v,int));
2920   va_end (v);
2921   return s;
2922 }
2923
2924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2925    function prototypes and stuff, but not '\xHH' hex character constants.
2926    These don't provoke an error unfortunately, instead are silently treated
2927    as 'x'.  The following induces an error, until -std is added to get
2928    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2929    array size at least.  It's necessary to write '\x00'==0 to get something
2930    that's true only with -std.  */
2931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2932
2933 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2934    inside strings and character constants.  */
2935 #define FOO(x) 'x'
2936 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2937
2938 int test (int i, double x);
2939 struct s1 {int (*f) (int a);};
2940 struct s2 {int (*f) (double a);};
2941 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2942 int argc;
2943 char **argv;
2944 int
2945 main ()
2946 {
2947 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2953         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2954 do
2955   CC="$ac_save_CC $ac_arg"
2956   rm -f conftest.$ac_objext
2957 if { (ac_try="$ac_compile"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_compile") 2>conftest.er1
2964   ac_status=$?
2965   grep -v '^ *+' conftest.er1 >conftest.err
2966   rm -f conftest.er1
2967   cat conftest.err >&5
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); } &&
2970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2971   { (case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_try") 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; } &&
2980          { ac_try='test -s conftest.$ac_objext'
2981   { (case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_try") 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; }; then
2990   ac_cv_prog_cc_c89=$ac_arg
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995
2996 fi
2997
2998 rm -f core conftest.err conftest.$ac_objext
2999   test "x$ac_cv_prog_cc_c89" != "xno" && break
3000 done
3001 rm -f conftest.$ac_ext
3002 CC=$ac_save_CC
3003
3004 fi
3005 # AC_CACHE_VAL
3006 case "x$ac_cv_prog_cc_c89" in
3007   x)
3008     { echo "$as_me:$LINENO: result: none needed" >&5
3009 echo "${ECHO_T}none needed" >&6; } ;;
3010   xno)
3011     { echo "$as_me:$LINENO: result: unsupported" >&5
3012 echo "${ECHO_T}unsupported" >&6; } ;;
3013   *)
3014     CC="$CC $ac_cv_prog_cc_c89"
3015     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3016 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3017 esac
3018
3019
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025
3026 ac_ext=cpp
3027 ac_cpp='$CXXCPP $CPPFLAGS'
3028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3031 if test -z "$CXX"; then
3032   if test -n "$CCC"; then
3033     CXX=$CCC
3034   else
3035     if test -n "$ac_tool_prefix"; then
3036   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3037   do
3038     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3042 if test "${ac_cv_prog_CXX+set}" = set; then
3043   echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045   if test -n "$CXX"; then
3046   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051   IFS=$as_save_IFS
3052   test -z "$as_dir" && as_dir=.
3053   for ac_exec_ext in '' $ac_executable_extensions; do
3054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3055     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057     break 2
3058   fi
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 CXX=$ac_cv_prog_CXX
3066 if test -n "$CXX"; then
3067   { echo "$as_me:$LINENO: result: $CXX" >&5
3068 echo "${ECHO_T}$CXX" >&6; }
3069 else
3070   { echo "$as_me:$LINENO: result: no" >&5
3071 echo "${ECHO_T}no" >&6; }
3072 fi
3073
3074
3075     test -n "$CXX" && break
3076   done
3077 fi
3078 if test -z "$CXX"; then
3079   ac_ct_CXX=$CXX
3080   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3081 do
3082   # Extract the first word of "$ac_prog", so it can be a program name with args.
3083 set dummy $ac_prog; ac_word=$2
3084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3087   echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089   if test -n "$ac_ct_CXX"; then
3090   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095   IFS=$as_save_IFS
3096   test -z "$as_dir" && as_dir=.
3097   for ac_exec_ext in '' $ac_executable_extensions; do
3098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3099     ac_cv_prog_ac_ct_CXX="$ac_prog"
3100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101     break 2
3102   fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3110 if test -n "$ac_ct_CXX"; then
3111   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3112 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3113 else
3114   { echo "$as_me:$LINENO: result: no" >&5
3115 echo "${ECHO_T}no" >&6; }
3116 fi
3117
3118
3119   test -n "$ac_ct_CXX" && break
3120 done
3121
3122   if test "x$ac_ct_CXX" = x; then
3123     CXX="g++"
3124   else
3125     case $cross_compiling:$ac_tool_warned in
3126 yes:)
3127 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3128 whose name does not start with the host triplet.  If you think this
3129 configuration is useful to you, please write to autoconf@gnu.org." >&5
3130 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3131 whose name does not start with the host triplet.  If you think this
3132 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3133 ac_tool_warned=yes ;;
3134 esac
3135     CXX=$ac_ct_CXX
3136   fi
3137 fi
3138
3139   fi
3140 fi
3141 # Provide some information about the compiler.
3142 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3143 ac_compiler=`set X $ac_compile; echo $2`
3144 { (ac_try="$ac_compiler --version >&5"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_compiler --version >&5") 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }
3154 { (ac_try="$ac_compiler -v >&5"
3155 case "(($ac_try" in
3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157   *) ac_try_echo=$ac_try;;
3158 esac
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160   (eval "$ac_compiler -v >&5") 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }
3164 { (ac_try="$ac_compiler -V >&5"
3165 case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170   (eval "$ac_compiler -V >&5") 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }
3174
3175 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3176 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3177 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186
3187 int
3188 main ()
3189 {
3190 #ifndef __GNUC__
3191        choke me
3192 #endif
3193
3194   ;
3195   return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_compile") 2>conftest.er1
3206   ac_status=$?
3207   grep -v '^ *+' conftest.er1 >conftest.err
3208   rm -f conftest.er1
3209   cat conftest.err >&5
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); } &&
3212          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3213   { (case "(($ac_try" in
3214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215   *) ac_try_echo=$ac_try;;
3216 esac
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218   (eval "$ac_try") 2>&5
3219   ac_status=$?
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); }; } &&
3222          { ac_try='test -s conftest.$ac_objext'
3223   { (case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228   (eval "$ac_try") 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); }; }; then
3232   ac_compiler_gnu=yes
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237         ac_compiler_gnu=no
3238 fi
3239
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3242
3243 fi
3244 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3245 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3246 GXX=`test $ac_compiler_gnu = yes && echo yes`
3247 ac_test_CXXFLAGS=${CXXFLAGS+set}
3248 ac_save_CXXFLAGS=$CXXFLAGS
3249 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3250 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cxx_g+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3255    ac_cxx_werror_flag=yes
3256    ac_cv_prog_cxx_g=no
3257    CXXFLAGS="-g"
3258    cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_compile") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } &&
3287          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3288   { (case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_try") 2>&5
3294   ac_status=$?
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); }; } &&
3297          { ac_try='test -s conftest.$ac_objext'
3298   { (case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303   (eval "$ac_try") 2>&5
3304   ac_status=$?
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); }; }; then
3307   ac_cv_prog_cxx_g=yes
3308 else
3309   echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312         CXXFLAGS=""
3313       cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h.  */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h.  */
3319
3320 int
3321 main ()
3322 {
3323
3324   ;
3325   return 0;
3326 }
3327 _ACEOF
3328 rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3330 case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335   (eval "$ac_compile") 2>conftest.er1
3336   ac_status=$?
3337   grep -v '^ *+' conftest.er1 >conftest.err
3338   rm -f conftest.er1
3339   cat conftest.err >&5
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); } &&
3342          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3343   { (case "(($ac_try" in
3344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345   *) ac_try_echo=$ac_try;;
3346 esac
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348   (eval "$ac_try") 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; } &&
3352          { ac_try='test -s conftest.$ac_objext'
3353   { (case "(($ac_try" in
3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355   *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358   (eval "$ac_try") 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; }; then
3362   :
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3368          CXXFLAGS="-g"
3369          cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391   (eval "$ac_compile") 2>conftest.er1
3392   ac_status=$?
3393   grep -v '^ *+' conftest.er1 >conftest.err
3394   rm -f conftest.er1
3395   cat conftest.err >&5
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); } &&
3398          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3399   { (case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_try") 2>&5
3405   ac_status=$?
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); }; } &&
3408          { ac_try='test -s conftest.$ac_objext'
3409   { (case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414   (eval "$ac_try") 2>&5
3415   ac_status=$?
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); }; }; then
3418   ac_cv_prog_cxx_g=yes
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423
3424 fi
3425
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 fi
3428
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3434 fi
3435 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3436 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3437 if test "$ac_test_CXXFLAGS" = set; then
3438   CXXFLAGS=$ac_save_CXXFLAGS
3439 elif test $ac_cv_prog_cxx_g = yes; then
3440   if test "$GXX" = yes; then
3441     CXXFLAGS="-g -O2"
3442   else
3443     CXXFLAGS="-g"
3444   fi
3445 else
3446   if test "$GXX" = yes; then
3447     CXXFLAGS="-O2"
3448   else
3449     CXXFLAGS=
3450   fi
3451 fi
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
3458 if test -n "$ac_tool_prefix"; then
3459   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3463 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   if test -n "$CPPBIN"; then
3467   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474   for ac_exec_ext in '' $ac_executable_extensions; do
3475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3476     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478     break 2
3479   fi
3480 done
3481 done
3482 IFS=$as_save_IFS
3483
3484 fi
3485 fi
3486 CPPBIN=$ac_cv_prog_CPPBIN
3487 if test -n "$CPPBIN"; then
3488   { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3489 echo "${ECHO_T}$CPPBIN" >&6; }
3490 else
3491   { echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6; }
3493 fi
3494
3495
3496 fi
3497 if test -z "$ac_cv_prog_CPPBIN"; then
3498   ac_ct_CPPBIN=$CPPBIN
3499   # Extract the first word of "cpp", so it can be a program name with args.
3500 set dummy cpp; ac_word=$2
3501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3503 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   if test -n "$ac_ct_CPPBIN"; then
3507   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514   for ac_exec_ext in '' $ac_executable_extensions; do
3515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3516     ac_cv_prog_ac_ct_CPPBIN="cpp"
3517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521 done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3527 if test -n "$ac_ct_CPPBIN"; then
3528   { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3529 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3530 else
3531   { echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6; }
3533 fi
3534
3535   if test "x$ac_ct_CPPBIN" = x; then
3536     CPPBIN="cpp"
3537   else
3538     case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3541 whose name does not start with the host triplet.  If you think this
3542 configuration is useful to you, please write to autoconf@gnu.org." >&5
3543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3544 whose name does not start with the host triplet.  If you think this
3545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3546 ac_tool_warned=yes ;;
3547 esac
3548     CPPBIN=$ac_ct_CPPBIN
3549   fi
3550 else
3551   CPPBIN="$ac_cv_prog_CPPBIN"
3552 fi
3553
3554
3555 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3556 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3557 if test "${wine_cv_toolsdir+set}" = set; then
3558   echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560   if test -z "$with_wine_tools"; then
3561      if test "$cross_compiling" = "yes"; then
3562        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3563 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3564    { (exit 1); exit 1; }; }
3565      else
3566        wine_cv_toolsdir="\$(TOPOBJDIR)"
3567      fi
3568    elif test -d "$with_wine_tools/tools/winebuild"; then
3569      case $with_wine_tools in
3570        /*) wine_cv_toolsdir="$with_wine_tools" ;;
3571        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3572      esac
3573    else
3574      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3575 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3576    { (exit 1); exit 1; }; }
3577    fi
3578 fi
3579 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3580 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3581 TOOLSDIR=$wine_cv_toolsdir
3582
3583
3584
3585 ac_ext=c
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3591 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3592 # On Suns, sometimes $CPP names a directory.
3593 if test -n "$CPP" && test -d "$CPP"; then
3594   CPP=
3595 fi
3596 if test -z "$CPP"; then
3597   if test "${ac_cv_prog_CPP+set}" = set; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600       # Double quotes because CPP needs to be expanded
3601     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3602     do
3603       ac_preproc_ok=false
3604 for ac_c_preproc_warn_flag in '' yes
3605 do
3606   # Use a header file that comes with gcc, so configuring glibc
3607   # with a fresh cross-compiler works.
3608   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3609   # <limits.h> exists even on freestanding compilers.
3610   # On the NeXT, cc -E runs the code through the compiler's parser,
3611   # not just through cpp. "Syntax error" is here to catch this case.
3612   cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h.  */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h.  */
3618 #ifdef __STDC__
3619 # include <limits.h>
3620 #else
3621 # include <assert.h>
3622 #endif
3623                      Syntax error
3624 _ACEOF
3625 if { (ac_try="$ac_cpp conftest.$ac_ext"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3632   ac_status=$?
3633   grep -v '^ *+' conftest.er1 >conftest.err
3634   rm -f conftest.er1
3635   cat conftest.err >&5
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); } >/dev/null; then
3638   if test -s conftest.err; then
3639     ac_cpp_err=$ac_c_preproc_warn_flag
3640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3641   else
3642     ac_cpp_err=
3643   fi
3644 else
3645   ac_cpp_err=yes
3646 fi
3647 if test -z "$ac_cpp_err"; then
3648   :
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653   # Broken: fails on valid input.
3654 continue
3655 fi
3656
3657 rm -f conftest.err conftest.$ac_ext
3658
3659   # OK, works on sane cases.  Now check whether nonexistent headers
3660   # can be detected and how.
3661   cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #include <ac_nonexistent.h>
3668 _ACEOF
3669 if { (ac_try="$ac_cpp conftest.$ac_ext"
3670 case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } >/dev/null; then
3682   if test -s conftest.err; then
3683     ac_cpp_err=$ac_c_preproc_warn_flag
3684     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3685   else
3686     ac_cpp_err=
3687   fi
3688 else
3689   ac_cpp_err=yes
3690 fi
3691 if test -z "$ac_cpp_err"; then
3692   # Broken: success on invalid input.
3693 continue
3694 else
3695   echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698   # Passes both tests.
3699 ac_preproc_ok=:
3700 break
3701 fi
3702
3703 rm -f conftest.err conftest.$ac_ext
3704
3705 done
3706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3707 rm -f conftest.err conftest.$ac_ext
3708 if $ac_preproc_ok; then
3709   break
3710 fi
3711
3712     done
3713     ac_cv_prog_CPP=$CPP
3714
3715 fi
3716   CPP=$ac_cv_prog_CPP
3717 else
3718   ac_cv_prog_CPP=$CPP
3719 fi
3720 { echo "$as_me:$LINENO: result: $CPP" >&5
3721 echo "${ECHO_T}$CPP" >&6; }
3722 ac_preproc_ok=false
3723 for ac_c_preproc_warn_flag in '' yes
3724 do
3725   # Use a header file that comes with gcc, so configuring glibc
3726   # with a fresh cross-compiler works.
3727   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3728   # <limits.h> exists even on freestanding compilers.
3729   # On the NeXT, cc -E runs the code through the compiler's parser,
3730   # not just through cpp. "Syntax error" is here to catch this case.
3731   cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h.  */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h.  */
3737 #ifdef __STDC__
3738 # include <limits.h>
3739 #else
3740 # include <assert.h>
3741 #endif
3742                      Syntax error
3743 _ACEOF
3744 if { (ac_try="$ac_cpp conftest.$ac_ext"
3745 case "(($ac_try" in
3746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747   *) ac_try_echo=$ac_try;;
3748 esac
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3751   ac_status=$?
3752   grep -v '^ *+' conftest.er1 >conftest.err
3753   rm -f conftest.er1
3754   cat conftest.err >&5
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); } >/dev/null; then
3757   if test -s conftest.err; then
3758     ac_cpp_err=$ac_c_preproc_warn_flag
3759     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3760   else
3761     ac_cpp_err=
3762   fi
3763 else
3764   ac_cpp_err=yes
3765 fi
3766 if test -z "$ac_cpp_err"; then
3767   :
3768 else
3769   echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772   # Broken: fails on valid input.
3773 continue
3774 fi
3775
3776 rm -f conftest.err conftest.$ac_ext
3777
3778   # OK, works on sane cases.  Now check whether nonexistent headers
3779   # can be detected and how.
3780   cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h.  */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h.  */
3786 #include <ac_nonexistent.h>
3787 _ACEOF
3788 if { (ac_try="$ac_cpp conftest.$ac_ext"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } >/dev/null; then
3801   if test -s conftest.err; then
3802     ac_cpp_err=$ac_c_preproc_warn_flag
3803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3804   else
3805     ac_cpp_err=
3806   fi
3807 else
3808   ac_cpp_err=yes
3809 fi
3810 if test -z "$ac_cpp_err"; then
3811   # Broken: success on invalid input.
3812 continue
3813 else
3814   echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817   # Passes both tests.
3818 ac_preproc_ok=:
3819 break
3820 fi
3821
3822 rm -f conftest.err conftest.$ac_ext
3823
3824 done
3825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3826 rm -f conftest.err conftest.$ac_ext
3827 if $ac_preproc_ok; then
3828   :
3829 else
3830   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3831 See \`config.log' for more details." >&5
3832 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3833 See \`config.log' for more details." >&2;}
3834    { (exit 1); exit 1; }; }
3835 fi
3836
3837 ac_ext=c
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
3843
3844 { echo "$as_me:$LINENO: checking for X" >&5
3845 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3846
3847
3848 # Check whether --with-x was given.
3849 if test "${with_x+set}" = set; then
3850   withval=$with_x;
3851 fi
3852
3853 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3854 if test "x$with_x" = xno; then
3855   # The user explicitly disabled X.
3856   have_x=disabled
3857 else
3858   case $x_includes,$x_libraries in #(
3859     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3860 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3861    { (exit 1); exit 1; }; };; #(
3862     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   # One or both of the vars are not set, and there is no cached value.
3866 ac_x_includes=no ac_x_libraries=no
3867 rm -f -r conftest.dir
3868 if mkdir conftest.dir; then
3869   cd conftest.dir
3870   cat >Imakefile <<'_ACEOF'
3871 incroot:
3872         @echo incroot='${INCROOT}'
3873 usrlibdir:
3874         @echo usrlibdir='${USRLIBDIR}'
3875 libdir:
3876         @echo libdir='${LIBDIR}'
3877 _ACEOF
3878   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3879     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3880     for ac_var in incroot usrlibdir libdir; do
3881       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3882     done
3883     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3884     for ac_extension in a so sl; do
3885       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3886          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3887         ac_im_usrlibdir=$ac_im_libdir; break
3888       fi
3889     done
3890     # Screen out bogus values from the imake configuration.  They are
3891     # bogus both because they are the default anyway, and because
3892     # using them would break gcc on systems where it needs fixed includes.
3893     case $ac_im_incroot in
3894         /usr/include) ac_x_includes= ;;
3895         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3896     esac
3897     case $ac_im_usrlibdir in
3898         /usr/lib | /lib) ;;
3899         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3900     esac
3901   fi
3902   cd ..
3903   rm -f -r conftest.dir
3904 fi
3905
3906 # Standard set of common directories for X headers.
3907 # Check X11 before X11Rn because it is often a symlink to the current release.
3908 ac_x_header_dirs='
3909 /usr/X11/include
3910 /usr/X11R6/include
3911 /usr/X11R5/include
3912 /usr/X11R4/include
3913
3914 /usr/include/X11
3915 /usr/include/X11R6
3916 /usr/include/X11R5
3917 /usr/include/X11R4
3918
3919 /usr/local/X11/include
3920 /usr/local/X11R6/include
3921 /usr/local/X11R5/include
3922 /usr/local/X11R4/include
3923
3924 /usr/local/include/X11
3925 /usr/local/include/X11R6
3926 /usr/local/include/X11R5
3927 /usr/local/include/X11R4
3928
3929 /usr/X386/include
3930 /usr/x386/include
3931 /usr/XFree86/include/X11
3932
3933 /usr/include
3934 /usr/local/include
3935 /usr/unsupported/include
3936 /usr/athena/include
3937 /usr/local/x11r5/include
3938 /usr/lpp/Xamples/include
3939
3940 /usr/openwin/include
3941 /usr/openwin/share/include'
3942
3943 if test "$ac_x_includes" = no; then
3944   # Guess where to find include files, by looking for Xlib.h.
3945   # First, try using that file with no special directory specified.
3946   cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h.  */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h.  */
3952 #include <X11/Xlib.h>
3953 _ACEOF
3954 if { (ac_try="$ac_cpp conftest.$ac_ext"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3961   ac_status=$?
3962   grep -v '^ *+' conftest.er1 >conftest.err
3963   rm -f conftest.er1
3964   cat conftest.err >&5
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); } >/dev/null; then
3967   if test -s conftest.err; then
3968     ac_cpp_err=$ac_c_preproc_warn_flag
3969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3970   else
3971     ac_cpp_err=
3972   fi
3973 else
3974   ac_cpp_err=yes
3975 fi
3976 if test -z "$ac_cpp_err"; then
3977   # We can compile using X headers with no special include directory.
3978 ac_x_includes=
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983   for ac_dir in $ac_x_header_dirs; do
3984   if test -r "$ac_dir/X11/Xlib.h"; then
3985     ac_x_includes=$ac_dir
3986     break
3987   fi
3988 done
3989 fi
3990
3991 rm -f conftest.err conftest.$ac_ext
3992 fi # $ac_x_includes = no
3993
3994 if test "$ac_x_libraries" = no; then
3995   # Check for the libraries.
3996   # See if we find them without any special options.
3997   # Don't add to $LIBS permanently.
3998   ac_save_LIBS=$LIBS
3999   LIBS="-lX11 $LIBS"
4000   cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h.  */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h.  */
4006 #include <X11/Xlib.h>
4007 int
4008 main ()
4009 {
4010 XrmInitialize ()
4011   ;
4012   return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.$ac_objext conftest$ac_exeext
4016 if { (ac_try="$ac_link"
4017 case "(($ac_try" in
4018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019   *) ac_try_echo=$ac_try;;
4020 esac
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022   (eval "$ac_link") 2>conftest.er1
4023   ac_status=$?
4024   grep -v '^ *+' conftest.er1 >conftest.err
4025   rm -f conftest.er1
4026   cat conftest.err >&5
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); } &&
4029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4030   { (case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035   (eval "$ac_try") 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); }; } &&
4039          { ac_try='test -s conftest$ac_exeext'
4040   { (case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045   (eval "$ac_try") 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; }; then
4049   LIBS=$ac_save_LIBS
4050 # We can link X programs with no special library path.
4051 ac_x_libraries=
4052 else
4053   echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4055
4056         LIBS=$ac_save_LIBS
4057 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4058 do
4059   # Don't even attempt the hair of trying to link an X program!
4060   for ac_extension in a so sl; do
4061     if test -r "$ac_dir/libX11.$ac_extension"; then
4062       ac_x_libraries=$ac_dir
4063       break 2
4064     fi
4065   done
4066 done
4067 fi
4068
4069 rm -f core conftest.err conftest.$ac_objext \
4070       conftest$ac_exeext conftest.$ac_ext
4071 fi # $ac_x_libraries = no
4072
4073 case $ac_x_includes,$ac_x_libraries in #(
4074   no,* | *,no | *\'*)
4075     # Didn't find X, or a directory has "'" in its name.
4076     ac_cv_have_x="have_x=no";; #(
4077   *)
4078     # Record where we found X for the cache.
4079     ac_cv_have_x="have_x=yes\
4080         ac_x_includes='$ac_x_includes'\
4081         ac_x_libraries='$ac_x_libraries'"
4082 esac
4083 fi
4084 ;; #(
4085     *) have_x=yes;;
4086   esac
4087   eval "$ac_cv_have_x"
4088 fi # $with_x != no
4089
4090 if test "$have_x" != yes; then
4091   { echo "$as_me:$LINENO: result: $have_x" >&5
4092 echo "${ECHO_T}$have_x" >&6; }
4093   no_x=yes
4094 else
4095   # If each of the values was on the command line, it overrides each guess.
4096   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4097   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4098   # Update the cache value to reflect the command line values.
4099   ac_cv_have_x="have_x=yes\
4100         ac_x_includes='$x_includes'\
4101         ac_x_libraries='$x_libraries'"
4102   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4103 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4104 fi
4105
4106 if test "$no_x" = yes; then
4107   # Not all programs may use this symbol, but it does not hurt to define it.
4108
4109 cat >>confdefs.h <<\_ACEOF
4110 #define X_DISPLAY_MISSING 1
4111 _ACEOF
4112
4113   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4114 else
4115   if test -n "$x_includes"; then
4116     X_CFLAGS="$X_CFLAGS -I$x_includes"
4117   fi
4118
4119   # It would also be nice to do this for all -L options, not just this one.
4120   if test -n "$x_libraries"; then
4121     X_LIBS="$X_LIBS -L$x_libraries"
4122     # For Solaris; some versions of Sun CC require a space after -R and
4123     # others require no space.  Words are not sufficient . . . .
4124     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4125 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4126     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4127     ac_xsave_c_werror_flag=$ac_c_werror_flag
4128     ac_c_werror_flag=yes
4129     cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135
4136 int
4137 main ()
4138 {
4139
4140   ;
4141   return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest.$ac_objext conftest$ac_exeext
4145 if { (ac_try="$ac_link"
4146 case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151   (eval "$ac_link") 2>conftest.er1
4152   ac_status=$?
4153   grep -v '^ *+' conftest.er1 >conftest.err
4154   rm -f conftest.er1
4155   cat conftest.err >&5
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); } &&
4158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4159   { (case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_try") 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; } &&
4168          { ac_try='test -s conftest$ac_exeext'
4169   { (case "(($ac_try" in
4170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171   *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174   (eval "$ac_try") 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; }; then
4178   { echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6; }
4180        X_LIBS="$X_LIBS -R$x_libraries"
4181 else
4182   echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4184
4185         LIBS="$ac_xsave_LIBS -R $x_libraries"
4186        cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192
4193 int
4194 main ()
4195 {
4196
4197   ;
4198   return 0;
4199 }
4200 _ACEOF
4201 rm -f conftest.$ac_objext conftest$ac_exeext
4202 if { (ac_try="$ac_link"
4203 case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_link") 2>conftest.er1
4209   ac_status=$?
4210   grep -v '^ *+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } &&
4215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4216   { (case "(($ac_try" in
4217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218   *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221   (eval "$ac_try") 2>&5
4222   ac_status=$?
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); }; } &&
4225          { ac_try='test -s conftest$ac_exeext'
4226   { (case "(($ac_try" in
4227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228   *) ac_try_echo=$ac_try;;
4229 esac
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231   (eval "$ac_try") 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; }; then
4235   { echo "$as_me:$LINENO: result: yes" >&5
4236 echo "${ECHO_T}yes" >&6; }
4237           X_LIBS="$X_LIBS -R $x_libraries"
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242         { echo "$as_me:$LINENO: result: neither works" >&5
4243 echo "${ECHO_T}neither works" >&6; }
4244 fi
4245
4246 rm -f core conftest.err conftest.$ac_objext \
4247       conftest$ac_exeext conftest.$ac_ext
4248 fi
4249
4250 rm -f core conftest.err conftest.$ac_objext \
4251       conftest$ac_exeext conftest.$ac_ext
4252     ac_c_werror_flag=$ac_xsave_c_werror_flag
4253     LIBS=$ac_xsave_LIBS
4254   fi
4255
4256   # Check for system-dependent libraries X programs must link with.
4257   # Do this before checking for the system-independent R6 libraries
4258   # (-lICE), since we may need -lsocket or whatever for X linking.
4259
4260   if test "$ISC" = yes; then
4261     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4262   else
4263     # Martyn Johnson says this is needed for Ultrix, if the X
4264     # libraries were built with DECnet support.  And Karl Berry says
4265     # the Alpha needs dnet_stub (dnet does not exist).
4266     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4267     cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273
4274 /* Override any GCC internal prototype to avoid an error.
4275    Use char because int might match the return type of a GCC
4276    builtin and then its argument prototype would still apply.  */
4277 #ifdef __cplusplus
4278 extern "C"
4279 #endif
4280 char XOpenDisplay ();
4281 int
4282 main ()
4283 {
4284 return XOpenDisplay ();
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 rm -f conftest.$ac_objext conftest$ac_exeext
4290 if { (ac_try="$ac_link"
4291 case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296   (eval "$ac_link") 2>conftest.er1
4297   ac_status=$?
4298   grep -v '^ *+' conftest.er1 >conftest.err
4299   rm -f conftest.er1
4300   cat conftest.err >&5
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); } &&
4303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4304   { (case "(($ac_try" in
4305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306   *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309   (eval "$ac_try") 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; } &&
4313          { ac_try='test -s conftest$ac_exeext'
4314   { (case "(($ac_try" in
4315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316   *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319   (eval "$ac_try") 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; }; then
4323   :
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4329 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4330 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   ac_check_lib_save_LIBS=$LIBS
4334 LIBS="-ldnet  $LIBS"
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341
4342 /* Override any GCC internal prototype to avoid an error.
4343    Use char because int might match the return type of a GCC
4344    builtin and then its argument prototype would still apply.  */
4345 #ifdef __cplusplus
4346 extern "C"
4347 #endif
4348 char dnet_ntoa ();
4349 int
4350 main ()
4351 {
4352 return dnet_ntoa ();
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 rm -f conftest.$ac_objext conftest$ac_exeext
4358 if { (ac_try="$ac_link"
4359 case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364   (eval "$ac_link") 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } &&
4371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4372   { (case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377   (eval "$ac_try") 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; } &&
4381          { ac_try='test -s conftest$ac_exeext'
4382   { (case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387   (eval "$ac_try") 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; }; then
4391   ac_cv_lib_dnet_dnet_ntoa=yes
4392 else
4393   echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396         ac_cv_lib_dnet_dnet_ntoa=no
4397 fi
4398
4399 rm -f core conftest.err conftest.$ac_objext \
4400       conftest$ac_exeext conftest.$ac_ext
4401 LIBS=$ac_check_lib_save_LIBS
4402 fi
4403 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4404 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4405 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4406   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4407 fi
4408
4409     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4410       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4411 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4412 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   ac_check_lib_save_LIBS=$LIBS
4416 LIBS="-ldnet_stub  $LIBS"
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h.  */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h.  */
4423
4424 /* Override any GCC internal prototype to avoid an error.
4425    Use char because int might match the return type of a GCC
4426    builtin and then its argument prototype would still apply.  */
4427 #ifdef __cplusplus
4428 extern "C"
4429 #endif
4430 char dnet_ntoa ();
4431 int
4432 main ()
4433 {
4434 return dnet_ntoa ();
4435   ;
4436   return 0;
4437 }
4438 _ACEOF
4439 rm -f conftest.$ac_objext conftest$ac_exeext
4440 if { (ac_try="$ac_link"
4441 case "(($ac_try" in
4442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443   *) ac_try_echo=$ac_try;;
4444 esac
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446   (eval "$ac_link") 2>conftest.er1
4447   ac_status=$?
4448   grep -v '^ *+' conftest.er1 >conftest.err
4449   rm -f conftest.er1
4450   cat conftest.err >&5
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); } &&
4453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4454   { (case "(($ac_try" in
4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456   *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459   (eval "$ac_try") 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }; } &&
4463          { ac_try='test -s conftest$ac_exeext'
4464   { (case "(($ac_try" in
4465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466   *) ac_try_echo=$ac_try;;
4467 esac
4468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469   (eval "$ac_try") 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; }; then
4473   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478         ac_cv_lib_dnet_stub_dnet_ntoa=no
4479 fi
4480
4481 rm -f core conftest.err conftest.$ac_objext \
4482       conftest$ac_exeext conftest.$ac_ext
4483 LIBS=$ac_check_lib_save_LIBS
4484 fi
4485 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4486 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4487 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4488   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4489 fi
4490
4491     fi
4492 fi
4493
4494 rm -f core conftest.err conftest.$ac_objext \
4495       conftest$ac_exeext conftest.$ac_ext
4496     LIBS="$ac_xsave_LIBS"
4497
4498     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4499     # to get the SysV transport functions.
4500     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4501     # needs -lnsl.
4502     # The nsl library prevents programs from opening the X display
4503     # on Irix 5.2, according to T.E. Dickey.
4504     # The functions gethostbyname, getservbyname, and inet_addr are
4505     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4506     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4507 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4508 if test "${ac_cv_func_gethostbyname+set}" = set; then
4509   echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511   cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h.  */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h.  */
4517 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4519 #define gethostbyname innocuous_gethostbyname
4520
4521 /* System header to define __stub macros and hopefully few prototypes,
4522     which can conflict with char gethostbyname (); below.
4523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4524     <limits.h> exists even on freestanding compilers.  */
4525
4526 #ifdef __STDC__
4527 # include <limits.h>
4528 #else
4529 # include <assert.h>
4530 #endif
4531
4532 #undef gethostbyname
4533
4534 /* Override any GCC internal prototype to avoid an error.
4535    Use char because int might match the return type of a GCC
4536    builtin and then its argument prototype would still apply.  */
4537 #ifdef __cplusplus
4538 extern "C"
4539 #endif
4540 char gethostbyname ();
4541 /* The GNU C library defines this for functions which it implements
4542     to always fail with ENOSYS.  Some functions are actually named
4543     something starting with __ and the normal name is an alias.  */
4544 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4545 choke me
4546 #endif
4547
4548 int
4549 main ()
4550 {
4551 return gethostbyname ();
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext conftest$ac_exeext
4557 if { (ac_try="$ac_link"
4558 case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563   (eval "$ac_link") 2>conftest.er1
4564   ac_status=$?
4565   grep -v '^ *+' conftest.er1 >conftest.err
4566   rm -f conftest.er1
4567   cat conftest.err >&5
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); } &&
4570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4571   { (case "(($ac_try" in
4572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573   *) ac_try_echo=$ac_try;;
4574 esac
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576   (eval "$ac_try") 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; } &&
4580          { ac_try='test -s conftest$ac_exeext'
4581   { (case "(($ac_try" in
4582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583   *) ac_try_echo=$ac_try;;
4584 esac
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586   (eval "$ac_try") 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; }; then
4590   ac_cv_func_gethostbyname=yes
4591 else
4592   echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595         ac_cv_func_gethostbyname=no
4596 fi
4597
4598 rm -f core conftest.err conftest.$ac_objext \
4599       conftest$ac_exeext conftest.$ac_ext
4600 fi
4601 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4602 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4603
4604     if test $ac_cv_func_gethostbyname = no; then
4605       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4606 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4607 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   ac_check_lib_save_LIBS=$LIBS
4611 LIBS="-lnsl  $LIBS"
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h.  */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h.  */
4618
4619 /* Override any GCC internal prototype to avoid an error.
4620    Use char because int might match the return type of a GCC
4621    builtin and then its argument prototype would still apply.  */
4622 #ifdef __cplusplus
4623 extern "C"
4624 #endif
4625 char gethostbyname ();
4626 int
4627 main ()
4628 {
4629 return gethostbyname ();
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (ac_try="$ac_link"
4636 case "(($ac_try" in
4637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638   *) ac_try_echo=$ac_try;;
4639 esac
4640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641   (eval "$ac_link") 2>conftest.er1
4642   ac_status=$?
4643   grep -v '^ *+' conftest.er1 >conftest.err
4644   rm -f conftest.er1
4645   cat conftest.err >&5
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } &&
4648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4649   { (case "(($ac_try" in
4650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651   *) ac_try_echo=$ac_try;;
4652 esac
4653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654   (eval "$ac_try") 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; } &&
4658          { ac_try='test -s conftest$ac_exeext'
4659   { (case "(($ac_try" in
4660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661   *) ac_try_echo=$ac_try;;
4662 esac
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664   (eval "$ac_try") 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; }; then
4668   ac_cv_lib_nsl_gethostbyname=yes
4669 else
4670   echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673         ac_cv_lib_nsl_gethostbyname=no
4674 fi
4675
4676 rm -f core conftest.err conftest.$ac_objext \
4677       conftest$ac_exeext conftest.$ac_ext
4678 LIBS=$ac_check_lib_save_LIBS
4679 fi
4680 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4681 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4682 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4683   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4684 fi
4685
4686       if test $ac_cv_lib_nsl_gethostbyname = no; then
4687         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4688 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4689 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692   ac_check_lib_save_LIBS=$LIBS
4693 LIBS="-lbsd  $LIBS"
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h.  */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h.  */
4700
4701 /* Override any GCC internal prototype to avoid an error.
4702    Use char because int might match the return type of a GCC
4703    builtin and then its argument prototype would still apply.  */
4704 #ifdef __cplusplus
4705 extern "C"
4706 #endif
4707 char gethostbyname ();
4708 int
4709 main ()
4710 {
4711 return gethostbyname ();
4712   ;
4713   return 0;
4714 }
4715 _ACEOF
4716 rm -f conftest.$ac_objext conftest$ac_exeext
4717 if { (ac_try="$ac_link"
4718 case "(($ac_try" in
4719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720   *) ac_try_echo=$ac_try;;
4721 esac
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723   (eval "$ac_link") 2>conftest.er1
4724   ac_status=$?
4725   grep -v '^ *+' conftest.er1 >conftest.err
4726   rm -f conftest.er1
4727   cat conftest.err >&5
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); } &&
4730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); }; } &&
4740          { ac_try='test -s conftest$ac_exeext'
4741   { (case "(($ac_try" in
4742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743   *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746   (eval "$ac_try") 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); }; }; then
4750   ac_cv_lib_bsd_gethostbyname=yes
4751 else
4752   echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4754
4755         ac_cv_lib_bsd_gethostbyname=no
4756 fi
4757
4758 rm -f core conftest.err conftest.$ac_objext \
4759       conftest$ac_exeext conftest.$ac_ext
4760 LIBS=$ac_check_lib_save_LIBS
4761 fi
4762 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4763 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4764 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4765   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4766 fi
4767
4768       fi
4769     fi
4770
4771     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4772     # socket/setsockopt and other routines are undefined under SCO ODT
4773     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4774     # on later versions), says Simon Leinen: it contains gethostby*
4775     # variants that don't use the name server (or something).  -lsocket
4776     # must be given before -lnsl if both are needed.  We assume that
4777     # if connect needs -lnsl, so does gethostbyname.
4778     { echo "$as_me:$LINENO: checking for connect" >&5
4779 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4780 if test "${ac_cv_func_connect+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h.  */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h.  */
4789 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4791 #define connect innocuous_connect
4792
4793 /* System header to define __stub macros and hopefully few prototypes,
4794     which can conflict with char connect (); below.
4795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796     <limits.h> exists even on freestanding compilers.  */
4797
4798 #ifdef __STDC__
4799 # include <limits.h>
4800 #else
4801 # include <assert.h>
4802 #endif
4803
4804 #undef connect
4805
4806 /* Override any GCC internal prototype to avoid an error.
4807    Use char because int might match the return type of a GCC
4808    builtin and then its argument prototype would still apply.  */
4809 #ifdef __cplusplus
4810 extern "C"
4811 #endif
4812 char connect ();
4813 /* The GNU C library defines this for functions which it implements
4814     to always fail with ENOSYS.  Some functions are actually named
4815     something starting with __ and the normal name is an alias.  */
4816 #if defined __stub_connect || defined __stub___connect
4817 choke me
4818 #endif
4819
4820 int
4821 main ()
4822 {
4823 return connect ();
4824   ;
4825   return 0;
4826 }
4827 _ACEOF
4828 rm -f conftest.$ac_objext conftest$ac_exeext
4829 if { (ac_try="$ac_link"
4830 case "(($ac_try" in
4831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832   *) ac_try_echo=$ac_try;;
4833 esac
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835   (eval "$ac_link") 2>conftest.er1
4836   ac_status=$?
4837   grep -v '^ *+' conftest.er1 >conftest.err
4838   rm -f conftest.er1
4839   cat conftest.err >&5
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); } &&
4842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4843   { (case "(($ac_try" in
4844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845   *) ac_try_echo=$ac_try;;
4846 esac
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848   (eval "$ac_try") 2>&5
4849   ac_status=$?
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); }; } &&
4852          { ac_try='test -s conftest$ac_exeext'
4853   { (case "(($ac_try" in
4854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855   *) ac_try_echo=$ac_try;;
4856 esac
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858   (eval "$ac_try") 2>&5
4859   ac_status=$?
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); }; }; then
4862   ac_cv_func_connect=yes
4863 else
4864   echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4866
4867         ac_cv_func_connect=no
4868 fi
4869
4870 rm -f core conftest.err conftest.$ac_objext \
4871       conftest$ac_exeext conftest.$ac_ext
4872 fi
4873 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4874 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4875
4876     if test $ac_cv_func_connect = no; then
4877       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4878 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4879 if test "${ac_cv_lib_socket_connect+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   ac_check_lib_save_LIBS=$LIBS
4883 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h.  */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h.  */
4890
4891 /* Override any GCC internal prototype to avoid an error.
4892    Use char because int might match the return type of a GCC
4893    builtin and then its argument prototype would still apply.  */
4894 #ifdef __cplusplus
4895 extern "C"
4896 #endif
4897 char connect ();
4898 int
4899 main ()
4900 {
4901 return connect ();
4902   ;
4903   return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (ac_try="$ac_link"
4908 case "(($ac_try" in
4909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910   *) ac_try_echo=$ac_try;;
4911 esac
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913   (eval "$ac_link") 2>conftest.er1
4914   ac_status=$?
4915   grep -v '^ *+' conftest.er1 >conftest.err
4916   rm -f conftest.er1
4917   cat conftest.err >&5
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); } &&
4920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4921   { (case "(($ac_try" in
4922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923   *) ac_try_echo=$ac_try;;
4924 esac
4925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926   (eval "$ac_try") 2>&5
4927   ac_status=$?
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); }; } &&
4930          { ac_try='test -s conftest$ac_exeext'
4931   { (case "(($ac_try" in
4932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933   *) ac_try_echo=$ac_try;;
4934 esac
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936   (eval "$ac_try") 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; }; then
4940   ac_cv_lib_socket_connect=yes
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945         ac_cv_lib_socket_connect=no
4946 fi
4947
4948 rm -f core conftest.err conftest.$ac_objext \
4949       conftest$ac_exeext conftest.$ac_ext
4950 LIBS=$ac_check_lib_save_LIBS
4951 fi
4952 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4953 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4954 if test $ac_cv_lib_socket_connect = yes; then
4955   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4956 fi
4957
4958     fi
4959
4960     # Guillermo Gomez says -lposix is necessary on A/UX.
4961     { echo "$as_me:$LINENO: checking for remove" >&5
4962 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4963 if test "${ac_cv_func_remove+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966   cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h.  */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h.  */
4972 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4974 #define remove innocuous_remove
4975
4976 /* System header to define __stub macros and hopefully few prototypes,
4977     which can conflict with char remove (); below.
4978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4979     <limits.h> exists even on freestanding compilers.  */
4980
4981 #ifdef __STDC__
4982 # include <limits.h>
4983 #else
4984 # include <assert.h>
4985 #endif
4986
4987 #undef remove
4988
4989 /* Override any GCC internal prototype to avoid an error.
4990    Use char because int might match the return type of a GCC
4991    builtin and then its argument prototype would still apply.  */
4992 #ifdef __cplusplus
4993 extern "C"
4994 #endif
4995 char remove ();
4996 /* The GNU C library defines this for functions which it implements
4997     to always fail with ENOSYS.  Some functions are actually named
4998     something starting with __ and the normal name is an alias.  */
4999 #if defined __stub_remove || defined __stub___remove
5000 choke me
5001 #endif
5002
5003 int
5004 main ()
5005 {
5006 return remove ();
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 rm -f conftest.$ac_objext conftest$ac_exeext
5012 if { (ac_try="$ac_link"
5013 case "(($ac_try" in
5014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015   *) ac_try_echo=$ac_try;;
5016 esac
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018   (eval "$ac_link") 2>conftest.er1
5019   ac_status=$?
5020   grep -v '^ *+' conftest.er1 >conftest.err
5021   rm -f conftest.er1
5022   cat conftest.err >&5
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); } &&
5025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5026   { (case "(($ac_try" in
5027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028   *) ac_try_echo=$ac_try;;
5029 esac
5030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031   (eval "$ac_try") 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; } &&
5035          { ac_try='test -s conftest$ac_exeext'
5036   { (case "(($ac_try" in
5037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038   *) ac_try_echo=$ac_try;;
5039 esac
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041   (eval "$ac_try") 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; }; then
5045   ac_cv_func_remove=yes
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050         ac_cv_func_remove=no
5051 fi
5052
5053 rm -f core conftest.err conftest.$ac_objext \
5054       conftest$ac_exeext conftest.$ac_ext
5055 fi
5056 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5057 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5058
5059     if test $ac_cv_func_remove = no; then
5060       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5061 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5062 if test "${ac_cv_lib_posix_remove+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   ac_check_lib_save_LIBS=$LIBS
5066 LIBS="-lposix  $LIBS"
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073
5074 /* Override any GCC internal prototype to avoid an error.
5075    Use char because int might match the return type of a GCC
5076    builtin and then its argument prototype would still apply.  */
5077 #ifdef __cplusplus
5078 extern "C"
5079 #endif
5080 char remove ();
5081 int
5082 main ()
5083 {
5084 return remove ();
5085   ;
5086   return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext conftest$ac_exeext
5090 if { (ac_try="$ac_link"
5091 case "(($ac_try" in
5092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093   *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096   (eval "$ac_link") 2>conftest.er1
5097   ac_status=$?
5098   grep -v '^ *+' conftest.er1 >conftest.err
5099   rm -f conftest.er1
5100   cat conftest.err >&5
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } &&
5103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5104   { (case "(($ac_try" in
5105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106   *) ac_try_echo=$ac_try;;
5107 esac
5108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109   (eval "$ac_try") 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; } &&
5113          { ac_try='test -s conftest$ac_exeext'
5114   { (case "(($ac_try" in
5115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116   *) ac_try_echo=$ac_try;;
5117 esac
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119   (eval "$ac_try") 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; }; then
5123   ac_cv_lib_posix_remove=yes
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128         ac_cv_lib_posix_remove=no
5129 fi
5130
5131 rm -f core conftest.err conftest.$ac_objext \
5132       conftest$ac_exeext conftest.$ac_ext
5133 LIBS=$ac_check_lib_save_LIBS
5134 fi
5135 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5136 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5137 if test $ac_cv_lib_posix_remove = yes; then
5138   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5139 fi
5140
5141     fi
5142
5143     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5144     { echo "$as_me:$LINENO: checking for shmat" >&5
5145 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5146 if test "${ac_cv_func_shmat+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5157 #define shmat innocuous_shmat
5158
5159 /* System header to define __stub macros and hopefully few prototypes,
5160     which can conflict with char shmat (); below.
5161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162     <limits.h> exists even on freestanding compilers.  */
5163
5164 #ifdef __STDC__
5165 # include <limits.h>
5166 #else
5167 # include <assert.h>
5168 #endif
5169
5170 #undef shmat
5171
5172 /* Override any GCC internal prototype to avoid an error.
5173    Use char because int might match the return type of a GCC
5174    builtin and then its argument prototype would still apply.  */
5175 #ifdef __cplusplus
5176 extern "C"
5177 #endif
5178 char shmat ();
5179 /* The GNU C library defines this for functions which it implements
5180     to always fail with ENOSYS.  Some functions are actually named
5181     something starting with __ and the normal name is an alias.  */
5182 #if defined __stub_shmat || defined __stub___shmat
5183 choke me
5184 #endif
5185
5186 int
5187 main ()
5188 {
5189 return shmat ();
5190   ;
5191   return 0;
5192 }
5193 _ACEOF
5194 rm -f conftest.$ac_objext conftest$ac_exeext
5195 if { (ac_try="$ac_link"
5196 case "(($ac_try" in
5197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198   *) ac_try_echo=$ac_try;;
5199 esac
5200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201   (eval "$ac_link") 2>conftest.er1
5202   ac_status=$?
5203   grep -v '^ *+' conftest.er1 >conftest.err
5204   rm -f conftest.er1
5205   cat conftest.err >&5
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); } &&
5208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5209   { (case "(($ac_try" in
5210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211   *) ac_try_echo=$ac_try;;
5212 esac
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214   (eval "$ac_try") 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; } &&
5218          { ac_try='test -s conftest$ac_exeext'
5219   { (case "(($ac_try" in
5220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221   *) ac_try_echo=$ac_try;;
5222 esac
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224   (eval "$ac_try") 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; }; then
5228   ac_cv_func_shmat=yes
5229 else
5230   echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5232
5233         ac_cv_func_shmat=no
5234 fi
5235
5236 rm -f core conftest.err conftest.$ac_objext \
5237       conftest$ac_exeext conftest.$ac_ext
5238 fi
5239 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5240 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5241
5242     if test $ac_cv_func_shmat = no; then
5243       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5244 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5245 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   ac_check_lib_save_LIBS=$LIBS
5249 LIBS="-lipc  $LIBS"
5250 cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h.  */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h.  */
5256
5257 /* Override any GCC internal prototype to avoid an error.
5258    Use char because int might match the return type of a GCC
5259    builtin and then its argument prototype would still apply.  */
5260 #ifdef __cplusplus
5261 extern "C"
5262 #endif
5263 char shmat ();
5264 int
5265 main ()
5266 {
5267 return shmat ();
5268   ;
5269   return 0;
5270 }
5271 _ACEOF
5272 rm -f conftest.$ac_objext conftest$ac_exeext
5273 if { (ac_try="$ac_link"
5274 case "(($ac_try" in
5275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276   *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279   (eval "$ac_link") 2>conftest.er1
5280   ac_status=$?
5281   grep -v '^ *+' conftest.er1 >conftest.err
5282   rm -f conftest.er1
5283   cat conftest.err >&5
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); } &&
5286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5287   { (case "(($ac_try" in
5288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289   *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292   (eval "$ac_try") 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }; } &&
5296          { ac_try='test -s conftest$ac_exeext'
5297   { (case "(($ac_try" in
5298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299   *) ac_try_echo=$ac_try;;
5300 esac
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302   (eval "$ac_try") 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }; }; then
5306   ac_cv_lib_ipc_shmat=yes
5307 else
5308   echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5310
5311         ac_cv_lib_ipc_shmat=no
5312 fi
5313
5314 rm -f core conftest.err conftest.$ac_objext \
5315       conftest$ac_exeext conftest.$ac_ext
5316 LIBS=$ac_check_lib_save_LIBS
5317 fi
5318 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5319 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5320 if test $ac_cv_lib_ipc_shmat = yes; then
5321   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5322 fi
5323
5324     fi
5325   fi
5326
5327   # Check for libraries that X11R6 Xt/Xaw programs need.
5328   ac_save_LDFLAGS=$LDFLAGS
5329   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5330   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5331   # check for ICE first), but we must link in the order -lSM -lICE or
5332   # we get undefined symbols.  So assume we have SM if we have ICE.
5333   # These have to be linked with before -lX11, unlike the other
5334   # libraries we check for below, so use a different variable.
5335   # John Interrante, Karl Berry
5336   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5337 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5338 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   ac_check_lib_save_LIBS=$LIBS
5342 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h.  */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h.  */
5349
5350 /* Override any GCC internal prototype to avoid an error.
5351    Use char because int might match the return type of a GCC
5352    builtin and then its argument prototype would still apply.  */
5353 #ifdef __cplusplus
5354 extern "C"
5355 #endif
5356 char IceConnectionNumber ();
5357 int
5358 main ()
5359 {
5360 return IceConnectionNumber ();
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.$ac_objext conftest$ac_exeext
5366 if { (ac_try="$ac_link"
5367 case "(($ac_try" in
5368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369   *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372   (eval "$ac_link") 2>conftest.er1
5373   ac_status=$?
5374   grep -v '^ *+' conftest.er1 >conftest.err
5375   rm -f conftest.er1
5376   cat conftest.err >&5
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); } &&
5379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5380   { (case "(($ac_try" in
5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382   *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385   (eval "$ac_try") 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); }; } &&
5389          { ac_try='test -s conftest$ac_exeext'
5390   { (case "(($ac_try" in
5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392   *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395   (eval "$ac_try") 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   ac_cv_lib_ICE_IceConnectionNumber=yes
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404         ac_cv_lib_ICE_IceConnectionNumber=no
5405 fi
5406
5407 rm -f core conftest.err conftest.$ac_objext \
5408       conftest$ac_exeext conftest.$ac_ext
5409 LIBS=$ac_check_lib_save_LIBS
5410 fi
5411 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5412 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5413 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5414   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5415 fi
5416
5417   LDFLAGS=$ac_save_LDFLAGS
5418
5419 fi
5420
5421 for ac_prog in flex lex
5422 do
5423   # Extract the first word of "$ac_prog", so it can be a program name with args.
5424 set dummy $ac_prog; ac_word=$2
5425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5427 if test "${ac_cv_prog_LEX+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   if test -n "$LEX"; then
5431   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438   for ac_exec_ext in '' $ac_executable_extensions; do
5439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5440     ac_cv_prog_LEX="$ac_prog"
5441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445 done
5446 IFS=$as_save_IFS
5447
5448 fi
5449 fi
5450 LEX=$ac_cv_prog_LEX
5451 if test -n "$LEX"; then
5452   { echo "$as_me:$LINENO: result: $LEX" >&5
5453 echo "${ECHO_T}$LEX" >&6; }
5454 else
5455   { echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6; }
5457 fi
5458
5459
5460   test -n "$LEX" && break
5461 done
5462 test -n "$LEX" || LEX=":"
5463
5464 if test -z "$LEXLIB"
5465 then
5466   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5467 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
5468 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   ac_check_lib_save_LIBS=$LIBS
5472 LIBS="-lfl  $LIBS"
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h.  */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h.  */
5479
5480 /* Override any GCC internal prototype to avoid an error.
5481    Use char because int might match the return type of a GCC
5482    builtin and then its argument prototype would still apply.  */
5483 #ifdef __cplusplus
5484 extern "C"
5485 #endif
5486 char yywrap ();
5487 int
5488 main ()
5489 {
5490 return yywrap ();
5491   ;
5492   return 0;
5493 }
5494 _ACEOF
5495 rm -f conftest.$ac_objext conftest$ac_exeext
5496 if { (ac_try="$ac_link"
5497 case "(($ac_try" in
5498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499   *) ac_try_echo=$ac_try;;
5500 esac
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502   (eval "$ac_link") 2>conftest.er1
5503   ac_status=$?
5504   grep -v '^ *+' conftest.er1 >conftest.err
5505   rm -f conftest.er1
5506   cat conftest.err >&5
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); } &&
5509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5510   { (case "(($ac_try" in
5511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512   *) ac_try_echo=$ac_try;;
5513 esac
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515   (eval "$ac_try") 2>&5
5516   ac_status=$?
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); }; } &&
5519          { ac_try='test -s conftest$ac_exeext'
5520   { (case "(($ac_try" in
5521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522   *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525   (eval "$ac_try") 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; }; then
5529   ac_cv_lib_fl_yywrap=yes
5530 else
5531   echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5533
5534         ac_cv_lib_fl_yywrap=no
5535 fi
5536
5537 rm -f core conftest.err conftest.$ac_objext \
5538       conftest$ac_exeext conftest.$ac_ext
5539 LIBS=$ac_check_lib_save_LIBS
5540 fi
5541 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5542 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
5543 if test $ac_cv_lib_fl_yywrap = yes; then
5544   LEXLIB="-lfl"
5545 else
5546   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5547 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
5548 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   ac_check_lib_save_LIBS=$LIBS
5552 LIBS="-ll  $LIBS"
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559
5560 /* Override any GCC internal prototype to avoid an error.
5561    Use char because int might match the return type of a GCC
5562    builtin and then its argument prototype would still apply.  */
5563 #ifdef __cplusplus
5564 extern "C"
5565 #endif
5566 char yywrap ();
5567 int
5568 main ()
5569 {
5570 return yywrap ();
5571   ;
5572   return 0;
5573 }
5574 _ACEOF
5575 rm -f conftest.$ac_objext conftest$ac_exeext
5576 if { (ac_try="$ac_link"
5577 case "(($ac_try" in
5578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579   *) ac_try_echo=$ac_try;;
5580 esac
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582   (eval "$ac_link") 2>conftest.er1
5583   ac_status=$?
5584   grep -v '^ *+' conftest.er1 >conftest.err
5585   rm -f conftest.er1
5586   cat conftest.err >&5
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); } &&
5589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5590   { (case "(($ac_try" in
5591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592   *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595   (eval "$ac_try") 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); }; } &&
5599          { ac_try='test -s conftest$ac_exeext'
5600   { (case "(($ac_try" in
5601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602   *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605   (eval "$ac_try") 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); }; }; then
5609   ac_cv_lib_l_yywrap=yes
5610 else
5611   echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5613
5614         ac_cv_lib_l_yywrap=no
5615 fi
5616
5617 rm -f core conftest.err conftest.$ac_objext \
5618       conftest$ac_exeext conftest.$ac_ext
5619 LIBS=$ac_check_lib_save_LIBS
5620 fi
5621 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5622 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
5623 if test $ac_cv_lib_l_yywrap = yes; then
5624   LEXLIB="-ll"
5625 fi
5626
5627 fi
5628
5629 fi
5630
5631 if test "x$LEX" != "x:"; then
5632   { echo "$as_me:$LINENO: checking lex output file root" >&5
5633 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5634 if test "${ac_cv_prog_lex_root+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   # The minimal lex program is just a single line: %%.  But some broken lexes
5638 # (Solaris, I think it was) want two %% lines, so accommodate them.
5639 cat >conftest.l <<_ACEOF
5640 %%
5641 %%
5642 _ACEOF
5643 { (ac_try="$LEX conftest.l"
5644 case "(($ac_try" in
5645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646   *) ac_try_echo=$ac_try;;
5647 esac
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649   (eval "$LEX conftest.l") 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }
5653 if test -f lex.yy.c; then
5654   ac_cv_prog_lex_root=lex.yy
5655 elif test -f lexyy.c; then
5656   ac_cv_prog_lex_root=lexyy
5657 else
5658   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5659 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5660    { (exit 1); exit 1; }; }
5661 fi
5662 fi
5663 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5664 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5665 rm -f conftest.l
5666 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5667
5668 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5669 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5670 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   # POSIX says lex can declare yytext either as a pointer or an array; the
5674 # default is implementation-dependent. Figure out which it is, since
5675 # not all implementations provide the %pointer and %array declarations.
5676 ac_cv_prog_lex_yytext_pointer=no
5677 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5678 ac_save_LIBS=$LIBS
5679 LIBS="$LIBS $LEXLIB"
5680 cat >conftest.$ac_ext <<_ACEOF
5681 `cat $LEX_OUTPUT_ROOT.c`
5682 _ACEOF
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (ac_try="$ac_link"
5685 case "(($ac_try" in
5686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687   *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690   (eval "$ac_link") 2>conftest.er1
5691   ac_status=$?
5692   grep -v '^ *+' conftest.er1 >conftest.err
5693   rm -f conftest.er1
5694   cat conftest.err >&5
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); } &&
5697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5698   { (case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_try") 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; } &&
5707          { ac_try='test -s conftest$ac_exeext'
5708   { (case "(($ac_try" in
5709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710   *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713   (eval "$ac_try") 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; }; then
5717   ac_cv_prog_lex_yytext_pointer=yes
5718 else
5719   echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722
5723 fi
5724
5725 rm -f core conftest.err conftest.$ac_objext \
5726       conftest$ac_exeext conftest.$ac_ext
5727 LIBS=$ac_save_LIBS
5728 rm -f "${LEX_OUTPUT_ROOT}.c"
5729
5730 fi
5731 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5732 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5733 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5734
5735 cat >>confdefs.h <<\_ACEOF
5736 #define YYTEXT_POINTER 1
5737 _ACEOF
5738
5739 fi
5740
5741 fi
5742
5743 for ac_prog in $LEX flex lex
5744 do
5745   # Extract the first word of "$ac_prog", so it can be a program name with args.
5746 set dummy $ac_prog; ac_word=$2
5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749 if test "${ac_cv_prog_XLEX+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -n "$XLEX"; then
5753   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760   for ac_exec_ext in '' $ac_executable_extensions; do
5761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5762     ac_cv_prog_XLEX="$ac_prog"
5763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 XLEX=$ac_cv_prog_XLEX
5773 if test -n "$XLEX"; then
5774   { echo "$as_me:$LINENO: result: $XLEX" >&5
5775 echo "${ECHO_T}$XLEX" >&6; }
5776 else
5777   { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5779 fi
5780
5781
5782   test -n "$XLEX" && break
5783 done
5784 test -n "$XLEX" || XLEX="none"
5785
5786 if test "$XLEX" = "none"
5787 then
5788   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5789 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5790    { (exit 1); exit 1; }; }
5791 fi
5792
5793 for ac_prog in bison
5794 do
5795   # Extract the first word of "$ac_prog", so it can be a program name with args.
5796 set dummy $ac_prog; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_prog_BISON+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   if test -n "$BISON"; then
5803   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810   for ac_exec_ext in '' $ac_executable_extensions; do
5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5812     ac_cv_prog_BISON="$ac_prog"
5813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 BISON=$ac_cv_prog_BISON
5823 if test -n "$BISON"; then
5824   { echo "$as_me:$LINENO: result: $BISON" >&5
5825 echo "${ECHO_T}$BISON" >&6; }
5826 else
5827   { echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6; }
5829 fi
5830
5831
5832   test -n "$BISON" && break
5833 done
5834 test -n "$BISON" || BISON="none"
5835
5836 if test "$BISON" = "none"
5837 then
5838   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5839 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5840    { (exit 1); exit 1; }; }
5841 fi
5842
5843 if test -n "$ac_tool_prefix"; then
5844   for ac_prog in gas as
5845   do
5846     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5850 if test "${ac_cv_prog_AS+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   if test -n "$AS"; then
5854   ac_cv_prog_AS="$AS" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861   for ac_exec_ext in '' $ac_executable_extensions; do
5862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5863     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868 done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 AS=$ac_cv_prog_AS
5874 if test -n "$AS"; then
5875   { echo "$as_me:$LINENO: result: $AS" >&5
5876 echo "${ECHO_T}$AS" >&6; }
5877 else
5878   { echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6; }
5880 fi
5881
5882
5883     test -n "$AS" && break
5884   done
5885 fi
5886 if test -z "$AS"; then
5887   ac_ct_AS=$AS
5888   for ac_prog in gas as
5889 do
5890   # Extract the first word of "$ac_prog", so it can be a program name with args.
5891 set dummy $ac_prog; ac_word=$2
5892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5894 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   if test -n "$ac_ct_AS"; then
5898   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for ac_exec_ext in '' $ac_executable_extensions; do
5906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5907     ac_cv_prog_ac_ct_AS="$ac_prog"
5908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915 fi
5916 fi
5917 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5918 if test -n "$ac_ct_AS"; then
5919   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5920 echo "${ECHO_T}$ac_ct_AS" >&6; }
5921 else
5922   { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5924 fi
5925
5926
5927   test -n "$ac_ct_AS" && break
5928 done
5929
5930   if test "x$ac_ct_AS" = x; then
5931     AS="as"
5932   else
5933     case $cross_compiling:$ac_tool_warned in
5934 yes:)
5935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5936 whose name does not start with the host triplet.  If you think this
5937 configuration is useful to you, please write to autoconf@gnu.org." >&5
5938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5939 whose name does not start with the host triplet.  If you think this
5940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5941 ac_tool_warned=yes ;;
5942 esac
5943     AS=$ac_ct_AS
5944   fi
5945 fi
5946
5947 if test -n "$ac_tool_prefix"; then
5948   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5949 set dummy ${ac_tool_prefix}ld; ac_word=$2
5950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5952 if test "${ac_cv_prog_LD+set}" = set; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   if test -n "$LD"; then
5956   ac_cv_prog_LD="$LD" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963   for ac_exec_ext in '' $ac_executable_extensions; do
5964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5965     ac_cv_prog_LD="${ac_tool_prefix}ld"
5966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 LD=$ac_cv_prog_LD
5976 if test -n "$LD"; then
5977   { echo "$as_me:$LINENO: result: $LD" >&5
5978 echo "${ECHO_T}$LD" >&6; }
5979 else
5980   { echo "$as_me:$LINENO: result: no" >&5
5981 echo "${ECHO_T}no" >&6; }
5982 fi
5983
5984
5985 fi
5986 if test -z "$ac_cv_prog_LD"; then
5987   ac_ct_LD=$LD
5988   # Extract the first word of "ld", so it can be a program name with args.
5989 set dummy ld; ac_word=$2
5990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5992 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   if test -n "$ac_ct_LD"; then
5996   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003   for ac_exec_ext in '' $ac_executable_extensions; do
6004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6005     ac_cv_prog_ac_ct_LD="ld"
6006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007     break 2
6008   fi
6009 done
6010 done
6011 IFS=$as_save_IFS
6012
6013 fi
6014 fi
6015 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6016 if test -n "$ac_ct_LD"; then
6017   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6018 echo "${ECHO_T}$ac_ct_LD" >&6; }
6019 else
6020   { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6022 fi
6023
6024   if test "x$ac_ct_LD" = x; then
6025     LD="ld"
6026   else
6027     case $cross_compiling:$ac_tool_warned in
6028 yes:)
6029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6030 whose name does not start with the host triplet.  If you think this
6031 configuration is useful to you, please write to autoconf@gnu.org." >&5
6032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6033 whose name does not start with the host triplet.  If you think this
6034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6035 ac_tool_warned=yes ;;
6036 esac
6037     LD=$ac_ct_LD
6038   fi
6039 else
6040   LD="$ac_cv_prog_LD"
6041 fi
6042
6043 if test -n "$ac_tool_prefix"; then
6044   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6045 set dummy ${ac_tool_prefix}ar; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_prog_AR+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   if test -n "$AR"; then
6052   ac_cv_prog_AR="$AR" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057   IFS=$as_save_IFS
6058   test -z "$as_dir" && as_dir=.
6059   for ac_exec_ext in '' $ac_executable_extensions; do
6060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6061     ac_cv_prog_AR="${ac_tool_prefix}ar"
6062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063     break 2
6064   fi
6065 done
6066 done
6067 IFS=$as_save_IFS
6068
6069 fi
6070 fi
6071 AR=$ac_cv_prog_AR
6072 if test -n "$AR"; then
6073   { echo "$as_me:$LINENO: result: $AR" >&5
6074 echo "${ECHO_T}$AR" >&6; }
6075 else
6076   { echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6; }
6078 fi
6079
6080
6081 fi
6082 if test -z "$ac_cv_prog_AR"; then
6083   ac_ct_AR=$AR
6084   # Extract the first word of "ar", so it can be a program name with args.
6085 set dummy ar; ac_word=$2
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   if test -n "$ac_ct_AR"; then
6092   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6093 else
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097   IFS=$as_save_IFS
6098   test -z "$as_dir" && as_dir=.
6099   for ac_exec_ext in '' $ac_executable_extensions; do
6100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6101     ac_cv_prog_ac_ct_AR="ar"
6102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103     break 2
6104   fi
6105 done
6106 done
6107 IFS=$as_save_IFS
6108
6109 fi
6110 fi
6111 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6112 if test -n "$ac_ct_AR"; then
6113   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6114 echo "${ECHO_T}$ac_ct_AR" >&6; }
6115 else
6116   { echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6; }
6118 fi
6119
6120   if test "x$ac_ct_AR" = x; then
6121     AR="ar"
6122   else
6123     case $cross_compiling:$ac_tool_warned in
6124 yes:)
6125 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6126 whose name does not start with the host triplet.  If you think this
6127 configuration is useful to you, please write to autoconf@gnu.org." >&5
6128 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6129 whose name does not start with the host triplet.  If you think this
6130 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6131 ac_tool_warned=yes ;;
6132 esac
6133     AR=$ac_ct_AR
6134   fi
6135 else
6136   AR="$ac_cv_prog_AR"
6137 fi
6138
6139 if test -n "$ac_tool_prefix"; then
6140   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6144 if test "${ac_cv_prog_RANLIB+set}" = set; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   if test -n "$RANLIB"; then
6148   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153   IFS=$as_save_IFS
6154   test -z "$as_dir" && as_dir=.
6155   for ac_exec_ext in '' $ac_executable_extensions; do
6156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6157     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159     break 2
6160   fi
6161 done
6162 done
6163 IFS=$as_save_IFS
6164
6165 fi
6166 fi
6167 RANLIB=$ac_cv_prog_RANLIB
6168 if test -n "$RANLIB"; then
6169   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6170 echo "${ECHO_T}$RANLIB" >&6; }
6171 else
6172   { echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6; }
6174 fi
6175
6176
6177 fi
6178 if test -z "$ac_cv_prog_RANLIB"; then
6179   ac_ct_RANLIB=$RANLIB
6180   # Extract the first word of "ranlib", so it can be a program name with args.
6181 set dummy ranlib; ac_word=$2
6182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187   if test -n "$ac_ct_RANLIB"; then
6188   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195   for ac_exec_ext in '' $ac_executable_extensions; do
6196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197     ac_cv_prog_ac_ct_RANLIB="ranlib"
6198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199     break 2
6200   fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6208 if test -n "$ac_ct_RANLIB"; then
6209   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6210 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6211 else
6212   { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6214 fi
6215
6216   if test "x$ac_ct_RANLIB" = x; then
6217     RANLIB=":"
6218   else
6219     case $cross_compiling:$ac_tool_warned in
6220 yes:)
6221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet.  If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&5
6224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6225 whose name does not start with the host triplet.  If you think this
6226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229     RANLIB=$ac_ct_RANLIB
6230   fi
6231 else
6232   RANLIB="$ac_cv_prog_RANLIB"
6233 fi
6234
6235 if test -n "$ac_tool_prefix"; then
6236   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6237 set dummy ${ac_tool_prefix}strip; ac_word=$2
6238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6240 if test "${ac_cv_prog_STRIP+set}" = set; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243   if test -n "$STRIP"; then
6244   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251   for ac_exec_ext in '' $ac_executable_extensions; do
6252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6253     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 STRIP=$ac_cv_prog_STRIP
6264 if test -n "$STRIP"; then
6265   { echo "$as_me:$LINENO: result: $STRIP" >&5
6266 echo "${ECHO_T}$STRIP" >&6; }
6267 else
6268   { echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6; }
6270 fi
6271
6272
6273 fi
6274 if test -z "$ac_cv_prog_STRIP"; then
6275   ac_ct_STRIP=$STRIP
6276   # Extract the first word of "strip", so it can be a program name with args.
6277 set dummy strip; ac_word=$2
6278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6280 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6281   echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283   if test -n "$ac_ct_STRIP"; then
6284   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6285 else
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6288 do
6289   IFS=$as_save_IFS
6290   test -z "$as_dir" && as_dir=.
6291   for ac_exec_ext in '' $ac_executable_extensions; do
6292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6293     ac_cv_prog_ac_ct_STRIP="strip"
6294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295     break 2
6296   fi
6297 done
6298 done
6299 IFS=$as_save_IFS
6300
6301 fi
6302 fi
6303 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6304 if test -n "$ac_ct_STRIP"; then
6305   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6306 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6307 else
6308   { echo "$as_me:$LINENO: result: no" >&5
6309 echo "${ECHO_T}no" >&6; }
6310 fi
6311
6312   if test "x$ac_ct_STRIP" = x; then
6313     STRIP="strip"
6314   else
6315     case $cross_compiling:$ac_tool_warned in
6316 yes:)
6317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6318 whose name does not start with the host triplet.  If you think this
6319 configuration is useful to you, please write to autoconf@gnu.org." >&5
6320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6321 whose name does not start with the host triplet.  If you think this
6322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6323 ac_tool_warned=yes ;;
6324 esac
6325     STRIP=$ac_ct_STRIP
6326   fi
6327 else
6328   STRIP="$ac_cv_prog_STRIP"
6329 fi
6330
6331 if test -n "$ac_tool_prefix"; then
6332   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}windres; ac_word=$2
6334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_WINDRES+set}" = set; then
6337   echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339   if test -n "$WINDRES"; then
6340   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345   IFS=$as_save_IFS
6346   test -z "$as_dir" && as_dir=.
6347   for ac_exec_ext in '' $ac_executable_extensions; do
6348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6349     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351     break 2
6352   fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 WINDRES=$ac_cv_prog_WINDRES
6360 if test -n "$WINDRES"; then
6361   { echo "$as_me:$LINENO: result: $WINDRES" >&5
6362 echo "${ECHO_T}$WINDRES" >&6; }
6363 else
6364   { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6366 fi
6367
6368
6369 fi
6370 if test -z "$ac_cv_prog_WINDRES"; then
6371   ac_ct_WINDRES=$WINDRES
6372   # Extract the first word of "windres", so it can be a program name with args.
6373 set dummy windres; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379   if test -n "$ac_ct_WINDRES"; then
6380   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387   for ac_exec_ext in '' $ac_executable_extensions; do
6388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6389     ac_cv_prog_ac_ct_WINDRES="windres"
6390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6400 if test -n "$ac_ct_WINDRES"; then
6401   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6402 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6403 else
6404   { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6406 fi
6407
6408   if test "x$ac_ct_WINDRES" = x; then
6409     WINDRES="false"
6410   else
6411     case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6414 whose name does not start with the host triplet.  If you think this
6415 configuration is useful to you, please write to autoconf@gnu.org." >&5
6416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6417 whose name does not start with the host triplet.  If you think this
6418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421     WINDRES=$ac_ct_WINDRES
6422   fi
6423 else
6424   WINDRES="$ac_cv_prog_WINDRES"
6425 fi
6426
6427 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6428 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6429 LN_S=$as_ln_s
6430 if test "$LN_S" = "ln -s"; then
6431   { echo "$as_me:$LINENO: result: yes" >&5
6432 echo "${ECHO_T}yes" >&6; }
6433 else
6434   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6435 echo "${ECHO_T}no, using $LN_S" >&6; }
6436 fi
6437
6438 { echo "$as_me:$LINENO: checking whether ln works" >&5
6439 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
6440 rm -f conf$$ conf$$.file
6441 echo >conf$$.file
6442 if ln conf$$.file conf$$ 2>/dev/null; then
6443   LN=ln
6444
6445   { echo "$as_me:$LINENO: result: yes" >&5
6446 echo "${ECHO_T}yes" >&6; }
6447 else
6448   LN="cp -p"
6449
6450   { echo "$as_me:$LINENO: result: no, using $LN" >&5
6451 echo "${ECHO_T}no, using $LN" >&6; }
6452 fi
6453 rm -f conf$$ conf$$.file
6454 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6455 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6456 if test "${ac_cv_path_GREP+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   # Extract the first word of "grep ggrep" to use in msg output
6460 if test -z "$GREP"; then
6461 set dummy grep ggrep; ac_prog_name=$2
6462 if test "${ac_cv_path_GREP+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   ac_path_GREP_found=false
6466 # Loop through the user's path and test for each of PROGNAME-LIST
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6469 do
6470   IFS=$as_save_IFS
6471   test -z "$as_dir" && as_dir=.
6472   for ac_prog in grep ggrep; do
6473   for ac_exec_ext in '' $ac_executable_extensions; do
6474     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6475     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6476     # Check for GNU ac_path_GREP and select it if it is found.
6477   # Check for GNU $ac_path_GREP
6478 case `"$ac_path_GREP" --version 2>&1` in
6479 *GNU*)
6480   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6481 *)
6482   ac_count=0
6483   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6484   while :
6485   do
6486     cat "conftest.in" "conftest.in" >"conftest.tmp"
6487     mv "conftest.tmp" "conftest.in"
6488     cp "conftest.in" "conftest.nl"
6489     echo 'GREP' >> "conftest.nl"
6490     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6491     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6492     ac_count=`expr $ac_count + 1`
6493     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6494       # Best one so far, save it but keep looking for a better one
6495       ac_cv_path_GREP="$ac_path_GREP"
6496       ac_path_GREP_max=$ac_count
6497     fi
6498     # 10*(2^10) chars as input seems more than enough
6499     test $ac_count -gt 10 && break
6500   done
6501   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6502 esac
6503
6504
6505     $ac_path_GREP_found && break 3
6506   done
6507 done
6508
6509 done
6510 IFS=$as_save_IFS
6511
6512
6513 fi
6514
6515 GREP="$ac_cv_path_GREP"
6516 if test -z "$GREP"; then
6517   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6518 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6519    { (exit 1); exit 1; }; }
6520 fi
6521
6522 else
6523   ac_cv_path_GREP=$GREP
6524 fi
6525
6526
6527 fi
6528 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6529 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6530  GREP="$ac_cv_path_GREP"
6531
6532
6533 { echo "$as_me:$LINENO: checking for egrep" >&5
6534 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6535 if test "${ac_cv_path_EGREP+set}" = set; then
6536   echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6539    then ac_cv_path_EGREP="$GREP -E"
6540    else
6541      # Extract the first word of "egrep" to use in msg output
6542 if test -z "$EGREP"; then
6543 set dummy egrep; ac_prog_name=$2
6544 if test "${ac_cv_path_EGREP+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   ac_path_EGREP_found=false
6548 # Loop through the user's path and test for each of PROGNAME-LIST
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6551 do
6552   IFS=$as_save_IFS
6553   test -z "$as_dir" && as_dir=.
6554   for ac_prog in egrep; do
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6557     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6558     # Check for GNU ac_path_EGREP and select it if it is found.
6559   # Check for GNU $ac_path_EGREP
6560 case `"$ac_path_EGREP" --version 2>&1` in
6561 *GNU*)
6562   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6563 *)
6564   ac_count=0
6565   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6566   while :
6567   do
6568     cat "conftest.in" "conftest.in" >"conftest.tmp"
6569     mv "conftest.tmp" "conftest.in"
6570     cp "conftest.in" "conftest.nl"
6571     echo 'EGREP' >> "conftest.nl"
6572     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6573     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6574     ac_count=`expr $ac_count + 1`
6575     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6576       # Best one so far, save it but keep looking for a better one
6577       ac_cv_path_EGREP="$ac_path_EGREP"
6578       ac_path_EGREP_max=$ac_count
6579     fi
6580     # 10*(2^10) chars as input seems more than enough
6581     test $ac_count -gt 10 && break
6582   done
6583   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6584 esac
6585
6586
6587     $ac_path_EGREP_found && break 3
6588   done
6589 done
6590
6591 done
6592 IFS=$as_save_IFS
6593
6594
6595 fi
6596
6597 EGREP="$ac_cv_path_EGREP"
6598 if test -z "$EGREP"; then
6599   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6600 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6601    { (exit 1); exit 1; }; }
6602 fi
6603
6604 else
6605   ac_cv_path_EGREP=$EGREP
6606 fi
6607
6608
6609    fi
6610 fi
6611 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6612 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6613  EGREP="$ac_cv_path_EGREP"
6614
6615
6616 # Extract the first word of "ldconfig", so it can be a program name with args.
6617 set dummy ldconfig; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   case $LDCONFIG in
6624   [\\/]* | ?:[\\/]*)
6625   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6626   ;;
6627   *)
6628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in /sbin /usr/sbin $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633   for ac_exec_ext in '' $ac_executable_extensions; do
6634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6635     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640 done
6641 IFS=$as_save_IFS
6642
6643   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6644   ;;
6645 esac
6646 fi
6647 LDCONFIG=$ac_cv_path_LDCONFIG
6648 if test -n "$LDCONFIG"; then
6649   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6650 echo "${ECHO_T}$LDCONFIG" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 # Find a good install program.  We prefer a C program (faster),
6658 # so one script is as good as another.  But avoid the broken or
6659 # incompatible versions:
6660 # SysV /etc/install, /usr/sbin/install
6661 # SunOS /usr/etc/install
6662 # IRIX /sbin/install
6663 # AIX /bin/install
6664 # AmigaOS /C/install, which installs bootblocks on floppy discs
6665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6668 # OS/2's system install, which has a completely different semantic
6669 # ./install, which can be erroneously created by make from ./install.sh.
6670 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6671 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6672 if test -z "$INSTALL"; then
6673 if test "${ac_cv_path_install+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681   # Account for people who put trailing slashes in PATH elements.
6682 case $as_dir/ in
6683   ./ | .// | /cC/* | \
6684   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6685   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6686   /usr/ucb/* ) ;;
6687   *)
6688     # OSF1 and SCO ODT 3.0 have their own names for install.
6689     # Don't use installbsd from OSF since it installs stuff as root
6690     # by default.
6691     for ac_prog in ginstall scoinst install; do
6692       for ac_exec_ext in '' $ac_executable_extensions; do
6693         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6694           if test $ac_prog = install &&
6695             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6696             # AIX install.  It has an incompatible calling convention.
6697             :
6698           elif test $ac_prog = install &&
6699             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6700             # program-specific install script used by HP pwplus--don't use.
6701             :
6702           else
6703             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6704             break 3
6705           fi
6706         fi
6707       done
6708     done
6709     ;;
6710 esac
6711 done
6712 IFS=$as_save_IFS
6713
6714
6715 fi
6716   if test "${ac_cv_path_install+set}" = set; then
6717     INSTALL=$ac_cv_path_install
6718   else
6719     # As a last resort, use the slow shell script.  Don't cache a
6720     # value for INSTALL within a source directory, because that will
6721     # break other packages using the cache if that directory is
6722     # removed, or if the value is a relative name.
6723     INSTALL=$ac_install_sh
6724   fi
6725 fi
6726 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6727 echo "${ECHO_T}$INSTALL" >&6; }
6728
6729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6730 # It thinks the first close brace ends the variable substitution.
6731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6732
6733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6734
6735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6736
6737 case "$INSTALL" in
6738   [\\/$]* | ?:[\\/]* ) ;;
6739   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6740 esac
6741
6742 for ac_prog in lclint lint
6743 do
6744   # Extract the first word of "$ac_prog", so it can be a program name with args.
6745 set dummy $ac_prog; ac_word=$2
6746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6748 if test "${ac_cv_prog_LINT+set}" = set; then
6749   echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751   if test -n "$LINT"; then
6752   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757   IFS=$as_save_IFS
6758   test -z "$as_dir" && as_dir=.
6759   for ac_exec_ext in '' $ac_executable_extensions; do
6760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6761     ac_cv_prog_LINT="$ac_prog"
6762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763     break 2
6764   fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 LINT=$ac_cv_prog_LINT
6772 if test -n "$LINT"; then
6773   { echo "$as_me:$LINENO: result: $LINT" >&5
6774 echo "${ECHO_T}$LINT" >&6; }
6775 else
6776   { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6778 fi
6779
6780
6781   test -n "$LINT" && break
6782 done
6783
6784 if test "$LINT" = "lint"
6785 then
6786   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6787   fi
6788
6789
6790
6791 for ac_prog in fontforge
6792 do
6793   # Extract the first word of "$ac_prog", so it can be a program name with args.
6794 set dummy $ac_prog; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   if test -n "$FONTFORGE"; then
6801   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808   for ac_exec_ext in '' $ac_executable_extensions; do
6809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6810     ac_cv_prog_FONTFORGE="$ac_prog"
6811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 FONTFORGE=$ac_cv_prog_FONTFORGE
6821 if test -n "$FONTFORGE"; then
6822   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6823 echo "${ECHO_T}$FONTFORGE" >&6; }
6824 else
6825   { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6827 fi
6828
6829
6830   test -n "$FONTFORGE" && break
6831 done
6832 test -n "$FONTFORGE" || FONTFORGE="false"
6833
6834 for ac_prog in pkg-config
6835 do
6836   # Extract the first word of "$ac_prog", so it can be a program name with args.
6837 set dummy $ac_prog; ac_word=$2
6838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6841   echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843   if test -n "$PKG_CONFIG"; then
6844   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851   for ac_exec_ext in '' $ac_executable_extensions; do
6852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6853     ac_cv_prog_PKG_CONFIG="$ac_prog"
6854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6864 if test -n "$PKG_CONFIG"; then
6865   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6866 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6867 else
6868   { echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6; }
6870 fi
6871
6872
6873   test -n "$PKG_CONFIG" && break
6874 done
6875 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6876
6877
6878 case $host_cpu in
6879   *i[3456789]86*)
6880     # Extract the first word of "prelink", so it can be a program name with args.
6881 set dummy prelink; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_PRELINK+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   case $PRELINK in
6888   [\\/]* | ?:[\\/]*)
6889   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6890   ;;
6891   *)
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in /sbin /usr/sbin $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6908   ;;
6909 esac
6910 fi
6911 PRELINK=$ac_cv_path_PRELINK
6912 if test -n "$PRELINK"; then
6913   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6914 echo "${ECHO_T}$PRELINK" >&6; }
6915 else
6916   { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6918 fi
6919
6920
6921     ;;
6922 esac
6923
6924
6925
6926 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6927 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6928 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   ac_check_lib_save_LIBS=$LIBS
6932 LIBS="-li386  $LIBS"
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939
6940 /* Override any GCC internal prototype to avoid an error.
6941    Use char because int might match the return type of a GCC
6942    builtin and then its argument prototype would still apply.  */
6943 #ifdef __cplusplus
6944 extern "C"
6945 #endif
6946 char i386_set_ldt ();
6947 int
6948 main ()
6949 {
6950 return i386_set_ldt ();
6951   ;
6952   return 0;
6953 }
6954 _ACEOF
6955 rm -f conftest.$ac_objext conftest$ac_exeext
6956 if { (ac_try="$ac_link"
6957 case "(($ac_try" in
6958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959   *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962   (eval "$ac_link") 2>conftest.er1
6963   ac_status=$?
6964   grep -v '^ *+' conftest.er1 >conftest.err
6965   rm -f conftest.er1
6966   cat conftest.err >&5
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } &&
6969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6970   { (case "(($ac_try" in
6971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6972   *) ac_try_echo=$ac_try;;
6973 esac
6974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6975   (eval "$ac_try") 2>&5
6976   ac_status=$?
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); }; } &&
6979          { ac_try='test -s conftest$ac_exeext'
6980   { (case "(($ac_try" in
6981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982   *) ac_try_echo=$ac_try;;
6983 esac
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985   (eval "$ac_try") 2>&5
6986   ac_status=$?
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); }; }; then
6989   ac_cv_lib_i386_i386_set_ldt=yes
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994         ac_cv_lib_i386_i386_set_ldt=no
6995 fi
6996
6997 rm -f core conftest.err conftest.$ac_objext \
6998       conftest$ac_exeext conftest.$ac_ext
6999 LIBS=$ac_check_lib_save_LIBS
7000 fi
7001 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7002 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
7003 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
7004   cat >>confdefs.h <<_ACEOF
7005 #define HAVE_LIBI386 1
7006 _ACEOF
7007
7008   LIBS="-li386 $LIBS"
7009
7010 fi
7011
7012
7013 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7014 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
7015 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   ac_check_lib_save_LIBS=$LIBS
7019 LIBS="-lossaudio  $LIBS"
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h.  */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h.  */
7026
7027 /* Override any GCC internal prototype to avoid an error.
7028    Use char because int might match the return type of a GCC
7029    builtin and then its argument prototype would still apply.  */
7030 #ifdef __cplusplus
7031 extern "C"
7032 #endif
7033 char _oss_ioctl ();
7034 int
7035 main ()
7036 {
7037 return _oss_ioctl ();
7038   ;
7039   return 0;
7040 }
7041 _ACEOF
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (ac_try="$ac_link"
7044 case "(($ac_try" in
7045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046   *) ac_try_echo=$ac_try;;
7047 esac
7048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7049   (eval "$ac_link") 2>conftest.er1
7050   ac_status=$?
7051   grep -v '^ *+' conftest.er1 >conftest.err
7052   rm -f conftest.er1
7053   cat conftest.err >&5
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); } &&
7056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7057   { (case "(($ac_try" in
7058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059   *) ac_try_echo=$ac_try;;
7060 esac
7061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062   (eval "$ac_try") 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; } &&
7066          { ac_try='test -s conftest$ac_exeext'
7067   { (case "(($ac_try" in
7068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069   *) ac_try_echo=$ac_try;;
7070 esac
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072   (eval "$ac_try") 2>&5
7073   ac_status=$?
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); }; }; then
7076   ac_cv_lib_ossaudio__oss_ioctl=yes
7077 else
7078   echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7080
7081         ac_cv_lib_ossaudio__oss_ioctl=no
7082 fi
7083
7084 rm -f core conftest.err conftest.$ac_objext \
7085       conftest$ac_exeext conftest.$ac_ext
7086 LIBS=$ac_check_lib_save_LIBS
7087 fi
7088 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7089 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7090 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
7091   cat >>confdefs.h <<_ACEOF
7092 #define HAVE_LIBOSSAUDIO 1
7093 _ACEOF
7094
7095   LIBS="-lossaudio $LIBS"
7096
7097 fi
7098
7099
7100 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7101 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
7102 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   ac_check_lib_save_LIBS=$LIBS
7106 LIBS="-lxpg4  $LIBS"
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h.  */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h.  */
7113
7114 /* Override any GCC internal prototype to avoid an error.
7115    Use char because int might match the return type of a GCC
7116    builtin and then its argument prototype would still apply.  */
7117 #ifdef __cplusplus
7118 extern "C"
7119 #endif
7120 char _xpg4_setrunelocale ();
7121 int
7122 main ()
7123 {
7124 return _xpg4_setrunelocale ();
7125   ;
7126   return 0;
7127 }
7128 _ACEOF
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (ac_try="$ac_link"
7131 case "(($ac_try" in
7132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133   *) ac_try_echo=$ac_try;;
7134 esac
7135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136   (eval "$ac_link") 2>conftest.er1
7137   ac_status=$?
7138   grep -v '^ *+' conftest.er1 >conftest.err
7139   rm -f conftest.er1
7140   cat conftest.err >&5
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); } &&
7143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7144   { (case "(($ac_try" in
7145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146   *) ac_try_echo=$ac_try;;
7147 esac
7148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7149   (eval "$ac_try") 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); }; } &&
7153          { ac_try='test -s conftest$ac_exeext'
7154   { (case "(($ac_try" in
7155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156   *) ac_try_echo=$ac_try;;
7157 esac
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159   (eval "$ac_try") 2>&5
7160   ac_status=$?
7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162   (exit $ac_status); }; }; then
7163   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
7164 else
7165   echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7167
7168         ac_cv_lib_xpg4__xpg4_setrunelocale=no
7169 fi
7170
7171 rm -f core conftest.err conftest.$ac_objext \
7172       conftest$ac_exeext conftest.$ac_ext
7173 LIBS=$ac_check_lib_save_LIBS
7174 fi
7175 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7176 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
7177 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
7178   cat >>confdefs.h <<_ACEOF
7179 #define HAVE_LIBXPG4 1
7180 _ACEOF
7181
7182   LIBS="-lxpg4 $LIBS"
7183
7184 fi
7185
7186 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7187 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
7188 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   ac_check_lib_save_LIBS=$LIBS
7192 LIBS="-lpthread  $LIBS"
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h.  */
7199
7200 /* Override any GCC internal prototype to avoid an error.
7201    Use char because int might match the return type of a GCC
7202    builtin and then its argument prototype would still apply.  */
7203 #ifdef __cplusplus
7204 extern "C"
7205 #endif
7206 char pthread_create ();
7207 int
7208 main ()
7209 {
7210 return pthread_create ();
7211   ;
7212   return 0;
7213 }
7214 _ACEOF
7215 rm -f conftest.$ac_objext conftest$ac_exeext
7216 if { (ac_try="$ac_link"
7217 case "(($ac_try" in
7218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219   *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222   (eval "$ac_link") 2>conftest.er1
7223   ac_status=$?
7224   grep -v '^ *+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } &&
7229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7230   { (case "(($ac_try" in
7231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7232   *) ac_try_echo=$ac_try;;
7233 esac
7234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7235   (eval "$ac_try") 2>&5
7236   ac_status=$?
7237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238   (exit $ac_status); }; } &&
7239          { ac_try='test -s conftest$ac_exeext'
7240   { (case "(($ac_try" in
7241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242   *) ac_try_echo=$ac_try;;
7243 esac
7244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7245   (eval "$ac_try") 2>&5
7246   ac_status=$?
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); }; }; then
7249   ac_cv_lib_pthread_pthread_create=yes
7250 else
7251   echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7253
7254         ac_cv_lib_pthread_pthread_create=no
7255 fi
7256
7257 rm -f core conftest.err conftest.$ac_objext \
7258       conftest$ac_exeext conftest.$ac_ext
7259 LIBS=$ac_check_lib_save_LIBS
7260 fi
7261 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
7262 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
7263 if test $ac_cv_lib_pthread_pthread_create = yes; then
7264   LIBPTHREAD="-lpthread"
7265
7266 fi
7267
7268
7269 XLIB=""
7270
7271 XFILES=""
7272
7273 OPENGLFILES=""
7274
7275 GLU32FILES=""
7276
7277 OPENGL_LIBS=""
7278
7279
7280
7281 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7282 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7283 if test "${ac_cv_header_stdc+set}" = set; then
7284   echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286   cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h.  */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h.  */
7292 #include <stdlib.h>
7293 #include <stdarg.h>
7294 #include <string.h>
7295 #include <float.h>
7296
7297 int
7298 main ()
7299 {
7300
7301   ;
7302   return 0;
7303 }
7304 _ACEOF
7305 rm -f conftest.$ac_objext
7306 if { (ac_try="$ac_compile"
7307 case "(($ac_try" in
7308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309   *) ac_try_echo=$ac_try;;
7310 esac
7311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312   (eval "$ac_compile") 2>conftest.er1
7313   ac_status=$?
7314   grep -v '^ *+' conftest.er1 >conftest.err
7315   rm -f conftest.er1
7316   cat conftest.err >&5
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); } &&
7319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7320   { (case "(($ac_try" in
7321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322   *) ac_try_echo=$ac_try;;
7323 esac
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325   (eval "$ac_try") 2>&5
7326   ac_status=$?
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); }; } &&
7329          { ac_try='test -s conftest.$ac_objext'
7330   { (case "(($ac_try" in
7331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332   *) ac_try_echo=$ac_try;;
7333 esac
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335   (eval "$ac_try") 2>&5
7336   ac_status=$?
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); }; }; then
7339   ac_cv_header_stdc=yes
7340 else
7341   echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7343
7344         ac_cv_header_stdc=no
7345 fi
7346
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348
7349 if test $ac_cv_header_stdc = yes; then
7350   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7351   cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h.  */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h.  */
7357 #include <string.h>
7358
7359 _ACEOF
7360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7361   $EGREP "memchr" >/dev/null 2>&1; then
7362   :
7363 else
7364   ac_cv_header_stdc=no
7365 fi
7366 rm -f conftest*
7367
7368 fi
7369
7370 if test $ac_cv_header_stdc = yes; then
7371   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7372   cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h.  */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h.  */
7378 #include <stdlib.h>
7379
7380 _ACEOF
7381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7382   $EGREP "free" >/dev/null 2>&1; then
7383   :
7384 else
7385   ac_cv_header_stdc=no
7386 fi
7387 rm -f conftest*
7388
7389 fi
7390
7391 if test $ac_cv_header_stdc = yes; then
7392   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7393   if test "$cross_compiling" = yes; then
7394   :
7395 else
7396   cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h.  */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h.  */
7402 #include <ctype.h>
7403 #include <stdlib.h>
7404 #if ((' ' & 0x0FF) == 0x020)
7405 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7406 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7407 #else
7408 # define ISLOWER(c) \
7409                    (('a' <= (c) && (c) <= 'i') \
7410                      || ('j' <= (c) && (c) <= 'r') \
7411                      || ('s' <= (c) && (c) <= 'z'))
7412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7413 #endif
7414
7415 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7416 int
7417 main ()
7418 {
7419   int i;
7420   for (i = 0; i < 256; i++)
7421     if (XOR (islower (i), ISLOWER (i))
7422         || toupper (i) != TOUPPER (i))
7423       return 2;
7424   return 0;
7425 }
7426 _ACEOF
7427 rm -f conftest$ac_exeext
7428 if { (ac_try="$ac_link"
7429 case "(($ac_try" in
7430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431   *) ac_try_echo=$ac_try;;
7432 esac
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434   (eval "$ac_link") 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7438   { (case "(($ac_try" in
7439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7440   *) ac_try_echo=$ac_try;;
7441 esac
7442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7443   (eval "$ac_try") 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); }; }; then
7447   :
7448 else
7449   echo "$as_me: program exited with status $ac_status" >&5
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 ( exit $ac_status )
7454 ac_cv_header_stdc=no
7455 fi
7456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7457 fi
7458
7459
7460 fi
7461 fi
7462 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7463 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7464 if test $ac_cv_header_stdc = yes; then
7465
7466 cat >>confdefs.h <<\_ACEOF
7467 #define STDC_HEADERS 1
7468 _ACEOF
7469
7470 fi
7471
7472 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7483                   inttypes.h stdint.h unistd.h
7484 do
7485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7489   echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491   cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h.  */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h.  */
7497 $ac_includes_default
7498
7499 #include <$ac_header>
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (ac_try="$ac_compile"
7503 case "(($ac_try" in
7504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505   *) ac_try_echo=$ac_try;;
7506 esac
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508   (eval "$ac_compile") 2>conftest.er1
7509   ac_status=$?
7510   grep -v '^ *+' conftest.er1 >conftest.err
7511   rm -f conftest.er1
7512   cat conftest.err >&5
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); } &&
7515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7516   { (case "(($ac_try" in
7517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518   *) ac_try_echo=$ac_try;;
7519 esac
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521   (eval "$ac_try") 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }; } &&
7525          { ac_try='test -s conftest.$ac_objext'
7526   { (case "(($ac_try" in
7527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528   *) ac_try_echo=$ac_try;;
7529 esac
7530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7531   (eval "$ac_try") 2>&5
7532   ac_status=$?
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); }; }; then
7535   eval "$as_ac_Header=yes"
7536 else
7537   echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7539
7540         eval "$as_ac_Header=no"
7541 fi
7542
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 fi
7545 ac_res=`eval echo '${'$as_ac_Header'}'`
7546                { echo "$as_me:$LINENO: result: $ac_res" >&5
7547 echo "${ECHO_T}$ac_res" >&6; }
7548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7549   cat >>confdefs.h <<_ACEOF
7550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7551 _ACEOF
7552
7553 fi
7554
7555 done
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665 for ac_header in \
7666         AudioUnit/AudioUnit.h \
7667         CoreAudio/CoreAudio.h \
7668         IOKit/IOKitLib.h \
7669         alsa/asoundlib.h \
7670         arpa/inet.h \
7671         arpa/nameser.h \
7672         asm/types.h \
7673         capi20.h \
7674         cups/cups.h \
7675         curses.h \
7676         direct.h \
7677         dlfcn.h \
7678         elf.h \
7679         float.h \
7680         fontconfig/fontconfig.h \
7681         getopt.h \
7682         gif_lib.h \
7683         ieeefp.h \
7684         io.h \
7685         jack/jack.h \
7686         jpeglib.h \
7687         lber.h \
7688         lcms.h \
7689         lcms/lcms.h \
7690         ldap.h \
7691         libaudioio.h \
7692         link.h \
7693         linux/cdrom.h \
7694         linux/compiler.h \
7695         linux/hdreg.h \
7696         linux/input.h \
7697         linux/ioctl.h \
7698         linux/joystick.h \
7699         linux/major.h \
7700         linux/param.h \
7701         linux/serial.h \
7702         linux/ucdrom.h \
7703         mach/machine.h \
7704         machine/cpu.h \
7705         machine/limits.h \
7706         machine/soundcard.h \
7707         mntent.h \
7708         ncurses.h \
7709         netdb.h \
7710         netinet/in.h \
7711         netinet/in_systm.h \
7712         netinet/tcp.h \
7713         netinet/tcp_fsm.h \
7714         openssl/err.h \
7715         openssl/ssl.h \
7716         poll.h \
7717         process.h \
7718         pthread.h \
7719         pwd.h \
7720         regex.h \
7721         sched.h \
7722         scsi/scsi.h \
7723         scsi/scsi_ioctl.h \
7724         scsi/sg.h \
7725         soundcard.h \
7726         stdint.h \
7727         strings.h \
7728         sys/asoundlib.h \
7729         sys/cdio.h \
7730         sys/elf32.h \
7731         sys/epoll.h \
7732         sys/errno.h \
7733         sys/event.h \
7734         sys/exec_elf.h \
7735         sys/filio.h \
7736         sys/ioctl.h \
7737         sys/ipc.h \
7738         sys/limits.h \
7739         sys/link.h \
7740         sys/lwp.h \
7741         sys/mman.h \
7742         sys/modem.h \
7743         sys/msg.h \
7744         sys/mtio.h \
7745         sys/param.h \
7746         sys/poll.h \
7747         sys/prctl.h \
7748         sys/ptrace.h \
7749         sys/reg.h \
7750         sys/resource.h \
7751         sys/scsiio.h \
7752         sys/shm.h \
7753         sys/signal.h \
7754         sys/socket.h \
7755         sys/sockio.h \
7756         sys/soundcard.h \
7757         sys/statvfs.h \
7758         sys/strtio.h \
7759         sys/syscall.h \
7760         sys/sysctl.h \
7761         sys/time.h \
7762         sys/times.h \
7763         sys/uio.h \
7764         sys/un.h \
7765         sys/vm86.h \
7766         sys/wait.h \
7767         syscall.h \
7768         termios.h \
7769         unicode/ubidi.h \
7770         unistd.h \
7771         utime.h \
7772         valgrind/memcheck.h
7773
7774 do
7775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7777   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 fi
7782 ac_res=`eval echo '${'$as_ac_Header'}'`
7783                { echo "$as_me:$LINENO: result: $ac_res" >&5
7784 echo "${ECHO_T}$ac_res" >&6; }
7785 else
7786   # Is the header compilable?
7787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795 $ac_includes_default
7796 #include <$ac_header>
7797 _ACEOF
7798 rm -f conftest.$ac_objext
7799 if { (ac_try="$ac_compile"
7800 case "(($ac_try" in
7801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802   *) ac_try_echo=$ac_try;;
7803 esac
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805   (eval "$ac_compile") 2>conftest.er1
7806   ac_status=$?
7807   grep -v '^ *+' conftest.er1 >conftest.err
7808   rm -f conftest.er1
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } &&
7812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7813   { (case "(($ac_try" in
7814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815   *) ac_try_echo=$ac_try;;
7816 esac
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818   (eval "$ac_try") 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; } &&
7822          { ac_try='test -s conftest.$ac_objext'
7823   { (case "(($ac_try" in
7824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825   *) ac_try_echo=$ac_try;;
7826 esac
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828   (eval "$ac_try") 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; }; then
7832   ac_header_compiler=yes
7833 else
7834   echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837         ac_header_compiler=no
7838 fi
7839
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842 echo "${ECHO_T}$ac_header_compiler" >&6; }
7843
7844 # Is the header present?
7845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7847 cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h.  */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h.  */
7853 #include <$ac_header>
7854 _ACEOF
7855 if { (ac_try="$ac_cpp conftest.$ac_ext"
7856 case "(($ac_try" in
7857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858   *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7862   ac_status=$?
7863   grep -v '^ *+' conftest.er1 >conftest.err
7864   rm -f conftest.er1
7865   cat conftest.err >&5
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); } >/dev/null; then
7868   if test -s conftest.err; then
7869     ac_cpp_err=$ac_c_preproc_warn_flag
7870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7871   else
7872     ac_cpp_err=
7873   fi
7874 else
7875   ac_cpp_err=yes
7876 fi
7877 if test -z "$ac_cpp_err"; then
7878   ac_header_preproc=yes
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883   ac_header_preproc=no
7884 fi
7885
7886 rm -f conftest.err conftest.$ac_ext
7887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7888 echo "${ECHO_T}$ac_header_preproc" >&6; }
7889
7890 # So?  What about this header?
7891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7892   yes:no: )
7893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7897     ac_header_preproc=yes
7898     ;;
7899   no:yes:* )
7900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7912     ( cat <<\_ASBOX
7913 ## ------------------------------------ ##
7914 ## Report this to wine-devel@winehq.org ##
7915 ## ------------------------------------ ##
7916 _ASBOX
7917      ) | sed "s/^/$as_me: WARNING:     /" >&2
7918     ;;
7919 esac
7920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925   eval "$as_ac_Header=\$ac_header_preproc"
7926 fi
7927 ac_res=`eval echo '${'$as_ac_Header'}'`
7928                { echo "$as_me:$LINENO: result: $ac_res" >&5
7929 echo "${ECHO_T}$ac_res" >&6; }
7930
7931 fi
7932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7933   cat >>confdefs.h <<_ACEOF
7934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7935 _ACEOF
7936
7937 fi
7938
7939 done
7940
7941 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7942 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7943 if test "${ac_cv_header_stat_broken+set}" = set; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946   cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952 #include <sys/types.h>
7953 #include <sys/stat.h>
7954
7955 #if defined S_ISBLK && defined S_IFDIR
7956 # if S_ISBLK (S_IFDIR)
7957 You lose.
7958 # endif
7959 #endif
7960
7961 #if defined S_ISBLK && defined S_IFCHR
7962 # if S_ISBLK (S_IFCHR)
7963 You lose.
7964 # endif
7965 #endif
7966
7967 #if defined S_ISLNK && defined S_IFREG
7968 # if S_ISLNK (S_IFREG)
7969 You lose.
7970 # endif
7971 #endif
7972
7973 #if defined S_ISSOCK && defined S_IFREG
7974 # if S_ISSOCK (S_IFREG)
7975 You lose.
7976 # endif
7977 #endif
7978
7979 _ACEOF
7980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7981   $EGREP "You lose" >/dev/null 2>&1; then
7982   ac_cv_header_stat_broken=yes
7983 else
7984   ac_cv_header_stat_broken=no
7985 fi
7986 rm -f conftest*
7987
7988 fi
7989 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7990 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7991 if test $ac_cv_header_stat_broken = yes; then
7992
7993 cat >>confdefs.h <<\_ACEOF
7994 #define STAT_MACROS_BROKEN 1
7995 _ACEOF
7996
7997 fi
7998
7999
8000
8001
8002
8003
8004
8005 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8006 do
8007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h.  */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h.  */
8019 #include <sys/types.h>
8020      #if HAVE_SYS_PARAM_H
8021      # include <sys/param.h>
8022      #endif
8023
8024 #include <$ac_header>
8025 _ACEOF
8026 rm -f conftest.$ac_objext
8027 if { (ac_try="$ac_compile"
8028 case "(($ac_try" in
8029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030   *) ac_try_echo=$ac_try;;
8031 esac
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033   (eval "$ac_compile") 2>conftest.er1
8034   ac_status=$?
8035   grep -v '^ *+' conftest.er1 >conftest.err
8036   rm -f conftest.er1
8037   cat conftest.err >&5
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); } &&
8040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8041   { (case "(($ac_try" in
8042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043   *) ac_try_echo=$ac_try;;
8044 esac
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046   (eval "$ac_try") 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); }; } &&
8050          { ac_try='test -s conftest.$ac_objext'
8051   { (case "(($ac_try" in
8052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053   *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056   (eval "$ac_try") 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; }; then
8060   eval "$as_ac_Header=yes"
8061 else
8062   echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065         eval "$as_ac_Header=no"
8066 fi
8067
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 fi
8070 ac_res=`eval echo '${'$as_ac_Header'}'`
8071                { echo "$as_me:$LINENO: result: $ac_res" >&5
8072 echo "${ECHO_T}$ac_res" >&6; }
8073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8074   cat >>confdefs.h <<_ACEOF
8075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8076 _ACEOF
8077
8078 fi
8079
8080 done
8081
8082
8083
8084
8085
8086
8087
8088
8089 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
8090 do
8091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103 #include <sys/types.h>
8104      #if HAVE_SYS_SOCKET_H
8105      # include <sys/socket.h>
8106      #endif
8107
8108 #include <$ac_header>
8109 _ACEOF
8110 rm -f conftest.$ac_objext
8111 if { (ac_try="$ac_compile"
8112 case "(($ac_try" in
8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114   *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117   (eval "$ac_compile") 2>conftest.er1
8118   ac_status=$?
8119   grep -v '^ *+' conftest.er1 >conftest.err
8120   rm -f conftest.er1
8121   cat conftest.err >&5
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); } &&
8124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8125   { (case "(($ac_try" in
8126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127   *) ac_try_echo=$ac_try;;
8128 esac
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130   (eval "$ac_try") 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; } &&
8134          { ac_try='test -s conftest.$ac_objext'
8135   { (case "(($ac_try" in
8136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137   *) ac_try_echo=$ac_try;;
8138 esac
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140   (eval "$ac_try") 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; }; then
8144   eval "$as_ac_Header=yes"
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149         eval "$as_ac_Header=no"
8150 fi
8151
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153 fi
8154 ac_res=`eval echo '${'$as_ac_Header'}'`
8155                { echo "$as_me:$LINENO: result: $ac_res" >&5
8156 echo "${ECHO_T}$ac_res" >&6; }
8157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8158   cat >>confdefs.h <<_ACEOF
8159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8160 _ACEOF
8161
8162 fi
8163
8164 done
8165
8166
8167
8168 for ac_header in linux/ipx.h
8169 do
8170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8174   echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176   cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h.  */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h.  */
8182 #include <sys/types.h>
8183      #ifdef HAVE_ASM_TYPES_H
8184      # include <asm/types.h>
8185      #endif
8186      #if HAVE_SYS_SOCKET_H
8187      # include <sys/socket.h>
8188      #endif
8189
8190 #include <$ac_header>
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8194 case "(($ac_try" in
8195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196   *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199   (eval "$ac_compile") 2>conftest.er1
8200   ac_status=$?
8201   grep -v '^ *+' conftest.er1 >conftest.err
8202   rm -f conftest.er1
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } &&
8206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8207   { (case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212   (eval "$ac_try") 2>&5
8213   ac_status=$?
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); }; } &&
8216          { ac_try='test -s conftest.$ac_objext'
8217   { (case "(($ac_try" in
8218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219   *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222   (eval "$ac_try") 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; }; then
8226   eval "$as_ac_Header=yes"
8227 else
8228   echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231         eval "$as_ac_Header=no"
8232 fi
8233
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 fi
8236 ac_res=`eval echo '${'$as_ac_Header'}'`
8237                { echo "$as_me:$LINENO: result: $ac_res" >&5
8238 echo "${ECHO_T}$ac_res" >&6; }
8239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8240   cat >>confdefs.h <<_ACEOF
8241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 _ACEOF
8243
8244 fi
8245
8246 done
8247
8248
8249
8250 for ac_header in resolv.h
8251 do
8252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8256   echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258   cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h.  */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h.  */
8264 #include <sys/types.h>
8265      #if HAVE_SYS_SOCKET_H
8266      # include <sys/socket.h>
8267      #endif
8268      #if HAVE_NETINET_IN_H
8269      # include <netinet/in.h>
8270      #endif
8271      #if HAVE_ARPA_NAMESER_H
8272      # include <arpa/nameser.h>
8273      #endif
8274
8275 #include <$ac_header>
8276 _ACEOF
8277 rm -f conftest.$ac_objext
8278 if { (ac_try="$ac_compile"
8279 case "(($ac_try" in
8280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281   *) ac_try_echo=$ac_try;;
8282 esac
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284   (eval "$ac_compile") 2>conftest.er1
8285   ac_status=$?
8286   grep -v '^ *+' conftest.er1 >conftest.err
8287   rm -f conftest.er1
8288   cat conftest.err >&5
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); } &&
8291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8292   { (case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297   (eval "$ac_try") 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; } &&
8301          { ac_try='test -s conftest.$ac_objext'
8302   { (case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307   (eval "$ac_try") 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; }; then
8311   eval "$as_ac_Header=yes"
8312 else
8313   echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316         eval "$as_ac_Header=no"
8317 fi
8318
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 fi
8321 ac_res=`eval echo '${'$as_ac_Header'}'`
8322                { echo "$as_me:$LINENO: result: $ac_res" >&5
8323 echo "${ECHO_T}$ac_res" >&6; }
8324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8325   cat >>confdefs.h <<_ACEOF
8326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8327 _ACEOF
8328
8329 fi
8330
8331 done
8332
8333
8334
8335 for ac_header in ucontext.h
8336 do
8337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343   cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349 #include <signal.h>
8350
8351 #include <$ac_header>
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357   *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360   (eval "$ac_compile") 2>conftest.er1
8361   ac_status=$?
8362   grep -v '^ *+' conftest.er1 >conftest.err
8363   rm -f conftest.er1
8364   cat conftest.err >&5
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); } &&
8367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8368   { (case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373   (eval "$ac_try") 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; } &&
8377          { ac_try='test -s conftest.$ac_objext'
8378   { (case "(($ac_try" in
8379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380   *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383   (eval "$ac_try") 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   eval "$as_ac_Header=yes"
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392         eval "$as_ac_Header=no"
8393 fi
8394
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 fi
8397 ac_res=`eval echo '${'$as_ac_Header'}'`
8398                { echo "$as_me:$LINENO: result: $ac_res" >&5
8399 echo "${ECHO_T}$ac_res" >&6; }
8400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8401   cat >>confdefs.h <<_ACEOF
8402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8403 _ACEOF
8404
8405 fi
8406
8407 done
8408
8409
8410
8411 for ac_header in pthread_np.h
8412 do
8413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8417   echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419   cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425 #ifdef HAVE_PTHREAD_H
8426 #include <pthread.h>
8427 #endif
8428
8429 #include <$ac_header>
8430 _ACEOF
8431 rm -f conftest.$ac_objext
8432 if { (ac_try="$ac_compile"
8433 case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_compile") 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } &&
8445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446   { (case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_try") 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest.$ac_objext'
8456   { (case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_try") 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; }; then
8465   eval "$as_ac_Header=yes"
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470         eval "$as_ac_Header=no"
8471 fi
8472
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 ac_res=`eval echo '${'$as_ac_Header'}'`
8476                { echo "$as_me:$LINENO: result: $ac_res" >&5
8477 echo "${ECHO_T}$ac_res" >&6; }
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479   cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481 _ACEOF
8482
8483 fi
8484
8485 done
8486
8487
8488
8489 for ac_header in linux/videodev.h
8490 do
8491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503 #ifdef HAVE_SYS_TIME_H
8504 #include <sys/time.h>
8505 #endif
8506 #include <sys/types.h>
8507 #ifdef HAVE_ASM_TYPES_H
8508 #include <asm/types.h>
8509 #endif
8510
8511 #include <$ac_header>
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8515 case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_compile") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } &&
8527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528   { (case "(($ac_try" in
8529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530   *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533   (eval "$ac_try") 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; } &&
8537          { ac_try='test -s conftest.$ac_objext'
8538   { (case "(($ac_try" in
8539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540   *) ac_try_echo=$ac_try;;
8541 esac
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543   (eval "$ac_try") 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; }; then
8547   eval "$as_ac_Header=yes"
8548 else
8549   echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552         eval "$as_ac_Header=no"
8553 fi
8554
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 fi
8557 ac_res=`eval echo '${'$as_ac_Header'}'`
8558                { echo "$as_me:$LINENO: result: $ac_res" >&5
8559 echo "${ECHO_T}$ac_res" >&6; }
8560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8561   cat >>confdefs.h <<_ACEOF
8562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8563 _ACEOF
8564
8565 fi
8566
8567 done
8568
8569
8570
8571 for ac_header in linux/capi.h
8572 do
8573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8577   echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579   cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585 #define __user
8586
8587 #include <$ac_header>
8588 _ACEOF
8589 rm -f conftest.$ac_objext
8590 if { (ac_try="$ac_compile"
8591 case "(($ac_try" in
8592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593   *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596   (eval "$ac_compile") 2>conftest.er1
8597   ac_status=$?
8598   grep -v '^ *+' conftest.er1 >conftest.err
8599   rm -f conftest.er1
8600   cat conftest.err >&5
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } &&
8603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8604   { (case "(($ac_try" in
8605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606   *) ac_try_echo=$ac_try;;
8607 esac
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609   (eval "$ac_try") 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); }; } &&
8613          { ac_try='test -s conftest.$ac_objext'
8614   { (case "(($ac_try" in
8615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616   *) ac_try_echo=$ac_try;;
8617 esac
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619   (eval "$ac_try") 2>&5
8620   ac_status=$?
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); }; }; then
8623   eval "$as_ac_Header=yes"
8624 else
8625   echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628         eval "$as_ac_Header=no"
8629 fi
8630
8631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 fi
8633 ac_res=`eval echo '${'$as_ac_Header'}'`
8634                { echo "$as_me:$LINENO: result: $ac_res" >&5
8635 echo "${ECHO_T}$ac_res" >&6; }
8636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8637   cat >>confdefs.h <<_ACEOF
8638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8639 _ACEOF
8640
8641 fi
8642
8643 done
8644
8645
8646
8647 if test "$have_x" = "yes"
8648 then
8649     XLIB="-lXext -lX11"
8650     ac_save_CPPFLAGS="$CPPFLAGS"
8651     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662 for ac_header in X11/Xlib.h \
8663                       X11/XKBlib.h \
8664                       X11/Xutil.h \
8665                       X11/extensions/shape.h \
8666                       X11/extensions/XInput.h \
8667                       X11/extensions/XShm.h \
8668                       X11/extensions/Xrandr.h \
8669                       X11/extensions/Xrender.h \
8670                       X11/extensions/xf86vmode.h
8671 do
8672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8676   echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678   cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684 #ifdef HAVE_X11_XLIB_H
8685 # include <X11/Xlib.h>
8686 #endif
8687 #ifdef HAVE_X11_XUTIL_H
8688 # include <X11/Xutil.h>
8689 #endif
8690
8691 #include <$ac_header>
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697   *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700   (eval "$ac_compile") 2>conftest.er1
8701   ac_status=$?
8702   grep -v '^ *+' conftest.er1 >conftest.err
8703   rm -f conftest.er1
8704   cat conftest.err >&5
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); } &&
8707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8708   { (case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713   (eval "$ac_try") 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; } &&
8717          { ac_try='test -s conftest.$ac_objext'
8718   { (case "(($ac_try" in
8719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720   *) ac_try_echo=$ac_try;;
8721 esac
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723   (eval "$ac_try") 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; }; then
8727   eval "$as_ac_Header=yes"
8728 else
8729   echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8731
8732         eval "$as_ac_Header=no"
8733 fi
8734
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 fi
8737 ac_res=`eval echo '${'$as_ac_Header'}'`
8738                { echo "$as_me:$LINENO: result: $ac_res" >&5
8739 echo "${ECHO_T}$ac_res" >&6; }
8740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8741   cat >>confdefs.h <<_ACEOF
8742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8743 _ACEOF
8744
8745 fi
8746
8747 done
8748
8749
8750                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8751         then
8752               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
8753 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
8754 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
8755   echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757   ac_check_lib_save_LIBS=$LIBS
8758 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h.  */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h.  */
8765
8766 /* Override any GCC internal prototype to avoid an error.
8767    Use char because int might match the return type of a GCC
8768    builtin and then its argument prototype would still apply.  */
8769 #ifdef __cplusplus
8770 extern "C"
8771 #endif
8772 char XkbQueryExtension ();
8773 int
8774 main ()
8775 {
8776 return XkbQueryExtension ();
8777   ;
8778   return 0;
8779 }
8780 _ACEOF
8781 rm -f conftest.$ac_objext conftest$ac_exeext
8782 if { (ac_try="$ac_link"
8783 case "(($ac_try" in
8784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785   *) ac_try_echo=$ac_try;;
8786 esac
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788   (eval "$ac_link") 2>conftest.er1
8789   ac_status=$?
8790   grep -v '^ *+' conftest.er1 >conftest.err
8791   rm -f conftest.er1
8792   cat conftest.err >&5
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } &&
8795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8796   { (case "(($ac_try" in
8797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798   *) ac_try_echo=$ac_try;;
8799 esac
8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801   (eval "$ac_try") 2>&5
8802   ac_status=$?
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); }; } &&
8805          { ac_try='test -s conftest$ac_exeext'
8806   { (case "(($ac_try" in
8807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808   *) ac_try_echo=$ac_try;;
8809 esac
8810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811   (eval "$ac_try") 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   ac_cv_lib_X11_XkbQueryExtension=yes
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820         ac_cv_lib_X11_XkbQueryExtension=no
8821 fi
8822
8823 rm -f core conftest.err conftest.$ac_objext \
8824       conftest$ac_exeext conftest.$ac_ext
8825 LIBS=$ac_check_lib_save_LIBS
8826 fi
8827 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8828 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8829 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
8830
8831 cat >>confdefs.h <<\_ACEOF
8832 #define HAVE_XKB 1
8833 _ACEOF
8834
8835 fi
8836
8837         fi
8838
8839                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8840         then
8841               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
8842 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
8843 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846   ac_check_lib_save_LIBS=$LIBS
8847 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854
8855 /* Override any GCC internal prototype to avoid an error.
8856    Use char because int might match the return type of a GCC
8857    builtin and then its argument prototype would still apply.  */
8858 #ifdef __cplusplus
8859 extern "C"
8860 #endif
8861 char XShmQueryExtension ();
8862 int
8863 main ()
8864 {
8865 return XShmQueryExtension ();
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (ac_try="$ac_link"
8872 case "(($ac_try" in
8873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874   *) ac_try_echo=$ac_try;;
8875 esac
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877   (eval "$ac_link") 2>conftest.er1
8878   ac_status=$?
8879   grep -v '^ *+' conftest.er1 >conftest.err
8880   rm -f conftest.er1
8881   cat conftest.err >&5
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); } &&
8884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8885   { (case "(($ac_try" in
8886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887   *) ac_try_echo=$ac_try;;
8888 esac
8889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8890   (eval "$ac_try") 2>&5
8891   ac_status=$?
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); }; } &&
8894          { ac_try='test -s conftest$ac_exeext'
8895   { (case "(($ac_try" in
8896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897   *) ac_try_echo=$ac_try;;
8898 esac
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900   (eval "$ac_try") 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; }; then
8904   ac_cv_lib_Xext_XShmQueryExtension=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909         ac_cv_lib_Xext_XShmQueryExtension=no
8910 fi
8911
8912 rm -f core conftest.err conftest.$ac_objext \
8913       conftest$ac_exeext conftest.$ac_ext
8914 LIBS=$ac_check_lib_save_LIBS
8915 fi
8916 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8917 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8918 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8919
8920 cat >>confdefs.h <<\_ACEOF
8921 #define HAVE_LIBXXSHM 1
8922 _ACEOF
8923
8924 fi
8925
8926         fi
8927
8928                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8929         then
8930               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8931 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
8932 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8933   echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
8935   ac_check_lib_save_LIBS=$LIBS
8936 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8937 cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h.  */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h.  */
8943
8944 /* Override any GCC internal prototype to avoid an error.
8945    Use char because int might match the return type of a GCC
8946    builtin and then its argument prototype would still apply.  */
8947 #ifdef __cplusplus
8948 extern "C"
8949 #endif
8950 char XShapeQueryExtension ();
8951 int
8952 main ()
8953 {
8954 return XShapeQueryExtension ();
8955   ;
8956   return 0;
8957 }
8958 _ACEOF
8959 rm -f conftest.$ac_objext conftest$ac_exeext
8960 if { (ac_try="$ac_link"
8961 case "(($ac_try" in
8962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963   *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966   (eval "$ac_link") 2>conftest.er1
8967   ac_status=$?
8968   grep -v '^ *+' conftest.er1 >conftest.err
8969   rm -f conftest.er1
8970   cat conftest.err >&5
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); } &&
8973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974   { (case "(($ac_try" in
8975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976   *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979   (eval "$ac_try") 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; } &&
8983          { ac_try='test -s conftest$ac_exeext'
8984   { (case "(($ac_try" in
8985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986   *) ac_try_echo=$ac_try;;
8987 esac
8988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989   (eval "$ac_try") 2>&5
8990   ac_status=$?
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); }; }; then
8993   ac_cv_lib_Xext_XShapeQueryExtension=yes
8994 else
8995   echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998         ac_cv_lib_Xext_XShapeQueryExtension=no
8999 fi
9000
9001 rm -f core conftest.err conftest.$ac_objext \
9002       conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9004 fi
9005 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9006 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9007 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9008
9009 cat >>confdefs.h <<\_ACEOF
9010 #define HAVE_LIBXSHAPE 1
9011 _ACEOF
9012
9013 fi
9014
9015         fi
9016
9017                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9018         then
9019                 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9020 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9021 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024   ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032
9033 /* Override any GCC internal prototype to avoid an error.
9034    Use char because int might match the return type of a GCC
9035    builtin and then its argument prototype would still apply.  */
9036 #ifdef __cplusplus
9037 extern "C"
9038 #endif
9039 char XF86VidModeQueryExtension ();
9040 int
9041 main ()
9042 {
9043 return XF86VidModeQueryExtension ();
9044   ;
9045   return 0;
9046 }
9047 _ACEOF
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (ac_try="$ac_link"
9050 case "(($ac_try" in
9051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052   *) ac_try_echo=$ac_try;;
9053 esac
9054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9055   (eval "$ac_link") 2>conftest.er1
9056   ac_status=$?
9057   grep -v '^ *+' conftest.er1 >conftest.err
9058   rm -f conftest.er1
9059   cat conftest.err >&5
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); } &&
9062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9063   { (case "(($ac_try" in
9064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065   *) ac_try_echo=$ac_try;;
9066 esac
9067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068   (eval "$ac_try") 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; } &&
9072          { ac_try='test -s conftest$ac_exeext'
9073   { (case "(($ac_try" in
9074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075   *) ac_try_echo=$ac_try;;
9076 esac
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078   (eval "$ac_try") 2>&5
9079   ac_status=$?
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); }; }; then
9082   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9083 else
9084   echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9086
9087         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9088 fi
9089
9090 rm -f core conftest.err conftest.$ac_objext \
9091       conftest$ac_exeext conftest.$ac_ext
9092 LIBS=$ac_check_lib_save_LIBS
9093 fi
9094 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9095 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9096 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9097
9098 cat >>confdefs.h <<\_ACEOF
9099 #define HAVE_LIBXXF86VM 1
9100 _ACEOF
9101
9102                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9103
9104 fi
9105
9106         fi
9107
9108                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9109         then
9110                 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h.  */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h.  */
9116 #include <X11/Xlib.h>
9117 #include <X11/extensions/Xrandr.h>
9118 int
9119 main ()
9120 {
9121 static typeof(XRRSetScreenConfigAndRate) * func;
9122   ;
9123   return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext
9127 if { (ac_try="$ac_compile"
9128 case "(($ac_try" in
9129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130   *) ac_try_echo=$ac_try;;
9131 esac
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133   (eval "$ac_compile") 2>conftest.er1
9134   ac_status=$?
9135   grep -v '^ *+' conftest.er1 >conftest.err
9136   rm -f conftest.er1
9137   cat conftest.err >&5
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); } &&
9140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9141   { (case "(($ac_try" in
9142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143   *) ac_try_echo=$ac_try;;
9144 esac
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146   (eval "$ac_try") 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); }; } &&
9150          { ac_try='test -s conftest.$ac_objext'
9151   { (case "(($ac_try" in
9152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153   *) ac_try_echo=$ac_try;;
9154 esac
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156   (eval "$ac_try") 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; }; then
9160
9161 cat >>confdefs.h <<\_ACEOF
9162 #define HAVE_LIBXRANDR 1
9163 _ACEOF
9164
9165 else
9166   echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9168
9169
9170 fi
9171
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9173         fi
9174
9175                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9176         then
9177               { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9178 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9179 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   ac_check_lib_save_LIBS=$LIBS
9183 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9184 cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h.  */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h.  */
9190
9191 /* Override any GCC internal prototype to avoid an error.
9192    Use char because int might match the return type of a GCC
9193    builtin and then its argument prototype would still apply.  */
9194 #ifdef __cplusplus
9195 extern "C"
9196 #endif
9197 char XRenderSetPictureTransform ();
9198 int
9199 main ()
9200 {
9201 return XRenderSetPictureTransform ();
9202   ;
9203   return 0;
9204 }
9205 _ACEOF
9206 rm -f conftest.$ac_objext conftest$ac_exeext
9207 if { (ac_try="$ac_link"
9208 case "(($ac_try" in
9209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210   *) ac_try_echo=$ac_try;;
9211 esac
9212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213   (eval "$ac_link") 2>conftest.er1
9214   ac_status=$?
9215   grep -v '^ *+' conftest.er1 >conftest.err
9216   rm -f conftest.er1
9217   cat conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221   { (case "(($ac_try" in
9222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223   *) ac_try_echo=$ac_try;;
9224 esac
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226   (eval "$ac_try") 2>&5
9227   ac_status=$?
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); }; } &&
9230          { ac_try='test -s conftest$ac_exeext'
9231   { (case "(($ac_try" in
9232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233   *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236   (eval "$ac_try") 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); }; }; then
9240   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9241 else
9242   echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9244
9245         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9246 fi
9247
9248 rm -f core conftest.err conftest.$ac_objext \
9249       conftest$ac_exeext conftest.$ac_ext
9250 LIBS=$ac_check_lib_save_LIBS
9251 fi
9252 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9253 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9254 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9255
9256 cat >>confdefs.h <<\_ACEOF
9257 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9258 _ACEOF
9259
9260 fi
9261
9262         fi
9263
9264         if test "x$with_opengl" != "xno"
9265     then
9266
9267
9268
9269
9270 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9271 do
9272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9276   echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278   cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284 #ifdef HAVE_GL_GLX_H
9285 # include <GL/glx.h>
9286 #endif
9287
9288 #include <$ac_header>
9289 _ACEOF
9290 rm -f conftest.$ac_objext
9291 if { (ac_try="$ac_compile"
9292 case "(($ac_try" in
9293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294   *) ac_try_echo=$ac_try;;
9295 esac
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297   (eval "$ac_compile") 2>conftest.er1
9298   ac_status=$?
9299   grep -v '^ *+' conftest.er1 >conftest.err
9300   rm -f conftest.er1
9301   cat conftest.err >&5
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); } &&
9304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9305   { (case "(($ac_try" in
9306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307   *) ac_try_echo=$ac_try;;
9308 esac
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310   (eval "$ac_try") 2>&5
9311   ac_status=$?
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); }; } &&
9314          { ac_try='test -s conftest.$ac_objext'
9315   { (case "(($ac_try" in
9316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317   *) ac_try_echo=$ac_try;;
9318 esac
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320   (eval "$ac_try") 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; }; then
9324   eval "$as_ac_Header=yes"
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329         eval "$as_ac_Header=no"
9330 fi
9331
9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333 fi
9334 ac_res=`eval echo '${'$as_ac_Header'}'`
9335                { echo "$as_me:$LINENO: result: $ac_res" >&5
9336 echo "${ECHO_T}$ac_res" >&6; }
9337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9338   cat >>confdefs.h <<_ACEOF
9339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9340 _ACEOF
9341
9342 fi
9343
9344 done
9345
9346         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9347         then
9348                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9349 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
9350 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353   cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9359 #include <GL/gl.h>
9360 int
9361 main ()
9362 {
9363 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
9364   ;
9365   return 0;
9366 }
9367 _ACEOF
9368 rm -f conftest.$ac_objext
9369 if { (ac_try="$ac_compile"
9370 case "(($ac_try" in
9371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372   *) ac_try_echo=$ac_try;;
9373 esac
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375   (eval "$ac_compile") 2>conftest.er1
9376   ac_status=$?
9377   grep -v '^ *+' conftest.er1 >conftest.err
9378   rm -f conftest.er1
9379   cat conftest.err >&5
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); } &&
9382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9383   { (case "(($ac_try" in
9384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385   *) ac_try_echo=$ac_try;;
9386 esac
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388   (eval "$ac_try") 2>&5
9389   ac_status=$?
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); }; } &&
9392          { ac_try='test -s conftest.$ac_objext'
9393   { (case "(($ac_try" in
9394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395   *) ac_try_echo=$ac_try;;
9396 esac
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398   (eval "$ac_try") 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; }; then
9402   wine_cv_opengl_header_version_OK="yes"
9403 else
9404   echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407         wine_cv_opengl_header_version_OK="no"
9408
9409 fi
9410
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412
9413 fi
9414 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
9415 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
9416
9417             if test "$wine_cv_opengl_header_version_OK" = "yes"
9418             then
9419                                 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
9420 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
9421 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   ac_check_lib_save_LIBS=$LIBS
9425 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432
9433 /* Override any GCC internal prototype to avoid an error.
9434    Use char because int might match the return type of a GCC
9435    builtin and then its argument prototype would still apply.  */
9436 #ifdef __cplusplus
9437 extern "C"
9438 #endif
9439 char glXCreateContext ();
9440 int
9441 main ()
9442 {
9443 return glXCreateContext ();
9444   ;
9445   return 0;
9446 }
9447 _ACEOF
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9450 case "(($ac_try" in
9451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452   *) ac_try_echo=$ac_try;;
9453 esac
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455   (eval "$ac_link") 2>conftest.er1
9456   ac_status=$?
9457   grep -v '^ *+' conftest.er1 >conftest.err
9458   rm -f conftest.er1
9459   cat conftest.err >&5
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); } &&
9462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9463   { (case "(($ac_try" in
9464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465   *) ac_try_echo=$ac_try;;
9466 esac
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468   (eval "$ac_try") 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; } &&
9472          { ac_try='test -s conftest$ac_exeext'
9473   { (case "(($ac_try" in
9474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475   *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478   (eval "$ac_try") 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; }; then
9482   ac_cv_lib_GL_glXCreateContext=yes
9483 else
9484   echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487         ac_cv_lib_GL_glXCreateContext=no
9488 fi
9489
9490 rm -f core conftest.err conftest.$ac_objext \
9491       conftest$ac_exeext conftest.$ac_ext
9492 LIBS=$ac_check_lib_save_LIBS
9493 fi
9494 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
9495 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
9496 if test $ac_cv_lib_GL_glXCreateContext = yes; then
9497   OPENGL_LIBS="-lGL"
9498
9499 fi
9500
9501
9502                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
9503                 then
9504                         OPENGLFILES='$(OPENGLFILES)'
9505
9506 cat >>confdefs.h <<\_ACEOF
9507 #define HAVE_OPENGL 1
9508 _ACEOF
9509
9510                 else
9511                     if test -f /usr/X11R6/lib/libGL.a
9512                     then
9513                        { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
9514 This prevents linking to OpenGL. Delete the file and restart configure." >&5
9515 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
9516 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
9517    { (exit 1); exit 1; }; }
9518                     else
9519                                                 wine_cv_opengl_libs_found="no"
9520                     fi
9521                 fi
9522
9523                                 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
9524 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
9525 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
9526   echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528   ac_check_lib_save_LIBS=$LIBS
9529 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
9530                  $LIBS"
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537
9538 /* Override any GCC internal prototype to avoid an error.
9539    Use char because int might match the return type of a GCC
9540    builtin and then its argument prototype would still apply.  */
9541 #ifdef __cplusplus
9542 extern "C"
9543 #endif
9544 char gluLookAt ();
9545 int
9546 main ()
9547 {
9548 return gluLookAt ();
9549   ;
9550   return 0;
9551 }
9552 _ACEOF
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (ac_try="$ac_link"
9555 case "(($ac_try" in
9556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557   *) ac_try_echo=$ac_try;;
9558 esac
9559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560   (eval "$ac_link") 2>conftest.er1
9561   ac_status=$?
9562   grep -v '^ *+' conftest.er1 >conftest.err
9563   rm -f conftest.er1
9564   cat conftest.err >&5
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); } &&
9567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9568   { (case "(($ac_try" in
9569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570   *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573   (eval "$ac_try") 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; } &&
9577          { ac_try='test -s conftest$ac_exeext'
9578   { (case "(($ac_try" in
9579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580   *) ac_try_echo=$ac_try;;
9581 esac
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583   (eval "$ac_try") 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; }; then
9587   ac_cv_lib_GLU_gluLookAt=yes
9588 else
9589   echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9591
9592         ac_cv_lib_GLU_gluLookAt=no
9593 fi
9594
9595 rm -f core conftest.err conftest.$ac_objext \
9596       conftest$ac_exeext conftest.$ac_ext
9597 LIBS=$ac_check_lib_save_LIBS
9598 fi
9599 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9600 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
9601 if test $ac_cv_lib_GLU_gluLookAt = yes; then
9602   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9603                              GLU32FILES='$(GLU32FILES)'
9604
9605 fi
9606
9607              fi
9608
9609                           { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9610 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
9611 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9612   echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else
9614   ac_check_lib_save_LIBS=$LIBS
9615 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9616 cat >conftest.$ac_ext <<_ACEOF
9617 /* confdefs.h.  */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h.  */
9622
9623 /* Override any GCC internal prototype to avoid an error.
9624    Use char because int might match the return type of a GCC
9625    builtin and then its argument prototype would still apply.  */
9626 #ifdef __cplusplus
9627 extern "C"
9628 #endif
9629 char glutMainLoop ();
9630 int
9631 main ()
9632 {
9633 return glutMainLoop ();
9634   ;
9635   return 0;
9636 }
9637 _ACEOF
9638 rm -f conftest.$ac_objext conftest$ac_exeext
9639 if { (ac_try="$ac_link"
9640 case "(($ac_try" in
9641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642   *) ac_try_echo=$ac_try;;
9643 esac
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645   (eval "$ac_link") 2>conftest.er1
9646   ac_status=$?
9647   grep -v '^ *+' conftest.er1 >conftest.err
9648   rm -f conftest.er1
9649   cat conftest.err >&5
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } &&
9652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9653   { (case "(($ac_try" in
9654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655   *) ac_try_echo=$ac_try;;
9656 esac
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658   (eval "$ac_try") 2>&5
9659   ac_status=$?
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); }; } &&
9662          { ac_try='test -s conftest$ac_exeext'
9663   { (case "(($ac_try" in
9664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665   *) ac_try_echo=$ac_try;;
9666 esac
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668   (eval "$ac_try") 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; }; then
9672   ac_cv_lib_glut_glutMainLoop=yes
9673 else
9674   echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677         ac_cv_lib_glut_glutMainLoop=no
9678 fi
9679
9680 rm -f core conftest.err conftest.$ac_objext \
9681       conftest$ac_exeext conftest.$ac_ext
9682 LIBS=$ac_check_lib_save_LIBS
9683 fi
9684 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9685 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
9686 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9687   GLUT_LIBS="-lglut -lXmu -lXi"
9688
9689                         GLUT32FILES='$(GLUT32FILES)'
9690
9691 fi
9692
9693          else
9694              wine_cv_opengl_headers_found="no"
9695          fi
9696     fi
9697         NASLIBS=""
9698
9699
9700 for ac_header in audio/audiolib.h
9701 do
9702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9704   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9707   echo $ECHO_N "(cached) $ECHO_C" >&6
9708 fi
9709 ac_res=`eval echo '${'$as_ac_Header'}'`
9710                { echo "$as_me:$LINENO: result: $ac_res" >&5
9711 echo "${ECHO_T}$ac_res" >&6; }
9712 else
9713   # Is the header compilable?
9714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722 $ac_includes_default
9723 #include <$ac_header>
9724 _ACEOF
9725 rm -f conftest.$ac_objext
9726 if { (ac_try="$ac_compile"
9727 case "(($ac_try" in
9728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729   *) ac_try_echo=$ac_try;;
9730 esac
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732   (eval "$ac_compile") 2>conftest.er1
9733   ac_status=$?
9734   grep -v '^ *+' conftest.er1 >conftest.err
9735   rm -f conftest.er1
9736   cat conftest.err >&5
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); } &&
9739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9740   { (case "(($ac_try" in
9741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742   *) ac_try_echo=$ac_try;;
9743 esac
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745   (eval "$ac_try") 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); }; } &&
9749          { ac_try='test -s conftest.$ac_objext'
9750   { (case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755   (eval "$ac_try") 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; }; then
9759   ac_header_compiler=yes
9760 else
9761   echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764         ac_header_compiler=no
9765 fi
9766
9767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9769 echo "${ECHO_T}$ac_header_compiler" >&6; }
9770
9771 # Is the header present?
9772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h.  */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h.  */
9780 #include <$ac_header>
9781 _ACEOF
9782 if { (ac_try="$ac_cpp conftest.$ac_ext"
9783 case "(($ac_try" in
9784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785   *) ac_try_echo=$ac_try;;
9786 esac
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9789   ac_status=$?
9790   grep -v '^ *+' conftest.er1 >conftest.err
9791   rm -f conftest.er1
9792   cat conftest.err >&5
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); } >/dev/null; then
9795   if test -s conftest.err; then
9796     ac_cpp_err=$ac_c_preproc_warn_flag
9797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9798   else
9799     ac_cpp_err=
9800   fi
9801 else
9802   ac_cpp_err=yes
9803 fi
9804 if test -z "$ac_cpp_err"; then
9805   ac_header_preproc=yes
9806 else
9807   echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810   ac_header_preproc=no
9811 fi
9812
9813 rm -f conftest.err conftest.$ac_ext
9814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9815 echo "${ECHO_T}$ac_header_preproc" >&6; }
9816
9817 # So?  What about this header?
9818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819   yes:no: )
9820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9824     ac_header_preproc=yes
9825     ;;
9826   no:yes:* )
9827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9839     ( cat <<\_ASBOX
9840 ## ------------------------------------ ##
9841 ## Report this to wine-devel@winehq.org ##
9842 ## ------------------------------------ ##
9843 _ASBOX
9844      ) | sed "s/^/$as_me: WARNING:     /" >&2
9845     ;;
9846 esac
9847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852   eval "$as_ac_Header=\$ac_header_preproc"
9853 fi
9854 ac_res=`eval echo '${'$as_ac_Header'}'`
9855                { echo "$as_me:$LINENO: result: $ac_res" >&5
9856 echo "${ECHO_T}$ac_res" >&6; }
9857
9858 fi
9859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9860   cat >>confdefs.h <<_ACEOF
9861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9862 _ACEOF
9863
9864 for ac_header in audio/soundlib.h
9865 do
9866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878 #include <audio/audiolib.h>
9879
9880 #include <$ac_header>
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (ac_try="$ac_compile"
9884 case "(($ac_try" in
9885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886   *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889   (eval "$ac_compile") 2>conftest.er1
9890   ac_status=$?
9891   grep -v '^ *+' conftest.er1 >conftest.err
9892   rm -f conftest.er1
9893   cat conftest.err >&5
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); } &&
9896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9897   { (case "(($ac_try" in
9898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899   *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902   (eval "$ac_try") 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; } &&
9906          { ac_try='test -s conftest.$ac_objext'
9907   { (case "(($ac_try" in
9908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909   *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912   (eval "$ac_try") 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; }; then
9916   eval "$as_ac_Header=yes"
9917 else
9918   echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9920
9921         eval "$as_ac_Header=no"
9922 fi
9923
9924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9925 fi
9926 ac_res=`eval echo '${'$as_ac_Header'}'`
9927                { echo "$as_me:$LINENO: result: $ac_res" >&5
9928 echo "${ECHO_T}$ac_res" >&6; }
9929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9930   cat >>confdefs.h <<_ACEOF
9931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9932 _ACEOF
9933
9934 fi
9935
9936 done
9937
9938           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9939 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
9940 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   ac_check_lib_save_LIBS=$LIBS
9944 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9945 cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h.  */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h.  */
9951
9952 /* Override any GCC internal prototype to avoid an error.
9953    Use char because int might match the return type of a GCC
9954    builtin and then its argument prototype would still apply.  */
9955 #ifdef __cplusplus
9956 extern "C"
9957 #endif
9958 char AuCreateFlow ();
9959 int
9960 main ()
9961 {
9962 return AuCreateFlow ();
9963   ;
9964   return 0;
9965 }
9966 _ACEOF
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9969 case "(($ac_try" in
9970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971   *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974   (eval "$ac_link") 2>conftest.er1
9975   ac_status=$?
9976   grep -v '^ *+' conftest.er1 >conftest.err
9977   rm -f conftest.er1
9978   cat conftest.err >&5
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); } &&
9981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9982   { (case "(($ac_try" in
9983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984   *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987   (eval "$ac_try") 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); }; } &&
9991          { ac_try='test -s conftest$ac_exeext'
9992   { (case "(($ac_try" in
9993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994   *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997   (eval "$ac_try") 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; }; then
10001   ac_cv_lib_audio_AuCreateFlow=yes
10002 else
10003   echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006         ac_cv_lib_audio_AuCreateFlow=no
10007 fi
10008
10009 rm -f core conftest.err conftest.$ac_objext \
10010       conftest$ac_exeext conftest.$ac_ext
10011 LIBS=$ac_check_lib_save_LIBS
10012 fi
10013 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10014 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10015 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10016
10017 cat >>confdefs.h <<\_ACEOF
10018 #define HAVE_NAS 1
10019 _ACEOF
10020
10021                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10022 fi
10023
10024 fi
10025
10026 done
10027
10028
10029     CPPFLAGS="$ac_save_CPPFLAGS"
10030     XFILES='$(XFILES)'
10031 else
10032     XLIB=""
10033     X_CFLAGS=""
10034     X_LIBS=""
10035 fi
10036
10037
10038 XML2LIBS=""
10039
10040 XML2INCL=""
10041
10042 XSLTLIBS=""
10043
10044 XSLTINCL=""
10045
10046 if test "$PKG_CONFIG" != "false"
10047 then
10048     ac_save_CPPFLAGS="$CPPFLAGS"
10049     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10050     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10051     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10052
10053 for ac_header in libxml/parser.h
10054 do
10055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10057   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10060   echo $ECHO_N "(cached) $ECHO_C" >&6
10061 fi
10062 ac_res=`eval echo '${'$as_ac_Header'}'`
10063                { echo "$as_me:$LINENO: result: $ac_res" >&5
10064 echo "${ECHO_T}$ac_res" >&6; }
10065 else
10066   # Is the header compilable?
10067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h.  */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h.  */
10075 $ac_includes_default
10076 #include <$ac_header>
10077 _ACEOF
10078 rm -f conftest.$ac_objext
10079 if { (ac_try="$ac_compile"
10080 case "(($ac_try" in
10081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082   *) ac_try_echo=$ac_try;;
10083 esac
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085   (eval "$ac_compile") 2>conftest.er1
10086   ac_status=$?
10087   grep -v '^ *+' conftest.er1 >conftest.err
10088   rm -f conftest.er1
10089   cat conftest.err >&5
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); } &&
10092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093   { (case "(($ac_try" in
10094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095   *) ac_try_echo=$ac_try;;
10096 esac
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098   (eval "$ac_try") 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; } &&
10102          { ac_try='test -s conftest.$ac_objext'
10103   { (case "(($ac_try" in
10104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105   *) ac_try_echo=$ac_try;;
10106 esac
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108   (eval "$ac_try") 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112   ac_header_compiler=yes
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117         ac_header_compiler=no
10118 fi
10119
10120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10122 echo "${ECHO_T}$ac_header_compiler" >&6; }
10123
10124 # Is the header present?
10125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h.  */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h.  */
10133 #include <$ac_header>
10134 _ACEOF
10135 if { (ac_try="$ac_cpp conftest.$ac_ext"
10136 case "(($ac_try" in
10137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138   *) ac_try_echo=$ac_try;;
10139 esac
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10142   ac_status=$?
10143   grep -v '^ *+' conftest.er1 >conftest.err
10144   rm -f conftest.er1
10145   cat conftest.err >&5
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); } >/dev/null; then
10148   if test -s conftest.err; then
10149     ac_cpp_err=$ac_c_preproc_warn_flag
10150     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10151   else
10152     ac_cpp_err=
10153   fi
10154 else
10155   ac_cpp_err=yes
10156 fi
10157 if test -z "$ac_cpp_err"; then
10158   ac_header_preproc=yes
10159 else
10160   echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163   ac_header_preproc=no
10164 fi
10165
10166 rm -f conftest.err conftest.$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10168 echo "${ECHO_T}$ac_header_preproc" >&6; }
10169
10170 # So?  What about this header?
10171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10172   yes:no: )
10173     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10177     ac_header_preproc=yes
10178     ;;
10179   no:yes:* )
10180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10182     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10183 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10184     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10186     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10187 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10190     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10192     ( cat <<\_ASBOX
10193 ## ------------------------------------ ##
10194 ## Report this to wine-devel@winehq.org ##
10195 ## ------------------------------------ ##
10196 _ASBOX
10197      ) | sed "s/^/$as_me: WARNING:     /" >&2
10198     ;;
10199 esac
10200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   eval "$as_ac_Header=\$ac_header_preproc"
10206 fi
10207 ac_res=`eval echo '${'$as_ac_Header'}'`
10208                { echo "$as_me:$LINENO: result: $ac_res" >&5
10209 echo "${ECHO_T}$ac_res" >&6; }
10210
10211 fi
10212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10213   cat >>confdefs.h <<_ACEOF
10214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10215 _ACEOF
10216  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10217 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
10218 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   ac_check_lib_save_LIBS=$LIBS
10222 LIBS="-lxml2 $ac_xml_libs $LIBS"
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h.  */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h.  */
10229
10230 /* Override any GCC internal prototype to avoid an error.
10231    Use char because int might match the return type of a GCC
10232    builtin and then its argument prototype would still apply.  */
10233 #ifdef __cplusplus
10234 extern "C"
10235 #endif
10236 char xmlParseMemory ();
10237 int
10238 main ()
10239 {
10240 return xmlParseMemory ();
10241   ;
10242   return 0;
10243 }
10244 _ACEOF
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (ac_try="$ac_link"
10247 case "(($ac_try" in
10248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249   *) ac_try_echo=$ac_try;;
10250 esac
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252   (eval "$ac_link") 2>conftest.er1
10253   ac_status=$?
10254   grep -v '^ *+' conftest.er1 >conftest.err
10255   rm -f conftest.er1
10256   cat conftest.err >&5
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } &&
10259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10260   { (case "(($ac_try" in
10261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262   *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265   (eval "$ac_try") 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; } &&
10269          { ac_try='test -s conftest$ac_exeext'
10270   { (case "(($ac_try" in
10271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272   *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275   (eval "$ac_try") 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); }; }; then
10279   ac_cv_lib_xml2_xmlParseMemory=yes
10280 else
10281   echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10283
10284         ac_cv_lib_xml2_xmlParseMemory=no
10285 fi
10286
10287 rm -f core conftest.err conftest.$ac_objext \
10288       conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10290 fi
10291 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10292 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10293 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
10294
10295 cat >>confdefs.h <<\_ACEOF
10296 #define HAVE_LIBXML2 1
10297 _ACEOF
10298
10299              XML2LIBS="$ac_xml_libs"
10300              XML2INCL="$ac_xml_cflags"
10301 fi
10302
10303          { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10304 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
10305 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10306   echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308   ac_check_lib_save_LIBS=$LIBS
10309 LIBS="-lxml2 $ac_xml_libs $LIBS"
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h.  */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h.  */
10316
10317 /* Override any GCC internal prototype to avoid an error.
10318    Use char because int might match the return type of a GCC
10319    builtin and then its argument prototype would still apply.  */
10320 #ifdef __cplusplus
10321 extern "C"
10322 #endif
10323 char xmlReadMemory ();
10324 int
10325 main ()
10326 {
10327 return xmlReadMemory ();
10328   ;
10329   return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336   *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339   (eval "$ac_link") 2>conftest.er1
10340   ac_status=$?
10341   grep -v '^ *+' conftest.er1 >conftest.err
10342   rm -f conftest.er1
10343   cat conftest.err >&5
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } &&
10346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10347   { (case "(($ac_try" in
10348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349   *) ac_try_echo=$ac_try;;
10350 esac
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352   (eval "$ac_try") 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); }; } &&
10356          { ac_try='test -s conftest$ac_exeext'
10357   { (case "(($ac_try" in
10358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359   *) ac_try_echo=$ac_try;;
10360 esac
10361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362   (eval "$ac_try") 2>&5
10363   ac_status=$?
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); }; }; then
10366   ac_cv_lib_xml2_xmlReadMemory=yes
10367 else
10368   echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371         ac_cv_lib_xml2_xmlReadMemory=no
10372 fi
10373
10374 rm -f core conftest.err conftest.$ac_objext \
10375       conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10377 fi
10378 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10379 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10380 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10381
10382 cat >>confdefs.h <<\_ACEOF
10383 #define HAVE_XMLREADMEMORY 1
10384 _ACEOF
10385
10386 fi
10387
10388
10389 fi
10390
10391 done
10392
10393     CPPFLAGS="$ac_save_CPPFLAGS"
10394     ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
10395     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
10396     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
10397
10398
10399 for ac_header in libxslt/pattern.h libxslt/transform.h
10400 do
10401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10405   echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407   cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 #ifdef HAVE_LIBXSLT_PATTERN_H
10414 # include <libxslt/pattern.h>
10415 #endif
10416
10417 #include <$ac_header>
10418 _ACEOF
10419 rm -f conftest.$ac_objext
10420 if { (ac_try="$ac_compile"
10421 case "(($ac_try" in
10422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423   *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426   (eval "$ac_compile") 2>conftest.er1
10427   ac_status=$?
10428   grep -v '^ *+' conftest.er1 >conftest.err
10429   rm -f conftest.er1
10430   cat conftest.err >&5
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); } &&
10433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434   { (case "(($ac_try" in
10435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436   *) ac_try_echo=$ac_try;;
10437 esac
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439   (eval "$ac_try") 2>&5
10440   ac_status=$?
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); }; } &&
10443          { ac_try='test -s conftest.$ac_objext'
10444   { (case "(($ac_try" in
10445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446   *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449   (eval "$ac_try") 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; }; then
10453   eval "$as_ac_Header=yes"
10454 else
10455   echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10457
10458         eval "$as_ac_Header=no"
10459 fi
10460
10461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10462 fi
10463 ac_res=`eval echo '${'$as_ac_Header'}'`
10464                { echo "$as_me:$LINENO: result: $ac_res" >&5
10465 echo "${ECHO_T}$ac_res" >&6; }
10466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10467   cat >>confdefs.h <<_ACEOF
10468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10469 _ACEOF
10470  { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
10471 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
10472 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
10473   echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475   ac_check_lib_save_LIBS=$LIBS
10476 LIBS="-lxslt $ac_xslt_libs $LIBS"
10477 cat >conftest.$ac_ext <<_ACEOF
10478 /* confdefs.h.  */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h.  */
10483
10484 /* Override any GCC internal prototype to avoid an error.
10485    Use char because int might match the return type of a GCC
10486    builtin and then its argument prototype would still apply.  */
10487 #ifdef __cplusplus
10488 extern "C"
10489 #endif
10490 char xsltCompilePattern ();
10491 int
10492 main ()
10493 {
10494 return xsltCompilePattern ();
10495   ;
10496   return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext conftest$ac_exeext
10500 if { (ac_try="$ac_link"
10501 case "(($ac_try" in
10502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503   *) ac_try_echo=$ac_try;;
10504 esac
10505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10506   (eval "$ac_link") 2>conftest.er1
10507   ac_status=$?
10508   grep -v '^ *+' conftest.er1 >conftest.err
10509   rm -f conftest.er1
10510   cat conftest.err >&5
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } &&
10513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10514   { (case "(($ac_try" in
10515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516   *) ac_try_echo=$ac_try;;
10517 esac
10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519   (eval "$ac_try") 2>&5
10520   ac_status=$?
10521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522   (exit $ac_status); }; } &&
10523          { ac_try='test -s conftest$ac_exeext'
10524   { (case "(($ac_try" in
10525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526   *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529   (eval "$ac_try") 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); }; }; then
10533   ac_cv_lib_xslt_xsltCompilePattern=yes
10534 else
10535   echo "$as_me: failed program was:" >&5
10536 sed 's/^/| /' conftest.$ac_ext >&5
10537
10538         ac_cv_lib_xslt_xsltCompilePattern=no
10539 fi
10540
10541 rm -f core conftest.err conftest.$ac_objext \
10542       conftest$ac_exeext conftest.$ac_ext
10543 LIBS=$ac_check_lib_save_LIBS
10544 fi
10545 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
10546 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
10547 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
10548
10549 cat >>confdefs.h <<\_ACEOF
10550 #define HAVE_LIBXSLT 1
10551 _ACEOF
10552
10553              XSLTLIBS="$ac_xslt_libs"
10554              XSLTINCL="$ac_xslt_cflags"
10555 fi
10556
10557
10558 fi
10559
10560 done
10561
10562     CPPFLAGS="$ac_save_CPPFLAGS"
10563 fi
10564
10565 HALINCL=""
10566
10567 if test "$PKG_CONFIG" != "false"
10568 then
10569     ac_save_CPPFLAGS="$CPPFLAGS"
10570     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
10571     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
10572     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
10573
10574
10575 for ac_header in dbus/dbus.h hal/libhal.h
10576 do
10577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10579   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10582   echo $ECHO_N "(cached) $ECHO_C" >&6
10583 fi
10584 ac_res=`eval echo '${'$as_ac_Header'}'`
10585                { echo "$as_me:$LINENO: result: $ac_res" >&5
10586 echo "${ECHO_T}$ac_res" >&6; }
10587 else
10588   # Is the header compilable?
10589 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h.  */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h.  */
10597 $ac_includes_default
10598 #include <$ac_header>
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604   *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607   (eval "$ac_compile") 2>conftest.er1
10608   ac_status=$?
10609   grep -v '^ *+' conftest.er1 >conftest.err
10610   rm -f conftest.er1
10611   cat conftest.err >&5
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); } &&
10614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10615   { (case "(($ac_try" in
10616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617   *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620   (eval "$ac_try") 2>&5
10621   ac_status=$?
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); }; } &&
10624          { ac_try='test -s conftest.$ac_objext'
10625   { (case "(($ac_try" in
10626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627   *) ac_try_echo=$ac_try;;
10628 esac
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630   (eval "$ac_try") 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }; }; then
10634   ac_header_compiler=yes
10635 else
10636   echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639         ac_header_compiler=no
10640 fi
10641
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10644 echo "${ECHO_T}$ac_header_compiler" >&6; }
10645
10646 # Is the header present?
10647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h.  */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h.  */
10655 #include <$ac_header>
10656 _ACEOF
10657 if { (ac_try="$ac_cpp conftest.$ac_ext"
10658 case "(($ac_try" in
10659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660   *) ac_try_echo=$ac_try;;
10661 esac
10662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10664   ac_status=$?
10665   grep -v '^ *+' conftest.er1 >conftest.err
10666   rm -f conftest.er1
10667   cat conftest.err >&5
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); } >/dev/null; then
10670   if test -s conftest.err; then
10671     ac_cpp_err=$ac_c_preproc_warn_flag
10672     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10673   else
10674     ac_cpp_err=
10675   fi
10676 else
10677   ac_cpp_err=yes
10678 fi
10679 if test -z "$ac_cpp_err"; then
10680   ac_header_preproc=yes
10681 else
10682   echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10684
10685   ac_header_preproc=no
10686 fi
10687
10688 rm -f conftest.err conftest.$ac_ext
10689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10690 echo "${ECHO_T}$ac_header_preproc" >&6; }
10691
10692 # So?  What about this header?
10693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10694   yes:no: )
10695     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10699     ac_header_preproc=yes
10700     ;;
10701   no:yes:* )
10702     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10704     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10705 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10706     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10708     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10709 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10712     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10714     ( cat <<\_ASBOX
10715 ## ------------------------------------ ##
10716 ## Report this to wine-devel@winehq.org ##
10717 ## ------------------------------------ ##
10718 _ASBOX
10719      ) | sed "s/^/$as_me: WARNING:     /" >&2
10720     ;;
10721 esac
10722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10725   echo $ECHO_N "(cached) $ECHO_C" >&6
10726 else
10727   eval "$as_ac_Header=\$ac_header_preproc"
10728 fi
10729 ac_res=`eval echo '${'$as_ac_Header'}'`
10730                { echo "$as_me:$LINENO: result: $ac_res" >&5
10731 echo "${ECHO_T}$ac_res" >&6; }
10732
10733 fi
10734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10735   cat >>confdefs.h <<_ACEOF
10736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10737 _ACEOF
10738
10739 fi
10740
10741 done
10742
10743     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
10744     then
10745         { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
10746 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
10747 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
10748   echo $ECHO_N "(cached) $ECHO_C" >&6
10749 else
10750   ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-lhal  $LIBS"
10752 cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758
10759 /* Override any GCC internal prototype to avoid an error.
10760    Use char because int might match the return type of a GCC
10761    builtin and then its argument prototype would still apply.  */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 char libhal_ctx_new ();
10766 int
10767 main ()
10768 {
10769 return libhal_ctx_new ();
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778   *) ac_try_echo=$ac_try;;
10779 esac
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781   (eval "$ac_link") 2>conftest.er1
10782   ac_status=$?
10783   grep -v '^ *+' conftest.er1 >conftest.err
10784   rm -f conftest.er1
10785   cat conftest.err >&5
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } &&
10788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789   { (case "(($ac_try" in
10790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791   *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794   (eval "$ac_try") 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; } &&
10798          { ac_try='test -s conftest$ac_exeext'
10799   { (case "(($ac_try" in
10800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801   *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804   (eval "$ac_try") 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   ac_cv_lib_hal_libhal_ctx_new=yes
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813         ac_cv_lib_hal_libhal_ctx_new=no
10814 fi
10815
10816 rm -f core conftest.err conftest.$ac_objext \
10817       conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10819 fi
10820 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
10821 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
10822 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
10823   { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
10824 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
10825 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828   ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h.  */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h.  */
10836
10837 /* Override any GCC internal prototype to avoid an error.
10838    Use char because int might match the return type of a GCC
10839    builtin and then its argument prototype would still apply.  */
10840 #ifdef __cplusplus
10841 extern "C"
10842 #endif
10843 char dbus_connection_close ();
10844 int
10845 main ()
10846 {
10847 return dbus_connection_close ();
10848   ;
10849   return 0;
10850 }
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856   *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859   (eval "$ac_link") 2>conftest.er1
10860   ac_status=$?
10861   grep -v '^ *+' conftest.er1 >conftest.err
10862   rm -f conftest.er1
10863   cat conftest.err >&5
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); } &&
10866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10867   { (case "(($ac_try" in
10868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869   *) ac_try_echo=$ac_try;;
10870 esac
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872   (eval "$ac_try") 2>&5
10873   ac_status=$?
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); }; } &&
10876          { ac_try='test -s conftest$ac_exeext'
10877   { (case "(($ac_try" in
10878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879   *) ac_try_echo=$ac_try;;
10880 esac
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882   (eval "$ac_try") 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); }; }; then
10886   ac_cv_lib_dbus_1_dbus_connection_close=yes
10887 else
10888   echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10890
10891         ac_cv_lib_dbus_1_dbus_connection_close=no
10892 fi
10893
10894 rm -f core conftest.err conftest.$ac_objext \
10895       conftest$ac_exeext conftest.$ac_ext
10896 LIBS=$ac_check_lib_save_LIBS
10897 fi
10898 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
10899 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
10900 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
10901
10902 cat >>confdefs.h <<\_ACEOF
10903 #define HAVE_LIBHAL 1
10904 _ACEOF
10905
10906              HALINCL="$ac_hal_cflags"
10907 fi
10908
10909 fi
10910
10911     fi
10912     CPPFLAGS="$ac_save_CPPFLAGS"
10913 fi
10914
10915 CURSESLIBS=""
10916 if test "x$with_curses" != "xno"
10917 then
10918     if test "$ac_cv_header_ncurses_h" = "yes"
10919     then
10920         { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
10921 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
10922 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
10923   echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925   ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-lncurses  $LIBS"
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h.  */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h.  */
10933
10934 /* Override any GCC internal prototype to avoid an error.
10935    Use char because int might match the return type of a GCC
10936    builtin and then its argument prototype would still apply.  */
10937 #ifdef __cplusplus
10938 extern "C"
10939 #endif
10940 char waddch ();
10941 int
10942 main ()
10943 {
10944 return waddch ();
10945   ;
10946   return 0;
10947 }
10948 _ACEOF
10949 rm -f conftest.$ac_objext conftest$ac_exeext
10950 if { (ac_try="$ac_link"
10951 case "(($ac_try" in
10952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953   *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956   (eval "$ac_link") 2>conftest.er1
10957   ac_status=$?
10958   grep -v '^ *+' conftest.er1 >conftest.err
10959   rm -f conftest.er1
10960   cat conftest.err >&5
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); } &&
10963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10964   { (case "(($ac_try" in
10965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966   *) ac_try_echo=$ac_try;;
10967 esac
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969   (eval "$ac_try") 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); }; } &&
10973          { ac_try='test -s conftest$ac_exeext'
10974   { (case "(($ac_try" in
10975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976   *) ac_try_echo=$ac_try;;
10977 esac
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979   (eval "$ac_try") 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); }; }; then
10983   ac_cv_lib_ncurses_waddch=yes
10984 else
10985   echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10987
10988         ac_cv_lib_ncurses_waddch=no
10989 fi
10990
10991 rm -f core conftest.err conftest.$ac_objext \
10992       conftest$ac_exeext conftest.$ac_ext
10993 LIBS=$ac_check_lib_save_LIBS
10994 fi
10995 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
10996 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
10997 if test $ac_cv_lib_ncurses_waddch = yes; then
10998
10999 cat >>confdefs.h <<\_ACEOF
11000 #define HAVE_LIBNCURSES 1
11001 _ACEOF
11002
11003              CURSESLIBS="-lncurses"
11004 fi
11005
11006     elif test "$ac_cv_header_curses_h" = "yes"
11007     then
11008         { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11009 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
11010 if test "${ac_cv_lib_curses_waddch+set}" = set; then
11011   echo $ECHO_N "(cached) $ECHO_C" >&6
11012 else
11013   ac_check_lib_save_LIBS=$LIBS
11014 LIBS="-lcurses  $LIBS"
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h.  */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h.  */
11021
11022 /* Override any GCC internal prototype to avoid an error.
11023    Use char because int might match the return type of a GCC
11024    builtin and then its argument prototype would still apply.  */
11025 #ifdef __cplusplus
11026 extern "C"
11027 #endif
11028 char waddch ();
11029 int
11030 main ()
11031 {
11032 return waddch ();
11033   ;
11034   return 0;
11035 }
11036 _ACEOF
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (ac_try="$ac_link"
11039 case "(($ac_try" in
11040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041   *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044   (eval "$ac_link") 2>conftest.er1
11045   ac_status=$?
11046   grep -v '^ *+' conftest.er1 >conftest.err
11047   rm -f conftest.er1
11048   cat conftest.err >&5
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } &&
11051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052   { (case "(($ac_try" in
11053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054   *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057   (eval "$ac_try") 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); }; } &&
11061          { ac_try='test -s conftest$ac_exeext'
11062   { (case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067   (eval "$ac_try") 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; }; then
11071   ac_cv_lib_curses_waddch=yes
11072 else
11073   echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11075
11076         ac_cv_lib_curses_waddch=no
11077 fi
11078
11079 rm -f core conftest.err conftest.$ac_objext \
11080       conftest$ac_exeext conftest.$ac_ext
11081 LIBS=$ac_check_lib_save_LIBS
11082 fi
11083 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11084 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
11085 if test $ac_cv_lib_curses_waddch = yes; then
11086
11087 cat >>confdefs.h <<\_ACEOF
11088 #define HAVE_LIBCURSES 1
11089 _ACEOF
11090
11091              CURSESLIBS="-lcurses"
11092 fi
11093
11094     fi
11095     ac_save_LIBS="$LIBS"
11096     LIBS="$LIBS $CURSESLIBS"
11097
11098 for ac_func in mousemask
11099 do
11100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11104   echo $ECHO_N "(cached) $ECHO_C" >&6
11105 else
11106   cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11114 #define $ac_func innocuous_$ac_func
11115
11116 /* System header to define __stub macros and hopefully few prototypes,
11117     which can conflict with char $ac_func (); below.
11118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11119     <limits.h> exists even on freestanding compilers.  */
11120
11121 #ifdef __STDC__
11122 # include <limits.h>
11123 #else
11124 # include <assert.h>
11125 #endif
11126
11127 #undef $ac_func
11128
11129 /* Override any GCC internal prototype to avoid an error.
11130    Use char because int might match the return type of a GCC
11131    builtin and then its argument prototype would still apply.  */
11132 #ifdef __cplusplus
11133 extern "C"
11134 #endif
11135 char $ac_func ();
11136 /* The GNU C library defines this for functions which it implements
11137     to always fail with ENOSYS.  Some functions are actually named
11138     something starting with __ and the normal name is an alias.  */
11139 #if defined __stub_$ac_func || defined __stub___$ac_func
11140 choke me
11141 #endif
11142
11143 int
11144 main ()
11145 {
11146 return $ac_func ();
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (ac_try="$ac_link"
11153 case "(($ac_try" in
11154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155   *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158   (eval "$ac_link") 2>conftest.er1
11159   ac_status=$?
11160   grep -v '^ *+' conftest.er1 >conftest.err
11161   rm -f conftest.er1
11162   cat conftest.err >&5
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } &&
11165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11166   { (case "(($ac_try" in
11167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168   *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171   (eval "$ac_try") 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); }; } &&
11175          { ac_try='test -s conftest$ac_exeext'
11176   { (case "(($ac_try" in
11177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178   *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181   (eval "$ac_try") 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; }; then
11185   eval "$as_ac_var=yes"
11186 else
11187   echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11189
11190         eval "$as_ac_var=no"
11191 fi
11192
11193 rm -f core conftest.err conftest.$ac_objext \
11194       conftest$ac_exeext conftest.$ac_ext
11195 fi
11196 ac_res=`eval echo '${'$as_ac_var'}'`
11197                { echo "$as_me:$LINENO: result: $ac_res" >&5
11198 echo "${ECHO_T}$ac_res" >&6; }
11199 if test `eval echo '${'$as_ac_var'}'` = yes; then
11200   cat >>confdefs.h <<_ACEOF
11201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11202 _ACEOF
11203
11204 fi
11205 done
11206
11207     LIBS="$ac_save_LIBS"
11208 fi
11209
11210
11211 # Extract the first word of "sane-config", so it can be a program name with args.
11212 set dummy sane-config; ac_word=$2
11213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11215 if test "${ac_cv_prog_sane_devel+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   if test -n "$sane_devel"; then
11219   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11220 else
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11223 do
11224   IFS=$as_save_IFS
11225   test -z "$as_dir" && as_dir=.
11226   for ac_exec_ext in '' $ac_executable_extensions; do
11227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11228     ac_cv_prog_sane_devel="sane-config"
11229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11230     break 2
11231   fi
11232 done
11233 done
11234 IFS=$as_save_IFS
11235
11236   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11237 fi
11238 fi
11239 sane_devel=$ac_cv_prog_sane_devel
11240 if test -n "$sane_devel"; then
11241   { echo "$as_me:$LINENO: result: $sane_devel" >&5
11242 echo "${ECHO_T}$sane_devel" >&6; }
11243 else
11244   { echo "$as_me:$LINENO: result: no" >&5
11245 echo "${ECHO_T}no" >&6; }
11246 fi
11247
11248
11249 SANELIBS=""
11250
11251 SANEINCL=""
11252
11253 if test "$sane_devel" != "no"
11254 then
11255     SANELIBS="`$sane_devel --libs`"
11256     SANEINCL="`$sane_devel --cflags`"
11257     ac_save_CPPFLAGS="$CPPFLAGS"
11258     ac_save_LIBS="$LIBS"
11259     CPPFLAGS="$CPPFLAGS $SANEINCL"
11260     LIBS="$LIBS $SANELIBS"
11261     if test "${ac_cv_header_sane_sane_h+set}" = set; then
11262   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11263 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11264 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11265   echo $ECHO_N "(cached) $ECHO_C" >&6
11266 fi
11267 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11268 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11269 else
11270   # Is the header compilable?
11271 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11272 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
11273 cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h.  */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h.  */
11279 $ac_includes_default
11280 #include <sane/sane.h>
11281 _ACEOF
11282 rm -f conftest.$ac_objext
11283 if { (ac_try="$ac_compile"
11284 case "(($ac_try" in
11285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286   *) ac_try_echo=$ac_try;;
11287 esac
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289   (eval "$ac_compile") 2>conftest.er1
11290   ac_status=$?
11291   grep -v '^ *+' conftest.er1 >conftest.err
11292   rm -f conftest.er1
11293   cat conftest.err >&5
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } &&
11296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11297   { (case "(($ac_try" in
11298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299   *) ac_try_echo=$ac_try;;
11300 esac
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302   (eval "$ac_try") 2>&5
11303   ac_status=$?
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); }; } &&
11306          { ac_try='test -s conftest.$ac_objext'
11307   { (case "(($ac_try" in
11308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309   *) ac_try_echo=$ac_try;;
11310 esac
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312   (eval "$ac_try") 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); }; }; then
11316   ac_header_compiler=yes
11317 else
11318   echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321         ac_header_compiler=no
11322 fi
11323
11324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11326 echo "${ECHO_T}$ac_header_compiler" >&6; }
11327
11328 # Is the header present?
11329 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11330 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h.  */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h.  */
11337 #include <sane/sane.h>
11338 _ACEOF
11339 if { (ac_try="$ac_cpp conftest.$ac_ext"
11340 case "(($ac_try" in
11341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342   *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11346   ac_status=$?
11347   grep -v '^ *+' conftest.er1 >conftest.err
11348   rm -f conftest.er1
11349   cat conftest.err >&5
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); } >/dev/null; then
11352   if test -s conftest.err; then
11353     ac_cpp_err=$ac_c_preproc_warn_flag
11354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11355   else
11356     ac_cpp_err=
11357   fi
11358 else
11359   ac_cpp_err=yes
11360 fi
11361 if test -z "$ac_cpp_err"; then
11362   ac_header_preproc=yes
11363 else
11364   echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367   ac_header_preproc=no
11368 fi
11369
11370 rm -f conftest.err conftest.$ac_ext
11371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11372 echo "${ECHO_T}$ac_header_preproc" >&6; }
11373
11374 # So?  What about this header?
11375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11376   yes:no: )
11377     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11378 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11380 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
11381     ac_header_preproc=yes
11382     ;;
11383   no:yes:* )
11384     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11385 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
11387 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
11389 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
11390     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
11391 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11392     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
11393 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
11394     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
11395 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
11396     ( cat <<\_ASBOX
11397 ## ------------------------------------ ##
11398 ## Report this to wine-devel@winehq.org ##
11399 ## ------------------------------------ ##
11400 _ASBOX
11401      ) | sed "s/^/$as_me: WARNING:     /" >&2
11402     ;;
11403 esac
11404 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11405 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11406 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11407   echo $ECHO_N "(cached) $ECHO_C" >&6
11408 else
11409   ac_cv_header_sane_sane_h=$ac_header_preproc
11410 fi
11411 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11412 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11413
11414 fi
11415 if test $ac_cv_header_sane_sane_h = yes; then
11416   { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
11417 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
11418 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
11419   echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421   ac_check_lib_save_LIBS=$LIBS
11422 LIBS="-lsane  $LIBS"
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h.  */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h.  */
11429
11430 /* Override any GCC internal prototype to avoid an error.
11431    Use char because int might match the return type of a GCC
11432    builtin and then its argument prototype would still apply.  */
11433 #ifdef __cplusplus
11434 extern "C"
11435 #endif
11436 char sane_open ();
11437 int
11438 main ()
11439 {
11440 return sane_open ();
11441   ;
11442   return 0;
11443 }
11444 _ACEOF
11445 rm -f conftest.$ac_objext conftest$ac_exeext
11446 if { (ac_try="$ac_link"
11447 case "(($ac_try" in
11448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449   *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452   (eval "$ac_link") 2>conftest.er1
11453   ac_status=$?
11454   grep -v '^ *+' conftest.er1 >conftest.err
11455   rm -f conftest.er1
11456   cat conftest.err >&5
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); } &&
11459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11460   { (case "(($ac_try" in
11461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462   *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465   (eval "$ac_try") 2>&5
11466   ac_status=$?
11467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468   (exit $ac_status); }; } &&
11469          { ac_try='test -s conftest$ac_exeext'
11470   { (case "(($ac_try" in
11471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472   *) ac_try_echo=$ac_try;;
11473 esac
11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475   (eval "$ac_try") 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); }; }; then
11479   ac_cv_lib_sane_sane_open=yes
11480 else
11481   echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11483
11484         ac_cv_lib_sane_sane_open=no
11485 fi
11486
11487 rm -f core conftest.err conftest.$ac_objext \
11488       conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11490 fi
11491 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
11492 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
11493 if test $ac_cv_lib_sane_sane_open = yes; then
11494
11495 cat >>confdefs.h <<\_ACEOF
11496 #define HAVE_SANE 1
11497 _ACEOF
11498
11499 else
11500   SANELIBS=""
11501                                   SANEINCL=""
11502 fi
11503
11504 else
11505   SANELIBS=""
11506                     SANEINCL=""
11507 fi
11508
11509
11510     LIBS="$ac_save_LIBS"
11511     CPPFLAGS="$ac_save_CPPFLAGS"
11512 fi
11513
11514 # Extract the first word of "gphoto2-config", so it can be a program name with args.
11515 set dummy gphoto2-config; ac_word=$2
11516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11518 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
11519   echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521   if test -n "$gphoto2_devel"; then
11522   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
11523 else
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11526 do
11527   IFS=$as_save_IFS
11528   test -z "$as_dir" && as_dir=.
11529   for ac_exec_ext in '' $ac_executable_extensions; do
11530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11531     ac_cv_prog_gphoto2_devel="gphoto2-config"
11532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11533     break 2
11534   fi
11535 done
11536 done
11537 IFS=$as_save_IFS
11538
11539   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
11540 fi
11541 fi
11542 gphoto2_devel=$ac_cv_prog_gphoto2_devel
11543 if test -n "$gphoto2_devel"; then
11544   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
11545 echo "${ECHO_T}$gphoto2_devel" >&6; }
11546 else
11547   { echo "$as_me:$LINENO: result: no" >&5
11548 echo "${ECHO_T}no" >&6; }
11549 fi
11550
11551
11552 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
11553 set dummy gphoto2-port-config; ac_word=$2
11554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11556 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
11557   echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559   if test -n "$gphoto2port_devel"; then
11560   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
11561 else
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11564 do
11565   IFS=$as_save_IFS
11566   test -z "$as_dir" && as_dir=.
11567   for ac_exec_ext in '' $ac_executable_extensions; do
11568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11569     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
11570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11571     break 2
11572   fi
11573 done
11574 done
11575 IFS=$as_save_IFS
11576
11577   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
11578 fi
11579 fi
11580 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
11581 if test -n "$gphoto2port_devel"; then
11582   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
11583 echo "${ECHO_T}$gphoto2port_devel" >&6; }
11584 else
11585   { echo "$as_me:$LINENO: result: no" >&5
11586 echo "${ECHO_T}no" >&6; }
11587 fi
11588
11589
11590 GPHOTO2LIBS=""
11591
11592 GPHOTO2INCL=""
11593
11594 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
11595 then
11596     GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
11597     GPHOTO2LIBS=""
11598     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
11599     do
11600       case "$i" in
11601         -L/usr/lib|-L/usr/lib64) ;;
11602         -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
11603       esac
11604     done
11605     ac_save_CPPFLAGS="$CPPFLAGS"
11606     ac_save_LIBS="$LIBS"
11607     CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
11608     LIBS="$LIBS $GPHOTO2LIBS"
11609     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11610   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11611 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
11612 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 fi
11615 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11616 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
11617 else
11618   # Is the header compilable?
11619 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
11620 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
11628 #include <gphoto2-camera.h>
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (ac_try="$ac_compile"
11632 case "(($ac_try" in
11633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634   *) ac_try_echo=$ac_try;;
11635 esac
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637   (eval "$ac_compile") 2>conftest.er1
11638   ac_status=$?
11639   grep -v '^ *+' conftest.er1 >conftest.err
11640   rm -f conftest.er1
11641   cat conftest.err >&5
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); } &&
11644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11645   { (case "(($ac_try" in
11646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647   *) ac_try_echo=$ac_try;;
11648 esac
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650   (eval "$ac_try") 2>&5
11651   ac_status=$?
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); }; } &&
11654          { ac_try='test -s conftest.$ac_objext'
11655   { (case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_try") 2>&5
11661   ac_status=$?
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); }; }; then
11664   ac_header_compiler=yes
11665 else
11666   echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11668
11669         ac_header_compiler=no
11670 fi
11671
11672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11674 echo "${ECHO_T}$ac_header_compiler" >&6; }
11675
11676 # Is the header present?
11677 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
11678 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h.  */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h.  */
11685 #include <gphoto2-camera.h>
11686 _ACEOF
11687 if { (ac_try="$ac_cpp conftest.$ac_ext"
11688 case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11694   ac_status=$?
11695   grep -v '^ *+' conftest.er1 >conftest.err
11696   rm -f conftest.er1
11697   cat conftest.err >&5
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } >/dev/null; then
11700   if test -s conftest.err; then
11701     ac_cpp_err=$ac_c_preproc_warn_flag
11702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11703   else
11704     ac_cpp_err=
11705   fi
11706 else
11707   ac_cpp_err=yes
11708 fi
11709 if test -z "$ac_cpp_err"; then
11710   ac_header_preproc=yes
11711 else
11712   echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715   ac_header_preproc=no
11716 fi
11717
11718 rm -f conftest.err conftest.$ac_ext
11719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11720 echo "${ECHO_T}$ac_header_preproc" >&6; }
11721
11722 # So?  What about this header?
11723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11724   yes:no: )
11725     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
11726 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11727     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
11728 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
11729     ac_header_preproc=yes
11730     ;;
11731   no:yes:* )
11732     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
11733 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
11734     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
11735 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
11736     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
11737 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
11738     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
11739 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11740     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
11741 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
11742     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
11743 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
11744     ( cat <<\_ASBOX
11745 ## ------------------------------------ ##
11746 ## Report this to wine-devel@winehq.org ##
11747 ## ------------------------------------ ##
11748 _ASBOX
11749      ) | sed "s/^/$as_me: WARNING:     /" >&2
11750     ;;
11751 esac
11752 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11753 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
11754 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11755   echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
11758 fi
11759 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11760 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
11761
11762 fi
11763 if test $ac_cv_header_gphoto2_camera_h = yes; then
11764   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
11765 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
11766 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
11767   echo $ECHO_N "(cached) $ECHO_C" >&6
11768 else
11769   ac_check_lib_save_LIBS=$LIBS
11770 LIBS="-lgphoto2  $LIBS"
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h.  */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h.  */
11777
11778 /* Override any GCC internal prototype to avoid an error.
11779    Use char because int might match the return type of a GCC
11780    builtin and then its argument prototype would still apply.  */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 char gp_camera_new ();
11785 int
11786 main ()
11787 {
11788 return gp_camera_new ();
11789   ;
11790   return 0;
11791 }
11792 _ACEOF
11793 rm -f conftest.$ac_objext conftest$ac_exeext
11794 if { (ac_try="$ac_link"
11795 case "(($ac_try" in
11796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797   *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800   (eval "$ac_link") 2>conftest.er1
11801   ac_status=$?
11802   grep -v '^ *+' conftest.er1 >conftest.err
11803   rm -f conftest.er1
11804   cat conftest.err >&5
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); } &&
11807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808   { (case "(($ac_try" in
11809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810   *) ac_try_echo=$ac_try;;
11811 esac
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813   (eval "$ac_try") 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); }; } &&
11817          { ac_try='test -s conftest$ac_exeext'
11818   { (case "(($ac_try" in
11819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820   *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823   (eval "$ac_try") 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); }; }; then
11827   ac_cv_lib_gphoto2_gp_camera_new=yes
11828 else
11829   echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832         ac_cv_lib_gphoto2_gp_camera_new=no
11833 fi
11834
11835 rm -f core conftest.err conftest.$ac_objext \
11836       conftest$ac_exeext conftest.$ac_ext
11837 LIBS=$ac_check_lib_save_LIBS
11838 fi
11839 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11840 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11841 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
11842
11843 cat >>confdefs.h <<\_ACEOF
11844 #define HAVE_GPHOTO2 1
11845 _ACEOF
11846
11847 else
11848   GPHOTO2LIBS=""
11849                                   GPHOTO2INCL=""
11850 fi
11851
11852 else
11853   GPHOTO2LIBS=""
11854                     GPHOTO2INCL=""
11855 fi
11856
11857
11858     LIBS="$ac_save_LIBS"
11859     CPPFLAGS="$ac_save_CPPFLAGS"
11860 fi
11861
11862 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
11863 then
11864     saved_libs="$LIBS"
11865     for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
11866     do
11867         TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
11868         TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
11869         { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
11870 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
11871         LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
11872         cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878 #include <unicode/ubidi.h>
11879 int
11880 main ()
11881 {
11882 ubidi_open()
11883   ;
11884   return 0;
11885 }
11886 _ACEOF
11887 rm -f conftest.$ac_objext conftest$ac_exeext
11888 if { (ac_try="$ac_link"
11889 case "(($ac_try" in
11890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891   *) ac_try_echo=$ac_try;;
11892 esac
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894   (eval "$ac_link") 2>conftest.er1
11895   ac_status=$?
11896   grep -v '^ *+' conftest.er1 >conftest.err
11897   rm -f conftest.er1
11898   cat conftest.err >&5
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); } &&
11901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11902   { (case "(($ac_try" in
11903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904   *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907   (eval "$ac_try") 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; } &&
11911          { ac_try='test -s conftest$ac_exeext'
11912   { (case "(($ac_try" in
11913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914   *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917   (eval "$ac_try") 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; }; then
11921
11922 cat >>confdefs.h <<\_ACEOF
11923 #define HAVE_ICU 1
11924 _ACEOF
11925
11926                      ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
11927
11928                      { echo "$as_me:$LINENO: result: yes" >&5
11929 echo "${ECHO_T}yes" >&6; }
11930 else
11931   echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934         { echo "$as_me:$LINENO: result: no" >&5
11935 echo "${ECHO_T}no" >&6; }
11936 fi
11937
11938 rm -f core conftest.err conftest.$ac_objext \
11939       conftest$ac_exeext conftest.$ac_ext
11940     done
11941     LIBS="$saved_libs"
11942 fi
11943
11944 RESOLVLIBS=""
11945
11946 if test "$ac_cv_header_resolv_h" = "yes"
11947 then
11948     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11949 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
11950 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-lresolv  $LIBS"
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h.  */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h.  */
11961
11962 /* Override any GCC internal prototype to avoid an error.
11963    Use char because int might match the return type of a GCC
11964    builtin and then its argument prototype would still apply.  */
11965 #ifdef __cplusplus
11966 extern "C"
11967 #endif
11968 char res_query ();
11969 int
11970 main ()
11971 {
11972 return res_query ();
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (ac_try="$ac_link"
11979 case "(($ac_try" in
11980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981   *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984   (eval "$ac_link") 2>conftest.er1
11985   ac_status=$?
11986   grep -v '^ *+' conftest.er1 >conftest.err
11987   rm -f conftest.er1
11988   cat conftest.err >&5
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); } &&
11991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11992   { (case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997   (eval "$ac_try") 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; } &&
12001          { ac_try='test -s conftest$ac_exeext'
12002   { (case "(($ac_try" in
12003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004   *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007   (eval "$ac_try") 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; }; then
12011   ac_cv_lib_resolv_res_query=yes
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016         ac_cv_lib_resolv_res_query=no
12017 fi
12018
12019 rm -f core conftest.err conftest.$ac_objext \
12020       conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12022 fi
12023 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12024 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12025 if test $ac_cv_lib_resolv_res_query = yes; then
12026
12027 cat >>confdefs.h <<\_ACEOF
12028 #define HAVE_RESOLV 1
12029 _ACEOF
12030
12031          RESOLVLIBS="-lresolv"
12032 fi
12033
12034 fi
12035
12036 LCMSLIBS=""
12037
12038 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12039 then
12040     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12041 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12042 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12043   echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045   ac_check_lib_save_LIBS=$LIBS
12046 LIBS="-llcms  $LIBS"
12047 cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h.  */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h.  */
12053
12054 /* Override any GCC internal prototype to avoid an error.
12055    Use char because int might match the return type of a GCC
12056    builtin and then its argument prototype would still apply.  */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 char cmsOpenProfileFromFile ();
12061 int
12062 main ()
12063 {
12064 return cmsOpenProfileFromFile ();
12065   ;
12066   return 0;
12067 }
12068 _ACEOF
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (ac_try="$ac_link"
12071 case "(($ac_try" in
12072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073   *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076   (eval "$ac_link") 2>conftest.er1
12077   ac_status=$?
12078   grep -v '^ *+' conftest.er1 >conftest.err
12079   rm -f conftest.er1
12080   cat conftest.err >&5
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } &&
12083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084   { (case "(($ac_try" in
12085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086   *) ac_try_echo=$ac_try;;
12087 esac
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089   (eval "$ac_try") 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; } &&
12093          { ac_try='test -s conftest$ac_exeext'
12094   { (case "(($ac_try" in
12095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096   *) ac_try_echo=$ac_try;;
12097 esac
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099   (eval "$ac_try") 2>&5
12100   ac_status=$?
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); }; }; then
12103   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12104 else
12105   echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
12109 fi
12110
12111 rm -f core conftest.err conftest.$ac_objext \
12112       conftest$ac_exeext conftest.$ac_ext
12113 LIBS=$ac_check_lib_save_LIBS
12114 fi
12115 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12116 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12117 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12118
12119 cat >>confdefs.h <<\_ACEOF
12120 #define HAVE_LCMS 1
12121 _ACEOF
12122
12123          LCMSLIBS="-llcms"
12124 fi
12125
12126 fi
12127
12128 LDAPLIBS=""
12129
12130 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12131 then
12132     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12133 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12134 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12135   echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137   ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h.  */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h.  */
12145
12146 /* Override any GCC internal prototype to avoid an error.
12147    Use char because int might match the return type of a GCC
12148    builtin and then its argument prototype would still apply.  */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 char ldap_initialize ();
12153 int
12154 main ()
12155 {
12156 return ldap_initialize ();
12157   ;
12158   return 0;
12159 }
12160 _ACEOF
12161 rm -f conftest.$ac_objext conftest$ac_exeext
12162 if { (ac_try="$ac_link"
12163 case "(($ac_try" in
12164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165   *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168   (eval "$ac_link") 2>conftest.er1
12169   ac_status=$?
12170   grep -v '^ *+' conftest.er1 >conftest.err
12171   rm -f conftest.er1
12172   cat conftest.err >&5
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } &&
12175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }; } &&
12185          { ac_try='test -s conftest$ac_exeext'
12186   { (case "(($ac_try" in
12187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188   *) ac_try_echo=$ac_try;;
12189 esac
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191   (eval "$ac_try") 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; }; then
12195   ac_cv_lib_ldap_r_ldap_initialize=yes
12196 else
12197   echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12199
12200         ac_cv_lib_ldap_r_ldap_initialize=no
12201 fi
12202
12203 rm -f core conftest.err conftest.$ac_objext \
12204       conftest$ac_exeext conftest.$ac_ext
12205 LIBS=$ac_check_lib_save_LIBS
12206 fi
12207 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12208 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12209 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12210   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12211 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12212 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-llber $LIBPTHREAD $LIBS"
12217 cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h.  */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h.  */
12223
12224 /* Override any GCC internal prototype to avoid an error.
12225    Use char because int might match the return type of a GCC
12226    builtin and then its argument prototype would still apply.  */
12227 #ifdef __cplusplus
12228 extern "C"
12229 #endif
12230 char ber_init ();
12231 int
12232 main ()
12233 {
12234 return ber_init ();
12235   ;
12236   return 0;
12237 }
12238 _ACEOF
12239 rm -f conftest.$ac_objext conftest$ac_exeext
12240 if { (ac_try="$ac_link"
12241 case "(($ac_try" in
12242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243   *) ac_try_echo=$ac_try;;
12244 esac
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246   (eval "$ac_link") 2>conftest.er1
12247   ac_status=$?
12248   grep -v '^ *+' conftest.er1 >conftest.err
12249   rm -f conftest.er1
12250   cat conftest.err >&5
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); } &&
12253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12254   { (case "(($ac_try" in
12255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256   *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259   (eval "$ac_try") 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; } &&
12263          { ac_try='test -s conftest$ac_exeext'
12264   { (case "(($ac_try" in
12265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266   *) ac_try_echo=$ac_try;;
12267 esac
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269   (eval "$ac_try") 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); }; }; then
12273   ac_cv_lib_lber_ber_init=yes
12274 else
12275   echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12277
12278         ac_cv_lib_lber_ber_init=no
12279 fi
12280
12281 rm -f core conftest.err conftest.$ac_objext \
12282       conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12284 fi
12285 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12286 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12287 if test $ac_cv_lib_lber_ber_init = yes; then
12288
12289 cat >>confdefs.h <<\_ACEOF
12290 #define HAVE_LDAP 1
12291 _ACEOF
12292
12293              LDAPLIBS="-lldap_r -llber"
12294 fi
12295
12296 fi
12297
12298     ac_wine_check_funcs_save_LIBS="$LIBS"
12299 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12300
12301
12302
12303
12304 for ac_func in \
12305         ldap_count_references \
12306         ldap_first_reference \
12307         ldap_next_reference \
12308         ldap_parse_reference
12309 do
12310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h.  */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h.  */
12322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12324 #define $ac_func innocuous_$ac_func
12325
12326 /* System header to define __stub macros and hopefully few prototypes,
12327     which can conflict with char $ac_func (); below.
12328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12329     <limits.h> exists even on freestanding compilers.  */
12330
12331 #ifdef __STDC__
12332 # include <limits.h>
12333 #else
12334 # include <assert.h>
12335 #endif
12336
12337 #undef $ac_func
12338
12339 /* Override any GCC internal prototype to avoid an error.
12340    Use char because int might match the return type of a GCC
12341    builtin and then its argument prototype would still apply.  */
12342 #ifdef __cplusplus
12343 extern "C"
12344 #endif
12345 char $ac_func ();
12346 /* The GNU C library defines this for functions which it implements
12347     to always fail with ENOSYS.  Some functions are actually named
12348     something starting with __ and the normal name is an alias.  */
12349 #if defined __stub_$ac_func || defined __stub___$ac_func
12350 choke me
12351 #endif
12352
12353 int
12354 main ()
12355 {
12356 return $ac_func ();
12357   ;
12358   return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (ac_try="$ac_link"
12363 case "(($ac_try" in
12364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365   *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368   (eval "$ac_link") 2>conftest.er1
12369   ac_status=$?
12370   grep -v '^ *+' conftest.er1 >conftest.err
12371   rm -f conftest.er1
12372   cat conftest.err >&5
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); } &&
12375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12376   { (case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381   (eval "$ac_try") 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; } &&
12385          { ac_try='test -s conftest$ac_exeext'
12386   { (case "(($ac_try" in
12387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388   *) ac_try_echo=$ac_try;;
12389 esac
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391   (eval "$ac_try") 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; }; then
12395   eval "$as_ac_var=yes"
12396 else
12397   echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400         eval "$as_ac_var=no"
12401 fi
12402
12403 rm -f core conftest.err conftest.$ac_objext \
12404       conftest$ac_exeext conftest.$ac_ext
12405 fi
12406 ac_res=`eval echo '${'$as_ac_var'}'`
12407                { echo "$as_me:$LINENO: result: $ac_res" >&5
12408 echo "${ECHO_T}$ac_res" >&6; }
12409 if test `eval echo '${'$as_ac_var'}'` = yes; then
12410   cat >>confdefs.h <<_ACEOF
12411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12412 _ACEOF
12413
12414 fi
12415 done
12416
12417 LIBS="$ac_wine_check_funcs_save_LIBS"
12418 fi
12419
12420 FREETYPELIBS=""
12421
12422 FREETYPEINCL=""
12423
12424 # Extract the first word of "freetype-config", so it can be a program name with args.
12425 set dummy freetype-config; ac_word=$2
12426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12428 if test "${ac_cv_prog_ft_devel+set}" = set; then
12429   echo $ECHO_N "(cached) $ECHO_C" >&6
12430 else
12431   if test -n "$ft_devel"; then
12432   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
12433 else
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12436 do
12437   IFS=$as_save_IFS
12438   test -z "$as_dir" && as_dir=.
12439   for ac_exec_ext in '' $ac_executable_extensions; do
12440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12441     ac_cv_prog_ft_devel="freetype-config"
12442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12443     break 2
12444   fi
12445 done
12446 done
12447 IFS=$as_save_IFS
12448
12449   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
12450 fi
12451 fi
12452 ft_devel=$ac_cv_prog_ft_devel
12453 if test -n "$ft_devel"; then
12454   { echo "$as_me:$LINENO: result: $ft_devel" >&5
12455 echo "${ECHO_T}$ft_devel" >&6; }
12456 else
12457   { echo "$as_me:$LINENO: result: no" >&5
12458 echo "${ECHO_T}no" >&6; }
12459 fi
12460
12461
12462 if test "$ft_devel" = "no"
12463 then
12464     # Extract the first word of "freetype2-config", so it can be a program name with args.
12465 set dummy freetype2-config; ac_word=$2
12466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12468 if test "${ac_cv_prog_ft_devel2+set}" = set; then
12469   echo $ECHO_N "(cached) $ECHO_C" >&6
12470 else
12471   if test -n "$ft_devel2"; then
12472   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
12473 else
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12476 do
12477   IFS=$as_save_IFS
12478   test -z "$as_dir" && as_dir=.
12479   for ac_exec_ext in '' $ac_executable_extensions; do
12480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12481     ac_cv_prog_ft_devel2="freetype2-config"
12482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12483     break 2
12484   fi
12485 done
12486 done
12487 IFS=$as_save_IFS
12488
12489   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
12490 fi
12491 fi
12492 ft_devel2=$ac_cv_prog_ft_devel2
12493 if test -n "$ft_devel2"; then
12494   { echo "$as_me:$LINENO: result: $ft_devel2" >&5
12495 echo "${ECHO_T}$ft_devel2" >&6; }
12496 else
12497   { echo "$as_me:$LINENO: result: no" >&5
12498 echo "${ECHO_T}no" >&6; }
12499 fi
12500
12501
12502     if test "$ft_devel2" = "freetype2-config"
12503     then
12504         ft_devel=$ft_devel2
12505     fi
12506 fi
12507
12508 if test "$ft_devel" = "no"
12509 then
12510     wine_cv_msg_freetype=yes
12511 else
12512     FREETYPELIBS=`$ft_devel --libs`
12513     FREETYPEINCL=`$ft_devel --cflags`
12514     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
12515 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
12516 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
12517   echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519   ac_check_lib_save_LIBS=$LIBS
12520 LIBS="-lfreetype $FREETYPELIBS $LIBS"
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h.  */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h.  */
12527
12528 /* Override any GCC internal prototype to avoid an error.
12529    Use char because int might match the return type of a GCC
12530    builtin and then its argument prototype would still apply.  */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 char FT_Init_FreeType ();
12535 int
12536 main ()
12537 {
12538 return FT_Init_FreeType ();
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (ac_try="$ac_link"
12545 case "(($ac_try" in
12546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547   *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550   (eval "$ac_link") 2>conftest.er1
12551   ac_status=$?
12552   grep -v '^ *+' conftest.er1 >conftest.err
12553   rm -f conftest.er1
12554   cat conftest.err >&5
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); } &&
12557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12558   { (case "(($ac_try" in
12559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560   *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563   (eval "$ac_try") 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; } &&
12567          { ac_try='test -s conftest$ac_exeext'
12568   { (case "(($ac_try" in
12569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570   *) ac_try_echo=$ac_try;;
12571 esac
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573   (eval "$ac_try") 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; }; then
12577   ac_cv_lib_freetype_FT_Init_FreeType=yes
12578 else
12579   echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582         ac_cv_lib_freetype_FT_Init_FreeType=no
12583 fi
12584
12585 rm -f core conftest.err conftest.$ac_objext \
12586       conftest$ac_exeext conftest.$ac_ext
12587 LIBS=$ac_check_lib_save_LIBS
12588 fi
12589 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
12590 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
12591 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
12592   ft_lib=yes
12593 else
12594   ft_lib=no
12595 fi
12596
12597     if test "$ft_lib" = "no"
12598     then
12599         wine_cv_msg_freetype=yes
12600         FREETYPELIBS=""
12601         FREETYPEINCL=""
12602     else
12603         ac_save_CPPFLAGS="$CPPFLAGS"
12604         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616 for ac_header in ft2build.h \
12617                          freetype/freetype.h \
12618                          freetype/ftglyph.h \
12619                          freetype/tttables.h \
12620                          freetype/ftnames.h \
12621                          freetype/ftsnames.h \
12622                          freetype/ttnameid.h \
12623                          freetype/ftoutln.h \
12624                          freetype/ftwinfnt.h \
12625                          freetype/ftmodapi.h \
12626                          freetype/internal/sfnt.h
12627 do
12628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12632   echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634   cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640 #if HAVE_FT2BUILD_H
12641                           #include <ft2build.h>
12642                           #endif
12643
12644 #include <$ac_header>
12645 _ACEOF
12646 rm -f conftest.$ac_objext
12647 if { (ac_try="$ac_compile"
12648 case "(($ac_try" in
12649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650   *) ac_try_echo=$ac_try;;
12651 esac
12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653   (eval "$ac_compile") 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } &&
12660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12661   { (case "(($ac_try" in
12662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663   *) ac_try_echo=$ac_try;;
12664 esac
12665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12666   (eval "$ac_try") 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); }; } &&
12670          { ac_try='test -s conftest.$ac_objext'
12671   { (case "(($ac_try" in
12672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673   *) ac_try_echo=$ac_try;;
12674 esac
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676   (eval "$ac_try") 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); }; }; then
12680   eval "$as_ac_Header=yes"
12681 else
12682   echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12684
12685         eval "$as_ac_Header=no"
12686 fi
12687
12688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12689 fi
12690 ac_res=`eval echo '${'$as_ac_Header'}'`
12691                { echo "$as_me:$LINENO: result: $ac_res" >&5
12692 echo "${ECHO_T}$ac_res" >&6; }
12693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12694   cat >>confdefs.h <<_ACEOF
12695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12696 _ACEOF
12697
12698 fi
12699
12700 done
12701
12702         cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h.  */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h.  */
12708 #include <ft2build.h>
12709                     #include <freetype/fttrigon.h>
12710 _ACEOF
12711 if { (ac_try="$ac_cpp conftest.$ac_ext"
12712 case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12718   ac_status=$?
12719   grep -v '^ *+' conftest.er1 >conftest.err
12720   rm -f conftest.er1
12721   cat conftest.err >&5
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } >/dev/null; then
12724   if test -s conftest.err; then
12725     ac_cpp_err=$ac_c_preproc_warn_flag
12726     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12727   else
12728     ac_cpp_err=
12729   fi
12730 else
12731   ac_cpp_err=yes
12732 fi
12733 if test -z "$ac_cpp_err"; then
12734
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_FREETYPE_FTTRIGON_H 1
12737 _ACEOF
12738
12739                     wine_cv_fttrigon=yes
12740 else
12741   echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12743
12744   wine_cv_fttrigon=no
12745 fi
12746
12747 rm -f conftest.err conftest.$ac_ext
12748         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
12749 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
12750 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
12751   echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753   cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h.  */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h.  */
12759 #include <freetype/ftmodapi.h>
12760
12761 typedef FT_TrueTypeEngineType ac__type_new_;
12762 int
12763 main ()
12764 {
12765 if ((ac__type_new_ *) 0)
12766   return 0;
12767 if (sizeof (ac__type_new_))
12768   return 0;
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 rm -f conftest.$ac_objext
12774 if { (ac_try="$ac_compile"
12775 case "(($ac_try" in
12776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777   *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780   (eval "$ac_compile") 2>conftest.er1
12781   ac_status=$?
12782   grep -v '^ *+' conftest.er1 >conftest.err
12783   rm -f conftest.er1
12784   cat conftest.err >&5
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); } &&
12787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12788   { (case "(($ac_try" in
12789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790   *) ac_try_echo=$ac_try;;
12791 esac
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793   (eval "$ac_try") 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; } &&
12797          { ac_try='test -s conftest.$ac_objext'
12798   { (case "(($ac_try" in
12799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800   *) ac_try_echo=$ac_try;;
12801 esac
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803   (eval "$ac_try") 2>&5
12804   ac_status=$?
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); }; }; then
12807   ac_cv_type_FT_TrueTypeEngineType=yes
12808 else
12809   echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812         ac_cv_type_FT_TrueTypeEngineType=no
12813 fi
12814
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 fi
12817 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
12818 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
12819 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
12820
12821 cat >>confdefs.h <<_ACEOF
12822 #define HAVE_FT_TRUETYPEENGINETYPE 1
12823 _ACEOF
12824
12825
12826 fi
12827
12828         ac_save_CFLAGS="$CFLAGS"
12829         CFLAGS="$CFLAGS $FREETYPELIBS"
12830
12831 for ac_func in FT_Load_Sfnt_Table
12832 do
12833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12837   echo $ECHO_N "(cached) $ECHO_C" >&6
12838 else
12839   cat >conftest.$ac_ext <<_ACEOF
12840 /* confdefs.h.  */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h.  */
12845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12847 #define $ac_func innocuous_$ac_func
12848
12849 /* System header to define __stub macros and hopefully few prototypes,
12850     which can conflict with char $ac_func (); below.
12851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12852     <limits.h> exists even on freestanding compilers.  */
12853
12854 #ifdef __STDC__
12855 # include <limits.h>
12856 #else
12857 # include <assert.h>
12858 #endif
12859
12860 #undef $ac_func
12861
12862 /* Override any GCC internal prototype to avoid an error.
12863    Use char because int might match the return type of a GCC
12864    builtin and then its argument prototype would still apply.  */
12865 #ifdef __cplusplus
12866 extern "C"
12867 #endif
12868 char $ac_func ();
12869 /* The GNU C library defines this for functions which it implements
12870     to always fail with ENOSYS.  Some functions are actually named
12871     something starting with __ and the normal name is an alias.  */
12872 #if defined __stub_$ac_func || defined __stub___$ac_func
12873 choke me
12874 #endif
12875
12876 int
12877 main ()
12878 {
12879 return $ac_func ();
12880   ;
12881   return 0;
12882 }
12883 _ACEOF
12884 rm -f conftest.$ac_objext conftest$ac_exeext
12885 if { (ac_try="$ac_link"
12886 case "(($ac_try" in
12887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888   *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891   (eval "$ac_link") 2>conftest.er1
12892   ac_status=$?
12893   grep -v '^ *+' conftest.er1 >conftest.err
12894   rm -f conftest.er1
12895   cat conftest.err >&5
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } &&
12898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12899   { (case "(($ac_try" in
12900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901   *) ac_try_echo=$ac_try;;
12902 esac
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904   (eval "$ac_try") 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); }; } &&
12908          { ac_try='test -s conftest$ac_exeext'
12909   { (case "(($ac_try" in
12910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911   *) ac_try_echo=$ac_try;;
12912 esac
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914   (eval "$ac_try") 2>&5
12915   ac_status=$?
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); }; }; then
12918   eval "$as_ac_var=yes"
12919 else
12920   echo "$as_me: failed program was:" >&5
12921 sed 's/^/| /' conftest.$ac_ext >&5
12922
12923         eval "$as_ac_var=no"
12924 fi
12925
12926 rm -f core conftest.err conftest.$ac_objext \
12927       conftest$ac_exeext conftest.$ac_ext
12928 fi
12929 ac_res=`eval echo '${'$as_ac_var'}'`
12930                { echo "$as_me:$LINENO: result: $ac_res" >&5
12931 echo "${ECHO_T}$ac_res" >&6; }
12932 if test `eval echo '${'$as_ac_var'}'` = yes; then
12933   cat >>confdefs.h <<_ACEOF
12934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12935 _ACEOF
12936
12937 fi
12938 done
12939
12940         CFLAGS="$ac_save_CFLAGS"
12941         CPPFLAGS="$ac_save_CPPFLAGS"
12942                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
12943         then
12944
12945 cat >>confdefs.h <<\_ACEOF
12946 #define HAVE_FREETYPE 1
12947 _ACEOF
12948
12949             wine_cv_msg_freetype=no
12950         else
12951             FREETYPELIBS=""
12952             FREETYPEINCL=""
12953             wine_cv_msg_freetype=yes
12954         fi
12955     fi
12956 fi
12957
12958 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
12959 then
12960   FONTSSUBDIRS="fonts"
12961
12962 fi
12963
12964 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
12965 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
12966 if test "${ac_cv_c_ppdev+set}" = set; then
12967   echo $ECHO_N "(cached) $ECHO_C" >&6
12968 else
12969   cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h.  */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h.  */
12975 #include <linux/ppdev.h>
12976 int
12977 main ()
12978 {
12979 ioctl (1,PPCLAIM,0)
12980   ;
12981   return 0;
12982 }
12983 _ACEOF
12984 rm -f conftest.$ac_objext
12985 if { (ac_try="$ac_compile"
12986 case "(($ac_try" in
12987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988   *) ac_try_echo=$ac_try;;
12989 esac
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991   (eval "$ac_compile") 2>conftest.er1
12992   ac_status=$?
12993   grep -v '^ *+' conftest.er1 >conftest.err
12994   rm -f conftest.er1
12995   cat conftest.err >&5
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } &&
12998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12999   { (case "(($ac_try" in
13000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001   *) ac_try_echo=$ac_try;;
13002 esac
13003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004   (eval "$ac_try") 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }; } &&
13008          { ac_try='test -s conftest.$ac_objext'
13009   { (case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014   (eval "$ac_try") 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); }; }; then
13018   ac_cv_c_ppdev="yes"
13019 else
13020   echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13022
13023         ac_cv_c_ppdev="no"
13024 fi
13025
13026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027
13028 fi
13029 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13030 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13031 if test "$ac_cv_c_ppdev" = "yes"
13032 then
13033
13034 cat >>confdefs.h <<\_ACEOF
13035 #define HAVE_PPDEV 1
13036 _ACEOF
13037
13038 fi
13039
13040 { echo "$as_me:$LINENO: checking for va_copy" >&5
13041 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13042 if test "${ac_cv_c_va_copy+set}" = set; then
13043   echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045   cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h.  */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h.  */
13051 #include <stdarg.h>
13052 int
13053 main ()
13054 {
13055 va_list ap1, ap2;
13056     va_copy(ap1,ap2);
13057
13058   ;
13059   return 0;
13060 }
13061 _ACEOF
13062 rm -f conftest.$ac_objext conftest$ac_exeext
13063 if { (ac_try="$ac_link"
13064 case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_link") 2>conftest.er1
13070   ac_status=$?
13071   grep -v '^ *+' conftest.er1 >conftest.err
13072   rm -f conftest.er1
13073   cat conftest.err >&5
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } &&
13076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077   { (case "(($ac_try" in
13078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079   *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082   (eval "$ac_try") 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; } &&
13086          { ac_try='test -s conftest$ac_exeext'
13087   { (case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_try") 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; }; then
13096   ac_cv_c_va_copy="yes"
13097 else
13098   echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101         ac_cv_c_va_copy="no"
13102 fi
13103
13104 rm -f core conftest.err conftest.$ac_objext \
13105       conftest$ac_exeext conftest.$ac_ext
13106
13107 fi
13108 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13109 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13110 if test "$ac_cv_c_va_copy" = "yes"
13111 then
13112
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_VA_COPY 1
13115 _ACEOF
13116
13117 fi
13118 { echo "$as_me:$LINENO: checking for __va_copy" >&5
13119 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13120 if test "${ac_cv_c___va_copy+set}" = set; then
13121   echo $ECHO_N "(cached) $ECHO_C" >&6
13122 else
13123   cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h.  */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h.  */
13129 #include <stdarg.h>
13130 int
13131 main ()
13132 {
13133 va_list ap1, ap2;
13134     __va_copy(ap1,ap2);
13135
13136   ;
13137   return 0;
13138 }
13139 _ACEOF
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (ac_try="$ac_link"
13142 case "(($ac_try" in
13143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144   *) ac_try_echo=$ac_try;;
13145 esac
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147   (eval "$ac_link") 2>conftest.er1
13148   ac_status=$?
13149   grep -v '^ *+' conftest.er1 >conftest.err
13150   rm -f conftest.er1
13151   cat conftest.err >&5
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); } &&
13154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13155   { (case "(($ac_try" in
13156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157   *) ac_try_echo=$ac_try;;
13158 esac
13159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160   (eval "$ac_try") 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); }; } &&
13164          { ac_try='test -s conftest$ac_exeext'
13165   { (case "(($ac_try" in
13166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167   *) ac_try_echo=$ac_try;;
13168 esac
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170   (eval "$ac_try") 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); }; }; then
13174   ac_cv_c___va_copy="yes"
13175 else
13176   echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13178
13179         ac_cv_c___va_copy="no"
13180 fi
13181
13182 rm -f core conftest.err conftest.$ac_objext \
13183       conftest$ac_exeext conftest.$ac_ext
13184
13185 fi
13186 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13187 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13188 if test "$ac_cv_c___va_copy" = "yes"
13189 then
13190
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE___VA_COPY 1
13193 _ACEOF
13194
13195 fi
13196
13197 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13198 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13199 if test "${ac_cv_c_sigsetjmp+set}" = set; then
13200   echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202   cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208 #include <setjmp.h>
13209 int
13210 main ()
13211 {
13212 sigjmp_buf buf;
13213     sigsetjmp( buf, 1 );
13214     siglongjmp( buf, 1 );
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226   (eval "$ac_link") 2>conftest.er1
13227   ac_status=$?
13228   grep -v '^ *+' conftest.er1 >conftest.err
13229   rm -f conftest.er1
13230   cat conftest.err >&5
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); } &&
13233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13234   { (case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239   (eval "$ac_try") 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); }; } &&
13243          { ac_try='test -s conftest$ac_exeext'
13244   { (case "(($ac_try" in
13245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246   *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249   (eval "$ac_try") 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; }; then
13253   ac_cv_c_sigsetjmp="yes"
13254 else
13255   echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258         ac_cv_c_sigsetjmp="no"
13259 fi
13260
13261 rm -f core conftest.err conftest.$ac_objext \
13262       conftest$ac_exeext conftest.$ac_ext
13263
13264 fi
13265 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13266 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13267 if test "$ac_cv_c_sigsetjmp" = "yes"
13268 then
13269
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_SIGSETJMP 1
13272 _ACEOF
13273
13274 fi
13275
13276 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13277 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13278 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13279   echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281   cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287 #define _GNU_SOURCE
13288 #include <pthread.h>
13289
13290 typedef pthread_rwlock_t ac__type_new_;
13291 int
13292 main ()
13293 {
13294 if ((ac__type_new_ *) 0)
13295   return 0;
13296 if (sizeof (ac__type_new_))
13297   return 0;
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 rm -f conftest.$ac_objext
13303 if { (ac_try="$ac_compile"
13304 case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309   (eval "$ac_compile") 2>conftest.er1
13310   ac_status=$?
13311   grep -v '^ *+' conftest.er1 >conftest.err
13312   rm -f conftest.er1
13313   cat conftest.err >&5
13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315   (exit $ac_status); } &&
13316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13317   { (case "(($ac_try" in
13318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319   *) ac_try_echo=$ac_try;;
13320 esac
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322   (eval "$ac_try") 2>&5
13323   ac_status=$?
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); }; } &&
13326          { ac_try='test -s conftest.$ac_objext'
13327   { (case "(($ac_try" in
13328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329   *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332   (eval "$ac_try") 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; }; then
13336   ac_cv_type_pthread_rwlock_t=yes
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341         ac_cv_type_pthread_rwlock_t=no
13342 fi
13343
13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345 fi
13346 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13347 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
13348 if test $ac_cv_type_pthread_rwlock_t = yes; then
13349
13350 cat >>confdefs.h <<_ACEOF
13351 #define HAVE_PTHREAD_RWLOCK_T 1
13352 _ACEOF
13353
13354
13355 fi
13356 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13357 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
13358 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13359   echo $ECHO_N "(cached) $ECHO_C" >&6
13360 else
13361   cat >conftest.$ac_ext <<_ACEOF
13362 /* confdefs.h.  */
13363 _ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h.  */
13367 #define _GNU_SOURCE
13368 #include <pthread.h>
13369
13370 typedef pthread_rwlockattr_t ac__type_new_;
13371 int
13372 main ()
13373 {
13374 if ((ac__type_new_ *) 0)
13375   return 0;
13376 if (sizeof (ac__type_new_))
13377   return 0;
13378   ;
13379   return 0;
13380 }
13381 _ACEOF
13382 rm -f conftest.$ac_objext
13383 if { (ac_try="$ac_compile"
13384 case "(($ac_try" in
13385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386   *) ac_try_echo=$ac_try;;
13387 esac
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389   (eval "$ac_compile") 2>conftest.er1
13390   ac_status=$?
13391   grep -v '^ *+' conftest.er1 >conftest.err
13392   rm -f conftest.er1
13393   cat conftest.err >&5
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); } &&
13396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13397   { (case "(($ac_try" in
13398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399   *) ac_try_echo=$ac_try;;
13400 esac
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402   (eval "$ac_try") 2>&5
13403   ac_status=$?
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); }; } &&
13406          { ac_try='test -s conftest.$ac_objext'
13407   { (case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412   (eval "$ac_try") 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); }; }; then
13416   ac_cv_type_pthread_rwlockattr_t=yes
13417 else
13418   echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13420
13421         ac_cv_type_pthread_rwlockattr_t=no
13422 fi
13423
13424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13425 fi
13426 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13427 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
13428 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
13429
13430 cat >>confdefs.h <<_ACEOF
13431 #define HAVE_PTHREAD_RWLOCKATTR_T 1
13432 _ACEOF
13433
13434
13435 fi
13436
13437
13438 ac_wine_check_funcs_save_LIBS="$LIBS"
13439 LIBS="$LIBS $LIBPTHREAD"
13440
13441
13442
13443
13444 for ac_func in \
13445         pthread_attr_get_np \
13446         pthread_getattr_np \
13447         pthread_get_stackaddr_np \
13448         pthread_get_stacksize_np
13449 do
13450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13451 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13454   echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456   cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h.  */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h.  */
13462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13464 #define $ac_func innocuous_$ac_func
13465
13466 /* System header to define __stub macros and hopefully few prototypes,
13467     which can conflict with char $ac_func (); below.
13468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13469     <limits.h> exists even on freestanding compilers.  */
13470
13471 #ifdef __STDC__
13472 # include <limits.h>
13473 #else
13474 # include <assert.h>
13475 #endif
13476
13477 #undef $ac_func
13478
13479 /* Override any GCC internal prototype to avoid an error.
13480    Use char because int might match the return type of a GCC
13481    builtin and then its argument prototype would still apply.  */
13482 #ifdef __cplusplus
13483 extern "C"
13484 #endif
13485 char $ac_func ();
13486 /* The GNU C library defines this for functions which it implements
13487     to always fail with ENOSYS.  Some functions are actually named
13488     something starting with __ and the normal name is an alias.  */
13489 #if defined __stub_$ac_func || defined __stub___$ac_func
13490 choke me
13491 #endif
13492
13493 int
13494 main ()
13495 {
13496 return $ac_func ();
13497   ;
13498   return 0;
13499 }
13500 _ACEOF
13501 rm -f conftest.$ac_objext conftest$ac_exeext
13502 if { (ac_try="$ac_link"
13503 case "(($ac_try" in
13504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505   *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508   (eval "$ac_link") 2>conftest.er1
13509   ac_status=$?
13510   grep -v '^ *+' conftest.er1 >conftest.err
13511   rm -f conftest.er1
13512   cat conftest.err >&5
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } &&
13515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13516   { (case "(($ac_try" in
13517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518   *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521   (eval "$ac_try") 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; } &&
13525          { ac_try='test -s conftest$ac_exeext'
13526   { (case "(($ac_try" in
13527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528   *) ac_try_echo=$ac_try;;
13529 esac
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531   (eval "$ac_try") 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }; then
13535   eval "$as_ac_var=yes"
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540         eval "$as_ac_var=no"
13541 fi
13542
13543 rm -f core conftest.err conftest.$ac_objext \
13544       conftest$ac_exeext conftest.$ac_ext
13545 fi
13546 ac_res=`eval echo '${'$as_ac_var'}'`
13547                { echo "$as_me:$LINENO: result: $ac_res" >&5
13548 echo "${ECHO_T}$ac_res" >&6; }
13549 if test `eval echo '${'$as_ac_var'}'` = yes; then
13550   cat >>confdefs.h <<_ACEOF
13551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13552 _ACEOF
13553
13554 fi
13555 done
13556
13557 LIBS="$ac_wine_check_funcs_save_LIBS"
13558
13559 # Extract the first word of "artsc-config", so it can be a program name with args.
13560 set dummy artsc-config; ac_word=$2
13561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13563 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
13564   echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566   case $ARTSCCONFIG in
13567   [\\/]* | ?:[\\/]*)
13568   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
13569   ;;
13570   *)
13571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13573 do
13574   IFS=$as_save_IFS
13575   test -z "$as_dir" && as_dir=.
13576   for ac_exec_ext in '' $ac_executable_extensions; do
13577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13578     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
13579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13580     break 2
13581   fi
13582 done
13583 done
13584 IFS=$as_save_IFS
13585
13586   ;;
13587 esac
13588 fi
13589 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
13590 if test -n "$ARTSCCONFIG"; then
13591   { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
13592 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
13593 else
13594   { echo "$as_me:$LINENO: result: no" >&5
13595 echo "${ECHO_T}no" >&6; }
13596 fi
13597
13598
13599 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
13600 then
13601     ARTSC_CFLAGS=""
13602     for i in `$ARTSCCONFIG --cflags`
13603     do
13604       case "$i" in
13605         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
13606       esac
13607     done
13608     ARTSC_LIBS=""
13609     for i in `$ARTSCCONFIG --libs`
13610     do
13611       case "$i" in
13612         -L/usr/lib|-L/usr/lib64) ;;
13613         -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
13614       esac
13615     done
13616     save_CFLAGS="$CFLAGS"
13617     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
13618     { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
13619 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
13620 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
13621   echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623   ac_check_lib_save_LIBS=$LIBS
13624 LIBS="-lartsc $ARTSC_LIBS $LIBS"
13625 cat >conftest.$ac_ext <<_ACEOF
13626 /* confdefs.h.  */
13627 _ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h.  */
13631
13632 /* Override any GCC internal prototype to avoid an error.
13633    Use char because int might match the return type of a GCC
13634    builtin and then its argument prototype would still apply.  */
13635 #ifdef __cplusplus
13636 extern "C"
13637 #endif
13638 char arts_init ();
13639 int
13640 main ()
13641 {
13642 return arts_init ();
13643   ;
13644   return 0;
13645 }
13646 _ACEOF
13647 rm -f conftest.$ac_objext conftest$ac_exeext
13648 if { (ac_try="$ac_link"
13649 case "(($ac_try" in
13650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651   *) ac_try_echo=$ac_try;;
13652 esac
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654   (eval "$ac_link") 2>conftest.er1
13655   ac_status=$?
13656   grep -v '^ *+' conftest.er1 >conftest.err
13657   rm -f conftest.er1
13658   cat conftest.err >&5
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); } &&
13661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662   { (case "(($ac_try" in
13663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664   *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667   (eval "$ac_try") 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; } &&
13671          { ac_try='test -s conftest$ac_exeext'
13672   { (case "(($ac_try" in
13673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674   *) ac_try_echo=$ac_try;;
13675 esac
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677   (eval "$ac_try") 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   ac_cv_lib_artsc_arts_init=yes
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686         ac_cv_lib_artsc_arts_init=no
13687 fi
13688
13689 rm -f core conftest.err conftest.$ac_objext \
13690       conftest$ac_exeext conftest.$ac_ext
13691 LIBS=$ac_check_lib_save_LIBS
13692 fi
13693 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
13694 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
13695 if test $ac_cv_lib_artsc_arts_init = yes; then
13696   cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h.  */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h.  */
13702 #include <artsc.h>
13703 int
13704 main ()
13705 {
13706 arts_stream_t stream;
13707   ;
13708   return 0;
13709 }
13710 _ACEOF
13711 rm -f conftest.$ac_objext
13712 if { (ac_try="$ac_compile"
13713 case "(($ac_try" in
13714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715   *) ac_try_echo=$ac_try;;
13716 esac
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718   (eval "$ac_compile") 2>conftest.er1
13719   ac_status=$?
13720   grep -v '^ *+' conftest.er1 >conftest.err
13721   rm -f conftest.er1
13722   cat conftest.err >&5
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } &&
13725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13726   { (case "(($ac_try" in
13727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728   *) ac_try_echo=$ac_try;;
13729 esac
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731   (eval "$ac_try") 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }; } &&
13735          { ac_try='test -s conftest.$ac_objext'
13736   { (case "(($ac_try" in
13737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738   *) ac_try_echo=$ac_try;;
13739 esac
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741   (eval "$ac_try") 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; }; then
13745   ARTSLIBS=$ARTSC_LIBS
13746
13747             ARTSINCL=$ARTSC_CFLAGS
13748
13749
13750 cat >>confdefs.h <<\_ACEOF
13751 #define HAVE_ARTS 1
13752 _ACEOF
13753
13754 else
13755   echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758
13759 fi
13760
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762 fi
13763
13764     CFLAGS="$save_CFLAGS"
13765 fi
13766
13767 # Extract the first word of "esd-config", so it can be a program name with args.
13768 set dummy esd-config; ac_word=$2
13769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13771 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   case $ESDCONFIG in
13775   [\\/]* | ?:[\\/]*)
13776   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
13777   ;;
13778   *)
13779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13781 do
13782   IFS=$as_save_IFS
13783   test -z "$as_dir" && as_dir=.
13784   for ac_exec_ext in '' $ac_executable_extensions; do
13785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13786     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
13787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13788     break 2
13789   fi
13790 done
13791 done
13792 IFS=$as_save_IFS
13793
13794   ;;
13795 esac
13796 fi
13797 ESDCONFIG=$ac_cv_path_ESDCONFIG
13798 if test -n "$ESDCONFIG"; then
13799   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
13800 echo "${ECHO_T}$ESDCONFIG" >&6; }
13801 else
13802   { echo "$as_me:$LINENO: result: no" >&5
13803 echo "${ECHO_T}no" >&6; }
13804 fi
13805
13806
13807 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
13808 then
13809     ESD_CFLAGS=""
13810     for i in `$ESDCONFIG --cflags`
13811     do
13812       case "$i" in
13813         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
13814       esac
13815     done
13816     ESD_LIBS=`$ESDCONFIG --libs`
13817     save_CFLAGS="$CFLAGS"
13818     CFLAGS="$CFLAGS $ESD_CFLAGS"
13819     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
13820 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
13821 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
13822   echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824   ac_check_lib_save_LIBS=$LIBS
13825 LIBS="-lesd  $LIBS"
13826 cat >conftest.$ac_ext <<_ACEOF
13827 /* confdefs.h.  */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h.  */
13832
13833 /* Override any GCC internal prototype to avoid an error.
13834    Use char because int might match the return type of a GCC
13835    builtin and then its argument prototype would still apply.  */
13836 #ifdef __cplusplus
13837 extern "C"
13838 #endif
13839 char esd_open_sound ();
13840 int
13841 main ()
13842 {
13843 return esd_open_sound ();
13844   ;
13845   return 0;
13846 }
13847 _ACEOF
13848 rm -f conftest.$ac_objext conftest$ac_exeext
13849 if { (ac_try="$ac_link"
13850 case "(($ac_try" in
13851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852   *) ac_try_echo=$ac_try;;
13853 esac
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855   (eval "$ac_link") 2>conftest.er1
13856   ac_status=$?
13857   grep -v '^ *+' conftest.er1 >conftest.err
13858   rm -f conftest.er1
13859   cat conftest.err >&5
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); } &&
13862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13863   { (case "(($ac_try" in
13864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865   *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868   (eval "$ac_try") 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; } &&
13872          { ac_try='test -s conftest$ac_exeext'
13873   { (case "(($ac_try" in
13874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875   *) ac_try_echo=$ac_try;;
13876 esac
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878   (eval "$ac_try") 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; }; then
13882   ac_cv_lib_esd_esd_open_sound=yes
13883 else
13884   echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887         ac_cv_lib_esd_esd_open_sound=no
13888 fi
13889
13890 rm -f core conftest.err conftest.$ac_objext \
13891       conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13893 fi
13894 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
13895 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
13896 if test $ac_cv_lib_esd_esd_open_sound = yes; then
13897   ESDLIBS=$ESD_LIBS
13898
13899          ESDINCL=$ESD_CFLAGS
13900
13901
13902 cat >>confdefs.h <<\_ACEOF
13903 #define HAVE_ESD 1
13904 _ACEOF
13905
13906 fi
13907
13908     CFLAGS="$save_CFLAGS"
13909 fi
13910
13911 ALSALIBS=""
13912
13913 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
13914 then
13915     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
13916 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
13917 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
13918   echo $ECHO_N "(cached) $ECHO_C" >&6
13919 else
13920   ac_check_lib_save_LIBS=$LIBS
13921 LIBS="-lasound  $LIBS"
13922 cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928
13929 /* Override any GCC internal prototype to avoid an error.
13930    Use char because int might match the return type of a GCC
13931    builtin and then its argument prototype would still apply.  */
13932 #ifdef __cplusplus
13933 extern "C"
13934 #endif
13935 char snd_pcm_hw_params_get_access ();
13936 int
13937 main ()
13938 {
13939 return snd_pcm_hw_params_get_access ();
13940   ;
13941   return 0;
13942 }
13943 _ACEOF
13944 rm -f conftest.$ac_objext conftest$ac_exeext
13945 if { (ac_try="$ac_link"
13946 case "(($ac_try" in
13947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948   *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951   (eval "$ac_link") 2>conftest.er1
13952   ac_status=$?
13953   grep -v '^ *+' conftest.er1 >conftest.err
13954   rm -f conftest.er1
13955   cat conftest.err >&5
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); } &&
13958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13959   { (case "(($ac_try" in
13960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961   *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964   (eval "$ac_try") 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); }; } &&
13968          { ac_try='test -s conftest$ac_exeext'
13969   { (case "(($ac_try" in
13970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971   *) ac_try_echo=$ac_try;;
13972 esac
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974   (eval "$ac_try") 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; }; then
13978   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
13979 else
13980   echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
13984 fi
13985
13986 rm -f core conftest.err conftest.$ac_objext \
13987       conftest$ac_exeext conftest.$ac_ext
13988 LIBS=$ac_check_lib_save_LIBS
13989 fi
13990 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
13991 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
13992 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
13993   cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h.  */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h.  */
13999 #ifdef HAVE_ALSA_ASOUNDLIB_H
14000 #include <alsa/asoundlib.h>
14001 #elif defined(HAVE_SYS_ASOUNDLIB_H)
14002 #include <sys/asoundlib.h>
14003 #endif
14004 int
14005 main ()
14006 {
14007 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14008   ;
14009   return 0;
14010 }
14011 _ACEOF
14012 rm -f conftest.$ac_objext
14013 if { (ac_try="$ac_compile"
14014 case "(($ac_try" in
14015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016   *) ac_try_echo=$ac_try;;
14017 esac
14018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019   (eval "$ac_compile") 2>conftest.er1
14020   ac_status=$?
14021   grep -v '^ *+' conftest.er1 >conftest.err
14022   rm -f conftest.er1
14023   cat conftest.err >&5
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); } &&
14026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14027   { (case "(($ac_try" in
14028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029   *) ac_try_echo=$ac_try;;
14030 esac
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032   (eval "$ac_try") 2>&5
14033   ac_status=$?
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); }; } &&
14036          { ac_try='test -s conftest.$ac_objext'
14037   { (case "(($ac_try" in
14038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039   *) ac_try_echo=$ac_try;;
14040 esac
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042   (eval "$ac_try") 2>&5
14043   ac_status=$?
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); }; }; then
14046
14047 cat >>confdefs.h <<\_ACEOF
14048 #define HAVE_ALSA 1
14049 _ACEOF
14050
14051                          ALSALIBS="-lasound"
14052 else
14053   echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14055
14056
14057 fi
14058
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 fi
14061
14062 fi
14063
14064
14065 AUDIOIOLIBS=""
14066
14067 if test "$ac_cv_header_libaudioio_h" = "yes"
14068 then
14069     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14070 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14071 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14072   echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074   ac_check_lib_save_LIBS=$LIBS
14075 LIBS="-laudioio  $LIBS"
14076 cat >conftest.$ac_ext <<_ACEOF
14077 /* confdefs.h.  */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h.  */
14082
14083 /* Override any GCC internal prototype to avoid an error.
14084    Use char because int might match the return type of a GCC
14085    builtin and then its argument prototype would still apply.  */
14086 #ifdef __cplusplus
14087 extern "C"
14088 #endif
14089 char AudioIOGetVersion ();
14090 int
14091 main ()
14092 {
14093 return AudioIOGetVersion ();
14094   ;
14095   return 0;
14096 }
14097 _ACEOF
14098 rm -f conftest.$ac_objext conftest$ac_exeext
14099 if { (ac_try="$ac_link"
14100 case "(($ac_try" in
14101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102   *) ac_try_echo=$ac_try;;
14103 esac
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105   (eval "$ac_link") 2>conftest.er1
14106   ac_status=$?
14107   grep -v '^ *+' conftest.er1 >conftest.err
14108   rm -f conftest.er1
14109   cat conftest.err >&5
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); } &&
14112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14113   { (case "(($ac_try" in
14114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115   *) ac_try_echo=$ac_try;;
14116 esac
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118   (eval "$ac_try") 2>&5
14119   ac_status=$?
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; } &&
14122          { ac_try='test -s conftest$ac_exeext'
14123   { (case "(($ac_try" in
14124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125   *) ac_try_echo=$ac_try;;
14126 esac
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128   (eval "$ac_try") 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); }; }; then
14132   ac_cv_lib_audioio_AudioIOGetVersion=yes
14133 else
14134   echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14136
14137         ac_cv_lib_audioio_AudioIOGetVersion=no
14138 fi
14139
14140 rm -f core conftest.err conftest.$ac_objext \
14141       conftest$ac_exeext conftest.$ac_ext
14142 LIBS=$ac_check_lib_save_LIBS
14143 fi
14144 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14145 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14146 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14147   AUDIOIOLIBS="-laudioio"
14148
14149 cat >>confdefs.h <<\_ACEOF
14150 #define HAVE_LIBAUDIOIO 1
14151 _ACEOF
14152
14153 fi
14154
14155 fi
14156
14157
14158 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14159 then
14160     { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14161 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
14162 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14163   echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165   ac_check_lib_save_LIBS=$LIBS
14166 LIBS="-lcapi20  $LIBS"
14167 cat >conftest.$ac_ext <<_ACEOF
14168 /* confdefs.h.  */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h.  */
14173
14174 /* Override any GCC internal prototype to avoid an error.
14175    Use char because int might match the return type of a GCC
14176    builtin and then its argument prototype would still apply.  */
14177 #ifdef __cplusplus
14178 extern "C"
14179 #endif
14180 char capi20_register ();
14181 int
14182 main ()
14183 {
14184 return capi20_register ();
14185   ;
14186   return 0;
14187 }
14188 _ACEOF
14189 rm -f conftest.$ac_objext conftest$ac_exeext
14190 if { (ac_try="$ac_link"
14191 case "(($ac_try" in
14192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193   *) ac_try_echo=$ac_try;;
14194 esac
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196   (eval "$ac_link") 2>conftest.er1
14197   ac_status=$?
14198   grep -v '^ *+' conftest.er1 >conftest.err
14199   rm -f conftest.er1
14200   cat conftest.err >&5
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); } &&
14203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14204   { (case "(($ac_try" in
14205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206   *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209   (eval "$ac_try") 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; } &&
14213          { ac_try='test -s conftest$ac_exeext'
14214   { (case "(($ac_try" in
14215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216   *) ac_try_echo=$ac_try;;
14217 esac
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219   (eval "$ac_try") 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; }; then
14223   ac_cv_lib_capi20_capi20_register=yes
14224 else
14225   echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228         ac_cv_lib_capi20_capi20_register=no
14229 fi
14230
14231 rm -f core conftest.err conftest.$ac_objext \
14232       conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14234 fi
14235 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14236 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
14237 if test $ac_cv_lib_capi20_capi20_register = yes; then
14238
14239 cat >>confdefs.h <<\_ACEOF
14240 #define HAVE_CAPI4LINUX 1
14241 _ACEOF
14242
14243 fi
14244
14245 fi
14246
14247
14248 if test "$ac_cv_header_gif_lib_h" = "yes"
14249 then
14250     cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256 #include <gif_lib.h>
14257 int
14258 main ()
14259 {
14260 static typeof(DGifOpen) * func;
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (ac_try="$ac_compile"
14267 case "(($ac_try" in
14268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269   *) ac_try_echo=$ac_try;;
14270 esac
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272   (eval "$ac_compile") 2>conftest.er1
14273   ac_status=$?
14274   grep -v '^ *+' conftest.er1 >conftest.err
14275   rm -f conftest.er1
14276   cat conftest.err >&5
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); } &&
14279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14280   { (case "(($ac_try" in
14281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282   *) ac_try_echo=$ac_try;;
14283 esac
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285   (eval "$ac_try") 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; } &&
14289          { ac_try='test -s conftest.$ac_objext'
14290   { (case "(($ac_try" in
14291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292   *) ac_try_echo=$ac_try;;
14293 esac
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295   (eval "$ac_try") 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; }; then
14299
14300 cat >>confdefs.h <<\_ACEOF
14301 #define HAVE_GIF 1
14302 _ACEOF
14303
14304 else
14305   echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14307
14308
14309 fi
14310
14311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14312 fi
14313
14314
14315 EXTRACFLAGS=""
14316
14317 if test "x${GCC}" = "xyes"
14318 then
14319   EXTRACFLAGS="-Wall -pipe"
14320
14321     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14322 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14323 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   if test "$cross_compiling" = yes; then
14327   ac_cv_c_gcc_strength_bug="yes"
14328 else
14329   cat >conftest.$ac_ext <<_ACEOF
14330 /* confdefs.h.  */
14331 _ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h.  */
14335
14336 int     L[4] = {0,1,2,3};
14337 int main(void) {
14338   static int Array[3];
14339   unsigned int B = 3;
14340   int i;
14341   for(i=0; i<B; i++) Array[i] = i - 3;
14342   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14343   L[i] = 4;
14344
14345   exit( Array[1] != -2 || L[2] != 3);
14346 }
14347 _ACEOF
14348 rm -f conftest$ac_exeext
14349 if { (ac_try="$ac_link"
14350 case "(($ac_try" in
14351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352   *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355   (eval "$ac_link") 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14359   { (case "(($ac_try" in
14360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361   *) ac_try_echo=$ac_try;;
14362 esac
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364   (eval "$ac_try") 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; }; then
14368   ac_cv_c_gcc_strength_bug="no"
14369 else
14370   echo "$as_me: program exited with status $ac_status" >&5
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 ( exit $ac_status )
14375 ac_cv_c_gcc_strength_bug="yes"
14376 fi
14377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14378 fi
14379
14380
14381 fi
14382 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14383 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
14384   if test "$ac_cv_c_gcc_strength_bug" = "yes"
14385   then
14386     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
14387   fi
14388
14389
14390   { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
14391 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
14392 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395   ac_wine_try_cflags_saved=$CFLAGS
14396 CFLAGS="$CFLAGS -fshort-wchar"
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h.  */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h.  */
14403
14404 int
14405 main ()
14406 {
14407
14408   ;
14409   return 0;
14410 }
14411 _ACEOF
14412 rm -f conftest.$ac_objext conftest$ac_exeext
14413 if { (ac_try="$ac_link"
14414 case "(($ac_try" in
14415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416   *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419   (eval "$ac_link") 2>conftest.er1
14420   ac_status=$?
14421   grep -v '^ *+' conftest.er1 >conftest.err
14422   rm -f conftest.er1
14423   cat conftest.err >&5
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); } &&
14426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14427   { (case "(($ac_try" in
14428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429   *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432   (eval "$ac_try") 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; } &&
14436          { ac_try='test -s conftest$ac_exeext'
14437   { (case "(($ac_try" in
14438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439   *) ac_try_echo=$ac_try;;
14440 esac
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442   (eval "$ac_try") 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; }; then
14446   ac_cv_cflags__fshort_wchar=yes
14447 else
14448   echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14450
14451         ac_cv_cflags__fshort_wchar=no
14452 fi
14453
14454 rm -f core conftest.err conftest.$ac_objext \
14455       conftest$ac_exeext conftest.$ac_ext
14456 CFLAGS=$ac_wine_try_cflags_saved
14457 fi
14458 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
14459 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
14460 if test $ac_cv_cflags__fshort_wchar = yes; then
14461
14462 cat >>confdefs.h <<\_ACEOF
14463 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
14464 _ACEOF
14465
14466 fi
14467
14468   { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
14469 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
14470 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
14471   echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473   ac_wine_try_cflags_saved=$CFLAGS
14474 CFLAGS="$CFLAGS -fno-strict-aliasing"
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h.  */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h.  */
14481
14482 int
14483 main ()
14484 {
14485
14486   ;
14487   return 0;
14488 }
14489 _ACEOF
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (ac_try="$ac_link"
14492 case "(($ac_try" in
14493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494   *) ac_try_echo=$ac_try;;
14495 esac
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497   (eval "$ac_link") 2>conftest.er1
14498   ac_status=$?
14499   grep -v '^ *+' conftest.er1 >conftest.err
14500   rm -f conftest.er1
14501   cat conftest.err >&5
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); } &&
14504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14505   { (case "(($ac_try" in
14506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507   *) ac_try_echo=$ac_try;;
14508 esac
14509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14510   (eval "$ac_try") 2>&5
14511   ac_status=$?
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); }; } &&
14514          { ac_try='test -s conftest$ac_exeext'
14515   { (case "(($ac_try" in
14516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517   *) ac_try_echo=$ac_try;;
14518 esac
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520   (eval "$ac_try") 2>&5
14521   ac_status=$?
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); }; }; then
14524   ac_cv_cflags__fno_strict_aliasing=yes
14525 else
14526   echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14528
14529         ac_cv_cflags__fno_strict_aliasing=no
14530 fi
14531
14532 rm -f core conftest.err conftest.$ac_objext \
14533       conftest$ac_exeext conftest.$ac_ext
14534 CFLAGS=$ac_wine_try_cflags_saved
14535 fi
14536 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
14537 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
14538 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
14539   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
14540 fi
14541
14542   { echo "$as_me:$LINENO: checking whether the compiler supports -gstabs+" >&5
14543 echo $ECHO_N "checking whether the compiler supports -gstabs+... $ECHO_C" >&6; }
14544 if test "${ac_cv_cflags__gstabsp+set}" = set; then
14545   echo $ECHO_N "(cached) $ECHO_C" >&6
14546 else
14547   ac_wine_try_cflags_saved=$CFLAGS
14548 CFLAGS="$CFLAGS -gstabs+"
14549 cat >conftest.$ac_ext <<_ACEOF
14550 /* confdefs.h.  */
14551 _ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h.  */
14555
14556 int
14557 main ()
14558 {
14559
14560   ;
14561   return 0;
14562 }
14563 _ACEOF
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568   *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571   (eval "$ac_link") 2>conftest.er1
14572   ac_status=$?
14573   grep -v '^ *+' conftest.er1 >conftest.err
14574   rm -f conftest.er1
14575   cat conftest.err >&5
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); } &&
14578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14579   { (case "(($ac_try" in
14580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581   *) ac_try_echo=$ac_try;;
14582 esac
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584   (eval "$ac_try") 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; } &&
14588          { ac_try='test -s conftest$ac_exeext'
14589   { (case "(($ac_try" in
14590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591   *) ac_try_echo=$ac_try;;
14592 esac
14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594   (eval "$ac_try") 2>&5
14595   ac_status=$?
14596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597   (exit $ac_status); }; }; then
14598   ac_cv_cflags__gstabsp=yes
14599 else
14600   echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14602
14603         ac_cv_cflags__gstabsp=no
14604 fi
14605
14606 rm -f core conftest.err conftest.$ac_objext \
14607       conftest$ac_exeext conftest.$ac_ext
14608 CFLAGS=$ac_wine_try_cflags_saved
14609 fi
14610 { echo "$as_me:$LINENO: result: $ac_cv_cflags__gstabsp" >&5
14611 echo "${ECHO_T}$ac_cv_cflags__gstabsp" >&6; }
14612 if test $ac_cv_cflags__gstabsp = yes; then
14613   EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
14614 fi
14615
14616   { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
14617 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
14618 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
14619   echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621   ac_wine_try_cflags_saved=$CFLAGS
14622 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h.  */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h.  */
14629
14630 int
14631 main ()
14632 {
14633
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (ac_try="$ac_link"
14640 case "(($ac_try" in
14641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642   *) ac_try_echo=$ac_try;;
14643 esac
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645   (eval "$ac_link") 2>conftest.er1
14646   ac_status=$?
14647   grep -v '^ *+' conftest.er1 >conftest.err
14648   rm -f conftest.er1
14649   cat conftest.err >&5
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); } &&
14652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14653   { (case "(($ac_try" in
14654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655   *) ac_try_echo=$ac_try;;
14656 esac
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658   (eval "$ac_try") 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); }; } &&
14662          { ac_try='test -s conftest$ac_exeext'
14663   { (case "(($ac_try" in
14664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665   *) ac_try_echo=$ac_try;;
14666 esac
14667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668   (eval "$ac_try") 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); }; }; then
14672   ac_cv_cflags__Wdeclaration_after_statement=yes
14673 else
14674   echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14676
14677         ac_cv_cflags__Wdeclaration_after_statement=no
14678 fi
14679
14680 rm -f core conftest.err conftest.$ac_objext \
14681       conftest$ac_exeext conftest.$ac_ext
14682 CFLAGS=$ac_wine_try_cflags_saved
14683 fi
14684 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
14685 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
14686 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
14687   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
14688 fi
14689
14690   { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
14691 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
14692 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
14693   echo $ECHO_N "(cached) $ECHO_C" >&6
14694 else
14695   ac_wine_try_cflags_saved=$CFLAGS
14696 CFLAGS="$CFLAGS -Wwrite-strings"
14697 cat >conftest.$ac_ext <<_ACEOF
14698 /* confdefs.h.  */
14699 _ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h.  */
14703
14704 int
14705 main ()
14706 {
14707
14708   ;
14709   return 0;
14710 }
14711 _ACEOF
14712 rm -f conftest.$ac_objext conftest$ac_exeext
14713 if { (ac_try="$ac_link"
14714 case "(($ac_try" in
14715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716   *) ac_try_echo=$ac_try;;
14717 esac
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719   (eval "$ac_link") 2>conftest.er1
14720   ac_status=$?
14721   grep -v '^ *+' conftest.er1 >conftest.err
14722   rm -f conftest.er1
14723   cat conftest.err >&5
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); } &&
14726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14727   { (case "(($ac_try" in
14728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729   *) ac_try_echo=$ac_try;;
14730 esac
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732   (eval "$ac_try") 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; } &&
14736          { ac_try='test -s conftest$ac_exeext'
14737   { (case "(($ac_try" in
14738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739   *) ac_try_echo=$ac_try;;
14740 esac
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742   (eval "$ac_try") 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; }; then
14746   ac_cv_cflags__Wwrite_strings=yes
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751         ac_cv_cflags__Wwrite_strings=no
14752 fi
14753
14754 rm -f core conftest.err conftest.$ac_objext \
14755       conftest$ac_exeext conftest.$ac_ext
14756 CFLAGS=$ac_wine_try_cflags_saved
14757 fi
14758 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
14759 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
14760 if test $ac_cv_cflags__Wwrite_strings = yes; then
14761   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
14762 fi
14763
14764
14765     saved_CFLAGS="$CFLAGS"
14766   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
14767   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
14768 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
14769 if test "${ac_cv_c_string_h_warnings+set}" = set; then
14770   echo $ECHO_N "(cached) $ECHO_C" >&6
14771 else
14772   cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h.  */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h.  */
14778 #include <string.h>
14779 int
14780 main ()
14781 {
14782
14783   ;
14784   return 0;
14785 }
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_compile") 2>conftest.er1
14795   ac_status=$?
14796   grep -v '^ *+' conftest.er1 >conftest.err
14797   rm -f conftest.er1
14798   cat conftest.err >&5
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } &&
14801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14802   { (case "(($ac_try" in
14803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804   *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807   (eval "$ac_try") 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; } &&
14811          { ac_try='test -s conftest.$ac_objext'
14812   { (case "(($ac_try" in
14813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814   *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817   (eval "$ac_try") 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); }; }; then
14821   ac_cv_c_string_h_warnings=no
14822 else
14823   echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826         ac_cv_c_string_h_warnings=yes
14827 fi
14828
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 fi
14831 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
14832 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
14833   CFLAGS="$saved_CFLAGS"
14834   if test "$ac_cv_c_string_h_warnings" = "no"
14835   then
14836     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
14837   fi
14838
14839   BUILTINFLAG=""
14840
14841   saved_CFLAGS="$CFLAGS"
14842   CFLAGS="$CFLAGS -Werror"
14843   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
14844 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
14845 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
14846   echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848   cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h.  */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h.  */
14854
14855 int
14856 main ()
14857 {
14858 int iswlower(unsigned short);
14859   ;
14860   return 0;
14861 }
14862 _ACEOF
14863 rm -f conftest.$ac_objext
14864 if { (ac_try="$ac_compile"
14865 case "(($ac_try" in
14866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867   *) ac_try_echo=$ac_try;;
14868 esac
14869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870   (eval "$ac_compile") 2>conftest.er1
14871   ac_status=$?
14872   grep -v '^ *+' conftest.er1 >conftest.err
14873   rm -f conftest.er1
14874   cat conftest.err >&5
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); } &&
14877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14878   { (case "(($ac_try" in
14879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880   *) ac_try_echo=$ac_try;;
14881 esac
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883   (eval "$ac_try") 2>&5
14884   ac_status=$?
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); }; } &&
14887          { ac_try='test -s conftest.$ac_objext'
14888   { (case "(($ac_try" in
14889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890   *) ac_try_echo=$ac_try;;
14891 esac
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893   (eval "$ac_try") 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); }; }; then
14897   ac_cv_c_builtin_wchar_ctype=no
14898 else
14899   echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14901
14902         ac_cv_c_builtin_wchar_ctype=yes
14903 fi
14904
14905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906 fi
14907 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
14908 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
14909   CFLAGS="$saved_CFLAGS"
14910   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
14911   then
14912     BUILTINFLAG="-fno-builtin"
14913   fi
14914 fi
14915
14916
14917 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
14918 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
14919 if test "${ac_cv_asm_func_def+set}" = set; then
14920   echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922   cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h.  */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h.  */
14928 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"); }
14929
14930 int
14931 main ()
14932 {
14933
14934   ;
14935   return 0;
14936 }
14937 _ACEOF
14938 rm -f conftest.$ac_objext conftest$ac_exeext
14939 if { (ac_try="$ac_link"
14940 case "(($ac_try" in
14941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942   *) ac_try_echo=$ac_try;;
14943 esac
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945   (eval "$ac_link") 2>conftest.er1
14946   ac_status=$?
14947   grep -v '^ *+' conftest.er1 >conftest.err
14948   rm -f conftest.er1
14949   cat conftest.err >&5
14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951   (exit $ac_status); } &&
14952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14953   { (case "(($ac_try" in
14954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955   *) ac_try_echo=$ac_try;;
14956 esac
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958   (eval "$ac_try") 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); }; } &&
14962          { ac_try='test -s conftest$ac_exeext'
14963   { (case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_try") 2>&5
14969   ac_status=$?
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); }; }; then
14972   ac_cv_asm_func_def=".def"
14973 else
14974   echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14976
14977         cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h.  */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h.  */
14983 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
14984
14985 int
14986 main ()
14987 {
14988
14989   ;
14990   return 0;
14991 }
14992 _ACEOF
14993 rm -f conftest.$ac_objext conftest$ac_exeext
14994 if { (ac_try="$ac_link"
14995 case "(($ac_try" in
14996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997   *) ac_try_echo=$ac_try;;
14998 esac
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000   (eval "$ac_link") 2>conftest.er1
15001   ac_status=$?
15002   grep -v '^ *+' conftest.er1 >conftest.err
15003   rm -f conftest.er1
15004   cat conftest.err >&5
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); } &&
15007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15008   { (case "(($ac_try" in
15009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010   *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013   (eval "$ac_try") 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); }; } &&
15017          { ac_try='test -s conftest$ac_exeext'
15018   { (case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023   (eval "$ac_try") 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); }; }; then
15027   ac_cv_asm_func_def=".type @function"
15028 else
15029   echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15031
15032         cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h.  */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h.  */
15038 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
15039
15040 int
15041 main ()
15042 {
15043
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052   *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055   (eval "$ac_link") 2>conftest.er1
15056   ac_status=$?
15057   grep -v '^ *+' conftest.er1 >conftest.err
15058   rm -f conftest.er1
15059   cat conftest.err >&5
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } &&
15062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15063   { (case "(($ac_try" in
15064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065   *) ac_try_echo=$ac_try;;
15066 esac
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068   (eval "$ac_try") 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); }; } &&
15072          { ac_try='test -s conftest$ac_exeext'
15073   { (case "(($ac_try" in
15074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075   *) ac_try_echo=$ac_try;;
15076 esac
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078   (eval "$ac_try") 2>&5
15079   ac_status=$?
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); }; }; then
15082   ac_cv_asm_func_def=".type 2"
15083 else
15084   echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15086
15087         ac_cv_asm_func_def="unknown"
15088 fi
15089
15090 rm -f core conftest.err conftest.$ac_objext \
15091       conftest$ac_exeext conftest.$ac_ext
15092 fi
15093
15094 rm -f core conftest.err conftest.$ac_objext \
15095       conftest$ac_exeext conftest.$ac_ext
15096 fi
15097
15098 rm -f core conftest.err conftest.$ac_objext \
15099       conftest$ac_exeext conftest.$ac_ext
15100 fi
15101 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15102 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
15103
15104
15105
15106 case "$ac_cv_asm_func_def" in
15107   ".def")
15108      cat >>confdefs.h <<\_ACEOF
15109 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15110 _ACEOF
15111  ;;
15112   ".type @function")
15113      cat >>confdefs.h <<\_ACEOF
15114 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15115 _ACEOF
15116  ;;
15117   ".type 2")
15118      cat >>confdefs.h <<\_ACEOF
15119 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15120 _ACEOF
15121  ;;
15122   *)
15123      cat >>confdefs.h <<\_ACEOF
15124 #define __ASM_FUNC(name) ""
15125 _ACEOF
15126  ;;
15127 esac
15128
15129
15130 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15131 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15132 if test "${ac_cv_c_extern_prefix+set}" = set; then
15133   echo $ECHO_N "(cached) $ECHO_C" >&6
15134 else
15135   cat >conftest.$ac_ext <<_ACEOF
15136 /* confdefs.h.  */
15137 _ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h.  */
15141 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
15142 extern int ac_test;
15143 int
15144 main ()
15145 {
15146 if (ac_test) return 1
15147   ;
15148   return 0;
15149 }
15150 _ACEOF
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (ac_try="$ac_link"
15153 case "(($ac_try" in
15154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155   *) ac_try_echo=$ac_try;;
15156 esac
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158   (eval "$ac_link") 2>conftest.er1
15159   ac_status=$?
15160   grep -v '^ *+' conftest.er1 >conftest.err
15161   rm -f conftest.er1
15162   cat conftest.err >&5
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); } &&
15165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15166   { (case "(($ac_try" in
15167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168   *) ac_try_echo=$ac_try;;
15169 esac
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171   (eval "$ac_try") 2>&5
15172   ac_status=$?
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); }; } &&
15175          { ac_try='test -s conftest$ac_exeext'
15176   { (case "(($ac_try" in
15177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15178   *) ac_try_echo=$ac_try;;
15179 esac
15180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15181   (eval "$ac_try") 2>&5
15182   ac_status=$?
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); }; }; then
15185   ac_cv_c_extern_prefix="yes"
15186 else
15187   echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15189
15190         ac_cv_c_extern_prefix="no"
15191 fi
15192
15193 rm -f core conftest.err conftest.$ac_objext \
15194       conftest$ac_exeext conftest.$ac_ext
15195 fi
15196 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15197 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
15198
15199
15200
15201 if test "$ac_cv_c_extern_prefix" = "yes"
15202 then
15203   cat >>confdefs.h <<\_ACEOF
15204 #define __ASM_NAME(name) "_" name
15205 _ACEOF
15206
15207 else
15208   cat >>confdefs.h <<\_ACEOF
15209 #define __ASM_NAME(name) name
15210 _ACEOF
15211
15212 fi
15213
15214
15215 DLLEXT=""
15216
15217 DLLFLAGS="-D_REENTRANT"
15218
15219 LDSHARED=""
15220
15221 LDDLLFLAGS=""
15222
15223 LIBEXT="so"
15224
15225 IMPLIBEXT="def"
15226
15227
15228 case $host_os in
15229   cygwin*|mingw32*)
15230     if test -n "$ac_tool_prefix"; then
15231   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15232 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15235 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15236   echo $ECHO_N "(cached) $ECHO_C" >&6
15237 else
15238   if test -n "$DLLTOOL"; then
15239   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15240 else
15241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15242 for as_dir in $PATH
15243 do
15244   IFS=$as_save_IFS
15245   test -z "$as_dir" && as_dir=.
15246   for ac_exec_ext in '' $ac_executable_extensions; do
15247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15248     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15250     break 2
15251   fi
15252 done
15253 done
15254 IFS=$as_save_IFS
15255
15256 fi
15257 fi
15258 DLLTOOL=$ac_cv_prog_DLLTOOL
15259 if test -n "$DLLTOOL"; then
15260   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15261 echo "${ECHO_T}$DLLTOOL" >&6; }
15262 else
15263   { echo "$as_me:$LINENO: result: no" >&5
15264 echo "${ECHO_T}no" >&6; }
15265 fi
15266
15267
15268 fi
15269 if test -z "$ac_cv_prog_DLLTOOL"; then
15270   ac_ct_DLLTOOL=$DLLTOOL
15271   # Extract the first word of "dlltool", so it can be a program name with args.
15272 set dummy dlltool; ac_word=$2
15273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15275 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15276   echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278   if test -n "$ac_ct_DLLTOOL"; then
15279   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15280 else
15281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15282 for as_dir in $PATH
15283 do
15284   IFS=$as_save_IFS
15285   test -z "$as_dir" && as_dir=.
15286   for ac_exec_ext in '' $ac_executable_extensions; do
15287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15288     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15290     break 2
15291   fi
15292 done
15293 done
15294 IFS=$as_save_IFS
15295
15296 fi
15297 fi
15298 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15299 if test -n "$ac_ct_DLLTOOL"; then
15300   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15301 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
15302 else
15303   { echo "$as_me:$LINENO: result: no" >&5
15304 echo "${ECHO_T}no" >&6; }
15305 fi
15306
15307   if test "x$ac_ct_DLLTOOL" = x; then
15308     DLLTOOL="false"
15309   else
15310     case $cross_compiling:$ac_tool_warned in
15311 yes:)
15312 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15313 whose name does not start with the host triplet.  If you think this
15314 configuration is useful to you, please write to autoconf@gnu.org." >&5
15315 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15316 whose name does not start with the host triplet.  If you think this
15317 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15318 ac_tool_warned=yes ;;
15319 esac
15320     DLLTOOL=$ac_ct_DLLTOOL
15321   fi
15322 else
15323   DLLTOOL="$ac_cv_prog_DLLTOOL"
15324 fi
15325
15326     if test -n "$ac_tool_prefix"; then
15327   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15328 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
15329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15331 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15332   echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334   if test -n "$DLLWRAP"; then
15335   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15336 else
15337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15338 for as_dir in $PATH
15339 do
15340   IFS=$as_save_IFS
15341   test -z "$as_dir" && as_dir=.
15342   for ac_exec_ext in '' $ac_executable_extensions; do
15343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15344     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
15345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15346     break 2
15347   fi
15348 done
15349 done
15350 IFS=$as_save_IFS
15351
15352 fi
15353 fi
15354 DLLWRAP=$ac_cv_prog_DLLWRAP
15355 if test -n "$DLLWRAP"; then
15356   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15357 echo "${ECHO_T}$DLLWRAP" >&6; }
15358 else
15359   { echo "$as_me:$LINENO: result: no" >&5
15360 echo "${ECHO_T}no" >&6; }
15361 fi
15362
15363
15364 fi
15365 if test -z "$ac_cv_prog_DLLWRAP"; then
15366   ac_ct_DLLWRAP=$DLLWRAP
15367   # Extract the first word of "dllwrap", so it can be a program name with args.
15368 set dummy dllwrap; ac_word=$2
15369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15371 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15372   echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374   if test -n "$ac_ct_DLLWRAP"; then
15375   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15376 else
15377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15378 for as_dir in $PATH
15379 do
15380   IFS=$as_save_IFS
15381   test -z "$as_dir" && as_dir=.
15382   for ac_exec_ext in '' $ac_executable_extensions; do
15383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15384     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15386     break 2
15387   fi
15388 done
15389 done
15390 IFS=$as_save_IFS
15391
15392 fi
15393 fi
15394 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15395 if test -n "$ac_ct_DLLWRAP"; then
15396   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15397 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
15398 else
15399   { echo "$as_me:$LINENO: result: no" >&5
15400 echo "${ECHO_T}no" >&6; }
15401 fi
15402
15403   if test "x$ac_ct_DLLWRAP" = x; then
15404     DLLWRAP="false"
15405   else
15406     case $cross_compiling:$ac_tool_warned in
15407 yes:)
15408 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15409 whose name does not start with the host triplet.  If you think this
15410 configuration is useful to you, please write to autoconf@gnu.org." >&5
15411 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15412 whose name does not start with the host triplet.  If you think this
15413 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15414 ac_tool_warned=yes ;;
15415 esac
15416     DLLWRAP=$ac_ct_DLLWRAP
15417   fi
15418 else
15419   DLLWRAP="$ac_cv_prog_DLLWRAP"
15420 fi
15421
15422     if test "$DLLWRAP" = "false"; then
15423       LIBEXT="a"
15424     else
15425             LIBEXT="dll"
15426     fi
15427     IMPLIBEXT="a"
15428         WIN16_FILES=""
15429     WIN16_INSTALL=""
15430     ;;
15431   darwin*|macosx*)
15432     DLLEXT=".so"
15433     LIBEXT="dylib"
15434     DLLFLAGS="$DLLFLAGS -fPIC"
15435     LDDLLFLAGS="-bundle -multiply_defined suppress"
15436     LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
15437     STRIP="$STRIP -u -r"
15438         COREFOUNDATIONLIB="-framework CoreFoundation"
15439
15440     IOKITLIB="-framework IOKit -framework CoreFoundation"
15441
15442     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
15443
15444     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
15445     then
15446                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
15447
15448     fi
15449     case $host_cpu in
15450       *powerpc*)
15451         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
15452     esac
15453     ;;
15454   *)
15455     DLLFLAGS="$DLLFLAGS -fPIC"
15456     DLLEXT=".so"
15457     { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
15458 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
15459 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
15460   echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462   ac_wine_try_cflags_saved=$CFLAGS
15463 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
15464 cat >conftest.$ac_ext <<_ACEOF
15465 void myfunc() {}
15466 _ACEOF
15467 rm -f conftest.$ac_objext conftest$ac_exeext
15468 if { (ac_try="$ac_link"
15469 case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_link") 2>conftest.er1
15475   ac_status=$?
15476   grep -v '^ *+' conftest.er1 >conftest.err
15477   rm -f conftest.er1
15478   cat conftest.err >&5
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); } &&
15481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15482   { (case "(($ac_try" in
15483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484   *) ac_try_echo=$ac_try;;
15485 esac
15486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15487   (eval "$ac_try") 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); }; } &&
15491          { ac_try='test -s conftest$ac_exeext'
15492   { (case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497   (eval "$ac_try") 2>&5
15498   ac_status=$?
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); }; }; then
15501   ac_cv_c_dll_gnuelf="yes"
15502 else
15503   echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15505
15506         ac_cv_c_dll_gnuelf="no"
15507 fi
15508
15509 rm -f core conftest.err conftest.$ac_objext \
15510       conftest$ac_exeext conftest.$ac_ext
15511 CFLAGS=$ac_wine_try_cflags_saved
15512 fi
15513 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
15514 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
15515     if test "$ac_cv_c_dll_gnuelf" = "yes"
15516     then
15517       LDSHARED="\$(CC) -shared"
15518       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
15519       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
15520 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
15521 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
15522   echo $ECHO_N "(cached) $ECHO_C" >&6
15523 else
15524   ac_wine_try_cflags_saved=$CFLAGS
15525 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
15526 cat >conftest.$ac_ext <<_ACEOF
15527 /* confdefs.h.  */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h.  */
15532
15533 int
15534 main ()
15535 {
15536
15537   ;
15538   return 0;
15539 }
15540 _ACEOF
15541 rm -f conftest.$ac_objext conftest$ac_exeext
15542 if { (ac_try="$ac_link"
15543 case "(($ac_try" in
15544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545   *) ac_try_echo=$ac_try;;
15546 esac
15547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548   (eval "$ac_link") 2>conftest.er1
15549   ac_status=$?
15550   grep -v '^ *+' conftest.er1 >conftest.err
15551   rm -f conftest.er1
15552   cat conftest.err >&5
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); } &&
15555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15556   { (case "(($ac_try" in
15557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558   *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561   (eval "$ac_try") 2>&5
15562   ac_status=$?
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); }; } &&
15565          { ac_try='test -s conftest$ac_exeext'
15566   { (case "(($ac_try" in
15567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568   *) ac_try_echo=$ac_try;;
15569 esac
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571   (eval "$ac_try") 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); }; }; then
15575   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580         ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
15581 fi
15582
15583 rm -f core conftest.err conftest.$ac_objext \
15584       conftest$ac_exeext conftest.$ac_ext
15585 CFLAGS=$ac_wine_try_cflags_saved
15586 fi
15587 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
15588 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
15589 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
15590   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
15591 else
15592   { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
15593 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
15594 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
15595   echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597   ac_wine_try_cflags_saved=$CFLAGS
15598 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h.  */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h.  */
15605
15606 int
15607 main ()
15608 {
15609
15610   ;
15611   return 0;
15612 }
15613 _ACEOF
15614 rm -f conftest.$ac_objext conftest$ac_exeext
15615 if { (ac_try="$ac_link"
15616 case "(($ac_try" in
15617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618   *) ac_try_echo=$ac_try;;
15619 esac
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621   (eval "$ac_link") 2>conftest.er1
15622   ac_status=$?
15623   grep -v '^ *+' conftest.er1 >conftest.err
15624   rm -f conftest.er1
15625   cat conftest.err >&5
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); } &&
15628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15629   { (case "(($ac_try" in
15630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631   *) ac_try_echo=$ac_try;;
15632 esac
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634   (eval "$ac_try") 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; } &&
15638          { ac_try='test -s conftest$ac_exeext'
15639   { (case "(($ac_try" in
15640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641   *) ac_try_echo=$ac_try;;
15642 esac
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644   (eval "$ac_try") 2>&5
15645   ac_status=$?
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); }; }; then
15648   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
15649 else
15650   echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15652
15653         ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
15654 fi
15655
15656 rm -f core conftest.err conftest.$ac_objext \
15657       conftest$ac_exeext conftest.$ac_ext
15658 CFLAGS=$ac_wine_try_cflags_saved
15659 fi
15660 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
15661 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
15662 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
15663   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
15664 fi
15665
15666 fi
15667
15668
15669       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
15670 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
15671 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
15672   echo $ECHO_N "(cached) $ECHO_C" >&6
15673 else
15674   ac_wine_try_cflags_saved=$CFLAGS
15675 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
15676 cat >conftest.$ac_ext <<_ACEOF
15677 /* confdefs.h.  */
15678 _ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h.  */
15682
15683 int
15684 main ()
15685 {
15686
15687   ;
15688   return 0;
15689 }
15690 _ACEOF
15691 rm -f conftest.$ac_objext conftest$ac_exeext
15692 if { (ac_try="$ac_link"
15693 case "(($ac_try" in
15694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695   *) ac_try_echo=$ac_try;;
15696 esac
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698   (eval "$ac_link") 2>conftest.er1
15699   ac_status=$?
15700   grep -v '^ *+' conftest.er1 >conftest.err
15701   rm -f conftest.er1
15702   cat conftest.err >&5
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); } &&
15705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15706   { (case "(($ac_try" in
15707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708   *) ac_try_echo=$ac_try;;
15709 esac
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711   (eval "$ac_try") 2>&5
15712   ac_status=$?
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); }; } &&
15715          { ac_try='test -s conftest$ac_exeext'
15716   { (case "(($ac_try" in
15717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718   *) ac_try_echo=$ac_try;;
15719 esac
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721   (eval "$ac_try") 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); }; }; then
15725   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
15726 else
15727   echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15729
15730         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
15731 fi
15732
15733 rm -f core conftest.err conftest.$ac_objext \
15734       conftest$ac_exeext conftest.$ac_ext
15735 CFLAGS=$ac_wine_try_cflags_saved
15736 fi
15737 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
15738 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
15739 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
15740   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
15741 fi
15742
15743
15744       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
15745 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
15746 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
15747   echo $ECHO_N "(cached) $ECHO_C" >&6
15748 else
15749   ac_wine_try_cflags_saved=$CFLAGS
15750 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
15751 cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h.  */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h.  */
15757
15758 int
15759 main ()
15760 {
15761
15762   ;
15763   return 0;
15764 }
15765 _ACEOF
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (ac_try="$ac_link"
15768 case "(($ac_try" in
15769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770   *) ac_try_echo=$ac_try;;
15771 esac
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773   (eval "$ac_link") 2>conftest.er1
15774   ac_status=$?
15775   grep -v '^ *+' conftest.er1 >conftest.err
15776   rm -f conftest.er1
15777   cat conftest.err >&5
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); } &&
15780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15781   { (case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_try") 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; } &&
15790          { ac_try='test -s conftest$ac_exeext'
15791   { (case "(($ac_try" in
15792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793   *) ac_try_echo=$ac_try;;
15794 esac
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796   (eval "$ac_try") 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); }; }; then
15800   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
15801 else
15802   echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
15806 fi
15807
15808 rm -f core conftest.err conftest.$ac_objext \
15809       conftest$ac_exeext conftest.$ac_ext
15810 CFLAGS=$ac_wine_try_cflags_saved
15811 fi
15812 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
15813 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
15814 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
15815   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
15816 fi
15817
15818
15819       echo '{ global: *; };' >conftest.map
15820       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
15821 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
15822 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
15823   echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825   ac_wine_try_cflags_saved=$CFLAGS
15826 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h.  */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h.  */
15833
15834 int
15835 main ()
15836 {
15837
15838   ;
15839   return 0;
15840 }
15841 _ACEOF
15842 rm -f conftest.$ac_objext conftest$ac_exeext
15843 if { (ac_try="$ac_link"
15844 case "(($ac_try" in
15845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15846   *) ac_try_echo=$ac_try;;
15847 esac
15848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15849   (eval "$ac_link") 2>conftest.er1
15850   ac_status=$?
15851   grep -v '^ *+' conftest.er1 >conftest.err
15852   rm -f conftest.er1
15853   cat conftest.err >&5
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); } &&
15856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15857   { (case "(($ac_try" in
15858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859   *) ac_try_echo=$ac_try;;
15860 esac
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862   (eval "$ac_try") 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; } &&
15866          { ac_try='test -s conftest$ac_exeext'
15867   { (case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872   (eval "$ac_try") 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); }; }; then
15876   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
15877 else
15878   echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881         ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
15882 fi
15883
15884 rm -f core conftest.err conftest.$ac_objext \
15885       conftest$ac_exeext conftest.$ac_ext
15886 CFLAGS=$ac_wine_try_cflags_saved
15887 fi
15888 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
15889 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
15890 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
15891   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
15892 fi
15893
15894       rm -f conftest.map
15895
15896       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
15897 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
15898 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
15899   echo $ECHO_N "(cached) $ECHO_C" >&6
15900 else
15901   ac_wine_try_cflags_saved=$CFLAGS
15902 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
15903 cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h.  */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h.  */
15909
15910 int
15911 main ()
15912 {
15913
15914   ;
15915   return 0;
15916 }
15917 _ACEOF
15918 rm -f conftest.$ac_objext conftest$ac_exeext
15919 if { (ac_try="$ac_link"
15920 case "(($ac_try" in
15921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922   *) ac_try_echo=$ac_try;;
15923 esac
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925   (eval "$ac_link") 2>conftest.er1
15926   ac_status=$?
15927   grep -v '^ *+' conftest.er1 >conftest.err
15928   rm -f conftest.er1
15929   cat conftest.err >&5
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); } &&
15932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15933   { (case "(($ac_try" in
15934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15935   *) ac_try_echo=$ac_try;;
15936 esac
15937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15938   (eval "$ac_try") 2>&5
15939   ac_status=$?
15940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941   (exit $ac_status); }; } &&
15942          { ac_try='test -s conftest$ac_exeext'
15943   { (case "(($ac_try" in
15944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945   *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948   (eval "$ac_try") 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); }; }; then
15952   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
15953 else
15954   echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15956
15957         ac_cv_cflags__fPIC__Wl___export_dynamic=no
15958 fi
15959
15960 rm -f core conftest.err conftest.$ac_objext \
15961       conftest$ac_exeext conftest.$ac_ext
15962 CFLAGS=$ac_wine_try_cflags_saved
15963 fi
15964 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
15965 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
15966 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
15967   LDEXECFLAGS="-Wl,--export-dynamic"
15968
15969 fi
15970
15971
15972       as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
15973 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
15974 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
15975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15976   echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978   ac_wine_try_cflags_saved=$CFLAGS
15979 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
15980 cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h.  */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h.  */
15986
15987 int
15988 main ()
15989 {
15990
15991   ;
15992   return 0;
15993 }
15994 _ACEOF
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (ac_try="$ac_link"
15997 case "(($ac_try" in
15998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999   *) ac_try_echo=$ac_try;;
16000 esac
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002   (eval "$ac_link") 2>conftest.er1
16003   ac_status=$?
16004   grep -v '^ *+' conftest.er1 >conftest.err
16005   rm -f conftest.er1
16006   cat conftest.err >&5
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); } &&
16009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16010   { (case "(($ac_try" in
16011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012   *) ac_try_echo=$ac_try;;
16013 esac
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015   (eval "$ac_try") 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); }; } &&
16019          { ac_try='test -s conftest$ac_exeext'
16020   { (case "(($ac_try" in
16021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022   *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025   (eval "$ac_try") 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); }; }; then
16029   eval "$as_ac_var=yes"
16030 else
16031   echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16033
16034         eval "$as_ac_var=no"
16035 fi
16036
16037 rm -f core conftest.err conftest.$ac_objext \
16038       conftest$ac_exeext conftest.$ac_ext
16039 CFLAGS=$ac_wine_try_cflags_saved
16040 fi
16041 ac_res=`eval echo '${'$as_ac_var'}'`
16042                { echo "$as_me:$LINENO: result: $ac_res" >&5
16043 echo "${ECHO_T}$ac_res" >&6; }
16044 if test `eval echo '${'$as_ac_var'}'` = yes; then
16045   LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
16046
16047 fi
16048
16049
16050       case $host_cpu in
16051         *i[3456789]86* | x86_64)
16052           { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
16053 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
16054 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
16055   echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057   ac_wine_try_cflags_saved=$CFLAGS
16058 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065
16066 int
16067 main ()
16068 {
16069
16070   ;
16071   return 0;
16072 }
16073 _ACEOF
16074 rm -f conftest.$ac_objext conftest$ac_exeext
16075 if { (ac_try="$ac_link"
16076 case "(($ac_try" in
16077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078   *) ac_try_echo=$ac_try;;
16079 esac
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081   (eval "$ac_link") 2>conftest.er1
16082   ac_status=$?
16083   grep -v '^ *+' conftest.er1 >conftest.err
16084   rm -f conftest.er1
16085   cat conftest.err >&5
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); } &&
16088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16089   { (case "(($ac_try" in
16090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091   *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094   (eval "$ac_try") 2>&5
16095   ac_status=$?
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); }; } &&
16098          { ac_try='test -s conftest$ac_exeext'
16099   { (case "(($ac_try" in
16100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101   *) ac_try_echo=$ac_try;;
16102 esac
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104   (eval "$ac_try") 2>&5
16105   ac_status=$?
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); }; }; then
16108   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
16109 else
16110   echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16112
16113         ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
16114 fi
16115
16116 rm -f core conftest.err conftest.$ac_objext \
16117       conftest$ac_exeext conftest.$ac_ext
16118 CFLAGS=$ac_wine_try_cflags_saved
16119 fi
16120 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
16121 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
16122 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
16123   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
16124 fi
16125
16126           ;;
16127       esac
16128
16129     else
16130       { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16131 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
16132 if test "${ac_cv_c_dll_unixware+set}" = set; then
16133   echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135   ac_wine_try_cflags_saved=$CFLAGS
16136 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
16137 cat >conftest.$ac_ext <<_ACEOF
16138 void myfunc() {}
16139 _ACEOF
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (ac_try="$ac_link"
16142 case "(($ac_try" in
16143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144   *) ac_try_echo=$ac_try;;
16145 esac
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147   (eval "$ac_link") 2>conftest.er1
16148   ac_status=$?
16149   grep -v '^ *+' conftest.er1 >conftest.err
16150   rm -f conftest.er1
16151   cat conftest.err >&5
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); } &&
16154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16155   { (case "(($ac_try" in
16156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157   *) ac_try_echo=$ac_try;;
16158 esac
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160   (eval "$ac_try") 2>&5
16161   ac_status=$?
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); }; } &&
16164          { ac_try='test -s conftest$ac_exeext'
16165   { (case "(($ac_try" in
16166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167   *) ac_try_echo=$ac_try;;
16168 esac
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170   (eval "$ac_try") 2>&5
16171   ac_status=$?
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); }; }; then
16174   ac_cv_c_dll_unixware="yes"
16175 else
16176   echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16178
16179         ac_cv_c_dll_unixware="no"
16180 fi
16181
16182 rm -f core conftest.err conftest.$ac_objext \
16183       conftest$ac_exeext conftest.$ac_ext
16184 CFLAGS=$ac_wine_try_cflags_saved
16185 fi
16186 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
16187 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
16188       if test "$ac_cv_c_dll_unixware" = "yes"
16189       then
16190         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
16191         LDDLLFLAGS="-Wl,-G,-B,symbolic"
16192
16193       else
16194         { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
16195 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
16196 if test "${ac_cv_c_dll_hpux+set}" = set; then
16197   echo $ECHO_N "(cached) $ECHO_C" >&6
16198 else
16199   ac_wine_try_cflags_saved=$CFLAGS
16200 CFLAGS="$CFLAGS -shared"
16201 cat >conftest.$ac_ext <<_ACEOF
16202 void myfunc() {}
16203 _ACEOF
16204 rm -f conftest.$ac_objext conftest$ac_exeext
16205 if { (ac_try="$ac_link"
16206 case "(($ac_try" in
16207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208   *) ac_try_echo=$ac_try;;
16209 esac
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211   (eval "$ac_link") 2>conftest.er1
16212   ac_status=$?
16213   grep -v '^ *+' conftest.er1 >conftest.err
16214   rm -f conftest.er1
16215   cat conftest.err >&5
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); } &&
16218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16219   { (case "(($ac_try" in
16220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221   *) ac_try_echo=$ac_try;;
16222 esac
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224   (eval "$ac_try") 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; } &&
16228          { ac_try='test -s conftest$ac_exeext'
16229   { (case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_try") 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; }; then
16238   ac_cv_c_dll_hpux="yes"
16239 else
16240   echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243         ac_cv_c_dll_hpux="no"
16244 fi
16245
16246 rm -f core conftest.err conftest.$ac_objext \
16247       conftest$ac_exeext conftest.$ac_ext
16248 CFLAGS=$ac_wine_try_cflags_saved
16249 fi
16250 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
16251 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
16252         if test "$ac_cv_c_dll_hpux" = "yes"
16253         then
16254           LIBEXT="sl"
16255           DLLEXT=".sl"
16256           LDDLLFLAGS="-shared -fPIC"
16257           LDSHARED="\$(CC) -shared"
16258         fi
16259       fi
16260     fi
16261
16262         CROSSTEST=""
16263
16264     if test "$cross_compiling" = "no"
16265     then
16266       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
16267 do
16268   # Extract the first word of "$ac_prog", so it can be a program name with args.
16269 set dummy $ac_prog; ac_word=$2
16270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16272 if test "${ac_cv_prog_CROSSCC+set}" = set; then
16273   echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275   if test -n "$CROSSCC"; then
16276   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
16277 else
16278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279 for as_dir in $PATH
16280 do
16281   IFS=$as_save_IFS
16282   test -z "$as_dir" && as_dir=.
16283   for ac_exec_ext in '' $ac_executable_extensions; do
16284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16285     ac_cv_prog_CROSSCC="$ac_prog"
16286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16287     break 2
16288   fi
16289 done
16290 done
16291 IFS=$as_save_IFS
16292
16293 fi
16294 fi
16295 CROSSCC=$ac_cv_prog_CROSSCC
16296 if test -n "$CROSSCC"; then
16297   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
16298 echo "${ECHO_T}$CROSSCC" >&6; }
16299 else
16300   { echo "$as_me:$LINENO: result: no" >&5
16301 echo "${ECHO_T}no" >&6; }
16302 fi
16303
16304
16305   test -n "$CROSSCC" && break
16306 done
16307 test -n "$CROSSCC" || CROSSCC="false"
16308
16309       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
16310 do
16311   # Extract the first word of "$ac_prog", so it can be a program name with args.
16312 set dummy $ac_prog; ac_word=$2
16313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16315 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
16316   echo $ECHO_N "(cached) $ECHO_C" >&6
16317 else
16318   if test -n "$DLLTOOL"; then
16319   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16320 else
16321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16322 for as_dir in $PATH
16323 do
16324   IFS=$as_save_IFS
16325   test -z "$as_dir" && as_dir=.
16326   for ac_exec_ext in '' $ac_executable_extensions; do
16327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16328     ac_cv_prog_DLLTOOL="$ac_prog"
16329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16330     break 2
16331   fi
16332 done
16333 done
16334 IFS=$as_save_IFS
16335
16336 fi
16337 fi
16338 DLLTOOL=$ac_cv_prog_DLLTOOL
16339 if test -n "$DLLTOOL"; then
16340   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
16341 echo "${ECHO_T}$DLLTOOL" >&6; }
16342 else
16343   { echo "$as_me:$LINENO: result: no" >&5
16344 echo "${ECHO_T}no" >&6; }
16345 fi
16346
16347
16348   test -n "$DLLTOOL" && break
16349 done
16350 test -n "$DLLTOOL" || DLLTOOL="false"
16351
16352       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
16353 do
16354   # Extract the first word of "$ac_prog", so it can be a program name with args.
16355 set dummy $ac_prog; ac_word=$2
16356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16358 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361   if test -n "$CROSSWINDRES"; then
16362   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
16363 else
16364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16365 for as_dir in $PATH
16366 do
16367   IFS=$as_save_IFS
16368   test -z "$as_dir" && as_dir=.
16369   for ac_exec_ext in '' $ac_executable_extensions; do
16370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16371     ac_cv_prog_CROSSWINDRES="$ac_prog"
16372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16373     break 2
16374   fi
16375 done
16376 done
16377 IFS=$as_save_IFS
16378
16379 fi
16380 fi
16381 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
16382 if test -n "$CROSSWINDRES"; then
16383   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
16384 echo "${ECHO_T}$CROSSWINDRES" >&6; }
16385 else
16386   { echo "$as_me:$LINENO: result: no" >&5
16387 echo "${ECHO_T}no" >&6; }
16388 fi
16389
16390
16391   test -n "$CROSSWINDRES" && break
16392 done
16393 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
16394
16395       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
16396     fi
16397     ;;
16398 esac
16399
16400 if test "$LIBEXT" = "a"; then
16401   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
16402 It is currently not possible to build Wine without shared library
16403 (.so) support to allow transparent switch between .so and .dll files.
16404 If you are using Linux, you will need a newer binutils.
16405 " >&5
16406 echo "$as_me: error: could not find a way to build shared libraries.
16407 It is currently not possible to build Wine without shared library
16408 (.so) support to allow transparent switch between .so and .dll files.
16409 If you are using Linux, you will need a newer binutils.
16410 " >&2;}
16411    { (exit 1); exit 1; }; }
16412 fi
16413
16414 case $build_os in
16415   cygwin*|mingw32*)
16416     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
16417  ;;
16418   darwin*|macosx*)
16419     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
16420  ;;
16421   *)
16422     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
16423  ;;
16424 esac
16425
16426 case $host_os in
16427   mingw32*)
16428     CRTLIBS="-lmsvcrt"
16429
16430     SOCKETLIBS="-lws2_32"
16431
16432     ;;
16433 esac
16434
16435 MAIN_BINARY="wine-pthread"
16436   case $host_cpu in
16437   *i[3456789]86*)
16438     case $host_os in
16439       linux* | k*bsd*-gnu)
16440         MAIN_BINARY="wine-glibc"
16441
16442         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
16443  ;;
16444     esac
16445     ;;
16446 esac
16447
16448
16449 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
16450 then
16451   # Extract the first word of "ldd", so it can be a program name with args.
16452 set dummy ldd; ac_word=$2
16453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16455 if test "${ac_cv_path_LDD+set}" = set; then
16456   echo $ECHO_N "(cached) $ECHO_C" >&6
16457 else
16458   case $LDD in
16459   [\\/]* | ?:[\\/]*)
16460   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
16461   ;;
16462   *)
16463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16464 as_dummy="/sbin:/usr/sbin:$PATH"
16465 for as_dir in $as_dummy
16466 do
16467   IFS=$as_save_IFS
16468   test -z "$as_dir" && as_dir=.
16469   for ac_exec_ext in '' $ac_executable_extensions; do
16470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16471     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
16472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16473     break 2
16474   fi
16475 done
16476 done
16477 IFS=$as_save_IFS
16478
16479   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
16480   ;;
16481 esac
16482 fi
16483 LDD=$ac_cv_path_LDD
16484 if test -n "$LDD"; then
16485   { echo "$as_me:$LINENO: result: $LDD" >&5
16486 echo "${ECHO_T}$LDD" >&6; }
16487 else
16488   { echo "$as_me:$LINENO: result: no" >&5
16489 echo "${ECHO_T}no" >&6; }
16490 fi
16491
16492
16493 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
16494 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
16495 if test "${ac_cv_lib_soname_X11+set}" = set; then
16496   echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498   ac_get_soname_save_LIBS=$LIBS
16499 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
16500   cat >conftest.$ac_ext <<_ACEOF
16501 /* confdefs.h.  */
16502 _ACEOF
16503 cat confdefs.h >>conftest.$ac_ext
16504 cat >>conftest.$ac_ext <<_ACEOF
16505 /* end confdefs.h.  */
16506
16507 /* Override any GCC internal prototype to avoid an error.
16508    Use char because int might match the return type of a GCC
16509    builtin and then its argument prototype would still apply.  */
16510 #ifdef __cplusplus
16511 extern "C"
16512 #endif
16513 char XCreateWindow ();
16514 int
16515 main ()
16516 {
16517 return XCreateWindow ();
16518   ;
16519   return 0;
16520 }
16521 _ACEOF
16522 rm -f conftest.$ac_objext conftest$ac_exeext
16523 if { (ac_try="$ac_link"
16524 case "(($ac_try" in
16525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526   *) ac_try_echo=$ac_try;;
16527 esac
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529   (eval "$ac_link") 2>conftest.er1
16530   ac_status=$?
16531   grep -v '^ *+' conftest.er1 >conftest.err
16532   rm -f conftest.er1
16533   cat conftest.err >&5
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); } &&
16536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16537   { (case "(($ac_try" in
16538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539   *) ac_try_echo=$ac_try;;
16540 esac
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542   (eval "$ac_try") 2>&5
16543   ac_status=$?
16544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); }; } &&
16546          { ac_try='test -s conftest$ac_exeext'
16547   { (case "(($ac_try" in
16548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549   *) ac_try_echo=$ac_try;;
16550 esac
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552   (eval "$ac_try") 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); }; }; then
16556   case "$LIBEXT" in
16557     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'` ;;
16558     so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^        ]*\).*$/\1/"';2,$d'` ;;
16559   esac
16560   if test "x$ac_cv_lib_soname_X11" = "x"
16561   then
16562      ac_cv_lib_soname_X11="libX11.$LIBEXT"
16563   fi
16564 else
16565   echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.$ac_ext >&5
16567
16568         ac_cv_lib_soname_X11="libX11.$LIBEXT"
16569 fi
16570
16571 rm -f core conftest.err conftest.$ac_objext \
16572       conftest$ac_exeext conftest.$ac_ext
16573   LIBS=$ac_get_soname_save_LIBS
16574 fi
16575 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
16576 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
16577 if test "${ac_cv_lib_soname_X11+set}" = set; then
16578
16579 cat >>confdefs.h <<_ACEOF
16580 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
16581 _ACEOF
16582
16583 fi
16584
16585   { echo "$as_me:$LINENO: checking for -lXext soname" >&5
16586 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
16587 if test "${ac_cv_lib_soname_Xext+set}" = set; then
16588   echo $ECHO_N "(cached) $ECHO_C" >&6
16589 else
16590   ac_get_soname_save_LIBS=$LIBS
16591 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
16592   cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h.  */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h.  */
16598
16599 /* Override any GCC internal prototype to avoid an error.
16600    Use char because int might match the return type of a GCC
16601    builtin and then its argument prototype would still apply.  */
16602 #ifdef __cplusplus
16603 extern "C"
16604 #endif
16605 char XextCreateExtension ();
16606 int
16607 main ()
16608 {
16609 return XextCreateExtension ();
16610   ;
16611   return 0;
16612 }
16613 _ACEOF
16614 rm -f conftest.$ac_objext conftest$ac_exeext
16615 if { (ac_try="$ac_link"
16616 case "(($ac_try" in
16617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618   *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621   (eval "$ac_link") 2>conftest.er1
16622   ac_status=$?
16623   grep -v '^ *+' conftest.er1 >conftest.err
16624   rm -f conftest.er1
16625   cat conftest.err >&5
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); } &&
16628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16629   { (case "(($ac_try" in
16630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631   *) ac_try_echo=$ac_try;;
16632 esac
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634   (eval "$ac_try") 2>&5
16635   ac_status=$?
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); }; } &&
16638          { ac_try='test -s conftest$ac_exeext'
16639   { (case "(($ac_try" in
16640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641   *) ac_try_echo=$ac_try;;
16642 esac
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644   (eval "$ac_try") 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; }; then
16648   case "$LIBEXT" in
16649     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'` ;;
16650     so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^     ]*\).*$/\1/"';2,$d'` ;;
16651   esac
16652   if test "x$ac_cv_lib_soname_Xext" = "x"
16653   then
16654      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
16655   fi
16656 else
16657   echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16659
16660         ac_cv_lib_soname_Xext="libXext.$LIBEXT"
16661 fi
16662
16663 rm -f core conftest.err conftest.$ac_objext \
16664       conftest$ac_exeext conftest.$ac_ext
16665   LIBS=$ac_get_soname_save_LIBS
16666 fi
16667 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
16668 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
16669 if test "${ac_cv_lib_soname_Xext+set}" = set; then
16670
16671 cat >>confdefs.h <<_ACEOF
16672 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
16673 _ACEOF
16674
16675 fi
16676
16677   { echo "$as_me:$LINENO: checking for -lXi soname" >&5
16678 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
16679 if test "${ac_cv_lib_soname_Xi+set}" = set; then
16680   echo $ECHO_N "(cached) $ECHO_C" >&6
16681 else
16682   ac_get_soname_save_LIBS=$LIBS
16683 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16684   cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h.  */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h.  */
16690
16691 /* Override any GCC internal prototype to avoid an error.
16692    Use char because int might match the return type of a GCC
16693    builtin and then its argument prototype would still apply.  */
16694 #ifdef __cplusplus
16695 extern "C"
16696 #endif
16697 char XOpenDevice ();
16698 int
16699 main ()
16700 {
16701 return XOpenDevice ();
16702   ;
16703   return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (ac_try="$ac_link"
16708 case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713   (eval "$ac_link") 2>conftest.er1
16714   ac_status=$?
16715   grep -v '^ *+' conftest.er1 >conftest.err
16716   rm -f conftest.er1
16717   cat conftest.err >&5
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); } &&
16720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16721   { (case "(($ac_try" in
16722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723   *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726   (eval "$ac_try") 2>&5
16727   ac_status=$?
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); }; } &&
16730          { ac_try='test -s conftest$ac_exeext'
16731   { (case "(($ac_try" in
16732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733   *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736   (eval "$ac_try") 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; }; then
16740   case "$LIBEXT" in
16741     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'` ;;
16742     so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^   ]*\).*$/\1/"';2,$d'` ;;
16743   esac
16744   if test "x$ac_cv_lib_soname_Xi" = "x"
16745   then
16746      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
16747   fi
16748 else
16749   echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752         ac_cv_lib_soname_Xi="libXi.$LIBEXT"
16753 fi
16754
16755 rm -f core conftest.err conftest.$ac_objext \
16756       conftest$ac_exeext conftest.$ac_ext
16757   LIBS=$ac_get_soname_save_LIBS
16758 fi
16759 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
16760 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
16761 if test "${ac_cv_lib_soname_Xi+set}" = set; then
16762
16763 cat >>confdefs.h <<_ACEOF
16764 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
16765 _ACEOF
16766
16767 fi
16768
16769   { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
16770 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
16771 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
16772   echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774   ac_get_soname_save_LIBS=$LIBS
16775 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16776   cat >conftest.$ac_ext <<_ACEOF
16777 /* confdefs.h.  */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h.  */
16782
16783 /* Override any GCC internal prototype to avoid an error.
16784    Use char because int might match the return type of a GCC
16785    builtin and then its argument prototype would still apply.  */
16786 #ifdef __cplusplus
16787 extern "C"
16788 #endif
16789 char XRenderQueryExtension ();
16790 int
16791 main ()
16792 {
16793 return XRenderQueryExtension ();
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (ac_try="$ac_link"
16800 case "(($ac_try" in
16801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802   *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805   (eval "$ac_link") 2>conftest.er1
16806   ac_status=$?
16807   grep -v '^ *+' conftest.er1 >conftest.err
16808   rm -f conftest.er1
16809   cat conftest.err >&5
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } &&
16812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813   { (case "(($ac_try" in
16814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815   *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818   (eval "$ac_try") 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); }; } &&
16822          { ac_try='test -s conftest$ac_exeext'
16823   { (case "(($ac_try" in
16824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825   *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828   (eval "$ac_try") 2>&5
16829   ac_status=$?
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); }; }; then
16832   case "$LIBEXT" in
16833     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'` ;;
16834     so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^    ]*\).*$/\1/"';2,$d'` ;;
16835   esac
16836   if test "x$ac_cv_lib_soname_Xrender" = "x"
16837   then
16838      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
16839   fi
16840 else
16841   echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16843
16844         ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
16845 fi
16846
16847 rm -f core conftest.err conftest.$ac_objext \
16848       conftest$ac_exeext conftest.$ac_ext
16849   LIBS=$ac_get_soname_save_LIBS
16850 fi
16851 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
16852 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
16853 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
16854
16855 cat >>confdefs.h <<_ACEOF
16856 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
16857 _ACEOF
16858
16859 fi
16860
16861   { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
16862 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
16863 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
16864   echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866   ac_get_soname_save_LIBS=$LIBS
16867 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16868   cat >conftest.$ac_ext <<_ACEOF
16869 /* confdefs.h.  */
16870 _ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h.  */
16874
16875 /* Override any GCC internal prototype to avoid an error.
16876    Use char because int might match the return type of a GCC
16877    builtin and then its argument prototype would still apply.  */
16878 #ifdef __cplusplus
16879 extern "C"
16880 #endif
16881 char XRRQueryExtension ();
16882 int
16883 main ()
16884 {
16885 return XRRQueryExtension ();
16886   ;
16887   return 0;
16888 }
16889 _ACEOF
16890 rm -f conftest.$ac_objext conftest$ac_exeext
16891 if { (ac_try="$ac_link"
16892 case "(($ac_try" in
16893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894   *) ac_try_echo=$ac_try;;
16895 esac
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897   (eval "$ac_link") 2>conftest.er1
16898   ac_status=$?
16899   grep -v '^ *+' conftest.er1 >conftest.err
16900   rm -f conftest.er1
16901   cat conftest.err >&5
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); } &&
16904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905   { (case "(($ac_try" in
16906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907   *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910   (eval "$ac_try") 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; } &&
16914          { ac_try='test -s conftest$ac_exeext'
16915   { (case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_try") 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; }; then
16924   case "$LIBEXT" in
16925     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'` ;;
16926     so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^       ]*\).*$/\1/"';2,$d'` ;;
16927   esac
16928   if test "x$ac_cv_lib_soname_Xrandr" = "x"
16929   then
16930      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
16931   fi
16932 else
16933   echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936         ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
16937 fi
16938
16939 rm -f core conftest.err conftest.$ac_objext \
16940       conftest$ac_exeext conftest.$ac_ext
16941   LIBS=$ac_get_soname_save_LIBS
16942 fi
16943 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
16944 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
16945 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
16946
16947 cat >>confdefs.h <<_ACEOF
16948 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
16949 _ACEOF
16950
16951 fi
16952
16953   { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
16954 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
16955 if test "${ac_cv_lib_soname_freetype+set}" = set; then
16956   echo $ECHO_N "(cached) $ECHO_C" >&6
16957 else
16958   ac_get_soname_save_LIBS=$LIBS
16959 LIBS="-lfreetype $X_LIBS $LIBS"
16960   cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h.  */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h.  */
16966
16967 /* Override any GCC internal prototype to avoid an error.
16968    Use char because int might match the return type of a GCC
16969    builtin and then its argument prototype would still apply.  */
16970 #ifdef __cplusplus
16971 extern "C"
16972 #endif
16973 char FT_Init_FreeType ();
16974 int
16975 main ()
16976 {
16977 return FT_Init_FreeType ();
16978   ;
16979   return 0;
16980 }
16981 _ACEOF
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (ac_try="$ac_link"
16984 case "(($ac_try" in
16985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986   *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989   (eval "$ac_link") 2>conftest.er1
16990   ac_status=$?
16991   grep -v '^ *+' conftest.er1 >conftest.err
16992   rm -f conftest.er1
16993   cat conftest.err >&5
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); } &&
16996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16997   { (case "(($ac_try" in
16998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999   *) ac_try_echo=$ac_try;;
17000 esac
17001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17002   (eval "$ac_try") 2>&5
17003   ac_status=$?
17004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005   (exit $ac_status); }; } &&
17006          { ac_try='test -s conftest$ac_exeext'
17007   { (case "(($ac_try" in
17008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009   *) ac_try_echo=$ac_try;;
17010 esac
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012   (eval "$ac_try") 2>&5
17013   ac_status=$?
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); }; }; then
17016   case "$LIBEXT" in
17017     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'` ;;
17018     so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^         ]*\).*$/\1/"';2,$d'` ;;
17019   esac
17020   if test "x$ac_cv_lib_soname_freetype" = "x"
17021   then
17022      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17023   fi
17024 else
17025   echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028         ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17029 fi
17030
17031 rm -f core conftest.err conftest.$ac_objext \
17032       conftest$ac_exeext conftest.$ac_ext
17033   LIBS=$ac_get_soname_save_LIBS
17034 fi
17035 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
17036 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
17037 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17038
17039 cat >>confdefs.h <<_ACEOF
17040 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
17041 _ACEOF
17042
17043 fi
17044
17045   { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17046 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
17047 if test "${ac_cv_lib_soname_GL+set}" = set; then
17048   echo $ECHO_N "(cached) $ECHO_C" >&6
17049 else
17050   ac_get_soname_save_LIBS=$LIBS
17051 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
17052   cat >conftest.$ac_ext <<_ACEOF
17053 /* confdefs.h.  */
17054 _ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h.  */
17058
17059 /* Override any GCC internal prototype to avoid an error.
17060    Use char because int might match the return type of a GCC
17061    builtin and then its argument prototype would still apply.  */
17062 #ifdef __cplusplus
17063 extern "C"
17064 #endif
17065 char glXQueryExtension ();
17066 int
17067 main ()
17068 {
17069 return glXQueryExtension ();
17070   ;
17071   return 0;
17072 }
17073 _ACEOF
17074 rm -f conftest.$ac_objext conftest$ac_exeext
17075 if { (ac_try="$ac_link"
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_link") 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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17089   { (case "(($ac_try" in
17090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091   *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094   (eval "$ac_try") 2>&5
17095   ac_status=$?
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); }; } &&
17098          { ac_try='test -s conftest$ac_exeext'
17099   { (case "(($ac_try" in
17100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101   *) ac_try_echo=$ac_try;;
17102 esac
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104   (eval "$ac_try") 2>&5
17105   ac_status=$?
17106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107   (exit $ac_status); }; }; then
17108   case "$LIBEXT" in
17109     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'` ;;
17110     so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^   ]*\).*$/\1/"';2,$d'` ;;
17111   esac
17112   if test "x$ac_cv_lib_soname_GL" = "x"
17113   then
17114      ac_cv_lib_soname_GL="libGL.$LIBEXT"
17115   fi
17116 else
17117   echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17119
17120         ac_cv_lib_soname_GL="libGL.$LIBEXT"
17121 fi
17122
17123 rm -f core conftest.err conftest.$ac_objext \
17124       conftest$ac_exeext conftest.$ac_ext
17125   LIBS=$ac_get_soname_save_LIBS
17126 fi
17127 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
17128 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
17129 if test "${ac_cv_lib_soname_GL+set}" = set; then
17130
17131 cat >>confdefs.h <<_ACEOF
17132 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
17133 _ACEOF
17134
17135 fi
17136
17137   { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
17138 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
17139 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
17140   echo $ECHO_N "(cached) $ECHO_C" >&6
17141 else
17142   ac_get_soname_save_LIBS=$LIBS
17143 LIBS="-ldbus-1  $LIBS"
17144   cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150
17151 /* Override any GCC internal prototype to avoid an error.
17152    Use char because int might match the return type of a GCC
17153    builtin and then its argument prototype would still apply.  */
17154 #ifdef __cplusplus
17155 extern "C"
17156 #endif
17157 char dbus_error_init ();
17158 int
17159 main ()
17160 {
17161 return dbus_error_init ();
17162   ;
17163   return 0;
17164 }
17165 _ACEOF
17166 rm -f conftest.$ac_objext conftest$ac_exeext
17167 if { (ac_try="$ac_link"
17168 case "(($ac_try" in
17169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170   *) ac_try_echo=$ac_try;;
17171 esac
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173   (eval "$ac_link") 2>conftest.er1
17174   ac_status=$?
17175   grep -v '^ *+' conftest.er1 >conftest.err
17176   rm -f conftest.er1
17177   cat conftest.err >&5
17178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179   (exit $ac_status); } &&
17180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181   { (case "(($ac_try" in
17182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183   *) ac_try_echo=$ac_try;;
17184 esac
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186   (eval "$ac_try") 2>&5
17187   ac_status=$?
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); }; } &&
17190          { ac_try='test -s conftest$ac_exeext'
17191   { (case "(($ac_try" in
17192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193   *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196   (eval "$ac_try") 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; }; then
17200   case "$LIBEXT" in
17201     dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep libdbus-1\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17202     so) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.so | sed -e "s/^.*\(libdbus-1\.so[^       ]*\).*$/\1/"';2,$d'` ;;
17203   esac
17204   if test "x$ac_cv_lib_soname_dbus_1" = "x"
17205   then
17206      ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
17207   fi
17208 else
17209   echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17211
17212         ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
17213 fi
17214
17215 rm -f core conftest.err conftest.$ac_objext \
17216       conftest$ac_exeext conftest.$ac_ext
17217   LIBS=$ac_get_soname_save_LIBS
17218 fi
17219 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
17220 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
17221 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
17222
17223 cat >>confdefs.h <<_ACEOF
17224 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
17225 _ACEOF
17226
17227 fi
17228
17229   { echo "$as_me:$LINENO: checking for -lhal soname" >&5
17230 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
17231 if test "${ac_cv_lib_soname_hal+set}" = set; then
17232   echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234   ac_get_soname_save_LIBS=$LIBS
17235 LIBS="-lhal  $LIBS"
17236   cat >conftest.$ac_ext <<_ACEOF
17237 /* confdefs.h.  */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h.  */
17242
17243 /* Override any GCC internal prototype to avoid an error.
17244    Use char because int might match the return type of a GCC
17245    builtin and then its argument prototype would still apply.  */
17246 #ifdef __cplusplus
17247 extern "C"
17248 #endif
17249 char libhal_ctx_new ();
17250 int
17251 main ()
17252 {
17253 return libhal_ctx_new ();
17254   ;
17255   return 0;
17256 }
17257 _ACEOF
17258 rm -f conftest.$ac_objext conftest$ac_exeext
17259 if { (ac_try="$ac_link"
17260 case "(($ac_try" in
17261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262   *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265   (eval "$ac_link") 2>conftest.er1
17266   ac_status=$?
17267   grep -v '^ *+' conftest.er1 >conftest.err
17268   rm -f conftest.er1
17269   cat conftest.err >&5
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); } &&
17272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273   { (case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_try") 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }; } &&
17282          { ac_try='test -s conftest$ac_exeext'
17283   { (case "(($ac_try" in
17284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285   *) ac_try_echo=$ac_try;;
17286 esac
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288   (eval "$ac_try") 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; }; then
17292   case "$LIBEXT" in
17293     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'` ;;
17294     so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^        ]*\).*$/\1/"';2,$d'` ;;
17295   esac
17296   if test "x$ac_cv_lib_soname_hal" = "x"
17297   then
17298      ac_cv_lib_soname_hal="libhal.$LIBEXT"
17299   fi
17300 else
17301   echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17303
17304         ac_cv_lib_soname_hal="libhal.$LIBEXT"
17305 fi
17306
17307 rm -f core conftest.err conftest.$ac_objext \
17308       conftest$ac_exeext conftest.$ac_ext
17309   LIBS=$ac_get_soname_save_LIBS
17310 fi
17311 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
17312 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
17313 if test "${ac_cv_lib_soname_hal+set}" = set; then
17314
17315 cat >>confdefs.h <<_ACEOF
17316 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
17317 _ACEOF
17318
17319 fi
17320
17321   { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
17322 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
17323 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
17324   echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326   ac_get_soname_save_LIBS=$LIBS
17327 LIBS="-ltxc_dxtn  $LIBS"
17328   cat >conftest.$ac_ext <<_ACEOF
17329 /* confdefs.h.  */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h.  */
17334
17335 /* Override any GCC internal prototype to avoid an error.
17336    Use char because int might match the return type of a GCC
17337    builtin and then its argument prototype would still apply.  */
17338 #ifdef __cplusplus
17339 extern "C"
17340 #endif
17341 char fetch_2d_texel_rgba_dxt1 ();
17342 int
17343 main ()
17344 {
17345 return fetch_2d_texel_rgba_dxt1 ();
17346   ;
17347   return 0;
17348 }
17349 _ACEOF
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (ac_try="$ac_link"
17352 case "(($ac_try" in
17353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354   *) ac_try_echo=$ac_try;;
17355 esac
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357   (eval "$ac_link") 2>conftest.er1
17358   ac_status=$?
17359   grep -v '^ *+' conftest.er1 >conftest.err
17360   rm -f conftest.er1
17361   cat conftest.err >&5
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } &&
17364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365   { (case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_try") 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; } &&
17374          { ac_try='test -s conftest$ac_exeext'
17375   { (case "(($ac_try" in
17376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377   *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380   (eval "$ac_try") 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; }; then
17384   case "$LIBEXT" in
17385     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'` ;;
17386     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'` ;;
17387   esac
17388   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
17389   then
17390      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
17391   fi
17392 else
17393   echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17395
17396         ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
17397 fi
17398
17399 rm -f core conftest.err conftest.$ac_objext \
17400       conftest$ac_exeext conftest.$ac_ext
17401   LIBS=$ac_get_soname_save_LIBS
17402 fi
17403 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
17404 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
17405 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
17406
17407 cat >>confdefs.h <<_ACEOF
17408 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
17409 _ACEOF
17410
17411 fi
17412
17413   { echo "$as_me:$LINENO: checking for -lcups soname" >&5
17414 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
17415 if test "${ac_cv_lib_soname_cups+set}" = set; then
17416   echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418   ac_get_soname_save_LIBS=$LIBS
17419 LIBS="-lcups  $LIBS"
17420   cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426
17427 /* Override any GCC internal prototype to avoid an error.
17428    Use char because int might match the return type of a GCC
17429    builtin and then its argument prototype would still apply.  */
17430 #ifdef __cplusplus
17431 extern "C"
17432 #endif
17433 char cupsGetDefault ();
17434 int
17435 main ()
17436 {
17437 return cupsGetDefault ();
17438   ;
17439   return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446   *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449   (eval "$ac_link") 2>conftest.er1
17450   ac_status=$?
17451   grep -v '^ *+' conftest.er1 >conftest.err
17452   rm -f conftest.er1
17453   cat conftest.err >&5
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } &&
17456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17457   { (case "(($ac_try" in
17458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459   *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462   (eval "$ac_try") 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); }; } &&
17466          { ac_try='test -s conftest$ac_exeext'
17467   { (case "(($ac_try" in
17468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469   *) ac_try_echo=$ac_try;;
17470 esac
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472   (eval "$ac_try") 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; }; then
17476   case "$LIBEXT" in
17477     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'` ;;
17478     so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^     ]*\).*$/\1/"';2,$d'` ;;
17479   esac
17480   if test "x$ac_cv_lib_soname_cups" = "x"
17481   then
17482      ac_cv_lib_soname_cups="libcups.$LIBEXT"
17483   fi
17484 else
17485   echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17487
17488         ac_cv_lib_soname_cups="libcups.$LIBEXT"
17489 fi
17490
17491 rm -f core conftest.err conftest.$ac_objext \
17492       conftest$ac_exeext conftest.$ac_ext
17493   LIBS=$ac_get_soname_save_LIBS
17494 fi
17495 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
17496 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
17497 if test "${ac_cv_lib_soname_cups+set}" = set; then
17498
17499 cat >>confdefs.h <<_ACEOF
17500 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
17501 _ACEOF
17502
17503 fi
17504
17505   { echo "$as_me:$LINENO: checking for -ljack soname" >&5
17506 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
17507 if test "${ac_cv_lib_soname_jack+set}" = set; then
17508   echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510   ac_get_soname_save_LIBS=$LIBS
17511 LIBS="-ljack  $LIBS"
17512   cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h.  */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h.  */
17518
17519 /* Override any GCC internal prototype to avoid an error.
17520    Use char because int might match the return type of a GCC
17521    builtin and then its argument prototype would still apply.  */
17522 #ifdef __cplusplus
17523 extern "C"
17524 #endif
17525 char jack_client_new ();
17526 int
17527 main ()
17528 {
17529 return jack_client_new ();
17530   ;
17531   return 0;
17532 }
17533 _ACEOF
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538   *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541   (eval "$ac_link") 2>conftest.er1
17542   ac_status=$?
17543   grep -v '^ *+' conftest.er1 >conftest.err
17544   rm -f conftest.er1
17545   cat conftest.err >&5
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); } &&
17548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549   { (case "(($ac_try" in
17550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551   *) ac_try_echo=$ac_try;;
17552 esac
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554   (eval "$ac_try") 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); }; } &&
17558          { ac_try='test -s conftest$ac_exeext'
17559   { (case "(($ac_try" in
17560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561   *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564   (eval "$ac_try") 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; }; then
17568   case "$LIBEXT" in
17569     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'` ;;
17570     so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^     ]*\).*$/\1/"';2,$d'` ;;
17571   esac
17572   if test "x$ac_cv_lib_soname_jack" = "x"
17573   then
17574      ac_cv_lib_soname_jack="libjack.$LIBEXT"
17575   fi
17576 else
17577   echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17579
17580         ac_cv_lib_soname_jack="libjack.$LIBEXT"
17581 fi
17582
17583 rm -f core conftest.err conftest.$ac_objext \
17584       conftest$ac_exeext conftest.$ac_ext
17585   LIBS=$ac_get_soname_save_LIBS
17586 fi
17587 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
17588 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
17589 if test "${ac_cv_lib_soname_jack+set}" = set; then
17590
17591 cat >>confdefs.h <<_ACEOF
17592 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
17593 _ACEOF
17594
17595 fi
17596
17597   { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
17598 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
17599 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
17600   echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602   ac_get_soname_save_LIBS=$LIBS
17603 LIBS="-lfontconfig  $LIBS"
17604   cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h.  */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h.  */
17610
17611 /* Override any GCC internal prototype to avoid an error.
17612    Use char because int might match the return type of a GCC
17613    builtin and then its argument prototype would still apply.  */
17614 #ifdef __cplusplus
17615 extern "C"
17616 #endif
17617 char FcInit ();
17618 int
17619 main ()
17620 {
17621 return FcInit ();
17622   ;
17623   return 0;
17624 }
17625 _ACEOF
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (ac_try="$ac_link"
17628 case "(($ac_try" in
17629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630   *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633   (eval "$ac_link") 2>conftest.er1
17634   ac_status=$?
17635   grep -v '^ *+' conftest.er1 >conftest.err
17636   rm -f conftest.er1
17637   cat conftest.err >&5
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); } &&
17640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17641   { (case "(($ac_try" in
17642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643   *) ac_try_echo=$ac_try;;
17644 esac
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646   (eval "$ac_try") 2>&5
17647   ac_status=$?
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); }; } &&
17650          { ac_try='test -s conftest$ac_exeext'
17651   { (case "(($ac_try" in
17652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653   *) ac_try_echo=$ac_try;;
17654 esac
17655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17656   (eval "$ac_try") 2>&5
17657   ac_status=$?
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); }; }; then
17660   case "$LIBEXT" in
17661     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'` ;;
17662     so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^   ]*\).*$/\1/"';2,$d'` ;;
17663   esac
17664   if test "x$ac_cv_lib_soname_fontconfig" = "x"
17665   then
17666      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
17667   fi
17668 else
17669   echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17671
17672         ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
17673 fi
17674
17675 rm -f core conftest.err conftest.$ac_objext \
17676       conftest$ac_exeext conftest.$ac_ext
17677   LIBS=$ac_get_soname_save_LIBS
17678 fi
17679 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
17680 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
17681 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
17682
17683 cat >>confdefs.h <<_ACEOF
17684 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
17685 _ACEOF
17686
17687 fi
17688
17689   { echo "$as_me:$LINENO: checking for -lssl soname" >&5
17690 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
17691 if test "${ac_cv_lib_soname_ssl+set}" = set; then
17692   echo $ECHO_N "(cached) $ECHO_C" >&6
17693 else
17694   ac_get_soname_save_LIBS=$LIBS
17695 LIBS="-lssl  $LIBS"
17696   cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h.  */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h.  */
17702
17703 /* Override any GCC internal prototype to avoid an error.
17704    Use char because int might match the return type of a GCC
17705    builtin and then its argument prototype would still apply.  */
17706 #ifdef __cplusplus
17707 extern "C"
17708 #endif
17709 char SSL_library_init ();
17710 int
17711 main ()
17712 {
17713 return SSL_library_init ();
17714   ;
17715   return 0;
17716 }
17717 _ACEOF
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (ac_try="$ac_link"
17720 case "(($ac_try" in
17721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722   *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725   (eval "$ac_link") 2>conftest.er1
17726   ac_status=$?
17727   grep -v '^ *+' conftest.er1 >conftest.err
17728   rm -f conftest.er1
17729   cat conftest.err >&5
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); } &&
17732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733   { (case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738   (eval "$ac_try") 2>&5
17739   ac_status=$?
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); }; } &&
17742          { ac_try='test -s conftest$ac_exeext'
17743   { (case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748   (eval "$ac_try") 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; }; then
17752   case "$LIBEXT" in
17753     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'` ;;
17754     so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^        ]*\).*$/\1/"';2,$d'` ;;
17755   esac
17756   if test "x$ac_cv_lib_soname_ssl" = "x"
17757   then
17758      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
17759   fi
17760 else
17761   echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764         ac_cv_lib_soname_ssl="libssl.$LIBEXT"
17765 fi
17766
17767 rm -f core conftest.err conftest.$ac_objext \
17768       conftest$ac_exeext conftest.$ac_ext
17769   LIBS=$ac_get_soname_save_LIBS
17770 fi
17771 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
17772 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
17773 if test "${ac_cv_lib_soname_ssl+set}" = set; then
17774
17775 cat >>confdefs.h <<_ACEOF
17776 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
17777 _ACEOF
17778
17779 fi
17780
17781   { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
17782 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
17783 if test "${ac_cv_lib_soname_crypto+set}" = set; then
17784   echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786   ac_get_soname_save_LIBS=$LIBS
17787 LIBS="-lcrypto  $LIBS"
17788   cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h.  */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h.  */
17794
17795 /* Override any GCC internal prototype to avoid an error.
17796    Use char because int might match the return type of a GCC
17797    builtin and then its argument prototype would still apply.  */
17798 #ifdef __cplusplus
17799 extern "C"
17800 #endif
17801 char BIO_new_socket ();
17802 int
17803 main ()
17804 {
17805 return BIO_new_socket ();
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (ac_try="$ac_link"
17812 case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817   (eval "$ac_link") 2>conftest.er1
17818   ac_status=$?
17819   grep -v '^ *+' conftest.er1 >conftest.err
17820   rm -f conftest.er1
17821   cat conftest.err >&5
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); } &&
17824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825   { (case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_try") 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); }; } &&
17834          { ac_try='test -s conftest$ac_exeext'
17835   { (case "(($ac_try" in
17836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837   *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840   (eval "$ac_try") 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; }; then
17844   case "$LIBEXT" in
17845     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'` ;;
17846     so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^       ]*\).*$/\1/"';2,$d'` ;;
17847   esac
17848   if test "x$ac_cv_lib_soname_crypto" = "x"
17849   then
17850      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
17851   fi
17852 else
17853   echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17855
17856         ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
17857 fi
17858
17859 rm -f core conftest.err conftest.$ac_objext \
17860       conftest$ac_exeext conftest.$ac_ext
17861   LIBS=$ac_get_soname_save_LIBS
17862 fi
17863 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
17864 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
17865 if test "${ac_cv_lib_soname_crypto+set}" = set; then
17866
17867 cat >>confdefs.h <<_ACEOF
17868 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
17869 _ACEOF
17870
17871 fi
17872
17873   { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
17874 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
17875 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
17876   echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878   ac_get_soname_save_LIBS=$LIBS
17879 LIBS="-lncurses  $LIBS"
17880   cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h.  */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h.  */
17886
17887 /* Override any GCC internal prototype to avoid an error.
17888    Use char because int might match the return type of a GCC
17889    builtin and then its argument prototype would still apply.  */
17890 #ifdef __cplusplus
17891 extern "C"
17892 #endif
17893 char waddch ();
17894 int
17895 main ()
17896 {
17897 return waddch ();
17898   ;
17899   return 0;
17900 }
17901 _ACEOF
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (ac_try="$ac_link"
17904 case "(($ac_try" in
17905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906   *) ac_try_echo=$ac_try;;
17907 esac
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909   (eval "$ac_link") 2>conftest.er1
17910   ac_status=$?
17911   grep -v '^ *+' conftest.er1 >conftest.err
17912   rm -f conftest.er1
17913   cat conftest.err >&5
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); } &&
17916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17917   { (case "(($ac_try" in
17918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919   *) ac_try_echo=$ac_try;;
17920 esac
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922   (eval "$ac_try") 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; } &&
17926          { ac_try='test -s conftest$ac_exeext'
17927   { (case "(($ac_try" in
17928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929   *) ac_try_echo=$ac_try;;
17930 esac
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932   (eval "$ac_try") 2>&5
17933   ac_status=$?
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); }; }; then
17936   case "$LIBEXT" in
17937     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'` ;;
17938     so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^    ]*\).*$/\1/"';2,$d'` ;;
17939   esac
17940   if test "x$ac_cv_lib_soname_ncurses" = "x"
17941   then
17942      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
17943   fi
17944 else
17945   echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17947
17948         ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
17949 fi
17950
17951 rm -f core conftest.err conftest.$ac_objext \
17952       conftest$ac_exeext conftest.$ac_ext
17953   LIBS=$ac_get_soname_save_LIBS
17954 fi
17955 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
17956 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
17957 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
17958
17959 cat >>confdefs.h <<_ACEOF
17960 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
17961 _ACEOF
17962
17963 fi
17964
17965   { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
17966 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
17967 if test "${ac_cv_lib_soname_curses+set}" = set; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970   ac_get_soname_save_LIBS=$LIBS
17971 LIBS="-lcurses  $LIBS"
17972   cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h.  */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h.  */
17978
17979 /* Override any GCC internal prototype to avoid an error.
17980    Use char because int might match the return type of a GCC
17981    builtin and then its argument prototype would still apply.  */
17982 #ifdef __cplusplus
17983 extern "C"
17984 #endif
17985 char waddch ();
17986 int
17987 main ()
17988 {
17989 return waddch ();
17990   ;
17991   return 0;
17992 }
17993 _ACEOF
17994 rm -f conftest.$ac_objext conftest$ac_exeext
17995 if { (ac_try="$ac_link"
17996 case "(($ac_try" in
17997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998   *) ac_try_echo=$ac_try;;
17999 esac
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001   (eval "$ac_link") 2>conftest.er1
18002   ac_status=$?
18003   grep -v '^ *+' conftest.er1 >conftest.err
18004   rm -f conftest.er1
18005   cat conftest.err >&5
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); } &&
18008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18009   { (case "(($ac_try" in
18010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011   *) ac_try_echo=$ac_try;;
18012 esac
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014   (eval "$ac_try") 2>&5
18015   ac_status=$?
18016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017   (exit $ac_status); }; } &&
18018          { ac_try='test -s conftest$ac_exeext'
18019   { (case "(($ac_try" in
18020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021   *) ac_try_echo=$ac_try;;
18022 esac
18023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024   (eval "$ac_try") 2>&5
18025   ac_status=$?
18026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027   (exit $ac_status); }; }; then
18028   case "$LIBEXT" in
18029     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'` ;;
18030     so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^       ]*\).*$/\1/"';2,$d'` ;;
18031   esac
18032   if test "x$ac_cv_lib_soname_curses" = "x"
18033   then
18034      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18035   fi
18036 else
18037   echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.$ac_ext >&5
18039
18040         ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18041 fi
18042
18043 rm -f core conftest.err conftest.$ac_objext \
18044       conftest$ac_exeext conftest.$ac_ext
18045   LIBS=$ac_get_soname_save_LIBS
18046 fi
18047 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
18048 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
18049 if test "${ac_cv_lib_soname_curses+set}" = set; then
18050
18051 cat >>confdefs.h <<_ACEOF
18052 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
18053 _ACEOF
18054
18055 fi
18056
18057   { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
18058 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
18059 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18060   echo $ECHO_N "(cached) $ECHO_C" >&6
18061 else
18062   ac_get_soname_save_LIBS=$LIBS
18063 LIBS="-ljpeg  $LIBS"
18064   cat >conftest.$ac_ext <<_ACEOF
18065 /* confdefs.h.  */
18066 _ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h.  */
18070
18071 /* Override any GCC internal prototype to avoid an error.
18072    Use char because int might match the return type of a GCC
18073    builtin and then its argument prototype would still apply.  */
18074 #ifdef __cplusplus
18075 extern "C"
18076 #endif
18077 char jpeg_start_decompress ();
18078 int
18079 main ()
18080 {
18081 return jpeg_start_decompress ();
18082   ;
18083   return 0;
18084 }
18085 _ACEOF
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090   *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093   (eval "$ac_link") 2>conftest.er1
18094   ac_status=$?
18095   grep -v '^ *+' conftest.er1 >conftest.err
18096   rm -f conftest.er1
18097   cat conftest.err >&5
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } &&
18100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101   { (case "(($ac_try" in
18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103   *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106   (eval "$ac_try") 2>&5
18107   ac_status=$?
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); }; } &&
18110          { ac_try='test -s conftest$ac_exeext'
18111   { (case "(($ac_try" in
18112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113   *) ac_try_echo=$ac_try;;
18114 esac
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116   (eval "$ac_try") 2>&5
18117   ac_status=$?
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); }; }; then
18120   case "$LIBEXT" in
18121     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'` ;;
18122     so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^     ]*\).*$/\1/"';2,$d'` ;;
18123   esac
18124   if test "x$ac_cv_lib_soname_jpeg" = "x"
18125   then
18126      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18127   fi
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132         ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18133 fi
18134
18135 rm -f core conftest.err conftest.$ac_objext \
18136       conftest$ac_exeext conftest.$ac_ext
18137   LIBS=$ac_get_soname_save_LIBS
18138 fi
18139 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
18140 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
18141 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18142
18143 cat >>confdefs.h <<_ACEOF
18144 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
18145 _ACEOF
18146
18147 fi
18148
18149   { echo "$as_me:$LINENO: checking for -lungif soname" >&5
18150 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
18151 if test "${ac_cv_lib_soname_ungif+set}" = set; then
18152   echo $ECHO_N "(cached) $ECHO_C" >&6
18153 else
18154   ac_get_soname_save_LIBS=$LIBS
18155 LIBS="-lungif  $LIBS"
18156   cat >conftest.$ac_ext <<_ACEOF
18157 /* confdefs.h.  */
18158 _ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h.  */
18162
18163 /* Override any GCC internal prototype to avoid an error.
18164    Use char because int might match the return type of a GCC
18165    builtin and then its argument prototype would still apply.  */
18166 #ifdef __cplusplus
18167 extern "C"
18168 #endif
18169 char DGifOpen ();
18170 int
18171 main ()
18172 {
18173 return DGifOpen ();
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext conftest$ac_exeext
18179 if { (ac_try="$ac_link"
18180 case "(($ac_try" in
18181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182   *) ac_try_echo=$ac_try;;
18183 esac
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185   (eval "$ac_link") 2>conftest.er1
18186   ac_status=$?
18187   grep -v '^ *+' conftest.er1 >conftest.err
18188   rm -f conftest.er1
18189   cat conftest.err >&5
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); } &&
18192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18193   { (case "(($ac_try" in
18194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195   *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198   (eval "$ac_try") 2>&5
18199   ac_status=$?
18200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201   (exit $ac_status); }; } &&
18202          { ac_try='test -s conftest$ac_exeext'
18203   { (case "(($ac_try" in
18204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205   *) ac_try_echo=$ac_try;;
18206 esac
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208   (eval "$ac_try") 2>&5
18209   ac_status=$?
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); }; }; then
18212   case "$LIBEXT" in
18213     dylib) ac_cv_lib_soname_ungif=`otool -L conftest$ac_exeext | grep libungif\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libungif\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
18214     so) ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.so | sed -e "s/^.*\(libungif\.so[^  ]*\).*$/\1/"';2,$d'` ;;
18215   esac
18216   if test "x$ac_cv_lib_soname_ungif" = "x"
18217   then
18218      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
18219   fi
18220 else
18221   echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18223
18224         ac_cv_lib_soname_ungif="libungif.$LIBEXT"
18225 fi
18226
18227 rm -f core conftest.err conftest.$ac_objext \
18228       conftest$ac_exeext conftest.$ac_ext
18229   LIBS=$ac_get_soname_save_LIBS
18230 fi
18231 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
18232 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
18233 if test "${ac_cv_lib_soname_ungif+set}" = set; then
18234
18235 cat >>confdefs.h <<_ACEOF
18236 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
18237 _ACEOF
18238
18239 fi
18240
18241   { echo "$as_me:$LINENO: checking for -lgif soname" >&5
18242 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
18243 if test "${ac_cv_lib_soname_gif+set}" = set; then
18244   echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246   ac_get_soname_save_LIBS=$LIBS
18247 LIBS="-lgif  $LIBS"
18248   cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h.  */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h.  */
18254
18255 /* Override any GCC internal prototype to avoid an error.
18256    Use char because int might match the return type of a GCC
18257    builtin and then its argument prototype would still apply.  */
18258 #ifdef __cplusplus
18259 extern "C"
18260 #endif
18261 char DGifOpen ();
18262 int
18263 main ()
18264 {
18265 return DGifOpen ();
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (ac_try="$ac_link"
18272 case "(($ac_try" in
18273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274   *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277   (eval "$ac_link") 2>conftest.er1
18278   ac_status=$?
18279   grep -v '^ *+' conftest.er1 >conftest.err
18280   rm -f conftest.er1
18281   cat conftest.err >&5
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); } &&
18284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18285   { (case "(($ac_try" in
18286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287   *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290   (eval "$ac_try") 2>&5
18291   ac_status=$?
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); }; } &&
18294          { ac_try='test -s conftest$ac_exeext'
18295   { (case "(($ac_try" in
18296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297   *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300   (eval "$ac_try") 2>&5
18301   ac_status=$?
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); }; }; then
18304   case "$LIBEXT" in
18305     dylib) ac_cv_lib_soname_gif=`otool -L conftest$ac_exeext | grep libgif\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libgif\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
18306     so) ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.so | sed -e "s/^.*\(libgif\.so[^        ]*\).*$/\1/"';2,$d'` ;;
18307   esac
18308   if test "x$ac_cv_lib_soname_gif" = "x"
18309   then
18310      ac_cv_lib_soname_gif="libgif.$LIBEXT"
18311   fi
18312 else
18313   echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18315
18316         ac_cv_lib_soname_gif="libgif.$LIBEXT"
18317 fi
18318
18319 rm -f core conftest.err conftest.$ac_objext \
18320       conftest$ac_exeext conftest.$ac_ext
18321   LIBS=$ac_get_soname_save_LIBS
18322 fi
18323 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
18324 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
18325 if test "${ac_cv_lib_soname_gif+set}" = set; then
18326
18327 cat >>confdefs.h <<_ACEOF
18328 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
18329 _ACEOF
18330
18331 fi
18332
18333   { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
18334 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
18335 if test "${ac_cv_lib_soname_capi20+set}" = set; then
18336   echo $ECHO_N "(cached) $ECHO_C" >&6
18337 else
18338   ac_get_soname_save_LIBS=$LIBS
18339 LIBS="-lcapi20  $LIBS"
18340   cat >conftest.$ac_ext <<_ACEOF
18341 /* confdefs.h.  */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h.  */
18346
18347 /* Override any GCC internal prototype to avoid an error.
18348    Use char because int might match the return type of a GCC
18349    builtin and then its argument prototype would still apply.  */
18350 #ifdef __cplusplus
18351 extern "C"
18352 #endif
18353 char capi20_isinstalled ();
18354 int
18355 main ()
18356 {
18357 return capi20_isinstalled ();
18358   ;
18359   return 0;
18360 }
18361 _ACEOF
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (ac_try="$ac_link"
18364 case "(($ac_try" in
18365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366   *) ac_try_echo=$ac_try;;
18367 esac
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369   (eval "$ac_link") 2>conftest.er1
18370   ac_status=$?
18371   grep -v '^ *+' conftest.er1 >conftest.err
18372   rm -f conftest.er1
18373   cat conftest.err >&5
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); } &&
18376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18377   { (case "(($ac_try" in
18378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379   *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382   (eval "$ac_try") 2>&5
18383   ac_status=$?
18384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385   (exit $ac_status); }; } &&
18386          { ac_try='test -s conftest$ac_exeext'
18387   { (case "(($ac_try" in
18388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389   *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392   (eval "$ac_try") 2>&5
18393   ac_status=$?
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); }; }; then
18396   case "$LIBEXT" in
18397     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'` ;;
18398     so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^       ]*\).*$/\1/"';2,$d'` ;;
18399   esac
18400   if test "x$ac_cv_lib_soname_capi20" = "x"
18401   then
18402      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
18403   fi
18404 else
18405   echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18407
18408         ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
18409 fi
18410
18411 rm -f core conftest.err conftest.$ac_objext \
18412       conftest$ac_exeext conftest.$ac_ext
18413   LIBS=$ac_get_soname_save_LIBS
18414 fi
18415 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
18416 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
18417 if test "${ac_cv_lib_soname_capi20+set}" = set; then
18418
18419 cat >>confdefs.h <<_ACEOF
18420 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
18421 _ACEOF
18422
18423 fi
18424
18425 fi
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498 for ac_func in \
18499         _pclose \
18500         _popen \
18501         _snprintf \
18502         _spawnvp \
18503         _stricmp \
18504         _strnicmp \
18505         _vsnprintf \
18506         asctime_r \
18507         chsize \
18508         clone \
18509         connect \
18510         dlopen \
18511         epoll_create \
18512         ffs \
18513         finite \
18514         fork \
18515         fpclass \
18516         fstatfs \
18517         fstatvfs \
18518         ftruncate \
18519         futimes \
18520         futimesat \
18521         getaddrinfo \
18522         gethostbyname \
18523         getnameinfo \
18524         getnetbyname \
18525         getopt_long \
18526         getpagesize \
18527         getprotobyname \
18528         getprotobynumber \
18529         getpwuid \
18530         getservbyport \
18531         gettid \
18532         gettimeofday \
18533         getuid \
18534         inet_aton \
18535         inet_network \
18536         kqueue \
18537         lstat \
18538         memmove \
18539         mmap \
18540         pclose \
18541         poll \
18542         popen \
18543         prctl \
18544         pread \
18545         pwrite \
18546         readlink \
18547         rfork \
18548         sched_yield \
18549         select \
18550         sendmsg \
18551         setrlimit \
18552         settimeofday \
18553         sigaltstack \
18554         sigprocmask \
18555         snprintf \
18556         spawnvp \
18557         statfs \
18558         statvfs \
18559         strcasecmp \
18560         strerror \
18561         strncasecmp \
18562         tcgetattr \
18563         timegm \
18564         usleep \
18565         vsnprintf \
18566         wait4 \
18567         waitpid \
18568
18569 do
18570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18574   echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576   cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h.  */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h.  */
18582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18584 #define $ac_func innocuous_$ac_func
18585
18586 /* System header to define __stub macros and hopefully few prototypes,
18587     which can conflict with char $ac_func (); below.
18588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18589     <limits.h> exists even on freestanding compilers.  */
18590
18591 #ifdef __STDC__
18592 # include <limits.h>
18593 #else
18594 # include <assert.h>
18595 #endif
18596
18597 #undef $ac_func
18598
18599 /* Override any GCC internal prototype to avoid an error.
18600    Use char because int might match the return type of a GCC
18601    builtin and then its argument prototype would still apply.  */
18602 #ifdef __cplusplus
18603 extern "C"
18604 #endif
18605 char $ac_func ();
18606 /* The GNU C library defines this for functions which it implements
18607     to always fail with ENOSYS.  Some functions are actually named
18608     something starting with __ and the normal name is an alias.  */
18609 #if defined __stub_$ac_func || defined __stub___$ac_func
18610 choke me
18611 #endif
18612
18613 int
18614 main ()
18615 {
18616 return $ac_func ();
18617   ;
18618   return 0;
18619 }
18620 _ACEOF
18621 rm -f conftest.$ac_objext conftest$ac_exeext
18622 if { (ac_try="$ac_link"
18623 case "(($ac_try" in
18624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625   *) ac_try_echo=$ac_try;;
18626 esac
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628   (eval "$ac_link") 2>conftest.er1
18629   ac_status=$?
18630   grep -v '^ *+' conftest.er1 >conftest.err
18631   rm -f conftest.er1
18632   cat conftest.err >&5
18633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634   (exit $ac_status); } &&
18635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18642   ac_status=$?
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); }; } &&
18645          { ac_try='test -s conftest$ac_exeext'
18646   { (case "(($ac_try" in
18647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648   *) ac_try_echo=$ac_try;;
18649 esac
18650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651   (eval "$ac_try") 2>&5
18652   ac_status=$?
18653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654   (exit $ac_status); }; }; then
18655   eval "$as_ac_var=yes"
18656 else
18657   echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18659
18660         eval "$as_ac_var=no"
18661 fi
18662
18663 rm -f core conftest.err conftest.$ac_objext \
18664       conftest$ac_exeext conftest.$ac_ext
18665 fi
18666 ac_res=`eval echo '${'$as_ac_var'}'`
18667                { echo "$as_me:$LINENO: result: $ac_res" >&5
18668 echo "${ECHO_T}$ac_res" >&6; }
18669 if test `eval echo '${'$as_ac_var'}'` = yes; then
18670   cat >>confdefs.h <<_ACEOF
18671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18672 _ACEOF
18673
18674 fi
18675 done
18676
18677
18678 if test "$ac_cv_func_dlopen" = no
18679 then
18680     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18681 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18683   echo $ECHO_N "(cached) $ECHO_C" >&6
18684 else
18685   ac_check_lib_save_LIBS=$LIBS
18686 LIBS="-ldl  $LIBS"
18687 cat >conftest.$ac_ext <<_ACEOF
18688 /* confdefs.h.  */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h.  */
18693
18694 /* Override any GCC internal prototype to avoid an error.
18695    Use char because int might match the return type of a GCC
18696    builtin and then its argument prototype would still apply.  */
18697 #ifdef __cplusplus
18698 extern "C"
18699 #endif
18700 char dlopen ();
18701 int
18702 main ()
18703 {
18704 return dlopen ();
18705   ;
18706   return 0;
18707 }
18708 _ACEOF
18709 rm -f conftest.$ac_objext conftest$ac_exeext
18710 if { (ac_try="$ac_link"
18711 case "(($ac_try" in
18712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713   *) ac_try_echo=$ac_try;;
18714 esac
18715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716   (eval "$ac_link") 2>conftest.er1
18717   ac_status=$?
18718   grep -v '^ *+' conftest.er1 >conftest.err
18719   rm -f conftest.er1
18720   cat conftest.err >&5
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); } &&
18723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18724   { (case "(($ac_try" in
18725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726   *) ac_try_echo=$ac_try;;
18727 esac
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729   (eval "$ac_try") 2>&5
18730   ac_status=$?
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); }; } &&
18733          { ac_try='test -s conftest$ac_exeext'
18734   { (case "(($ac_try" in
18735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736   *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739   (eval "$ac_try") 2>&5
18740   ac_status=$?
18741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742   (exit $ac_status); }; }; then
18743   ac_cv_lib_dl_dlopen=yes
18744 else
18745   echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18747
18748         ac_cv_lib_dl_dlopen=no
18749 fi
18750
18751 rm -f core conftest.err conftest.$ac_objext \
18752       conftest$ac_exeext conftest.$ac_ext
18753 LIBS=$ac_check_lib_save_LIBS
18754 fi
18755 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18756 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18757 if test $ac_cv_lib_dl_dlopen = yes; then
18758   cat >>confdefs.h <<\_ACEOF
18759 #define HAVE_DLOPEN 1
18760 _ACEOF
18761  LIBDL="-ldl"
18762
18763 fi
18764
18765 fi
18766 ac_wine_check_funcs_save_LIBS="$LIBS"
18767 LIBS="$LIBS $LIBDL"
18768
18769 for ac_func in dladdr
18770 do
18771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18775   echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777   cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18785 #define $ac_func innocuous_$ac_func
18786
18787 /* System header to define __stub macros and hopefully few prototypes,
18788     which can conflict with char $ac_func (); below.
18789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18790     <limits.h> exists even on freestanding compilers.  */
18791
18792 #ifdef __STDC__
18793 # include <limits.h>
18794 #else
18795 # include <assert.h>
18796 #endif
18797
18798 #undef $ac_func
18799
18800 /* Override any GCC internal prototype to avoid an error.
18801    Use char because int might match the return type of a GCC
18802    builtin and then its argument prototype would still apply.  */
18803 #ifdef __cplusplus
18804 extern "C"
18805 #endif
18806 char $ac_func ();
18807 /* The GNU C library defines this for functions which it implements
18808     to always fail with ENOSYS.  Some functions are actually named
18809     something starting with __ and the normal name is an alias.  */
18810 #if defined __stub_$ac_func || defined __stub___$ac_func
18811 choke me
18812 #endif
18813
18814 int
18815 main ()
18816 {
18817 return $ac_func ();
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826   *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829   (eval "$ac_link") 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } &&
18836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18837   { (case "(($ac_try" in
18838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839   *) ac_try_echo=$ac_try;;
18840 esac
18841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842   (eval "$ac_try") 2>&5
18843   ac_status=$?
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); }; } &&
18846          { ac_try='test -s conftest$ac_exeext'
18847   { (case "(($ac_try" in
18848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849   *) ac_try_echo=$ac_try;;
18850 esac
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852   (eval "$ac_try") 2>&5
18853   ac_status=$?
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); }; }; then
18856   eval "$as_ac_var=yes"
18857 else
18858   echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18860
18861         eval "$as_ac_var=no"
18862 fi
18863
18864 rm -f core conftest.err conftest.$ac_objext \
18865       conftest$ac_exeext conftest.$ac_ext
18866 fi
18867 ac_res=`eval echo '${'$as_ac_var'}'`
18868                { echo "$as_me:$LINENO: result: $ac_res" >&5
18869 echo "${ECHO_T}$ac_res" >&6; }
18870 if test `eval echo '${'$as_ac_var'}'` = yes; then
18871   cat >>confdefs.h <<_ACEOF
18872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18873 _ACEOF
18874
18875 fi
18876 done
18877
18878 LIBS="$ac_wine_check_funcs_save_LIBS"
18879
18880 if test "$ac_cv_func_poll" = no
18881 then
18882     { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
18883 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
18884 if test "${ac_cv_lib_poll_poll+set}" = set; then
18885   echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887   ac_check_lib_save_LIBS=$LIBS
18888 LIBS="-lpoll  $LIBS"
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h.  */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h.  */
18895
18896 /* Override any GCC internal prototype to avoid an error.
18897    Use char because int might match the return type of a GCC
18898    builtin and then its argument prototype would still apply.  */
18899 #ifdef __cplusplus
18900 extern "C"
18901 #endif
18902 char poll ();
18903 int
18904 main ()
18905 {
18906 return poll ();
18907   ;
18908   return 0;
18909 }
18910 _ACEOF
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915   *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918   (eval "$ac_link") 2>conftest.er1
18919   ac_status=$?
18920   grep -v '^ *+' conftest.er1 >conftest.err
18921   rm -f conftest.er1
18922   cat conftest.err >&5
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); } &&
18925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18926   { (case "(($ac_try" in
18927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928   *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931   (eval "$ac_try") 2>&5
18932   ac_status=$?
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); }; } &&
18935          { ac_try='test -s conftest$ac_exeext'
18936   { (case "(($ac_try" in
18937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938   *) ac_try_echo=$ac_try;;
18939 esac
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941   (eval "$ac_try") 2>&5
18942   ac_status=$?
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); }; }; then
18945   ac_cv_lib_poll_poll=yes
18946 else
18947   echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18949
18950         ac_cv_lib_poll_poll=no
18951 fi
18952
18953 rm -f core conftest.err conftest.$ac_objext \
18954       conftest$ac_exeext conftest.$ac_ext
18955 LIBS=$ac_check_lib_save_LIBS
18956 fi
18957 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
18958 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
18959 if test $ac_cv_lib_poll_poll = yes; then
18960   cat >>confdefs.h <<\_ACEOF
18961 #define HAVE_POLL 1
18962 _ACEOF
18963  LIBPOLL="-lpoll"
18964
18965 fi
18966
18967 fi
18968
18969 if test "$ac_cv_func_gethostbyname" = no
18970 then
18971
18972 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18973 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18974 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18975   echo $ECHO_N "(cached) $ECHO_C" >&6
18976 else
18977   ac_check_lib_save_LIBS=$LIBS
18978 LIBS="-lnsl  $LIBS"
18979 cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h.  */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h.  */
18985
18986 /* Override any GCC internal prototype to avoid an error.
18987    Use char because int might match the return type of a GCC
18988    builtin and then its argument prototype would still apply.  */
18989 #ifdef __cplusplus
18990 extern "C"
18991 #endif
18992 char gethostbyname ();
18993 int
18994 main ()
18995 {
18996 return gethostbyname ();
18997   ;
18998   return 0;
18999 }
19000 _ACEOF
19001 rm -f conftest.$ac_objext conftest$ac_exeext
19002 if { (ac_try="$ac_link"
19003 case "(($ac_try" in
19004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005   *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008   (eval "$ac_link") 2>conftest.er1
19009   ac_status=$?
19010   grep -v '^ *+' conftest.er1 >conftest.err
19011   rm -f conftest.er1
19012   cat conftest.err >&5
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); } &&
19015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19016   { (case "(($ac_try" in
19017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018   *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021   (eval "$ac_try") 2>&5
19022   ac_status=$?
19023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024   (exit $ac_status); }; } &&
19025          { ac_try='test -s conftest$ac_exeext'
19026   { (case "(($ac_try" in
19027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028   *) ac_try_echo=$ac_try;;
19029 esac
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031   (eval "$ac_try") 2>&5
19032   ac_status=$?
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); }; }; then
19035   ac_cv_lib_nsl_gethostbyname=yes
19036 else
19037   echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040         ac_cv_lib_nsl_gethostbyname=no
19041 fi
19042
19043 rm -f core conftest.err conftest.$ac_objext \
19044       conftest$ac_exeext conftest.$ac_ext
19045 LIBS=$ac_check_lib_save_LIBS
19046 fi
19047 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19048 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19049 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19050   cat >>confdefs.h <<_ACEOF
19051 #define HAVE_LIBNSL 1
19052 _ACEOF
19053
19054   LIBS="-lnsl $LIBS"
19055
19056 fi
19057
19058 fi
19059
19060 if test "$ac_cv_func_connect" = no
19061 then
19062
19063 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19064 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19065 if test "${ac_cv_lib_socket_connect+set}" = set; then
19066   echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068   ac_check_lib_save_LIBS=$LIBS
19069 LIBS="-lsocket  $LIBS"
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h.  */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h.  */
19076
19077 /* Override any GCC internal prototype to avoid an error.
19078    Use char because int might match the return type of a GCC
19079    builtin and then its argument prototype would still apply.  */
19080 #ifdef __cplusplus
19081 extern "C"
19082 #endif
19083 char connect ();
19084 int
19085 main ()
19086 {
19087 return connect ();
19088   ;
19089   return 0;
19090 }
19091 _ACEOF
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (ac_try="$ac_link"
19094 case "(($ac_try" in
19095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096   *) ac_try_echo=$ac_try;;
19097 esac
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099   (eval "$ac_link") 2>conftest.er1
19100   ac_status=$?
19101   grep -v '^ *+' conftest.er1 >conftest.err
19102   rm -f conftest.er1
19103   cat conftest.err >&5
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); } &&
19106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19107   { (case "(($ac_try" in
19108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109   *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112   (eval "$ac_try") 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; } &&
19116          { ac_try='test -s conftest$ac_exeext'
19117   { (case "(($ac_try" in
19118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119   *) ac_try_echo=$ac_try;;
19120 esac
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122   (eval "$ac_try") 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); }; }; then
19126   ac_cv_lib_socket_connect=yes
19127 else
19128   echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19130
19131         ac_cv_lib_socket_connect=no
19132 fi
19133
19134 rm -f core conftest.err conftest.$ac_objext \
19135       conftest$ac_exeext conftest.$ac_ext
19136 LIBS=$ac_check_lib_save_LIBS
19137 fi
19138 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19139 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19140 if test $ac_cv_lib_socket_connect = yes; then
19141   cat >>confdefs.h <<_ACEOF
19142 #define HAVE_LIBSOCKET 1
19143 _ACEOF
19144
19145   LIBS="-lsocket $LIBS"
19146
19147 fi
19148
19149 fi
19150
19151 if test "$ac_cv_func_inet_aton" = no
19152 then
19153
19154 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19155 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
19156 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159   ac_check_lib_save_LIBS=$LIBS
19160 LIBS="-lresolv  $LIBS"
19161 cat >conftest.$ac_ext <<_ACEOF
19162 /* confdefs.h.  */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h.  */
19167
19168 /* Override any GCC internal prototype to avoid an error.
19169    Use char because int might match the return type of a GCC
19170    builtin and then its argument prototype would still apply.  */
19171 #ifdef __cplusplus
19172 extern "C"
19173 #endif
19174 char inet_aton ();
19175 int
19176 main ()
19177 {
19178 return inet_aton ();
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (ac_try="$ac_link"
19185 case "(($ac_try" in
19186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187   *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190   (eval "$ac_link") 2>conftest.er1
19191   ac_status=$?
19192   grep -v '^ *+' conftest.er1 >conftest.err
19193   rm -f conftest.er1
19194   cat conftest.err >&5
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); } &&
19197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19198   { (case "(($ac_try" in
19199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200   *) ac_try_echo=$ac_try;;
19201 esac
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203   (eval "$ac_try") 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; } &&
19207          { ac_try='test -s conftest$ac_exeext'
19208   { (case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_try") 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; }; then
19217   ac_cv_lib_resolv_inet_aton=yes
19218 else
19219   echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19221
19222         ac_cv_lib_resolv_inet_aton=no
19223 fi
19224
19225 rm -f core conftest.err conftest.$ac_objext \
19226       conftest$ac_exeext conftest.$ac_ext
19227 LIBS=$ac_check_lib_save_LIBS
19228 fi
19229 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19230 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
19231 if test $ac_cv_lib_resolv_inet_aton = yes; then
19232   cat >>confdefs.h <<_ACEOF
19233 #define HAVE_LIBRESOLV 1
19234 _ACEOF
19235
19236   LIBS="-lresolv $LIBS"
19237
19238 fi
19239
19240 fi
19241
19242
19243 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19244 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19245 if test "${ac_cv_c_const+set}" = set; then
19246   echo $ECHO_N "(cached) $ECHO_C" >&6
19247 else
19248   cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h.  */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h.  */
19254
19255 int
19256 main ()
19257 {
19258 /* FIXME: Include the comments suggested by Paul. */
19259 #ifndef __cplusplus
19260   /* Ultrix mips cc rejects this.  */
19261   typedef int charset[2];
19262   const charset x;
19263   /* SunOS 4.1.1 cc rejects this.  */
19264   char const *const *ccp;
19265   char **p;
19266   /* NEC SVR4.0.2 mips cc rejects this.  */
19267   struct point {int x, y;};
19268   static struct point const zero = {0,0};
19269   /* AIX XL C 1.02.0.0 rejects this.
19270      It does not let you subtract one const X* pointer from another in
19271      an arm of an if-expression whose if-part is not a constant
19272      expression */
19273   const char *g = "string";
19274   ccp = &g + (g ? g-g : 0);
19275   /* HPUX 7.0 cc rejects these. */
19276   ++ccp;
19277   p = (char**) ccp;
19278   ccp = (char const *const *) p;
19279   { /* SCO 3.2v4 cc rejects this.  */
19280     char *t;
19281     char const *s = 0 ? (char *) 0 : (char const *) 0;
19282
19283     *t++ = 0;
19284     if (s) return 0;
19285   }
19286   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19287     int x[] = {25, 17};
19288     const int *foo = &x[0];
19289     ++foo;
19290   }
19291   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19292     typedef const int *iptr;
19293     iptr p = 0;
19294     ++p;
19295   }
19296   { /* AIX XL C 1.02.0.0 rejects this saying
19297        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19298     struct s { int j; const int *ap[3]; };
19299     struct s *b; b->j = 5;
19300   }
19301   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19302     const int foo = 10;
19303     if (!foo) return 0;
19304   }
19305   return !x[0] && !zero.x;
19306 #endif
19307
19308   ;
19309   return 0;
19310 }
19311 _ACEOF
19312 rm -f conftest.$ac_objext
19313 if { (ac_try="$ac_compile"
19314 case "(($ac_try" in
19315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316   *) ac_try_echo=$ac_try;;
19317 esac
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319   (eval "$ac_compile") 2>conftest.er1
19320   ac_status=$?
19321   grep -v '^ *+' conftest.er1 >conftest.err
19322   rm -f conftest.er1
19323   cat conftest.err >&5
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); } &&
19326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19327   { (case "(($ac_try" in
19328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329   *) ac_try_echo=$ac_try;;
19330 esac
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332   (eval "$ac_try") 2>&5
19333   ac_status=$?
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); }; } &&
19336          { ac_try='test -s conftest.$ac_objext'
19337   { (case "(($ac_try" in
19338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339   *) ac_try_echo=$ac_try;;
19340 esac
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342   (eval "$ac_try") 2>&5
19343   ac_status=$?
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); }; }; then
19346   ac_cv_c_const=yes
19347 else
19348   echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19350
19351         ac_cv_c_const=no
19352 fi
19353
19354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19355 fi
19356 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19357 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19358 if test $ac_cv_c_const = no; then
19359
19360 cat >>confdefs.h <<\_ACEOF
19361 #define const
19362 _ACEOF
19363
19364 fi
19365
19366 { echo "$as_me:$LINENO: checking for inline" >&5
19367 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19368 if test "${ac_cv_c_inline+set}" = set; then
19369   echo $ECHO_N "(cached) $ECHO_C" >&6
19370 else
19371   ac_cv_c_inline=no
19372 for ac_kw in inline __inline__ __inline; do
19373   cat >conftest.$ac_ext <<_ACEOF
19374 /* confdefs.h.  */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h.  */
19379 #ifndef __cplusplus
19380 typedef int foo_t;
19381 static $ac_kw foo_t static_foo () {return 0; }
19382 $ac_kw foo_t foo () {return 0; }
19383 #endif
19384
19385 _ACEOF
19386 rm -f conftest.$ac_objext
19387 if { (ac_try="$ac_compile"
19388 case "(($ac_try" in
19389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390   *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393   (eval "$ac_compile") 2>conftest.er1
19394   ac_status=$?
19395   grep -v '^ *+' conftest.er1 >conftest.err
19396   rm -f conftest.er1
19397   cat conftest.err >&5
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); } &&
19400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19401   { (case "(($ac_try" in
19402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403   *) ac_try_echo=$ac_try;;
19404 esac
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406   (eval "$ac_try") 2>&5
19407   ac_status=$?
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); }; } &&
19410          { ac_try='test -s conftest.$ac_objext'
19411   { (case "(($ac_try" in
19412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413   *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416   (eval "$ac_try") 2>&5
19417   ac_status=$?
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); }; }; then
19420   ac_cv_c_inline=$ac_kw
19421 else
19422   echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19424
19425
19426 fi
19427
19428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19429   test "$ac_cv_c_inline" != no && break
19430 done
19431
19432 fi
19433 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19434 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19435
19436
19437 case $ac_cv_c_inline in
19438   inline | yes) ;;
19439   *)
19440     case $ac_cv_c_inline in
19441       no) ac_val=;;
19442       *) ac_val=$ac_cv_c_inline;;
19443     esac
19444     cat >>confdefs.h <<_ACEOF
19445 #ifndef __cplusplus
19446 #define inline $ac_val
19447 #endif
19448 _ACEOF
19449     ;;
19450 esac
19451
19452 { echo "$as_me:$LINENO: checking for mode_t" >&5
19453 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
19454 if test "${ac_cv_type_mode_t+set}" = set; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457   cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463 $ac_includes_default
19464 typedef mode_t ac__type_new_;
19465 int
19466 main ()
19467 {
19468 if ((ac__type_new_ *) 0)
19469   return 0;
19470 if (sizeof (ac__type_new_))
19471   return 0;
19472   ;
19473   return 0;
19474 }
19475 _ACEOF
19476 rm -f conftest.$ac_objext
19477 if { (ac_try="$ac_compile"
19478 case "(($ac_try" in
19479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480   *) ac_try_echo=$ac_try;;
19481 esac
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483   (eval "$ac_compile") 2>conftest.er1
19484   ac_status=$?
19485   grep -v '^ *+' conftest.er1 >conftest.err
19486   rm -f conftest.er1
19487   cat conftest.err >&5
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } &&
19490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19491   { (case "(($ac_try" in
19492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493   *) ac_try_echo=$ac_try;;
19494 esac
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496   (eval "$ac_try") 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); }; } &&
19500          { ac_try='test -s conftest.$ac_objext'
19501   { (case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506   (eval "$ac_try") 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; }; then
19510   ac_cv_type_mode_t=yes
19511 else
19512   echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515         ac_cv_type_mode_t=no
19516 fi
19517
19518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519 fi
19520 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19521 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
19522 if test $ac_cv_type_mode_t = yes; then
19523
19524 cat >>confdefs.h <<_ACEOF
19525 #define HAVE_MODE_T 1
19526 _ACEOF
19527
19528
19529 fi
19530 { echo "$as_me:$LINENO: checking for off_t" >&5
19531 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
19532 if test "${ac_cv_type_off_t+set}" = set; then
19533   echo $ECHO_N "(cached) $ECHO_C" >&6
19534 else
19535   cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h.  */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h.  */
19541 $ac_includes_default
19542 typedef off_t ac__type_new_;
19543 int
19544 main ()
19545 {
19546 if ((ac__type_new_ *) 0)
19547   return 0;
19548 if (sizeof (ac__type_new_))
19549   return 0;
19550   ;
19551   return 0;
19552 }
19553 _ACEOF
19554 rm -f conftest.$ac_objext
19555 if { (ac_try="$ac_compile"
19556 case "(($ac_try" in
19557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558   *) ac_try_echo=$ac_try;;
19559 esac
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561   (eval "$ac_compile") 2>conftest.er1
19562   ac_status=$?
19563   grep -v '^ *+' conftest.er1 >conftest.err
19564   rm -f conftest.er1
19565   cat conftest.err >&5
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); } &&
19568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19569   { (case "(($ac_try" in
19570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571   *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574   (eval "$ac_try") 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; } &&
19578          { ac_try='test -s conftest.$ac_objext'
19579   { (case "(($ac_try" in
19580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581   *) ac_try_echo=$ac_try;;
19582 esac
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584   (eval "$ac_try") 2>&5
19585   ac_status=$?
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); }; }; then
19588   ac_cv_type_off_t=yes
19589 else
19590   echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19592
19593         ac_cv_type_off_t=no
19594 fi
19595
19596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19597 fi
19598 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19599 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
19600 if test $ac_cv_type_off_t = yes; then
19601
19602 cat >>confdefs.h <<_ACEOF
19603 #define HAVE_OFF_T 1
19604 _ACEOF
19605
19606
19607 fi
19608 { echo "$as_me:$LINENO: checking for pid_t" >&5
19609 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19610 if test "${ac_cv_type_pid_t+set}" = set; then
19611   echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613   cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h.  */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h.  */
19619 $ac_includes_default
19620 typedef pid_t ac__type_new_;
19621 int
19622 main ()
19623 {
19624 if ((ac__type_new_ *) 0)
19625   return 0;
19626 if (sizeof (ac__type_new_))
19627   return 0;
19628   ;
19629   return 0;
19630 }
19631 _ACEOF
19632 rm -f conftest.$ac_objext
19633 if { (ac_try="$ac_compile"
19634 case "(($ac_try" in
19635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636   *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639   (eval "$ac_compile") 2>conftest.er1
19640   ac_status=$?
19641   grep -v '^ *+' conftest.er1 >conftest.err
19642   rm -f conftest.er1
19643   cat conftest.err >&5
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); } &&
19646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19647   { (case "(($ac_try" in
19648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649   *) ac_try_echo=$ac_try;;
19650 esac
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652   (eval "$ac_try") 2>&5
19653   ac_status=$?
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); }; } &&
19656          { ac_try='test -s conftest.$ac_objext'
19657   { (case "(($ac_try" in
19658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659   *) ac_try_echo=$ac_try;;
19660 esac
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662   (eval "$ac_try") 2>&5
19663   ac_status=$?
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); }; }; then
19666   ac_cv_type_pid_t=yes
19667 else
19668   echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19670
19671         ac_cv_type_pid_t=no
19672 fi
19673
19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19675 fi
19676 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19677 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
19678 if test $ac_cv_type_pid_t = yes; then
19679
19680 cat >>confdefs.h <<_ACEOF
19681 #define HAVE_PID_T 1
19682 _ACEOF
19683
19684
19685 fi
19686 { echo "$as_me:$LINENO: checking for size_t" >&5
19687 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19688 if test "${ac_cv_type_size_t+set}" = set; then
19689   echo $ECHO_N "(cached) $ECHO_C" >&6
19690 else
19691   cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h.  */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h.  */
19697 $ac_includes_default
19698 typedef size_t ac__type_new_;
19699 int
19700 main ()
19701 {
19702 if ((ac__type_new_ *) 0)
19703   return 0;
19704 if (sizeof (ac__type_new_))
19705   return 0;
19706   ;
19707   return 0;
19708 }
19709 _ACEOF
19710 rm -f conftest.$ac_objext
19711 if { (ac_try="$ac_compile"
19712 case "(($ac_try" in
19713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714   *) ac_try_echo=$ac_try;;
19715 esac
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717   (eval "$ac_compile") 2>conftest.er1
19718   ac_status=$?
19719   grep -v '^ *+' conftest.er1 >conftest.err
19720   rm -f conftest.er1
19721   cat conftest.err >&5
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); } &&
19724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725   { (case "(($ac_try" in
19726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727   *) ac_try_echo=$ac_try;;
19728 esac
19729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730   (eval "$ac_try") 2>&5
19731   ac_status=$?
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); }; } &&
19734          { ac_try='test -s conftest.$ac_objext'
19735   { (case "(($ac_try" in
19736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737   *) ac_try_echo=$ac_try;;
19738 esac
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740   (eval "$ac_try") 2>&5
19741   ac_status=$?
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); }; }; then
19744   ac_cv_type_size_t=yes
19745 else
19746   echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19748
19749         ac_cv_type_size_t=no
19750 fi
19751
19752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19753 fi
19754 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19755 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19756 if test $ac_cv_type_size_t = yes; then
19757
19758 cat >>confdefs.h <<_ACEOF
19759 #define HAVE_SIZE_T 1
19760 _ACEOF
19761
19762
19763 fi
19764 { echo "$as_me:$LINENO: checking for ssize_t" >&5
19765 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
19766 if test "${ac_cv_type_ssize_t+set}" = set; then
19767   echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769   cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h.  */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h.  */
19775 $ac_includes_default
19776 typedef ssize_t ac__type_new_;
19777 int
19778 main ()
19779 {
19780 if ((ac__type_new_ *) 0)
19781   return 0;
19782 if (sizeof (ac__type_new_))
19783   return 0;
19784   ;
19785   return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext
19789 if { (ac_try="$ac_compile"
19790 case "(($ac_try" in
19791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792   *) ac_try_echo=$ac_try;;
19793 esac
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795   (eval "$ac_compile") 2>conftest.er1
19796   ac_status=$?
19797   grep -v '^ *+' conftest.er1 >conftest.err
19798   rm -f conftest.er1
19799   cat conftest.err >&5
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } &&
19802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19803   { (case "(($ac_try" in
19804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805   *) ac_try_echo=$ac_try;;
19806 esac
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808   (eval "$ac_try") 2>&5
19809   ac_status=$?
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); }; } &&
19812          { ac_try='test -s conftest.$ac_objext'
19813   { (case "(($ac_try" in
19814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815   *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818   (eval "$ac_try") 2>&5
19819   ac_status=$?
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); }; }; then
19822   ac_cv_type_ssize_t=yes
19823 else
19824   echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827         ac_cv_type_ssize_t=no
19828 fi
19829
19830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831 fi
19832 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
19833 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
19834 if test $ac_cv_type_ssize_t = yes; then
19835
19836 cat >>confdefs.h <<_ACEOF
19837 #define HAVE_SSIZE_T 1
19838 _ACEOF
19839
19840
19841 fi
19842 { echo "$as_me:$LINENO: checking for long long" >&5
19843 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19844 if test "${ac_cv_type_long_long+set}" = set; then
19845   echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847   cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853 $ac_includes_default
19854 typedef long long ac__type_new_;
19855 int
19856 main ()
19857 {
19858 if ((ac__type_new_ *) 0)
19859   return 0;
19860 if (sizeof (ac__type_new_))
19861   return 0;
19862   ;
19863   return 0;
19864 }
19865 _ACEOF
19866 rm -f conftest.$ac_objext
19867 if { (ac_try="$ac_compile"
19868 case "(($ac_try" in
19869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870   *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873   (eval "$ac_compile") 2>conftest.er1
19874   ac_status=$?
19875   grep -v '^ *+' conftest.er1 >conftest.err
19876   rm -f conftest.er1
19877   cat conftest.err >&5
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); } &&
19880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19881   { (case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_try") 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; } &&
19890          { ac_try='test -s conftest.$ac_objext'
19891   { (case "(($ac_try" in
19892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893   *) ac_try_echo=$ac_try;;
19894 esac
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896   (eval "$ac_try") 2>&5
19897   ac_status=$?
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); }; }; then
19900   ac_cv_type_long_long=yes
19901 else
19902   echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905         ac_cv_type_long_long=no
19906 fi
19907
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19909 fi
19910 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19911 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19912 if test $ac_cv_type_long_long = yes; then
19913
19914 cat >>confdefs.h <<_ACEOF
19915 #define HAVE_LONG_LONG 1
19916 _ACEOF
19917
19918
19919 fi
19920 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
19921 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
19922 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925   cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h.  */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h.  */
19931 $ac_includes_default
19932 typedef fsblkcnt_t ac__type_new_;
19933 int
19934 main ()
19935 {
19936 if ((ac__type_new_ *) 0)
19937   return 0;
19938 if (sizeof (ac__type_new_))
19939   return 0;
19940   ;
19941   return 0;
19942 }
19943 _ACEOF
19944 rm -f conftest.$ac_objext
19945 if { (ac_try="$ac_compile"
19946 case "(($ac_try" in
19947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948   *) ac_try_echo=$ac_try;;
19949 esac
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951   (eval "$ac_compile") 2>conftest.er1
19952   ac_status=$?
19953   grep -v '^ *+' conftest.er1 >conftest.err
19954   rm -f conftest.er1
19955   cat conftest.err >&5
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); } &&
19958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19959   { (case "(($ac_try" in
19960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961   *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964   (eval "$ac_try") 2>&5
19965   ac_status=$?
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); }; } &&
19968          { ac_try='test -s conftest.$ac_objext'
19969   { (case "(($ac_try" in
19970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971   *) ac_try_echo=$ac_try;;
19972 esac
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974   (eval "$ac_try") 2>&5
19975   ac_status=$?
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); }; }; then
19978   ac_cv_type_fsblkcnt_t=yes
19979 else
19980   echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19982
19983         ac_cv_type_fsblkcnt_t=no
19984 fi
19985
19986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19987 fi
19988 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
19989 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
19990 if test $ac_cv_type_fsblkcnt_t = yes; then
19991
19992 cat >>confdefs.h <<_ACEOF
19993 #define HAVE_FSBLKCNT_T 1
19994 _ACEOF
19995
19996
19997 fi
19998 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
19999 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
20000 if test "${ac_cv_type_fsfilcnt_t+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 $ac_includes_default
20010 typedef fsfilcnt_t ac__type_new_;
20011 int
20012 main ()
20013 {
20014 if ((ac__type_new_ *) 0)
20015   return 0;
20016 if (sizeof (ac__type_new_))
20017   return 0;
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 rm -f conftest.$ac_objext
20023 if { (ac_try="$ac_compile"
20024 case "(($ac_try" in
20025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026   *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029   (eval "$ac_compile") 2>conftest.er1
20030   ac_status=$?
20031   grep -v '^ *+' conftest.er1 >conftest.err
20032   rm -f conftest.er1
20033   cat conftest.err >&5
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } &&
20036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20037   { (case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_try") 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); }; } &&
20046          { ac_try='test -s conftest.$ac_objext'
20047   { (case "(($ac_try" in
20048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049   *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052   (eval "$ac_try") 2>&5
20053   ac_status=$?
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); }; }; then
20056   ac_cv_type_fsfilcnt_t=yes
20057 else
20058   echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061         ac_cv_type_fsfilcnt_t=no
20062 fi
20063
20064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20065 fi
20066 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20067 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
20068 if test $ac_cv_type_fsfilcnt_t = yes; then
20069
20070 cat >>confdefs.h <<_ACEOF
20071 #define HAVE_FSFILCNT_T 1
20072 _ACEOF
20073
20074
20075 fi
20076
20077 { echo "$as_me:$LINENO: checking for sigset_t" >&5
20078 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
20079 if test "${ac_cv_type_sigset_t+set}" = set; then
20080   echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082   cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h.  */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h.  */
20088 #include <signal.h>
20089
20090 typedef sigset_t ac__type_new_;
20091 int
20092 main ()
20093 {
20094 if ((ac__type_new_ *) 0)
20095   return 0;
20096 if (sizeof (ac__type_new_))
20097   return 0;
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext
20103 if { (ac_try="$ac_compile"
20104 case "(($ac_try" in
20105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106   *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109   (eval "$ac_compile") 2>conftest.er1
20110   ac_status=$?
20111   grep -v '^ *+' conftest.er1 >conftest.err
20112   rm -f conftest.er1
20113   cat conftest.err >&5
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } &&
20116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20117   { (case "(($ac_try" in
20118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119   *) ac_try_echo=$ac_try;;
20120 esac
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122   (eval "$ac_try") 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); }; } &&
20126          { ac_try='test -s conftest.$ac_objext'
20127   { (case "(($ac_try" in
20128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129   *) ac_try_echo=$ac_try;;
20130 esac
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132   (eval "$ac_try") 2>&5
20133   ac_status=$?
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); }; }; then
20136   ac_cv_type_sigset_t=yes
20137 else
20138   echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141         ac_cv_type_sigset_t=no
20142 fi
20143
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20145 fi
20146 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20147 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
20148 if test $ac_cv_type_sigset_t = yes; then
20149
20150 cat >>confdefs.h <<_ACEOF
20151 #define HAVE_SIGSET_T 1
20152 _ACEOF
20153
20154
20155 fi
20156
20157 { echo "$as_me:$LINENO: checking for request_sense" >&5
20158 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
20159 if test "${ac_cv_type_request_sense+set}" = set; then
20160   echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162   cat >conftest.$ac_ext <<_ACEOF
20163 /* confdefs.h.  */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h.  */
20168 #include <linux/cdrom.h>
20169
20170 typedef request_sense ac__type_new_;
20171 int
20172 main ()
20173 {
20174 if ((ac__type_new_ *) 0)
20175   return 0;
20176 if (sizeof (ac__type_new_))
20177   return 0;
20178   ;
20179   return 0;
20180 }
20181 _ACEOF
20182 rm -f conftest.$ac_objext
20183 if { (ac_try="$ac_compile"
20184 case "(($ac_try" in
20185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186   *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189   (eval "$ac_compile") 2>conftest.er1
20190   ac_status=$?
20191   grep -v '^ *+' conftest.er1 >conftest.err
20192   rm -f conftest.er1
20193   cat conftest.err >&5
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } &&
20196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20197   { (case "(($ac_try" in
20198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199   *) ac_try_echo=$ac_try;;
20200 esac
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202   (eval "$ac_try") 2>&5
20203   ac_status=$?
20204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205   (exit $ac_status); }; } &&
20206          { ac_try='test -s conftest.$ac_objext'
20207   { (case "(($ac_try" in
20208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209   *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212   (eval "$ac_try") 2>&5
20213   ac_status=$?
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); }; }; then
20216   ac_cv_type_request_sense=yes
20217 else
20218   echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20220
20221         ac_cv_type_request_sense=no
20222 fi
20223
20224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20225 fi
20226 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20227 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
20228 if test $ac_cv_type_request_sense = yes; then
20229
20230 cat >>confdefs.h <<_ACEOF
20231 #define HAVE_REQUEST_SENSE 1
20232 _ACEOF
20233
20234
20235 fi
20236
20237
20238 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20239 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
20240 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20241   echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20243   cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h.  */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h.  */
20249 #ifdef HAVE_LINUX_INPUT_H
20250 #include <linux/input.h>
20251 #endif
20252
20253 int
20254 main ()
20255 {
20256 static struct ff_effect ac_aggr;
20257 if (ac_aggr.direction)
20258 return 0;
20259   ;
20260   return 0;
20261 }
20262 _ACEOF
20263 rm -f conftest.$ac_objext
20264 if { (ac_try="$ac_compile"
20265 case "(($ac_try" in
20266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267   *) ac_try_echo=$ac_try;;
20268 esac
20269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270   (eval "$ac_compile") 2>conftest.er1
20271   ac_status=$?
20272   grep -v '^ *+' conftest.er1 >conftest.err
20273   rm -f conftest.er1
20274   cat conftest.err >&5
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); } &&
20277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20278   { (case "(($ac_try" in
20279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280   *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283   (eval "$ac_try") 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); }; } &&
20287          { ac_try='test -s conftest.$ac_objext'
20288   { (case "(($ac_try" in
20289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290   *) ac_try_echo=$ac_try;;
20291 esac
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293   (eval "$ac_try") 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; }; then
20297   ac_cv_member_struct_ff_effect_direction=yes
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302         cat >conftest.$ac_ext <<_ACEOF
20303 /* confdefs.h.  */
20304 _ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h.  */
20308 #ifdef HAVE_LINUX_INPUT_H
20309 #include <linux/input.h>
20310 #endif
20311
20312 int
20313 main ()
20314 {
20315 static struct ff_effect ac_aggr;
20316 if (sizeof ac_aggr.direction)
20317 return 0;
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_compile") 2>conftest.er1
20330   ac_status=$?
20331   grep -v '^ *+' conftest.er1 >conftest.err
20332   rm -f conftest.er1
20333   cat conftest.err >&5
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } &&
20336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20337   { (case "(($ac_try" in
20338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339   *) ac_try_echo=$ac_try;;
20340 esac
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342   (eval "$ac_try") 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); }; } &&
20346          { ac_try='test -s conftest.$ac_objext'
20347   { (case "(($ac_try" in
20348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349   *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352   (eval "$ac_try") 2>&5
20353   ac_status=$?
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); }; }; then
20356   ac_cv_member_struct_ff_effect_direction=yes
20357 else
20358   echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20360
20361         ac_cv_member_struct_ff_effect_direction=no
20362 fi
20363
20364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20365 fi
20366
20367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368 fi
20369 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20370 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
20371 if test $ac_cv_member_struct_ff_effect_direction = yes; then
20372
20373 cat >>confdefs.h <<_ACEOF
20374 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20375 _ACEOF
20376
20377
20378 fi
20379
20380
20381 { echo "$as_me:$LINENO: checking for sigaddset" >&5
20382 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
20383 if test "${wine_cv_have_sigaddset+set}" = set; then
20384   echo $ECHO_N "(cached) $ECHO_C" >&6
20385 else
20386   cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h.  */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h.  */
20392 #include <signal.h>
20393 int
20394 main ()
20395 {
20396 sigset_t set; sigaddset(&set,SIGTERM);
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408   (eval "$ac_link") 2>conftest.er1
20409   ac_status=$?
20410   grep -v '^ *+' conftest.er1 >conftest.err
20411   rm -f conftest.er1
20412   cat conftest.err >&5
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } &&
20415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20416   { (case "(($ac_try" in
20417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418   *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421   (eval "$ac_try") 2>&5
20422   ac_status=$?
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); }; } &&
20425          { ac_try='test -s conftest$ac_exeext'
20426   { (case "(($ac_try" in
20427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428   *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431   (eval "$ac_try") 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); }; }; then
20435   wine_cv_have_sigaddset=yes
20436 else
20437   echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20439
20440         wine_cv_have_sigaddset=no
20441 fi
20442
20443 rm -f core conftest.err conftest.$ac_objext \
20444       conftest$ac_exeext conftest.$ac_ext
20445 fi
20446 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20447 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
20448 if test "$wine_cv_have_sigaddset" = "yes"
20449 then
20450
20451 cat >>confdefs.h <<\_ACEOF
20452 #define HAVE_SIGADDSET 1
20453 _ACEOF
20454
20455 fi
20456
20457
20458 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20459 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
20460 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20461   echo $ECHO_N "(cached) $ECHO_C" >&6
20462 else
20463   cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h.  */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h.  */
20469
20470 #include <netdb.h>
20471
20472 int
20473 main ()
20474 {
20475
20476     char *name=NULL;
20477     struct hostent he;
20478     struct hostent *result;
20479     char *buf=NULL;
20480     int bufsize=0;
20481     int res,errnr;
20482     char *addr=NULL;
20483     int addrlen=0;
20484     int addrtype=0;
20485     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20486     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
20487
20488   ;
20489   return 0;
20490 }
20491 _ACEOF
20492 rm -f conftest.$ac_objext conftest$ac_exeext
20493 if { (ac_try="$ac_link"
20494 case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_link") 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } &&
20506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20507   { (case "(($ac_try" in
20508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509   *) ac_try_echo=$ac_try;;
20510 esac
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512   (eval "$ac_try") 2>&5
20513   ac_status=$?
20514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515   (exit $ac_status); }; } &&
20516          { ac_try='test -s conftest$ac_exeext'
20517   { (case "(($ac_try" in
20518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519   *) ac_try_echo=$ac_try;;
20520 esac
20521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522   (eval "$ac_try") 2>&5
20523   ac_status=$?
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); }; }; then
20526   wine_cv_linux_gethostbyname_r_6=yes
20527 else
20528   echo "$as_me: failed program was:" >&5
20529 sed 's/^/| /' conftest.$ac_ext >&5
20530
20531         wine_cv_linux_gethostbyname_r_6=no
20532
20533 fi
20534
20535 rm -f core conftest.err conftest.$ac_objext \
20536       conftest$ac_exeext conftest.$ac_ext
20537
20538 fi
20539 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20540 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
20541    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20542    then
20543
20544 cat >>confdefs.h <<\_ACEOF
20545 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
20546 _ACEOF
20547
20548    fi
20549
20550 if test "$ac_cv_header_linux_joystick_h" = "yes"
20551 then
20552    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20553 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
20554 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20555   echo $ECHO_N "(cached) $ECHO_C" >&6
20556 else
20557   cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h.  */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h.  */
20563
20564         #include <sys/ioctl.h>
20565         #include <linux/joystick.h>
20566
20567         struct js_event blub;
20568         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20569         #error "no 2.2 header"
20570         #endif
20571
20572 int
20573 main ()
20574 {
20575 /*empty*/
20576   ;
20577   return 0;
20578 }
20579 _ACEOF
20580 rm -f conftest.$ac_objext
20581 if { (ac_try="$ac_compile"
20582 case "(($ac_try" in
20583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584   *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587   (eval "$ac_compile") 2>conftest.er1
20588   ac_status=$?
20589   grep -v '^ *+' conftest.er1 >conftest.err
20590   rm -f conftest.er1
20591   cat conftest.err >&5
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); } &&
20594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20595   { (case "(($ac_try" in
20596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597   *) ac_try_echo=$ac_try;;
20598 esac
20599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600   (eval "$ac_try") 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; } &&
20604          { ac_try='test -s conftest.$ac_objext'
20605   { (case "(($ac_try" in
20606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607   *) ac_try_echo=$ac_try;;
20608 esac
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610   (eval "$ac_try") 2>&5
20611   ac_status=$?
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); }; }; then
20614   wine_cv_linux_joystick_22_api=yes
20615 else
20616   echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20618
20619         wine_cv_linux_joystick_22_api=no
20620 fi
20621
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623
20624 fi
20625 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20626 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
20627    if test "$wine_cv_linux_joystick_22_api" = "yes"
20628    then
20629
20630 cat >>confdefs.h <<\_ACEOF
20631 #define HAVE_LINUX_22_JOYSTICK_API 1
20632 _ACEOF
20633
20634    fi
20635 fi
20636
20637
20638 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20639 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
20640 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
20641   echo $ECHO_N "(cached) $ECHO_C" >&6
20642 else
20643   cat >conftest.$ac_ext <<_ACEOF
20644 /* confdefs.h.  */
20645 _ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h.  */
20649 #include <sys/types.h>
20650 #ifdef HAVE_SYS_PARAM_H
20651 # include <sys/param.h>
20652 #endif
20653 #ifdef HAVE_SYS_MOUNT_H
20654 # include <sys/mount.h>
20655 #endif
20656 #ifdef HAVE_SYS_VFS_H
20657 # include <sys/vfs.h>
20658 #endif
20659 #ifdef HAVE_SYS_STATFS_H
20660 # include <sys/statfs.h>
20661 #endif
20662
20663 int
20664 main ()
20665 {
20666 static struct statfs ac_aggr;
20667 if (ac_aggr.f_bfree)
20668 return 0;
20669   ;
20670   return 0;
20671 }
20672 _ACEOF
20673 rm -f conftest.$ac_objext
20674 if { (ac_try="$ac_compile"
20675 case "(($ac_try" in
20676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677   *) ac_try_echo=$ac_try;;
20678 esac
20679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20680   (eval "$ac_compile") 2>conftest.er1
20681   ac_status=$?
20682   grep -v '^ *+' conftest.er1 >conftest.err
20683   rm -f conftest.er1
20684   cat conftest.err >&5
20685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686   (exit $ac_status); } &&
20687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20688   { (case "(($ac_try" in
20689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690   *) ac_try_echo=$ac_try;;
20691 esac
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693   (eval "$ac_try") 2>&5
20694   ac_status=$?
20695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); }; } &&
20697          { ac_try='test -s conftest.$ac_objext'
20698   { (case "(($ac_try" in
20699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700   *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703   (eval "$ac_try") 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); }; }; then
20707   ac_cv_member_struct_statfs_f_bfree=yes
20708 else
20709   echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20711
20712         cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h.  */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h.  */
20718 #include <sys/types.h>
20719 #ifdef HAVE_SYS_PARAM_H
20720 # include <sys/param.h>
20721 #endif
20722 #ifdef HAVE_SYS_MOUNT_H
20723 # include <sys/mount.h>
20724 #endif
20725 #ifdef HAVE_SYS_VFS_H
20726 # include <sys/vfs.h>
20727 #endif
20728 #ifdef HAVE_SYS_STATFS_H
20729 # include <sys/statfs.h>
20730 #endif
20731
20732 int
20733 main ()
20734 {
20735 static struct statfs ac_aggr;
20736 if (sizeof ac_aggr.f_bfree)
20737 return 0;
20738   ;
20739   return 0;
20740 }
20741 _ACEOF
20742 rm -f conftest.$ac_objext
20743 if { (ac_try="$ac_compile"
20744 case "(($ac_try" in
20745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746   *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749   (eval "$ac_compile") 2>conftest.er1
20750   ac_status=$?
20751   grep -v '^ *+' conftest.er1 >conftest.err
20752   rm -f conftest.er1
20753   cat conftest.err >&5
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); } &&
20756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20757   { (case "(($ac_try" in
20758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759   *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762   (eval "$ac_try") 2>&5
20763   ac_status=$?
20764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765   (exit $ac_status); }; } &&
20766          { ac_try='test -s conftest.$ac_objext'
20767   { (case "(($ac_try" in
20768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769   *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772   (eval "$ac_try") 2>&5
20773   ac_status=$?
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); }; }; then
20776   ac_cv_member_struct_statfs_f_bfree=yes
20777 else
20778   echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20780
20781         ac_cv_member_struct_statfs_f_bfree=no
20782 fi
20783
20784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20785 fi
20786
20787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20788 fi
20789 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
20790 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
20791 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
20792
20793 cat >>confdefs.h <<_ACEOF
20794 #define HAVE_STRUCT_STATFS_F_BFREE 1
20795 _ACEOF
20796
20797
20798 fi
20799 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
20800 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
20801 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
20802   echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804   cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h.  */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h.  */
20810 #include <sys/types.h>
20811 #ifdef HAVE_SYS_PARAM_H
20812 # include <sys/param.h>
20813 #endif
20814 #ifdef HAVE_SYS_MOUNT_H
20815 # include <sys/mount.h>
20816 #endif
20817 #ifdef HAVE_SYS_VFS_H
20818 # include <sys/vfs.h>
20819 #endif
20820 #ifdef HAVE_SYS_STATFS_H
20821 # include <sys/statfs.h>
20822 #endif
20823
20824 int
20825 main ()
20826 {
20827 static struct statfs ac_aggr;
20828 if (ac_aggr.f_bavail)
20829 return 0;
20830   ;
20831   return 0;
20832 }
20833 _ACEOF
20834 rm -f conftest.$ac_objext
20835 if { (ac_try="$ac_compile"
20836 case "(($ac_try" in
20837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838   *) ac_try_echo=$ac_try;;
20839 esac
20840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841   (eval "$ac_compile") 2>conftest.er1
20842   ac_status=$?
20843   grep -v '^ *+' conftest.er1 >conftest.err
20844   rm -f conftest.er1
20845   cat conftest.err >&5
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); } &&
20848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20849   { (case "(($ac_try" in
20850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851   *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854   (eval "$ac_try") 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; } &&
20858          { ac_try='test -s conftest.$ac_objext'
20859   { (case "(($ac_try" in
20860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861   *) ac_try_echo=$ac_try;;
20862 esac
20863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864   (eval "$ac_try") 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); }; }; then
20868   ac_cv_member_struct_statfs_f_bavail=yes
20869 else
20870   echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20872
20873         cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h.  */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h.  */
20879 #include <sys/types.h>
20880 #ifdef HAVE_SYS_PARAM_H
20881 # include <sys/param.h>
20882 #endif
20883 #ifdef HAVE_SYS_MOUNT_H
20884 # include <sys/mount.h>
20885 #endif
20886 #ifdef HAVE_SYS_VFS_H
20887 # include <sys/vfs.h>
20888 #endif
20889 #ifdef HAVE_SYS_STATFS_H
20890 # include <sys/statfs.h>
20891 #endif
20892
20893 int
20894 main ()
20895 {
20896 static struct statfs ac_aggr;
20897 if (sizeof ac_aggr.f_bavail)
20898 return 0;
20899   ;
20900   return 0;
20901 }
20902 _ACEOF
20903 rm -f conftest.$ac_objext
20904 if { (ac_try="$ac_compile"
20905 case "(($ac_try" in
20906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907   *) ac_try_echo=$ac_try;;
20908 esac
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910   (eval "$ac_compile") 2>conftest.er1
20911   ac_status=$?
20912   grep -v '^ *+' conftest.er1 >conftest.err
20913   rm -f conftest.er1
20914   cat conftest.err >&5
20915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916   (exit $ac_status); } &&
20917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20918   { (case "(($ac_try" in
20919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920   *) ac_try_echo=$ac_try;;
20921 esac
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923   (eval "$ac_try") 2>&5
20924   ac_status=$?
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); }; } &&
20927          { ac_try='test -s conftest.$ac_objext'
20928   { (case "(($ac_try" in
20929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930   *) ac_try_echo=$ac_try;;
20931 esac
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933   (eval "$ac_try") 2>&5
20934   ac_status=$?
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); }; }; then
20937   ac_cv_member_struct_statfs_f_bavail=yes
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942         ac_cv_member_struct_statfs_f_bavail=no
20943 fi
20944
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946 fi
20947
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949 fi
20950 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
20951 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
20952 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
20953
20954 cat >>confdefs.h <<_ACEOF
20955 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
20956 _ACEOF
20957
20958
20959 fi
20960 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
20961 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
20962 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
20963   echo $ECHO_N "(cached) $ECHO_C" >&6
20964 else
20965   cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971 #include <sys/types.h>
20972 #ifdef HAVE_SYS_PARAM_H
20973 # include <sys/param.h>
20974 #endif
20975 #ifdef HAVE_SYS_MOUNT_H
20976 # include <sys/mount.h>
20977 #endif
20978 #ifdef HAVE_SYS_VFS_H
20979 # include <sys/vfs.h>
20980 #endif
20981 #ifdef HAVE_SYS_STATFS_H
20982 # include <sys/statfs.h>
20983 #endif
20984
20985 int
20986 main ()
20987 {
20988 static struct statfs ac_aggr;
20989 if (ac_aggr.f_frsize)
20990 return 0;
20991   ;
20992   return 0;
20993 }
20994 _ACEOF
20995 rm -f conftest.$ac_objext
20996 if { (ac_try="$ac_compile"
20997 case "(($ac_try" in
20998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999   *) ac_try_echo=$ac_try;;
21000 esac
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002   (eval "$ac_compile") 2>conftest.er1
21003   ac_status=$?
21004   grep -v '^ *+' conftest.er1 >conftest.err
21005   rm -f conftest.er1
21006   cat conftest.err >&5
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); } &&
21009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21010   { (case "(($ac_try" in
21011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012   *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015   (eval "$ac_try") 2>&5
21016   ac_status=$?
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); }; } &&
21019          { ac_try='test -s conftest.$ac_objext'
21020   { (case "(($ac_try" in
21021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022   *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025   (eval "$ac_try") 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; }; then
21029   ac_cv_member_struct_statfs_f_frsize=yes
21030 else
21031   echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21033
21034         cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h.  */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h.  */
21040 #include <sys/types.h>
21041 #ifdef HAVE_SYS_PARAM_H
21042 # include <sys/param.h>
21043 #endif
21044 #ifdef HAVE_SYS_MOUNT_H
21045 # include <sys/mount.h>
21046 #endif
21047 #ifdef HAVE_SYS_VFS_H
21048 # include <sys/vfs.h>
21049 #endif
21050 #ifdef HAVE_SYS_STATFS_H
21051 # include <sys/statfs.h>
21052 #endif
21053
21054 int
21055 main ()
21056 {
21057 static struct statfs ac_aggr;
21058 if (sizeof ac_aggr.f_frsize)
21059 return 0;
21060   ;
21061   return 0;
21062 }
21063 _ACEOF
21064 rm -f conftest.$ac_objext
21065 if { (ac_try="$ac_compile"
21066 case "(($ac_try" in
21067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068   *) ac_try_echo=$ac_try;;
21069 esac
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071   (eval "$ac_compile") 2>conftest.er1
21072   ac_status=$?
21073   grep -v '^ *+' conftest.er1 >conftest.err
21074   rm -f conftest.er1
21075   cat conftest.err >&5
21076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077   (exit $ac_status); } &&
21078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21079   { (case "(($ac_try" in
21080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081   *) ac_try_echo=$ac_try;;
21082 esac
21083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084   (eval "$ac_try") 2>&5
21085   ac_status=$?
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); }; } &&
21088          { ac_try='test -s conftest.$ac_objext'
21089   { (case "(($ac_try" in
21090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091   *) ac_try_echo=$ac_try;;
21092 esac
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094   (eval "$ac_try") 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; }; then
21098   ac_cv_member_struct_statfs_f_frsize=yes
21099 else
21100   echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21102
21103         ac_cv_member_struct_statfs_f_frsize=no
21104 fi
21105
21106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107 fi
21108
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 fi
21111 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21112 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
21113 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21114
21115 cat >>confdefs.h <<_ACEOF
21116 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
21117 _ACEOF
21118
21119
21120 fi
21121 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21122 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
21123 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21124   echo $ECHO_N "(cached) $ECHO_C" >&6
21125 else
21126   cat >conftest.$ac_ext <<_ACEOF
21127 /* confdefs.h.  */
21128 _ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h.  */
21132 #include <sys/types.h>
21133 #ifdef HAVE_SYS_PARAM_H
21134 # include <sys/param.h>
21135 #endif
21136 #ifdef HAVE_SYS_MOUNT_H
21137 # include <sys/mount.h>
21138 #endif
21139 #ifdef HAVE_SYS_VFS_H
21140 # include <sys/vfs.h>
21141 #endif
21142 #ifdef HAVE_SYS_STATFS_H
21143 # include <sys/statfs.h>
21144 #endif
21145
21146 int
21147 main ()
21148 {
21149 static struct statfs ac_aggr;
21150 if (ac_aggr.f_ffree)
21151 return 0;
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext
21157 if { (ac_try="$ac_compile"
21158 case "(($ac_try" in
21159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160   *) ac_try_echo=$ac_try;;
21161 esac
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163   (eval "$ac_compile") 2>conftest.er1
21164   ac_status=$?
21165   grep -v '^ *+' conftest.er1 >conftest.err
21166   rm -f conftest.er1
21167   cat conftest.err >&5
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); } &&
21170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21171   { (case "(($ac_try" in
21172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173   *) ac_try_echo=$ac_try;;
21174 esac
21175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21176   (eval "$ac_try") 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); }; } &&
21180          { ac_try='test -s conftest.$ac_objext'
21181   { (case "(($ac_try" in
21182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183   *) ac_try_echo=$ac_try;;
21184 esac
21185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21186   (eval "$ac_try") 2>&5
21187   ac_status=$?
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); }; }; then
21190   ac_cv_member_struct_statfs_f_ffree=yes
21191 else
21192   echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21194
21195         cat >conftest.$ac_ext <<_ACEOF
21196 /* confdefs.h.  */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h.  */
21201 #include <sys/types.h>
21202 #ifdef HAVE_SYS_PARAM_H
21203 # include <sys/param.h>
21204 #endif
21205 #ifdef HAVE_SYS_MOUNT_H
21206 # include <sys/mount.h>
21207 #endif
21208 #ifdef HAVE_SYS_VFS_H
21209 # include <sys/vfs.h>
21210 #endif
21211 #ifdef HAVE_SYS_STATFS_H
21212 # include <sys/statfs.h>
21213 #endif
21214
21215 int
21216 main ()
21217 {
21218 static struct statfs ac_aggr;
21219 if (sizeof ac_aggr.f_ffree)
21220 return 0;
21221   ;
21222   return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229   *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232   (eval "$ac_compile") 2>conftest.er1
21233   ac_status=$?
21234   grep -v '^ *+' conftest.er1 >conftest.err
21235   rm -f conftest.er1
21236   cat conftest.err >&5
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); } &&
21239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21240   { (case "(($ac_try" in
21241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242   *) ac_try_echo=$ac_try;;
21243 esac
21244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245   (eval "$ac_try") 2>&5
21246   ac_status=$?
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); }; } &&
21249          { ac_try='test -s conftest.$ac_objext'
21250   { (case "(($ac_try" in
21251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252   *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255   (eval "$ac_try") 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; }; then
21259   ac_cv_member_struct_statfs_f_ffree=yes
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264         ac_cv_member_struct_statfs_f_ffree=no
21265 fi
21266
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268 fi
21269
21270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21271 fi
21272 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21273 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
21274 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21275
21276 cat >>confdefs.h <<_ACEOF
21277 #define HAVE_STRUCT_STATFS_F_FFREE 1
21278 _ACEOF
21279
21280
21281 fi
21282 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21283 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
21284 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21285   echo $ECHO_N "(cached) $ECHO_C" >&6
21286 else
21287   cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h.  */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h.  */
21293 #include <sys/types.h>
21294 #ifdef HAVE_SYS_PARAM_H
21295 # include <sys/param.h>
21296 #endif
21297 #ifdef HAVE_SYS_MOUNT_H
21298 # include <sys/mount.h>
21299 #endif
21300 #ifdef HAVE_SYS_VFS_H
21301 # include <sys/vfs.h>
21302 #endif
21303 #ifdef HAVE_SYS_STATFS_H
21304 # include <sys/statfs.h>
21305 #endif
21306
21307 int
21308 main ()
21309 {
21310 static struct statfs ac_aggr;
21311 if (ac_aggr.f_favail)
21312 return 0;
21313   ;
21314   return 0;
21315 }
21316 _ACEOF
21317 rm -f conftest.$ac_objext
21318 if { (ac_try="$ac_compile"
21319 case "(($ac_try" in
21320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321   *) ac_try_echo=$ac_try;;
21322 esac
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324   (eval "$ac_compile") 2>conftest.er1
21325   ac_status=$?
21326   grep -v '^ *+' conftest.er1 >conftest.err
21327   rm -f conftest.er1
21328   cat conftest.err >&5
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); } &&
21331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21332   { (case "(($ac_try" in
21333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334   *) ac_try_echo=$ac_try;;
21335 esac
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337   (eval "$ac_try") 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); }; } &&
21341          { ac_try='test -s conftest.$ac_objext'
21342   { (case "(($ac_try" in
21343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344   *) ac_try_echo=$ac_try;;
21345 esac
21346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21347   (eval "$ac_try") 2>&5
21348   ac_status=$?
21349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); }; }; then
21351   ac_cv_member_struct_statfs_f_favail=yes
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356         cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h.  */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h.  */
21362 #include <sys/types.h>
21363 #ifdef HAVE_SYS_PARAM_H
21364 # include <sys/param.h>
21365 #endif
21366 #ifdef HAVE_SYS_MOUNT_H
21367 # include <sys/mount.h>
21368 #endif
21369 #ifdef HAVE_SYS_VFS_H
21370 # include <sys/vfs.h>
21371 #endif
21372 #ifdef HAVE_SYS_STATFS_H
21373 # include <sys/statfs.h>
21374 #endif
21375
21376 int
21377 main ()
21378 {
21379 static struct statfs ac_aggr;
21380 if (sizeof ac_aggr.f_favail)
21381 return 0;
21382   ;
21383   return 0;
21384 }
21385 _ACEOF
21386 rm -f conftest.$ac_objext
21387 if { (ac_try="$ac_compile"
21388 case "(($ac_try" in
21389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390   *) ac_try_echo=$ac_try;;
21391 esac
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393   (eval "$ac_compile") 2>conftest.er1
21394   ac_status=$?
21395   grep -v '^ *+' conftest.er1 >conftest.err
21396   rm -f conftest.er1
21397   cat conftest.err >&5
21398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399   (exit $ac_status); } &&
21400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21401   { (case "(($ac_try" in
21402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403   *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406   (eval "$ac_try") 2>&5
21407   ac_status=$?
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); }; } &&
21410          { ac_try='test -s conftest.$ac_objext'
21411   { (case "(($ac_try" in
21412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413   *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416   (eval "$ac_try") 2>&5
21417   ac_status=$?
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); }; }; then
21420   ac_cv_member_struct_statfs_f_favail=yes
21421 else
21422   echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425         ac_cv_member_struct_statfs_f_favail=no
21426 fi
21427
21428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21429 fi
21430
21431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21432 fi
21433 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21434 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
21435 if test $ac_cv_member_struct_statfs_f_favail = yes; then
21436
21437 cat >>confdefs.h <<_ACEOF
21438 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
21439 _ACEOF
21440
21441
21442 fi
21443 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21444 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
21445 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21446   echo $ECHO_N "(cached) $ECHO_C" >&6
21447 else
21448   cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h.  */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h.  */
21454 #include <sys/types.h>
21455 #ifdef HAVE_SYS_PARAM_H
21456 # include <sys/param.h>
21457 #endif
21458 #ifdef HAVE_SYS_MOUNT_H
21459 # include <sys/mount.h>
21460 #endif
21461 #ifdef HAVE_SYS_VFS_H
21462 # include <sys/vfs.h>
21463 #endif
21464 #ifdef HAVE_SYS_STATFS_H
21465 # include <sys/statfs.h>
21466 #endif
21467
21468 int
21469 main ()
21470 {
21471 static struct statfs ac_aggr;
21472 if (ac_aggr.f_namelen)
21473 return 0;
21474   ;
21475   return 0;
21476 }
21477 _ACEOF
21478 rm -f conftest.$ac_objext
21479 if { (ac_try="$ac_compile"
21480 case "(($ac_try" in
21481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482   *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485   (eval "$ac_compile") 2>conftest.er1
21486   ac_status=$?
21487   grep -v '^ *+' conftest.er1 >conftest.err
21488   rm -f conftest.er1
21489   cat conftest.err >&5
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); } &&
21492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21493   { (case "(($ac_try" in
21494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495   *) ac_try_echo=$ac_try;;
21496 esac
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498   (eval "$ac_try") 2>&5
21499   ac_status=$?
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); }; } &&
21502          { ac_try='test -s conftest.$ac_objext'
21503   { (case "(($ac_try" in
21504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505   *) ac_try_echo=$ac_try;;
21506 esac
21507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21508   (eval "$ac_try") 2>&5
21509   ac_status=$?
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); }; }; then
21512   ac_cv_member_struct_statfs_f_namelen=yes
21513 else
21514   echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517         cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h.  */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h.  */
21523 #include <sys/types.h>
21524 #ifdef HAVE_SYS_PARAM_H
21525 # include <sys/param.h>
21526 #endif
21527 #ifdef HAVE_SYS_MOUNT_H
21528 # include <sys/mount.h>
21529 #endif
21530 #ifdef HAVE_SYS_VFS_H
21531 # include <sys/vfs.h>
21532 #endif
21533 #ifdef HAVE_SYS_STATFS_H
21534 # include <sys/statfs.h>
21535 #endif
21536
21537 int
21538 main ()
21539 {
21540 static struct statfs ac_aggr;
21541 if (sizeof ac_aggr.f_namelen)
21542 return 0;
21543   ;
21544   return 0;
21545 }
21546 _ACEOF
21547 rm -f conftest.$ac_objext
21548 if { (ac_try="$ac_compile"
21549 case "(($ac_try" in
21550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551   *) ac_try_echo=$ac_try;;
21552 esac
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554   (eval "$ac_compile") 2>conftest.er1
21555   ac_status=$?
21556   grep -v '^ *+' conftest.er1 >conftest.err
21557   rm -f conftest.er1
21558   cat conftest.err >&5
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); } &&
21561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21562   { (case "(($ac_try" in
21563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564   *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567   (eval "$ac_try") 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; } &&
21571          { ac_try='test -s conftest.$ac_objext'
21572   { (case "(($ac_try" in
21573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574   *) ac_try_echo=$ac_try;;
21575 esac
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577   (eval "$ac_try") 2>&5
21578   ac_status=$?
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); }; }; then
21581   ac_cv_member_struct_statfs_f_namelen=yes
21582 else
21583   echo "$as_me: failed program was:" >&5
21584 sed 's/^/| /' conftest.$ac_ext >&5
21585
21586         ac_cv_member_struct_statfs_f_namelen=no
21587 fi
21588
21589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590 fi
21591
21592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21593 fi
21594 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21595 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
21596 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21597
21598 cat >>confdefs.h <<_ACEOF
21599 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
21600 _ACEOF
21601
21602
21603 fi
21604
21605
21606 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21607 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
21608 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21609   echo $ECHO_N "(cached) $ECHO_C" >&6
21610 else
21611   cat >conftest.$ac_ext <<_ACEOF
21612 /* confdefs.h.  */
21613 _ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h.  */
21617 #ifdef HAVE_SYS_STATVFS_H
21618 #include <sys/statvfs.h>
21619 #endif
21620
21621 int
21622 main ()
21623 {
21624 static struct statvfs ac_aggr;
21625 if (ac_aggr.f_blocks)
21626 return 0;
21627   ;
21628   return 0;
21629 }
21630 _ACEOF
21631 rm -f conftest.$ac_objext
21632 if { (ac_try="$ac_compile"
21633 case "(($ac_try" in
21634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635   *) ac_try_echo=$ac_try;;
21636 esac
21637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638   (eval "$ac_compile") 2>conftest.er1
21639   ac_status=$?
21640   grep -v '^ *+' conftest.er1 >conftest.err
21641   rm -f conftest.er1
21642   cat conftest.err >&5
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); } &&
21645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21646   { (case "(($ac_try" in
21647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648   *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651   (eval "$ac_try") 2>&5
21652   ac_status=$?
21653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654   (exit $ac_status); }; } &&
21655          { ac_try='test -s conftest.$ac_objext'
21656   { (case "(($ac_try" in
21657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658   *) ac_try_echo=$ac_try;;
21659 esac
21660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661   (eval "$ac_try") 2>&5
21662   ac_status=$?
21663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664   (exit $ac_status); }; }; then
21665   ac_cv_member_struct_statvfs_f_blocks=yes
21666 else
21667   echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21669
21670         cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h.  */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h.  */
21676 #ifdef HAVE_SYS_STATVFS_H
21677 #include <sys/statvfs.h>
21678 #endif
21679
21680 int
21681 main ()
21682 {
21683 static struct statvfs ac_aggr;
21684 if (sizeof ac_aggr.f_blocks)
21685 return 0;
21686   ;
21687   return 0;
21688 }
21689 _ACEOF
21690 rm -f conftest.$ac_objext
21691 if { (ac_try="$ac_compile"
21692 case "(($ac_try" in
21693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694   *) ac_try_echo=$ac_try;;
21695 esac
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697   (eval "$ac_compile") 2>conftest.er1
21698   ac_status=$?
21699   grep -v '^ *+' conftest.er1 >conftest.err
21700   rm -f conftest.er1
21701   cat conftest.err >&5
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); } &&
21704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21705   { (case "(($ac_try" in
21706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707   *) ac_try_echo=$ac_try;;
21708 esac
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710   (eval "$ac_try") 2>&5
21711   ac_status=$?
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); }; } &&
21714          { ac_try='test -s conftest.$ac_objext'
21715   { (case "(($ac_try" in
21716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717   *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720   (eval "$ac_try") 2>&5
21721   ac_status=$?
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); }; }; then
21724   ac_cv_member_struct_statvfs_f_blocks=yes
21725 else
21726   echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21728
21729         ac_cv_member_struct_statvfs_f_blocks=no
21730 fi
21731
21732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21733 fi
21734
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736 fi
21737 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
21738 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
21739 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
21740
21741 cat >>confdefs.h <<_ACEOF
21742 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
21743 _ACEOF
21744
21745
21746 fi
21747
21748
21749 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
21750 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
21751 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
21752   echo $ECHO_N "(cached) $ECHO_C" >&6
21753 else
21754   cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h.  */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h.  */
21760 #include <sys/types.h>
21761 #ifdef HAVE_SYS_SOCKET_H
21762 # include <sys/socket.h>
21763 #endif
21764 #ifdef HAVE_SYS_UN_H
21765 # include <sys/un.h>
21766 #endif
21767
21768 int
21769 main ()
21770 {
21771 static struct msghdr ac_aggr;
21772 if (ac_aggr.msg_accrights)
21773 return 0;
21774   ;
21775   return 0;
21776 }
21777 _ACEOF
21778 rm -f conftest.$ac_objext
21779 if { (ac_try="$ac_compile"
21780 case "(($ac_try" in
21781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782   *) ac_try_echo=$ac_try;;
21783 esac
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785   (eval "$ac_compile") 2>conftest.er1
21786   ac_status=$?
21787   grep -v '^ *+' conftest.er1 >conftest.err
21788   rm -f conftest.er1
21789   cat conftest.err >&5
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } &&
21792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21793   { (case "(($ac_try" in
21794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795   *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798   (eval "$ac_try") 2>&5
21799   ac_status=$?
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); }; } &&
21802          { ac_try='test -s conftest.$ac_objext'
21803   { (case "(($ac_try" in
21804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805   *) ac_try_echo=$ac_try;;
21806 esac
21807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21808   (eval "$ac_try") 2>&5
21809   ac_status=$?
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); }; }; then
21812   ac_cv_member_struct_msghdr_msg_accrights=yes
21813 else
21814   echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21816
21817         cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h.  */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h.  */
21823 #include <sys/types.h>
21824 #ifdef HAVE_SYS_SOCKET_H
21825 # include <sys/socket.h>
21826 #endif
21827 #ifdef HAVE_SYS_UN_H
21828 # include <sys/un.h>
21829 #endif
21830
21831 int
21832 main ()
21833 {
21834 static struct msghdr ac_aggr;
21835 if (sizeof ac_aggr.msg_accrights)
21836 return 0;
21837   ;
21838   return 0;
21839 }
21840 _ACEOF
21841 rm -f conftest.$ac_objext
21842 if { (ac_try="$ac_compile"
21843 case "(($ac_try" in
21844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845   *) ac_try_echo=$ac_try;;
21846 esac
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848   (eval "$ac_compile") 2>conftest.er1
21849   ac_status=$?
21850   grep -v '^ *+' conftest.er1 >conftest.err
21851   rm -f conftest.er1
21852   cat conftest.err >&5
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } &&
21855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21856   { (case "(($ac_try" in
21857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858   *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861   (eval "$ac_try") 2>&5
21862   ac_status=$?
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); }; } &&
21865          { ac_try='test -s conftest.$ac_objext'
21866   { (case "(($ac_try" in
21867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868   *) ac_try_echo=$ac_try;;
21869 esac
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871   (eval "$ac_try") 2>&5
21872   ac_status=$?
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); }; }; then
21875   ac_cv_member_struct_msghdr_msg_accrights=yes
21876 else
21877   echo "$as_me: failed program was:" >&5
21878 sed 's/^/| /' conftest.$ac_ext >&5
21879
21880         ac_cv_member_struct_msghdr_msg_accrights=no
21881 fi
21882
21883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21884 fi
21885
21886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21887 fi
21888 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
21889 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
21890 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
21891
21892 cat >>confdefs.h <<_ACEOF
21893 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
21894 _ACEOF
21895
21896
21897 fi
21898 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
21899 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
21900 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
21901   echo $ECHO_N "(cached) $ECHO_C" >&6
21902 else
21903   cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h.  */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h.  */
21909 #include <sys/types.h>
21910 #ifdef HAVE_SYS_SOCKET_H
21911 # include <sys/socket.h>
21912 #endif
21913 #ifdef HAVE_SYS_UN_H
21914 # include <sys/un.h>
21915 #endif
21916
21917 int
21918 main ()
21919 {
21920 static struct sockaddr ac_aggr;
21921 if (ac_aggr.sa_len)
21922 return 0;
21923   ;
21924   return 0;
21925 }
21926 _ACEOF
21927 rm -f conftest.$ac_objext
21928 if { (ac_try="$ac_compile"
21929 case "(($ac_try" in
21930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931   *) ac_try_echo=$ac_try;;
21932 esac
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934   (eval "$ac_compile") 2>conftest.er1
21935   ac_status=$?
21936   grep -v '^ *+' conftest.er1 >conftest.err
21937   rm -f conftest.er1
21938   cat conftest.err >&5
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); } &&
21941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21942   { (case "(($ac_try" in
21943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944   *) ac_try_echo=$ac_try;;
21945 esac
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947   (eval "$ac_try") 2>&5
21948   ac_status=$?
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); }; } &&
21951          { ac_try='test -s conftest.$ac_objext'
21952   { (case "(($ac_try" in
21953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954   *) ac_try_echo=$ac_try;;
21955 esac
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957   (eval "$ac_try") 2>&5
21958   ac_status=$?
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); }; }; then
21961   ac_cv_member_struct_sockaddr_sa_len=yes
21962 else
21963   echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21965
21966         cat >conftest.$ac_ext <<_ACEOF
21967 /* confdefs.h.  */
21968 _ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h.  */
21972 #include <sys/types.h>
21973 #ifdef HAVE_SYS_SOCKET_H
21974 # include <sys/socket.h>
21975 #endif
21976 #ifdef HAVE_SYS_UN_H
21977 # include <sys/un.h>
21978 #endif
21979
21980 int
21981 main ()
21982 {
21983 static struct sockaddr ac_aggr;
21984 if (sizeof ac_aggr.sa_len)
21985 return 0;
21986   ;
21987   return 0;
21988 }
21989 _ACEOF
21990 rm -f conftest.$ac_objext
21991 if { (ac_try="$ac_compile"
21992 case "(($ac_try" in
21993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994   *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997   (eval "$ac_compile") 2>conftest.er1
21998   ac_status=$?
21999   grep -v '^ *+' conftest.er1 >conftest.err
22000   rm -f conftest.er1
22001   cat conftest.err >&5
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); } &&
22004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22005   { (case "(($ac_try" in
22006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007   *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010   (eval "$ac_try") 2>&5
22011   ac_status=$?
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); }; } &&
22014          { ac_try='test -s conftest.$ac_objext'
22015   { (case "(($ac_try" in
22016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017   *) ac_try_echo=$ac_try;;
22018 esac
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020   (eval "$ac_try") 2>&5
22021   ac_status=$?
22022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023   (exit $ac_status); }; }; then
22024   ac_cv_member_struct_sockaddr_sa_len=yes
22025 else
22026   echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029         ac_cv_member_struct_sockaddr_sa_len=no
22030 fi
22031
22032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 fi
22034
22035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22036 fi
22037 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22038 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22039 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22040
22041 cat >>confdefs.h <<_ACEOF
22042 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22043 _ACEOF
22044
22045
22046 fi
22047 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22048 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
22049 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22050   echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052   cat >conftest.$ac_ext <<_ACEOF
22053 /* confdefs.h.  */
22054 _ACEOF
22055 cat confdefs.h >>conftest.$ac_ext
22056 cat >>conftest.$ac_ext <<_ACEOF
22057 /* end confdefs.h.  */
22058 #include <sys/types.h>
22059 #ifdef HAVE_SYS_SOCKET_H
22060 # include <sys/socket.h>
22061 #endif
22062 #ifdef HAVE_SYS_UN_H
22063 # include <sys/un.h>
22064 #endif
22065
22066 int
22067 main ()
22068 {
22069 static struct sockaddr_un ac_aggr;
22070 if (ac_aggr.sun_len)
22071 return 0;
22072   ;
22073   return 0;
22074 }
22075 _ACEOF
22076 rm -f conftest.$ac_objext
22077 if { (ac_try="$ac_compile"
22078 case "(($ac_try" in
22079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080   *) ac_try_echo=$ac_try;;
22081 esac
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083   (eval "$ac_compile") 2>conftest.er1
22084   ac_status=$?
22085   grep -v '^ *+' conftest.er1 >conftest.err
22086   rm -f conftest.er1
22087   cat conftest.err >&5
22088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089   (exit $ac_status); } &&
22090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22091   { (case "(($ac_try" in
22092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093   *) ac_try_echo=$ac_try;;
22094 esac
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096   (eval "$ac_try") 2>&5
22097   ac_status=$?
22098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099   (exit $ac_status); }; } &&
22100          { ac_try='test -s conftest.$ac_objext'
22101   { (case "(($ac_try" in
22102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103   *) ac_try_echo=$ac_try;;
22104 esac
22105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106   (eval "$ac_try") 2>&5
22107   ac_status=$?
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); }; }; then
22110   ac_cv_member_struct_sockaddr_un_sun_len=yes
22111 else
22112   echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22114
22115         cat >conftest.$ac_ext <<_ACEOF
22116 /* confdefs.h.  */
22117 _ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h.  */
22121 #include <sys/types.h>
22122 #ifdef HAVE_SYS_SOCKET_H
22123 # include <sys/socket.h>
22124 #endif
22125 #ifdef HAVE_SYS_UN_H
22126 # include <sys/un.h>
22127 #endif
22128
22129 int
22130 main ()
22131 {
22132 static struct sockaddr_un ac_aggr;
22133 if (sizeof ac_aggr.sun_len)
22134 return 0;
22135   ;
22136   return 0;
22137 }
22138 _ACEOF
22139 rm -f conftest.$ac_objext
22140 if { (ac_try="$ac_compile"
22141 case "(($ac_try" in
22142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22143   *) ac_try_echo=$ac_try;;
22144 esac
22145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22146   (eval "$ac_compile") 2>conftest.er1
22147   ac_status=$?
22148   grep -v '^ *+' conftest.er1 >conftest.err
22149   rm -f conftest.er1
22150   cat conftest.err >&5
22151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152   (exit $ac_status); } &&
22153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22154   { (case "(($ac_try" in
22155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156   *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159   (eval "$ac_try") 2>&5
22160   ac_status=$?
22161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); }; } &&
22163          { ac_try='test -s conftest.$ac_objext'
22164   { (case "(($ac_try" in
22165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166   *) ac_try_echo=$ac_try;;
22167 esac
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169   (eval "$ac_try") 2>&5
22170   ac_status=$?
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); }; }; then
22173   ac_cv_member_struct_sockaddr_un_sun_len=yes
22174 else
22175   echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22177
22178         ac_cv_member_struct_sockaddr_un_sun_len=no
22179 fi
22180
22181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182 fi
22183
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185 fi
22186 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22187 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
22188 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22189
22190 cat >>confdefs.h <<_ACEOF
22191 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22192 _ACEOF
22193
22194
22195 fi
22196
22197
22198 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22199 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
22200 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22201   echo $ECHO_N "(cached) $ECHO_C" >&6
22202 else
22203   cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h.  */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h.  */
22209 #include <sys/types.h>
22210 #ifdef HAVE_SCSI_SG_H
22211 #include <scsi/sg.h>
22212 #endif
22213
22214 int
22215 main ()
22216 {
22217 static scsireq_t ac_aggr;
22218 if (ac_aggr.cmd)
22219 return 0;
22220   ;
22221   return 0;
22222 }
22223 _ACEOF
22224 rm -f conftest.$ac_objext
22225 if { (ac_try="$ac_compile"
22226 case "(($ac_try" in
22227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228   *) ac_try_echo=$ac_try;;
22229 esac
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231   (eval "$ac_compile") 2>conftest.er1
22232   ac_status=$?
22233   grep -v '^ *+' conftest.er1 >conftest.err
22234   rm -f conftest.er1
22235   cat conftest.err >&5
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); } &&
22238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22239   { (case "(($ac_try" in
22240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241   *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244   (eval "$ac_try") 2>&5
22245   ac_status=$?
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); }; } &&
22248          { ac_try='test -s conftest.$ac_objext'
22249   { (case "(($ac_try" in
22250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251   *) ac_try_echo=$ac_try;;
22252 esac
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254   (eval "$ac_try") 2>&5
22255   ac_status=$?
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); }; }; then
22258   ac_cv_member_scsireq_t_cmd=yes
22259 else
22260   echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22262
22263         cat >conftest.$ac_ext <<_ACEOF
22264 /* confdefs.h.  */
22265 _ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h.  */
22269 #include <sys/types.h>
22270 #ifdef HAVE_SCSI_SG_H
22271 #include <scsi/sg.h>
22272 #endif
22273
22274 int
22275 main ()
22276 {
22277 static scsireq_t ac_aggr;
22278 if (sizeof ac_aggr.cmd)
22279 return 0;
22280   ;
22281   return 0;
22282 }
22283 _ACEOF
22284 rm -f conftest.$ac_objext
22285 if { (ac_try="$ac_compile"
22286 case "(($ac_try" in
22287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288   *) ac_try_echo=$ac_try;;
22289 esac
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291   (eval "$ac_compile") 2>conftest.er1
22292   ac_status=$?
22293   grep -v '^ *+' conftest.er1 >conftest.err
22294   rm -f conftest.er1
22295   cat conftest.err >&5
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); } &&
22298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22299   { (case "(($ac_try" in
22300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301   *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304   (eval "$ac_try") 2>&5
22305   ac_status=$?
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); }; } &&
22308          { ac_try='test -s conftest.$ac_objext'
22309   { (case "(($ac_try" in
22310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311   *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314   (eval "$ac_try") 2>&5
22315   ac_status=$?
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; }; then
22318   ac_cv_member_scsireq_t_cmd=yes
22319 else
22320   echo "$as_me: failed program was:" >&5
22321 sed 's/^/| /' conftest.$ac_ext >&5
22322
22323         ac_cv_member_scsireq_t_cmd=no
22324 fi
22325
22326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22327 fi
22328
22329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22330 fi
22331 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22332 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
22333 if test $ac_cv_member_scsireq_t_cmd = yes; then
22334
22335 cat >>confdefs.h <<_ACEOF
22336 #define HAVE_SCSIREQ_T_CMD 1
22337 _ACEOF
22338
22339
22340 fi
22341 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22342 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
22343 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22344   echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346   cat >conftest.$ac_ext <<_ACEOF
22347 /* confdefs.h.  */
22348 _ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h.  */
22352 #include <sys/types.h>
22353 #ifdef HAVE_SCSI_SG_H
22354 #include <scsi/sg.h>
22355 #endif
22356
22357 int
22358 main ()
22359 {
22360 static sg_io_hdr_t ac_aggr;
22361 if (ac_aggr.interface_id)
22362 return 0;
22363   ;
22364   return 0;
22365 }
22366 _ACEOF
22367 rm -f conftest.$ac_objext
22368 if { (ac_try="$ac_compile"
22369 case "(($ac_try" in
22370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371   *) ac_try_echo=$ac_try;;
22372 esac
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374   (eval "$ac_compile") 2>conftest.er1
22375   ac_status=$?
22376   grep -v '^ *+' conftest.er1 >conftest.err
22377   rm -f conftest.er1
22378   cat conftest.err >&5
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); } &&
22381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22382   { (case "(($ac_try" in
22383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384   *) ac_try_echo=$ac_try;;
22385 esac
22386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387   (eval "$ac_try") 2>&5
22388   ac_status=$?
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); }; } &&
22391          { ac_try='test -s conftest.$ac_objext'
22392   { (case "(($ac_try" in
22393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394   *) ac_try_echo=$ac_try;;
22395 esac
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397   (eval "$ac_try") 2>&5
22398   ac_status=$?
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); }; }; then
22401   ac_cv_member_sg_io_hdr_t_interface_id=yes
22402 else
22403   echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.$ac_ext >&5
22405
22406         cat >conftest.$ac_ext <<_ACEOF
22407 /* confdefs.h.  */
22408 _ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h.  */
22412 #include <sys/types.h>
22413 #ifdef HAVE_SCSI_SG_H
22414 #include <scsi/sg.h>
22415 #endif
22416
22417 int
22418 main ()
22419 {
22420 static sg_io_hdr_t ac_aggr;
22421 if (sizeof ac_aggr.interface_id)
22422 return 0;
22423   ;
22424   return 0;
22425 }
22426 _ACEOF
22427 rm -f conftest.$ac_objext
22428 if { (ac_try="$ac_compile"
22429 case "(($ac_try" in
22430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431   *) ac_try_echo=$ac_try;;
22432 esac
22433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22434   (eval "$ac_compile") 2>conftest.er1
22435   ac_status=$?
22436   grep -v '^ *+' conftest.er1 >conftest.err
22437   rm -f conftest.er1
22438   cat conftest.err >&5
22439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); } &&
22441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22442   { (case "(($ac_try" in
22443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22444   *) ac_try_echo=$ac_try;;
22445 esac
22446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22447   (eval "$ac_try") 2>&5
22448   ac_status=$?
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); }; } &&
22451          { ac_try='test -s conftest.$ac_objext'
22452   { (case "(($ac_try" in
22453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454   *) ac_try_echo=$ac_try;;
22455 esac
22456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22457   (eval "$ac_try") 2>&5
22458   ac_status=$?
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); }; }; then
22461   ac_cv_member_sg_io_hdr_t_interface_id=yes
22462 else
22463   echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22465
22466         ac_cv_member_sg_io_hdr_t_interface_id=no
22467 fi
22468
22469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22470 fi
22471
22472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22473 fi
22474 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22475 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
22476 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22477
22478 cat >>confdefs.h <<_ACEOF
22479 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22480 _ACEOF
22481
22482
22483 fi
22484
22485
22486 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22487 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
22488 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22489   echo $ECHO_N "(cached) $ECHO_C" >&6
22490 else
22491   cat >conftest.$ac_ext <<_ACEOF
22492 /* confdefs.h.  */
22493 _ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h.  */
22497 #include <signal.h>
22498
22499 int
22500 main ()
22501 {
22502 static siginfo_t ac_aggr;
22503 if (ac_aggr.si_fd)
22504 return 0;
22505   ;
22506   return 0;
22507 }
22508 _ACEOF
22509 rm -f conftest.$ac_objext
22510 if { (ac_try="$ac_compile"
22511 case "(($ac_try" in
22512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22513   *) ac_try_echo=$ac_try;;
22514 esac
22515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22516   (eval "$ac_compile") 2>conftest.er1
22517   ac_status=$?
22518   grep -v '^ *+' conftest.er1 >conftest.err
22519   rm -f conftest.er1
22520   cat conftest.err >&5
22521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); } &&
22523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22524   { (case "(($ac_try" in
22525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526   *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529   (eval "$ac_try") 2>&5
22530   ac_status=$?
22531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532   (exit $ac_status); }; } &&
22533          { ac_try='test -s conftest.$ac_objext'
22534   { (case "(($ac_try" in
22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536   *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539   (eval "$ac_try") 2>&5
22540   ac_status=$?
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); }; }; then
22543   ac_cv_member_siginfo_t_si_fd=yes
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548         cat >conftest.$ac_ext <<_ACEOF
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554 #include <signal.h>
22555
22556 int
22557 main ()
22558 {
22559 static siginfo_t ac_aggr;
22560 if (sizeof ac_aggr.si_fd)
22561 return 0;
22562   ;
22563   return 0;
22564 }
22565 _ACEOF
22566 rm -f conftest.$ac_objext
22567 if { (ac_try="$ac_compile"
22568 case "(($ac_try" in
22569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570   *) ac_try_echo=$ac_try;;
22571 esac
22572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22573   (eval "$ac_compile") 2>conftest.er1
22574   ac_status=$?
22575   grep -v '^ *+' conftest.er1 >conftest.err
22576   rm -f conftest.er1
22577   cat conftest.err >&5
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); } &&
22580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22581   { (case "(($ac_try" in
22582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583   *) ac_try_echo=$ac_try;;
22584 esac
22585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22586   (eval "$ac_try") 2>&5
22587   ac_status=$?
22588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589   (exit $ac_status); }; } &&
22590          { ac_try='test -s conftest.$ac_objext'
22591   { (case "(($ac_try" in
22592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593   *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596   (eval "$ac_try") 2>&5
22597   ac_status=$?
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); }; }; then
22600   ac_cv_member_siginfo_t_si_fd=yes
22601 else
22602   echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22604
22605         ac_cv_member_siginfo_t_si_fd=no
22606 fi
22607
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609 fi
22610
22611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 fi
22613 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22614 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
22615 if test $ac_cv_member_siginfo_t_si_fd = yes; then
22616
22617 cat >>confdefs.h <<_ACEOF
22618 #define HAVE_SIGINFO_T_SI_FD 1
22619 _ACEOF
22620
22621
22622 fi
22623
22624
22625 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22626 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
22627 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22628   echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630   cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h.  */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h.  */
22636 #include <sys/types.h>
22637 #ifdef HAVE_SYS_MTIO_H
22638 #include <sys/mtio.h>
22639 #endif
22640
22641 int
22642 main ()
22643 {
22644 static struct mtget ac_aggr;
22645 if (ac_aggr.mt_blksiz)
22646 return 0;
22647   ;
22648   return 0;
22649 }
22650 _ACEOF
22651 rm -f conftest.$ac_objext
22652 if { (ac_try="$ac_compile"
22653 case "(($ac_try" in
22654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22655   *) ac_try_echo=$ac_try;;
22656 esac
22657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22658   (eval "$ac_compile") 2>conftest.er1
22659   ac_status=$?
22660   grep -v '^ *+' conftest.er1 >conftest.err
22661   rm -f conftest.er1
22662   cat conftest.err >&5
22663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664   (exit $ac_status); } &&
22665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22666   { (case "(($ac_try" in
22667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668   *) ac_try_echo=$ac_try;;
22669 esac
22670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22671   (eval "$ac_try") 2>&5
22672   ac_status=$?
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); }; } &&
22675          { ac_try='test -s conftest.$ac_objext'
22676   { (case "(($ac_try" in
22677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678   *) ac_try_echo=$ac_try;;
22679 esac
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681   (eval "$ac_try") 2>&5
22682   ac_status=$?
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); }; }; then
22685   ac_cv_member_struct_mtget_mt_blksiz=yes
22686 else
22687   echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690         cat >conftest.$ac_ext <<_ACEOF
22691 /* confdefs.h.  */
22692 _ACEOF
22693 cat confdefs.h >>conftest.$ac_ext
22694 cat >>conftest.$ac_ext <<_ACEOF
22695 /* end confdefs.h.  */
22696 #include <sys/types.h>
22697 #ifdef HAVE_SYS_MTIO_H
22698 #include <sys/mtio.h>
22699 #endif
22700
22701 int
22702 main ()
22703 {
22704 static struct mtget ac_aggr;
22705 if (sizeof ac_aggr.mt_blksiz)
22706 return 0;
22707   ;
22708   return 0;
22709 }
22710 _ACEOF
22711 rm -f conftest.$ac_objext
22712 if { (ac_try="$ac_compile"
22713 case "(($ac_try" in
22714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715   *) ac_try_echo=$ac_try;;
22716 esac
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718   (eval "$ac_compile") 2>conftest.er1
22719   ac_status=$?
22720   grep -v '^ *+' conftest.er1 >conftest.err
22721   rm -f conftest.er1
22722   cat conftest.err >&5
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); } &&
22725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22726   { (case "(($ac_try" in
22727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728   *) ac_try_echo=$ac_try;;
22729 esac
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731   (eval "$ac_try") 2>&5
22732   ac_status=$?
22733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734   (exit $ac_status); }; } &&
22735          { ac_try='test -s conftest.$ac_objext'
22736   { (case "(($ac_try" in
22737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738   *) ac_try_echo=$ac_try;;
22739 esac
22740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22741   (eval "$ac_try") 2>&5
22742   ac_status=$?
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); }; }; then
22745   ac_cv_member_struct_mtget_mt_blksiz=yes
22746 else
22747   echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22749
22750         ac_cv_member_struct_mtget_mt_blksiz=no
22751 fi
22752
22753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754 fi
22755
22756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22757 fi
22758 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
22759 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
22760 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
22761
22762 cat >>confdefs.h <<_ACEOF
22763 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
22764 _ACEOF
22765
22766
22767 fi
22768 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
22769 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
22770 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
22771   echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773   cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h.  */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h.  */
22779 #include <sys/types.h>
22780 #ifdef HAVE_SYS_MTIO_H
22781 #include <sys/mtio.h>
22782 #endif
22783
22784 int
22785 main ()
22786 {
22787 static struct mtget ac_aggr;
22788 if (ac_aggr.mt_gstat)
22789 return 0;
22790   ;
22791   return 0;
22792 }
22793 _ACEOF
22794 rm -f conftest.$ac_objext
22795 if { (ac_try="$ac_compile"
22796 case "(($ac_try" in
22797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798   *) ac_try_echo=$ac_try;;
22799 esac
22800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22801   (eval "$ac_compile") 2>conftest.er1
22802   ac_status=$?
22803   grep -v '^ *+' conftest.er1 >conftest.err
22804   rm -f conftest.er1
22805   cat conftest.err >&5
22806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807   (exit $ac_status); } &&
22808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22809   { (case "(($ac_try" in
22810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811   *) ac_try_echo=$ac_try;;
22812 esac
22813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22814   (eval "$ac_try") 2>&5
22815   ac_status=$?
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); }; } &&
22818          { ac_try='test -s conftest.$ac_objext'
22819   { (case "(($ac_try" in
22820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22821   *) ac_try_echo=$ac_try;;
22822 esac
22823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22824   (eval "$ac_try") 2>&5
22825   ac_status=$?
22826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827   (exit $ac_status); }; }; then
22828   ac_cv_member_struct_mtget_mt_gstat=yes
22829 else
22830   echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22832
22833         cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h.  */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h.  */
22839 #include <sys/types.h>
22840 #ifdef HAVE_SYS_MTIO_H
22841 #include <sys/mtio.h>
22842 #endif
22843
22844 int
22845 main ()
22846 {
22847 static struct mtget ac_aggr;
22848 if (sizeof ac_aggr.mt_gstat)
22849 return 0;
22850   ;
22851   return 0;
22852 }
22853 _ACEOF
22854 rm -f conftest.$ac_objext
22855 if { (ac_try="$ac_compile"
22856 case "(($ac_try" in
22857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858   *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861   (eval "$ac_compile") 2>conftest.er1
22862   ac_status=$?
22863   grep -v '^ *+' conftest.er1 >conftest.err
22864   rm -f conftest.er1
22865   cat conftest.err >&5
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); } &&
22868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22869   { (case "(($ac_try" in
22870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871   *) ac_try_echo=$ac_try;;
22872 esac
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874   (eval "$ac_try") 2>&5
22875   ac_status=$?
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); }; } &&
22878          { ac_try='test -s conftest.$ac_objext'
22879   { (case "(($ac_try" in
22880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881   *) ac_try_echo=$ac_try;;
22882 esac
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884   (eval "$ac_try") 2>&5
22885   ac_status=$?
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); }; }; then
22888   ac_cv_member_struct_mtget_mt_gstat=yes
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893         ac_cv_member_struct_mtget_mt_gstat=no
22894 fi
22895
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897 fi
22898
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 fi
22901 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
22902 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
22903 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
22904
22905 cat >>confdefs.h <<_ACEOF
22906 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
22907 _ACEOF
22908
22909
22910 fi
22911 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
22912 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
22913 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
22914   echo $ECHO_N "(cached) $ECHO_C" >&6
22915 else
22916   cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h.  */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h.  */
22922 #include <sys/types.h>
22923 #ifdef HAVE_SYS_MTIO_H
22924 #include <sys/mtio.h>
22925 #endif
22926
22927 int
22928 main ()
22929 {
22930 static struct mtget ac_aggr;
22931 if (ac_aggr.mt_blkno)
22932 return 0;
22933   ;
22934   return 0;
22935 }
22936 _ACEOF
22937 rm -f conftest.$ac_objext
22938 if { (ac_try="$ac_compile"
22939 case "(($ac_try" in
22940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941   *) ac_try_echo=$ac_try;;
22942 esac
22943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22944   (eval "$ac_compile") 2>conftest.er1
22945   ac_status=$?
22946   grep -v '^ *+' conftest.er1 >conftest.err
22947   rm -f conftest.er1
22948   cat conftest.err >&5
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); } &&
22951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22952   { (case "(($ac_try" in
22953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954   *) ac_try_echo=$ac_try;;
22955 esac
22956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22957   (eval "$ac_try") 2>&5
22958   ac_status=$?
22959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960   (exit $ac_status); }; } &&
22961          { ac_try='test -s conftest.$ac_objext'
22962   { (case "(($ac_try" in
22963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964   *) ac_try_echo=$ac_try;;
22965 esac
22966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22967   (eval "$ac_try") 2>&5
22968   ac_status=$?
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); }; }; then
22971   ac_cv_member_struct_mtget_mt_blkno=yes
22972 else
22973   echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22975
22976         cat >conftest.$ac_ext <<_ACEOF
22977 /* confdefs.h.  */
22978 _ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h.  */
22982 #include <sys/types.h>
22983 #ifdef HAVE_SYS_MTIO_H
22984 #include <sys/mtio.h>
22985 #endif
22986
22987 int
22988 main ()
22989 {
22990 static struct mtget ac_aggr;
22991 if (sizeof ac_aggr.mt_blkno)
22992 return 0;
22993   ;
22994   return 0;
22995 }
22996 _ACEOF
22997 rm -f conftest.$ac_objext
22998 if { (ac_try="$ac_compile"
22999 case "(($ac_try" in
23000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23001   *) ac_try_echo=$ac_try;;
23002 esac
23003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23004   (eval "$ac_compile") 2>conftest.er1
23005   ac_status=$?
23006   grep -v '^ *+' conftest.er1 >conftest.err
23007   rm -f conftest.er1
23008   cat conftest.err >&5
23009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010   (exit $ac_status); } &&
23011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23012   { (case "(($ac_try" in
23013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014   *) ac_try_echo=$ac_try;;
23015 esac
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017   (eval "$ac_try") 2>&5
23018   ac_status=$?
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); }; } &&
23021          { ac_try='test -s conftest.$ac_objext'
23022   { (case "(($ac_try" in
23023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23024   *) ac_try_echo=$ac_try;;
23025 esac
23026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23027   (eval "$ac_try") 2>&5
23028   ac_status=$?
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); }; }; then
23031   ac_cv_member_struct_mtget_mt_blkno=yes
23032 else
23033   echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23035
23036         ac_cv_member_struct_mtget_mt_blkno=no
23037 fi
23038
23039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040 fi
23041
23042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23043 fi
23044 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23045 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
23046 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23047
23048 cat >>confdefs.h <<_ACEOF
23049 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
23050 _ACEOF
23051
23052
23053 fi
23054
23055
23056 { echo "$as_me:$LINENO: checking for struct option.name" >&5
23057 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
23058 if test "${ac_cv_member_struct_option_name+set}" = set; then
23059   echo $ECHO_N "(cached) $ECHO_C" >&6
23060 else
23061   cat >conftest.$ac_ext <<_ACEOF
23062 /* confdefs.h.  */
23063 _ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h.  */
23067 #ifdef HAVE_GETOPT_H
23068 #include <getopt.h>
23069 #endif
23070
23071 int
23072 main ()
23073 {
23074 static struct option ac_aggr;
23075 if (ac_aggr.name)
23076 return 0;
23077   ;
23078   return 0;
23079 }
23080 _ACEOF
23081 rm -f conftest.$ac_objext
23082 if { (ac_try="$ac_compile"
23083 case "(($ac_try" in
23084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085   *) ac_try_echo=$ac_try;;
23086 esac
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088   (eval "$ac_compile") 2>conftest.er1
23089   ac_status=$?
23090   grep -v '^ *+' conftest.er1 >conftest.err
23091   rm -f conftest.er1
23092   cat conftest.err >&5
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); } &&
23095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23096   { (case "(($ac_try" in
23097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098   *) ac_try_echo=$ac_try;;
23099 esac
23100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23101   (eval "$ac_try") 2>&5
23102   ac_status=$?
23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); }; } &&
23105          { ac_try='test -s conftest.$ac_objext'
23106   { (case "(($ac_try" in
23107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108   *) ac_try_echo=$ac_try;;
23109 esac
23110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23111   (eval "$ac_try") 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); }; }; then
23115   ac_cv_member_struct_option_name=yes
23116 else
23117   echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23119
23120         cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h.  */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h.  */
23126 #ifdef HAVE_GETOPT_H
23127 #include <getopt.h>
23128 #endif
23129
23130 int
23131 main ()
23132 {
23133 static struct option ac_aggr;
23134 if (sizeof ac_aggr.name)
23135 return 0;
23136   ;
23137   return 0;
23138 }
23139 _ACEOF
23140 rm -f conftest.$ac_objext
23141 if { (ac_try="$ac_compile"
23142 case "(($ac_try" in
23143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23144   *) ac_try_echo=$ac_try;;
23145 esac
23146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23147   (eval "$ac_compile") 2>conftest.er1
23148   ac_status=$?
23149   grep -v '^ *+' conftest.er1 >conftest.err
23150   rm -f conftest.er1
23151   cat conftest.err >&5
23152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153   (exit $ac_status); } &&
23154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23155   { (case "(($ac_try" in
23156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157   *) ac_try_echo=$ac_try;;
23158 esac
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160   (eval "$ac_try") 2>&5
23161   ac_status=$?
23162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163   (exit $ac_status); }; } &&
23164          { ac_try='test -s conftest.$ac_objext'
23165   { (case "(($ac_try" in
23166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167   *) ac_try_echo=$ac_try;;
23168 esac
23169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170   (eval "$ac_try") 2>&5
23171   ac_status=$?
23172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173   (exit $ac_status); }; }; then
23174   ac_cv_member_struct_option_name=yes
23175 else
23176   echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23178
23179         ac_cv_member_struct_option_name=no
23180 fi
23181
23182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23183 fi
23184
23185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23186 fi
23187 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23188 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
23189 if test $ac_cv_member_struct_option_name = yes; then
23190
23191 cat >>confdefs.h <<_ACEOF
23192 #define HAVE_STRUCT_OPTION_NAME 1
23193 _ACEOF
23194
23195
23196 fi
23197
23198
23199 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23200 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23201 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23202   echo $ECHO_N "(cached) $ECHO_C" >&6
23203 else
23204   cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h.  */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h.  */
23210 $ac_includes_default
23211 int
23212 main ()
23213 {
23214 static struct stat ac_aggr;
23215 if (ac_aggr.st_blocks)
23216 return 0;
23217   ;
23218   return 0;
23219 }
23220 _ACEOF
23221 rm -f conftest.$ac_objext
23222 if { (ac_try="$ac_compile"
23223 case "(($ac_try" in
23224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225   *) ac_try_echo=$ac_try;;
23226 esac
23227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228   (eval "$ac_compile") 2>conftest.er1
23229   ac_status=$?
23230   grep -v '^ *+' conftest.er1 >conftest.err
23231   rm -f conftest.er1
23232   cat conftest.err >&5
23233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234   (exit $ac_status); } &&
23235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23236   { (case "(($ac_try" in
23237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238   *) ac_try_echo=$ac_try;;
23239 esac
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241   (eval "$ac_try") 2>&5
23242   ac_status=$?
23243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244   (exit $ac_status); }; } &&
23245          { ac_try='test -s conftest.$ac_objext'
23246   { (case "(($ac_try" in
23247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248   *) ac_try_echo=$ac_try;;
23249 esac
23250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23251   (eval "$ac_try") 2>&5
23252   ac_status=$?
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); }; }; then
23255   ac_cv_member_struct_stat_st_blocks=yes
23256 else
23257   echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23259
23260         cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h.  */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h.  */
23266 $ac_includes_default
23267 int
23268 main ()
23269 {
23270 static struct stat ac_aggr;
23271 if (sizeof ac_aggr.st_blocks)
23272 return 0;
23273   ;
23274   return 0;
23275 }
23276 _ACEOF
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281   *) ac_try_echo=$ac_try;;
23282 esac
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284   (eval "$ac_compile") 2>conftest.er1
23285   ac_status=$?
23286   grep -v '^ *+' conftest.er1 >conftest.err
23287   rm -f conftest.er1
23288   cat conftest.err >&5
23289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); } &&
23291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23292   { (case "(($ac_try" in
23293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294   *) ac_try_echo=$ac_try;;
23295 esac
23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297   (eval "$ac_try") 2>&5
23298   ac_status=$?
23299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300   (exit $ac_status); }; } &&
23301          { ac_try='test -s conftest.$ac_objext'
23302   { (case "(($ac_try" in
23303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23304   *) ac_try_echo=$ac_try;;
23305 esac
23306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23307   (eval "$ac_try") 2>&5
23308   ac_status=$?
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); }; }; then
23311   ac_cv_member_struct_stat_st_blocks=yes
23312 else
23313   echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23315
23316         ac_cv_member_struct_stat_st_blocks=no
23317 fi
23318
23319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23320 fi
23321
23322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23323 fi
23324 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23325 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23326 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23327
23328 cat >>confdefs.h <<_ACEOF
23329 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23330 _ACEOF
23331
23332
23333 fi
23334
23335
23336 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23337 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23338 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23339   echo $ECHO_N "(cached) $ECHO_C" >&6
23340 else
23341   cat >conftest.$ac_ext <<_ACEOF
23342 /* confdefs.h.  */
23343 _ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h.  */
23347 #ifdef HAVE_SYS_TYPES_H
23348 #include <sys/types.h>
23349 #endif
23350 #ifdef HAVE_NETINET_IN_H
23351 #include <netinet/in.h>
23352 #endif
23353
23354 int
23355 main ()
23356 {
23357 static struct sockaddr_in6 ac_aggr;
23358 if (ac_aggr.sin6_scope_id)
23359 return 0;
23360   ;
23361   return 0;
23362 }
23363 _ACEOF
23364 rm -f conftest.$ac_objext
23365 if { (ac_try="$ac_compile"
23366 case "(($ac_try" in
23367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368   *) ac_try_echo=$ac_try;;
23369 esac
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371   (eval "$ac_compile") 2>conftest.er1
23372   ac_status=$?
23373   grep -v '^ *+' conftest.er1 >conftest.err
23374   rm -f conftest.er1
23375   cat conftest.err >&5
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); } &&
23378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23379   { (case "(($ac_try" in
23380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381   *) ac_try_echo=$ac_try;;
23382 esac
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384   (eval "$ac_try") 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; } &&
23388          { ac_try='test -s conftest.$ac_objext'
23389   { (case "(($ac_try" in
23390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391   *) ac_try_echo=$ac_try;;
23392 esac
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394   (eval "$ac_try") 2>&5
23395   ac_status=$?
23396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397   (exit $ac_status); }; }; then
23398   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23399 else
23400   echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23402
23403         cat >conftest.$ac_ext <<_ACEOF
23404 /* confdefs.h.  */
23405 _ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h.  */
23409 #ifdef HAVE_SYS_TYPES_H
23410 #include <sys/types.h>
23411 #endif
23412 #ifdef HAVE_NETINET_IN_H
23413 #include <netinet/in.h>
23414 #endif
23415
23416 int
23417 main ()
23418 {
23419 static struct sockaddr_in6 ac_aggr;
23420 if (sizeof ac_aggr.sin6_scope_id)
23421 return 0;
23422   ;
23423   return 0;
23424 }
23425 _ACEOF
23426 rm -f conftest.$ac_objext
23427 if { (ac_try="$ac_compile"
23428 case "(($ac_try" in
23429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23430   *) ac_try_echo=$ac_try;;
23431 esac
23432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23433   (eval "$ac_compile") 2>conftest.er1
23434   ac_status=$?
23435   grep -v '^ *+' conftest.er1 >conftest.err
23436   rm -f conftest.er1
23437   cat conftest.err >&5
23438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439   (exit $ac_status); } &&
23440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23441   { (case "(($ac_try" in
23442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443   *) ac_try_echo=$ac_try;;
23444 esac
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446   (eval "$ac_try") 2>&5
23447   ac_status=$?
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); }; } &&
23450          { ac_try='test -s conftest.$ac_objext'
23451   { (case "(($ac_try" in
23452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23453   *) ac_try_echo=$ac_try;;
23454 esac
23455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23456   (eval "$ac_try") 2>&5
23457   ac_status=$?
23458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459   (exit $ac_status); }; }; then
23460   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23461 else
23462   echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23464
23465         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23466 fi
23467
23468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23469 fi
23470
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472 fi
23473 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23474 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23475 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23476
23477 cat >>confdefs.h <<_ACEOF
23478 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23479 _ACEOF
23480
23481
23482 fi
23483
23484
23485 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23486 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23487 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23488   echo $ECHO_N "(cached) $ECHO_C" >&6
23489 else
23490   cat >conftest.$ac_ext <<_ACEOF
23491 /* confdefs.h.  */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h.  */
23496 #ifdef HAVE_SYS_TYPES_H
23497 #include <sys/types.h>
23498 #endif
23499 #ifdef HAVE_NETINET_IN_H
23500 # include <netinet/in.h>
23501 #endif
23502 #ifdef HAVE_ARPA_NAMESER_H
23503 # include <arpa/nameser.h>
23504 #endif
23505
23506 int
23507 main ()
23508 {
23509 static ns_msg ac_aggr;
23510 if (ac_aggr._msg_ptr)
23511 return 0;
23512   ;
23513   return 0;
23514 }
23515 _ACEOF
23516 rm -f conftest.$ac_objext
23517 if { (ac_try="$ac_compile"
23518 case "(($ac_try" in
23519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23520   *) ac_try_echo=$ac_try;;
23521 esac
23522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23523   (eval "$ac_compile") 2>conftest.er1
23524   ac_status=$?
23525   grep -v '^ *+' conftest.er1 >conftest.err
23526   rm -f conftest.er1
23527   cat conftest.err >&5
23528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529   (exit $ac_status); } &&
23530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23531   { (case "(($ac_try" in
23532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533   *) ac_try_echo=$ac_try;;
23534 esac
23535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23536   (eval "$ac_try") 2>&5
23537   ac_status=$?
23538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539   (exit $ac_status); }; } &&
23540          { ac_try='test -s conftest.$ac_objext'
23541   { (case "(($ac_try" in
23542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23543   *) ac_try_echo=$ac_try;;
23544 esac
23545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23546   (eval "$ac_try") 2>&5
23547   ac_status=$?
23548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549   (exit $ac_status); }; }; then
23550   ac_cv_member_ns_msg__msg_ptr=yes
23551 else
23552   echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555         cat >conftest.$ac_ext <<_ACEOF
23556 /* confdefs.h.  */
23557 _ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h.  */
23561 #ifdef HAVE_SYS_TYPES_H
23562 #include <sys/types.h>
23563 #endif
23564 #ifdef HAVE_NETINET_IN_H
23565 # include <netinet/in.h>
23566 #endif
23567 #ifdef HAVE_ARPA_NAMESER_H
23568 # include <arpa/nameser.h>
23569 #endif
23570
23571 int
23572 main ()
23573 {
23574 static ns_msg ac_aggr;
23575 if (sizeof ac_aggr._msg_ptr)
23576 return 0;
23577   ;
23578   return 0;
23579 }
23580 _ACEOF
23581 rm -f conftest.$ac_objext
23582 if { (ac_try="$ac_compile"
23583 case "(($ac_try" in
23584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23585   *) ac_try_echo=$ac_try;;
23586 esac
23587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23588   (eval "$ac_compile") 2>conftest.er1
23589   ac_status=$?
23590   grep -v '^ *+' conftest.er1 >conftest.err
23591   rm -f conftest.er1
23592   cat conftest.err >&5
23593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594   (exit $ac_status); } &&
23595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23596   { (case "(($ac_try" in
23597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598   *) ac_try_echo=$ac_try;;
23599 esac
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601   (eval "$ac_try") 2>&5
23602   ac_status=$?
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); }; } &&
23605          { ac_try='test -s conftest.$ac_objext'
23606   { (case "(($ac_try" in
23607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608   *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611   (eval "$ac_try") 2>&5
23612   ac_status=$?
23613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614   (exit $ac_status); }; }; then
23615   ac_cv_member_ns_msg__msg_ptr=yes
23616 else
23617   echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23619
23620         ac_cv_member_ns_msg__msg_ptr=no
23621 fi
23622
23623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23624 fi
23625
23626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23627 fi
23628 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23629 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23630 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23631
23632 cat >>confdefs.h <<_ACEOF
23633 #define HAVE_NS_MSG__MSG_PTR 1
23634 _ACEOF
23635
23636
23637 fi
23638
23639
23640 { echo "$as_me:$LINENO: checking for timezone variable" >&5
23641 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
23642 if test "${ac_cv_have_timezone+set}" = set; then
23643   echo $ECHO_N "(cached) $ECHO_C" >&6
23644 else
23645   cat >conftest.$ac_ext <<_ACEOF
23646 /* confdefs.h.  */
23647 _ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h.  */
23651 #include <time.h>
23652 int
23653 main ()
23654 {
23655 timezone = 1
23656   ;
23657   return 0;
23658 }
23659 _ACEOF
23660 rm -f conftest.$ac_objext conftest$ac_exeext
23661 if { (ac_try="$ac_link"
23662 case "(($ac_try" in
23663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23664   *) ac_try_echo=$ac_try;;
23665 esac
23666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23667   (eval "$ac_link") 2>conftest.er1
23668   ac_status=$?
23669   grep -v '^ *+' conftest.er1 >conftest.err
23670   rm -f conftest.er1
23671   cat conftest.err >&5
23672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673   (exit $ac_status); } &&
23674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23675   { (case "(($ac_try" in
23676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23677   *) ac_try_echo=$ac_try;;
23678 esac
23679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23680   (eval "$ac_try") 2>&5
23681   ac_status=$?
23682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683   (exit $ac_status); }; } &&
23684          { ac_try='test -s conftest$ac_exeext'
23685   { (case "(($ac_try" in
23686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23687   *) ac_try_echo=$ac_try;;
23688 esac
23689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23690   (eval "$ac_try") 2>&5
23691   ac_status=$?
23692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693   (exit $ac_status); }; }; then
23694   ac_cv_have_timezone="yes"
23695 else
23696   echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23698
23699         ac_cv_have_timezone="no"
23700 fi
23701
23702 rm -f core conftest.err conftest.$ac_objext \
23703       conftest$ac_exeext conftest.$ac_ext
23704 fi
23705 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
23706 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
23707 if test "$ac_cv_have_timezone" = "yes"
23708 then
23709
23710 cat >>confdefs.h <<\_ACEOF
23711 #define HAVE_TIMEZONE 1
23712 _ACEOF
23713
23714 fi
23715 { echo "$as_me:$LINENO: checking for daylight variable" >&5
23716 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
23717 if test "${ac_cv_have_daylight+set}" = set; then
23718   echo $ECHO_N "(cached) $ECHO_C" >&6
23719 else
23720   cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h.  */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h.  */
23726 #include <time.h>
23727 int
23728 main ()
23729 {
23730 daylight = 1
23731   ;
23732   return 0;
23733 }
23734 _ACEOF
23735 rm -f conftest.$ac_objext conftest$ac_exeext
23736 if { (ac_try="$ac_link"
23737 case "(($ac_try" in
23738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739   *) ac_try_echo=$ac_try;;
23740 esac
23741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23742   (eval "$ac_link") 2>conftest.er1
23743   ac_status=$?
23744   grep -v '^ *+' conftest.er1 >conftest.err
23745   rm -f conftest.er1
23746   cat conftest.err >&5
23747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748   (exit $ac_status); } &&
23749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23750   { (case "(($ac_try" in
23751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752   *) ac_try_echo=$ac_try;;
23753 esac
23754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23755   (eval "$ac_try") 2>&5
23756   ac_status=$?
23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758   (exit $ac_status); }; } &&
23759          { ac_try='test -s conftest$ac_exeext'
23760   { (case "(($ac_try" in
23761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762   *) ac_try_echo=$ac_try;;
23763 esac
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765   (eval "$ac_try") 2>&5
23766   ac_status=$?
23767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768   (exit $ac_status); }; }; then
23769   ac_cv_have_daylight="yes"
23770 else
23771   echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23773
23774         ac_cv_have_daylight="no"
23775 fi
23776
23777 rm -f core conftest.err conftest.$ac_objext \
23778       conftest$ac_exeext conftest.$ac_ext
23779 fi
23780 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
23781 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
23782 if test "$ac_cv_have_daylight" = "yes"
23783 then
23784
23785 cat >>confdefs.h <<\_ACEOF
23786 #define HAVE_DAYLIGHT 1
23787 _ACEOF
23788
23789 fi
23790
23791
23792 case $host_cpu in
23793   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
23794 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
23795 if test "${ac_cv_cpp_def___i386__+set}" = set; then
23796   echo $ECHO_N "(cached) $ECHO_C" >&6
23797 else
23798   cat >conftest.$ac_ext <<_ACEOF
23799 /* confdefs.h.  */
23800 _ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h.  */
23804 #ifndef __i386__
23805 yes
23806 #endif
23807 _ACEOF
23808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23809   $EGREP "yes" >/dev/null 2>&1; then
23810   ac_cv_cpp_def___i386__=yes
23811 else
23812   ac_cv_cpp_def___i386__=no
23813 fi
23814 rm -f conftest*
23815
23816 fi
23817 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
23818 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
23819 if test $ac_cv_cpp_def___i386__ = yes; then
23820   CFLAGS="$CFLAGS -D__i386__"
23821   LINTFLAGS="$LINTFLAGS -D__i386__"
23822 fi
23823  ;;
23824   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
23825 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
23826 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
23827   echo $ECHO_N "(cached) $ECHO_C" >&6
23828 else
23829   cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h.  */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h.  */
23835 #ifndef __x86_64__
23836 yes
23837 #endif
23838 _ACEOF
23839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23840   $EGREP "yes" >/dev/null 2>&1; then
23841   ac_cv_cpp_def___x86_64__=yes
23842 else
23843   ac_cv_cpp_def___x86_64__=no
23844 fi
23845 rm -f conftest*
23846
23847 fi
23848 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
23849 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
23850 if test $ac_cv_cpp_def___x86_64__ = yes; then
23851   CFLAGS="$CFLAGS -D__x86_64__"
23852   LINTFLAGS="$LINTFLAGS -D__x86_64__"
23853 fi
23854
23855                     { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
23856 echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
23857 if test "${ac_cv_cpp_def__WIN64+set}" = set; then
23858   echo $ECHO_N "(cached) $ECHO_C" >&6
23859 else
23860   cat >conftest.$ac_ext <<_ACEOF
23861 /* confdefs.h.  */
23862 _ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h.  */
23866 #ifndef _WIN64
23867 yes
23868 #endif
23869 _ACEOF
23870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23871   $EGREP "yes" >/dev/null 2>&1; then
23872   ac_cv_cpp_def__WIN64=yes
23873 else
23874   ac_cv_cpp_def__WIN64=no
23875 fi
23876 rm -f conftest*
23877
23878 fi
23879 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
23880 echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
23881 if test $ac_cv_cpp_def__WIN64 = yes; then
23882   CFLAGS="$CFLAGS -D_WIN64"
23883   LINTFLAGS="$LINTFLAGS -D_WIN64"
23884 fi
23885  ;;
23886   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
23887 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
23888 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
23889   echo $ECHO_N "(cached) $ECHO_C" >&6
23890 else
23891   cat >conftest.$ac_ext <<_ACEOF
23892 /* confdefs.h.  */
23893 _ACEOF
23894 cat confdefs.h >>conftest.$ac_ext
23895 cat >>conftest.$ac_ext <<_ACEOF
23896 /* end confdefs.h.  */
23897 #ifndef __ALPHA__
23898 yes
23899 #endif
23900 _ACEOF
23901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23902   $EGREP "yes" >/dev/null 2>&1; then
23903   ac_cv_cpp_def___ALPHA__=yes
23904 else
23905   ac_cv_cpp_def___ALPHA__=no
23906 fi
23907 rm -f conftest*
23908
23909 fi
23910 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
23911 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
23912 if test $ac_cv_cpp_def___ALPHA__ = yes; then
23913   CFLAGS="$CFLAGS -D__ALPHA__"
23914   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
23915 fi
23916  ;;
23917   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
23918 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
23919 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
23920   echo $ECHO_N "(cached) $ECHO_C" >&6
23921 else
23922   cat >conftest.$ac_ext <<_ACEOF
23923 /* confdefs.h.  */
23924 _ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h.  */
23928 #ifndef __sparc__
23929 yes
23930 #endif
23931 _ACEOF
23932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23933   $EGREP "yes" >/dev/null 2>&1; then
23934   ac_cv_cpp_def___sparc__=yes
23935 else
23936   ac_cv_cpp_def___sparc__=no
23937 fi
23938 rm -f conftest*
23939
23940 fi
23941 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
23942 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
23943 if test $ac_cv_cpp_def___sparc__ = yes; then
23944   CFLAGS="$CFLAGS -D__sparc__"
23945   LINTFLAGS="$LINTFLAGS -D__sparc__"
23946 fi
23947  ;;
23948   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
23949 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
23950 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
23951   echo $ECHO_N "(cached) $ECHO_C" >&6
23952 else
23953   cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h.  */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h.  */
23959 #ifndef __powerpc__
23960 yes
23961 #endif
23962 _ACEOF
23963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23964   $EGREP "yes" >/dev/null 2>&1; then
23965   ac_cv_cpp_def___powerpc__=yes
23966 else
23967   ac_cv_cpp_def___powerpc__=no
23968 fi
23969 rm -f conftest*
23970
23971 fi
23972 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
23973 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
23974 if test $ac_cv_cpp_def___powerpc__ = yes; then
23975   CFLAGS="$CFLAGS -D__powerpc__"
23976   LINTFLAGS="$LINTFLAGS -D__powerpc__"
23977 fi
23978  ;;
23979 esac
23980
23981 case $host_vendor in
23982   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
23983 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
23984 if test "${ac_cv_cpp_def___sun__+set}" = set; then
23985   echo $ECHO_N "(cached) $ECHO_C" >&6
23986 else
23987   cat >conftest.$ac_ext <<_ACEOF
23988 /* confdefs.h.  */
23989 _ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h.  */
23993 #ifndef __sun__
23994 yes
23995 #endif
23996 _ACEOF
23997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23998   $EGREP "yes" >/dev/null 2>&1; then
23999   ac_cv_cpp_def___sun__=yes
24000 else
24001   ac_cv_cpp_def___sun__=no
24002 fi
24003 rm -f conftest*
24004
24005 fi
24006 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24007 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
24008 if test $ac_cv_cpp_def___sun__ = yes; then
24009   CFLAGS="$CFLAGS -D__sun__"
24010   LINTFLAGS="$LINTFLAGS -D__sun__"
24011 fi
24012  ;;
24013 esac
24014
24015
24016
24017
24018
24019 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
24020
24021 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
24022
24023 ac_config_commands="$ac_config_commands dlls/kernel/messages"
24024
24025 ac_config_commands="$ac_config_commands dlls/user/resources"
24026
24027 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
24028
24029 ac_config_commands="$ac_config_commands include/wine"
24030
24031
24032 MAKE_RULES=Make.rules
24033
24034
24035 MAKE_DLL_RULES=dlls/Makedll.rules
24036
24037
24038 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24039
24040
24041 MAKE_TEST_RULES=dlls/Maketest.rules
24042
24043
24044 MAKE_PROG_RULES=programs/Makeprog.rules
24045
24046
24047 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hid/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/infosoft/tests/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/pstorec/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
24048
24049
24050 cat >confcache <<\_ACEOF
24051 # This file is a shell script that caches the results of configure
24052 # tests run on this system so they can be shared between configure
24053 # scripts and configure runs, see configure's option --config-cache.
24054 # It is not useful on other systems.  If it contains results you don't
24055 # want to keep, you may remove or edit it.
24056 #
24057 # config.status only pays attention to the cache file if you give it
24058 # the --recheck option to rerun configure.
24059 #
24060 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24061 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24062 # following values.
24063
24064 _ACEOF
24065
24066 # The following way of writing the cache mishandles newlines in values,
24067 # but we know of no workaround that is simple, portable, and efficient.
24068 # So, we kill variables containing newlines.
24069 # Ultrix sh set writes to stderr and can't be redirected directly,
24070 # and sets the high bit in the cache file unless we assign to the vars.
24071 (
24072   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24073     eval ac_val=\$$ac_var
24074     case $ac_val in #(
24075     *${as_nl}*)
24076       case $ac_var in #(
24077       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24078 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24079       esac
24080       case $ac_var in #(
24081       _ | IFS | as_nl) ;; #(
24082       *) $as_unset $ac_var ;;
24083       esac ;;
24084     esac
24085   done
24086
24087   (set) 2>&1 |
24088     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24089     *${as_nl}ac_space=\ *)
24090       # `set' does not quote correctly, so add quotes (double-quote
24091       # substitution turns \\\\ into \\, and sed turns \\ into \).
24092       sed -n \
24093         "s/'/'\\\\''/g;
24094           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24095       ;; #(
24096     *)
24097       # `set' quotes correctly as required by POSIX, so do not add quotes.
24098       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24099       ;;
24100     esac |
24101     sort
24102 ) |
24103   sed '
24104      /^ac_cv_env_/b end
24105      t clear
24106      :clear
24107      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24108      t end
24109      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24110      :end' >>confcache
24111 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24112   if test -w "$cache_file"; then
24113     test "x$cache_file" != "x/dev/null" &&
24114       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24115 echo "$as_me: updating cache $cache_file" >&6;}
24116     cat confcache >$cache_file
24117   else
24118     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24119 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24120   fi
24121 fi
24122 rm -f confcache
24123
24124 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24125 # Let make expand exec_prefix.
24126 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24127
24128 DEFS=-DHAVE_CONFIG_H
24129
24130 ac_libobjs=
24131 ac_ltlibobjs=
24132 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24133   # 1. Remove the extension, and $U if already installed.
24134   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24135   ac_i=`echo "$ac_i" | sed "$ac_script"`
24136   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24137   #    will be set to the directory where LIBOBJS objects are built.
24138   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24139   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24140 done
24141 LIBOBJS=$ac_libobjs
24142
24143 LTLIBOBJS=$ac_ltlibobjs
24144
24145
24146
24147 : ${CONFIG_STATUS=./config.status}
24148 ac_clean_files_save=$ac_clean_files
24149 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24150 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24151 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24152 cat >$CONFIG_STATUS <<_ACEOF
24153 #! $SHELL
24154 # Generated by $as_me.
24155 # Run this file to recreate the current configuration.
24156 # Compiler output produced by configure, useful for debugging
24157 # configure, is in config.log if it exists.
24158
24159 debug=false
24160 ac_cs_recheck=false
24161 ac_cs_silent=false
24162 SHELL=\${CONFIG_SHELL-$SHELL}
24163 _ACEOF
24164
24165 cat >>$CONFIG_STATUS <<\_ACEOF
24166 ## --------------------- ##
24167 ## M4sh Initialization.  ##
24168 ## --------------------- ##
24169
24170 # Be Bourne compatible
24171 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24172   emulate sh
24173   NULLCMD=:
24174   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24175   # is contrary to our usage.  Disable this feature.
24176   alias -g '${1+"$@"}'='"$@"'
24177   setopt NO_GLOB_SUBST
24178 else
24179   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24180 fi
24181 BIN_SH=xpg4; export BIN_SH # for Tru64
24182 DUALCASE=1; export DUALCASE # for MKS sh
24183
24184
24185 # PATH needs CR
24186 # Avoid depending upon Character Ranges.
24187 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24188 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24189 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24190 as_cr_digits='0123456789'
24191 as_cr_alnum=$as_cr_Letters$as_cr_digits
24192
24193 # The user is always right.
24194 if test "${PATH_SEPARATOR+set}" != set; then
24195   echo "#! /bin/sh" >conf$$.sh
24196   echo  "exit 0"   >>conf$$.sh
24197   chmod +x conf$$.sh
24198   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24199     PATH_SEPARATOR=';'
24200   else
24201     PATH_SEPARATOR=:
24202   fi
24203   rm -f conf$$.sh
24204 fi
24205
24206 # Support unset when possible.
24207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24208   as_unset=unset
24209 else
24210   as_unset=false
24211 fi
24212
24213
24214 # IFS
24215 # We need space, tab and new line, in precisely that order.  Quoting is
24216 # there to prevent editors from complaining about space-tab.
24217 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24218 # splitting by setting IFS to empty value.)
24219 as_nl='
24220 '
24221 IFS=" ""        $as_nl"
24222
24223 # Find who we are.  Look in the path if we contain no directory separator.
24224 case $0 in
24225   *[\\/]* ) as_myself=$0 ;;
24226   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24227 for as_dir in $PATH
24228 do
24229   IFS=$as_save_IFS
24230   test -z "$as_dir" && as_dir=.
24231   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24232 done
24233 IFS=$as_save_IFS
24234
24235      ;;
24236 esac
24237 # We did not find ourselves, most probably we were run as `sh COMMAND'
24238 # in which case we are not to be found in the path.
24239 if test "x$as_myself" = x; then
24240   as_myself=$0
24241 fi
24242 if test ! -f "$as_myself"; then
24243   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24244   { (exit 1); exit 1; }
24245 fi
24246
24247 # Work around bugs in pre-3.0 UWIN ksh.
24248 for as_var in ENV MAIL MAILPATH
24249 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24250 done
24251 PS1='$ '
24252 PS2='> '
24253 PS4='+ '
24254
24255 # NLS nuisances.
24256 for as_var in \
24257   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24258   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24259   LC_TELEPHONE LC_TIME
24260 do
24261   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24262     eval $as_var=C; export $as_var
24263   else
24264     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24265   fi
24266 done
24267
24268 # Required to use basename.
24269 if expr a : '\(a\)' >/dev/null 2>&1 &&
24270    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24271   as_expr=expr
24272 else
24273   as_expr=false
24274 fi
24275
24276 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24277   as_basename=basename
24278 else
24279   as_basename=false
24280 fi
24281
24282
24283 # Name of the executable.
24284 as_me=`$as_basename -- "$0" ||
24285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24286          X"$0" : 'X\(//\)$' \| \
24287          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24288 echo X/"$0" |
24289     sed '/^.*\/\([^/][^/]*\)\/*$/{
24290             s//\1/
24291             q
24292           }
24293           /^X\/\(\/\/\)$/{
24294             s//\1/
24295             q
24296           }
24297           /^X\/\(\/\).*/{
24298             s//\1/
24299             q
24300           }
24301           s/.*/./; q'`
24302
24303 # CDPATH.
24304 $as_unset CDPATH
24305
24306
24307
24308   as_lineno_1=$LINENO
24309   as_lineno_2=$LINENO
24310   test "x$as_lineno_1" != "x$as_lineno_2" &&
24311   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24312
24313   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24314   # uniformly replaced by the line number.  The first 'sed' inserts a
24315   # line-number line after each line using $LINENO; the second 'sed'
24316   # does the real work.  The second script uses 'N' to pair each
24317   # line-number line with the line containing $LINENO, and appends
24318   # trailing '-' during substitution so that $LINENO is not a special
24319   # case at line end.
24320   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24321   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24322   # E. McMahon (1931-1989) for sed's syntax.  :-)
24323   sed -n '
24324     p
24325     /[$]LINENO/=
24326   ' <$as_myself |
24327     sed '
24328       s/[$]LINENO.*/&-/
24329       t lineno
24330       b
24331       :lineno
24332       N
24333       :loop
24334       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24335       t loop
24336       s/-\n.*//
24337     ' >$as_me.lineno &&
24338   chmod +x "$as_me.lineno" ||
24339     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24340    { (exit 1); exit 1; }; }
24341
24342   # Don't try to exec as it changes $[0], causing all sort of problems
24343   # (the dirname of $[0] is not the place where we might find the
24344   # original and so on.  Autoconf is especially sensitive to this).
24345   . "./$as_me.lineno"
24346   # Exit status is that of the last command.
24347   exit
24348 }
24349
24350
24351 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24352   as_dirname=dirname
24353 else
24354   as_dirname=false
24355 fi
24356
24357 ECHO_C= ECHO_N= ECHO_T=
24358 case `echo -n x` in
24359 -n*)
24360   case `echo 'x\c'` in
24361   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24362   *)   ECHO_C='\c';;
24363   esac;;
24364 *)
24365   ECHO_N='-n';;
24366 esac
24367
24368 if expr a : '\(a\)' >/dev/null 2>&1 &&
24369    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24370   as_expr=expr
24371 else
24372   as_expr=false
24373 fi
24374
24375 rm -f conf$$ conf$$.exe conf$$.file
24376 if test -d conf$$.dir; then
24377   rm -f conf$$.dir/conf$$.file
24378 else
24379   rm -f conf$$.dir
24380   mkdir conf$$.dir
24381 fi
24382 echo >conf$$.file
24383 if ln -s conf$$.file conf$$ 2>/dev/null; then
24384   as_ln_s='ln -s'
24385   # ... but there are two gotchas:
24386   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24387   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24388   # In both cases, we have to default to `cp -p'.
24389   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24390     as_ln_s='cp -p'
24391 elif ln conf$$.file conf$$ 2>/dev/null; then
24392   as_ln_s=ln
24393 else
24394   as_ln_s='cp -p'
24395 fi
24396 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24397 rmdir conf$$.dir 2>/dev/null
24398
24399 if mkdir -p . 2>/dev/null; then
24400   as_mkdir_p=:
24401 else
24402   test -d ./-p && rmdir ./-p
24403   as_mkdir_p=false
24404 fi
24405
24406 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
24407 # systems may use methods other than mode bits to determine executability.
24408 cat >conf$$.file <<_ASEOF
24409 #! /bin/sh
24410 exit 0
24411 _ASEOF
24412 chmod +x conf$$.file
24413 if test -x conf$$.file >/dev/null 2>&1; then
24414   as_executable_p="test -x"
24415 else
24416   as_executable_p=:
24417 fi
24418 rm -f conf$$.file
24419
24420 # Sed expression to map a string onto a valid CPP name.
24421 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24422
24423 # Sed expression to map a string onto a valid variable name.
24424 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24425
24426
24427 exec 6>&1
24428
24429 # Save the log message, to keep $[0] and so on meaningful, and to
24430 # report actual input values of CONFIG_FILES etc. instead of their
24431 # values after options handling.
24432 ac_log="
24433 This file was extended by Wine $as_me 0.9.20, which was
24434 generated by GNU Autoconf 2.60a.  Invocation command line was
24435
24436   CONFIG_FILES    = $CONFIG_FILES
24437   CONFIG_HEADERS  = $CONFIG_HEADERS
24438   CONFIG_LINKS    = $CONFIG_LINKS
24439   CONFIG_COMMANDS = $CONFIG_COMMANDS
24440   $ $0 $@
24441
24442 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24443 "
24444
24445 _ACEOF
24446
24447 cat >>$CONFIG_STATUS <<_ACEOF
24448 # Files that config.status was made for.
24449 config_files="$ac_config_files"
24450 config_headers="$ac_config_headers"
24451 config_commands="$ac_config_commands"
24452
24453 _ACEOF
24454
24455 cat >>$CONFIG_STATUS <<\_ACEOF
24456 ac_cs_usage="\
24457 \`$as_me' instantiates files from templates according to the
24458 current configuration.
24459
24460 Usage: $0 [OPTIONS] [FILE]...
24461
24462   -h, --help       print this help, then exit
24463   -V, --version    print version number and configuration settings, then exit
24464   -q, --quiet      do not print progress messages
24465   -d, --debug      don't remove temporary files
24466       --recheck    update $as_me by reconfiguring in the same conditions
24467   --file=FILE[:TEMPLATE]
24468                    instantiate the configuration file FILE
24469   --header=FILE[:TEMPLATE]
24470                    instantiate the configuration header FILE
24471
24472 Configuration files:
24473 $config_files
24474
24475 Configuration headers:
24476 $config_headers
24477
24478 Configuration commands:
24479 $config_commands
24480
24481 Report bugs to <bug-autoconf@gnu.org>."
24482
24483 _ACEOF
24484 cat >>$CONFIG_STATUS <<_ACEOF
24485 ac_cs_version="\\
24486 Wine config.status 0.9.20
24487 configured by $0, generated by GNU Autoconf 2.60a,
24488   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24489
24490 Copyright (C) 2006 Free Software Foundation, Inc.
24491 This config.status script is free software; the Free Software Foundation
24492 gives unlimited permission to copy, distribute and modify it."
24493
24494 ac_pwd='$ac_pwd'
24495 srcdir='$srcdir'
24496 INSTALL='$INSTALL'
24497 _ACEOF
24498
24499 cat >>$CONFIG_STATUS <<\_ACEOF
24500 # If no file are specified by the user, then we need to provide default
24501 # value.  By we need to know if files were specified by the user.
24502 ac_need_defaults=:
24503 while test $# != 0
24504 do
24505   case $1 in
24506   --*=*)
24507     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24508     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24509     ac_shift=:
24510     ;;
24511   *)
24512     ac_option=$1
24513     ac_optarg=$2
24514     ac_shift=shift
24515     ;;
24516   esac
24517
24518   case $ac_option in
24519   # Handling of the options.
24520   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24521     ac_cs_recheck=: ;;
24522   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24523     echo "$ac_cs_version"; exit ;;
24524   --debug | --debu | --deb | --de | --d | -d )
24525     debug=: ;;
24526   --file | --fil | --fi | --f )
24527     $ac_shift
24528     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24529     ac_need_defaults=false;;
24530   --header | --heade | --head | --hea )
24531     $ac_shift
24532     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24533     ac_need_defaults=false;;
24534   --he | --h)
24535     # Conflict between --help and --header
24536     { echo "$as_me: error: ambiguous option: $1
24537 Try \`$0 --help' for more information." >&2
24538    { (exit 1); exit 1; }; };;
24539   --help | --hel | -h )
24540     echo "$ac_cs_usage"; exit ;;
24541   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24542   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24543     ac_cs_silent=: ;;
24544
24545   # This is an error.
24546   -*) { echo "$as_me: error: unrecognized option: $1
24547 Try \`$0 --help' for more information." >&2
24548    { (exit 1); exit 1; }; } ;;
24549
24550   *) ac_config_targets="$ac_config_targets $1"
24551      ac_need_defaults=false ;;
24552
24553   esac
24554   shift
24555 done
24556
24557 ac_configure_extra_args=
24558
24559 if $ac_cs_silent; then
24560   exec 6>/dev/null
24561   ac_configure_extra_args="$ac_configure_extra_args --silent"
24562 fi
24563
24564 _ACEOF
24565 cat >>$CONFIG_STATUS <<_ACEOF
24566 if \$ac_cs_recheck; then
24567   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24568   CONFIG_SHELL=$SHELL
24569   export CONFIG_SHELL
24570   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24571 fi
24572
24573 _ACEOF
24574 cat >>$CONFIG_STATUS <<\_ACEOF
24575 exec 5>>config.log
24576 {
24577   echo
24578   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24579 ## Running $as_me. ##
24580 _ASBOX
24581   echo "$ac_log"
24582 } >&5
24583
24584 _ACEOF
24585 cat >>$CONFIG_STATUS <<_ACEOF
24586 _ACEOF
24587
24588 cat >>$CONFIG_STATUS <<\_ACEOF
24589
24590 # Handling of arguments.
24591 for ac_config_target in $ac_config_targets
24592 do
24593   case $ac_config_target in
24594     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24595     "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24596     "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24597     "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24598     "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24599     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24600     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24601     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24602     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24603     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24604     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24605     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24606     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24607     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24608     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24609     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24610     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24611     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24612     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24613     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24614     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24615     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24616     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24617     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24618     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24619     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24620     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24621     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24622     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
24623     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
24624     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24625     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24626     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
24627     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
24628     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
24629     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24630     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24631     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24632     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
24633     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
24634     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24635     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24636     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24637     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24638     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24639     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24640     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24641     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24642     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24643     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24644     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24645     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24646     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24647     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24648     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24649     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24650     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24651     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24652     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24653     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24654     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24655     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24656     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24657     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24658     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24659     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24660     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24661     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24662     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24663     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24664     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24665     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24666     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24667     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24668     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24669     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24670     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24671     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24672     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24673     "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24674     "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24675     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24676     "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24677     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24678     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
24679     "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
24680     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
24681     "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
24682     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
24683     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
24684     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
24685     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
24686     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
24687     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
24688     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
24689     "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
24690     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
24691     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
24692     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
24693     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
24694     "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
24695     "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
24696     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
24697     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
24698     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
24699     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
24700     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
24701     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
24702     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
24703     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
24704     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
24705     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
24706     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
24707     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
24708     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
24709     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
24710     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
24711     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
24712     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
24713     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
24714     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
24715     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
24716     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
24717     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
24718     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
24719     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
24720     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
24721     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
24722     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
24723     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
24724     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
24725     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
24726     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
24727     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
24728     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
24729     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
24730     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
24731     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
24732     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
24733     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
24734     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
24735     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
24736     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
24737     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
24738     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
24739     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
24740     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
24741     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
24742     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
24743     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
24744     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
24745     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
24746     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
24747     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
24748     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
24749     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
24750     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
24751     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
24752     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
24753     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
24754     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
24755     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
24756     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
24757     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
24758     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
24759     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
24760     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
24761     "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
24762     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
24763     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
24764     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
24765     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
24766     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
24767     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
24768     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
24769     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
24770     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
24771     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
24772     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
24773     "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
24774     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
24775     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
24776     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
24777     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
24778     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
24779     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
24780     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
24781     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
24782     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
24783     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
24784     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
24785     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
24786     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
24787     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
24788     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
24789     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
24790     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
24791     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
24792     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
24793     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
24794     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
24795     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
24796     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
24797     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
24798     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
24799     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
24800     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
24801     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
24802     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
24803     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
24804     "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
24805     "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
24806     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
24807     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
24808     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
24809     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
24810     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
24811     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
24812     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
24813     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
24814     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
24815     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
24816     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
24817     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
24818     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
24819     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
24820     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
24821     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
24822     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
24823     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
24824     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
24825     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
24826     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
24827     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
24828     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
24829     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
24830     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
24831     "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
24832     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
24833     "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
24834     "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
24835     "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
24836     "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
24837     "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
24838     "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
24839     "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
24840     "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
24841     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
24842     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
24843     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
24844     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
24845     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
24846     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
24847     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
24848     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
24849     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
24850     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
24851     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
24852     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
24853     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
24854     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
24855     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24856     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
24857     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
24858     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
24859     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
24860     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
24861     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
24862     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
24863     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
24864     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
24865     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
24866     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
24867     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
24868     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
24869     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
24870     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
24871     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
24872     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
24873     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
24874     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
24875     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
24876     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
24877     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
24878     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
24879     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
24880     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
24881     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
24882     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
24883     "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
24884     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
24885     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
24886     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
24887     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
24888     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
24889     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
24890     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
24891     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
24892     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
24893     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
24894     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
24895     "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
24896     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
24897     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
24898     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
24899     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
24900     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
24901     "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
24902     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
24903     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
24904     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
24905     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
24906     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
24907
24908   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24909 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24910    { (exit 1); exit 1; }; };;
24911   esac
24912 done
24913
24914
24915 # If the user did not use the arguments to specify the items to instantiate,
24916 # then the envvar interface is used.  Set only those that are not.
24917 # We use the long form for the default assignment because of an extremely
24918 # bizarre bug on SunOS 4.1.3.
24919 if $ac_need_defaults; then
24920   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24921   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24922   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24923 fi
24924
24925 # Have a temporary directory for convenience.  Make it in the build tree
24926 # simply because there is no reason against having it here, and in addition,
24927 # creating and moving files from /tmp can sometimes cause problems.
24928 # Hook for its removal unless debugging.
24929 # Note that there is a small window in which the directory will not be cleaned:
24930 # after its creation but before its name has been assigned to `$tmp'.
24931 $debug ||
24932 {
24933   tmp=
24934   trap 'exit_status=$?
24935   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24936 ' 0
24937   trap '{ (exit 1); exit 1; }' 1 2 13 15
24938 }
24939 # Create a (secure) tmp directory for tmp files.
24940
24941 {
24942   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24943   test -n "$tmp" && test -d "$tmp"
24944 }  ||
24945 {
24946   tmp=./conf$$-$RANDOM
24947   (umask 077 && mkdir "$tmp")
24948 } ||
24949 {
24950    echo "$me: cannot create a temporary directory in ." >&2
24951    { (exit 1); exit 1; }
24952 }
24953
24954 #
24955 # Set up the sed scripts for CONFIG_FILES section.
24956 #
24957
24958 # No need to generate the scripts if there are no CONFIG_FILES.
24959 # This happens for instance when ./config.status config.h
24960 if test -n "$CONFIG_FILES"; then
24961
24962 _ACEOF
24963
24964 # Create sed commands to just substitute file output variables.
24965
24966 # Remaining file output variables are in a fragment that also has non-file
24967 # output varibles.
24968
24969
24970
24971 ac_delim='%!_!# '
24972 for ac_last_try in false false false false false :; do
24973   cat >conf$$subs.sed <<_ACEOF
24974 SHELL!$SHELL$ac_delim
24975 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24976 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24977 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24978 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24979 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24980 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24981 exec_prefix!$exec_prefix$ac_delim
24982 prefix!$prefix$ac_delim
24983 program_transform_name!$program_transform_name$ac_delim
24984 bindir!$bindir$ac_delim
24985 sbindir!$sbindir$ac_delim
24986 libexecdir!$libexecdir$ac_delim
24987 datarootdir!$datarootdir$ac_delim
24988 datadir!$datadir$ac_delim
24989 sysconfdir!$sysconfdir$ac_delim
24990 sharedstatedir!$sharedstatedir$ac_delim
24991 localstatedir!$localstatedir$ac_delim
24992 includedir!$includedir$ac_delim
24993 oldincludedir!$oldincludedir$ac_delim
24994 docdir!$docdir$ac_delim
24995 infodir!$infodir$ac_delim
24996 htmldir!$htmldir$ac_delim
24997 dvidir!$dvidir$ac_delim
24998 pdfdir!$pdfdir$ac_delim
24999 psdir!$psdir$ac_delim
25000 libdir!$libdir$ac_delim
25001 localedir!$localedir$ac_delim
25002 mandir!$mandir$ac_delim
25003 DEFS!$DEFS$ac_delim
25004 ECHO_C!$ECHO_C$ac_delim
25005 ECHO_N!$ECHO_N$ac_delim
25006 ECHO_T!$ECHO_T$ac_delim
25007 LIBS!$LIBS$ac_delim
25008 build_alias!$build_alias$ac_delim
25009 host_alias!$host_alias$ac_delim
25010 target_alias!$target_alias$ac_delim
25011 build!$build$ac_delim
25012 build_cpu!$build_cpu$ac_delim
25013 build_vendor!$build_vendor$ac_delim
25014 build_os!$build_os$ac_delim
25015 host!$host$ac_delim
25016 host_cpu!$host_cpu$ac_delim
25017 host_vendor!$host_vendor$ac_delim
25018 host_os!$host_os$ac_delim
25019 WIN16_FILES!$WIN16_FILES$ac_delim
25020 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25021 SET_MAKE!$SET_MAKE$ac_delim
25022 CC!$CC$ac_delim
25023 CFLAGS!$CFLAGS$ac_delim
25024 LDFLAGS!$LDFLAGS$ac_delim
25025 CPPFLAGS!$CPPFLAGS$ac_delim
25026 ac_ct_CC!$ac_ct_CC$ac_delim
25027 EXEEXT!$EXEEXT$ac_delim
25028 OBJEXT!$OBJEXT$ac_delim
25029 CXX!$CXX$ac_delim
25030 CXXFLAGS!$CXXFLAGS$ac_delim
25031 ac_ct_CXX!$ac_ct_CXX$ac_delim
25032 CPPBIN!$CPPBIN$ac_delim
25033 TOOLSDIR!$TOOLSDIR$ac_delim
25034 XMKMF!$XMKMF$ac_delim
25035 CPP!$CPP$ac_delim
25036 X_CFLAGS!$X_CFLAGS$ac_delim
25037 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25038 X_LIBS!$X_LIBS$ac_delim
25039 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25040 LEX!$LEX$ac_delim
25041 LEXLIB!$LEXLIB$ac_delim
25042 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25043 XLEX!$XLEX$ac_delim
25044 BISON!$BISON$ac_delim
25045 AS!$AS$ac_delim
25046 ac_ct_AS!$ac_ct_AS$ac_delim
25047 LD!$LD$ac_delim
25048 AR!$AR$ac_delim
25049 RANLIB!$RANLIB$ac_delim
25050 STRIP!$STRIP$ac_delim
25051 WINDRES!$WINDRES$ac_delim
25052 LN_S!$LN_S$ac_delim
25053 LN!$LN$ac_delim
25054 GREP!$GREP$ac_delim
25055 EGREP!$EGREP$ac_delim
25056 _ACEOF
25057
25058   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
25059     break
25060   elif $ac_last_try; then
25061     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25062 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25063    { (exit 1); exit 1; }; }
25064   else
25065     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25066   fi
25067 done
25068
25069 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25070 if test -n "$ac_eof"; then
25071   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25072   ac_eof=`expr $ac_eof + 1`
25073 fi
25074
25075 cat >>$CONFIG_STATUS <<_ACEOF
25076 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25078 /^[      ]*@MAKE_RULES@[         ]*$/{
25079 r $MAKE_RULES
25080 d
25081 }
25082 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
25083 r $MAKE_DLL_RULES
25084 d
25085 }
25086 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
25087 r $MAKE_IMPLIB_RULES
25088 d
25089 }
25090 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
25091 r $MAKE_TEST_RULES
25092 d
25093 }
25094 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
25095 r $MAKE_PROG_RULES
25096 d
25097 }
25098 _ACEOF
25099 sed '
25100 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25101 s/^/s,@/; s/!/@,|#_!!_#|/
25102 :n
25103 t n
25104 s/'"$ac_delim"'$/,g/; t
25105 s/$/\\/; p
25106 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25107 ' >>$CONFIG_STATUS <conf$$subs.sed
25108 rm -f conf$$subs.sed
25109 cat >>$CONFIG_STATUS <<_ACEOF
25110 CEOF$ac_eof
25111 _ACEOF
25112
25113
25114 ac_delim='%!_!# '
25115 for ac_last_try in false false false false false :; do
25116   cat >conf$$subs.sed <<_ACEOF
25117 LDCONFIG!$LDCONFIG$ac_delim
25118 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25119 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25120 INSTALL_DATA!$INSTALL_DATA$ac_delim
25121 LINT!$LINT$ac_delim
25122 LINTFLAGS!$LINTFLAGS$ac_delim
25123 FONTFORGE!$FONTFORGE$ac_delim
25124 PKG_CONFIG!$PKG_CONFIG$ac_delim
25125 PRELINK!$PRELINK$ac_delim
25126 LIBPTHREAD!$LIBPTHREAD$ac_delim
25127 XLIB!$XLIB$ac_delim
25128 XFILES!$XFILES$ac_delim
25129 OPENGLFILES!$OPENGLFILES$ac_delim
25130 GLU32FILES!$GLU32FILES$ac_delim
25131 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25132 GLUT_LIBS!$GLUT_LIBS$ac_delim
25133 GLUT32FILES!$GLUT32FILES$ac_delim
25134 NASLIBS!$NASLIBS$ac_delim
25135 XML2LIBS!$XML2LIBS$ac_delim
25136 XML2INCL!$XML2INCL$ac_delim
25137 XSLTLIBS!$XSLTLIBS$ac_delim
25138 XSLTINCL!$XSLTINCL$ac_delim
25139 HALINCL!$HALINCL$ac_delim
25140 CURSESLIBS!$CURSESLIBS$ac_delim
25141 sane_devel!$sane_devel$ac_delim
25142 SANELIBS!$SANELIBS$ac_delim
25143 SANEINCL!$SANEINCL$ac_delim
25144 gphoto2_devel!$gphoto2_devel$ac_delim
25145 gphoto2port_devel!$gphoto2port_devel$ac_delim
25146 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25147 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25148 ICULIBS!$ICULIBS$ac_delim
25149 RESOLVLIBS!$RESOLVLIBS$ac_delim
25150 LCMSLIBS!$LCMSLIBS$ac_delim
25151 LDAPLIBS!$LDAPLIBS$ac_delim
25152 FREETYPELIBS!$FREETYPELIBS$ac_delim
25153 FREETYPEINCL!$FREETYPEINCL$ac_delim
25154 ft_devel!$ft_devel$ac_delim
25155 ft_devel2!$ft_devel2$ac_delim
25156 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25157 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25158 ARTSLIBS!$ARTSLIBS$ac_delim
25159 ARTSINCL!$ARTSINCL$ac_delim
25160 ESDCONFIG!$ESDCONFIG$ac_delim
25161 ESDLIBS!$ESDLIBS$ac_delim
25162 ESDINCL!$ESDINCL$ac_delim
25163 ALSALIBS!$ALSALIBS$ac_delim
25164 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25165 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25166 BUILTINFLAG!$BUILTINFLAG$ac_delim
25167 DLLEXT!$DLLEXT$ac_delim
25168 DLLFLAGS!$DLLFLAGS$ac_delim
25169 LDSHARED!$LDSHARED$ac_delim
25170 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25171 LIBEXT!$LIBEXT$ac_delim
25172 IMPLIBEXT!$IMPLIBEXT$ac_delim
25173 DLLTOOL!$DLLTOOL$ac_delim
25174 DLLWRAP!$DLLWRAP$ac_delim
25175 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25176 IOKITLIB!$IOKITLIB$ac_delim
25177 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
25178 COREAUDIO!$COREAUDIO$ac_delim
25179 LDEXERPATH!$LDEXERPATH$ac_delim
25180 CROSSTEST!$CROSSTEST$ac_delim
25181 CROSSCC!$CROSSCC$ac_delim
25182 CROSSWINDRES!$CROSSWINDRES$ac_delim
25183 LDPATH!$LDPATH$ac_delim
25184 CRTLIBS!$CRTLIBS$ac_delim
25185 SOCKETLIBS!$SOCKETLIBS$ac_delim
25186 MAIN_BINARY!$MAIN_BINARY$ac_delim
25187 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25188 LDD!$LDD$ac_delim
25189 LIBDL!$LIBDL$ac_delim
25190 LIBPOLL!$LIBPOLL$ac_delim
25191 LIBOBJS!$LIBOBJS$ac_delim
25192 LTLIBOBJS!$LTLIBOBJS$ac_delim
25193 _ACEOF
25194
25195   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
25196     break
25197   elif $ac_last_try; then
25198     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25199 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25200    { (exit 1); exit 1; }; }
25201   else
25202     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25203   fi
25204 done
25205
25206 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25207 if test -n "$ac_eof"; then
25208   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25209   ac_eof=`expr $ac_eof + 1`
25210 fi
25211
25212 cat >>$CONFIG_STATUS <<_ACEOF
25213 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25215 _ACEOF
25216 sed '
25217 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25218 s/^/s,@/; s/!/@,|#_!!_#|/
25219 :n
25220 t n
25221 s/'"$ac_delim"'$/,g/; t
25222 s/$/\\/; p
25223 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25224 ' >>$CONFIG_STATUS <conf$$subs.sed
25225 rm -f conf$$subs.sed
25226 cat >>$CONFIG_STATUS <<_ACEOF
25227 :end
25228 s/|#_!!_#|//g
25229 CEOF$ac_eof
25230 _ACEOF
25231
25232
25233 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25234 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25235 # trailing colons and then remove the whole line if VPATH becomes empty
25236 # (actually we leave an empty line to preserve line numbers).
25237 if test "x$srcdir" = x.; then
25238   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25239 s/:*\$(srcdir):*/:/
25240 s/:*\${srcdir}:*/:/
25241 s/:*@srcdir@:*/:/
25242 s/^\([^=]*=[     ]*\):*/\1/
25243 s/:*$//
25244 s/^[^=]*=[       ]*$//
25245 }'
25246 fi
25247
25248 cat >>$CONFIG_STATUS <<\_ACEOF
25249 fi # test -n "$CONFIG_FILES"
25250
25251
25252 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25253 do
25254   case $ac_tag in
25255   :[FHLC]) ac_mode=$ac_tag; continue;;
25256   esac
25257   case $ac_mode$ac_tag in
25258   :[FHL]*:*);;
25259   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25260 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25261    { (exit 1); exit 1; }; };;
25262   :[FH]-) ac_tag=-:-;;
25263   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25264   esac
25265   ac_save_IFS=$IFS
25266   IFS=:
25267   set x $ac_tag
25268   IFS=$ac_save_IFS
25269   shift
25270   ac_file=$1
25271   shift
25272
25273   case $ac_mode in
25274   :L) ac_source=$1;;
25275   :[FH])
25276     ac_file_inputs=
25277     for ac_f
25278     do
25279       case $ac_f in
25280       -) ac_f="$tmp/stdin";;
25281       *) # Look for the file first in the build tree, then in the source tree
25282          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25283          # because $ac_f cannot contain `:'.
25284          test -f "$ac_f" ||
25285            case $ac_f in
25286            [\\/$]*) false;;
25287            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25288            esac ||
25289            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25290 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25291    { (exit 1); exit 1; }; };;
25292       esac
25293       ac_file_inputs="$ac_file_inputs $ac_f"
25294     done
25295
25296     # Let's still pretend it is `configure' which instantiates (i.e., don't
25297     # use $as_me), people would be surprised to read:
25298     #    /* config.h.  Generated by config.status.  */
25299     configure_input="Generated from "`IFS=:
25300           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25301     if test x"$ac_file" != x-; then
25302       configure_input="$ac_file.  $configure_input"
25303       { echo "$as_me:$LINENO: creating $ac_file" >&5
25304 echo "$as_me: creating $ac_file" >&6;}
25305     fi
25306
25307     case $ac_tag in
25308     *:-:* | *:-) cat >"$tmp/stdin";;
25309     esac
25310     ;;
25311   esac
25312
25313   ac_dir=`$as_dirname -- "$ac_file" ||
25314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25315          X"$ac_file" : 'X\(//\)[^/]' \| \
25316          X"$ac_file" : 'X\(//\)$' \| \
25317          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25318 echo X"$ac_file" |
25319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25320             s//\1/
25321             q
25322           }
25323           /^X\(\/\/\)[^/].*/{
25324             s//\1/
25325             q
25326           }
25327           /^X\(\/\/\)$/{
25328             s//\1/
25329             q
25330           }
25331           /^X\(\/\).*/{
25332             s//\1/
25333             q
25334           }
25335           s/.*/./; q'`
25336   { as_dir="$ac_dir"
25337   case $as_dir in #(
25338   -*) as_dir=./$as_dir;;
25339   esac
25340   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25341     as_dirs=
25342     while :; do
25343       case $as_dir in #(
25344       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25345       *) as_qdir=$as_dir;;
25346       esac
25347       as_dirs="'$as_qdir' $as_dirs"
25348       as_dir=`$as_dirname -- "$as_dir" ||
25349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25350          X"$as_dir" : 'X\(//\)[^/]' \| \
25351          X"$as_dir" : 'X\(//\)$' \| \
25352          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25353 echo X"$as_dir" |
25354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25355             s//\1/
25356             q
25357           }
25358           /^X\(\/\/\)[^/].*/{
25359             s//\1/
25360             q
25361           }
25362           /^X\(\/\/\)$/{
25363             s//\1/
25364             q
25365           }
25366           /^X\(\/\).*/{
25367             s//\1/
25368             q
25369           }
25370           s/.*/./; q'`
25371       test -d "$as_dir" && break
25372     done
25373     test -z "$as_dirs" || eval "mkdir $as_dirs"
25374   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25375 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25376    { (exit 1); exit 1; }; }; }
25377   ac_builddir=.
25378
25379 case "$ac_dir" in
25380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25381 *)
25382   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25383   # A ".." for each directory in $ac_dir_suffix.
25384   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25385   case $ac_top_builddir_sub in
25386   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25387   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25388   esac ;;
25389 esac
25390 ac_abs_top_builddir=$ac_pwd
25391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25392 # for backward compatibility:
25393 ac_top_builddir=$ac_top_build_prefix
25394
25395 case $srcdir in
25396   .)  # We are building in place.
25397     ac_srcdir=.
25398     ac_top_srcdir=$ac_top_builddir_sub
25399     ac_abs_top_srcdir=$ac_pwd ;;
25400   [\\/]* | ?:[\\/]* )  # Absolute name.
25401     ac_srcdir=$srcdir$ac_dir_suffix;
25402     ac_top_srcdir=$srcdir
25403     ac_abs_top_srcdir=$srcdir ;;
25404   *) # Relative name.
25405     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25406     ac_top_srcdir=$ac_top_build_prefix$srcdir
25407     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25408 esac
25409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25410
25411
25412   case $ac_mode in
25413   :F)
25414   #
25415   # CONFIG_FILE
25416   #
25417
25418   case $INSTALL in
25419   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25420   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25421   esac
25422 _ACEOF
25423
25424 cat >>$CONFIG_STATUS <<\_ACEOF
25425 # If the template does not know about datarootdir, expand it.
25426 # FIXME: This hack should be removed a few years after 2.60.
25427 ac_datarootdir_hack=; ac_datarootdir_seen=
25428
25429 case `sed -n '/datarootdir/ {
25430   p
25431   q
25432 }
25433 /@datadir@/p
25434 /@docdir@/p
25435 /@infodir@/p
25436 /@localedir@/p
25437 /@mandir@/p
25438 ' $ac_file_inputs` in
25439 *datarootdir*) ac_datarootdir_seen=yes;;
25440 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25441   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25442 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25443 _ACEOF
25444 cat >>$CONFIG_STATUS <<_ACEOF
25445   ac_datarootdir_hack='
25446   s&@datadir@&$datadir&g
25447   s&@docdir@&$docdir&g
25448   s&@infodir@&$infodir&g
25449   s&@localedir@&$localedir&g
25450   s&@mandir@&$mandir&g
25451     s&\\\${datarootdir}&$datarootdir&g' ;;
25452 esac
25453 _ACEOF
25454
25455 # Neutralize VPATH when `$srcdir' = `.'.
25456 # Shell code in configure.ac might set extrasub.
25457 # FIXME: do we really want to maintain this feature?
25458 cat >>$CONFIG_STATUS <<_ACEOF
25459   sed "$ac_vpsub
25460 $extrasub
25461 _ACEOF
25462 cat >>$CONFIG_STATUS <<\_ACEOF
25463 :t
25464 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25465 s&@configure_input@&$configure_input&;t t
25466 s&@top_builddir@&$ac_top_builddir_sub&;t t
25467 s&@srcdir@&$ac_srcdir&;t t
25468 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25469 s&@top_srcdir@&$ac_top_srcdir&;t t
25470 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25471 s&@builddir@&$ac_builddir&;t t
25472 s&@abs_builddir@&$ac_abs_builddir&;t t
25473 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25474 s&@INSTALL@&$ac_INSTALL&;t t
25475 $ac_datarootdir_hack
25476 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25477
25478 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25479   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25480   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25481   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25482 which seems to be undefined.  Please make sure it is defined." >&5
25483 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25484 which seems to be undefined.  Please make sure it is defined." >&2;}
25485
25486   rm -f "$tmp/stdin"
25487   case $ac_file in
25488   -) cat "$tmp/out"; rm -f "$tmp/out";;
25489   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25490   esac
25491  ;;
25492   :H)
25493   #
25494   # CONFIG_HEADER
25495   #
25496 _ACEOF
25497
25498 # Transform confdefs.h into a sed script `conftest.defines', that
25499 # substitutes the proper values into config.h.in to produce config.h.
25500 rm -f conftest.defines conftest.tail
25501 # First, append a space to every undef/define line, to ease matching.
25502 echo 's/$/ /' >conftest.defines
25503 # Then, protect against being on the right side of a sed subst, or in
25504 # an unquoted here document, in config.status.  If some macros were
25505 # called several times there might be several #defines for the same
25506 # symbol, which is useless.  But do not sort them, since the last
25507 # AC_DEFINE must be honored.
25508 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25509 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25510 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25511 # PARAMS is the parameter list in the macro definition--in most cases, it's
25512 # just an empty string.
25513 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25514 ac_dB='\\)[      (].*,\\1define\\2'
25515 ac_dC=' '
25516 ac_dD=' ,'
25517
25518 uniq confdefs.h |
25519   sed -n '
25520         t rset
25521         :rset
25522         s/^[     ]*#[    ]*define[       ][      ]*//
25523         t ok
25524         d
25525         :ok
25526         s/[\\&,]/\\&/g
25527         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25528         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25529   ' >>conftest.defines
25530
25531 # Remove the space that was appended to ease matching.
25532 # Then replace #undef with comments.  This is necessary, for
25533 # example, in the case of _POSIX_SOURCE, which is predefined and required
25534 # on some systems where configure will not decide to define it.
25535 # (The regexp can be short, since the line contains either #define or #undef.)
25536 echo 's/ $//
25537 s,^[     #]*u.*,/* & */,' >>conftest.defines
25538
25539 # Break up conftest.defines:
25540 ac_max_sed_lines=50
25541
25542 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25543 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25544 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25545 # et cetera.
25546 ac_in='$ac_file_inputs'
25547 ac_out='"$tmp/out1"'
25548 ac_nxt='"$tmp/out2"'
25549
25550 while :
25551 do
25552   # Write a here document:
25553     cat >>$CONFIG_STATUS <<_ACEOF
25554     # First, check the format of the line:
25555     cat >"\$tmp/defines.sed" <<\\CEOF
25556 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25557 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25558 b
25559 :def
25560 _ACEOF
25561   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25562   echo 'CEOF
25563     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25564   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25565   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25566   grep . conftest.tail >/dev/null || break
25567   rm -f conftest.defines
25568   mv conftest.tail conftest.defines
25569 done
25570 rm -f conftest.defines conftest.tail
25571
25572 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25573 cat >>$CONFIG_STATUS <<\_ACEOF
25574   if test x"$ac_file" != x-; then
25575     echo "/* $configure_input  */" >"$tmp/config.h"
25576     cat "$ac_result" >>"$tmp/config.h"
25577     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25578       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25579 echo "$as_me: $ac_file is unchanged" >&6;}
25580     else
25581       rm -f $ac_file
25582       mv "$tmp/config.h" $ac_file
25583     fi
25584   else
25585     echo "/* $configure_input  */"
25586     cat "$ac_result"
25587   fi
25588   rm -f "$tmp/out12"
25589  ;;
25590
25591   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25592 echo "$as_me: executing $ac_file commands" >&6;}
25593  ;;
25594   esac
25595
25596
25597   case $ac_file$ac_mode in
25598     "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25599 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25600     "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25601 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25602     "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25603 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25604     "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25605 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25606     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25607 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25608     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25609 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25610
25611   esac
25612 done # for ac_tag
25613
25614
25615 { (exit 0); exit 0; }
25616 _ACEOF
25617 chmod +x $CONFIG_STATUS
25618 ac_clean_files=$ac_clean_files_save
25619
25620
25621 # configure is writing to config.log, and then calls config.status.
25622 # config.status does its own redirection, appending to config.log.
25623 # Unfortunately, on DOS this fails, as config.log is still kept open
25624 # by configure, so config.status won't be able to write to it; its
25625 # output is simply discarded.  So we exec the FD to /dev/null,
25626 # effectively closing config.log, so it can be properly (re)opened and
25627 # appended to by config.status.  When coming back to configure, we
25628 # need to make the FD available again.
25629 if test "$no_create" != yes; then
25630   ac_cs_success=:
25631   ac_config_status_args=
25632   test "$silent" = yes &&
25633     ac_config_status_args="$ac_config_status_args --quiet"
25634   exec 5>/dev/null
25635   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25636   exec 5>>config.log
25637   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25638   # would make configure fail if this is the last instruction.
25639   $ac_cs_success || { (exit 1); exit 1; }
25640 fi
25641
25642
25643
25644 if test "$verbose" = "yes"
25645 then
25646     if test "$ac_cv_header_cups_cups_h" != "yes"
25647   then
25648     echo >&2
25649     { echo "$as_me:$LINENO: libcups development files not found." >&5
25650 echo "$as_me: libcups development files not found." >&6;}
25651     { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
25652 echo "$as_me: Wine will be built without CUPS support." >&6;}
25653   fi
25654
25655
25656     if test "$ac_cv_header_gphoto2_camera_h" != "yes"
25657   then
25658     echo >&2
25659     { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
25660 echo "$as_me: libgphoto2 development files not found." >&6;}
25661     if test "$ac_cv_header_sane_sane_h" = "yes"
25662     then
25663       { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
25664 echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
25665     else
25666       { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
25667 echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
25668     fi
25669   fi
25670
25671       if test "$ac_cv_header_hal_libhal_h" != "yes"
25672   then
25673     echo >&2
25674     { echo "$as_me:$LINENO: libhal development files not found." >&5
25675 echo "$as_me: libhal development files not found." >&6;}
25676     { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
25677 echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
25678   fi
25679
25680     if test "$ac_cv_header_unicode_ubidi_h" != "yes"
25681   then
25682     echo >&2
25683     { echo "$as_me:$LINENO: libicu development files not found." >&5
25684 echo "$as_me: libicu development files not found." >&6;}
25685     { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
25686 echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
25687   fi
25688
25689     if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
25690   then
25691     echo >&2
25692     { echo "$as_me:$LINENO: liblcms development files not found." >&5
25693 echo "$as_me: liblcms development files not found." >&6;}
25694     { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
25695 echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
25696   fi
25697
25698     if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
25699   then
25700     echo >&2
25701     { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
25702 echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
25703     { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
25704 echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
25705   fi
25706
25707     if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
25708   then
25709     echo >&2
25710     { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
25711 echo "$as_me: lib(n)curses development files not found." >&6;}
25712     { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
25713 echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
25714   fi
25715
25716     if test "$ac_cv_header_sane_sane_h" != "yes"
25717   then
25718     echo >&2
25719     { echo "$as_me:$LINENO: libsane development files not found." >&5
25720 echo "$as_me: libsane development files not found." >&6;}
25721     { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
25722 echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
25723   fi
25724
25725     if test "$ac_cv_header_gif_lib_h" != "yes"
25726   then
25727     echo >&2
25728     { echo "$as_me:$LINENO: libungif development files not found." >&5
25729 echo "$as_me: libungif development files not found." >&6;}
25730     { echo "$as_me:$LINENO: Wine will be built without GIF support. (oleaut32.dll)" >&5
25731 echo "$as_me: Wine will be built without GIF support. (oleaut32.dll)" >&6;}
25732   fi
25733
25734       if test "$have_x" = "yes"
25735   then
25736         if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
25737     then
25738       echo >&2
25739       { echo "$as_me:$LINENO: libxext development files not found." >&5
25740 echo "$as_me: libxext development files not found." >&6;}
25741       { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
25742 echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
25743     fi
25744
25745         if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
25746     then
25747       echo >&2
25748       { echo "$as_me:$LINENO: libXrandr development files not found." >&5
25749 echo "$as_me: libXrandr development files not found." >&6;}
25750       { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
25751 echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
25752     fi
25753
25754         if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
25755     then
25756       echo >&2
25757       { echo "$as_me:$LINENO: libXrender development files not found." >&5
25758 echo "$as_me: libXrender development files not found." >&6;}
25759       { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
25760 echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
25761     fi
25762
25763         if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
25764     then
25765       echo >&2
25766       { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
25767 echo "$as_me: libXxf86vm development files not found." >&6;}
25768       { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
25769 echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
25770     fi
25771   fi
25772
25773     if test "$ac_cv_header_libxml_parser_h" != "yes"
25774   then
25775     echo >&2
25776     { echo "$as_me:$LINENO: libxml2 development files not found." >&5
25777 echo "$as_me: libxml2 development files not found." >&6;}
25778     { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
25779 echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
25780   fi
25781
25782     if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
25783   then
25784     echo >&2
25785     { echo "$as_me:$LINENO: libxslt development files not found." >&5
25786 echo "$as_me: libxslt development files not found." >&6;}
25787     { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
25788 echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
25789   fi
25790 fi
25791
25792
25793 if test "$have_x" = "no"
25794 then
25795   echo >&2
25796   { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25797 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25798   { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25799 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25800   { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25801 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25802   { echo "$as_me:$LINENO: WARNING:  packages of Xlib/Xfree86 at the very least." >&5
25803 echo "$as_me: WARNING:  packages of Xlib/Xfree86 at the very least." >&2;}
25804 fi
25805
25806 if test "$wine_cv_opengl_headers_found" = "no" -o "$wine_cv_opengl_header_version_OK" = "no" -o "$wine_cv_opengl_libs_found" = "no"
25807 then
25808   echo >&2
25809   { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
25810 echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
25811   { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
25812 echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
25813   if test "$wine_cv_opengl_headers_found" = "no"
25814   then
25815     { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
25816 echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
25817   fi
25818   if test "$wine_cv_opengl_header_version_OK" = "no"
25819   then
25820     { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25821 echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
25822   fi
25823   if test "$wine_cv_opengl_libs_found" = "no"
25824   then
25825     { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
25826 echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
25827   fi
25828 fi
25829
25830 if test "$wine_cv_msg_freetype" = "yes"
25831 then
25832   echo >&2
25833   { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25834 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25835   { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25836 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25837   { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25838 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25839   { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25840 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
25841 fi
25842
25843 if test -z "$FONTSSUBDIRS"
25844 then
25845   echo >&2
25846   if test "$FONTFORGE" = "false"
25847   then
25848     { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
25849 echo "$as_me: WARNING: FontForge is missing." >&2;}
25850   else
25851     { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
25852 echo "$as_me: WARNING: FreeType is missing." >&2;}
25853   fi
25854   { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
25855 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
25856 fi
25857
25858 if test -z "$ALSALIBS" -a \
25859         -z "$ARTSC_LIBS" -a \
25860         -z "$AUDIOIOLIBS" -a \
25861         -z "$NASLIBS" -a \
25862         -z "$ESD_LIBS" -a \
25863         -z "$ac_cv_lib_soname_jack" -a \
25864         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
25865         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
25866         "$ac_cv_header_soundcard_h" != "yes"
25867 then
25868   echo >&2
25869   { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
25870 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
25871   { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
25872 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
25873   { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
25874 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
25875 fi
25876
25877 echo
25878 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
25879 echo
25880