configure: Only link against libpoll where really necessary.
[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.19.
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.19'
563 PACKAGE_STRING='Wine 0.9.19'
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 DLLIBS
738 LDSHARED
739 LDDLLFLAGS
740 LIBEXT
741 IMPLIBEXT
742 DLLTOOL
743 DLLWRAP
744 LDEXECFLAGS
745 LDEXERPATH
746 LDDLLRPATH
747 COREFOUNDATIONLIB
748 IOKITLIB
749 COREAUDIO
750 CROSSTEST
751 CROSSCC
752 CROSSWINDRES
753 LDPATH
754 CRTLIBS
755 SOCKETLIBS
756 MAIN_BINARY
757 EXTRA_BINARIES
758 LDD
759 LIBPOLL
760 LIBOBJS
761 LTLIBOBJS'
762 ac_subst_files='MAKE_RULES
763 MAKE_DLL_RULES
764 MAKE_IMPLIB_RULES
765 MAKE_TEST_RULES
766 MAKE_PROG_RULES'
767       ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 CPPFLAGS
774 CXX
775 CXXFLAGS
776 CCC
777 XMKMF
778 CPP'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831   # If the previous option needs an argument, assign it.
832   if test -n "$ac_prev"; then
833     eval $ac_prev=\$ac_option
834     ac_prev=
835     continue
836   fi
837
838   case $ac_option in
839   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840   *)    ac_optarg=yes ;;
841   esac
842
843   # Accept the important Cygnus configure options, so we can diagnose typos.
844
845   case $ac_dashdash$ac_option in
846   --)
847     ac_dashdash=yes ;;
848
849   -bindir | --bindir | --bindi | --bind | --bin | --bi)
850     ac_prev=bindir ;;
851   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852     bindir=$ac_optarg ;;
853
854   -build | --build | --buil | --bui | --bu)
855     ac_prev=build_alias ;;
856   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857     build_alias=$ac_optarg ;;
858
859   -cache-file | --cache-file | --cache-fil | --cache-fi \
860   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861     ac_prev=cache_file ;;
862   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864     cache_file=$ac_optarg ;;
865
866   --config-cache | -C)
867     cache_file=config.cache ;;
868
869   -datadir | --datadir | --datadi | --datad)
870     ac_prev=datadir ;;
871   -datadir=* | --datadir=* | --datadi=* | --datad=*)
872     datadir=$ac_optarg ;;
873
874   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875   | --dataroo | --dataro | --datar)
876     ac_prev=datarootdir ;;
877   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879     datarootdir=$ac_optarg ;;
880
881   -disable-* | --disable-*)
882     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883     # Reject names that are not valid shell variable names.
884     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
885       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
886    { (exit 1); exit 1; }; }
887     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
888     eval enable_$ac_feature=no ;;
889
890   -docdir | --docdir | --docdi | --doc | --do)
891     ac_prev=docdir ;;
892   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893     docdir=$ac_optarg ;;
894
895   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896     ac_prev=dvidir ;;
897   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898     dvidir=$ac_optarg ;;
899
900   -enable-* | --enable-*)
901     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902     # Reject names that are not valid shell variable names.
903     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
904       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905    { (exit 1); exit 1; }; }
906     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
907     eval enable_$ac_feature=\$ac_optarg ;;
908
909   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911   | --exec | --exe | --ex)
912     ac_prev=exec_prefix ;;
913   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915   | --exec=* | --exe=* | --ex=*)
916     exec_prefix=$ac_optarg ;;
917
918   -gas | --gas | --ga | --g)
919     # Obsolete; use --with-gas.
920     with_gas=yes ;;
921
922   -help | --help | --hel | --he | -h)
923     ac_init_help=long ;;
924   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925     ac_init_help=recursive ;;
926   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927     ac_init_help=short ;;
928
929   -host | --host | --hos | --ho)
930     ac_prev=host_alias ;;
931   -host=* | --host=* | --hos=* | --ho=*)
932     host_alias=$ac_optarg ;;
933
934   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935     ac_prev=htmldir ;;
936   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937   | --ht=*)
938     htmldir=$ac_optarg ;;
939
940   -includedir | --includedir | --includedi | --included | --include \
941   | --includ | --inclu | --incl | --inc)
942     ac_prev=includedir ;;
943   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944   | --includ=* | --inclu=* | --incl=* | --inc=*)
945     includedir=$ac_optarg ;;
946
947   -infodir | --infodir | --infodi | --infod | --info | --inf)
948     ac_prev=infodir ;;
949   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950     infodir=$ac_optarg ;;
951
952   -libdir | --libdir | --libdi | --libd)
953     ac_prev=libdir ;;
954   -libdir=* | --libdir=* | --libdi=* | --libd=*)
955     libdir=$ac_optarg ;;
956
957   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958   | --libexe | --libex | --libe)
959     ac_prev=libexecdir ;;
960   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961   | --libexe=* | --libex=* | --libe=*)
962     libexecdir=$ac_optarg ;;
963
964   -localedir | --localedir | --localedi | --localed | --locale)
965     ac_prev=localedir ;;
966   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967     localedir=$ac_optarg ;;
968
969   -localstatedir | --localstatedir | --localstatedi | --localstated \
970   | --localstate | --localstat | --localsta | --localst | --locals)
971     ac_prev=localstatedir ;;
972   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974     localstatedir=$ac_optarg ;;
975
976   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977     ac_prev=mandir ;;
978   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979     mandir=$ac_optarg ;;
980
981   -nfp | --nfp | --nf)
982     # Obsolete; use --without-fp.
983     with_fp=no ;;
984
985   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986   | --no-cr | --no-c | -n)
987     no_create=yes ;;
988
989   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991     no_recursion=yes ;;
992
993   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995   | --oldin | --oldi | --old | --ol | --o)
996     ac_prev=oldincludedir ;;
997   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000     oldincludedir=$ac_optarg ;;
1001
1002   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003     ac_prev=prefix ;;
1004   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005     prefix=$ac_optarg ;;
1006
1007   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008   | --program-pre | --program-pr | --program-p)
1009     ac_prev=program_prefix ;;
1010   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012     program_prefix=$ac_optarg ;;
1013
1014   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015   | --program-suf | --program-su | --program-s)
1016     ac_prev=program_suffix ;;
1017   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019     program_suffix=$ac_optarg ;;
1020
1021   -program-transform-name | --program-transform-name \
1022   | --program-transform-nam | --program-transform-na \
1023   | --program-transform-n | --program-transform- \
1024   | --program-transform | --program-transfor \
1025   | --program-transfo | --program-transf \
1026   | --program-trans | --program-tran \
1027   | --progr-tra | --program-tr | --program-t)
1028     ac_prev=program_transform_name ;;
1029   -program-transform-name=* | --program-transform-name=* \
1030   | --program-transform-nam=* | --program-transform-na=* \
1031   | --program-transform-n=* | --program-transform-=* \
1032   | --program-transform=* | --program-transfor=* \
1033   | --program-transfo=* | --program-transf=* \
1034   | --program-trans=* | --program-tran=* \
1035   | --progr-tra=* | --program-tr=* | --program-t=*)
1036     program_transform_name=$ac_optarg ;;
1037
1038   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039     ac_prev=pdfdir ;;
1040   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041     pdfdir=$ac_optarg ;;
1042
1043   -psdir | --psdir | --psdi | --psd | --ps)
1044     ac_prev=psdir ;;
1045   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046     psdir=$ac_optarg ;;
1047
1048   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049   | -silent | --silent | --silen | --sile | --sil)
1050     silent=yes ;;
1051
1052   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053     ac_prev=sbindir ;;
1054   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055   | --sbi=* | --sb=*)
1056     sbindir=$ac_optarg ;;
1057
1058   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060   | --sharedst | --shareds | --shared | --share | --shar \
1061   | --sha | --sh)
1062     ac_prev=sharedstatedir ;;
1063   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066   | --sha=* | --sh=*)
1067     sharedstatedir=$ac_optarg ;;
1068
1069   -site | --site | --sit)
1070     ac_prev=site ;;
1071   -site=* | --site=* | --sit=*)
1072     site=$ac_optarg ;;
1073
1074   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075     ac_prev=srcdir ;;
1076   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077     srcdir=$ac_optarg ;;
1078
1079   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080   | --syscon | --sysco | --sysc | --sys | --sy)
1081     ac_prev=sysconfdir ;;
1082   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084     sysconfdir=$ac_optarg ;;
1085
1086   -target | --target | --targe | --targ | --tar | --ta | --t)
1087     ac_prev=target_alias ;;
1088   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089     target_alias=$ac_optarg ;;
1090
1091   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092     verbose=yes ;;
1093
1094   -version | --version | --versio | --versi | --vers | -V)
1095     ac_init_version=: ;;
1096
1097   -with-* | --with-*)
1098     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1101       { echo "$as_me: error: invalid package name: $ac_package" >&2
1102    { (exit 1); exit 1; }; }
1103     ac_package=`echo $ac_package| sed 's/-/_/g'`
1104     eval with_$ac_package=\$ac_optarg ;;
1105
1106   -without-* | --without-*)
1107     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108     # Reject names that are not valid shell variable names.
1109     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1110       { echo "$as_me: error: invalid package name: $ac_package" >&2
1111    { (exit 1); exit 1; }; }
1112     ac_package=`echo $ac_package | sed 's/-/_/g'`
1113     eval with_$ac_package=no ;;
1114
1115   --x)
1116     # Obsolete; use --with-x.
1117     with_x=yes ;;
1118
1119   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120   | --x-incl | --x-inc | --x-in | --x-i)
1121     ac_prev=x_includes ;;
1122   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124     x_includes=$ac_optarg ;;
1125
1126   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128     ac_prev=x_libraries ;;
1129   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131     x_libraries=$ac_optarg ;;
1132
1133   -*) { echo "$as_me: error: unrecognized option: $ac_option
1134 Try \`$0 --help' for more information." >&2
1135    { (exit 1); exit 1; }; }
1136     ;;
1137
1138   *=*)
1139     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1143    { (exit 1); exit 1; }; }
1144     eval $ac_envvar=\$ac_optarg
1145     export $ac_envvar ;;
1146
1147   *)
1148     # FIXME: should be removed in autoconf 3.0.
1149     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153     ;;
1154
1155   esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160   { echo "$as_me: error: missing argument to $ac_option" >&2
1161    { (exit 1); exit 1; }; }
1162 fi
1163
1164 # Be sure to have absolute directory names.
1165 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166                 datadir sysconfdir sharedstatedir localstatedir includedir \
1167                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168                 libdir localedir mandir
1169 do
1170   eval ac_val=\$$ac_var
1171   case $ac_val in
1172     [\\/$]* | ?:[\\/]* )  continue;;
1173     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174   esac
1175   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1176    { (exit 1); exit 1; }; }
1177 done
1178
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1185
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188   if test "x$build_alias" = x; then
1189     cross_compiling=maybe
1190     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191     If a cross compiler is detected then cross compile mode will be used." >&2
1192   elif test "x$build_alias" != "x$host_alias"; then
1193     cross_compiling=yes
1194   fi
1195 fi
1196
1197 ac_tool_prefix=
1198 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199
1200 test "$silent" = yes && exec 6>/dev/null
1201
1202
1203 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di=`ls -di .` &&
1205 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206   { echo "$as_me: error: Working directory cannot be determined" >&2
1207    { (exit 1); exit 1; }; }
1208 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209   { echo "$as_me: error: pwd does not report name of working directory" >&2
1210    { (exit 1); exit 1; }; }
1211
1212
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215   ac_srcdir_defaulted=yes
1216   # Try the directory containing this script, then the parent directory.
1217   ac_confdir=`$as_dirname -- "$0" ||
1218 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219          X"$0" : 'X\(//\)[^/]' \| \
1220          X"$0" : 'X\(//\)$' \| \
1221          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 echo X"$0" |
1223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224             s//\1/
1225             q
1226           }
1227           /^X\(\/\/\)[^/].*/{
1228             s//\1/
1229             q
1230           }
1231           /^X\(\/\/\)$/{
1232             s//\1/
1233             q
1234           }
1235           /^X\(\/\).*/{
1236             s//\1/
1237             q
1238           }
1239           s/.*/./; q'`
1240   srcdir=$ac_confdir
1241   if test ! -r "$srcdir/$ac_unique_file"; then
1242     srcdir=..
1243   fi
1244 else
1245   ac_srcdir_defaulted=no
1246 fi
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1250    { (exit 1); exit 1; }; }
1251 fi
1252 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 ac_abs_confdir=`(
1254         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1255    { (exit 1); exit 1; }; }
1256         pwd)`
1257 # When building in place, set srcdir=.
1258 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259   srcdir=.
1260 fi
1261 # Remove unnecessary trailing slashes from srcdir.
1262 # Double slashes in file names in object file debugging info
1263 # mess up M-x gdb in Emacs.
1264 case $srcdir in
1265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 esac
1267 for ac_var in $ac_precious_vars; do
1268   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269   eval ac_env_${ac_var}_value=\$${ac_var}
1270   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272 done
1273
1274 #
1275 # Report the --help message.
1276 #
1277 if test "$ac_init_help" = "long"; then
1278   # Omit some internal or obsolete options to make the list less imposing.
1279   # This message is too long to be a string in the A/UX 3.1 sh.
1280   cat <<_ACEOF
1281 \`configure' configures Wine 0.9.19 to adapt to many kinds of systems.
1282
1283 Usage: $0 [OPTION]... [VAR=VALUE]...
1284
1285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286 VAR=VALUE.  See below for descriptions of some of the useful variables.
1287
1288 Defaults for the options are specified in brackets.
1289
1290 Configuration:
1291   -h, --help              display this help and exit
1292       --help=short        display options specific to this package
1293       --help=recursive    display the short help of all the included packages
1294   -V, --version           display version information and exit
1295   -q, --quiet, --silent   do not print \`checking...' messages
1296       --cache-file=FILE   cache test results in FILE [disabled]
1297   -C, --config-cache      alias for \`--cache-file=config.cache'
1298   -n, --no-create         do not create output files
1299       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1300
1301 Installation directories:
1302   --prefix=PREFIX         install architecture-independent files in PREFIX
1303                           [$ac_default_prefix]
1304   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1305                           [PREFIX]
1306
1307 By default, \`make install' will install all the files in
1308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310 for instance \`--prefix=\$HOME'.
1311
1312 For better control, use the options below.
1313
1314 Fine tuning of the installation directories:
1315   --bindir=DIR           user executables [EPREFIX/bin]
1316   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1317   --libexecdir=DIR       program executables [EPREFIX/libexec]
1318   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1319   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1320   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1321   --libdir=DIR           object code libraries [EPREFIX/lib]
1322   --includedir=DIR       C header files [PREFIX/include]
1323   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1324   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1325   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1326   --infodir=DIR          info documentation [DATAROOTDIR/info]
1327   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1328   --mandir=DIR           man documentation [DATAROOTDIR/man]
1329   --docdir=DIR           documentation root [DATAROOTDIR/doc/wine]
1330   --htmldir=DIR          html documentation [DOCDIR]
1331   --dvidir=DIR           dvi documentation [DOCDIR]
1332   --pdfdir=DIR           pdf documentation [DOCDIR]
1333   --psdir=DIR            ps documentation [DOCDIR]
1334 _ACEOF
1335
1336   cat <<\_ACEOF
1337
1338 X features:
1339   --x-includes=DIR    X include files are in DIR
1340   --x-libraries=DIR   X library files are in DIR
1341
1342 System types:
1343   --build=BUILD     configure for building on BUILD [guessed]
1344   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1346 fi
1347
1348 if test -n "$ac_init_help"; then
1349   case $ac_init_help in
1350      short | recursive ) echo "Configuration of Wine 0.9.19:";;
1351    esac
1352   cat <<\_ACEOF
1353
1354 Optional Features:
1355   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1356   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1357   --disable-win16         do not include Win16 support
1358   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1359                           binaries)
1360
1361 Optional Packages:
1362   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1363   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1364   --without-opengl        do not use OpenGL
1365   --without-curses        do not use curses
1366   --with-wine-tools=<dir> use Wine tools from directory <dir>
1367   --with-x                use the X Window System
1368
1369 Some influential environment variables:
1370   CC          C compiler command
1371   CFLAGS      C compiler flags
1372   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1373               nonstandard directory <lib dir>
1374   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375               you have headers in a nonstandard directory <include dir>
1376   CXX         C++ compiler command
1377   CXXFLAGS    C++ compiler flags
1378   XMKMF       Path to xmkmf, Makefile generator for X Window System
1379   CPP         C preprocessor
1380
1381 Use these variables to override the choices made by `configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1383
1384 Report bugs to <wine-devel@winehq.org>.
1385 _ACEOF
1386 ac_status=$?
1387 fi
1388
1389 if test "$ac_init_help" = "recursive"; then
1390   # If there are subdirs, report their specific --help.
1391   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392     test -d "$ac_dir" || continue
1393     ac_builddir=.
1394
1395 case "$ac_dir" in
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 *)
1398   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1399   # A ".." for each directory in $ac_dir_suffix.
1400   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1401   case $ac_top_builddir_sub in
1402   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404   esac ;;
1405 esac
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1410
1411 case $srcdir in
1412   .)  # We are building in place.
1413     ac_srcdir=.
1414     ac_top_srcdir=$ac_top_builddir_sub
1415     ac_abs_top_srcdir=$ac_pwd ;;
1416   [\\/]* | ?:[\\/]* )  # Absolute name.
1417     ac_srcdir=$srcdir$ac_dir_suffix;
1418     ac_top_srcdir=$srcdir
1419     ac_abs_top_srcdir=$srcdir ;;
1420   *) # Relative name.
1421     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422     ac_top_srcdir=$ac_top_build_prefix$srcdir
1423     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 esac
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426
1427     cd "$ac_dir" || { ac_status=$?; continue; }
1428     # Check for guested configure.
1429     if test -f "$ac_srcdir/configure.gnu"; then
1430       echo &&
1431       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432     elif test -f "$ac_srcdir/configure"; then
1433       echo &&
1434       $SHELL "$ac_srcdir/configure" --help=recursive
1435     else
1436       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437     fi || ac_status=$?
1438     cd "$ac_pwd" || { ac_status=$?; break; }
1439   done
1440 fi
1441
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1444   cat <<\_ACEOF
1445 Wine configure 0.9.19
1446 generated by GNU Autoconf 2.60a
1447
1448 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1449 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1452 _ACEOF
1453   exit
1454 fi
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1458
1459 It was created by Wine $as_me 0.9.19, which was
1460 generated by GNU Autoconf 2.60a.  Invocation command line was
1461
1462   $ $0 $@
1463
1464 _ACEOF
1465 exec 5>>config.log
1466 {
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1471
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1480
1481 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1482 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1485 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1486 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1487 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1488
1489 _ASUNAME
1490
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494   IFS=$as_save_IFS
1495   test -z "$as_dir" && as_dir=.
1496   echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1499
1500 } >&5
1501
1502 cat >&5 <<_ACEOF
1503
1504
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1508
1509 _ACEOF
1510
1511
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_must_keep_next=false
1521 for ac_pass in 1 2
1522 do
1523   for ac_arg
1524   do
1525     case $ac_arg in
1526     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528     | -silent | --silent | --silen | --sile | --sil)
1529       continue ;;
1530     *\'*)
1531       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532     esac
1533     case $ac_pass in
1534     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535     2)
1536       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1537       if test $ac_must_keep_next = true; then
1538         ac_must_keep_next=false # Got value, back to normal.
1539       else
1540         case $ac_arg in
1541           *=* | --config-cache | -C | -disable-* | --disable-* \
1542           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544           | -with-* | --with-* | -without-* | --without-* | --x)
1545             case "$ac_configure_args0 " in
1546               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547             esac
1548             ;;
1549           -* ) ac_must_keep_next=true ;;
1550         esac
1551       fi
1552       ac_configure_args="$ac_configure_args '$ac_arg'"
1553       ;;
1554     esac
1555   done
1556 done
1557 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1558 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log.  We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566   # Save into config.log some information that might help in debugging.
1567   {
1568     echo
1569
1570     cat <<\_ASBOX
1571 ## ---------------- ##
1572 ## Cache variables. ##
1573 ## ---------------- ##
1574 _ASBOX
1575     echo
1576     # The following way of writing the cache mishandles newlines in values,
1577 (
1578   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1579     eval ac_val=\$$ac_var
1580     case $ac_val in #(
1581     *${as_nl}*)
1582       case $ac_var in #(
1583       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1584 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585       esac
1586       case $ac_var in #(
1587       _ | IFS | as_nl) ;; #(
1588       *) $as_unset $ac_var ;;
1589       esac ;;
1590     esac
1591   done
1592   (set) 2>&1 |
1593     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1594     *${as_nl}ac_space=\ *)
1595       sed -n \
1596         "s/'\''/'\''\\\\'\'''\''/g;
1597           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598       ;; #(
1599     *)
1600       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601       ;;
1602     esac |
1603     sort
1604 )
1605     echo
1606
1607     cat <<\_ASBOX
1608 ## ----------------- ##
1609 ## Output variables. ##
1610 ## ----------------- ##
1611 _ASBOX
1612     echo
1613     for ac_var in $ac_subst_vars
1614     do
1615       eval ac_val=\$$ac_var
1616       case $ac_val in
1617       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618       esac
1619       echo "$ac_var='\''$ac_val'\''"
1620     done | sort
1621     echo
1622
1623     if test -n "$ac_subst_files"; then
1624       cat <<\_ASBOX
1625 ## ------------------- ##
1626 ## File substitutions. ##
1627 ## ------------------- ##
1628 _ASBOX
1629       echo
1630       for ac_var in $ac_subst_files
1631       do
1632         eval ac_val=\$$ac_var
1633         case $ac_val in
1634         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635         esac
1636         echo "$ac_var='\''$ac_val'\''"
1637       done | sort
1638       echo
1639     fi
1640
1641     if test -s confdefs.h; then
1642       cat <<\_ASBOX
1643 ## ----------- ##
1644 ## confdefs.h. ##
1645 ## ----------- ##
1646 _ASBOX
1647       echo
1648       cat confdefs.h
1649       echo
1650     fi
1651     test "$ac_signal" != 0 &&
1652       echo "$as_me: caught signal $ac_signal"
1653     echo "$as_me: exit $exit_status"
1654   } >&5
1655   rm -f core *.core core.conftest.* &&
1656     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657     exit $exit_status
1658 ' 0
1659 for ac_signal in 1 2 13 15; do
1660   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1661 done
1662 ac_signal=0
1663
1664 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1665 rm -f -r conftest* confdefs.h
1666
1667 # Predefined preprocessor variables.
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_NAME "$PACKAGE_NAME"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1681 _ACEOF
1682
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_STRING "$PACKAGE_STRING"
1686 _ACEOF
1687
1688
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691 _ACEOF
1692
1693
1694 # Let the site file select an alternate cache file if it wants to.
1695 # Prefer explicitly selected file to automatically selected ones.
1696 if test -n "$CONFIG_SITE"; then
1697   set x "$CONFIG_SITE"
1698 elif test "x$prefix" != xNONE; then
1699   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1700 else
1701   set x "$ac_default_prefix/share/config.site" \
1702         "$ac_default_prefix/etc/config.site"
1703 fi
1704 shift
1705 for ac_site_file
1706 do
1707   if test -r "$ac_site_file"; then
1708     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1709 echo "$as_me: loading site script $ac_site_file" >&6;}
1710     sed 's/^/| /' "$ac_site_file" >&5
1711     . "$ac_site_file"
1712   fi
1713 done
1714
1715 if test -r "$cache_file"; then
1716   # Some versions of bash will fail to source /dev/null (special
1717   # files actually), so we avoid doing that.
1718   if test -f "$cache_file"; then
1719     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1720 echo "$as_me: loading cache $cache_file" >&6;}
1721     case $cache_file in
1722       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1723       *)                      . "./$cache_file";;
1724     esac
1725   fi
1726 else
1727   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1728 echo "$as_me: creating cache $cache_file" >&6;}
1729   >$cache_file
1730 fi
1731
1732 # Check that the precious variables saved in the cache have kept the same
1733 # value.
1734 ac_cache_corrupted=false
1735 for ac_var in $ac_precious_vars; do
1736   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1737   eval ac_new_set=\$ac_env_${ac_var}_set
1738   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1739   eval ac_new_val=\$ac_env_${ac_var}_value
1740   case $ac_old_set,$ac_new_set in
1741     set,)
1742       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1744       ac_cache_corrupted=: ;;
1745     ,set)
1746       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1747 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1748       ac_cache_corrupted=: ;;
1749     ,);;
1750     *)
1751       if test "x$ac_old_val" != "x$ac_new_val"; then
1752         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1753 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1754         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1755 echo "$as_me:   former value:  $ac_old_val" >&2;}
1756         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1757 echo "$as_me:   current value: $ac_new_val" >&2;}
1758         ac_cache_corrupted=:
1759       fi;;
1760   esac
1761   # Pass precious variables to config.status.
1762   if test "$ac_new_set" = set; then
1763     case $ac_new_val in
1764     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1765     *) ac_arg=$ac_var=$ac_new_val ;;
1766     esac
1767     case " $ac_configure_args " in
1768       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1769       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1770     esac
1771   fi
1772 done
1773 if $ac_cache_corrupted; then
1774   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1775 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1776   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1777 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1778    { (exit 1); exit 1; }; }
1779 fi
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
1805 ac_ext=c
1806 ac_cpp='$CPP $CPPFLAGS'
1807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1810
1811
1812
1813 ac_config_headers="$ac_config_headers include/config.h"
1814
1815 ac_aux_dir=
1816 for ac_dir in tools "$srcdir"/tools; do
1817   if test -f "$ac_dir/install-sh"; then
1818     ac_aux_dir=$ac_dir
1819     ac_install_sh="$ac_aux_dir/install-sh -c"
1820     break
1821   elif test -f "$ac_dir/install.sh"; then
1822     ac_aux_dir=$ac_dir
1823     ac_install_sh="$ac_aux_dir/install.sh -c"
1824     break
1825   elif test -f "$ac_dir/shtool"; then
1826     ac_aux_dir=$ac_dir
1827     ac_install_sh="$ac_aux_dir/shtool install -c"
1828     break
1829   fi
1830 done
1831 if test -z "$ac_aux_dir"; then
1832   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1833 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1834    { (exit 1); exit 1; }; }
1835 fi
1836
1837 # These three variables are undocumented and unsupported,
1838 # and are intended to be withdrawn in a future Autoconf release.
1839 # They can cause serious problems if a builder's source tree is in a directory
1840 # whose full name contains unusual characters.
1841 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1842 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1843 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1844
1845
1846
1847
1848 # Check whether --enable-win16 was given.
1849 if test "${enable_win16+set}" = set; then
1850   enableval=$enable_win16;
1851 fi
1852
1853 # Check whether --enable-win64 was given.
1854 if test "${enable_win64+set}" = set; then
1855   enableval=$enable_win64;
1856 fi
1857
1858
1859
1860 # Check whether --with-opengl was given.
1861 if test "${with_opengl+set}" = set; then
1862   withval=$with_opengl;
1863 fi
1864
1865
1866 # Check whether --with-curses was given.
1867 if test "${with_curses+set}" = set; then
1868   withval=$with_curses;
1869 fi
1870
1871
1872 # Check whether --with-wine-tools was given.
1873 if test "${with_wine_tools+set}" = set; then
1874   withval=$with_wine_tools;
1875 fi
1876
1877
1878 # Make sure we can run config.sub.
1879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1880   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1881 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1882    { (exit 1); exit 1; }; }
1883
1884 { echo "$as_me:$LINENO: checking build system type" >&5
1885 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1886 if test "${ac_cv_build+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889   ac_build_alias=$build_alias
1890 test "x$ac_build_alias" = x &&
1891   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1892 test "x$ac_build_alias" = x &&
1893   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1894 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1895    { (exit 1); exit 1; }; }
1896 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1897   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1898 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1899    { (exit 1); exit 1; }; }
1900
1901 fi
1902 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1903 echo "${ECHO_T}$ac_cv_build" >&6; }
1904 case $ac_cv_build in
1905 *-*-*) ;;
1906 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1907 echo "$as_me: error: invalid value of canonical build" >&2;}
1908    { (exit 1); exit 1; }; };;
1909 esac
1910 build=$ac_cv_build
1911 ac_save_IFS=$IFS; IFS='-'
1912 set x $ac_cv_build
1913 shift
1914 build_cpu=$1
1915 build_vendor=$2
1916 shift; shift
1917 # Remember, the first character of IFS is used to create $*,
1918 # except with old shells:
1919 build_os=$*
1920 IFS=$ac_save_IFS
1921 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1922
1923
1924 { echo "$as_me:$LINENO: checking host system type" >&5
1925 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1926 if test "${ac_cv_host+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   if test "x$host_alias" = x; then
1930   ac_cv_host=$ac_cv_build
1931 else
1932   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1933     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1935    { (exit 1); exit 1; }; }
1936 fi
1937
1938 fi
1939 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1940 echo "${ECHO_T}$ac_cv_host" >&6; }
1941 case $ac_cv_host in
1942 *-*-*) ;;
1943 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1944 echo "$as_me: error: invalid value of canonical host" >&2;}
1945    { (exit 1); exit 1; }; };;
1946 esac
1947 host=$ac_cv_host
1948 ac_save_IFS=$IFS; IFS='-'
1949 set x $ac_cv_host
1950 shift
1951 host_cpu=$1
1952 host_vendor=$2
1953 shift; shift
1954 # Remember, the first character of IFS is used to create $*,
1955 # except with old shells:
1956 host_os=$*
1957 IFS=$ac_save_IFS
1958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1959
1960
1961 case $host in
1962   x86_64*linux*)
1963     if test "x$enable_win64" != "xyes"
1964     then
1965       test -n "$CC" || CC="gcc -m32"
1966       test -n "$LD" || LD="ld -m elf_i386"
1967       test -n "$AS" || AS="as --32"
1968       host_cpu="i386"
1969     fi
1970     ;;
1971 esac
1972
1973 case $host_cpu in
1974   *i[3456789]86*)
1975     if test "x$enable_win16" != "xno"
1976     then
1977       enable_win16="yes"
1978     fi
1979     ;;
1980 esac
1981
1982 WIN16_FILES="\$(WIN16_FILES)"
1983
1984 WIN16_INSTALL="\$(WIN16_INSTALL)"
1985
1986 if test "x$enable_win16" != "xyes"
1987 then
1988   WIN16_FILES=""
1989   WIN16_INSTALL=""
1990 fi
1991
1992
1993 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1994 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1995 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1996 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   cat >conftest.make <<\_ACEOF
2000 SHELL = /bin/sh
2001 all:
2002         @echo '@@@%%%=$(MAKE)=@@@%%%'
2003 _ACEOF
2004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2005 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2006   *@@@%%%=?*=@@@%%%*)
2007     eval ac_cv_prog_make_${ac_make}_set=yes;;
2008   *)
2009     eval ac_cv_prog_make_${ac_make}_set=no;;
2010 esac
2011 rm -f conftest.make
2012 fi
2013 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2014   { echo "$as_me:$LINENO: result: yes" >&5
2015 echo "${ECHO_T}yes" >&6; }
2016   SET_MAKE=
2017 else
2018   { echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6; }
2020   SET_MAKE="MAKE=${MAKE-make}"
2021 fi
2022
2023 ac_ext=c
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 if test -n "$ac_tool_prefix"; then
2029   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034   echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036   if test -n "$CC"; then
2037   ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042   IFS=$as_save_IFS
2043   test -z "$as_dir" && as_dir=.
2044   for ac_exec_ext in '' $ac_executable_extensions; do
2045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2046     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048     break 2
2049   fi
2050 done
2051 done
2052 IFS=$as_save_IFS
2053
2054 fi
2055 fi
2056 CC=$ac_cv_prog_CC
2057 if test -n "$CC"; then
2058   { echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6; }
2060 else
2061   { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2063 fi
2064
2065
2066 fi
2067 if test -z "$ac_cv_prog_CC"; then
2068   ac_ct_CC=$CC
2069   # Extract the first word of "gcc", so it can be a program name with args.
2070 set dummy gcc; ac_word=$2
2071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074   echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076   if test -n "$ac_ct_CC"; then
2077   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2081 do
2082   IFS=$as_save_IFS
2083   test -z "$as_dir" && as_dir=.
2084   for ac_exec_ext in '' $ac_executable_extensions; do
2085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2086     ac_cv_prog_ac_ct_CC="gcc"
2087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088     break 2
2089   fi
2090 done
2091 done
2092 IFS=$as_save_IFS
2093
2094 fi
2095 fi
2096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097 if test -n "$ac_ct_CC"; then
2098   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099 echo "${ECHO_T}$ac_ct_CC" >&6; }
2100 else
2101   { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2103 fi
2104
2105   if test "x$ac_ct_CC" = x; then
2106     CC=""
2107   else
2108     case $cross_compiling:$ac_tool_warned in
2109 yes:)
2110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111 whose name does not start with the host triplet.  If you think this
2112 configuration is useful to you, please write to autoconf@gnu.org." >&5
2113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet.  If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116 ac_tool_warned=yes ;;
2117 esac
2118     CC=$ac_ct_CC
2119   fi
2120 else
2121   CC="$ac_cv_prog_CC"
2122 fi
2123
2124 if test -z "$CC"; then
2125           if test -n "$ac_tool_prefix"; then
2126     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2127 set dummy ${ac_tool_prefix}cc; ac_word=$2
2128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2130 if test "${ac_cv_prog_CC+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test -n "$CC"; then
2134   ac_cv_prog_CC="$CC" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2143     ac_cv_prog_CC="${ac_tool_prefix}cc"
2144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145     break 2
2146   fi
2147 done
2148 done
2149 IFS=$as_save_IFS
2150
2151 fi
2152 fi
2153 CC=$ac_cv_prog_CC
2154 if test -n "$CC"; then
2155   { echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6; }
2157 else
2158   { echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6; }
2160 fi
2161
2162
2163   fi
2164 fi
2165 if test -z "$CC"; then
2166   # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test -n "$CC"; then
2174   ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176   ac_prog_rejected=no
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2184     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185        ac_prog_rejected=yes
2186        continue
2187      fi
2188     ac_cv_prog_CC="cc"
2189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190     break 2
2191   fi
2192 done
2193 done
2194 IFS=$as_save_IFS
2195
2196 if test $ac_prog_rejected = yes; then
2197   # We found a bogon in the path, so make sure we never use it.
2198   set dummy $ac_cv_prog_CC
2199   shift
2200   if test $# != 0; then
2201     # We chose a different compiler from the bogus one.
2202     # However, it has the same basename, so the bogon will be chosen
2203     # first if we set CC to just the basename; use the full file name.
2204     shift
2205     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2206   fi
2207 fi
2208 fi
2209 fi
2210 CC=$ac_cv_prog_CC
2211 if test -n "$CC"; then
2212   { echo "$as_me:$LINENO: result: $CC" >&5
2213 echo "${ECHO_T}$CC" >&6; }
2214 else
2215   { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2217 fi
2218
2219
2220 fi
2221 if test -z "$CC"; then
2222   if test -n "$ac_tool_prefix"; then
2223   for ac_prog in cl.exe
2224   do
2225     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   if test -n "$CC"; then
2233   ac_cv_prog_CC="$CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238   IFS=$as_save_IFS
2239   test -z "$as_dir" && as_dir=.
2240   for ac_exec_ext in '' $ac_executable_extensions; do
2241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2242     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244     break 2
2245   fi
2246 done
2247 done
2248 IFS=$as_save_IFS
2249
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254   { echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6; }
2256 else
2257   { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2259 fi
2260
2261
2262     test -n "$CC" && break
2263   done
2264 fi
2265 if test -z "$CC"; then
2266   ac_ct_CC=$CC
2267   for ac_prog in cl.exe
2268 do
2269   # Extract the first word of "$ac_prog", so it can be a program name with args.
2270 set dummy $ac_prog; ac_word=$2
2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274   echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276   if test -n "$ac_ct_CC"; then
2277   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284   for ac_exec_ext in '' $ac_executable_extensions; do
2285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2286     ac_cv_prog_ac_ct_CC="$ac_prog"
2287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288     break 2
2289   fi
2290 done
2291 done
2292 IFS=$as_save_IFS
2293
2294 fi
2295 fi
2296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297 if test -n "$ac_ct_CC"; then
2298   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299 echo "${ECHO_T}$ac_ct_CC" >&6; }
2300 else
2301   { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2303 fi
2304
2305
2306   test -n "$ac_ct_CC" && break
2307 done
2308
2309   if test "x$ac_ct_CC" = x; then
2310     CC=""
2311   else
2312     case $cross_compiling:$ac_tool_warned in
2313 yes:)
2314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet.  If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&5
2317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet.  If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320 ac_tool_warned=yes ;;
2321 esac
2322     CC=$ac_ct_CC
2323   fi
2324 fi
2325
2326 fi
2327
2328
2329 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: no acceptable C compiler found in \$PATH
2332 See \`config.log' for more details." >&2;}
2333    { (exit 1); exit 1; }; }
2334
2335 # Provide some information about the compiler.
2336 echo "$as_me:$LINENO: checking for C compiler version" >&5
2337 ac_compiler=`set X $ac_compile; echo $2`
2338 { (ac_try="$ac_compiler --version >&5"
2339 case "(($ac_try" in
2340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341   *) ac_try_echo=$ac_try;;
2342 esac
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344   (eval "$ac_compiler --version >&5") 2>&5
2345   ac_status=$?
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); }
2348 { (ac_try="$ac_compiler -v >&5"
2349 case "(($ac_try" in
2350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351   *) ac_try_echo=$ac_try;;
2352 esac
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354   (eval "$ac_compiler -v >&5") 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }
2358 { (ac_try="$ac_compiler -V >&5"
2359 case "(($ac_try" in
2360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361   *) ac_try_echo=$ac_try;;
2362 esac
2363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364   (eval "$ac_compiler -V >&5") 2>&5
2365   ac_status=$?
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); }
2368
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h.  */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h.  */
2375
2376 int
2377 main ()
2378 {
2379
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 ac_clean_files_save=$ac_clean_files
2385 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2386 # Try to create an executable without -o first, disregard a.out.
2387 # It will help us diagnose broken compilers, and finding out an intuition
2388 # of exeext.
2389 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2390 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2391 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2392 #
2393 # List of possible output files, starting from the most likely.
2394 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2395 # only as a last resort.  b.out is created by i960 compilers.
2396 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2397 #
2398 # The IRIX 6 linker writes into existing files which may not be
2399 # executable, retaining their permissions.  Remove them first so a
2400 # subsequent execution test works.
2401 ac_rmfiles=
2402 for ac_file in $ac_files
2403 do
2404   case $ac_file in
2405     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2406     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2407   esac
2408 done
2409 rm -f $ac_rmfiles
2410
2411 if { (ac_try="$ac_link_default"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417   (eval "$ac_link_default") 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; then
2421   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2422 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2423 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2424 # so that the user can short-circuit this test for compilers unknown to
2425 # Autoconf.
2426 for ac_file in $ac_files ''
2427 do
2428   test -f "$ac_file" || continue
2429   case $ac_file in
2430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2431         ;;
2432     [ab].out )
2433         # We found the default executable, but exeext='' is most
2434         # certainly right.
2435         break;;
2436     *.* )
2437         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438         then :; else
2439            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440         fi
2441         # We set ac_cv_exeext here because the later test for it is not
2442         # safe: cross compilers may not add the suffix if given an `-o'
2443         # argument, so we may need to know it at that point already.
2444         # Even if this section looks crufty: it has the advantage of
2445         # actually working.
2446         break;;
2447     * )
2448         break;;
2449   esac
2450 done
2451 test "$ac_cv_exeext" = no && ac_cv_exeext=
2452
2453 else
2454   ac_file=''
2455 fi
2456
2457 { echo "$as_me:$LINENO: result: $ac_file" >&5
2458 echo "${ECHO_T}$ac_file" >&6; }
2459 if test -z "$ac_file"; then
2460   echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: C compiler cannot create executables
2466 See \`config.log' for more details." >&2;}
2467    { (exit 77); exit 77; }; }
2468 fi
2469
2470 ac_exeext=$ac_cv_exeext
2471
2472 # Check that the compiler produces executables we can run.  If not, either
2473 # the compiler is broken, or we cross compile.
2474 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2475 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2476 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2477 # If not cross compiling, check that we can run a simple program.
2478 if test "$cross_compiling" != yes; then
2479   if { ac_try='./$ac_file'
2480   { (case "(($ac_try" in
2481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482   *) ac_try_echo=$ac_try;;
2483 esac
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485   (eval "$ac_try") 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489     cross_compiling=no
2490   else
2491     if test "$cross_compiling" = maybe; then
2492         cross_compiling=yes
2493     else
2494         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2495 If you meant to cross compile, use \`--host'.
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: cannot run C compiled programs.
2498 If you meant to cross compile, use \`--host'.
2499 See \`config.log' for more details." >&2;}
2500    { (exit 1); exit 1; }; }
2501     fi
2502   fi
2503 fi
2504 { echo "$as_me:$LINENO: result: yes" >&5
2505 echo "${ECHO_T}yes" >&6; }
2506
2507 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2508 ac_clean_files=$ac_clean_files_save
2509 # Check that the compiler produces executables we can run.  If not, either
2510 # the compiler is broken, or we cross compile.
2511 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2512 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2513 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2514 echo "${ECHO_T}$cross_compiling" >&6; }
2515
2516 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2517 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2518 if { (ac_try="$ac_link"
2519 case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524   (eval "$ac_link") 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; then
2528   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2529 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2530 # work properly (i.e., refer to `conftest.exe'), while it won't with
2531 # `rm'.
2532 for ac_file in conftest.exe conftest conftest.*; do
2533   test -f "$ac_file" || continue
2534   case $ac_file in
2535     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2536     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2537           break;;
2538     * ) break;;
2539   esac
2540 done
2541 else
2542   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2545 See \`config.log' for more details." >&2;}
2546    { (exit 1); exit 1; }; }
2547 fi
2548
2549 rm -f conftest$ac_cv_exeext
2550 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2551 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2552
2553 rm -f conftest.$ac_ext
2554 EXEEXT=$ac_cv_exeext
2555 ac_exeext=$EXEEXT
2556 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2557 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2558 if test "${ac_cv_objext+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   cat >conftest.$ac_ext <<_ACEOF
2562 /* confdefs.h.  */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h.  */
2567
2568 int
2569 main ()
2570 {
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.o conftest.obj
2577 if { (ac_try="$ac_compile"
2578 case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583   (eval "$ac_compile") 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; then
2587   for ac_file in conftest.o conftest.obj conftest.*; do
2588   test -f "$ac_file" || continue;
2589   case $ac_file in
2590     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2591     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2592        break;;
2593   esac
2594 done
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2600 See \`config.log' for more details." >&5
2601 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2602 See \`config.log' for more details." >&2;}
2603    { (exit 1); exit 1; }; }
2604 fi
2605
2606 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2607 fi
2608 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2609 echo "${ECHO_T}$ac_cv_objext" >&6; }
2610 OBJEXT=$ac_cv_objext
2611 ac_objext=$OBJEXT
2612 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2613 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2614 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h.  */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h.  */
2623
2624 int
2625 main ()
2626 {
2627 #ifndef __GNUC__
2628        choke me
2629 #endif
2630
2631   ;
2632   return 0;
2633 }
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (ac_try="$ac_compile"
2637 case "(($ac_try" in
2638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639   *) ac_try_echo=$ac_try;;
2640 esac
2641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642   (eval "$ac_compile") 2>conftest.er1
2643   ac_status=$?
2644   grep -v '^ *+' conftest.er1 >conftest.err
2645   rm -f conftest.er1
2646   cat conftest.err >&5
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); } &&
2649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2650   { (case "(($ac_try" in
2651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652   *) ac_try_echo=$ac_try;;
2653 esac
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655   (eval "$ac_try") 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; } &&
2659          { ac_try='test -s conftest.$ac_objext'
2660   { (case "(($ac_try" in
2661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662   *) ac_try_echo=$ac_try;;
2663 esac
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665   (eval "$ac_try") 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; }; then
2669   ac_compiler_gnu=yes
2670 else
2671   echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674         ac_compiler_gnu=no
2675 fi
2676
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2679
2680 fi
2681 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2682 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2683 GCC=`test $ac_compiler_gnu = yes && echo yes`
2684 ac_test_CFLAGS=${CFLAGS+set}
2685 ac_save_CFLAGS=$CFLAGS
2686 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2687 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2688 if test "${ac_cv_prog_cc_g+set}" = set; then
2689   echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691   ac_save_c_werror_flag=$ac_c_werror_flag
2692    ac_c_werror_flag=yes
2693    ac_cv_prog_cc_g=no
2694    CFLAGS="-g"
2695    cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701
2702 int
2703 main ()
2704 {
2705
2706   ;
2707   return 0;
2708 }
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (ac_try="$ac_compile"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_compile") 2>conftest.er1
2718   ac_status=$?
2719   grep -v '^ *+' conftest.er1 >conftest.err
2720   rm -f conftest.er1
2721   cat conftest.err >&5
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); } &&
2724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2725   { (case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730   (eval "$ac_try") 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740   (eval "$ac_try") 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; }; then
2744   ac_cv_prog_cc_g=yes
2745 else
2746   echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2748
2749         CFLAGS=""
2750       cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756
2757 int
2758 main ()
2759 {
2760
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (ac_try="$ac_compile"
2767 case "(($ac_try" in
2768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769   *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772   (eval "$ac_compile") 2>conftest.er1
2773   ac_status=$?
2774   grep -v '^ *+' conftest.er1 >conftest.err
2775   rm -f conftest.er1
2776   cat conftest.err >&5
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); } &&
2779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2780   { (case "(($ac_try" in
2781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782   *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785   (eval "$ac_try") 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; } &&
2789          { ac_try='test -s conftest.$ac_objext'
2790   { (case "(($ac_try" in
2791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792   *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795   (eval "$ac_try") 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   :
2800 else
2801   echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804         ac_c_werror_flag=$ac_save_c_werror_flag
2805          CFLAGS="-g"
2806          cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h.  */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h.  */
2812
2813 int
2814 main ()
2815 {
2816
2817   ;
2818   return 0;
2819 }
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (ac_try="$ac_compile"
2823 case "(($ac_try" in
2824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825   *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828   (eval "$ac_compile") 2>conftest.er1
2829   ac_status=$?
2830   grep -v '^ *+' conftest.er1 >conftest.err
2831   rm -f conftest.er1
2832   cat conftest.err >&5
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } &&
2835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2836   { (case "(($ac_try" in
2837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838   *) ac_try_echo=$ac_try;;
2839 esac
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841   (eval "$ac_try") 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); }; } &&
2845          { ac_try='test -s conftest.$ac_objext'
2846   { (case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_try") 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; }; then
2855   ac_cv_prog_cc_g=yes
2856 else
2857   echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860
2861 fi
2862
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 fi
2865
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 fi
2868
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870    ac_c_werror_flag=$ac_save_c_werror_flag
2871 fi
2872 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2874 if test "$ac_test_CFLAGS" = set; then
2875   CFLAGS=$ac_save_CFLAGS
2876 elif test $ac_cv_prog_cc_g = yes; then
2877   if test "$GCC" = yes; then
2878     CFLAGS="-g -O2"
2879   else
2880     CFLAGS="-g"
2881   fi
2882 else
2883   if test "$GCC" = yes; then
2884     CFLAGS="-O2"
2885   else
2886     CFLAGS=
2887   fi
2888 fi
2889 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2890 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2891 if test "${ac_cv_prog_cc_c89+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   ac_cv_prog_cc_c89=no
2895 ac_save_CC=$CC
2896 cat >conftest.$ac_ext <<_ACEOF
2897 /* confdefs.h.  */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h.  */
2902 #include <stdarg.h>
2903 #include <stdio.h>
2904 #include <sys/types.h>
2905 #include <sys/stat.h>
2906 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2907 struct buf { int x; };
2908 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2909 static char *e (p, i)
2910      char **p;
2911      int i;
2912 {
2913   return p[i];
2914 }
2915 static char *f (char * (*g) (char **, int), char **p, ...)
2916 {
2917   char *s;
2918   va_list v;
2919   va_start (v,p);
2920   s = g (p, va_arg (v,int));
2921   va_end (v);
2922   return s;
2923 }
2924
2925 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2926    function prototypes and stuff, but not '\xHH' hex character constants.
2927    These don't provoke an error unfortunately, instead are silently treated
2928    as 'x'.  The following induces an error, until -std is added to get
2929    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2930    array size at least.  It's necessary to write '\x00'==0 to get something
2931    that's true only with -std.  */
2932 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2933
2934 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2935    inside strings and character constants.  */
2936 #define FOO(x) 'x'
2937 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2938
2939 int test (int i, double x);
2940 struct s1 {int (*f) (int a);};
2941 struct s2 {int (*f) (double a);};
2942 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2943 int argc;
2944 char **argv;
2945 int
2946 main ()
2947 {
2948 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2949   ;
2950   return 0;
2951 }
2952 _ACEOF
2953 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2954         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955 do
2956   CC="$ac_save_CC $ac_arg"
2957   rm -f conftest.$ac_objext
2958 if { (ac_try="$ac_compile"
2959 case "(($ac_try" in
2960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961   *) ac_try_echo=$ac_try;;
2962 esac
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964   (eval "$ac_compile") 2>conftest.er1
2965   ac_status=$?
2966   grep -v '^ *+' conftest.er1 >conftest.err
2967   rm -f conftest.er1
2968   cat conftest.err >&5
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); } &&
2971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2972   { (case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977   (eval "$ac_try") 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; } &&
2981          { ac_try='test -s conftest.$ac_objext'
2982   { (case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987   (eval "$ac_try") 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; }; then
2991   ac_cv_prog_cc_c89=$ac_arg
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996
2997 fi
2998
2999 rm -f core conftest.err conftest.$ac_objext
3000   test "x$ac_cv_prog_cc_c89" != "xno" && break
3001 done
3002 rm -f conftest.$ac_ext
3003 CC=$ac_save_CC
3004
3005 fi
3006 # AC_CACHE_VAL
3007 case "x$ac_cv_prog_cc_c89" in
3008   x)
3009     { echo "$as_me:$LINENO: result: none needed" >&5
3010 echo "${ECHO_T}none needed" >&6; } ;;
3011   xno)
3012     { echo "$as_me:$LINENO: result: unsupported" >&5
3013 echo "${ECHO_T}unsupported" >&6; } ;;
3014   *)
3015     CC="$CC $ac_cv_prog_cc_c89"
3016     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3017 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3018 esac
3019
3020
3021 ac_ext=c
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026
3027 ac_ext=cpp
3028 ac_cpp='$CXXCPP $CPPFLAGS'
3029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3032 if test -z "$CXX"; then
3033   if test -n "$CCC"; then
3034     CXX=$CCC
3035   else
3036     if test -n "$ac_tool_prefix"; then
3037   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3038   do
3039     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3043 if test "${ac_cv_prog_CXX+set}" = set; then
3044   echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046   if test -n "$CXX"; then
3047   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054   for ac_exec_ext in '' $ac_executable_extensions; do
3055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3056     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 CXX=$ac_cv_prog_CXX
3067 if test -n "$CXX"; then
3068   { echo "$as_me:$LINENO: result: $CXX" >&5
3069 echo "${ECHO_T}$CXX" >&6; }
3070 else
3071   { echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6; }
3073 fi
3074
3075
3076     test -n "$CXX" && break
3077   done
3078 fi
3079 if test -z "$CXX"; then
3080   ac_ct_CXX=$CXX
3081   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3082 do
3083   # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3088   echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090   if test -n "$ac_ct_CXX"; then
3091   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096   IFS=$as_save_IFS
3097   test -z "$as_dir" && as_dir=.
3098   for ac_exec_ext in '' $ac_executable_extensions; do
3099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3100     ac_cv_prog_ac_ct_CXX="$ac_prog"
3101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102     break 2
3103   fi
3104 done
3105 done
3106 IFS=$as_save_IFS
3107
3108 fi
3109 fi
3110 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3111 if test -n "$ac_ct_CXX"; then
3112   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3113 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3114 else
3115   { echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6; }
3117 fi
3118
3119
3120   test -n "$ac_ct_CXX" && break
3121 done
3122
3123   if test "x$ac_ct_CXX" = x; then
3124     CXX="g++"
3125   else
3126     case $cross_compiling:$ac_tool_warned in
3127 yes:)
3128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3129 whose name does not start with the host triplet.  If you think this
3130 configuration is useful to you, please write to autoconf@gnu.org." >&5
3131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3132 whose name does not start with the host triplet.  If you think this
3133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3134 ac_tool_warned=yes ;;
3135 esac
3136     CXX=$ac_ct_CXX
3137   fi
3138 fi
3139
3140   fi
3141 fi
3142 # Provide some information about the compiler.
3143 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3144 ac_compiler=`set X $ac_compile; echo $2`
3145 { (ac_try="$ac_compiler --version >&5"
3146 case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_compiler --version >&5") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }
3155 { (ac_try="$ac_compiler -v >&5"
3156 case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_compiler -v >&5") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }
3165 { (ac_try="$ac_compiler -V >&5"
3166 case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_compiler -V >&5") 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }
3175
3176 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3177 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3178 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h.  */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h.  */
3187
3188 int
3189 main ()
3190 {
3191 #ifndef __GNUC__
3192        choke me
3193 #endif
3194
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_compile") 2>conftest.er1
3207   ac_status=$?
3208   grep -v '^ *+' conftest.er1 >conftest.err
3209   rm -f conftest.er1
3210   cat conftest.err >&5
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); } &&
3213          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3214   { (case "(($ac_try" in
3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216   *) ac_try_echo=$ac_try;;
3217 esac
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219   (eval "$ac_try") 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); }; } &&
3223          { ac_try='test -s conftest.$ac_objext'
3224   { (case "(($ac_try" in
3225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226   *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229   (eval "$ac_try") 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); }; }; then
3233   ac_compiler_gnu=yes
3234 else
3235   echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238         ac_compiler_gnu=no
3239 fi
3240
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3243
3244 fi
3245 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3246 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3247 GXX=`test $ac_compiler_gnu = yes && echo yes`
3248 ac_test_CXXFLAGS=${CXXFLAGS+set}
3249 ac_save_CXXFLAGS=$CXXFLAGS
3250 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3251 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3252 if test "${ac_cv_prog_cxx_g+set}" = set; then
3253   echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3256    ac_cxx_werror_flag=yes
3257    ac_cv_prog_cxx_g=no
3258    CXXFLAGS="-g"
3259    cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265
3266 int
3267 main ()
3268 {
3269
3270   ;
3271   return 0;
3272 }
3273 _ACEOF
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281   (eval "$ac_compile") 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } &&
3288          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3289   { (case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294   (eval "$ac_try") 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); }; } &&
3298          { ac_try='test -s conftest.$ac_objext'
3299   { (case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304   (eval "$ac_try") 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; }; then
3308   ac_cv_prog_cxx_g=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313         CXXFLAGS=""
3314       cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h.  */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h.  */
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3331 case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336   (eval "$ac_compile") 2>conftest.er1
3337   ac_status=$?
3338   grep -v '^ *+' conftest.er1 >conftest.err
3339   rm -f conftest.er1
3340   cat conftest.err >&5
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); } &&
3343          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3344   { (case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_try") 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }; } &&
3353          { ac_try='test -s conftest.$ac_objext'
3354   { (case "(($ac_try" in
3355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356   *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359   (eval "$ac_try") 2>&5
3360   ac_status=$?
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); }; }; then
3363   :
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3369          CXXFLAGS="-g"
3370          cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h.  */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h.  */
3376
3377 int
3378 main ()
3379 {
3380
3381   ;
3382   return 0;
3383 }
3384 _ACEOF
3385 rm -f conftest.$ac_objext
3386 if { (ac_try="$ac_compile"
3387 case "(($ac_try" in
3388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389   *) ac_try_echo=$ac_try;;
3390 esac
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392   (eval "$ac_compile") 2>conftest.er1
3393   ac_status=$?
3394   grep -v '^ *+' conftest.er1 >conftest.err
3395   rm -f conftest.er1
3396   cat conftest.err >&5
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); } &&
3399          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3400   { (case "(($ac_try" in
3401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402   *) ac_try_echo=$ac_try;;
3403 esac
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405   (eval "$ac_try") 2>&5
3406   ac_status=$?
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); }; } &&
3409          { ac_try='test -s conftest.$ac_objext'
3410   { (case "(($ac_try" in
3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412   *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415   (eval "$ac_try") 2>&5
3416   ac_status=$?
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); }; }; then
3419   ac_cv_prog_cxx_g=yes
3420 else
3421   echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424
3425 fi
3426
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 fi
3429
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 fi
3432
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3435 fi
3436 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3437 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3438 if test "$ac_test_CXXFLAGS" = set; then
3439   CXXFLAGS=$ac_save_CXXFLAGS
3440 elif test $ac_cv_prog_cxx_g = yes; then
3441   if test "$GXX" = yes; then
3442     CXXFLAGS="-g -O2"
3443   else
3444     CXXFLAGS="-g"
3445   fi
3446 else
3447   if test "$GXX" = yes; then
3448     CXXFLAGS="-O2"
3449   else
3450     CXXFLAGS=
3451   fi
3452 fi
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458
3459 if test -n "$ac_tool_prefix"; then
3460   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3461 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3464 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3465   echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467   if test -n "$CPPBIN"; then
3468   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3477     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483 IFS=$as_save_IFS
3484
3485 fi
3486 fi
3487 CPPBIN=$ac_cv_prog_CPPBIN
3488 if test -n "$CPPBIN"; then
3489   { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3490 echo "${ECHO_T}$CPPBIN" >&6; }
3491 else
3492   { echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6; }
3494 fi
3495
3496
3497 fi
3498 if test -z "$ac_cv_prog_CPPBIN"; then
3499   ac_ct_CPPBIN=$CPPBIN
3500   # Extract the first word of "cpp", so it can be a program name with args.
3501 set dummy cpp; ac_word=$2
3502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3504 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3505   echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507   if test -n "$ac_ct_CPPBIN"; then
3508   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3517     ac_cv_prog_ac_ct_CPPBIN="cpp"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3528 if test -n "$ac_ct_CPPBIN"; then
3529   { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3530 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3531 else
3532   { echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6; }
3534 fi
3535
3536   if test "x$ac_ct_CPPBIN" = x; then
3537     CPPBIN="cpp"
3538   else
3539     case $cross_compiling:$ac_tool_warned in
3540 yes:)
3541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3542 whose name does not start with the host triplet.  If you think this
3543 configuration is useful to you, please write to autoconf@gnu.org." >&5
3544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3545 whose name does not start with the host triplet.  If you think this
3546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3547 ac_tool_warned=yes ;;
3548 esac
3549     CPPBIN=$ac_ct_CPPBIN
3550   fi
3551 else
3552   CPPBIN="$ac_cv_prog_CPPBIN"
3553 fi
3554
3555
3556 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3557 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3558 if test "${wine_cv_toolsdir+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   if test -z "$with_wine_tools"; then
3562      if test "$cross_compiling" = "yes"; then
3563        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3564 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3565    { (exit 1); exit 1; }; }
3566      else
3567        wine_cv_toolsdir="\$(TOPOBJDIR)"
3568      fi
3569    elif test -d "$with_wine_tools/tools/winebuild"; then
3570      case $with_wine_tools in
3571        /*) wine_cv_toolsdir="$with_wine_tools" ;;
3572        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3573      esac
3574    else
3575      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3576 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3577    { (exit 1); exit 1; }; }
3578    fi
3579 fi
3580 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3581 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3582 TOOLSDIR=$wine_cv_toolsdir
3583
3584
3585
3586 ac_ext=c
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3592 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3593 # On Suns, sometimes $CPP names a directory.
3594 if test -n "$CPP" && test -d "$CPP"; then
3595   CPP=
3596 fi
3597 if test -z "$CPP"; then
3598   if test "${ac_cv_prog_CPP+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601       # Double quotes because CPP needs to be expanded
3602     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3603     do
3604       ac_preproc_ok=false
3605 for ac_c_preproc_warn_flag in '' yes
3606 do
3607   # Use a header file that comes with gcc, so configuring glibc
3608   # with a fresh cross-compiler works.
3609   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3610   # <limits.h> exists even on freestanding compilers.
3611   # On the NeXT, cc -E runs the code through the compiler's parser,
3612   # not just through cpp. "Syntax error" is here to catch this case.
3613   cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h.  */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h.  */
3619 #ifdef __STDC__
3620 # include <limits.h>
3621 #else
3622 # include <assert.h>
3623 #endif
3624                      Syntax error
3625 _ACEOF
3626 if { (ac_try="$ac_cpp conftest.$ac_ext"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } >/dev/null; then
3639   if test -s conftest.err; then
3640     ac_cpp_err=$ac_c_preproc_warn_flag
3641     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3642   else
3643     ac_cpp_err=
3644   fi
3645 else
3646   ac_cpp_err=yes
3647 fi
3648 if test -z "$ac_cpp_err"; then
3649   :
3650 else
3651   echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654   # Broken: fails on valid input.
3655 continue
3656 fi
3657
3658 rm -f conftest.err conftest.$ac_ext
3659
3660   # OK, works on sane cases.  Now check whether nonexistent headers
3661   # can be detected and how.
3662   cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 #include <ac_nonexistent.h>
3669 _ACEOF
3670 if { (ac_try="$ac_cpp conftest.$ac_ext"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3677   ac_status=$?
3678   grep -v '^ *+' conftest.er1 >conftest.err
3679   rm -f conftest.er1
3680   cat conftest.err >&5
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); } >/dev/null; then
3683   if test -s conftest.err; then
3684     ac_cpp_err=$ac_c_preproc_warn_flag
3685     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3686   else
3687     ac_cpp_err=
3688   fi
3689 else
3690   ac_cpp_err=yes
3691 fi
3692 if test -z "$ac_cpp_err"; then
3693   # Broken: success on invalid input.
3694 continue
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699   # Passes both tests.
3700 ac_preproc_ok=:
3701 break
3702 fi
3703
3704 rm -f conftest.err conftest.$ac_ext
3705
3706 done
3707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3708 rm -f conftest.err conftest.$ac_ext
3709 if $ac_preproc_ok; then
3710   break
3711 fi
3712
3713     done
3714     ac_cv_prog_CPP=$CPP
3715
3716 fi
3717   CPP=$ac_cv_prog_CPP
3718 else
3719   ac_cv_prog_CPP=$CPP
3720 fi
3721 { echo "$as_me:$LINENO: result: $CPP" >&5
3722 echo "${ECHO_T}$CPP" >&6; }
3723 ac_preproc_ok=false
3724 for ac_c_preproc_warn_flag in '' yes
3725 do
3726   # Use a header file that comes with gcc, so configuring glibc
3727   # with a fresh cross-compiler works.
3728   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729   # <limits.h> exists even on freestanding compilers.
3730   # On the NeXT, cc -E runs the code through the compiler's parser,
3731   # not just through cpp. "Syntax error" is here to catch this case.
3732   cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h.  */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h.  */
3738 #ifdef __STDC__
3739 # include <limits.h>
3740 #else
3741 # include <assert.h>
3742 #endif
3743                      Syntax error
3744 _ACEOF
3745 if { (ac_try="$ac_cpp conftest.$ac_ext"
3746 case "(($ac_try" in
3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748   *) ac_try_echo=$ac_try;;
3749 esac
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3752   ac_status=$?
3753   grep -v '^ *+' conftest.er1 >conftest.err
3754   rm -f conftest.er1
3755   cat conftest.err >&5
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); } >/dev/null; then
3758   if test -s conftest.err; then
3759     ac_cpp_err=$ac_c_preproc_warn_flag
3760     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3761   else
3762     ac_cpp_err=
3763   fi
3764 else
3765   ac_cpp_err=yes
3766 fi
3767 if test -z "$ac_cpp_err"; then
3768   :
3769 else
3770   echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3772
3773   # Broken: fails on valid input.
3774 continue
3775 fi
3776
3777 rm -f conftest.err conftest.$ac_ext
3778
3779   # OK, works on sane cases.  Now check whether nonexistent headers
3780   # can be detected and how.
3781   cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787 #include <ac_nonexistent.h>
3788 _ACEOF
3789 if { (ac_try="$ac_cpp conftest.$ac_ext"
3790 case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3796   ac_status=$?
3797   grep -v '^ *+' conftest.er1 >conftest.err
3798   rm -f conftest.er1
3799   cat conftest.err >&5
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); } >/dev/null; then
3802   if test -s conftest.err; then
3803     ac_cpp_err=$ac_c_preproc_warn_flag
3804     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3805   else
3806     ac_cpp_err=
3807   fi
3808 else
3809   ac_cpp_err=yes
3810 fi
3811 if test -z "$ac_cpp_err"; then
3812   # Broken: success on invalid input.
3813 continue
3814 else
3815   echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818   # Passes both tests.
3819 ac_preproc_ok=:
3820 break
3821 fi
3822
3823 rm -f conftest.err conftest.$ac_ext
3824
3825 done
3826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3827 rm -f conftest.err conftest.$ac_ext
3828 if $ac_preproc_ok; then
3829   :
3830 else
3831   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3832 See \`config.log' for more details." >&5
3833 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3834 See \`config.log' for more details." >&2;}
3835    { (exit 1); exit 1; }; }
3836 fi
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844
3845 { echo "$as_me:$LINENO: checking for X" >&5
3846 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3847
3848
3849 # Check whether --with-x was given.
3850 if test "${with_x+set}" = set; then
3851   withval=$with_x;
3852 fi
3853
3854 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3855 if test "x$with_x" = xno; then
3856   # The user explicitly disabled X.
3857   have_x=disabled
3858 else
3859   case $x_includes,$x_libraries in #(
3860     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3861 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3862    { (exit 1); exit 1; }; };; #(
3863     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   # One or both of the vars are not set, and there is no cached value.
3867 ac_x_includes=no ac_x_libraries=no
3868 rm -f -r conftest.dir
3869 if mkdir conftest.dir; then
3870   cd conftest.dir
3871   cat >Imakefile <<'_ACEOF'
3872 incroot:
3873         @echo incroot='${INCROOT}'
3874 usrlibdir:
3875         @echo usrlibdir='${USRLIBDIR}'
3876 libdir:
3877         @echo libdir='${LIBDIR}'
3878 _ACEOF
3879   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3880     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3881     for ac_var in incroot usrlibdir libdir; do
3882       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3883     done
3884     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3885     for ac_extension in a so sl; do
3886       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3887          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3888         ac_im_usrlibdir=$ac_im_libdir; break
3889       fi
3890     done
3891     # Screen out bogus values from the imake configuration.  They are
3892     # bogus both because they are the default anyway, and because
3893     # using them would break gcc on systems where it needs fixed includes.
3894     case $ac_im_incroot in
3895         /usr/include) ac_x_includes= ;;
3896         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3897     esac
3898     case $ac_im_usrlibdir in
3899         /usr/lib | /lib) ;;
3900         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3901     esac
3902   fi
3903   cd ..
3904   rm -f -r conftest.dir
3905 fi
3906
3907 # Standard set of common directories for X headers.
3908 # Check X11 before X11Rn because it is often a symlink to the current release.
3909 ac_x_header_dirs='
3910 /usr/X11/include
3911 /usr/X11R6/include
3912 /usr/X11R5/include
3913 /usr/X11R4/include
3914
3915 /usr/include/X11
3916 /usr/include/X11R6
3917 /usr/include/X11R5
3918 /usr/include/X11R4
3919
3920 /usr/local/X11/include
3921 /usr/local/X11R6/include
3922 /usr/local/X11R5/include
3923 /usr/local/X11R4/include
3924
3925 /usr/local/include/X11
3926 /usr/local/include/X11R6
3927 /usr/local/include/X11R5
3928 /usr/local/include/X11R4
3929
3930 /usr/X386/include
3931 /usr/x386/include
3932 /usr/XFree86/include/X11
3933
3934 /usr/include
3935 /usr/local/include
3936 /usr/unsupported/include
3937 /usr/athena/include
3938 /usr/local/x11r5/include
3939 /usr/lpp/Xamples/include
3940
3941 /usr/openwin/include
3942 /usr/openwin/share/include'
3943
3944 if test "$ac_x_includes" = no; then
3945   # Guess where to find include files, by looking for Xlib.h.
3946   # First, try using that file with no special directory specified.
3947   cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h.  */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h.  */
3953 #include <X11/Xlib.h>
3954 _ACEOF
3955 if { (ac_try="$ac_cpp conftest.$ac_ext"
3956 case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3962   ac_status=$?
3963   grep -v '^ *+' conftest.er1 >conftest.err
3964   rm -f conftest.er1
3965   cat conftest.err >&5
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); } >/dev/null; then
3968   if test -s conftest.err; then
3969     ac_cpp_err=$ac_c_preproc_warn_flag
3970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3971   else
3972     ac_cpp_err=
3973   fi
3974 else
3975   ac_cpp_err=yes
3976 fi
3977 if test -z "$ac_cpp_err"; then
3978   # We can compile using X headers with no special include directory.
3979 ac_x_includes=
3980 else
3981   echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3983
3984   for ac_dir in $ac_x_header_dirs; do
3985   if test -r "$ac_dir/X11/Xlib.h"; then
3986     ac_x_includes=$ac_dir
3987     break
3988   fi
3989 done
3990 fi
3991
3992 rm -f conftest.err conftest.$ac_ext
3993 fi # $ac_x_includes = no
3994
3995 if test "$ac_x_libraries" = no; then
3996   # Check for the libraries.
3997   # See if we find them without any special options.
3998   # Don't add to $LIBS permanently.
3999   ac_save_LIBS=$LIBS
4000   LIBS="-lX11 $LIBS"
4001   cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h.  */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h.  */
4007 #include <X11/Xlib.h>
4008 int
4009 main ()
4010 {
4011 XrmInitialize ()
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext conftest$ac_exeext
4017 if { (ac_try="$ac_link"
4018 case "(($ac_try" in
4019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020   *) ac_try_echo=$ac_try;;
4021 esac
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023   (eval "$ac_link") 2>conftest.er1
4024   ac_status=$?
4025   grep -v '^ *+' conftest.er1 >conftest.err
4026   rm -f conftest.er1
4027   cat conftest.err >&5
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } &&
4030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4031   { (case "(($ac_try" in
4032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033   *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036   (eval "$ac_try") 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); }; } &&
4040          { ac_try='test -s conftest$ac_exeext'
4041   { (case "(($ac_try" in
4042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043   *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046   (eval "$ac_try") 2>&5
4047   ac_status=$?
4048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049   (exit $ac_status); }; }; then
4050   LIBS=$ac_save_LIBS
4051 # We can link X programs with no special library path.
4052 ac_x_libraries=
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057         LIBS=$ac_save_LIBS
4058 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4059 do
4060   # Don't even attempt the hair of trying to link an X program!
4061   for ac_extension in a so sl; do
4062     if test -r "$ac_dir/libX11.$ac_extension"; then
4063       ac_x_libraries=$ac_dir
4064       break 2
4065     fi
4066   done
4067 done
4068 fi
4069
4070 rm -f core conftest.err conftest.$ac_objext \
4071       conftest$ac_exeext conftest.$ac_ext
4072 fi # $ac_x_libraries = no
4073
4074 case $ac_x_includes,$ac_x_libraries in #(
4075   no,* | *,no | *\'*)
4076     # Didn't find X, or a directory has "'" in its name.
4077     ac_cv_have_x="have_x=no";; #(
4078   *)
4079     # Record where we found X for the cache.
4080     ac_cv_have_x="have_x=yes\
4081         ac_x_includes='$ac_x_includes'\
4082         ac_x_libraries='$ac_x_libraries'"
4083 esac
4084 fi
4085 ;; #(
4086     *) have_x=yes;;
4087   esac
4088   eval "$ac_cv_have_x"
4089 fi # $with_x != no
4090
4091 if test "$have_x" != yes; then
4092   { echo "$as_me:$LINENO: result: $have_x" >&5
4093 echo "${ECHO_T}$have_x" >&6; }
4094   no_x=yes
4095 else
4096   # If each of the values was on the command line, it overrides each guess.
4097   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4098   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4099   # Update the cache value to reflect the command line values.
4100   ac_cv_have_x="have_x=yes\
4101         ac_x_includes='$x_includes'\
4102         ac_x_libraries='$x_libraries'"
4103   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4104 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4105 fi
4106
4107 if test "$no_x" = yes; then
4108   # Not all programs may use this symbol, but it does not hurt to define it.
4109
4110 cat >>confdefs.h <<\_ACEOF
4111 #define X_DISPLAY_MISSING 1
4112 _ACEOF
4113
4114   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4115 else
4116   if test -n "$x_includes"; then
4117     X_CFLAGS="$X_CFLAGS -I$x_includes"
4118   fi
4119
4120   # It would also be nice to do this for all -L options, not just this one.
4121   if test -n "$x_libraries"; then
4122     X_LIBS="$X_LIBS -L$x_libraries"
4123     # For Solaris; some versions of Sun CC require a space after -R and
4124     # others require no space.  Words are not sufficient . . . .
4125     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4126 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4127     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4128     ac_xsave_c_werror_flag=$ac_c_werror_flag
4129     ac_c_werror_flag=yes
4130     cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136
4137 int
4138 main ()
4139 {
4140
4141   ;
4142   return 0;
4143 }
4144 _ACEOF
4145 rm -f conftest.$ac_objext conftest$ac_exeext
4146 if { (ac_try="$ac_link"
4147 case "(($ac_try" in
4148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149   *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152   (eval "$ac_link") 2>conftest.er1
4153   ac_status=$?
4154   grep -v '^ *+' conftest.er1 >conftest.err
4155   rm -f conftest.er1
4156   cat conftest.err >&5
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); } &&
4159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160   { (case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165   (eval "$ac_try") 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; } &&
4169          { ac_try='test -s conftest$ac_exeext'
4170   { (case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175   (eval "$ac_try") 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   { echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6; }
4181        X_LIBS="$X_LIBS -R$x_libraries"
4182 else
4183   echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4185
4186         LIBS="$ac_xsave_LIBS -R $x_libraries"
4187        cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193
4194 int
4195 main ()
4196 {
4197
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.$ac_objext conftest$ac_exeext
4203 if { (ac_try="$ac_link"
4204 case "(($ac_try" in
4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206   *) ac_try_echo=$ac_try;;
4207 esac
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209   (eval "$ac_link") 2>conftest.er1
4210   ac_status=$?
4211   grep -v '^ *+' conftest.er1 >conftest.err
4212   rm -f conftest.er1
4213   cat conftest.err >&5
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } &&
4216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4217   { (case "(($ac_try" in
4218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219   *) ac_try_echo=$ac_try;;
4220 esac
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222   (eval "$ac_try") 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }; } &&
4226          { ac_try='test -s conftest$ac_exeext'
4227   { (case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_try") 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; }; then
4236   { echo "$as_me:$LINENO: result: yes" >&5
4237 echo "${ECHO_T}yes" >&6; }
4238           X_LIBS="$X_LIBS -R $x_libraries"
4239 else
4240   echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243         { echo "$as_me:$LINENO: result: neither works" >&5
4244 echo "${ECHO_T}neither works" >&6; }
4245 fi
4246
4247 rm -f core conftest.err conftest.$ac_objext \
4248       conftest$ac_exeext conftest.$ac_ext
4249 fi
4250
4251 rm -f core conftest.err conftest.$ac_objext \
4252       conftest$ac_exeext conftest.$ac_ext
4253     ac_c_werror_flag=$ac_xsave_c_werror_flag
4254     LIBS=$ac_xsave_LIBS
4255   fi
4256
4257   # Check for system-dependent libraries X programs must link with.
4258   # Do this before checking for the system-independent R6 libraries
4259   # (-lICE), since we may need -lsocket or whatever for X linking.
4260
4261   if test "$ISC" = yes; then
4262     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4263   else
4264     # Martyn Johnson says this is needed for Ultrix, if the X
4265     # libraries were built with DECnet support.  And Karl Berry says
4266     # the Alpha needs dnet_stub (dnet does not exist).
4267     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4268     cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h.  */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h.  */
4274
4275 /* Override any GCC internal prototype to avoid an error.
4276    Use char because int might match the return type of a GCC
4277    builtin and then its argument prototype would still apply.  */
4278 #ifdef __cplusplus
4279 extern "C"
4280 #endif
4281 char XOpenDisplay ();
4282 int
4283 main ()
4284 {
4285 return XOpenDisplay ();
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 rm -f conftest.$ac_objext conftest$ac_exeext
4291 if { (ac_try="$ac_link"
4292 case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297   (eval "$ac_link") 2>conftest.er1
4298   ac_status=$?
4299   grep -v '^ *+' conftest.er1 >conftest.err
4300   rm -f conftest.er1
4301   cat conftest.err >&5
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); } &&
4304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305   { (case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_try") 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }; } &&
4314          { ac_try='test -s conftest$ac_exeext'
4315   { (case "(($ac_try" in
4316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317   *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320   (eval "$ac_try") 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; }; then
4324   :
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4330 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4331 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   ac_check_lib_save_LIBS=$LIBS
4335 LIBS="-ldnet  $LIBS"
4336 cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h.  */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h.  */
4342
4343 /* Override any GCC internal prototype to avoid an error.
4344    Use char because int might match the return type of a GCC
4345    builtin and then its argument prototype would still apply.  */
4346 #ifdef __cplusplus
4347 extern "C"
4348 #endif
4349 char dnet_ntoa ();
4350 int
4351 main ()
4352 {
4353 return dnet_ntoa ();
4354   ;
4355   return 0;
4356 }
4357 _ACEOF
4358 rm -f conftest.$ac_objext conftest$ac_exeext
4359 if { (ac_try="$ac_link"
4360 case "(($ac_try" in
4361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362   *) ac_try_echo=$ac_try;;
4363 esac
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365   (eval "$ac_link") 2>conftest.er1
4366   ac_status=$?
4367   grep -v '^ *+' conftest.er1 >conftest.err
4368   rm -f conftest.er1
4369   cat conftest.err >&5
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); } &&
4372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4373   { (case "(($ac_try" in
4374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375   *) ac_try_echo=$ac_try;;
4376 esac
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378   (eval "$ac_try") 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; } &&
4382          { ac_try='test -s conftest$ac_exeext'
4383   { (case "(($ac_try" in
4384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385   *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388   (eval "$ac_try") 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); }; }; then
4392   ac_cv_lib_dnet_dnet_ntoa=yes
4393 else
4394   echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4396
4397         ac_cv_lib_dnet_dnet_ntoa=no
4398 fi
4399
4400 rm -f core conftest.err conftest.$ac_objext \
4401       conftest$ac_exeext conftest.$ac_ext
4402 LIBS=$ac_check_lib_save_LIBS
4403 fi
4404 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4405 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4406 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4407   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4408 fi
4409
4410     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4411       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4412 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4413 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4414   echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416   ac_check_lib_save_LIBS=$LIBS
4417 LIBS="-ldnet_stub  $LIBS"
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424
4425 /* Override any GCC internal prototype to avoid an error.
4426    Use char because int might match the return type of a GCC
4427    builtin and then its argument prototype would still apply.  */
4428 #ifdef __cplusplus
4429 extern "C"
4430 #endif
4431 char dnet_ntoa ();
4432 int
4433 main ()
4434 {
4435 return dnet_ntoa ();
4436   ;
4437   return 0;
4438 }
4439 _ACEOF
4440 rm -f conftest.$ac_objext conftest$ac_exeext
4441 if { (ac_try="$ac_link"
4442 case "(($ac_try" in
4443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444   *) ac_try_echo=$ac_try;;
4445 esac
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447   (eval "$ac_link") 2>conftest.er1
4448   ac_status=$?
4449   grep -v '^ *+' conftest.er1 >conftest.err
4450   rm -f conftest.er1
4451   cat conftest.err >&5
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); } &&
4454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4455   { (case "(($ac_try" in
4456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457   *) ac_try_echo=$ac_try;;
4458 esac
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460   (eval "$ac_try") 2>&5
4461   ac_status=$?
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); }; } &&
4464          { ac_try='test -s conftest$ac_exeext'
4465   { (case "(($ac_try" in
4466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467   *) ac_try_echo=$ac_try;;
4468 esac
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470   (eval "$ac_try") 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); }; }; then
4474   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4475 else
4476   echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479         ac_cv_lib_dnet_stub_dnet_ntoa=no
4480 fi
4481
4482 rm -f core conftest.err conftest.$ac_objext \
4483       conftest$ac_exeext conftest.$ac_ext
4484 LIBS=$ac_check_lib_save_LIBS
4485 fi
4486 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4487 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4488 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4489   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4490 fi
4491
4492     fi
4493 fi
4494
4495 rm -f core conftest.err conftest.$ac_objext \
4496       conftest$ac_exeext conftest.$ac_ext
4497     LIBS="$ac_xsave_LIBS"
4498
4499     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4500     # to get the SysV transport functions.
4501     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4502     # needs -lnsl.
4503     # The nsl library prevents programs from opening the X display
4504     # on Irix 5.2, according to T.E. Dickey.
4505     # The functions gethostbyname, getservbyname, and inet_addr are
4506     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4507     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4508 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4509 if test "${ac_cv_func_gethostbyname+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h.  */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h.  */
4518 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4520 #define gethostbyname innocuous_gethostbyname
4521
4522 /* System header to define __stub macros and hopefully few prototypes,
4523     which can conflict with char gethostbyname (); below.
4524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4525     <limits.h> exists even on freestanding compilers.  */
4526
4527 #ifdef __STDC__
4528 # include <limits.h>
4529 #else
4530 # include <assert.h>
4531 #endif
4532
4533 #undef gethostbyname
4534
4535 /* Override any GCC internal prototype to avoid an error.
4536    Use char because int might match the return type of a GCC
4537    builtin and then its argument prototype would still apply.  */
4538 #ifdef __cplusplus
4539 extern "C"
4540 #endif
4541 char gethostbyname ();
4542 /* The GNU C library defines this for functions which it implements
4543     to always fail with ENOSYS.  Some functions are actually named
4544     something starting with __ and the normal name is an alias.  */
4545 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4546 choke me
4547 #endif
4548
4549 int
4550 main ()
4551 {
4552 return gethostbyname ();
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 rm -f conftest.$ac_objext conftest$ac_exeext
4558 if { (ac_try="$ac_link"
4559 case "(($ac_try" in
4560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561   *) ac_try_echo=$ac_try;;
4562 esac
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564   (eval "$ac_link") 2>conftest.er1
4565   ac_status=$?
4566   grep -v '^ *+' conftest.er1 >conftest.err
4567   rm -f conftest.er1
4568   cat conftest.err >&5
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); } &&
4571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4572   { (case "(($ac_try" in
4573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574   *) ac_try_echo=$ac_try;;
4575 esac
4576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4577   (eval "$ac_try") 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); }; } &&
4581          { ac_try='test -s conftest$ac_exeext'
4582   { (case "(($ac_try" in
4583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584   *) ac_try_echo=$ac_try;;
4585 esac
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587   (eval "$ac_try") 2>&5
4588   ac_status=$?
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); }; }; then
4591   ac_cv_func_gethostbyname=yes
4592 else
4593   echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596         ac_cv_func_gethostbyname=no
4597 fi
4598
4599 rm -f core conftest.err conftest.$ac_objext \
4600       conftest$ac_exeext conftest.$ac_ext
4601 fi
4602 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4603 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4604
4605     if test $ac_cv_func_gethostbyname = no; then
4606       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4607 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4608 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   ac_check_lib_save_LIBS=$LIBS
4612 LIBS="-lnsl  $LIBS"
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h.  */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h.  */
4619
4620 /* Override any GCC internal prototype to avoid an error.
4621    Use char because int might match the return type of a GCC
4622    builtin and then its argument prototype would still apply.  */
4623 #ifdef __cplusplus
4624 extern "C"
4625 #endif
4626 char gethostbyname ();
4627 int
4628 main ()
4629 {
4630 return gethostbyname ();
4631   ;
4632   return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (ac_try="$ac_link"
4637 case "(($ac_try" in
4638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639   *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642   (eval "$ac_link") 2>conftest.er1
4643   ac_status=$?
4644   grep -v '^ *+' conftest.er1 >conftest.err
4645   rm -f conftest.er1
4646   cat conftest.err >&5
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); } &&
4649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4650   { (case "(($ac_try" in
4651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652   *) ac_try_echo=$ac_try;;
4653 esac
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655   (eval "$ac_try") 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; } &&
4659          { ac_try='test -s conftest$ac_exeext'
4660   { (case "(($ac_try" in
4661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662   *) ac_try_echo=$ac_try;;
4663 esac
4664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665   (eval "$ac_try") 2>&5
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }; }; then
4669   ac_cv_lib_nsl_gethostbyname=yes
4670 else
4671   echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4673
4674         ac_cv_lib_nsl_gethostbyname=no
4675 fi
4676
4677 rm -f core conftest.err conftest.$ac_objext \
4678       conftest$ac_exeext conftest.$ac_ext
4679 LIBS=$ac_check_lib_save_LIBS
4680 fi
4681 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4682 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4683 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4684   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4685 fi
4686
4687       if test $ac_cv_lib_nsl_gethostbyname = no; then
4688         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4689 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4690 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4691   echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693   ac_check_lib_save_LIBS=$LIBS
4694 LIBS="-lbsd  $LIBS"
4695 cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h.  */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h.  */
4701
4702 /* Override any GCC internal prototype to avoid an error.
4703    Use char because int might match the return type of a GCC
4704    builtin and then its argument prototype would still apply.  */
4705 #ifdef __cplusplus
4706 extern "C"
4707 #endif
4708 char gethostbyname ();
4709 int
4710 main ()
4711 {
4712 return gethostbyname ();
4713   ;
4714   return 0;
4715 }
4716 _ACEOF
4717 rm -f conftest.$ac_objext conftest$ac_exeext
4718 if { (ac_try="$ac_link"
4719 case "(($ac_try" in
4720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721   *) ac_try_echo=$ac_try;;
4722 esac
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724   (eval "$ac_link") 2>conftest.er1
4725   ac_status=$?
4726   grep -v '^ *+' conftest.er1 >conftest.err
4727   rm -f conftest.er1
4728   cat conftest.err >&5
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); } &&
4731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4732   { (case "(($ac_try" in
4733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734   *) ac_try_echo=$ac_try;;
4735 esac
4736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737   (eval "$ac_try") 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; } &&
4741          { ac_try='test -s conftest$ac_exeext'
4742   { (case "(($ac_try" in
4743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744   *) ac_try_echo=$ac_try;;
4745 esac
4746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4747   (eval "$ac_try") 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }; }; then
4751   ac_cv_lib_bsd_gethostbyname=yes
4752 else
4753   echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756         ac_cv_lib_bsd_gethostbyname=no
4757 fi
4758
4759 rm -f core conftest.err conftest.$ac_objext \
4760       conftest$ac_exeext conftest.$ac_ext
4761 LIBS=$ac_check_lib_save_LIBS
4762 fi
4763 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4764 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4765 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4766   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4767 fi
4768
4769       fi
4770     fi
4771
4772     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4773     # socket/setsockopt and other routines are undefined under SCO ODT
4774     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4775     # on later versions), says Simon Leinen: it contains gethostby*
4776     # variants that don't use the name server (or something).  -lsocket
4777     # must be given before -lnsl if both are needed.  We assume that
4778     # if connect needs -lnsl, so does gethostbyname.
4779     { echo "$as_me:$LINENO: checking for connect" >&5
4780 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4781 if test "${ac_cv_func_connect+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h.  */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h.  */
4790 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4792 #define connect innocuous_connect
4793
4794 /* System header to define __stub macros and hopefully few prototypes,
4795     which can conflict with char connect (); below.
4796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797     <limits.h> exists even on freestanding compilers.  */
4798
4799 #ifdef __STDC__
4800 # include <limits.h>
4801 #else
4802 # include <assert.h>
4803 #endif
4804
4805 #undef connect
4806
4807 /* Override any GCC internal prototype to avoid an error.
4808    Use char because int might match the return type of a GCC
4809    builtin and then its argument prototype would still apply.  */
4810 #ifdef __cplusplus
4811 extern "C"
4812 #endif
4813 char connect ();
4814 /* The GNU C library defines this for functions which it implements
4815     to always fail with ENOSYS.  Some functions are actually named
4816     something starting with __ and the normal name is an alias.  */
4817 #if defined __stub_connect || defined __stub___connect
4818 choke me
4819 #endif
4820
4821 int
4822 main ()
4823 {
4824 return connect ();
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext conftest$ac_exeext
4830 if { (ac_try="$ac_link"
4831 case "(($ac_try" in
4832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833   *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836   (eval "$ac_link") 2>conftest.er1
4837   ac_status=$?
4838   grep -v '^ *+' conftest.er1 >conftest.err
4839   rm -f conftest.er1
4840   cat conftest.err >&5
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); } &&
4843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4844   { (case "(($ac_try" in
4845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846   *) ac_try_echo=$ac_try;;
4847 esac
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849   (eval "$ac_try") 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); }; } &&
4853          { ac_try='test -s conftest$ac_exeext'
4854   { (case "(($ac_try" in
4855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856   *) ac_try_echo=$ac_try;;
4857 esac
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859   (eval "$ac_try") 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); }; }; then
4863   ac_cv_func_connect=yes
4864 else
4865   echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868         ac_cv_func_connect=no
4869 fi
4870
4871 rm -f core conftest.err conftest.$ac_objext \
4872       conftest$ac_exeext conftest.$ac_ext
4873 fi
4874 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4875 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4876
4877     if test $ac_cv_func_connect = no; then
4878       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4879 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4880 if test "${ac_cv_lib_socket_connect+set}" = set; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883   ac_check_lib_save_LIBS=$LIBS
4884 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h.  */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h.  */
4891
4892 /* Override any GCC internal prototype to avoid an error.
4893    Use char because int might match the return type of a GCC
4894    builtin and then its argument prototype would still apply.  */
4895 #ifdef __cplusplus
4896 extern "C"
4897 #endif
4898 char connect ();
4899 int
4900 main ()
4901 {
4902 return connect ();
4903   ;
4904   return 0;
4905 }
4906 _ACEOF
4907 rm -f conftest.$ac_objext conftest$ac_exeext
4908 if { (ac_try="$ac_link"
4909 case "(($ac_try" in
4910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911   *) ac_try_echo=$ac_try;;
4912 esac
4913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914   (eval "$ac_link") 2>conftest.er1
4915   ac_status=$?
4916   grep -v '^ *+' conftest.er1 >conftest.err
4917   rm -f conftest.er1
4918   cat conftest.err >&5
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); } &&
4921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4922   { (case "(($ac_try" in
4923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924   *) ac_try_echo=$ac_try;;
4925 esac
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927   (eval "$ac_try") 2>&5
4928   ac_status=$?
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); }; } &&
4931          { ac_try='test -s conftest$ac_exeext'
4932   { (case "(($ac_try" in
4933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934   *) ac_try_echo=$ac_try;;
4935 esac
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937   (eval "$ac_try") 2>&5
4938   ac_status=$?
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); }; }; then
4941   ac_cv_lib_socket_connect=yes
4942 else
4943   echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946         ac_cv_lib_socket_connect=no
4947 fi
4948
4949 rm -f core conftest.err conftest.$ac_objext \
4950       conftest$ac_exeext conftest.$ac_ext
4951 LIBS=$ac_check_lib_save_LIBS
4952 fi
4953 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4954 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4955 if test $ac_cv_lib_socket_connect = yes; then
4956   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4957 fi
4958
4959     fi
4960
4961     # Guillermo Gomez says -lposix is necessary on A/UX.
4962     { echo "$as_me:$LINENO: checking for remove" >&5
4963 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4964 if test "${ac_cv_func_remove+set}" = set; then
4965   echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967   cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h.  */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h.  */
4973 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4975 #define remove innocuous_remove
4976
4977 /* System header to define __stub macros and hopefully few prototypes,
4978     which can conflict with char remove (); below.
4979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980     <limits.h> exists even on freestanding compilers.  */
4981
4982 #ifdef __STDC__
4983 # include <limits.h>
4984 #else
4985 # include <assert.h>
4986 #endif
4987
4988 #undef remove
4989
4990 /* Override any GCC internal prototype to avoid an error.
4991    Use char because int might match the return type of a GCC
4992    builtin and then its argument prototype would still apply.  */
4993 #ifdef __cplusplus
4994 extern "C"
4995 #endif
4996 char remove ();
4997 /* The GNU C library defines this for functions which it implements
4998     to always fail with ENOSYS.  Some functions are actually named
4999     something starting with __ and the normal name is an alias.  */
5000 #if defined __stub_remove || defined __stub___remove
5001 choke me
5002 #endif
5003
5004 int
5005 main ()
5006 {
5007 return remove ();
5008   ;
5009   return 0;
5010 }
5011 _ACEOF
5012 rm -f conftest.$ac_objext conftest$ac_exeext
5013 if { (ac_try="$ac_link"
5014 case "(($ac_try" in
5015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016   *) ac_try_echo=$ac_try;;
5017 esac
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019   (eval "$ac_link") 2>conftest.er1
5020   ac_status=$?
5021   grep -v '^ *+' conftest.er1 >conftest.err
5022   rm -f conftest.er1
5023   cat conftest.err >&5
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } &&
5026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5027   { (case "(($ac_try" in
5028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029   *) ac_try_echo=$ac_try;;
5030 esac
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032   (eval "$ac_try") 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; } &&
5036          { ac_try='test -s conftest$ac_exeext'
5037   { (case "(($ac_try" in
5038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039   *) ac_try_echo=$ac_try;;
5040 esac
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042   (eval "$ac_try") 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }; }; then
5046   ac_cv_func_remove=yes
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051         ac_cv_func_remove=no
5052 fi
5053
5054 rm -f core conftest.err conftest.$ac_objext \
5055       conftest$ac_exeext conftest.$ac_ext
5056 fi
5057 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5058 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5059
5060     if test $ac_cv_func_remove = no; then
5061       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5062 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5063 if test "${ac_cv_lib_posix_remove+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   ac_check_lib_save_LIBS=$LIBS
5067 LIBS="-lposix  $LIBS"
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074
5075 /* Override any GCC internal prototype to avoid an error.
5076    Use char because int might match the return type of a GCC
5077    builtin and then its argument prototype would still apply.  */
5078 #ifdef __cplusplus
5079 extern "C"
5080 #endif
5081 char remove ();
5082 int
5083 main ()
5084 {
5085 return remove ();
5086   ;
5087   return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest.$ac_objext conftest$ac_exeext
5091 if { (ac_try="$ac_link"
5092 case "(($ac_try" in
5093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094   *) ac_try_echo=$ac_try;;
5095 esac
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097   (eval "$ac_link") 2>conftest.er1
5098   ac_status=$?
5099   grep -v '^ *+' conftest.er1 >conftest.err
5100   rm -f conftest.er1
5101   cat conftest.err >&5
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } &&
5104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5105   { (case "(($ac_try" in
5106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107   *) ac_try_echo=$ac_try;;
5108 esac
5109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110   (eval "$ac_try") 2>&5
5111   ac_status=$?
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); }; } &&
5114          { ac_try='test -s conftest$ac_exeext'
5115   { (case "(($ac_try" in
5116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117   *) ac_try_echo=$ac_try;;
5118 esac
5119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5120   (eval "$ac_try") 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; }; then
5124   ac_cv_lib_posix_remove=yes
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129         ac_cv_lib_posix_remove=no
5130 fi
5131
5132 rm -f core conftest.err conftest.$ac_objext \
5133       conftest$ac_exeext conftest.$ac_ext
5134 LIBS=$ac_check_lib_save_LIBS
5135 fi
5136 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5137 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5138 if test $ac_cv_lib_posix_remove = yes; then
5139   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5140 fi
5141
5142     fi
5143
5144     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5145     { echo "$as_me:$LINENO: checking for shmat" >&5
5146 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5147 if test "${ac_cv_func_shmat+set}" = set; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h.  */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h.  */
5156 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5158 #define shmat innocuous_shmat
5159
5160 /* System header to define __stub macros and hopefully few prototypes,
5161     which can conflict with char shmat (); below.
5162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163     <limits.h> exists even on freestanding compilers.  */
5164
5165 #ifdef __STDC__
5166 # include <limits.h>
5167 #else
5168 # include <assert.h>
5169 #endif
5170
5171 #undef shmat
5172
5173 /* Override any GCC internal prototype to avoid an error.
5174    Use char because int might match the return type of a GCC
5175    builtin and then its argument prototype would still apply.  */
5176 #ifdef __cplusplus
5177 extern "C"
5178 #endif
5179 char shmat ();
5180 /* The GNU C library defines this for functions which it implements
5181     to always fail with ENOSYS.  Some functions are actually named
5182     something starting with __ and the normal name is an alias.  */
5183 #if defined __stub_shmat || defined __stub___shmat
5184 choke me
5185 #endif
5186
5187 int
5188 main ()
5189 {
5190 return shmat ();
5191   ;
5192   return 0;
5193 }
5194 _ACEOF
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (ac_try="$ac_link"
5197 case "(($ac_try" in
5198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199   *) ac_try_echo=$ac_try;;
5200 esac
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202   (eval "$ac_link") 2>conftest.er1
5203   ac_status=$?
5204   grep -v '^ *+' conftest.er1 >conftest.err
5205   rm -f conftest.er1
5206   cat conftest.err >&5
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); } &&
5209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5210   { (case "(($ac_try" in
5211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212   *) ac_try_echo=$ac_try;;
5213 esac
5214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215   (eval "$ac_try") 2>&5
5216   ac_status=$?
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); }; } &&
5219          { ac_try='test -s conftest$ac_exeext'
5220   { (case "(($ac_try" in
5221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222   *) ac_try_echo=$ac_try;;
5223 esac
5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225   (eval "$ac_try") 2>&5
5226   ac_status=$?
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); }; }; then
5229   ac_cv_func_shmat=yes
5230 else
5231   echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234         ac_cv_func_shmat=no
5235 fi
5236
5237 rm -f core conftest.err conftest.$ac_objext \
5238       conftest$ac_exeext conftest.$ac_ext
5239 fi
5240 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5241 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5242
5243     if test $ac_cv_func_shmat = no; then
5244       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5245 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5246 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   ac_check_lib_save_LIBS=$LIBS
5250 LIBS="-lipc  $LIBS"
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h.  */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h.  */
5257
5258 /* Override any GCC internal prototype to avoid an error.
5259    Use char because int might match the return type of a GCC
5260    builtin and then its argument prototype would still apply.  */
5261 #ifdef __cplusplus
5262 extern "C"
5263 #endif
5264 char shmat ();
5265 int
5266 main ()
5267 {
5268 return shmat ();
5269   ;
5270   return 0;
5271 }
5272 _ACEOF
5273 rm -f conftest.$ac_objext conftest$ac_exeext
5274 if { (ac_try="$ac_link"
5275 case "(($ac_try" in
5276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277   *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280   (eval "$ac_link") 2>conftest.er1
5281   ac_status=$?
5282   grep -v '^ *+' conftest.er1 >conftest.err
5283   rm -f conftest.er1
5284   cat conftest.err >&5
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } &&
5287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5288   { (case "(($ac_try" in
5289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290   *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293   (eval "$ac_try") 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); }; } &&
5297          { ac_try='test -s conftest$ac_exeext'
5298   { (case "(($ac_try" in
5299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300   *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303   (eval "$ac_try") 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; }; then
5307   ac_cv_lib_ipc_shmat=yes
5308 else
5309   echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312         ac_cv_lib_ipc_shmat=no
5313 fi
5314
5315 rm -f core conftest.err conftest.$ac_objext \
5316       conftest$ac_exeext conftest.$ac_ext
5317 LIBS=$ac_check_lib_save_LIBS
5318 fi
5319 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5320 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5321 if test $ac_cv_lib_ipc_shmat = yes; then
5322   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5323 fi
5324
5325     fi
5326   fi
5327
5328   # Check for libraries that X11R6 Xt/Xaw programs need.
5329   ac_save_LDFLAGS=$LDFLAGS
5330   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5331   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5332   # check for ICE first), but we must link in the order -lSM -lICE or
5333   # we get undefined symbols.  So assume we have SM if we have ICE.
5334   # These have to be linked with before -lX11, unlike the other
5335   # libraries we check for below, so use a different variable.
5336   # John Interrante, Karl Berry
5337   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5338 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5339 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   ac_check_lib_save_LIBS=$LIBS
5343 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5344 cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h.  */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h.  */
5350
5351 /* Override any GCC internal prototype to avoid an error.
5352    Use char because int might match the return type of a GCC
5353    builtin and then its argument prototype would still apply.  */
5354 #ifdef __cplusplus
5355 extern "C"
5356 #endif
5357 char IceConnectionNumber ();
5358 int
5359 main ()
5360 {
5361 return IceConnectionNumber ();
5362   ;
5363   return 0;
5364 }
5365 _ACEOF
5366 rm -f conftest.$ac_objext conftest$ac_exeext
5367 if { (ac_try="$ac_link"
5368 case "(($ac_try" in
5369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370   *) ac_try_echo=$ac_try;;
5371 esac
5372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373   (eval "$ac_link") 2>conftest.er1
5374   ac_status=$?
5375   grep -v '^ *+' conftest.er1 >conftest.err
5376   rm -f conftest.er1
5377   cat conftest.err >&5
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } &&
5380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5381   { (case "(($ac_try" in
5382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383   *) ac_try_echo=$ac_try;;
5384 esac
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386   (eval "$ac_try") 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); }; } &&
5390          { ac_try='test -s conftest$ac_exeext'
5391   { (case "(($ac_try" in
5392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393   *) ac_try_echo=$ac_try;;
5394 esac
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396   (eval "$ac_try") 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; }; then
5400   ac_cv_lib_ICE_IceConnectionNumber=yes
5401 else
5402   echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5404
5405         ac_cv_lib_ICE_IceConnectionNumber=no
5406 fi
5407
5408 rm -f core conftest.err conftest.$ac_objext \
5409       conftest$ac_exeext conftest.$ac_ext
5410 LIBS=$ac_check_lib_save_LIBS
5411 fi
5412 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5413 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5414 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5415   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5416 fi
5417
5418   LDFLAGS=$ac_save_LDFLAGS
5419
5420 fi
5421
5422 for ac_prog in flex lex
5423 do
5424   # Extract the first word of "$ac_prog", so it can be a program name with args.
5425 set dummy $ac_prog; ac_word=$2
5426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5428 if test "${ac_cv_prog_LEX+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   if test -n "$LEX"; then
5432   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437   IFS=$as_save_IFS
5438   test -z "$as_dir" && as_dir=.
5439   for ac_exec_ext in '' $ac_executable_extensions; do
5440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5441     ac_cv_prog_LEX="$ac_prog"
5442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443     break 2
5444   fi
5445 done
5446 done
5447 IFS=$as_save_IFS
5448
5449 fi
5450 fi
5451 LEX=$ac_cv_prog_LEX
5452 if test -n "$LEX"; then
5453   { echo "$as_me:$LINENO: result: $LEX" >&5
5454 echo "${ECHO_T}$LEX" >&6; }
5455 else
5456   { echo "$as_me:$LINENO: result: no" >&5
5457 echo "${ECHO_T}no" >&6; }
5458 fi
5459
5460
5461   test -n "$LEX" && break
5462 done
5463 test -n "$LEX" || LEX=":"
5464
5465 if test -z "$LEXLIB"
5466 then
5467   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5468 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
5469 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   ac_check_lib_save_LIBS=$LIBS
5473 LIBS="-lfl  $LIBS"
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h.  */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h.  */
5480
5481 /* Override any GCC internal prototype to avoid an error.
5482    Use char because int might match the return type of a GCC
5483    builtin and then its argument prototype would still apply.  */
5484 #ifdef __cplusplus
5485 extern "C"
5486 #endif
5487 char yywrap ();
5488 int
5489 main ()
5490 {
5491 return yywrap ();
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 rm -f conftest.$ac_objext conftest$ac_exeext
5497 if { (ac_try="$ac_link"
5498 case "(($ac_try" in
5499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500   *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503   (eval "$ac_link") 2>conftest.er1
5504   ac_status=$?
5505   grep -v '^ *+' conftest.er1 >conftest.err
5506   rm -f conftest.er1
5507   cat conftest.err >&5
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); } &&
5510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5511   { (case "(($ac_try" in
5512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513   *) ac_try_echo=$ac_try;;
5514 esac
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516   (eval "$ac_try") 2>&5
5517   ac_status=$?
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); }; } &&
5520          { ac_try='test -s conftest$ac_exeext'
5521   { (case "(($ac_try" in
5522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523   *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526   (eval "$ac_try") 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); }; }; then
5530   ac_cv_lib_fl_yywrap=yes
5531 else
5532   echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535         ac_cv_lib_fl_yywrap=no
5536 fi
5537
5538 rm -f core conftest.err conftest.$ac_objext \
5539       conftest$ac_exeext conftest.$ac_ext
5540 LIBS=$ac_check_lib_save_LIBS
5541 fi
5542 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5543 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
5544 if test $ac_cv_lib_fl_yywrap = yes; then
5545   LEXLIB="-lfl"
5546 else
5547   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5548 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
5549 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552   ac_check_lib_save_LIBS=$LIBS
5553 LIBS="-ll  $LIBS"
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h.  */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h.  */
5560
5561 /* Override any GCC internal prototype to avoid an error.
5562    Use char because int might match the return type of a GCC
5563    builtin and then its argument prototype would still apply.  */
5564 #ifdef __cplusplus
5565 extern "C"
5566 #endif
5567 char yywrap ();
5568 int
5569 main ()
5570 {
5571 return yywrap ();
5572   ;
5573   return 0;
5574 }
5575 _ACEOF
5576 rm -f conftest.$ac_objext conftest$ac_exeext
5577 if { (ac_try="$ac_link"
5578 case "(($ac_try" in
5579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580   *) ac_try_echo=$ac_try;;
5581 esac
5582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583   (eval "$ac_link") 2>conftest.er1
5584   ac_status=$?
5585   grep -v '^ *+' conftest.er1 >conftest.err
5586   rm -f conftest.er1
5587   cat conftest.err >&5
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); } &&
5590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5591   { (case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596   (eval "$ac_try") 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; } &&
5600          { ac_try='test -s conftest$ac_exeext'
5601   { (case "(($ac_try" in
5602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603   *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606   (eval "$ac_try") 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); }; }; then
5610   ac_cv_lib_l_yywrap=yes
5611 else
5612   echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615         ac_cv_lib_l_yywrap=no
5616 fi
5617
5618 rm -f core conftest.err conftest.$ac_objext \
5619       conftest$ac_exeext conftest.$ac_ext
5620 LIBS=$ac_check_lib_save_LIBS
5621 fi
5622 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5623 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
5624 if test $ac_cv_lib_l_yywrap = yes; then
5625   LEXLIB="-ll"
5626 fi
5627
5628 fi
5629
5630 fi
5631
5632 if test "x$LEX" != "x:"; then
5633   { echo "$as_me:$LINENO: checking lex output file root" >&5
5634 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5635 if test "${ac_cv_prog_lex_root+set}" = set; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638   # The minimal lex program is just a single line: %%.  But some broken lexes
5639 # (Solaris, I think it was) want two %% lines, so accommodate them.
5640 cat >conftest.l <<_ACEOF
5641 %%
5642 %%
5643 _ACEOF
5644 { (ac_try="$LEX conftest.l"
5645 case "(($ac_try" in
5646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647   *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650   (eval "$LEX conftest.l") 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); }
5654 if test -f lex.yy.c; then
5655   ac_cv_prog_lex_root=lex.yy
5656 elif test -f lexyy.c; then
5657   ac_cv_prog_lex_root=lexyy
5658 else
5659   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5660 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5661    { (exit 1); exit 1; }; }
5662 fi
5663 fi
5664 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5665 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5666 rm -f conftest.l
5667 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5668
5669 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5670 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5671 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5672   echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674   # POSIX says lex can declare yytext either as a pointer or an array; the
5675 # default is implementation-dependent. Figure out which it is, since
5676 # not all implementations provide the %pointer and %array declarations.
5677 ac_cv_prog_lex_yytext_pointer=no
5678 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5679 ac_save_LIBS=$LIBS
5680 LIBS="$LIBS $LEXLIB"
5681 cat >conftest.$ac_ext <<_ACEOF
5682 `cat $LEX_OUTPUT_ROOT.c`
5683 _ACEOF
5684 rm -f conftest.$ac_objext conftest$ac_exeext
5685 if { (ac_try="$ac_link"
5686 case "(($ac_try" in
5687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688   *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691   (eval "$ac_link") 2>conftest.er1
5692   ac_status=$?
5693   grep -v '^ *+' conftest.er1 >conftest.err
5694   rm -f conftest.er1
5695   cat conftest.err >&5
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); } &&
5698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5699   { (case "(($ac_try" in
5700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701   *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704   (eval "$ac_try") 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; } &&
5708          { ac_try='test -s conftest$ac_exeext'
5709   { (case "(($ac_try" in
5710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711   *) ac_try_echo=$ac_try;;
5712 esac
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714   (eval "$ac_try") 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); }; }; then
5718   ac_cv_prog_lex_yytext_pointer=yes
5719 else
5720   echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723
5724 fi
5725
5726 rm -f core conftest.err conftest.$ac_objext \
5727       conftest$ac_exeext conftest.$ac_ext
5728 LIBS=$ac_save_LIBS
5729 rm -f "${LEX_OUTPUT_ROOT}.c"
5730
5731 fi
5732 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5733 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5734 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5735
5736 cat >>confdefs.h <<\_ACEOF
5737 #define YYTEXT_POINTER 1
5738 _ACEOF
5739
5740 fi
5741
5742 fi
5743
5744 for ac_prog in $LEX flex lex
5745 do
5746   # Extract the first word of "$ac_prog", so it can be a program name with args.
5747 set dummy $ac_prog; ac_word=$2
5748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750 if test "${ac_cv_prog_XLEX+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   if test -n "$XLEX"; then
5754   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759   IFS=$as_save_IFS
5760   test -z "$as_dir" && as_dir=.
5761   for ac_exec_ext in '' $ac_executable_extensions; do
5762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5763     ac_cv_prog_XLEX="$ac_prog"
5764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765     break 2
5766   fi
5767 done
5768 done
5769 IFS=$as_save_IFS
5770
5771 fi
5772 fi
5773 XLEX=$ac_cv_prog_XLEX
5774 if test -n "$XLEX"; then
5775   { echo "$as_me:$LINENO: result: $XLEX" >&5
5776 echo "${ECHO_T}$XLEX" >&6; }
5777 else
5778   { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5780 fi
5781
5782
5783   test -n "$XLEX" && break
5784 done
5785 test -n "$XLEX" || XLEX="none"
5786
5787 if test "$XLEX" = "none"
5788 then
5789   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5790 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5791    { (exit 1); exit 1; }; }
5792 fi
5793
5794 for ac_prog in bison
5795 do
5796   # Extract the first word of "$ac_prog", so it can be a program name with args.
5797 set dummy $ac_prog; ac_word=$2
5798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5800 if test "${ac_cv_prog_BISON+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   if test -n "$BISON"; then
5804   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809   IFS=$as_save_IFS
5810   test -z "$as_dir" && as_dir=.
5811   for ac_exec_ext in '' $ac_executable_extensions; do
5812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5813     ac_cv_prog_BISON="$ac_prog"
5814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815     break 2
5816   fi
5817 done
5818 done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 BISON=$ac_cv_prog_BISON
5824 if test -n "$BISON"; then
5825   { echo "$as_me:$LINENO: result: $BISON" >&5
5826 echo "${ECHO_T}$BISON" >&6; }
5827 else
5828   { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5830 fi
5831
5832
5833   test -n "$BISON" && break
5834 done
5835 test -n "$BISON" || BISON="none"
5836
5837 if test "$BISON" = "none"
5838 then
5839   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5840 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5841    { (exit 1); exit 1; }; }
5842 fi
5843
5844 if test -n "$ac_tool_prefix"; then
5845   for ac_prog in gas as
5846   do
5847     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_prog_AS+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$AS"; then
5855   ac_cv_prog_AS="$AS" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5864     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 AS=$ac_cv_prog_AS
5875 if test -n "$AS"; then
5876   { echo "$as_me:$LINENO: result: $AS" >&5
5877 echo "${ECHO_T}$AS" >&6; }
5878 else
5879   { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5881 fi
5882
5883
5884     test -n "$AS" && break
5885   done
5886 fi
5887 if test -z "$AS"; then
5888   ac_ct_AS=$AS
5889   for ac_prog in gas as
5890 do
5891   # Extract the first word of "$ac_prog", so it can be a program name with args.
5892 set dummy $ac_prog; ac_word=$2
5893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5895 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   if test -n "$ac_ct_AS"; then
5899   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5908     ac_cv_prog_ac_ct_AS="$ac_prog"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5914 IFS=$as_save_IFS
5915
5916 fi
5917 fi
5918 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5919 if test -n "$ac_ct_AS"; then
5920   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5921 echo "${ECHO_T}$ac_ct_AS" >&6; }
5922 else
5923   { echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6; }
5925 fi
5926
5927
5928   test -n "$ac_ct_AS" && break
5929 done
5930
5931   if test "x$ac_ct_AS" = x; then
5932     AS="as"
5933   else
5934     case $cross_compiling:$ac_tool_warned in
5935 yes:)
5936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5937 whose name does not start with the host triplet.  If you think this
5938 configuration is useful to you, please write to autoconf@gnu.org." >&5
5939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5940 whose name does not start with the host triplet.  If you think this
5941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5942 ac_tool_warned=yes ;;
5943 esac
5944     AS=$ac_ct_AS
5945   fi
5946 fi
5947
5948 if test -n "$ac_tool_prefix"; then
5949   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5950 set dummy ${ac_tool_prefix}ld; ac_word=$2
5951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953 if test "${ac_cv_prog_LD+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   if test -n "$LD"; then
5957   ac_cv_prog_LD="$LD" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962   IFS=$as_save_IFS
5963   test -z "$as_dir" && as_dir=.
5964   for ac_exec_ext in '' $ac_executable_extensions; do
5965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5966     ac_cv_prog_LD="${ac_tool_prefix}ld"
5967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968     break 2
5969   fi
5970 done
5971 done
5972 IFS=$as_save_IFS
5973
5974 fi
5975 fi
5976 LD=$ac_cv_prog_LD
5977 if test -n "$LD"; then
5978   { echo "$as_me:$LINENO: result: $LD" >&5
5979 echo "${ECHO_T}$LD" >&6; }
5980 else
5981   { echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6; }
5983 fi
5984
5985
5986 fi
5987 if test -z "$ac_cv_prog_LD"; then
5988   ac_ct_LD=$LD
5989   # Extract the first word of "ld", so it can be a program name with args.
5990 set dummy ld; ac_word=$2
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   if test -n "$ac_ct_LD"; then
5997   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002   IFS=$as_save_IFS
6003   test -z "$as_dir" && as_dir=.
6004   for ac_exec_ext in '' $ac_executable_extensions; do
6005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6006     ac_cv_prog_ac_ct_LD="ld"
6007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008     break 2
6009   fi
6010 done
6011 done
6012 IFS=$as_save_IFS
6013
6014 fi
6015 fi
6016 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6017 if test -n "$ac_ct_LD"; then
6018   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6019 echo "${ECHO_T}$ac_ct_LD" >&6; }
6020 else
6021   { echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6; }
6023 fi
6024
6025   if test "x$ac_ct_LD" = x; then
6026     LD="ld"
6027   else
6028     case $cross_compiling:$ac_tool_warned in
6029 yes:)
6030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6031 whose name does not start with the host triplet.  If you think this
6032 configuration is useful to you, please write to autoconf@gnu.org." >&5
6033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6034 whose name does not start with the host triplet.  If you think this
6035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6036 ac_tool_warned=yes ;;
6037 esac
6038     LD=$ac_ct_LD
6039   fi
6040 else
6041   LD="$ac_cv_prog_LD"
6042 fi
6043
6044 if test -n "$ac_tool_prefix"; then
6045   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}ar; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_prog_AR+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   if test -n "$AR"; then
6053   ac_cv_prog_AR="$AR" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for ac_exec_ext in '' $ac_executable_extensions; do
6061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6062     ac_cv_prog_AR="${ac_tool_prefix}ar"
6063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 AR=$ac_cv_prog_AR
6073 if test -n "$AR"; then
6074   { echo "$as_me:$LINENO: result: $AR" >&5
6075 echo "${ECHO_T}$AR" >&6; }
6076 else
6077   { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6079 fi
6080
6081
6082 fi
6083 if test -z "$ac_cv_prog_AR"; then
6084   ac_ct_AR=$AR
6085   # Extract the first word of "ar", so it can be a program name with args.
6086 set dummy ar; ac_word=$2
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   if test -n "$ac_ct_AR"; then
6093   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098   IFS=$as_save_IFS
6099   test -z "$as_dir" && as_dir=.
6100   for ac_exec_ext in '' $ac_executable_extensions; do
6101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6102     ac_cv_prog_ac_ct_AR="ar"
6103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104     break 2
6105   fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6113 if test -n "$ac_ct_AR"; then
6114   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6115 echo "${ECHO_T}$ac_ct_AR" >&6; }
6116 else
6117   { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6119 fi
6120
6121   if test "x$ac_ct_AR" = x; then
6122     AR="ar"
6123   else
6124     case $cross_compiling:$ac_tool_warned in
6125 yes:)
6126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6127 whose name does not start with the host triplet.  If you think this
6128 configuration is useful to you, please write to autoconf@gnu.org." >&5
6129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6130 whose name does not start with the host triplet.  If you think this
6131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6132 ac_tool_warned=yes ;;
6133 esac
6134     AR=$ac_ct_AR
6135   fi
6136 else
6137   AR="$ac_cv_prog_AR"
6138 fi
6139
6140 if test -n "$ac_tool_prefix"; then
6141   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_RANLIB+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148   if test -n "$RANLIB"; then
6149   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156   for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163 done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 RANLIB=$ac_cv_prog_RANLIB
6169 if test -n "$RANLIB"; then
6170   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6171 echo "${ECHO_T}$RANLIB" >&6; }
6172 else
6173   { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6175 fi
6176
6177
6178 fi
6179 if test -z "$ac_cv_prog_RANLIB"; then
6180   ac_ct_RANLIB=$RANLIB
6181   # Extract the first word of "ranlib", so it can be a program name with args.
6182 set dummy ranlib; ac_word=$2
6183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6185 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   if test -n "$ac_ct_RANLIB"; then
6189   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196   for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_prog_ac_ct_RANLIB="ranlib"
6199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6209 if test -n "$ac_ct_RANLIB"; then
6210   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6211 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6212 else
6213   { echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6; }
6215 fi
6216
6217   if test "x$ac_ct_RANLIB" = x; then
6218     RANLIB=":"
6219   else
6220     case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6223 whose name does not start with the host triplet.  If you think this
6224 configuration is useful to you, please write to autoconf@gnu.org." >&5
6225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6226 whose name does not start with the host triplet.  If you think this
6227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6228 ac_tool_warned=yes ;;
6229 esac
6230     RANLIB=$ac_ct_RANLIB
6231   fi
6232 else
6233   RANLIB="$ac_cv_prog_RANLIB"
6234 fi
6235
6236 if test -n "$ac_tool_prefix"; then
6237   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}strip; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_prog_STRIP+set}" = set; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244   if test -n "$STRIP"; then
6245   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250   IFS=$as_save_IFS
6251   test -z "$as_dir" && as_dir=.
6252   for ac_exec_ext in '' $ac_executable_extensions; do
6253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6254     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256     break 2
6257   fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 STRIP=$ac_cv_prog_STRIP
6265 if test -n "$STRIP"; then
6266   { echo "$as_me:$LINENO: result: $STRIP" >&5
6267 echo "${ECHO_T}$STRIP" >&6; }
6268 else
6269   { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6271 fi
6272
6273
6274 fi
6275 if test -z "$ac_cv_prog_STRIP"; then
6276   ac_ct_STRIP=$STRIP
6277   # Extract the first word of "strip", so it can be a program name with args.
6278 set dummy strip; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   if test -n "$ac_ct_STRIP"; then
6285   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290   IFS=$as_save_IFS
6291   test -z "$as_dir" && as_dir=.
6292   for ac_exec_ext in '' $ac_executable_extensions; do
6293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6294     ac_cv_prog_ac_ct_STRIP="strip"
6295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296     break 2
6297   fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6305 if test -n "$ac_ct_STRIP"; then
6306   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6307 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6308 else
6309   { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6311 fi
6312
6313   if test "x$ac_ct_STRIP" = x; then
6314     STRIP="strip"
6315   else
6316     case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6319 whose name does not start with the host triplet.  If you think this
6320 configuration is useful to you, please write to autoconf@gnu.org." >&5
6321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6322 whose name does not start with the host triplet.  If you think this
6323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6324 ac_tool_warned=yes ;;
6325 esac
6326     STRIP=$ac_ct_STRIP
6327   fi
6328 else
6329   STRIP="$ac_cv_prog_STRIP"
6330 fi
6331
6332 if test -n "$ac_tool_prefix"; then
6333   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6334 set dummy ${ac_tool_prefix}windres; ac_word=$2
6335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6337 if test "${ac_cv_prog_WINDRES+set}" = set; then
6338   echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340   if test -n "$WINDRES"; then
6341   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346   IFS=$as_save_IFS
6347   test -z "$as_dir" && as_dir=.
6348   for ac_exec_ext in '' $ac_executable_extensions; do
6349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6350     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352     break 2
6353   fi
6354 done
6355 done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 WINDRES=$ac_cv_prog_WINDRES
6361 if test -n "$WINDRES"; then
6362   { echo "$as_me:$LINENO: result: $WINDRES" >&5
6363 echo "${ECHO_T}$WINDRES" >&6; }
6364 else
6365   { echo "$as_me:$LINENO: result: no" >&5
6366 echo "${ECHO_T}no" >&6; }
6367 fi
6368
6369
6370 fi
6371 if test -z "$ac_cv_prog_WINDRES"; then
6372   ac_ct_WINDRES=$WINDRES
6373   # Extract the first word of "windres", so it can be a program name with args.
6374 set dummy windres; ac_word=$2
6375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6377 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6378   echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380   if test -n "$ac_ct_WINDRES"; then
6381   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386   IFS=$as_save_IFS
6387   test -z "$as_dir" && as_dir=.
6388   for ac_exec_ext in '' $ac_executable_extensions; do
6389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6390     ac_cv_prog_ac_ct_WINDRES="windres"
6391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392     break 2
6393   fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6397
6398 fi
6399 fi
6400 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6401 if test -n "$ac_ct_WINDRES"; then
6402   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6403 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6404 else
6405   { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6407 fi
6408
6409   if test "x$ac_ct_WINDRES" = x; then
6410     WINDRES="false"
6411   else
6412     case $cross_compiling:$ac_tool_warned in
6413 yes:)
6414 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6415 whose name does not start with the host triplet.  If you think this
6416 configuration is useful to you, please write to autoconf@gnu.org." >&5
6417 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6418 whose name does not start with the host triplet.  If you think this
6419 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6420 ac_tool_warned=yes ;;
6421 esac
6422     WINDRES=$ac_ct_WINDRES
6423   fi
6424 else
6425   WINDRES="$ac_cv_prog_WINDRES"
6426 fi
6427
6428 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6429 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6430 LN_S=$as_ln_s
6431 if test "$LN_S" = "ln -s"; then
6432   { echo "$as_me:$LINENO: result: yes" >&5
6433 echo "${ECHO_T}yes" >&6; }
6434 else
6435   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6436 echo "${ECHO_T}no, using $LN_S" >&6; }
6437 fi
6438
6439 { echo "$as_me:$LINENO: checking whether ln works" >&5
6440 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
6441 rm -f conf$$ conf$$.file
6442 echo >conf$$.file
6443 if ln conf$$.file conf$$ 2>/dev/null; then
6444   LN=ln
6445
6446   { echo "$as_me:$LINENO: result: yes" >&5
6447 echo "${ECHO_T}yes" >&6; }
6448 else
6449   LN="cp -p"
6450
6451   { echo "$as_me:$LINENO: result: no, using $LN" >&5
6452 echo "${ECHO_T}no, using $LN" >&6; }
6453 fi
6454 rm -f conf$$ conf$$.file
6455 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6456 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6457 if test "${ac_cv_path_GREP+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   # Extract the first word of "grep ggrep" to use in msg output
6461 if test -z "$GREP"; then
6462 set dummy grep ggrep; ac_prog_name=$2
6463 if test "${ac_cv_path_GREP+set}" = set; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   ac_path_GREP_found=false
6467 # Loop through the user's path and test for each of PROGNAME-LIST
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473   for ac_prog in grep ggrep; do
6474   for ac_exec_ext in '' $ac_executable_extensions; do
6475     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6476     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6477     # Check for GNU ac_path_GREP and select it if it is found.
6478   # Check for GNU $ac_path_GREP
6479 case `"$ac_path_GREP" --version 2>&1` in
6480 *GNU*)
6481   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6482 *)
6483   ac_count=0
6484   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6485   while :
6486   do
6487     cat "conftest.in" "conftest.in" >"conftest.tmp"
6488     mv "conftest.tmp" "conftest.in"
6489     cp "conftest.in" "conftest.nl"
6490     echo 'GREP' >> "conftest.nl"
6491     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6492     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6493     ac_count=`expr $ac_count + 1`
6494     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6495       # Best one so far, save it but keep looking for a better one
6496       ac_cv_path_GREP="$ac_path_GREP"
6497       ac_path_GREP_max=$ac_count
6498     fi
6499     # 10*(2^10) chars as input seems more than enough
6500     test $ac_count -gt 10 && break
6501   done
6502   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6503 esac
6504
6505
6506     $ac_path_GREP_found && break 3
6507   done
6508 done
6509
6510 done
6511 IFS=$as_save_IFS
6512
6513
6514 fi
6515
6516 GREP="$ac_cv_path_GREP"
6517 if test -z "$GREP"; then
6518   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6519 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6520    { (exit 1); exit 1; }; }
6521 fi
6522
6523 else
6524   ac_cv_path_GREP=$GREP
6525 fi
6526
6527
6528 fi
6529 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6530 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6531  GREP="$ac_cv_path_GREP"
6532
6533
6534 { echo "$as_me:$LINENO: checking for egrep" >&5
6535 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6536 if test "${ac_cv_path_EGREP+set}" = set; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6540    then ac_cv_path_EGREP="$GREP -E"
6541    else
6542      # Extract the first word of "egrep" to use in msg output
6543 if test -z "$EGREP"; then
6544 set dummy egrep; ac_prog_name=$2
6545 if test "${ac_cv_path_EGREP+set}" = set; then
6546   echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548   ac_path_EGREP_found=false
6549 # Loop through the user's path and test for each of PROGNAME-LIST
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_prog in egrep; do
6556   for ac_exec_ext in '' $ac_executable_extensions; do
6557     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6558     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6559     # Check for GNU ac_path_EGREP and select it if it is found.
6560   # Check for GNU $ac_path_EGREP
6561 case `"$ac_path_EGREP" --version 2>&1` in
6562 *GNU*)
6563   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6564 *)
6565   ac_count=0
6566   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6567   while :
6568   do
6569     cat "conftest.in" "conftest.in" >"conftest.tmp"
6570     mv "conftest.tmp" "conftest.in"
6571     cp "conftest.in" "conftest.nl"
6572     echo 'EGREP' >> "conftest.nl"
6573     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6574     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6575     ac_count=`expr $ac_count + 1`
6576     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6577       # Best one so far, save it but keep looking for a better one
6578       ac_cv_path_EGREP="$ac_path_EGREP"
6579       ac_path_EGREP_max=$ac_count
6580     fi
6581     # 10*(2^10) chars as input seems more than enough
6582     test $ac_count -gt 10 && break
6583   done
6584   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6585 esac
6586
6587
6588     $ac_path_EGREP_found && break 3
6589   done
6590 done
6591
6592 done
6593 IFS=$as_save_IFS
6594
6595
6596 fi
6597
6598 EGREP="$ac_cv_path_EGREP"
6599 if test -z "$EGREP"; then
6600   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6601 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6602    { (exit 1); exit 1; }; }
6603 fi
6604
6605 else
6606   ac_cv_path_EGREP=$EGREP
6607 fi
6608
6609
6610    fi
6611 fi
6612 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6613 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6614  EGREP="$ac_cv_path_EGREP"
6615
6616
6617 # Extract the first word of "ldconfig", so it can be a program name with args.
6618 set dummy ldconfig; ac_word=$2
6619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   case $LDCONFIG in
6625   [\\/]* | ?:[\\/]*)
6626   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6627   ;;
6628   *)
6629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in /sbin /usr/sbin $PATH
6631 do
6632   IFS=$as_save_IFS
6633   test -z "$as_dir" && as_dir=.
6634   for ac_exec_ext in '' $ac_executable_extensions; do
6635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6636     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638     break 2
6639   fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6645   ;;
6646 esac
6647 fi
6648 LDCONFIG=$ac_cv_path_LDCONFIG
6649 if test -n "$LDCONFIG"; then
6650   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6651 echo "${ECHO_T}$LDCONFIG" >&6; }
6652 else
6653   { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6655 fi
6656
6657
6658 # Find a good install program.  We prefer a C program (faster),
6659 # so one script is as good as another.  But avoid the broken or
6660 # incompatible versions:
6661 # SysV /etc/install, /usr/sbin/install
6662 # SunOS /usr/etc/install
6663 # IRIX /sbin/install
6664 # AIX /bin/install
6665 # AmigaOS /C/install, which installs bootblocks on floppy discs
6666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6669 # OS/2's system install, which has a completely different semantic
6670 # ./install, which can be erroneously created by make from ./install.sh.
6671 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6672 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6673 if test -z "$INSTALL"; then
6674 if test "${ac_cv_path_install+set}" = set; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680   IFS=$as_save_IFS
6681   test -z "$as_dir" && as_dir=.
6682   # Account for people who put trailing slashes in PATH elements.
6683 case $as_dir/ in
6684   ./ | .// | /cC/* | \
6685   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6686   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6687   /usr/ucb/* ) ;;
6688   *)
6689     # OSF1 and SCO ODT 3.0 have their own names for install.
6690     # Don't use installbsd from OSF since it installs stuff as root
6691     # by default.
6692     for ac_prog in ginstall scoinst install; do
6693       for ac_exec_ext in '' $ac_executable_extensions; do
6694         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6695           if test $ac_prog = install &&
6696             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6697             # AIX install.  It has an incompatible calling convention.
6698             :
6699           elif test $ac_prog = install &&
6700             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6701             # program-specific install script used by HP pwplus--don't use.
6702             :
6703           else
6704             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6705             break 3
6706           fi
6707         fi
6708       done
6709     done
6710     ;;
6711 esac
6712 done
6713 IFS=$as_save_IFS
6714
6715
6716 fi
6717   if test "${ac_cv_path_install+set}" = set; then
6718     INSTALL=$ac_cv_path_install
6719   else
6720     # As a last resort, use the slow shell script.  Don't cache a
6721     # value for INSTALL within a source directory, because that will
6722     # break other packages using the cache if that directory is
6723     # removed, or if the value is a relative name.
6724     INSTALL=$ac_install_sh
6725   fi
6726 fi
6727 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6728 echo "${ECHO_T}$INSTALL" >&6; }
6729
6730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6731 # It thinks the first close brace ends the variable substitution.
6732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6733
6734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6735
6736 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6737
6738 case "$INSTALL" in
6739   [\\/$]* | ?:[\\/]* ) ;;
6740   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6741 esac
6742
6743 for ac_prog in lclint lint
6744 do
6745   # Extract the first word of "$ac_prog", so it can be a program name with args.
6746 set dummy $ac_prog; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_prog_LINT+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752   if test -n "$LINT"; then
6753   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758   IFS=$as_save_IFS
6759   test -z "$as_dir" && as_dir=.
6760   for ac_exec_ext in '' $ac_executable_extensions; do
6761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6762     ac_cv_prog_LINT="$ac_prog"
6763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764     break 2
6765   fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 LINT=$ac_cv_prog_LINT
6773 if test -n "$LINT"; then
6774   { echo "$as_me:$LINENO: result: $LINT" >&5
6775 echo "${ECHO_T}$LINT" >&6; }
6776 else
6777   { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6779 fi
6780
6781
6782   test -n "$LINT" && break
6783 done
6784
6785 if test "$LINT" = "lint"
6786 then
6787   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6788   fi
6789
6790
6791
6792 for ac_prog in fontforge
6793 do
6794   # Extract the first word of "$ac_prog", so it can be a program name with args.
6795 set dummy $ac_prog; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801   if test -n "$FONTFORGE"; then
6802   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809   for ac_exec_ext in '' $ac_executable_extensions; do
6810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811     ac_cv_prog_FONTFORGE="$ac_prog"
6812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 FONTFORGE=$ac_cv_prog_FONTFORGE
6822 if test -n "$FONTFORGE"; then
6823   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6824 echo "${ECHO_T}$FONTFORGE" >&6; }
6825 else
6826   { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6828 fi
6829
6830
6831   test -n "$FONTFORGE" && break
6832 done
6833 test -n "$FONTFORGE" || FONTFORGE="false"
6834
6835 for ac_prog in pkg-config
6836 do
6837   # Extract the first word of "$ac_prog", so it can be a program name with args.
6838 set dummy $ac_prog; ac_word=$2
6839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6842   echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844   if test -n "$PKG_CONFIG"; then
6845   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850   IFS=$as_save_IFS
6851   test -z "$as_dir" && as_dir=.
6852   for ac_exec_ext in '' $ac_executable_extensions; do
6853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6854     ac_cv_prog_PKG_CONFIG="$ac_prog"
6855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856     break 2
6857   fi
6858 done
6859 done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6865 if test -n "$PKG_CONFIG"; then
6866   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6867 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6868 else
6869   { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6871 fi
6872
6873
6874   test -n "$PKG_CONFIG" && break
6875 done
6876 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6877
6878
6879 case $host_cpu in
6880   *i[3456789]86*)
6881     # Extract the first word of "prelink", so it can be a program name with args.
6882 set dummy prelink; ac_word=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_path_PRELINK+set}" = set; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888   case $PRELINK in
6889   [\\/]* | ?:[\\/]*)
6890   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6891   ;;
6892   *)
6893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in /sbin /usr/sbin $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898   for ac_exec_ext in '' $ac_executable_extensions; do
6899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6900     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6909   ;;
6910 esac
6911 fi
6912 PRELINK=$ac_cv_path_PRELINK
6913 if test -n "$PRELINK"; then
6914   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6915 echo "${ECHO_T}$PRELINK" >&6; }
6916 else
6917   { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6919 fi
6920
6921
6922     ;;
6923 esac
6924
6925
6926
6927 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6928 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6929 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6930   echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932   ac_check_lib_save_LIBS=$LIBS
6933 LIBS="-li386  $LIBS"
6934 cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h.  */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h.  */
6940
6941 /* Override any GCC internal prototype to avoid an error.
6942    Use char because int might match the return type of a GCC
6943    builtin and then its argument prototype would still apply.  */
6944 #ifdef __cplusplus
6945 extern "C"
6946 #endif
6947 char i386_set_ldt ();
6948 int
6949 main ()
6950 {
6951 return i386_set_ldt ();
6952   ;
6953   return 0;
6954 }
6955 _ACEOF
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (ac_try="$ac_link"
6958 case "(($ac_try" in
6959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960   *) ac_try_echo=$ac_try;;
6961 esac
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963   (eval "$ac_link") 2>conftest.er1
6964   ac_status=$?
6965   grep -v '^ *+' conftest.er1 >conftest.err
6966   rm -f conftest.er1
6967   cat conftest.err >&5
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); } &&
6970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6971   { (case "(($ac_try" in
6972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973   *) ac_try_echo=$ac_try;;
6974 esac
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976   (eval "$ac_try") 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; } &&
6980          { ac_try='test -s conftest$ac_exeext'
6981   { (case "(($ac_try" in
6982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983   *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986   (eval "$ac_try") 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); }; }; then
6990   ac_cv_lib_i386_i386_set_ldt=yes
6991 else
6992   echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995         ac_cv_lib_i386_i386_set_ldt=no
6996 fi
6997
6998 rm -f core conftest.err conftest.$ac_objext \
6999       conftest$ac_exeext conftest.$ac_ext
7000 LIBS=$ac_check_lib_save_LIBS
7001 fi
7002 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7003 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
7004 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
7005   cat >>confdefs.h <<_ACEOF
7006 #define HAVE_LIBI386 1
7007 _ACEOF
7008
7009   LIBS="-li386 $LIBS"
7010
7011 fi
7012
7013
7014 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7015 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
7016 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   ac_check_lib_save_LIBS=$LIBS
7020 LIBS="-lossaudio  $LIBS"
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h.  */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h.  */
7027
7028 /* Override any GCC internal prototype to avoid an error.
7029    Use char because int might match the return type of a GCC
7030    builtin and then its argument prototype would still apply.  */
7031 #ifdef __cplusplus
7032 extern "C"
7033 #endif
7034 char _oss_ioctl ();
7035 int
7036 main ()
7037 {
7038 return _oss_ioctl ();
7039   ;
7040   return 0;
7041 }
7042 _ACEOF
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (ac_try="$ac_link"
7045 case "(($ac_try" in
7046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047   *) ac_try_echo=$ac_try;;
7048 esac
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050   (eval "$ac_link") 2>conftest.er1
7051   ac_status=$?
7052   grep -v '^ *+' conftest.er1 >conftest.err
7053   rm -f conftest.er1
7054   cat conftest.err >&5
7055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056   (exit $ac_status); } &&
7057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7058   { (case "(($ac_try" in
7059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060   *) ac_try_echo=$ac_try;;
7061 esac
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063   (eval "$ac_try") 2>&5
7064   ac_status=$?
7065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066   (exit $ac_status); }; } &&
7067          { ac_try='test -s conftest$ac_exeext'
7068   { (case "(($ac_try" in
7069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070   *) ac_try_echo=$ac_try;;
7071 esac
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073   (eval "$ac_try") 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); }; }; then
7077   ac_cv_lib_ossaudio__oss_ioctl=yes
7078 else
7079   echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082         ac_cv_lib_ossaudio__oss_ioctl=no
7083 fi
7084
7085 rm -f core conftest.err conftest.$ac_objext \
7086       conftest$ac_exeext conftest.$ac_ext
7087 LIBS=$ac_check_lib_save_LIBS
7088 fi
7089 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7090 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7091 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
7092   cat >>confdefs.h <<_ACEOF
7093 #define HAVE_LIBOSSAUDIO 1
7094 _ACEOF
7095
7096   LIBS="-lossaudio $LIBS"
7097
7098 fi
7099
7100
7101 for ac_func in gethostbyname
7102 do
7103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7117 #define $ac_func innocuous_$ac_func
7118
7119 /* System header to define __stub macros and hopefully few prototypes,
7120     which can conflict with char $ac_func (); below.
7121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7122     <limits.h> exists even on freestanding compilers.  */
7123
7124 #ifdef __STDC__
7125 # include <limits.h>
7126 #else
7127 # include <assert.h>
7128 #endif
7129
7130 #undef $ac_func
7131
7132 /* Override any GCC internal prototype to avoid an error.
7133    Use char because int might match the return type of a GCC
7134    builtin and then its argument prototype would still apply.  */
7135 #ifdef __cplusplus
7136 extern "C"
7137 #endif
7138 char $ac_func ();
7139 /* The GNU C library defines this for functions which it implements
7140     to always fail with ENOSYS.  Some functions are actually named
7141     something starting with __ and the normal name is an alias.  */
7142 #if defined __stub_$ac_func || defined __stub___$ac_func
7143 choke me
7144 #endif
7145
7146 int
7147 main ()
7148 {
7149 return $ac_func ();
7150   ;
7151   return 0;
7152 }
7153 _ACEOF
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (ac_try="$ac_link"
7156 case "(($ac_try" in
7157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158   *) ac_try_echo=$ac_try;;
7159 esac
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161   (eval "$ac_link") 2>conftest.er1
7162   ac_status=$?
7163   grep -v '^ *+' conftest.er1 >conftest.err
7164   rm -f conftest.er1
7165   cat conftest.err >&5
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } &&
7168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7169   { (case "(($ac_try" in
7170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171   *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174   (eval "$ac_try") 2>&5
7175   ac_status=$?
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); }; } &&
7178          { ac_try='test -s conftest$ac_exeext'
7179   { (case "(($ac_try" in
7180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181   *) ac_try_echo=$ac_try;;
7182 esac
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184   (eval "$ac_try") 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; }; then
7188   eval "$as_ac_var=yes"
7189 else
7190   echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193         eval "$as_ac_var=no"
7194 fi
7195
7196 rm -f core conftest.err conftest.$ac_objext \
7197       conftest$ac_exeext conftest.$ac_ext
7198 fi
7199 ac_res=`eval echo '${'$as_ac_var'}'`
7200                { echo "$as_me:$LINENO: result: $ac_res" >&5
7201 echo "${ECHO_T}$ac_res" >&6; }
7202 if test `eval echo '${'$as_ac_var'}'` = yes; then
7203   cat >>confdefs.h <<_ACEOF
7204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7205 _ACEOF
7206
7207 else
7208
7209 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7210 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
7211 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   ac_check_lib_save_LIBS=$LIBS
7215 LIBS="-lnsl  $LIBS"
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h.  */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h.  */
7222
7223 /* Override any GCC internal prototype to avoid an error.
7224    Use char because int might match the return type of a GCC
7225    builtin and then its argument prototype would still apply.  */
7226 #ifdef __cplusplus
7227 extern "C"
7228 #endif
7229 char gethostbyname ();
7230 int
7231 main ()
7232 {
7233 return gethostbyname ();
7234   ;
7235   return 0;
7236 }
7237 _ACEOF
7238 rm -f conftest.$ac_objext conftest$ac_exeext
7239 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
7246   ac_status=$?
7247   grep -v '^ *+' conftest.er1 >conftest.err
7248   rm -f conftest.er1
7249   cat conftest.err >&5
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); } &&
7252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7253   { (case "(($ac_try" in
7254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255   *) ac_try_echo=$ac_try;;
7256 esac
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258   (eval "$ac_try") 2>&5
7259   ac_status=$?
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); }; } &&
7262          { ac_try='test -s conftest$ac_exeext'
7263   { (case "(($ac_try" in
7264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265   *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268   (eval "$ac_try") 2>&5
7269   ac_status=$?
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); }; }; then
7272   ac_cv_lib_nsl_gethostbyname=yes
7273 else
7274   echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7276
7277         ac_cv_lib_nsl_gethostbyname=no
7278 fi
7279
7280 rm -f core conftest.err conftest.$ac_objext \
7281       conftest$ac_exeext conftest.$ac_ext
7282 LIBS=$ac_check_lib_save_LIBS
7283 fi
7284 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7285 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
7286 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7287   cat >>confdefs.h <<_ACEOF
7288 #define HAVE_LIBNSL 1
7289 _ACEOF
7290
7291   LIBS="-lnsl $LIBS"
7292
7293 fi
7294
7295 fi
7296 done
7297
7298
7299 for ac_func in connect
7300 do
7301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h.  */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h.  */
7313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7315 #define $ac_func innocuous_$ac_func
7316
7317 /* System header to define __stub macros and hopefully few prototypes,
7318     which can conflict with char $ac_func (); below.
7319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7320     <limits.h> exists even on freestanding compilers.  */
7321
7322 #ifdef __STDC__
7323 # include <limits.h>
7324 #else
7325 # include <assert.h>
7326 #endif
7327
7328 #undef $ac_func
7329
7330 /* Override any GCC internal prototype to avoid an error.
7331    Use char because int might match the return type of a GCC
7332    builtin and then its argument prototype would still apply.  */
7333 #ifdef __cplusplus
7334 extern "C"
7335 #endif
7336 char $ac_func ();
7337 /* The GNU C library defines this for functions which it implements
7338     to always fail with ENOSYS.  Some functions are actually named
7339     something starting with __ and the normal name is an alias.  */
7340 #if defined __stub_$ac_func || defined __stub___$ac_func
7341 choke me
7342 #endif
7343
7344 int
7345 main ()
7346 {
7347 return $ac_func ();
7348   ;
7349   return 0;
7350 }
7351 _ACEOF
7352 rm -f conftest.$ac_objext conftest$ac_exeext
7353 if { (ac_try="$ac_link"
7354 case "(($ac_try" in
7355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356   *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359   (eval "$ac_link") 2>conftest.er1
7360   ac_status=$?
7361   grep -v '^ *+' conftest.er1 >conftest.err
7362   rm -f conftest.er1
7363   cat conftest.err >&5
7364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365   (exit $ac_status); } &&
7366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7367   { (case "(($ac_try" in
7368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369   *) ac_try_echo=$ac_try;;
7370 esac
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372   (eval "$ac_try") 2>&5
7373   ac_status=$?
7374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375   (exit $ac_status); }; } &&
7376          { ac_try='test -s conftest$ac_exeext'
7377   { (case "(($ac_try" in
7378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379   *) ac_try_echo=$ac_try;;
7380 esac
7381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382   (eval "$ac_try") 2>&5
7383   ac_status=$?
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); }; }; then
7386   eval "$as_ac_var=yes"
7387 else
7388   echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7390
7391         eval "$as_ac_var=no"
7392 fi
7393
7394 rm -f core conftest.err conftest.$ac_objext \
7395       conftest$ac_exeext conftest.$ac_ext
7396 fi
7397 ac_res=`eval echo '${'$as_ac_var'}'`
7398                { echo "$as_me:$LINENO: result: $ac_res" >&5
7399 echo "${ECHO_T}$ac_res" >&6; }
7400 if test `eval echo '${'$as_ac_var'}'` = yes; then
7401   cat >>confdefs.h <<_ACEOF
7402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7403 _ACEOF
7404
7405 else
7406
7407 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7408 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7409 if test "${ac_cv_lib_socket_connect+set}" = set; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   ac_check_lib_save_LIBS=$LIBS
7413 LIBS="-lsocket  $LIBS"
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h.  */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h.  */
7420
7421 /* Override any GCC internal prototype to avoid an error.
7422    Use char because int might match the return type of a GCC
7423    builtin and then its argument prototype would still apply.  */
7424 #ifdef __cplusplus
7425 extern "C"
7426 #endif
7427 char connect ();
7428 int
7429 main ()
7430 {
7431 return connect ();
7432   ;
7433   return 0;
7434 }
7435 _ACEOF
7436 rm -f conftest.$ac_objext conftest$ac_exeext
7437 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
7444   ac_status=$?
7445   grep -v '^ *+' conftest.er1 >conftest.err
7446   rm -f conftest.er1
7447   cat conftest.err >&5
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7451   { (case "(($ac_try" in
7452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453   *) ac_try_echo=$ac_try;;
7454 esac
7455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7456   (eval "$ac_try") 2>&5
7457   ac_status=$?
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); }; } &&
7460          { ac_try='test -s conftest$ac_exeext'
7461   { (case "(($ac_try" in
7462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463   *) ac_try_echo=$ac_try;;
7464 esac
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466   (eval "$ac_try") 2>&5
7467   ac_status=$?
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); }; }; then
7470   ac_cv_lib_socket_connect=yes
7471 else
7472   echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7474
7475         ac_cv_lib_socket_connect=no
7476 fi
7477
7478 rm -f core conftest.err conftest.$ac_objext \
7479       conftest$ac_exeext conftest.$ac_ext
7480 LIBS=$ac_check_lib_save_LIBS
7481 fi
7482 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7483 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7484 if test $ac_cv_lib_socket_connect = yes; then
7485   cat >>confdefs.h <<_ACEOF
7486 #define HAVE_LIBSOCKET 1
7487 _ACEOF
7488
7489   LIBS="-lsocket $LIBS"
7490
7491 fi
7492
7493 fi
7494 done
7495
7496
7497 for ac_func in inet_aton
7498 do
7499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h.  */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h.  */
7511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7513 #define $ac_func innocuous_$ac_func
7514
7515 /* System header to define __stub macros and hopefully few prototypes,
7516     which can conflict with char $ac_func (); below.
7517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7518     <limits.h> exists even on freestanding compilers.  */
7519
7520 #ifdef __STDC__
7521 # include <limits.h>
7522 #else
7523 # include <assert.h>
7524 #endif
7525
7526 #undef $ac_func
7527
7528 /* Override any GCC internal prototype to avoid an error.
7529    Use char because int might match the return type of a GCC
7530    builtin and then its argument prototype would still apply.  */
7531 #ifdef __cplusplus
7532 extern "C"
7533 #endif
7534 char $ac_func ();
7535 /* The GNU C library defines this for functions which it implements
7536     to always fail with ENOSYS.  Some functions are actually named
7537     something starting with __ and the normal name is an alias.  */
7538 #if defined __stub_$ac_func || defined __stub___$ac_func
7539 choke me
7540 #endif
7541
7542 int
7543 main ()
7544 {
7545 return $ac_func ();
7546   ;
7547   return 0;
7548 }
7549 _ACEOF
7550 rm -f conftest.$ac_objext conftest$ac_exeext
7551 if { (ac_try="$ac_link"
7552 case "(($ac_try" in
7553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554   *) ac_try_echo=$ac_try;;
7555 esac
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557   (eval "$ac_link") 2>conftest.er1
7558   ac_status=$?
7559   grep -v '^ *+' conftest.er1 >conftest.err
7560   rm -f conftest.er1
7561   cat conftest.err >&5
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); } &&
7564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7565   { (case "(($ac_try" in
7566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567   *) ac_try_echo=$ac_try;;
7568 esac
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570   (eval "$ac_try") 2>&5
7571   ac_status=$?
7572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); }; } &&
7574          { ac_try='test -s conftest$ac_exeext'
7575   { (case "(($ac_try" in
7576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577   *) ac_try_echo=$ac_try;;
7578 esac
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580   (eval "$ac_try") 2>&5
7581   ac_status=$?
7582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); }; }; then
7584   eval "$as_ac_var=yes"
7585 else
7586   echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7588
7589         eval "$as_ac_var=no"
7590 fi
7591
7592 rm -f core conftest.err conftest.$ac_objext \
7593       conftest$ac_exeext conftest.$ac_ext
7594 fi
7595 ac_res=`eval echo '${'$as_ac_var'}'`
7596                { echo "$as_me:$LINENO: result: $ac_res" >&5
7597 echo "${ECHO_T}$ac_res" >&6; }
7598 if test `eval echo '${'$as_ac_var'}'` = yes; then
7599   cat >>confdefs.h <<_ACEOF
7600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7601 _ACEOF
7602
7603 else
7604
7605 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
7606 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
7607 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   ac_check_lib_save_LIBS=$LIBS
7611 LIBS="-lresolv  $LIBS"
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h.  */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h.  */
7618
7619 /* Override any GCC internal prototype to avoid an error.
7620    Use char because int might match the return type of a GCC
7621    builtin and then its argument prototype would still apply.  */
7622 #ifdef __cplusplus
7623 extern "C"
7624 #endif
7625 char inet_aton ();
7626 int
7627 main ()
7628 {
7629 return inet_aton ();
7630   ;
7631   return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest.$ac_objext conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7636 case "(($ac_try" in
7637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638   *) ac_try_echo=$ac_try;;
7639 esac
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641   (eval "$ac_link") 2>conftest.er1
7642   ac_status=$?
7643   grep -v '^ *+' conftest.er1 >conftest.err
7644   rm -f conftest.er1
7645   cat conftest.err >&5
7646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); } &&
7648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7649   { (case "(($ac_try" in
7650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651   *) ac_try_echo=$ac_try;;
7652 esac
7653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654   (eval "$ac_try") 2>&5
7655   ac_status=$?
7656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657   (exit $ac_status); }; } &&
7658          { ac_try='test -s conftest$ac_exeext'
7659   { (case "(($ac_try" in
7660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661   *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664   (eval "$ac_try") 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); }; }; then
7668   ac_cv_lib_resolv_inet_aton=yes
7669 else
7670   echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673         ac_cv_lib_resolv_inet_aton=no
7674 fi
7675
7676 rm -f core conftest.err conftest.$ac_objext \
7677       conftest$ac_exeext conftest.$ac_ext
7678 LIBS=$ac_check_lib_save_LIBS
7679 fi
7680 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
7681 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
7682 if test $ac_cv_lib_resolv_inet_aton = yes; then
7683   cat >>confdefs.h <<_ACEOF
7684 #define HAVE_LIBRESOLV 1
7685 _ACEOF
7686
7687   LIBS="-lresolv $LIBS"
7688
7689 fi
7690
7691 fi
7692 done
7693
7694
7695 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7696 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
7697 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7698   echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700   ac_check_lib_save_LIBS=$LIBS
7701 LIBS="-lxpg4  $LIBS"
7702 cat >conftest.$ac_ext <<_ACEOF
7703 /* confdefs.h.  */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h.  */
7708
7709 /* Override any GCC internal prototype to avoid an error.
7710    Use char because int might match the return type of a GCC
7711    builtin and then its argument prototype would still apply.  */
7712 #ifdef __cplusplus
7713 extern "C"
7714 #endif
7715 char _xpg4_setrunelocale ();
7716 int
7717 main ()
7718 {
7719 return _xpg4_setrunelocale ();
7720   ;
7721   return 0;
7722 }
7723 _ACEOF
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (ac_try="$ac_link"
7726 case "(($ac_try" in
7727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728   *) ac_try_echo=$ac_try;;
7729 esac
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731   (eval "$ac_link") 2>conftest.er1
7732   ac_status=$?
7733   grep -v '^ *+' conftest.er1 >conftest.err
7734   rm -f conftest.er1
7735   cat conftest.err >&5
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); } &&
7738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7739   { (case "(($ac_try" in
7740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741   *) ac_try_echo=$ac_try;;
7742 esac
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744   (eval "$ac_try") 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); }; } &&
7748          { ac_try='test -s conftest$ac_exeext'
7749   { (case "(($ac_try" in
7750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751   *) ac_try_echo=$ac_try;;
7752 esac
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754   (eval "$ac_try") 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; }; then
7758   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
7759 else
7760   echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763         ac_cv_lib_xpg4__xpg4_setrunelocale=no
7764 fi
7765
7766 rm -f core conftest.err conftest.$ac_objext \
7767       conftest$ac_exeext conftest.$ac_ext
7768 LIBS=$ac_check_lib_save_LIBS
7769 fi
7770 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7771 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
7772 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
7773   cat >>confdefs.h <<_ACEOF
7774 #define HAVE_LIBXPG4 1
7775 _ACEOF
7776
7777   LIBS="-lxpg4 $LIBS"
7778
7779 fi
7780
7781 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7782 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
7783 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786   ac_check_lib_save_LIBS=$LIBS
7787 LIBS="-lpthread  $LIBS"
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h.  */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h.  */
7794
7795 /* Override any GCC internal prototype to avoid an error.
7796    Use char because int might match the return type of a GCC
7797    builtin and then its argument prototype would still apply.  */
7798 #ifdef __cplusplus
7799 extern "C"
7800 #endif
7801 char pthread_create ();
7802 int
7803 main ()
7804 {
7805 return pthread_create ();
7806   ;
7807   return 0;
7808 }
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (ac_try="$ac_link"
7812 case "(($ac_try" in
7813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814   *) ac_try_echo=$ac_try;;
7815 esac
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817   (eval "$ac_link") 2>conftest.er1
7818   ac_status=$?
7819   grep -v '^ *+' conftest.er1 >conftest.err
7820   rm -f conftest.er1
7821   cat conftest.err >&5
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); } &&
7824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7825   { (case "(($ac_try" in
7826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827   *) ac_try_echo=$ac_try;;
7828 esac
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830   (eval "$ac_try") 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; } &&
7834          { ac_try='test -s conftest$ac_exeext'
7835   { (case "(($ac_try" in
7836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837   *) ac_try_echo=$ac_try;;
7838 esac
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840   (eval "$ac_try") 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; }; then
7844   ac_cv_lib_pthread_pthread_create=yes
7845 else
7846   echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849         ac_cv_lib_pthread_pthread_create=no
7850 fi
7851
7852 rm -f core conftest.err conftest.$ac_objext \
7853       conftest$ac_exeext conftest.$ac_ext
7854 LIBS=$ac_check_lib_save_LIBS
7855 fi
7856 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
7857 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
7858 if test $ac_cv_lib_pthread_pthread_create = yes; then
7859   LIBPTHREAD="-lpthread"
7860
7861 fi
7862
7863
7864 XLIB=""
7865
7866 XFILES=""
7867
7868 OPENGLFILES=""
7869
7870 GLU32FILES=""
7871
7872 OPENGL_LIBS=""
7873
7874
7875
7876 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7878 if test "${ac_cv_header_stdc+set}" = set; then
7879   echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881   cat >conftest.$ac_ext <<_ACEOF
7882 /* confdefs.h.  */
7883 _ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h.  */
7887 #include <stdlib.h>
7888 #include <stdarg.h>
7889 #include <string.h>
7890 #include <float.h>
7891
7892 int
7893 main ()
7894 {
7895
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 rm -f conftest.$ac_objext
7901 if { (ac_try="$ac_compile"
7902 case "(($ac_try" in
7903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904   *) ac_try_echo=$ac_try;;
7905 esac
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907   (eval "$ac_compile") 2>conftest.er1
7908   ac_status=$?
7909   grep -v '^ *+' conftest.er1 >conftest.err
7910   rm -f conftest.er1
7911   cat conftest.err >&5
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } &&
7914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7915   { (case "(($ac_try" in
7916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917   *) ac_try_echo=$ac_try;;
7918 esac
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920   (eval "$ac_try") 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; } &&
7924          { ac_try='test -s conftest.$ac_objext'
7925   { (case "(($ac_try" in
7926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927   *) ac_try_echo=$ac_try;;
7928 esac
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930   (eval "$ac_try") 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); }; }; then
7934   ac_cv_header_stdc=yes
7935 else
7936   echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939         ac_cv_header_stdc=no
7940 fi
7941
7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943
7944 if test $ac_cv_header_stdc = yes; then
7945   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
7953
7954 _ACEOF
7955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7956   $EGREP "memchr" >/dev/null 2>&1; then
7957   :
7958 else
7959   ac_cv_header_stdc=no
7960 fi
7961 rm -f conftest*
7962
7963 fi
7964
7965 if test $ac_cv_header_stdc = yes; then
7966   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7967   cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973 #include <stdlib.h>
7974
7975 _ACEOF
7976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7977   $EGREP "free" >/dev/null 2>&1; then
7978   :
7979 else
7980   ac_cv_header_stdc=no
7981 fi
7982 rm -f conftest*
7983
7984 fi
7985
7986 if test $ac_cv_header_stdc = yes; then
7987   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7988   if test "$cross_compiling" = yes; then
7989   :
7990 else
7991   cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h.  */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h.  */
7997 #include <ctype.h>
7998 #include <stdlib.h>
7999 #if ((' ' & 0x0FF) == 0x020)
8000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8002 #else
8003 # define ISLOWER(c) \
8004                    (('a' <= (c) && (c) <= 'i') \
8005                      || ('j' <= (c) && (c) <= 'r') \
8006                      || ('s' <= (c) && (c) <= 'z'))
8007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8008 #endif
8009
8010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8011 int
8012 main ()
8013 {
8014   int i;
8015   for (i = 0; i < 256; i++)
8016     if (XOR (islower (i), ISLOWER (i))
8017         || toupper (i) != TOUPPER (i))
8018       return 2;
8019   return 0;
8020 }
8021 _ACEOF
8022 rm -f conftest$ac_exeext
8023 if { (ac_try="$ac_link"
8024 case "(($ac_try" in
8025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026   *) ac_try_echo=$ac_try;;
8027 esac
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029   (eval "$ac_link") 2>&5
8030   ac_status=$?
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8033   { (case "(($ac_try" in
8034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035   *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038   (eval "$ac_try") 2>&5
8039   ac_status=$?
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); }; }; then
8042   :
8043 else
8044   echo "$as_me: program exited with status $ac_status" >&5
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8047
8048 ( exit $ac_status )
8049 ac_cv_header_stdc=no
8050 fi
8051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8052 fi
8053
8054
8055 fi
8056 fi
8057 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8058 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8059 if test $ac_cv_header_stdc = yes; then
8060
8061 cat >>confdefs.h <<\_ACEOF
8062 #define STDC_HEADERS 1
8063 _ACEOF
8064
8065 fi
8066
8067 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8078                   inttypes.h stdint.h unistd.h
8079 do
8080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8084   echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086   cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h.  */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h.  */
8092 $ac_includes_default
8093
8094 #include <$ac_header>
8095 _ACEOF
8096 rm -f conftest.$ac_objext
8097 if { (ac_try="$ac_compile"
8098 case "(($ac_try" in
8099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100   *) ac_try_echo=$ac_try;;
8101 esac
8102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103   (eval "$ac_compile") 2>conftest.er1
8104   ac_status=$?
8105   grep -v '^ *+' conftest.er1 >conftest.err
8106   rm -f conftest.er1
8107   cat conftest.err >&5
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); } &&
8110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8111   { (case "(($ac_try" in
8112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113   *) ac_try_echo=$ac_try;;
8114 esac
8115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8116   (eval "$ac_try") 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; } &&
8120          { ac_try='test -s conftest.$ac_objext'
8121   { (case "(($ac_try" in
8122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123   *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126   (eval "$ac_try") 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; }; then
8130   eval "$as_ac_Header=yes"
8131 else
8132   echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135         eval "$as_ac_Header=no"
8136 fi
8137
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 fi
8140 ac_res=`eval echo '${'$as_ac_Header'}'`
8141                { echo "$as_me:$LINENO: result: $ac_res" >&5
8142 echo "${ECHO_T}$ac_res" >&6; }
8143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8144   cat >>confdefs.h <<_ACEOF
8145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8146 _ACEOF
8147
8148 fi
8149
8150 done
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261 for ac_header in \
8262         AudioUnit/AudioUnit.h \
8263         CoreAudio/CoreAudio.h \
8264         IOKit/IOKitLib.h \
8265         alsa/asoundlib.h \
8266         arpa/inet.h \
8267         arpa/nameser.h \
8268         asm/types.h \
8269         capi20.h \
8270         cups/cups.h \
8271         curses.h \
8272         direct.h \
8273         dlfcn.h \
8274         elf.h \
8275         float.h \
8276         fontconfig/fontconfig.h \
8277         getopt.h \
8278         gif_lib.h \
8279         ieeefp.h \
8280         io.h \
8281         jack/jack.h \
8282         jpeglib.h \
8283         lber.h \
8284         lcms.h \
8285         lcms/lcms.h \
8286         ldap.h \
8287         libaudioio.h \
8288         link.h \
8289         linux/cdrom.h \
8290         linux/compiler.h \
8291         linux/hdreg.h \
8292         linux/input.h \
8293         linux/ioctl.h \
8294         linux/joystick.h \
8295         linux/major.h \
8296         linux/param.h \
8297         linux/serial.h \
8298         linux/ucdrom.h \
8299         mach/machine.h \
8300         machine/cpu.h \
8301         machine/limits.h \
8302         machine/soundcard.h \
8303         mntent.h \
8304         ncurses.h \
8305         netdb.h \
8306         netinet/in.h \
8307         netinet/in_systm.h \
8308         netinet/tcp.h \
8309         netinet/tcp_fsm.h \
8310         openssl/err.h \
8311         openssl/ssl.h \
8312         poll.h \
8313         process.h \
8314         pthread.h \
8315         pthread_np.h \
8316         pwd.h \
8317         regex.h \
8318         sched.h \
8319         scsi/scsi.h \
8320         scsi/scsi_ioctl.h \
8321         scsi/sg.h \
8322         soundcard.h \
8323         stdint.h \
8324         strings.h \
8325         sys/asoundlib.h \
8326         sys/cdio.h \
8327         sys/elf32.h \
8328         sys/epoll.h \
8329         sys/errno.h \
8330         sys/event.h \
8331         sys/exec_elf.h \
8332         sys/filio.h \
8333         sys/ioctl.h \
8334         sys/ipc.h \
8335         sys/limits.h \
8336         sys/link.h \
8337         sys/lwp.h \
8338         sys/mman.h \
8339         sys/modem.h \
8340         sys/msg.h \
8341         sys/mtio.h \
8342         sys/param.h \
8343         sys/poll.h \
8344         sys/prctl.h \
8345         sys/ptrace.h \
8346         sys/reg.h \
8347         sys/resource.h \
8348         sys/scsiio.h \
8349         sys/shm.h \
8350         sys/signal.h \
8351         sys/socket.h \
8352         sys/sockio.h \
8353         sys/soundcard.h \
8354         sys/statvfs.h \
8355         sys/strtio.h \
8356         sys/syscall.h \
8357         sys/sysctl.h \
8358         sys/time.h \
8359         sys/times.h \
8360         sys/uio.h \
8361         sys/un.h \
8362         sys/vm86.h \
8363         sys/wait.h \
8364         syscall.h \
8365         termios.h \
8366         unicode/ubidi.h \
8367         unistd.h \
8368         utime.h \
8369         valgrind/memcheck.h
8370
8371 do
8372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8374   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 fi
8379 ac_res=`eval echo '${'$as_ac_Header'}'`
8380                { echo "$as_me:$LINENO: result: $ac_res" >&5
8381 echo "${ECHO_T}$ac_res" >&6; }
8382 else
8383   # Is the header compilable?
8384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h.  */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h.  */
8392 $ac_includes_default
8393 #include <$ac_header>
8394 _ACEOF
8395 rm -f conftest.$ac_objext
8396 if { (ac_try="$ac_compile"
8397 case "(($ac_try" in
8398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399   *) ac_try_echo=$ac_try;;
8400 esac
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402   (eval "$ac_compile") 2>conftest.er1
8403   ac_status=$?
8404   grep -v '^ *+' conftest.er1 >conftest.err
8405   rm -f conftest.er1
8406   cat conftest.err >&5
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } &&
8409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8410   { (case "(($ac_try" in
8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412   *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415   (eval "$ac_try") 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; } &&
8419          { ac_try='test -s conftest.$ac_objext'
8420   { (case "(($ac_try" in
8421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422   *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425   (eval "$ac_try") 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); }; }; then
8429   ac_header_compiler=yes
8430 else
8431   echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8433
8434         ac_header_compiler=no
8435 fi
8436
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8439 echo "${ECHO_T}$ac_header_compiler" >&6; }
8440
8441 # Is the header present?
8442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8444 cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h.  */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h.  */
8450 #include <$ac_header>
8451 _ACEOF
8452 if { (ac_try="$ac_cpp conftest.$ac_ext"
8453 case "(($ac_try" in
8454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455   *) ac_try_echo=$ac_try;;
8456 esac
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8459   ac_status=$?
8460   grep -v '^ *+' conftest.er1 >conftest.err
8461   rm -f conftest.er1
8462   cat conftest.err >&5
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } >/dev/null; then
8465   if test -s conftest.err; then
8466     ac_cpp_err=$ac_c_preproc_warn_flag
8467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8468   else
8469     ac_cpp_err=
8470   fi
8471 else
8472   ac_cpp_err=yes
8473 fi
8474 if test -z "$ac_cpp_err"; then
8475   ac_header_preproc=yes
8476 else
8477   echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480   ac_header_preproc=no
8481 fi
8482
8483 rm -f conftest.err conftest.$ac_ext
8484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8485 echo "${ECHO_T}$ac_header_preproc" >&6; }
8486
8487 # So?  What about this header?
8488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8489   yes:no: )
8490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8494     ac_header_preproc=yes
8495     ;;
8496   no:yes:* )
8497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8509     ( cat <<\_ASBOX
8510 ## ------------------------------------ ##
8511 ## Report this to wine-devel@winehq.org ##
8512 ## ------------------------------------ ##
8513 _ASBOX
8514      ) | sed "s/^/$as_me: WARNING:     /" >&2
8515     ;;
8516 esac
8517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8520   echo $ECHO_N "(cached) $ECHO_C" >&6
8521 else
8522   eval "$as_ac_Header=\$ac_header_preproc"
8523 fi
8524 ac_res=`eval echo '${'$as_ac_Header'}'`
8525                { echo "$as_me:$LINENO: result: $ac_res" >&5
8526 echo "${ECHO_T}$ac_res" >&6; }
8527
8528 fi
8529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8530   cat >>confdefs.h <<_ACEOF
8531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8532 _ACEOF
8533
8534 fi
8535
8536 done
8537
8538 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8539 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
8540 if test "${ac_cv_header_stat_broken+set}" = set; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543   cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h.  */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h.  */
8549 #include <sys/types.h>
8550 #include <sys/stat.h>
8551
8552 #if defined S_ISBLK && defined S_IFDIR
8553 # if S_ISBLK (S_IFDIR)
8554 You lose.
8555 # endif
8556 #endif
8557
8558 #if defined S_ISBLK && defined S_IFCHR
8559 # if S_ISBLK (S_IFCHR)
8560 You lose.
8561 # endif
8562 #endif
8563
8564 #if defined S_ISLNK && defined S_IFREG
8565 # if S_ISLNK (S_IFREG)
8566 You lose.
8567 # endif
8568 #endif
8569
8570 #if defined S_ISSOCK && defined S_IFREG
8571 # if S_ISSOCK (S_IFREG)
8572 You lose.
8573 # endif
8574 #endif
8575
8576 _ACEOF
8577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8578   $EGREP "You lose" >/dev/null 2>&1; then
8579   ac_cv_header_stat_broken=yes
8580 else
8581   ac_cv_header_stat_broken=no
8582 fi
8583 rm -f conftest*
8584
8585 fi
8586 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8587 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
8588 if test $ac_cv_header_stat_broken = yes; then
8589
8590 cat >>confdefs.h <<\_ACEOF
8591 #define STAT_MACROS_BROKEN 1
8592 _ACEOF
8593
8594 fi
8595
8596
8597
8598
8599
8600
8601
8602 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8603 do
8604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h.  */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h.  */
8616 #include <sys/types.h>
8617      #if HAVE_SYS_PARAM_H
8618      # include <sys/param.h>
8619      #endif
8620
8621 #include <$ac_header>
8622 _ACEOF
8623 rm -f conftest.$ac_objext
8624 if { (ac_try="$ac_compile"
8625 case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630   (eval "$ac_compile") 2>conftest.er1
8631   ac_status=$?
8632   grep -v '^ *+' conftest.er1 >conftest.err
8633   rm -f conftest.er1
8634   cat conftest.err >&5
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); } &&
8637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8638   { (case "(($ac_try" in
8639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640   *) ac_try_echo=$ac_try;;
8641 esac
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643   (eval "$ac_try") 2>&5
8644   ac_status=$?
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); }; } &&
8647          { ac_try='test -s conftest.$ac_objext'
8648   { (case "(($ac_try" in
8649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650   *) ac_try_echo=$ac_try;;
8651 esac
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653   (eval "$ac_try") 2>&5
8654   ac_status=$?
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); }; }; then
8657   eval "$as_ac_Header=yes"
8658 else
8659   echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662         eval "$as_ac_Header=no"
8663 fi
8664
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 fi
8667 ac_res=`eval echo '${'$as_ac_Header'}'`
8668                { echo "$as_me:$LINENO: result: $ac_res" >&5
8669 echo "${ECHO_T}$ac_res" >&6; }
8670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8671   cat >>confdefs.h <<_ACEOF
8672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8673 _ACEOF
8674
8675 fi
8676
8677 done
8678
8679
8680
8681
8682
8683
8684
8685
8686 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
8687 do
8688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8692   echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694   cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h.  */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h.  */
8700 #include <sys/types.h>
8701      #if HAVE_SYS_SOCKET_H
8702      # include <sys/socket.h>
8703      #endif
8704
8705 #include <$ac_header>
8706 _ACEOF
8707 rm -f conftest.$ac_objext
8708 if { (ac_try="$ac_compile"
8709 case "(($ac_try" in
8710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711   *) ac_try_echo=$ac_try;;
8712 esac
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714   (eval "$ac_compile") 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8722   { (case "(($ac_try" in
8723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724   *) ac_try_echo=$ac_try;;
8725 esac
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727   (eval "$ac_try") 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; } &&
8731          { ac_try='test -s conftest.$ac_objext'
8732   { (case "(($ac_try" in
8733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734   *) ac_try_echo=$ac_try;;
8735 esac
8736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8737   (eval "$ac_try") 2>&5
8738   ac_status=$?
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   (exit $ac_status); }; }; then
8741   eval "$as_ac_Header=yes"
8742 else
8743   echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746         eval "$as_ac_Header=no"
8747 fi
8748
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 fi
8751 ac_res=`eval echo '${'$as_ac_Header'}'`
8752                { echo "$as_me:$LINENO: result: $ac_res" >&5
8753 echo "${ECHO_T}$ac_res" >&6; }
8754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8755   cat >>confdefs.h <<_ACEOF
8756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8757 _ACEOF
8758
8759 fi
8760
8761 done
8762
8763
8764
8765 for ac_header in linux/ipx.h
8766 do
8767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8771   echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773   cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779 #include <sys/types.h>
8780      #ifdef HAVE_ASM_TYPES_H
8781      # include <asm/types.h>
8782      #endif
8783      #if HAVE_SYS_SOCKET_H
8784      # include <sys/socket.h>
8785      #endif
8786
8787 #include <$ac_header>
8788 _ACEOF
8789 rm -f conftest.$ac_objext
8790 if { (ac_try="$ac_compile"
8791 case "(($ac_try" in
8792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793   *) ac_try_echo=$ac_try;;
8794 esac
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796   (eval "$ac_compile") 2>conftest.er1
8797   ac_status=$?
8798   grep -v '^ *+' conftest.er1 >conftest.err
8799   rm -f conftest.er1
8800   cat conftest.err >&5
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); } &&
8803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8804   { (case "(($ac_try" in
8805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806   *) ac_try_echo=$ac_try;;
8807 esac
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809   (eval "$ac_try") 2>&5
8810   ac_status=$?
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); }; } &&
8813          { ac_try='test -s conftest.$ac_objext'
8814   { (case "(($ac_try" in
8815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816   *) ac_try_echo=$ac_try;;
8817 esac
8818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819   (eval "$ac_try") 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); }; }; then
8823   eval "$as_ac_Header=yes"
8824 else
8825   echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8827
8828         eval "$as_ac_Header=no"
8829 fi
8830
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832 fi
8833 ac_res=`eval echo '${'$as_ac_Header'}'`
8834                { echo "$as_me:$LINENO: result: $ac_res" >&5
8835 echo "${ECHO_T}$ac_res" >&6; }
8836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8837   cat >>confdefs.h <<_ACEOF
8838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8839 _ACEOF
8840
8841 fi
8842
8843 done
8844
8845
8846
8847 for ac_header in resolv.h
8848 do
8849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   cat >conftest.$ac_ext <<_ACEOF
8856 /* confdefs.h.  */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h.  */
8861 #include <sys/types.h>
8862      #if HAVE_SYS_SOCKET_H
8863      # include <sys/socket.h>
8864      #endif
8865      #if HAVE_NETINET_IN_H
8866      # include <netinet/in.h>
8867      #endif
8868      #if HAVE_ARPA_NAMESER_H
8869      # include <arpa/nameser.h>
8870      #endif
8871
8872 #include <$ac_header>
8873 _ACEOF
8874 rm -f conftest.$ac_objext
8875 if { (ac_try="$ac_compile"
8876 case "(($ac_try" in
8877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878   *) ac_try_echo=$ac_try;;
8879 esac
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881   (eval "$ac_compile") 2>conftest.er1
8882   ac_status=$?
8883   grep -v '^ *+' conftest.er1 >conftest.err
8884   rm -f conftest.er1
8885   cat conftest.err >&5
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); } &&
8888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8889   { (case "(($ac_try" in
8890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891   *) ac_try_echo=$ac_try;;
8892 esac
8893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8894   (eval "$ac_try") 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); }; } &&
8898          { ac_try='test -s conftest.$ac_objext'
8899   { (case "(($ac_try" in
8900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901   *) ac_try_echo=$ac_try;;
8902 esac
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904   (eval "$ac_try") 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }; }; then
8908   eval "$as_ac_Header=yes"
8909 else
8910   echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8912
8913         eval "$as_ac_Header=no"
8914 fi
8915
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 fi
8918 ac_res=`eval echo '${'$as_ac_Header'}'`
8919                { echo "$as_me:$LINENO: result: $ac_res" >&5
8920 echo "${ECHO_T}$ac_res" >&6; }
8921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8922   cat >>confdefs.h <<_ACEOF
8923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8924 _ACEOF
8925
8926 fi
8927
8928 done
8929
8930
8931
8932 for ac_header in ucontext.h
8933 do
8934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8938   echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940   cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h.  */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h.  */
8946 #include <signal.h>
8947
8948 #include <$ac_header>
8949 _ACEOF
8950 rm -f conftest.$ac_objext
8951 if { (ac_try="$ac_compile"
8952 case "(($ac_try" in
8953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954   *) ac_try_echo=$ac_try;;
8955 esac
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957   (eval "$ac_compile") 2>conftest.er1
8958   ac_status=$?
8959   grep -v '^ *+' conftest.er1 >conftest.err
8960   rm -f conftest.er1
8961   cat conftest.err >&5
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); } &&
8964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8965   { (case "(($ac_try" in
8966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967   *) ac_try_echo=$ac_try;;
8968 esac
8969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970   (eval "$ac_try") 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; } &&
8974          { ac_try='test -s conftest.$ac_objext'
8975   { (case "(($ac_try" in
8976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977   *) ac_try_echo=$ac_try;;
8978 esac
8979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8980   (eval "$ac_try") 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; }; then
8984   eval "$as_ac_Header=yes"
8985 else
8986   echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8988
8989         eval "$as_ac_Header=no"
8990 fi
8991
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 fi
8994 ac_res=`eval echo '${'$as_ac_Header'}'`
8995                { echo "$as_me:$LINENO: result: $ac_res" >&5
8996 echo "${ECHO_T}$ac_res" >&6; }
8997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8998   cat >>confdefs.h <<_ACEOF
8999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9000 _ACEOF
9001
9002 fi
9003
9004 done
9005
9006
9007
9008 for ac_header in linux/videodev.h
9009 do
9010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9014   echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016   cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h.  */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h.  */
9022 #ifdef HAVE_SYS_TIME_H
9023 #include <sys/time.h>
9024 #endif
9025 #include <sys/types.h>
9026 #ifdef HAVE_ASM_TYPES_H
9027 #include <asm/types.h>
9028 #endif
9029
9030 #include <$ac_header>
9031 _ACEOF
9032 rm -f conftest.$ac_objext
9033 if { (ac_try="$ac_compile"
9034 case "(($ac_try" in
9035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036   *) ac_try_echo=$ac_try;;
9037 esac
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039   (eval "$ac_compile") 2>conftest.er1
9040   ac_status=$?
9041   grep -v '^ *+' conftest.er1 >conftest.err
9042   rm -f conftest.er1
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } &&
9046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9047   { (case "(($ac_try" in
9048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049   *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052   (eval "$ac_try") 2>&5
9053   ac_status=$?
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); }; } &&
9056          { ac_try='test -s conftest.$ac_objext'
9057   { (case "(($ac_try" in
9058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059   *) ac_try_echo=$ac_try;;
9060 esac
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062   (eval "$ac_try") 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; }; then
9066   eval "$as_ac_Header=yes"
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071         eval "$as_ac_Header=no"
9072 fi
9073
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 fi
9076 ac_res=`eval echo '${'$as_ac_Header'}'`
9077                { echo "$as_me:$LINENO: result: $ac_res" >&5
9078 echo "${ECHO_T}$ac_res" >&6; }
9079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9080   cat >>confdefs.h <<_ACEOF
9081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9082 _ACEOF
9083
9084 fi
9085
9086 done
9087
9088
9089
9090 for ac_header in linux/capi.h
9091 do
9092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9096   echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098   cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h.  */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h.  */
9104 #define __user
9105
9106 #include <$ac_header>
9107 _ACEOF
9108 rm -f conftest.$ac_objext
9109 if { (ac_try="$ac_compile"
9110 case "(($ac_try" in
9111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112   *) ac_try_echo=$ac_try;;
9113 esac
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115   (eval "$ac_compile") 2>conftest.er1
9116   ac_status=$?
9117   grep -v '^ *+' conftest.er1 >conftest.err
9118   rm -f conftest.er1
9119   cat conftest.err >&5
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); } &&
9122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9123   { (case "(($ac_try" in
9124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125   *) ac_try_echo=$ac_try;;
9126 esac
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128   (eval "$ac_try") 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); }; } &&
9132          { ac_try='test -s conftest.$ac_objext'
9133   { (case "(($ac_try" in
9134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135   *) ac_try_echo=$ac_try;;
9136 esac
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138   (eval "$ac_try") 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); }; }; then
9142   eval "$as_ac_Header=yes"
9143 else
9144   echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9146
9147         eval "$as_ac_Header=no"
9148 fi
9149
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 fi
9152 ac_res=`eval echo '${'$as_ac_Header'}'`
9153                { echo "$as_me:$LINENO: result: $ac_res" >&5
9154 echo "${ECHO_T}$ac_res" >&6; }
9155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9156   cat >>confdefs.h <<_ACEOF
9157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9158 _ACEOF
9159
9160 fi
9161
9162 done
9163
9164
9165
9166 if test "$have_x" = "yes"
9167 then
9168     XLIB="-lXext -lX11"
9169     ac_save_CPPFLAGS="$CPPFLAGS"
9170     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181 for ac_header in X11/Xlib.h \
9182                       X11/XKBlib.h \
9183                       X11/Xutil.h \
9184                       X11/extensions/shape.h \
9185                       X11/extensions/XInput.h \
9186                       X11/extensions/XShm.h \
9187                       X11/extensions/Xrandr.h \
9188                       X11/extensions/Xrender.h \
9189                       X11/extensions/xf86vmode.h
9190 do
9191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9195   echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197   cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h.  */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h.  */
9203 #ifdef HAVE_X11_XLIB_H
9204 # include <X11/Xlib.h>
9205 #endif
9206 #ifdef HAVE_X11_XUTIL_H
9207 # include <X11/Xutil.h>
9208 #endif
9209
9210 #include <$ac_header>
9211 _ACEOF
9212 rm -f conftest.$ac_objext
9213 if { (ac_try="$ac_compile"
9214 case "(($ac_try" in
9215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216   *) ac_try_echo=$ac_try;;
9217 esac
9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219   (eval "$ac_compile") 2>conftest.er1
9220   ac_status=$?
9221   grep -v '^ *+' conftest.er1 >conftest.err
9222   rm -f conftest.er1
9223   cat conftest.err >&5
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); } &&
9226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9227   { (case "(($ac_try" in
9228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229   *) ac_try_echo=$ac_try;;
9230 esac
9231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232   (eval "$ac_try") 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; } &&
9236          { ac_try='test -s conftest.$ac_objext'
9237   { (case "(($ac_try" in
9238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9239   *) ac_try_echo=$ac_try;;
9240 esac
9241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9242   (eval "$ac_try") 2>&5
9243   ac_status=$?
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); }; }; then
9246   eval "$as_ac_Header=yes"
9247 else
9248   echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251         eval "$as_ac_Header=no"
9252 fi
9253
9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 fi
9256 ac_res=`eval echo '${'$as_ac_Header'}'`
9257                { echo "$as_me:$LINENO: result: $ac_res" >&5
9258 echo "${ECHO_T}$ac_res" >&6; }
9259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9260   cat >>confdefs.h <<_ACEOF
9261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9262 _ACEOF
9263
9264 fi
9265
9266 done
9267
9268
9269                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9270         then
9271               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9272 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9273 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
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
9285 /* Override any GCC internal prototype to avoid an error.
9286    Use char because int might match the return type of a GCC
9287    builtin and then its argument prototype would still apply.  */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char XkbQueryExtension ();
9292 int
9293 main ()
9294 {
9295 return XkbQueryExtension ();
9296   ;
9297   return 0;
9298 }
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (ac_try="$ac_link"
9302 case "(($ac_try" in
9303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304   *) ac_try_echo=$ac_try;;
9305 esac
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307   (eval "$ac_link") 2>conftest.er1
9308   ac_status=$?
9309   grep -v '^ *+' conftest.er1 >conftest.err
9310   rm -f conftest.er1
9311   cat conftest.err >&5
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); } &&
9314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9324          { ac_try='test -s conftest$ac_exeext'
9325   { (case "(($ac_try" in
9326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327   *) ac_try_echo=$ac_try;;
9328 esac
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330   (eval "$ac_try") 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; }; then
9334   ac_cv_lib_X11_XkbQueryExtension=yes
9335 else
9336   echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9338
9339         ac_cv_lib_X11_XkbQueryExtension=no
9340 fi
9341
9342 rm -f core conftest.err conftest.$ac_objext \
9343       conftest$ac_exeext conftest.$ac_ext
9344 LIBS=$ac_check_lib_save_LIBS
9345 fi
9346 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9347 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9348 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
9349
9350 cat >>confdefs.h <<\_ACEOF
9351 #define HAVE_XKB 1
9352 _ACEOF
9353
9354 fi
9355
9356         fi
9357
9358                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9359         then
9360               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9361 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
9362 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9363   echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365   ac_check_lib_save_LIBS=$LIBS
9366 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h.  */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h.  */
9373
9374 /* Override any GCC internal prototype to avoid an error.
9375    Use char because int might match the return type of a GCC
9376    builtin and then its argument prototype would still apply.  */
9377 #ifdef __cplusplus
9378 extern "C"
9379 #endif
9380 char XShmQueryExtension ();
9381 int
9382 main ()
9383 {
9384 return XShmQueryExtension ();
9385   ;
9386   return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (ac_try="$ac_link"
9391 case "(($ac_try" in
9392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393   *) ac_try_echo=$ac_try;;
9394 esac
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396   (eval "$ac_link") 2>conftest.er1
9397   ac_status=$?
9398   grep -v '^ *+' conftest.er1 >conftest.err
9399   rm -f conftest.er1
9400   cat conftest.err >&5
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); } &&
9403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9404   { (case "(($ac_try" in
9405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406   *) ac_try_echo=$ac_try;;
9407 esac
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409   (eval "$ac_try") 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; } &&
9413          { ac_try='test -s conftest$ac_exeext'
9414   { (case "(($ac_try" in
9415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416   *) ac_try_echo=$ac_try;;
9417 esac
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419   (eval "$ac_try") 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); }; }; then
9423   ac_cv_lib_Xext_XShmQueryExtension=yes
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428         ac_cv_lib_Xext_XShmQueryExtension=no
9429 fi
9430
9431 rm -f core conftest.err conftest.$ac_objext \
9432       conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9434 fi
9435 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9436 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9437 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
9438
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_LIBXXSHM 1
9441 _ACEOF
9442
9443 fi
9444
9445         fi
9446
9447                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9448         then
9449               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9450 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9451 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9452   echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454   ac_check_lib_save_LIBS=$LIBS
9455 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9456 cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h.  */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h.  */
9462
9463 /* Override any GCC internal prototype to avoid an error.
9464    Use char because int might match the return type of a GCC
9465    builtin and then its argument prototype would still apply.  */
9466 #ifdef __cplusplus
9467 extern "C"
9468 #endif
9469 char XShapeQueryExtension ();
9470 int
9471 main ()
9472 {
9473 return XShapeQueryExtension ();
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (ac_try="$ac_link"
9480 case "(($ac_try" in
9481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482   *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485   (eval "$ac_link") 2>conftest.er1
9486   ac_status=$?
9487   grep -v '^ *+' conftest.er1 >conftest.err
9488   rm -f conftest.er1
9489   cat conftest.err >&5
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } &&
9492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9493   { (case "(($ac_try" in
9494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495   *) ac_try_echo=$ac_try;;
9496 esac
9497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498   (eval "$ac_try") 2>&5
9499   ac_status=$?
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); }; } &&
9502          { ac_try='test -s conftest$ac_exeext'
9503   { (case "(($ac_try" in
9504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505   *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508   (eval "$ac_try") 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; }; then
9512   ac_cv_lib_Xext_XShapeQueryExtension=yes
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517         ac_cv_lib_Xext_XShapeQueryExtension=no
9518 fi
9519
9520 rm -f core conftest.err conftest.$ac_objext \
9521       conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9523 fi
9524 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9525 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9526 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9527
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_LIBXSHAPE 1
9530 _ACEOF
9531
9532 fi
9533
9534         fi
9535
9536                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9537         then
9538                 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9539 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9540 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   ac_check_lib_save_LIBS=$LIBS
9544 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9545 cat >conftest.$ac_ext <<_ACEOF
9546 /* confdefs.h.  */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h.  */
9551
9552 /* Override any GCC internal prototype to avoid an error.
9553    Use char because int might match the return type of a GCC
9554    builtin and then its argument prototype would still apply.  */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 char XF86VidModeQueryExtension ();
9559 int
9560 main ()
9561 {
9562 return XF86VidModeQueryExtension ();
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext conftest$ac_exeext
9568 if { (ac_try="$ac_link"
9569 case "(($ac_try" in
9570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571   *) ac_try_echo=$ac_try;;
9572 esac
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574   (eval "$ac_link") 2>conftest.er1
9575   ac_status=$?
9576   grep -v '^ *+' conftest.er1 >conftest.err
9577   rm -f conftest.er1
9578   cat conftest.err >&5
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } &&
9581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9582   { (case "(($ac_try" in
9583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9584   *) ac_try_echo=$ac_try;;
9585 esac
9586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587   (eval "$ac_try") 2>&5
9588   ac_status=$?
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); }; } &&
9591          { ac_try='test -s conftest$ac_exeext'
9592   { (case "(($ac_try" in
9593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594   *) ac_try_echo=$ac_try;;
9595 esac
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597   (eval "$ac_try") 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); }; }; then
9601   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9602 else
9603   echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9607 fi
9608
9609 rm -f core conftest.err conftest.$ac_objext \
9610       conftest$ac_exeext conftest.$ac_ext
9611 LIBS=$ac_check_lib_save_LIBS
9612 fi
9613 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9614 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9615 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9616
9617 cat >>confdefs.h <<\_ACEOF
9618 #define HAVE_LIBXXF86VM 1
9619 _ACEOF
9620
9621                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9622
9623 fi
9624
9625         fi
9626
9627                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9628         then
9629                 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h.  */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h.  */
9635 #include <X11/Xlib.h>
9636 #include <X11/extensions/Xrandr.h>
9637 int
9638 main ()
9639 {
9640 static typeof(XRRSetScreenConfigAndRate) * func;
9641   ;
9642   return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext
9646 if { (ac_try="$ac_compile"
9647 case "(($ac_try" in
9648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649   *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652   (eval "$ac_compile") 2>conftest.er1
9653   ac_status=$?
9654   grep -v '^ *+' conftest.er1 >conftest.err
9655   rm -f conftest.er1
9656   cat conftest.err >&5
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); } &&
9659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9660   { (case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665   (eval "$ac_try") 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); }; } &&
9669          { ac_try='test -s conftest.$ac_objext'
9670   { (case "(($ac_try" in
9671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672   *) ac_try_echo=$ac_try;;
9673 esac
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675   (eval "$ac_try") 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); }; }; then
9679
9680 cat >>confdefs.h <<\_ACEOF
9681 #define HAVE_LIBXRANDR 1
9682 _ACEOF
9683
9684 else
9685   echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688
9689 fi
9690
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692         fi
9693
9694                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9695         then
9696               { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9697 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9698 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9699   echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701   ac_check_lib_save_LIBS=$LIBS
9702 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h.  */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h.  */
9709
9710 /* Override any GCC internal prototype to avoid an error.
9711    Use char because int might match the return type of a GCC
9712    builtin and then its argument prototype would still apply.  */
9713 #ifdef __cplusplus
9714 extern "C"
9715 #endif
9716 char XRenderSetPictureTransform ();
9717 int
9718 main ()
9719 {
9720 return XRenderSetPictureTransform ();
9721   ;
9722   return 0;
9723 }
9724 _ACEOF
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (ac_try="$ac_link"
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_link") 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_exeext'
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_cv_lib_Xrender_XRenderSetPictureTransform=yes
9760 else
9761   echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9765 fi
9766
9767 rm -f core conftest.err conftest.$ac_objext \
9768       conftest$ac_exeext conftest.$ac_ext
9769 LIBS=$ac_check_lib_save_LIBS
9770 fi
9771 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9772 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9773 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9777 _ACEOF
9778
9779 fi
9780
9781         fi
9782
9783         if test "x$with_opengl" != "xno"
9784     then
9785
9786
9787
9788
9789 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9790 do
9791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9795   echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797   cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h.  */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h.  */
9803 #ifdef HAVE_GL_GLX_H
9804 # include <GL/glx.h>
9805 #endif
9806
9807 #include <$ac_header>
9808 _ACEOF
9809 rm -f conftest.$ac_objext
9810 if { (ac_try="$ac_compile"
9811 case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_compile") 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9824   { (case "(($ac_try" in
9825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826   *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829   (eval "$ac_try") 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; } &&
9833          { ac_try='test -s conftest.$ac_objext'
9834   { (case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839   (eval "$ac_try") 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843   eval "$as_ac_Header=yes"
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848         eval "$as_ac_Header=no"
9849 fi
9850
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 fi
9853 ac_res=`eval echo '${'$as_ac_Header'}'`
9854                { echo "$as_me:$LINENO: result: $ac_res" >&5
9855 echo "${ECHO_T}$ac_res" >&6; }
9856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9857   cat >>confdefs.h <<_ACEOF
9858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9859 _ACEOF
9860
9861 fi
9862
9863 done
9864
9865         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9866         then
9867                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9868 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
9869 if test "${wine_cv_opengl_version_OK+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 <GL/gl.h>
9879 int
9880 main ()
9881 {
9882 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext
9888 if { (ac_try="$ac_compile"
9889 case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_compile") 2>conftest.er1
9895   ac_status=$?
9896   grep -v '^ *+' conftest.er1 >conftest.err
9897   rm -f conftest.er1
9898   cat conftest.err >&5
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); } &&
9901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9902   { (case "(($ac_try" in
9903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904   *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907   (eval "$ac_try") 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; } &&
9911          { ac_try='test -s conftest.$ac_objext'
9912   { (case "(($ac_try" in
9913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914   *) ac_try_echo=$ac_try;;
9915 esac
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917   (eval "$ac_try") 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; }; then
9921   wine_cv_opengl_version_OK="yes"
9922 else
9923   echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926         wine_cv_opengl_version_OK="no"
9927
9928 fi
9929
9930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931
9932 fi
9933 { echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
9934 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
9935
9936             if test "$wine_cv_opengl_version_OK" = "yes"
9937             then
9938                                 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
9939 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
9940 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   ac_check_lib_save_LIBS=$LIBS
9944 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $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 glXCreateContext ();
9959 int
9960 main ()
9961 {
9962 return glXCreateContext ();
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_GL_glXCreateContext=yes
10002 else
10003   echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006         ac_cv_lib_GL_glXCreateContext=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_GL_glXCreateContext" >&5
10014 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
10015 if test $ac_cv_lib_GL_glXCreateContext = yes; then
10016   OPENGL_LIBS="-lGL"
10017
10018 fi
10019
10020
10021                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
10022                 then
10023                         OPENGLFILES='$(OPENGLFILES)'
10024
10025 cat >>confdefs.h <<\_ACEOF
10026 #define HAVE_OPENGL 1
10027 _ACEOF
10028
10029                 else
10030                     if test -f /usr/X11R6/lib/libGL.a
10031                     then
10032                        { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
10033 This prevents linking to OpenGL. Delete the file and restart configure." >&5
10034 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
10035 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
10036    { (exit 1); exit 1; }; }
10037                     fi
10038                 fi
10039
10040                                 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10041 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
10042 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
10043   echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045   ac_check_lib_save_LIBS=$LIBS
10046 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
10047                  $LIBS"
10048 cat >conftest.$ac_ext <<_ACEOF
10049 /* confdefs.h.  */
10050 _ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h.  */
10054
10055 /* Override any GCC internal prototype to avoid an error.
10056    Use char because int might match the return type of a GCC
10057    builtin and then its argument prototype would still apply.  */
10058 #ifdef __cplusplus
10059 extern "C"
10060 #endif
10061 char gluLookAt ();
10062 int
10063 main ()
10064 {
10065 return gluLookAt ();
10066   ;
10067   return 0;
10068 }
10069 _ACEOF
10070 rm -f conftest.$ac_objext conftest$ac_exeext
10071 if { (ac_try="$ac_link"
10072 case "(($ac_try" in
10073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074   *) ac_try_echo=$ac_try;;
10075 esac
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077   (eval "$ac_link") 2>conftest.er1
10078   ac_status=$?
10079   grep -v '^ *+' conftest.er1 >conftest.err
10080   rm -f conftest.er1
10081   cat conftest.err >&5
10082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083   (exit $ac_status); } &&
10084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10085   { (case "(($ac_try" in
10086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087   *) ac_try_echo=$ac_try;;
10088 esac
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090   (eval "$ac_try") 2>&5
10091   ac_status=$?
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); }; } &&
10094          { ac_try='test -s conftest$ac_exeext'
10095   { (case "(($ac_try" in
10096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097   *) ac_try_echo=$ac_try;;
10098 esac
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100   (eval "$ac_try") 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); }; }; then
10104   ac_cv_lib_GLU_gluLookAt=yes
10105 else
10106   echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109         ac_cv_lib_GLU_gluLookAt=no
10110 fi
10111
10112 rm -f core conftest.err conftest.$ac_objext \
10113       conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10115 fi
10116 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10117 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
10118 if test $ac_cv_lib_GLU_gluLookAt = yes; then
10119   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
10120                              GLU32FILES='$(GLU32FILES)'
10121
10122 fi
10123
10124              fi
10125
10126                           { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
10127 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
10128 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
10129   echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131   ac_check_lib_save_LIBS=$LIBS
10132 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h.  */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h.  */
10139
10140 /* Override any GCC internal prototype to avoid an error.
10141    Use char because int might match the return type of a GCC
10142    builtin and then its argument prototype would still apply.  */
10143 #ifdef __cplusplus
10144 extern "C"
10145 #endif
10146 char glutMainLoop ();
10147 int
10148 main ()
10149 {
10150 return glutMainLoop ();
10151   ;
10152   return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159   *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162   (eval "$ac_link") 2>conftest.er1
10163   ac_status=$?
10164   grep -v '^ *+' conftest.er1 >conftest.err
10165   rm -f conftest.er1
10166   cat conftest.err >&5
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); } &&
10169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170   { (case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175   (eval "$ac_try") 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; } &&
10179          { ac_try='test -s conftest$ac_exeext'
10180   { (case "(($ac_try" in
10181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182   *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185   (eval "$ac_try") 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; }; then
10189   ac_cv_lib_glut_glutMainLoop=yes
10190 else
10191   echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194         ac_cv_lib_glut_glutMainLoop=no
10195 fi
10196
10197 rm -f core conftest.err conftest.$ac_objext \
10198       conftest$ac_exeext conftest.$ac_ext
10199 LIBS=$ac_check_lib_save_LIBS
10200 fi
10201 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
10202 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
10203 if test $ac_cv_lib_glut_glutMainLoop = yes; then
10204   GLUT_LIBS="-lglut -lXmu -lXi"
10205
10206                         GLUT32FILES='$(GLUT32FILES)'
10207
10208 fi
10209
10210          fi
10211     fi
10212
10213         NASLIBS=""
10214
10215
10216 for ac_header in audio/audiolib.h
10217 do
10218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 fi
10225 ac_res=`eval echo '${'$as_ac_Header'}'`
10226                { echo "$as_me:$LINENO: result: $ac_res" >&5
10227 echo "${ECHO_T}$ac_res" >&6; }
10228 else
10229   # Is the header compilable?
10230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238 $ac_includes_default
10239 #include <$ac_header>
10240 _ACEOF
10241 rm -f conftest.$ac_objext
10242 if { (ac_try="$ac_compile"
10243 case "(($ac_try" in
10244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245   *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248   (eval "$ac_compile") 2>conftest.er1
10249   ac_status=$?
10250   grep -v '^ *+' conftest.er1 >conftest.err
10251   rm -f conftest.er1
10252   cat conftest.err >&5
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } &&
10255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10256   { (case "(($ac_try" in
10257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258   *) ac_try_echo=$ac_try;;
10259 esac
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261   (eval "$ac_try") 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; } &&
10265          { ac_try='test -s conftest.$ac_objext'
10266   { (case "(($ac_try" in
10267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268   *) ac_try_echo=$ac_try;;
10269 esac
10270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271   (eval "$ac_try") 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); }; }; then
10275   ac_header_compiler=yes
10276 else
10277   echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10279
10280         ac_header_compiler=no
10281 fi
10282
10283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10285 echo "${ECHO_T}$ac_header_compiler" >&6; }
10286
10287 # Is the header present?
10288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10290 cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h.  */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h.  */
10296 #include <$ac_header>
10297 _ACEOF
10298 if { (ac_try="$ac_cpp conftest.$ac_ext"
10299 case "(($ac_try" in
10300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301   *) ac_try_echo=$ac_try;;
10302 esac
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10305   ac_status=$?
10306   grep -v '^ *+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } >/dev/null; then
10311   if test -s conftest.err; then
10312     ac_cpp_err=$ac_c_preproc_warn_flag
10313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10314   else
10315     ac_cpp_err=
10316   fi
10317 else
10318   ac_cpp_err=yes
10319 fi
10320 if test -z "$ac_cpp_err"; then
10321   ac_header_preproc=yes
10322 else
10323   echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10325
10326   ac_header_preproc=no
10327 fi
10328
10329 rm -f conftest.err conftest.$ac_ext
10330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10331 echo "${ECHO_T}$ac_header_preproc" >&6; }
10332
10333 # So?  What about this header?
10334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10335   yes:no: )
10336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10340     ac_header_preproc=yes
10341     ;;
10342   no:yes:* )
10343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10355     ( cat <<\_ASBOX
10356 ## ------------------------------------ ##
10357 ## Report this to wine-devel@winehq.org ##
10358 ## ------------------------------------ ##
10359 _ASBOX
10360      ) | sed "s/^/$as_me: WARNING:     /" >&2
10361     ;;
10362 esac
10363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   eval "$as_ac_Header=\$ac_header_preproc"
10369 fi
10370 ac_res=`eval echo '${'$as_ac_Header'}'`
10371                { echo "$as_me:$LINENO: result: $ac_res" >&5
10372 echo "${ECHO_T}$ac_res" >&6; }
10373
10374 fi
10375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10376   cat >>confdefs.h <<_ACEOF
10377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10378 _ACEOF
10379
10380 for ac_header in audio/soundlib.h
10381 do
10382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10386   echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388   cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h.  */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h.  */
10394 #include <audio/audiolib.h>
10395
10396 #include <$ac_header>
10397 _ACEOF
10398 rm -f conftest.$ac_objext
10399 if { (ac_try="$ac_compile"
10400 case "(($ac_try" in
10401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402   *) ac_try_echo=$ac_try;;
10403 esac
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405   (eval "$ac_compile") 2>conftest.er1
10406   ac_status=$?
10407   grep -v '^ *+' conftest.er1 >conftest.err
10408   rm -f conftest.er1
10409   cat conftest.err >&5
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } &&
10412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10413   { (case "(($ac_try" in
10414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415   *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418   (eval "$ac_try") 2>&5
10419   ac_status=$?
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); }; } &&
10422          { ac_try='test -s conftest.$ac_objext'
10423   { (case "(($ac_try" in
10424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425   *) ac_try_echo=$ac_try;;
10426 esac
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428   (eval "$ac_try") 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; }; then
10432   eval "$as_ac_Header=yes"
10433 else
10434   echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437         eval "$as_ac_Header=no"
10438 fi
10439
10440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 fi
10442 ac_res=`eval echo '${'$as_ac_Header'}'`
10443                { echo "$as_me:$LINENO: result: $ac_res" >&5
10444 echo "${ECHO_T}$ac_res" >&6; }
10445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10446   cat >>confdefs.h <<_ACEOF
10447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10448 _ACEOF
10449
10450 fi
10451
10452 done
10453
10454           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10455 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
10456 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10457   echo $ECHO_N "(cached) $ECHO_C" >&6
10458 else
10459   ac_check_lib_save_LIBS=$LIBS
10460 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10461 cat >conftest.$ac_ext <<_ACEOF
10462 /* confdefs.h.  */
10463 _ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h.  */
10467
10468 /* Override any GCC internal prototype to avoid an error.
10469    Use char because int might match the return type of a GCC
10470    builtin and then its argument prototype would still apply.  */
10471 #ifdef __cplusplus
10472 extern "C"
10473 #endif
10474 char AuCreateFlow ();
10475 int
10476 main ()
10477 {
10478 return AuCreateFlow ();
10479   ;
10480   return 0;
10481 }
10482 _ACEOF
10483 rm -f conftest.$ac_objext conftest$ac_exeext
10484 if { (ac_try="$ac_link"
10485 case "(($ac_try" in
10486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487   *) ac_try_echo=$ac_try;;
10488 esac
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490   (eval "$ac_link") 2>conftest.er1
10491   ac_status=$?
10492   grep -v '^ *+' conftest.er1 >conftest.err
10493   rm -f conftest.er1
10494   cat conftest.err >&5
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); } &&
10497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10498   { (case "(($ac_try" in
10499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500   *) ac_try_echo=$ac_try;;
10501 esac
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503   (eval "$ac_try") 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; } &&
10507          { ac_try='test -s conftest$ac_exeext'
10508   { (case "(($ac_try" in
10509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510   *) ac_try_echo=$ac_try;;
10511 esac
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513   (eval "$ac_try") 2>&5
10514   ac_status=$?
10515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516   (exit $ac_status); }; }; then
10517   ac_cv_lib_audio_AuCreateFlow=yes
10518 else
10519   echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10521
10522         ac_cv_lib_audio_AuCreateFlow=no
10523 fi
10524
10525 rm -f core conftest.err conftest.$ac_objext \
10526       conftest$ac_exeext conftest.$ac_ext
10527 LIBS=$ac_check_lib_save_LIBS
10528 fi
10529 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10530 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10531 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10532
10533 cat >>confdefs.h <<\_ACEOF
10534 #define HAVE_NAS 1
10535 _ACEOF
10536
10537                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10538 fi
10539
10540 fi
10541
10542 done
10543
10544
10545     CPPFLAGS="$ac_save_CPPFLAGS"
10546     XFILES='$(XFILES)'
10547 else
10548     XLIB=""
10549     X_CFLAGS=""
10550     X_LIBS=""
10551 fi
10552
10553
10554 XML2LIBS=""
10555
10556 XML2INCL=""
10557
10558 XSLTLIBS=""
10559
10560 XSLTINCL=""
10561
10562 if test "$PKG_CONFIG" != "false"
10563 then
10564     ac_save_CPPFLAGS="$CPPFLAGS"
10565     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10566     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10567     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10568
10569 for ac_header in libxml/parser.h
10570 do
10571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10573   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 fi
10578 ac_res=`eval echo '${'$as_ac_Header'}'`
10579                { echo "$as_me:$LINENO: result: $ac_res" >&5
10580 echo "${ECHO_T}$ac_res" >&6; }
10581 else
10582   # Is the header compilable?
10583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591 $ac_includes_default
10592 #include <$ac_header>
10593 _ACEOF
10594 rm -f conftest.$ac_objext
10595 if { (ac_try="$ac_compile"
10596 case "(($ac_try" in
10597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598   *) ac_try_echo=$ac_try;;
10599 esac
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601   (eval "$ac_compile") 2>conftest.er1
10602   ac_status=$?
10603   grep -v '^ *+' conftest.er1 >conftest.err
10604   rm -f conftest.er1
10605   cat conftest.err >&5
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } &&
10608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10609   { (case "(($ac_try" in
10610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611   *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614   (eval "$ac_try") 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; } &&
10618          { ac_try='test -s conftest.$ac_objext'
10619   { (case "(($ac_try" in
10620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621   *) ac_try_echo=$ac_try;;
10622 esac
10623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10624   (eval "$ac_try") 2>&5
10625   ac_status=$?
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); }; }; then
10628   ac_header_compiler=yes
10629 else
10630   echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633         ac_header_compiler=no
10634 fi
10635
10636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10638 echo "${ECHO_T}$ac_header_compiler" >&6; }
10639
10640 # Is the header present?
10641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h.  */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h.  */
10649 #include <$ac_header>
10650 _ACEOF
10651 if { (ac_try="$ac_cpp conftest.$ac_ext"
10652 case "(($ac_try" in
10653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654   *) ac_try_echo=$ac_try;;
10655 esac
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } >/dev/null; then
10664   if test -s conftest.err; then
10665     ac_cpp_err=$ac_c_preproc_warn_flag
10666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10667   else
10668     ac_cpp_err=
10669   fi
10670 else
10671   ac_cpp_err=yes
10672 fi
10673 if test -z "$ac_cpp_err"; then
10674   ac_header_preproc=yes
10675 else
10676   echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679   ac_header_preproc=no
10680 fi
10681
10682 rm -f conftest.err conftest.$ac_ext
10683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10684 echo "${ECHO_T}$ac_header_preproc" >&6; }
10685
10686 # So?  What about this header?
10687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10688   yes:no: )
10689     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10693     ac_header_preproc=yes
10694     ;;
10695   no:yes:* )
10696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10698     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10699 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10700     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10702     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10703 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10706     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10708     ( cat <<\_ASBOX
10709 ## ------------------------------------ ##
10710 ## Report this to wine-devel@winehq.org ##
10711 ## ------------------------------------ ##
10712 _ASBOX
10713      ) | sed "s/^/$as_me: WARNING:     /" >&2
10714     ;;
10715 esac
10716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721   eval "$as_ac_Header=\$ac_header_preproc"
10722 fi
10723 ac_res=`eval echo '${'$as_ac_Header'}'`
10724                { echo "$as_me:$LINENO: result: $ac_res" >&5
10725 echo "${ECHO_T}$ac_res" >&6; }
10726
10727 fi
10728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10729   cat >>confdefs.h <<_ACEOF
10730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10731 _ACEOF
10732  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10733 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
10734 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   ac_check_lib_save_LIBS=$LIBS
10738 LIBS="-lxml2 $ac_xml_libs $LIBS"
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h.  */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h.  */
10745
10746 /* Override any GCC internal prototype to avoid an error.
10747    Use char because int might match the return type of a GCC
10748    builtin and then its argument prototype would still apply.  */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 char xmlParseMemory ();
10753 int
10754 main ()
10755 {
10756 return xmlParseMemory ();
10757   ;
10758   return 0;
10759 }
10760 _ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765   *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768   (eval "$ac_link") 2>conftest.er1
10769   ac_status=$?
10770   grep -v '^ *+' conftest.er1 >conftest.err
10771   rm -f conftest.er1
10772   cat conftest.err >&5
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } &&
10775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10782   ac_status=$?
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); }; } &&
10785          { ac_try='test -s conftest$ac_exeext'
10786   { (case "(($ac_try" in
10787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788   *) ac_try_echo=$ac_try;;
10789 esac
10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791   (eval "$ac_try") 2>&5
10792   ac_status=$?
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); }; }; then
10795   ac_cv_lib_xml2_xmlParseMemory=yes
10796 else
10797   echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800         ac_cv_lib_xml2_xmlParseMemory=no
10801 fi
10802
10803 rm -f core conftest.err conftest.$ac_objext \
10804       conftest$ac_exeext conftest.$ac_ext
10805 LIBS=$ac_check_lib_save_LIBS
10806 fi
10807 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10808 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10809 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
10810
10811 cat >>confdefs.h <<\_ACEOF
10812 #define HAVE_LIBXML2 1
10813 _ACEOF
10814
10815              XML2LIBS="$ac_xml_libs"
10816              XML2INCL="$ac_xml_cflags"
10817 fi
10818
10819          { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10820 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
10821 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10822   echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824   ac_check_lib_save_LIBS=$LIBS
10825 LIBS="-lxml2 $ac_xml_libs $LIBS"
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832
10833 /* Override any GCC internal prototype to avoid an error.
10834    Use char because int might match the return type of a GCC
10835    builtin and then its argument prototype would still apply.  */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 char xmlReadMemory ();
10840 int
10841 main ()
10842 {
10843 return xmlReadMemory ();
10844   ;
10845   return 0;
10846 }
10847 _ACEOF
10848 rm -f conftest.$ac_objext conftest$ac_exeext
10849 if { (ac_try="$ac_link"
10850 case "(($ac_try" in
10851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852   *) ac_try_echo=$ac_try;;
10853 esac
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855   (eval "$ac_link") 2>conftest.er1
10856   ac_status=$?
10857   grep -v '^ *+' conftest.er1 >conftest.err
10858   rm -f conftest.er1
10859   cat conftest.err >&5
10860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); } &&
10862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10863   { (case "(($ac_try" in
10864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865   *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868   (eval "$ac_try") 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); }; } &&
10872          { ac_try='test -s conftest$ac_exeext'
10873   { (case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878   (eval "$ac_try") 2>&5
10879   ac_status=$?
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); }; }; then
10882   ac_cv_lib_xml2_xmlReadMemory=yes
10883 else
10884   echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10886
10887         ac_cv_lib_xml2_xmlReadMemory=no
10888 fi
10889
10890 rm -f core conftest.err conftest.$ac_objext \
10891       conftest$ac_exeext conftest.$ac_ext
10892 LIBS=$ac_check_lib_save_LIBS
10893 fi
10894 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10895 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10896 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10897
10898 cat >>confdefs.h <<\_ACEOF
10899 #define HAVE_XMLREADMEMORY 1
10900 _ACEOF
10901
10902 fi
10903
10904
10905 fi
10906
10907 done
10908
10909     CPPFLAGS="$ac_save_CPPFLAGS"
10910     ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
10911     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
10912     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
10913
10914
10915 for ac_header in libxslt/pattern.h libxslt/transform.h
10916 do
10917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 #ifdef HAVE_LIBXSLT_PATTERN_H
10930 # include <libxslt/pattern.h>
10931 #endif
10932
10933 #include <$ac_header>
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (ac_try="$ac_compile"
10937 case "(($ac_try" in
10938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939   *) ac_try_echo=$ac_try;;
10940 esac
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942   (eval "$ac_compile") 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
10946   cat conftest.err >&5
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } &&
10949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950   { (case "(($ac_try" in
10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952   *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955   (eval "$ac_try") 2>&5
10956   ac_status=$?
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); }; } &&
10959          { ac_try='test -s conftest.$ac_objext'
10960   { (case "(($ac_try" in
10961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962   *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965   (eval "$ac_try") 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); }; }; then
10969   eval "$as_ac_Header=yes"
10970 else
10971   echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974         eval "$as_ac_Header=no"
10975 fi
10976
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 fi
10979 ac_res=`eval echo '${'$as_ac_Header'}'`
10980                { echo "$as_me:$LINENO: result: $ac_res" >&5
10981 echo "${ECHO_T}$ac_res" >&6; }
10982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10983   cat >>confdefs.h <<_ACEOF
10984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10985 _ACEOF
10986  { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
10987 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
10988 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   ac_check_lib_save_LIBS=$LIBS
10992 LIBS="-lxslt $ac_xslt_libs $LIBS"
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999
11000 /* Override any GCC internal prototype to avoid an error.
11001    Use char because int might match the return type of a GCC
11002    builtin and then its argument prototype would still apply.  */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char xsltCompilePattern ();
11007 int
11008 main ()
11009 {
11010 return xsltCompilePattern ();
11011   ;
11012   return 0;
11013 }
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019   *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022   (eval "$ac_link") 2>conftest.er1
11023   ac_status=$?
11024   grep -v '^ *+' conftest.er1 >conftest.err
11025   rm -f conftest.er1
11026   cat conftest.err >&5
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); } &&
11029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11030   { (case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_try") 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); }; } &&
11039          { ac_try='test -s conftest$ac_exeext'
11040   { (case "(($ac_try" in
11041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042   *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045   (eval "$ac_try") 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; }; then
11049   ac_cv_lib_xslt_xsltCompilePattern=yes
11050 else
11051   echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11053
11054         ac_cv_lib_xslt_xsltCompilePattern=no
11055 fi
11056
11057 rm -f core conftest.err conftest.$ac_objext \
11058       conftest$ac_exeext conftest.$ac_ext
11059 LIBS=$ac_check_lib_save_LIBS
11060 fi
11061 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11062 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
11063 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11064
11065 cat >>confdefs.h <<\_ACEOF
11066 #define HAVE_LIBXSLT 1
11067 _ACEOF
11068
11069              XSLTLIBS="$ac_xslt_libs"
11070              XSLTINCL="$ac_xslt_cflags"
11071 fi
11072
11073
11074 fi
11075
11076 done
11077
11078     CPPFLAGS="$ac_save_CPPFLAGS"
11079 fi
11080
11081 HALINCL=""
11082
11083 if test "$PKG_CONFIG" != "false"
11084 then
11085     ac_save_CPPFLAGS="$CPPFLAGS"
11086     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11087     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
11088     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11089
11090
11091 for ac_header in dbus/dbus.h hal/libhal.h
11092 do
11093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 fi
11100 ac_res=`eval echo '${'$as_ac_Header'}'`
11101                { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11103 else
11104   # Is the header compilable?
11105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113 $ac_includes_default
11114 #include <$ac_header>
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123   (eval "$ac_compile") 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } &&
11130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131   { (case "(($ac_try" in
11132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133   *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136   (eval "$ac_try") 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; } &&
11140          { ac_try='test -s conftest.$ac_objext'
11141   { (case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_try") 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; }; then
11150   ac_header_compiler=yes
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155         ac_header_compiler=no
11156 fi
11157
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160 echo "${ECHO_T}$ac_header_compiler" >&6; }
11161
11162 # Is the header present?
11163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h.  */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h.  */
11171 #include <$ac_header>
11172 _ACEOF
11173 if { (ac_try="$ac_cpp conftest.$ac_ext"
11174 case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11180   ac_status=$?
11181   grep -v '^ *+' conftest.er1 >conftest.err
11182   rm -f conftest.er1
11183   cat conftest.err >&5
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } >/dev/null; then
11186   if test -s conftest.err; then
11187     ac_cpp_err=$ac_c_preproc_warn_flag
11188     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11189   else
11190     ac_cpp_err=
11191   fi
11192 else
11193   ac_cpp_err=yes
11194 fi
11195 if test -z "$ac_cpp_err"; then
11196   ac_header_preproc=yes
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201   ac_header_preproc=no
11202 fi
11203
11204 rm -f conftest.err conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6; }
11207
11208 # So?  What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11210   yes:no: )
11211     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215     ac_header_preproc=yes
11216     ;;
11217   no:yes:* )
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11230     ( cat <<\_ASBOX
11231 ## ------------------------------------ ##
11232 ## Report this to wine-devel@winehq.org ##
11233 ## ------------------------------------ ##
11234 _ASBOX
11235      ) | sed "s/^/$as_me: WARNING:     /" >&2
11236     ;;
11237 esac
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243   eval "$as_ac_Header=\$ac_header_preproc"
11244 fi
11245 ac_res=`eval echo '${'$as_ac_Header'}'`
11246                { echo "$as_me:$LINENO: result: $ac_res" >&5
11247 echo "${ECHO_T}$ac_res" >&6; }
11248
11249 fi
11250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11251   cat >>confdefs.h <<_ACEOF
11252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11253 _ACEOF
11254
11255 fi
11256
11257 done
11258
11259     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11260     then
11261         { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
11262 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
11263 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266   ac_check_lib_save_LIBS=$LIBS
11267 LIBS="-lhal  $LIBS"
11268 cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h.  */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h.  */
11274
11275 /* Override any GCC internal prototype to avoid an error.
11276    Use char because int might match the return type of a GCC
11277    builtin and then its argument prototype would still apply.  */
11278 #ifdef __cplusplus
11279 extern "C"
11280 #endif
11281 char libhal_ctx_new ();
11282 int
11283 main ()
11284 {
11285 return libhal_ctx_new ();
11286   ;
11287   return 0;
11288 }
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (ac_try="$ac_link"
11292 case "(($ac_try" in
11293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294   *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297   (eval "$ac_link") 2>conftest.er1
11298   ac_status=$?
11299   grep -v '^ *+' conftest.er1 >conftest.err
11300   rm -f conftest.er1
11301   cat conftest.err >&5
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } &&
11304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305   { (case "(($ac_try" in
11306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307   *) ac_try_echo=$ac_try;;
11308 esac
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310   (eval "$ac_try") 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; } &&
11314          { ac_try='test -s conftest$ac_exeext'
11315   { (case "(($ac_try" in
11316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317   *) ac_try_echo=$ac_try;;
11318 esac
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320   (eval "$ac_try") 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; }; then
11324   ac_cv_lib_hal_libhal_ctx_new=yes
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329         ac_cv_lib_hal_libhal_ctx_new=no
11330 fi
11331
11332 rm -f core conftest.err conftest.$ac_objext \
11333       conftest$ac_exeext conftest.$ac_ext
11334 LIBS=$ac_check_lib_save_LIBS
11335 fi
11336 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
11337 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
11338 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
11339   { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11340 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
11341 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
11342   echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344   ac_check_lib_save_LIBS=$LIBS
11345 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h.  */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h.  */
11352
11353 /* Override any GCC internal prototype to avoid an error.
11354    Use char because int might match the return type of a GCC
11355    builtin and then its argument prototype would still apply.  */
11356 #ifdef __cplusplus
11357 extern "C"
11358 #endif
11359 char dbus_connection_close ();
11360 int
11361 main ()
11362 {
11363 return dbus_connection_close ();
11364   ;
11365   return 0;
11366 }
11367 _ACEOF
11368 rm -f conftest.$ac_objext conftest$ac_exeext
11369 if { (ac_try="$ac_link"
11370 case "(($ac_try" in
11371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372   *) ac_try_echo=$ac_try;;
11373 esac
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375   (eval "$ac_link") 2>conftest.er1
11376   ac_status=$?
11377   grep -v '^ *+' conftest.er1 >conftest.err
11378   rm -f conftest.er1
11379   cat conftest.err >&5
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); } &&
11382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11383   { (case "(($ac_try" in
11384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385   *) ac_try_echo=$ac_try;;
11386 esac
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388   (eval "$ac_try") 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; } &&
11392          { ac_try='test -s conftest$ac_exeext'
11393   { (case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398   (eval "$ac_try") 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); }; }; then
11402   ac_cv_lib_dbus_1_dbus_connection_close=yes
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407         ac_cv_lib_dbus_1_dbus_connection_close=no
11408 fi
11409
11410 rm -f core conftest.err conftest.$ac_objext \
11411       conftest$ac_exeext conftest.$ac_ext
11412 LIBS=$ac_check_lib_save_LIBS
11413 fi
11414 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11415 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
11416 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
11417
11418 cat >>confdefs.h <<\_ACEOF
11419 #define HAVE_LIBHAL 1
11420 _ACEOF
11421
11422              HALINCL="$ac_hal_cflags"
11423 fi
11424
11425 fi
11426
11427     fi
11428     CPPFLAGS="$ac_save_CPPFLAGS"
11429 fi
11430
11431 CURSESLIBS=""
11432 if test "x$with_curses" != "xno"
11433 then
11434     if test "$ac_cv_header_ncurses_h" = "yes"
11435     then
11436         { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
11437 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
11438 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
11439   echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441   ac_check_lib_save_LIBS=$LIBS
11442 LIBS="-lncurses  $LIBS"
11443 cat >conftest.$ac_ext <<_ACEOF
11444 /* confdefs.h.  */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h.  */
11449
11450 /* Override any GCC internal prototype to avoid an error.
11451    Use char because int might match the return type of a GCC
11452    builtin and then its argument prototype would still apply.  */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 char waddch ();
11457 int
11458 main ()
11459 {
11460 return waddch ();
11461   ;
11462   return 0;
11463 }
11464 _ACEOF
11465 rm -f conftest.$ac_objext conftest$ac_exeext
11466 if { (ac_try="$ac_link"
11467 case "(($ac_try" in
11468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469   *) ac_try_echo=$ac_try;;
11470 esac
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472   (eval "$ac_link") 2>conftest.er1
11473   ac_status=$?
11474   grep -v '^ *+' conftest.er1 >conftest.err
11475   rm -f conftest.er1
11476   cat conftest.err >&5
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); } &&
11479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11480   { (case "(($ac_try" in
11481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482   *) ac_try_echo=$ac_try;;
11483 esac
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485   (eval "$ac_try") 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); }; } &&
11489          { ac_try='test -s conftest$ac_exeext'
11490   { (case "(($ac_try" in
11491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492   *) ac_try_echo=$ac_try;;
11493 esac
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495   (eval "$ac_try") 2>&5
11496   ac_status=$?
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); }; }; then
11499   ac_cv_lib_ncurses_waddch=yes
11500 else
11501   echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504         ac_cv_lib_ncurses_waddch=no
11505 fi
11506
11507 rm -f core conftest.err conftest.$ac_objext \
11508       conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11510 fi
11511 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
11512 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
11513 if test $ac_cv_lib_ncurses_waddch = yes; then
11514
11515 cat >>confdefs.h <<\_ACEOF
11516 #define HAVE_LIBNCURSES 1
11517 _ACEOF
11518
11519              CURSESLIBS="-lncurses"
11520 fi
11521
11522     elif test "$ac_cv_header_curses_h" = "yes"
11523     then
11524         { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11525 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
11526 if test "${ac_cv_lib_curses_waddch+set}" = set; then
11527   echo $ECHO_N "(cached) $ECHO_C" >&6
11528 else
11529   ac_check_lib_save_LIBS=$LIBS
11530 LIBS="-lcurses  $LIBS"
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h.  */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h.  */
11537
11538 /* Override any GCC internal prototype to avoid an error.
11539    Use char because int might match the return type of a GCC
11540    builtin and then its argument prototype would still apply.  */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char waddch ();
11545 int
11546 main ()
11547 {
11548 return waddch ();
11549   ;
11550   return 0;
11551 }
11552 _ACEOF
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (ac_try="$ac_link"
11555 case "(($ac_try" in
11556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557   *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560   (eval "$ac_link") 2>conftest.er1
11561   ac_status=$?
11562   grep -v '^ *+' conftest.er1 >conftest.err
11563   rm -f conftest.er1
11564   cat conftest.err >&5
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } &&
11567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568   { (case "(($ac_try" in
11569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570   *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573   (eval "$ac_try") 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); }; } &&
11577          { ac_try='test -s conftest$ac_exeext'
11578   { (case "(($ac_try" in
11579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580   *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583   (eval "$ac_try") 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); }; }; then
11587   ac_cv_lib_curses_waddch=yes
11588 else
11589   echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11591
11592         ac_cv_lib_curses_waddch=no
11593 fi
11594
11595 rm -f core conftest.err conftest.$ac_objext \
11596       conftest$ac_exeext conftest.$ac_ext
11597 LIBS=$ac_check_lib_save_LIBS
11598 fi
11599 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11600 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
11601 if test $ac_cv_lib_curses_waddch = yes; then
11602
11603 cat >>confdefs.h <<\_ACEOF
11604 #define HAVE_LIBCURSES 1
11605 _ACEOF
11606
11607              CURSESLIBS="-lcurses"
11608 fi
11609
11610     fi
11611     ac_save_LIBS="$LIBS"
11612     LIBS="$LIBS $CURSESLIBS"
11613
11614 for ac_func in mousemask
11615 do
11616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11620   echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622   cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11630 #define $ac_func innocuous_$ac_func
11631
11632 /* System header to define __stub macros and hopefully few prototypes,
11633     which can conflict with char $ac_func (); below.
11634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11635     <limits.h> exists even on freestanding compilers.  */
11636
11637 #ifdef __STDC__
11638 # include <limits.h>
11639 #else
11640 # include <assert.h>
11641 #endif
11642
11643 #undef $ac_func
11644
11645 /* Override any GCC internal prototype to avoid an error.
11646    Use char because int might match the return type of a GCC
11647    builtin and then its argument prototype would still apply.  */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 char $ac_func ();
11652 /* The GNU C library defines this for functions which it implements
11653     to always fail with ENOSYS.  Some functions are actually named
11654     something starting with __ and the normal name is an alias.  */
11655 #if defined __stub_$ac_func || defined __stub___$ac_func
11656 choke me
11657 #endif
11658
11659 int
11660 main ()
11661 {
11662 return $ac_func ();
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 rm -f conftest.$ac_objext conftest$ac_exeext
11668 if { (ac_try="$ac_link"
11669 case "(($ac_try" in
11670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671   *) ac_try_echo=$ac_try;;
11672 esac
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674   (eval "$ac_link") 2>conftest.er1
11675   ac_status=$?
11676   grep -v '^ *+' conftest.er1 >conftest.err
11677   rm -f conftest.er1
11678   cat conftest.err >&5
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); } &&
11681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11682   { (case "(($ac_try" in
11683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684   *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687   (eval "$ac_try") 2>&5
11688   ac_status=$?
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); }; } &&
11691          { ac_try='test -s conftest$ac_exeext'
11692   { (case "(($ac_try" in
11693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694   *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697   (eval "$ac_try") 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; }; then
11701   eval "$as_ac_var=yes"
11702 else
11703   echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11705
11706         eval "$as_ac_var=no"
11707 fi
11708
11709 rm -f core conftest.err conftest.$ac_objext \
11710       conftest$ac_exeext conftest.$ac_ext
11711 fi
11712 ac_res=`eval echo '${'$as_ac_var'}'`
11713                { echo "$as_me:$LINENO: result: $ac_res" >&5
11714 echo "${ECHO_T}$ac_res" >&6; }
11715 if test `eval echo '${'$as_ac_var'}'` = yes; then
11716   cat >>confdefs.h <<_ACEOF
11717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11718 _ACEOF
11719
11720 fi
11721 done
11722
11723     LIBS="$ac_save_LIBS"
11724 fi
11725
11726
11727 # Extract the first word of "sane-config", so it can be a program name with args.
11728 set dummy sane-config; ac_word=$2
11729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11731 if test "${ac_cv_prog_sane_devel+set}" = set; then
11732   echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734   if test -n "$sane_devel"; then
11735   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11736 else
11737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738 for as_dir in $PATH
11739 do
11740   IFS=$as_save_IFS
11741   test -z "$as_dir" && as_dir=.
11742   for ac_exec_ext in '' $ac_executable_extensions; do
11743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11744     ac_cv_prog_sane_devel="sane-config"
11745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11746     break 2
11747   fi
11748 done
11749 done
11750 IFS=$as_save_IFS
11751
11752   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11753 fi
11754 fi
11755 sane_devel=$ac_cv_prog_sane_devel
11756 if test -n "$sane_devel"; then
11757   { echo "$as_me:$LINENO: result: $sane_devel" >&5
11758 echo "${ECHO_T}$sane_devel" >&6; }
11759 else
11760   { echo "$as_me:$LINENO: result: no" >&5
11761 echo "${ECHO_T}no" >&6; }
11762 fi
11763
11764
11765 SANELIBS=""
11766
11767 SANEINCL=""
11768
11769 if test "$sane_devel" != "no"
11770 then
11771     SANELIBS="`$sane_devel --libs`"
11772     SANEINCL="`$sane_devel --cflags`"
11773     ac_save_CPPFLAGS="$CPPFLAGS"
11774     ac_save_LIBS="$LIBS"
11775     CPPFLAGS="$CPPFLAGS $SANEINCL"
11776     LIBS="$LIBS $SANELIBS"
11777     if test "${ac_cv_header_sane_sane_h+set}" = set; then
11778   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11779 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11780 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11781   echo $ECHO_N "(cached) $ECHO_C" >&6
11782 fi
11783 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11784 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11785 else
11786   # Is the header compilable?
11787 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11788 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
11789 cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h.  */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h.  */
11795 $ac_includes_default
11796 #include <sane/sane.h>
11797 _ACEOF
11798 rm -f conftest.$ac_objext
11799 if { (ac_try="$ac_compile"
11800 case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805   (eval "$ac_compile") 2>conftest.er1
11806   ac_status=$?
11807   grep -v '^ *+' conftest.er1 >conftest.err
11808   rm -f conftest.er1
11809   cat conftest.err >&5
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); } &&
11812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11813   { (case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818   (eval "$ac_try") 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; } &&
11822          { ac_try='test -s conftest.$ac_objext'
11823   { (case "(($ac_try" in
11824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825   *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828   (eval "$ac_try") 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; }; then
11832   ac_header_compiler=yes
11833 else
11834   echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837         ac_header_compiler=no
11838 fi
11839
11840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11842 echo "${ECHO_T}$ac_header_compiler" >&6; }
11843
11844 # Is the header present?
11845 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11846 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
11847 cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h.  */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h.  */
11853 #include <sane/sane.h>
11854 _ACEOF
11855 if { (ac_try="$ac_cpp conftest.$ac_ext"
11856 case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11862   ac_status=$?
11863   grep -v '^ *+' conftest.er1 >conftest.err
11864   rm -f conftest.er1
11865   cat conftest.err >&5
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); } >/dev/null; then
11868   if test -s conftest.err; then
11869     ac_cpp_err=$ac_c_preproc_warn_flag
11870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11871   else
11872     ac_cpp_err=
11873   fi
11874 else
11875   ac_cpp_err=yes
11876 fi
11877 if test -z "$ac_cpp_err"; then
11878   ac_header_preproc=yes
11879 else
11880   echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11882
11883   ac_header_preproc=no
11884 fi
11885
11886 rm -f conftest.err conftest.$ac_ext
11887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11888 echo "${ECHO_T}$ac_header_preproc" >&6; }
11889
11890 # So?  What about this header?
11891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11892   yes:no: )
11893     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11894 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11895     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11896 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
11897     ac_header_preproc=yes
11898     ;;
11899   no:yes:* )
11900     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11901 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
11902     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
11903 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
11904     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
11905 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
11906     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
11907 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11908     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
11909 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
11910     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
11911 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
11912     ( cat <<\_ASBOX
11913 ## ------------------------------------ ##
11914 ## Report this to wine-devel@winehq.org ##
11915 ## ------------------------------------ ##
11916 _ASBOX
11917      ) | sed "s/^/$as_me: WARNING:     /" >&2
11918     ;;
11919 esac
11920 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11921 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11922 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11923   echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925   ac_cv_header_sane_sane_h=$ac_header_preproc
11926 fi
11927 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11928 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11929
11930 fi
11931 if test $ac_cv_header_sane_sane_h = yes; then
11932   { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
11933 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
11934 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
11935   echo $ECHO_N "(cached) $ECHO_C" >&6
11936 else
11937   ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lsane  $LIBS"
11939 cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h.  */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h.  */
11945
11946 /* Override any GCC internal prototype to avoid an error.
11947    Use char because int might match the return type of a GCC
11948    builtin and then its argument prototype would still apply.  */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 char sane_open ();
11953 int
11954 main ()
11955 {
11956 return sane_open ();
11957   ;
11958   return 0;
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (ac_try="$ac_link"
11963 case "(($ac_try" in
11964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965   *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968   (eval "$ac_link") 2>conftest.er1
11969   ac_status=$?
11970   grep -v '^ *+' conftest.er1 >conftest.err
11971   rm -f conftest.er1
11972   cat conftest.err >&5
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); } &&
11975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11976   { (case "(($ac_try" in
11977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978   *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981   (eval "$ac_try") 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest$ac_exeext'
11986   { (case "(($ac_try" in
11987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988   *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991   (eval "$ac_try") 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); }; }; then
11995   ac_cv_lib_sane_sane_open=yes
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000         ac_cv_lib_sane_sane_open=no
12001 fi
12002
12003 rm -f core conftest.err conftest.$ac_objext \
12004       conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
12008 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
12009 if test $ac_cv_lib_sane_sane_open = yes; then
12010
12011 cat >>confdefs.h <<\_ACEOF
12012 #define HAVE_SANE 1
12013 _ACEOF
12014
12015 else
12016   SANELIBS=""
12017                                   SANEINCL=""
12018 fi
12019
12020 else
12021   SANELIBS=""
12022                     SANEINCL=""
12023 fi
12024
12025
12026     LIBS="$ac_save_LIBS"
12027     CPPFLAGS="$ac_save_CPPFLAGS"
12028 fi
12029
12030 # Extract the first word of "gphoto2-config", so it can be a program name with args.
12031 set dummy gphoto2-config; ac_word=$2
12032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12034 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037   if test -n "$gphoto2_devel"; then
12038   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12039 else
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12042 do
12043   IFS=$as_save_IFS
12044   test -z "$as_dir" && as_dir=.
12045   for ac_exec_ext in '' $ac_executable_extensions; do
12046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12047     ac_cv_prog_gphoto2_devel="gphoto2-config"
12048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12049     break 2
12050   fi
12051 done
12052 done
12053 IFS=$as_save_IFS
12054
12055   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12056 fi
12057 fi
12058 gphoto2_devel=$ac_cv_prog_gphoto2_devel
12059 if test -n "$gphoto2_devel"; then
12060   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12061 echo "${ECHO_T}$gphoto2_devel" >&6; }
12062 else
12063   { echo "$as_me:$LINENO: result: no" >&5
12064 echo "${ECHO_T}no" >&6; }
12065 fi
12066
12067
12068 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12069 set dummy gphoto2-port-config; ac_word=$2
12070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12072 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075   if test -n "$gphoto2port_devel"; then
12076   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12077 else
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079 for as_dir in $PATH
12080 do
12081   IFS=$as_save_IFS
12082   test -z "$as_dir" && as_dir=.
12083   for ac_exec_ext in '' $ac_executable_extensions; do
12084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12085     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12087     break 2
12088   fi
12089 done
12090 done
12091 IFS=$as_save_IFS
12092
12093   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
12094 fi
12095 fi
12096 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12097 if test -n "$gphoto2port_devel"; then
12098   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12099 echo "${ECHO_T}$gphoto2port_devel" >&6; }
12100 else
12101   { echo "$as_me:$LINENO: result: no" >&5
12102 echo "${ECHO_T}no" >&6; }
12103 fi
12104
12105
12106 GPHOTO2LIBS=""
12107
12108 GPHOTO2INCL=""
12109
12110 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12111 then
12112     GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12113     GPHOTO2LIBS=""
12114     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12115     do
12116       case "$i" in
12117         -L/usr/lib|-L/usr/lib64) ;;
12118         -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
12119       esac
12120     done
12121     ac_save_CPPFLAGS="$CPPFLAGS"
12122     ac_save_LIBS="$LIBS"
12123     CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
12124     LIBS="$LIBS $GPHOTO2LIBS"
12125     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12126   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12127 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12128 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12129   echo $ECHO_N "(cached) $ECHO_C" >&6
12130 fi
12131 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12132 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12133 else
12134   # Is the header compilable?
12135 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12136 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143 $ac_includes_default
12144 #include <gphoto2-camera.h>
12145 _ACEOF
12146 rm -f conftest.$ac_objext
12147 if { (ac_try="$ac_compile"
12148 case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_compile") 2>conftest.er1
12154   ac_status=$?
12155   grep -v '^ *+' conftest.er1 >conftest.err
12156   rm -f conftest.er1
12157   cat conftest.err >&5
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } &&
12160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12161   { (case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_try") 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; } &&
12170          { ac_try='test -s conftest.$ac_objext'
12171   { (case "(($ac_try" in
12172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173   *) ac_try_echo=$ac_try;;
12174 esac
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176   (eval "$ac_try") 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }; }; then
12180   ac_header_compiler=yes
12181 else
12182   echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185         ac_header_compiler=no
12186 fi
12187
12188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12190 echo "${ECHO_T}$ac_header_compiler" >&6; }
12191
12192 # Is the header present?
12193 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12194 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h.  */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h.  */
12201 #include <gphoto2-camera.h>
12202 _ACEOF
12203 if { (ac_try="$ac_cpp conftest.$ac_ext"
12204 case "(($ac_try" in
12205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206   *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } >/dev/null; then
12216   if test -s conftest.err; then
12217     ac_cpp_err=$ac_c_preproc_warn_flag
12218     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12219   else
12220     ac_cpp_err=
12221   fi
12222 else
12223   ac_cpp_err=yes
12224 fi
12225 if test -z "$ac_cpp_err"; then
12226   ac_header_preproc=yes
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231   ac_header_preproc=no
12232 fi
12233
12234 rm -f conftest.err conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12236 echo "${ECHO_T}$ac_header_preproc" >&6; }
12237
12238 # So?  What about this header?
12239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12240   yes:no: )
12241     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12242 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12243     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12244 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12245     ac_header_preproc=yes
12246     ;;
12247   no:yes:* )
12248     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12249 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12250     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
12251 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
12252     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12253 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12254     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
12255 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12256     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12257 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12258     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12259 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
12260     ( cat <<\_ASBOX
12261 ## ------------------------------------ ##
12262 ## Report this to wine-devel@winehq.org ##
12263 ## ------------------------------------ ##
12264 _ASBOX
12265      ) | sed "s/^/$as_me: WARNING:     /" >&2
12266     ;;
12267 esac
12268 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12269 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12270 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12271   echo $ECHO_N "(cached) $ECHO_C" >&6
12272 else
12273   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
12274 fi
12275 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12276 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12277
12278 fi
12279 if test $ac_cv_header_gphoto2_camera_h = yes; then
12280   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12281 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
12282 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   ac_check_lib_save_LIBS=$LIBS
12286 LIBS="-lgphoto2  $LIBS"
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293
12294 /* Override any GCC internal prototype to avoid an error.
12295    Use char because int might match the return type of a GCC
12296    builtin and then its argument prototype would still apply.  */
12297 #ifdef __cplusplus
12298 extern "C"
12299 #endif
12300 char gp_camera_new ();
12301 int
12302 main ()
12303 {
12304 return gp_camera_new ();
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 rm -f conftest.$ac_objext conftest$ac_exeext
12310 if { (ac_try="$ac_link"
12311 case "(($ac_try" in
12312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313   *) ac_try_echo=$ac_try;;
12314 esac
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316   (eval "$ac_link") 2>conftest.er1
12317   ac_status=$?
12318   grep -v '^ *+' conftest.er1 >conftest.err
12319   rm -f conftest.er1
12320   cat conftest.err >&5
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); } &&
12323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12324   { (case "(($ac_try" in
12325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326   *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329   (eval "$ac_try") 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; } &&
12333          { ac_try='test -s conftest$ac_exeext'
12334   { (case "(($ac_try" in
12335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336   *) ac_try_echo=$ac_try;;
12337 esac
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339   (eval "$ac_try") 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; }; then
12343   ac_cv_lib_gphoto2_gp_camera_new=yes
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12347
12348         ac_cv_lib_gphoto2_gp_camera_new=no
12349 fi
12350
12351 rm -f core conftest.err conftest.$ac_objext \
12352       conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS
12354 fi
12355 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12356 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
12357 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
12358
12359 cat >>confdefs.h <<\_ACEOF
12360 #define HAVE_GPHOTO2 1
12361 _ACEOF
12362
12363 else
12364   GPHOTO2LIBS=""
12365                                   GPHOTO2INCL=""
12366 fi
12367
12368 else
12369   GPHOTO2LIBS=""
12370                     GPHOTO2INCL=""
12371 fi
12372
12373
12374     LIBS="$ac_save_LIBS"
12375     CPPFLAGS="$ac_save_CPPFLAGS"
12376 fi
12377
12378 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
12379 then
12380     saved_libs="$LIBS"
12381     for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
12382     do
12383         TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
12384         TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
12385         { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
12386 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
12387         LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12388         cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h.  */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h.  */
12394 #include <unicode/ubidi.h>
12395 int
12396 main ()
12397 {
12398 ubidi_open()
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (ac_try="$ac_link"
12405 case "(($ac_try" in
12406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407   *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410   (eval "$ac_link") 2>conftest.er1
12411   ac_status=$?
12412   grep -v '^ *+' conftest.er1 >conftest.err
12413   rm -f conftest.er1
12414   cat conftest.err >&5
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } &&
12417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418   { (case "(($ac_try" in
12419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420   *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423   (eval "$ac_try") 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest$ac_exeext'
12428   { (case "(($ac_try" in
12429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430   *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433   (eval "$ac_try") 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437
12438 cat >>confdefs.h <<\_ACEOF
12439 #define HAVE_ICU 1
12440 _ACEOF
12441
12442                      ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12443
12444                      { echo "$as_me:$LINENO: result: yes" >&5
12445 echo "${ECHO_T}yes" >&6; }
12446 else
12447   echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450         { echo "$as_me:$LINENO: result: no" >&5
12451 echo "${ECHO_T}no" >&6; }
12452 fi
12453
12454 rm -f core conftest.err conftest.$ac_objext \
12455       conftest$ac_exeext conftest.$ac_ext
12456     done
12457     LIBS="$saved_libs"
12458 fi
12459
12460 RESOLVLIBS=""
12461
12462 if test "$ac_cv_header_resolv_h" = "yes"
12463 then
12464     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12465 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
12466 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469   ac_check_lib_save_LIBS=$LIBS
12470 LIBS="-lresolv  $LIBS"
12471 cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h.  */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h.  */
12477
12478 /* Override any GCC internal prototype to avoid an error.
12479    Use char because int might match the return type of a GCC
12480    builtin and then its argument prototype would still apply.  */
12481 #ifdef __cplusplus
12482 extern "C"
12483 #endif
12484 char res_query ();
12485 int
12486 main ()
12487 {
12488 return res_query ();
12489   ;
12490   return 0;
12491 }
12492 _ACEOF
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (ac_try="$ac_link"
12495 case "(($ac_try" in
12496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497   *) ac_try_echo=$ac_try;;
12498 esac
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500   (eval "$ac_link") 2>conftest.er1
12501   ac_status=$?
12502   grep -v '^ *+' conftest.er1 >conftest.err
12503   rm -f conftest.er1
12504   cat conftest.err >&5
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); } &&
12507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12508   { (case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_try") 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; } &&
12517          { ac_try='test -s conftest$ac_exeext'
12518   { (case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_try") 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_lib_resolv_res_query=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532         ac_cv_lib_resolv_res_query=no
12533 fi
12534
12535 rm -f core conftest.err conftest.$ac_objext \
12536       conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12538 fi
12539 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12540 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12541 if test $ac_cv_lib_resolv_res_query = yes; then
12542
12543 cat >>confdefs.h <<\_ACEOF
12544 #define HAVE_RESOLV 1
12545 _ACEOF
12546
12547          RESOLVLIBS="-lresolv"
12548 fi
12549
12550 fi
12551
12552 LCMSLIBS=""
12553
12554 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12555 then
12556     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12557 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12558 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-llcms  $LIBS"
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h.  */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h.  */
12569
12570 /* Override any GCC internal prototype to avoid an error.
12571    Use char because int might match the return type of a GCC
12572    builtin and then its argument prototype would still apply.  */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 char cmsOpenProfileFromFile ();
12577 int
12578 main ()
12579 {
12580 return cmsOpenProfileFromFile ();
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592   (eval "$ac_link") 2>conftest.er1
12593   ac_status=$?
12594   grep -v '^ *+' conftest.er1 >conftest.err
12595   rm -f conftest.er1
12596   cat conftest.err >&5
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } &&
12599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600   { (case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605   (eval "$ac_try") 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; } &&
12609          { ac_try='test -s conftest$ac_exeext'
12610   { (case "(($ac_try" in
12611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612   *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615   (eval "$ac_try") 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; }; then
12619   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12620 else
12621   echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
12625 fi
12626
12627 rm -f core conftest.err conftest.$ac_objext \
12628       conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12630 fi
12631 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12632 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12633 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12634
12635 cat >>confdefs.h <<\_ACEOF
12636 #define HAVE_LCMS 1
12637 _ACEOF
12638
12639          LCMSLIBS="-llcms"
12640 fi
12641
12642 fi
12643
12644 LDAPLIBS=""
12645
12646 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12647 then
12648     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12649 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12650 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12651   echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653   ac_check_lib_save_LIBS=$LIBS
12654 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12655 cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h.  */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h.  */
12661
12662 /* Override any GCC internal prototype to avoid an error.
12663    Use char because int might match the return type of a GCC
12664    builtin and then its argument prototype would still apply.  */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 char ldap_initialize ();
12669 int
12670 main ()
12671 {
12672 return ldap_initialize ();
12673   ;
12674   return 0;
12675 }
12676 _ACEOF
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (ac_try="$ac_link"
12679 case "(($ac_try" in
12680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681   *) ac_try_echo=$ac_try;;
12682 esac
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684   (eval "$ac_link") 2>conftest.er1
12685   ac_status=$?
12686   grep -v '^ *+' conftest.er1 >conftest.err
12687   rm -f conftest.er1
12688   cat conftest.err >&5
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); } &&
12691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12692   { (case "(($ac_try" in
12693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694   *) ac_try_echo=$ac_try;;
12695 esac
12696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697   (eval "$ac_try") 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); }; } &&
12701          { ac_try='test -s conftest$ac_exeext'
12702   { (case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707   (eval "$ac_try") 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; }; then
12711   ac_cv_lib_ldap_r_ldap_initialize=yes
12712 else
12713   echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12715
12716         ac_cv_lib_ldap_r_ldap_initialize=no
12717 fi
12718
12719 rm -f core conftest.err conftest.$ac_objext \
12720       conftest$ac_exeext conftest.$ac_ext
12721 LIBS=$ac_check_lib_save_LIBS
12722 fi
12723 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12724 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12725 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12726   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12727 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12728 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12729   echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731   ac_check_lib_save_LIBS=$LIBS
12732 LIBS="-llber $LIBPTHREAD $LIBS"
12733 cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h.  */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h.  */
12739
12740 /* Override any GCC internal prototype to avoid an error.
12741    Use char because int might match the return type of a GCC
12742    builtin and then its argument prototype would still apply.  */
12743 #ifdef __cplusplus
12744 extern "C"
12745 #endif
12746 char ber_init ();
12747 int
12748 main ()
12749 {
12750 return ber_init ();
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (ac_try="$ac_link"
12757 case "(($ac_try" in
12758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759   *) ac_try_echo=$ac_try;;
12760 esac
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762   (eval "$ac_link") 2>conftest.er1
12763   ac_status=$?
12764   grep -v '^ *+' conftest.er1 >conftest.err
12765   rm -f conftest.er1
12766   cat conftest.err >&5
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); } &&
12769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12770   { (case "(($ac_try" in
12771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772   *) ac_try_echo=$ac_try;;
12773 esac
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775   (eval "$ac_try") 2>&5
12776   ac_status=$?
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); }; } &&
12779          { ac_try='test -s conftest$ac_exeext'
12780   { (case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_try") 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); }; }; then
12789   ac_cv_lib_lber_ber_init=yes
12790 else
12791   echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794         ac_cv_lib_lber_ber_init=no
12795 fi
12796
12797 rm -f core conftest.err conftest.$ac_objext \
12798       conftest$ac_exeext conftest.$ac_ext
12799 LIBS=$ac_check_lib_save_LIBS
12800 fi
12801 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12802 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12803 if test $ac_cv_lib_lber_ber_init = yes; then
12804
12805 cat >>confdefs.h <<\_ACEOF
12806 #define HAVE_LDAP 1
12807 _ACEOF
12808
12809              LDAPLIBS="-lldap_r -llber"
12810 fi
12811
12812 fi
12813
12814     ac_wine_check_funcs_save_LIBS="$LIBS"
12815 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12816
12817
12818
12819
12820 for ac_func in \
12821         ldap_count_references \
12822         ldap_first_reference \
12823         ldap_next_reference \
12824         ldap_parse_reference
12825 do
12826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12830   echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832   cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h.  */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h.  */
12838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12840 #define $ac_func innocuous_$ac_func
12841
12842 /* System header to define __stub macros and hopefully few prototypes,
12843     which can conflict with char $ac_func (); below.
12844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12845     <limits.h> exists even on freestanding compilers.  */
12846
12847 #ifdef __STDC__
12848 # include <limits.h>
12849 #else
12850 # include <assert.h>
12851 #endif
12852
12853 #undef $ac_func
12854
12855 /* Override any GCC internal prototype to avoid an error.
12856    Use char because int might match the return type of a GCC
12857    builtin and then its argument prototype would still apply.  */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 char $ac_func ();
12862 /* The GNU C library defines this for functions which it implements
12863     to always fail with ENOSYS.  Some functions are actually named
12864     something starting with __ and the normal name is an alias.  */
12865 #if defined __stub_$ac_func || defined __stub___$ac_func
12866 choke me
12867 #endif
12868
12869 int
12870 main ()
12871 {
12872 return $ac_func ();
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (ac_try="$ac_link"
12879 case "(($ac_try" in
12880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881   *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884   (eval "$ac_link") 2>conftest.er1
12885   ac_status=$?
12886   grep -v '^ *+' conftest.er1 >conftest.err
12887   rm -f conftest.er1
12888   cat conftest.err >&5
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); } &&
12891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892   { (case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897   (eval "$ac_try") 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; } &&
12901          { ac_try='test -s conftest$ac_exeext'
12902   { (case "(($ac_try" in
12903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904   *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907   (eval "$ac_try") 2>&5
12908   ac_status=$?
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; }; then
12911   eval "$as_ac_var=yes"
12912 else
12913   echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12915
12916         eval "$as_ac_var=no"
12917 fi
12918
12919 rm -f core conftest.err conftest.$ac_objext \
12920       conftest$ac_exeext conftest.$ac_ext
12921 fi
12922 ac_res=`eval echo '${'$as_ac_var'}'`
12923                { echo "$as_me:$LINENO: result: $ac_res" >&5
12924 echo "${ECHO_T}$ac_res" >&6; }
12925 if test `eval echo '${'$as_ac_var'}'` = yes; then
12926   cat >>confdefs.h <<_ACEOF
12927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12928 _ACEOF
12929
12930 fi
12931 done
12932
12933 LIBS="$ac_wine_check_funcs_save_LIBS"
12934 fi
12935
12936 FREETYPELIBS=""
12937
12938 FREETYPEINCL=""
12939
12940 # Extract the first word of "freetype-config", so it can be a program name with args.
12941 set dummy freetype-config; ac_word=$2
12942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12944 if test "${ac_cv_prog_ft_devel+set}" = set; then
12945   echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947   if test -n "$ft_devel"; then
12948   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
12949 else
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12952 do
12953   IFS=$as_save_IFS
12954   test -z "$as_dir" && as_dir=.
12955   for ac_exec_ext in '' $ac_executable_extensions; do
12956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12957     ac_cv_prog_ft_devel="freetype-config"
12958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12959     break 2
12960   fi
12961 done
12962 done
12963 IFS=$as_save_IFS
12964
12965   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
12966 fi
12967 fi
12968 ft_devel=$ac_cv_prog_ft_devel
12969 if test -n "$ft_devel"; then
12970   { echo "$as_me:$LINENO: result: $ft_devel" >&5
12971 echo "${ECHO_T}$ft_devel" >&6; }
12972 else
12973   { echo "$as_me:$LINENO: result: no" >&5
12974 echo "${ECHO_T}no" >&6; }
12975 fi
12976
12977
12978 if test "$ft_devel" = "no"
12979 then
12980     # Extract the first word of "freetype2-config", so it can be a program name with args.
12981 set dummy freetype2-config; ac_word=$2
12982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12984 if test "${ac_cv_prog_ft_devel2+set}" = set; then
12985   echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987   if test -n "$ft_devel2"; then
12988   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
12989 else
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12992 do
12993   IFS=$as_save_IFS
12994   test -z "$as_dir" && as_dir=.
12995   for ac_exec_ext in '' $ac_executable_extensions; do
12996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12997     ac_cv_prog_ft_devel2="freetype2-config"
12998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12999     break 2
13000   fi
13001 done
13002 done
13003 IFS=$as_save_IFS
13004
13005   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
13006 fi
13007 fi
13008 ft_devel2=$ac_cv_prog_ft_devel2
13009 if test -n "$ft_devel2"; then
13010   { echo "$as_me:$LINENO: result: $ft_devel2" >&5
13011 echo "${ECHO_T}$ft_devel2" >&6; }
13012 else
13013   { echo "$as_me:$LINENO: result: no" >&5
13014 echo "${ECHO_T}no" >&6; }
13015 fi
13016
13017
13018     if test "$ft_devel2" = "freetype2-config"
13019     then
13020         ft_devel=$ft_devel2
13021     fi
13022 fi
13023
13024 if test "$ft_devel" = "no"
13025 then
13026     wine_cv_msg_freetype=yes
13027 else
13028     FREETYPELIBS=`$ft_devel --libs`
13029     FREETYPEINCL=`$ft_devel --cflags`
13030     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
13031 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
13032 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
13033   echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035   ac_check_lib_save_LIBS=$LIBS
13036 LIBS="-lfreetype $FREETYPELIBS $LIBS"
13037 cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h.  */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h.  */
13043
13044 /* Override any GCC internal prototype to avoid an error.
13045    Use char because int might match the return type of a GCC
13046    builtin and then its argument prototype would still apply.  */
13047 #ifdef __cplusplus
13048 extern "C"
13049 #endif
13050 char FT_Init_FreeType ();
13051 int
13052 main ()
13053 {
13054 return FT_Init_FreeType ();
13055   ;
13056   return 0;
13057 }
13058 _ACEOF
13059 rm -f conftest.$ac_objext conftest$ac_exeext
13060 if { (ac_try="$ac_link"
13061 case "(($ac_try" in
13062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063   *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066   (eval "$ac_link") 2>conftest.er1
13067   ac_status=$?
13068   grep -v '^ *+' conftest.er1 >conftest.err
13069   rm -f conftest.er1
13070   cat conftest.err >&5
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); } &&
13073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13074   { (case "(($ac_try" in
13075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076   *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079   (eval "$ac_try") 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); }; } &&
13083          { ac_try='test -s conftest$ac_exeext'
13084   { (case "(($ac_try" in
13085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086   *) ac_try_echo=$ac_try;;
13087 esac
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089   (eval "$ac_try") 2>&5
13090   ac_status=$?
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); }; }; then
13093   ac_cv_lib_freetype_FT_Init_FreeType=yes
13094 else
13095   echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13097
13098         ac_cv_lib_freetype_FT_Init_FreeType=no
13099 fi
13100
13101 rm -f core conftest.err conftest.$ac_objext \
13102       conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13104 fi
13105 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
13106 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
13107 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
13108   ft_lib=yes
13109 else
13110   ft_lib=no
13111 fi
13112
13113     if test "$ft_lib" = "no"
13114     then
13115         wine_cv_msg_freetype=yes
13116         FREETYPELIBS=""
13117         FREETYPEINCL=""
13118     else
13119         ac_save_CPPFLAGS="$CPPFLAGS"
13120         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132 for ac_header in ft2build.h \
13133                          freetype/freetype.h \
13134                          freetype/ftglyph.h \
13135                          freetype/tttables.h \
13136                          freetype/ftnames.h \
13137                          freetype/ftsnames.h \
13138                          freetype/ttnameid.h \
13139                          freetype/ftoutln.h \
13140                          freetype/ftwinfnt.h \
13141                          freetype/ftmodapi.h \
13142                          freetype/internal/sfnt.h
13143 do
13144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13148   echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150   cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156 #if HAVE_FT2BUILD_H
13157                           #include <ft2build.h>
13158                           #endif
13159
13160 #include <$ac_header>
13161 _ACEOF
13162 rm -f conftest.$ac_objext
13163 if { (ac_try="$ac_compile"
13164 case "(($ac_try" in
13165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166   *) ac_try_echo=$ac_try;;
13167 esac
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169   (eval "$ac_compile") 2>conftest.er1
13170   ac_status=$?
13171   grep -v '^ *+' conftest.er1 >conftest.err
13172   rm -f conftest.er1
13173   cat conftest.err >&5
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); } &&
13176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13177   { (case "(($ac_try" in
13178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179   *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182   (eval "$ac_try") 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); }; } &&
13186          { ac_try='test -s conftest.$ac_objext'
13187   { (case "(($ac_try" in
13188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189   *) ac_try_echo=$ac_try;;
13190 esac
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192   (eval "$ac_try") 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); }; }; then
13196   eval "$as_ac_Header=yes"
13197 else
13198   echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201         eval "$as_ac_Header=no"
13202 fi
13203
13204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205 fi
13206 ac_res=`eval echo '${'$as_ac_Header'}'`
13207                { echo "$as_me:$LINENO: result: $ac_res" >&5
13208 echo "${ECHO_T}$ac_res" >&6; }
13209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13210   cat >>confdefs.h <<_ACEOF
13211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13212 _ACEOF
13213
13214 fi
13215
13216 done
13217
13218         cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224 #include <ft2build.h>
13225                     #include <freetype/fttrigon.h>
13226 _ACEOF
13227 if { (ac_try="$ac_cpp conftest.$ac_ext"
13228 case "(($ac_try" in
13229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230   *) ac_try_echo=$ac_try;;
13231 esac
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13234   ac_status=$?
13235   grep -v '^ *+' conftest.er1 >conftest.err
13236   rm -f conftest.er1
13237   cat conftest.err >&5
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); } >/dev/null; then
13240   if test -s conftest.err; then
13241     ac_cpp_err=$ac_c_preproc_warn_flag
13242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13243   else
13244     ac_cpp_err=
13245   fi
13246 else
13247   ac_cpp_err=yes
13248 fi
13249 if test -z "$ac_cpp_err"; then
13250
13251 cat >>confdefs.h <<\_ACEOF
13252 #define HAVE_FREETYPE_FTTRIGON_H 1
13253 _ACEOF
13254
13255                     wine_cv_fttrigon=yes
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260   wine_cv_fttrigon=no
13261 fi
13262
13263 rm -f conftest.err conftest.$ac_ext
13264         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13265 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
13266 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
13267   echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269   cat >conftest.$ac_ext <<_ACEOF
13270 /* confdefs.h.  */
13271 _ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h.  */
13275 #include <freetype/ftmodapi.h>
13276
13277 typedef FT_TrueTypeEngineType ac__type_new_;
13278 int
13279 main ()
13280 {
13281 if ((ac__type_new_ *) 0)
13282   return 0;
13283 if (sizeof (ac__type_new_))
13284   return 0;
13285   ;
13286   return 0;
13287 }
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296   (eval "$ac_compile") 2>conftest.er1
13297   ac_status=$?
13298   grep -v '^ *+' conftest.er1 >conftest.err
13299   rm -f conftest.er1
13300   cat conftest.err >&5
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } &&
13303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; } &&
13313          { ac_try='test -s conftest.$ac_objext'
13314   { (case "(($ac_try" in
13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316   *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319   (eval "$ac_try") 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; }; then
13323   ac_cv_type_FT_TrueTypeEngineType=yes
13324 else
13325   echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13327
13328         ac_cv_type_FT_TrueTypeEngineType=no
13329 fi
13330
13331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 fi
13333 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13334 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
13335 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13336
13337 cat >>confdefs.h <<_ACEOF
13338 #define HAVE_FT_TRUETYPEENGINETYPE 1
13339 _ACEOF
13340
13341
13342 fi
13343
13344         ac_save_CFLAGS="$CFLAGS"
13345         CFLAGS="$CFLAGS $FREETYPELIBS"
13346
13347 for ac_func in FT_Load_Sfnt_Table
13348 do
13349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13353   echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355   cat >conftest.$ac_ext <<_ACEOF
13356 /* confdefs.h.  */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h.  */
13361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13363 #define $ac_func innocuous_$ac_func
13364
13365 /* System header to define __stub macros and hopefully few prototypes,
13366     which can conflict with char $ac_func (); below.
13367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13368     <limits.h> exists even on freestanding compilers.  */
13369
13370 #ifdef __STDC__
13371 # include <limits.h>
13372 #else
13373 # include <assert.h>
13374 #endif
13375
13376 #undef $ac_func
13377
13378 /* Override any GCC internal prototype to avoid an error.
13379    Use char because int might match the return type of a GCC
13380    builtin and then its argument prototype would still apply.  */
13381 #ifdef __cplusplus
13382 extern "C"
13383 #endif
13384 char $ac_func ();
13385 /* The GNU C library defines this for functions which it implements
13386     to always fail with ENOSYS.  Some functions are actually named
13387     something starting with __ and the normal name is an alias.  */
13388 #if defined __stub_$ac_func || defined __stub___$ac_func
13389 choke me
13390 #endif
13391
13392 int
13393 main ()
13394 {
13395 return $ac_func ();
13396   ;
13397   return 0;
13398 }
13399 _ACEOF
13400 rm -f conftest.$ac_objext conftest$ac_exeext
13401 if { (ac_try="$ac_link"
13402 case "(($ac_try" in
13403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404   *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407   (eval "$ac_link") 2>conftest.er1
13408   ac_status=$?
13409   grep -v '^ *+' conftest.er1 >conftest.err
13410   rm -f conftest.er1
13411   cat conftest.err >&5
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); } &&
13414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13415   { (case "(($ac_try" in
13416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417   *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420   (eval "$ac_try") 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; } &&
13424          { ac_try='test -s conftest$ac_exeext'
13425   { (case "(($ac_try" in
13426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427   *) ac_try_echo=$ac_try;;
13428 esac
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430   (eval "$ac_try") 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; }; then
13434   eval "$as_ac_var=yes"
13435 else
13436   echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439         eval "$as_ac_var=no"
13440 fi
13441
13442 rm -f core conftest.err conftest.$ac_objext \
13443       conftest$ac_exeext conftest.$ac_ext
13444 fi
13445 ac_res=`eval echo '${'$as_ac_var'}'`
13446                { echo "$as_me:$LINENO: result: $ac_res" >&5
13447 echo "${ECHO_T}$ac_res" >&6; }
13448 if test `eval echo '${'$as_ac_var'}'` = yes; then
13449   cat >>confdefs.h <<_ACEOF
13450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13451 _ACEOF
13452
13453 fi
13454 done
13455
13456         CFLAGS="$ac_save_CFLAGS"
13457         CPPFLAGS="$ac_save_CPPFLAGS"
13458                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
13459         then
13460
13461 cat >>confdefs.h <<\_ACEOF
13462 #define HAVE_FREETYPE 1
13463 _ACEOF
13464
13465             wine_cv_msg_freetype=no
13466         else
13467             FREETYPELIBS=""
13468             FREETYPEINCL=""
13469             wine_cv_msg_freetype=yes
13470         fi
13471     fi
13472 fi
13473
13474 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
13475 then
13476   FONTSSUBDIRS="fonts"
13477
13478 fi
13479
13480 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13481 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
13482 if test "${ac_cv_c_ppdev+set}" = set; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485   cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h.  */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h.  */
13491 #include <linux/ppdev.h>
13492 int
13493 main ()
13494 {
13495 ioctl (1,PPCLAIM,0)
13496   ;
13497   return 0;
13498 }
13499 _ACEOF
13500 rm -f conftest.$ac_objext
13501 if { (ac_try="$ac_compile"
13502 case "(($ac_try" in
13503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504   *) ac_try_echo=$ac_try;;
13505 esac
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507   (eval "$ac_compile") 2>conftest.er1
13508   ac_status=$?
13509   grep -v '^ *+' conftest.er1 >conftest.err
13510   rm -f conftest.er1
13511   cat conftest.err >&5
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); } &&
13514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13515   { (case "(($ac_try" in
13516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517   *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520   (eval "$ac_try") 2>&5
13521   ac_status=$?
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); }; } &&
13524          { ac_try='test -s conftest.$ac_objext'
13525   { (case "(($ac_try" in
13526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13527   *) ac_try_echo=$ac_try;;
13528 esac
13529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13530   (eval "$ac_try") 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); }; }; then
13534   ac_cv_c_ppdev="yes"
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539         ac_cv_c_ppdev="no"
13540 fi
13541
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543
13544 fi
13545 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13546 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13547 if test "$ac_cv_c_ppdev" = "yes"
13548 then
13549
13550 cat >>confdefs.h <<\_ACEOF
13551 #define HAVE_PPDEV 1
13552 _ACEOF
13553
13554 fi
13555
13556 { echo "$as_me:$LINENO: checking for va_copy" >&5
13557 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13558 if test "${ac_cv_c_va_copy+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561   cat >conftest.$ac_ext <<_ACEOF
13562 /* confdefs.h.  */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h.  */
13567 #include <stdarg.h>
13568 int
13569 main ()
13570 {
13571 va_list ap1, ap2;
13572     va_copy(ap1,ap2);
13573
13574   ;
13575   return 0;
13576 }
13577 _ACEOF
13578 rm -f conftest.$ac_objext conftest$ac_exeext
13579 if { (ac_try="$ac_link"
13580 case "(($ac_try" in
13581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582   *) ac_try_echo=$ac_try;;
13583 esac
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585   (eval "$ac_link") 2>conftest.er1
13586   ac_status=$?
13587   grep -v '^ *+' conftest.er1 >conftest.err
13588   rm -f conftest.er1
13589   cat conftest.err >&5
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } &&
13592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13593   { (case "(($ac_try" in
13594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595   *) ac_try_echo=$ac_try;;
13596 esac
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598   (eval "$ac_try") 2>&5
13599   ac_status=$?
13600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); }; } &&
13602          { ac_try='test -s conftest$ac_exeext'
13603   { (case "(($ac_try" in
13604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605   *) ac_try_echo=$ac_try;;
13606 esac
13607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13608   (eval "$ac_try") 2>&5
13609   ac_status=$?
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); }; }; then
13612   ac_cv_c_va_copy="yes"
13613 else
13614   echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13616
13617         ac_cv_c_va_copy="no"
13618 fi
13619
13620 rm -f core conftest.err conftest.$ac_objext \
13621       conftest$ac_exeext conftest.$ac_ext
13622
13623 fi
13624 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13625 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13626 if test "$ac_cv_c_va_copy" = "yes"
13627 then
13628
13629 cat >>confdefs.h <<\_ACEOF
13630 #define HAVE_VA_COPY 1
13631 _ACEOF
13632
13633 fi
13634 { echo "$as_me:$LINENO: checking for __va_copy" >&5
13635 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13636 if test "${ac_cv_c___va_copy+set}" = set; then
13637   echo $ECHO_N "(cached) $ECHO_C" >&6
13638 else
13639   cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h.  */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h.  */
13645 #include <stdarg.h>
13646 int
13647 main ()
13648 {
13649 va_list ap1, ap2;
13650     __va_copy(ap1,ap2);
13651
13652   ;
13653   return 0;
13654 }
13655 _ACEOF
13656 rm -f conftest.$ac_objext conftest$ac_exeext
13657 if { (ac_try="$ac_link"
13658 case "(($ac_try" in
13659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660   *) ac_try_echo=$ac_try;;
13661 esac
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663   (eval "$ac_link") 2>conftest.er1
13664   ac_status=$?
13665   grep -v '^ *+' conftest.er1 >conftest.err
13666   rm -f conftest.er1
13667   cat conftest.err >&5
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13671   { (case "(($ac_try" in
13672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673   *) ac_try_echo=$ac_try;;
13674 esac
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676   (eval "$ac_try") 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; } &&
13680          { ac_try='test -s conftest$ac_exeext'
13681   { (case "(($ac_try" in
13682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683   *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686   (eval "$ac_try") 2>&5
13687   ac_status=$?
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); }; }; then
13690   ac_cv_c___va_copy="yes"
13691 else
13692   echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13694
13695         ac_cv_c___va_copy="no"
13696 fi
13697
13698 rm -f core conftest.err conftest.$ac_objext \
13699       conftest$ac_exeext conftest.$ac_ext
13700
13701 fi
13702 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13703 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13704 if test "$ac_cv_c___va_copy" = "yes"
13705 then
13706
13707 cat >>confdefs.h <<\_ACEOF
13708 #define HAVE___VA_COPY 1
13709 _ACEOF
13710
13711 fi
13712
13713 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13714 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13715 if test "${ac_cv_c_sigsetjmp+set}" = set; then
13716   echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718   cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h.  */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h.  */
13724 #include <setjmp.h>
13725 int
13726 main ()
13727 {
13728 sigjmp_buf buf;
13729     sigsetjmp( buf, 1 );
13730     siglongjmp( buf, 1 );
13731   ;
13732   return 0;
13733 }
13734 _ACEOF
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (ac_try="$ac_link"
13737 case "(($ac_try" in
13738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739   *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742   (eval "$ac_link") 2>conftest.er1
13743   ac_status=$?
13744   grep -v '^ *+' conftest.er1 >conftest.err
13745   rm -f conftest.er1
13746   cat conftest.err >&5
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } &&
13749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13750   { (case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755   (eval "$ac_try") 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; } &&
13759          { ac_try='test -s conftest$ac_exeext'
13760   { (case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765   (eval "$ac_try") 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }; then
13769   ac_cv_c_sigsetjmp="yes"
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774         ac_cv_c_sigsetjmp="no"
13775 fi
13776
13777 rm -f core conftest.err conftest.$ac_objext \
13778       conftest$ac_exeext conftest.$ac_ext
13779
13780 fi
13781 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13782 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13783 if test "$ac_cv_c_sigsetjmp" = "yes"
13784 then
13785
13786 cat >>confdefs.h <<\_ACEOF
13787 #define HAVE_SIGSETJMP 1
13788 _ACEOF
13789
13790 fi
13791
13792 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13793 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13794 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13795   echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797   cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h.  */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h.  */
13803 #define _GNU_SOURCE
13804 #include <pthread.h>
13805
13806 typedef pthread_rwlock_t ac__type_new_;
13807 int
13808 main ()
13809 {
13810 if ((ac__type_new_ *) 0)
13811   return 0;
13812 if (sizeof (ac__type_new_))
13813   return 0;
13814   ;
13815   return 0;
13816 }
13817 _ACEOF
13818 rm -f conftest.$ac_objext
13819 if { (ac_try="$ac_compile"
13820 case "(($ac_try" in
13821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822   *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825   (eval "$ac_compile") 2>conftest.er1
13826   ac_status=$?
13827   grep -v '^ *+' conftest.er1 >conftest.err
13828   rm -f conftest.er1
13829   cat conftest.err >&5
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); } &&
13832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13833   { (case "(($ac_try" in
13834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835   *) ac_try_echo=$ac_try;;
13836 esac
13837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838   (eval "$ac_try") 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); }; } &&
13842          { ac_try='test -s conftest.$ac_objext'
13843   { (case "(($ac_try" in
13844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845   *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848   (eval "$ac_try") 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; }; then
13852   ac_cv_type_pthread_rwlock_t=yes
13853 else
13854   echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857         ac_cv_type_pthread_rwlock_t=no
13858 fi
13859
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 fi
13862 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13863 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
13864 if test $ac_cv_type_pthread_rwlock_t = yes; then
13865
13866 cat >>confdefs.h <<_ACEOF
13867 #define HAVE_PTHREAD_RWLOCK_T 1
13868 _ACEOF
13869
13870
13871 fi
13872 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13873 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
13874 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877   cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h.  */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h.  */
13883 #define _GNU_SOURCE
13884 #include <pthread.h>
13885
13886 typedef pthread_rwlockattr_t ac__type_new_;
13887 int
13888 main ()
13889 {
13890 if ((ac__type_new_ *) 0)
13891   return 0;
13892 if (sizeof (ac__type_new_))
13893   return 0;
13894   ;
13895   return 0;
13896 }
13897 _ACEOF
13898 rm -f conftest.$ac_objext
13899 if { (ac_try="$ac_compile"
13900 case "(($ac_try" in
13901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902   *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905   (eval "$ac_compile") 2>conftest.er1
13906   ac_status=$?
13907   grep -v '^ *+' conftest.er1 >conftest.err
13908   rm -f conftest.er1
13909   cat conftest.err >&5
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); } &&
13912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13913   { (case "(($ac_try" in
13914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915   *) ac_try_echo=$ac_try;;
13916 esac
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918   (eval "$ac_try") 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); }; } &&
13922          { ac_try='test -s conftest.$ac_objext'
13923   { (case "(($ac_try" in
13924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925   *) ac_try_echo=$ac_try;;
13926 esac
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928   (eval "$ac_try") 2>&5
13929   ac_status=$?
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); }; }; then
13932   ac_cv_type_pthread_rwlockattr_t=yes
13933 else
13934   echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937         ac_cv_type_pthread_rwlockattr_t=no
13938 fi
13939
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 fi
13942 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13943 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
13944 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
13945
13946 cat >>confdefs.h <<_ACEOF
13947 #define HAVE_PTHREAD_RWLOCKATTR_T 1
13948 _ACEOF
13949
13950
13951 fi
13952
13953
13954 ac_wine_check_funcs_save_LIBS="$LIBS"
13955 LIBS="$LIBS $LIBPTHREAD"
13956
13957
13958
13959
13960 for ac_func in \
13961         pthread_attr_get_np \
13962         pthread_getattr_np \
13963         pthread_get_stackaddr_np \
13964         pthread_get_stacksize_np
13965 do
13966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13970   echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972   cat >conftest.$ac_ext <<_ACEOF
13973 /* confdefs.h.  */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h.  */
13978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13980 #define $ac_func innocuous_$ac_func
13981
13982 /* System header to define __stub macros and hopefully few prototypes,
13983     which can conflict with char $ac_func (); below.
13984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13985     <limits.h> exists even on freestanding compilers.  */
13986
13987 #ifdef __STDC__
13988 # include <limits.h>
13989 #else
13990 # include <assert.h>
13991 #endif
13992
13993 #undef $ac_func
13994
13995 /* Override any GCC internal prototype to avoid an error.
13996    Use char because int might match the return type of a GCC
13997    builtin and then its argument prototype would still apply.  */
13998 #ifdef __cplusplus
13999 extern "C"
14000 #endif
14001 char $ac_func ();
14002 /* The GNU C library defines this for functions which it implements
14003     to always fail with ENOSYS.  Some functions are actually named
14004     something starting with __ and the normal name is an alias.  */
14005 #if defined __stub_$ac_func || defined __stub___$ac_func
14006 choke me
14007 #endif
14008
14009 int
14010 main ()
14011 {
14012 return $ac_func ();
14013   ;
14014   return 0;
14015 }
14016 _ACEOF
14017 rm -f conftest.$ac_objext conftest$ac_exeext
14018 if { (ac_try="$ac_link"
14019 case "(($ac_try" in
14020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021   *) ac_try_echo=$ac_try;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024   (eval "$ac_link") 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14032   { (case "(($ac_try" in
14033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034   *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037   (eval "$ac_try") 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; } &&
14041          { ac_try='test -s conftest$ac_exeext'
14042   { (case "(($ac_try" in
14043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044   *) ac_try_echo=$ac_try;;
14045 esac
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047   (eval "$ac_try") 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); }; }; then
14051   eval "$as_ac_var=yes"
14052 else
14053   echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14055
14056         eval "$as_ac_var=no"
14057 fi
14058
14059 rm -f core conftest.err conftest.$ac_objext \
14060       conftest$ac_exeext conftest.$ac_ext
14061 fi
14062 ac_res=`eval echo '${'$as_ac_var'}'`
14063                { echo "$as_me:$LINENO: result: $ac_res" >&5
14064 echo "${ECHO_T}$ac_res" >&6; }
14065 if test `eval echo '${'$as_ac_var'}'` = yes; then
14066   cat >>confdefs.h <<_ACEOF
14067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14068 _ACEOF
14069
14070 fi
14071 done
14072
14073 LIBS="$ac_wine_check_funcs_save_LIBS"
14074
14075 # Extract the first word of "artsc-config", so it can be a program name with args.
14076 set dummy artsc-config; ac_word=$2
14077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14079 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   case $ARTSCCONFIG in
14083   [\\/]* | ?:[\\/]*)
14084   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
14085   ;;
14086   *)
14087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14089 do
14090   IFS=$as_save_IFS
14091   test -z "$as_dir" && as_dir=.
14092   for ac_exec_ext in '' $ac_executable_extensions; do
14093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14094     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
14095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14096     break 2
14097   fi
14098 done
14099 done
14100 IFS=$as_save_IFS
14101
14102   ;;
14103 esac
14104 fi
14105 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
14106 if test -n "$ARTSCCONFIG"; then
14107   { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
14108 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
14109 else
14110   { echo "$as_me:$LINENO: result: no" >&5
14111 echo "${ECHO_T}no" >&6; }
14112 fi
14113
14114
14115 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
14116 then
14117     ARTSC_CFLAGS=""
14118     for i in `$ARTSCCONFIG --cflags`
14119     do
14120       case "$i" in
14121         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
14122       esac
14123     done
14124     ARTSC_LIBS=""
14125     for i in `$ARTSCCONFIG --libs`
14126     do
14127       case "$i" in
14128         -L/usr/lib|-L/usr/lib64) ;;
14129         -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
14130       esac
14131     done
14132     save_CFLAGS="$CFLAGS"
14133     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
14134     { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
14135 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
14136 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
14137   echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139   ac_check_lib_save_LIBS=$LIBS
14140 LIBS="-lartsc $ARTSC_LIBS $LIBS"
14141 cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h.  */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h.  */
14147
14148 /* Override any GCC internal prototype to avoid an error.
14149    Use char because int might match the return type of a GCC
14150    builtin and then its argument prototype would still apply.  */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 char arts_init ();
14155 int
14156 main ()
14157 {
14158 return arts_init ();
14159   ;
14160   return 0;
14161 }
14162 _ACEOF
14163 rm -f conftest.$ac_objext conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167   *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170   (eval "$ac_link") 2>conftest.er1
14171   ac_status=$?
14172   grep -v '^ *+' conftest.er1 >conftest.err
14173   rm -f conftest.er1
14174   cat conftest.err >&5
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); } &&
14177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14178   { (case "(($ac_try" in
14179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180   *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183   (eval "$ac_try") 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; } &&
14187          { ac_try='test -s conftest$ac_exeext'
14188   { (case "(($ac_try" in
14189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190   *) ac_try_echo=$ac_try;;
14191 esac
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193   (eval "$ac_try") 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; }; then
14197   ac_cv_lib_artsc_arts_init=yes
14198 else
14199   echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14201
14202         ac_cv_lib_artsc_arts_init=no
14203 fi
14204
14205 rm -f core conftest.err conftest.$ac_objext \
14206       conftest$ac_exeext conftest.$ac_ext
14207 LIBS=$ac_check_lib_save_LIBS
14208 fi
14209 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
14210 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
14211 if test $ac_cv_lib_artsc_arts_init = yes; then
14212   cat >conftest.$ac_ext <<_ACEOF
14213 /* confdefs.h.  */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h.  */
14218 #include <artsc.h>
14219 int
14220 main ()
14221 {
14222 arts_stream_t stream;
14223   ;
14224   return 0;
14225 }
14226 _ACEOF
14227 rm -f conftest.$ac_objext
14228 if { (ac_try="$ac_compile"
14229 case "(($ac_try" in
14230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231   *) ac_try_echo=$ac_try;;
14232 esac
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234   (eval "$ac_compile") 2>conftest.er1
14235   ac_status=$?
14236   grep -v '^ *+' conftest.er1 >conftest.err
14237   rm -f conftest.er1
14238   cat conftest.err >&5
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); } &&
14241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14242   { (case "(($ac_try" in
14243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244   *) ac_try_echo=$ac_try;;
14245 esac
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247   (eval "$ac_try") 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; } &&
14251          { ac_try='test -s conftest.$ac_objext'
14252   { (case "(($ac_try" in
14253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254   *) ac_try_echo=$ac_try;;
14255 esac
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257   (eval "$ac_try") 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261   ARTSLIBS=$ARTSC_LIBS
14262
14263             ARTSINCL=$ARTSC_CFLAGS
14264
14265
14266 cat >>confdefs.h <<\_ACEOF
14267 #define HAVE_ARTS 1
14268 _ACEOF
14269
14270 else
14271   echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274
14275 fi
14276
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278 fi
14279
14280     CFLAGS="$save_CFLAGS"
14281 fi
14282
14283 # Extract the first word of "esd-config", so it can be a program name with args.
14284 set dummy esd-config; ac_word=$2
14285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14287 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
14288   echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290   case $ESDCONFIG in
14291   [\\/]* | ?:[\\/]*)
14292   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
14293   ;;
14294   *)
14295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296 for as_dir in $PATH
14297 do
14298   IFS=$as_save_IFS
14299   test -z "$as_dir" && as_dir=.
14300   for ac_exec_ext in '' $ac_executable_extensions; do
14301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14302     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14304     break 2
14305   fi
14306 done
14307 done
14308 IFS=$as_save_IFS
14309
14310   ;;
14311 esac
14312 fi
14313 ESDCONFIG=$ac_cv_path_ESDCONFIG
14314 if test -n "$ESDCONFIG"; then
14315   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
14316 echo "${ECHO_T}$ESDCONFIG" >&6; }
14317 else
14318   { echo "$as_me:$LINENO: result: no" >&5
14319 echo "${ECHO_T}no" >&6; }
14320 fi
14321
14322
14323 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
14324 then
14325     ESD_CFLAGS=""
14326     for i in `$ESDCONFIG --cflags`
14327     do
14328       case "$i" in
14329         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
14330       esac
14331     done
14332     ESD_LIBS=`$ESDCONFIG --libs`
14333     save_CFLAGS="$CFLAGS"
14334     CFLAGS="$CFLAGS $ESD_CFLAGS"
14335     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
14336 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
14337 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
14338   echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340   ac_check_lib_save_LIBS=$LIBS
14341 LIBS="-lesd  $LIBS"
14342 cat >conftest.$ac_ext <<_ACEOF
14343 /* confdefs.h.  */
14344 _ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h.  */
14348
14349 /* Override any GCC internal prototype to avoid an error.
14350    Use char because int might match the return type of a GCC
14351    builtin and then its argument prototype would still apply.  */
14352 #ifdef __cplusplus
14353 extern "C"
14354 #endif
14355 char esd_open_sound ();
14356 int
14357 main ()
14358 {
14359 return esd_open_sound ();
14360   ;
14361   return 0;
14362 }
14363 _ACEOF
14364 rm -f conftest.$ac_objext conftest$ac_exeext
14365 if { (ac_try="$ac_link"
14366 case "(($ac_try" in
14367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368   *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371   (eval "$ac_link") 2>conftest.er1
14372   ac_status=$?
14373   grep -v '^ *+' conftest.er1 >conftest.err
14374   rm -f conftest.er1
14375   cat conftest.err >&5
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); } &&
14378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14379   { (case "(($ac_try" in
14380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381   *) ac_try_echo=$ac_try;;
14382 esac
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384   (eval "$ac_try") 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); }; } &&
14388          { ac_try='test -s conftest$ac_exeext'
14389   { (case "(($ac_try" in
14390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391   *) ac_try_echo=$ac_try;;
14392 esac
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394   (eval "$ac_try") 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   ac_cv_lib_esd_esd_open_sound=yes
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403         ac_cv_lib_esd_esd_open_sound=no
14404 fi
14405
14406 rm -f core conftest.err conftest.$ac_objext \
14407       conftest$ac_exeext conftest.$ac_ext
14408 LIBS=$ac_check_lib_save_LIBS
14409 fi
14410 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14411 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
14412 if test $ac_cv_lib_esd_esd_open_sound = yes; then
14413   ESDLIBS=$ESD_LIBS
14414
14415          ESDINCL=$ESD_CFLAGS
14416
14417
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_ESD 1
14420 _ACEOF
14421
14422 fi
14423
14424     CFLAGS="$save_CFLAGS"
14425 fi
14426
14427 ALSALIBS=""
14428
14429 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
14430 then
14431     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14432 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
14433 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
14434   echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436   ac_check_lib_save_LIBS=$LIBS
14437 LIBS="-lasound  $LIBS"
14438 cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h.  */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h.  */
14444
14445 /* Override any GCC internal prototype to avoid an error.
14446    Use char because int might match the return type of a GCC
14447    builtin and then its argument prototype would still apply.  */
14448 #ifdef __cplusplus
14449 extern "C"
14450 #endif
14451 char snd_pcm_hw_params_get_access ();
14452 int
14453 main ()
14454 {
14455 return snd_pcm_hw_params_get_access ();
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (ac_try="$ac_link"
14462 case "(($ac_try" in
14463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464   *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467   (eval "$ac_link") 2>conftest.er1
14468   ac_status=$?
14469   grep -v '^ *+' conftest.er1 >conftest.err
14470   rm -f conftest.er1
14471   cat conftest.err >&5
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); } &&
14474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14475   { (case "(($ac_try" in
14476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477   *) ac_try_echo=$ac_try;;
14478 esac
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480   (eval "$ac_try") 2>&5
14481   ac_status=$?
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); }; } &&
14484          { ac_try='test -s conftest$ac_exeext'
14485   { (case "(($ac_try" in
14486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487   *) ac_try_echo=$ac_try;;
14488 esac
14489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490   (eval "$ac_try") 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; }; then
14494   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
14495 else
14496   echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14498
14499         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
14500 fi
14501
14502 rm -f core conftest.err conftest.$ac_objext \
14503       conftest$ac_exeext conftest.$ac_ext
14504 LIBS=$ac_check_lib_save_LIBS
14505 fi
14506 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14507 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
14508 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14509   cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h.  */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h.  */
14515 #ifdef HAVE_ALSA_ASOUNDLIB_H
14516 #include <alsa/asoundlib.h>
14517 #elif defined(HAVE_SYS_ASOUNDLIB_H)
14518 #include <sys/asoundlib.h>
14519 #endif
14520 int
14521 main ()
14522 {
14523 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14524   ;
14525   return 0;
14526 }
14527 _ACEOF
14528 rm -f conftest.$ac_objext
14529 if { (ac_try="$ac_compile"
14530 case "(($ac_try" in
14531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532   *) ac_try_echo=$ac_try;;
14533 esac
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535   (eval "$ac_compile") 2>conftest.er1
14536   ac_status=$?
14537   grep -v '^ *+' conftest.er1 >conftest.err
14538   rm -f conftest.er1
14539   cat conftest.err >&5
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } &&
14542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14543   { (case "(($ac_try" in
14544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545   *) ac_try_echo=$ac_try;;
14546 esac
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548   (eval "$ac_try") 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; } &&
14552          { ac_try='test -s conftest.$ac_objext'
14553   { (case "(($ac_try" in
14554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555   *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558   (eval "$ac_try") 2>&5
14559   ac_status=$?
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); }; }; then
14562
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_ALSA 1
14565 _ACEOF
14566
14567                          ALSALIBS="-lasound"
14568 else
14569   echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572
14573 fi
14574
14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576 fi
14577
14578 fi
14579
14580
14581 AUDIOIOLIBS=""
14582
14583 if test "$ac_cv_header_libaudioio_h" = "yes"
14584 then
14585     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14586 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14587 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14588   echo $ECHO_N "(cached) $ECHO_C" >&6
14589 else
14590   ac_check_lib_save_LIBS=$LIBS
14591 LIBS="-laudioio  $LIBS"
14592 cat >conftest.$ac_ext <<_ACEOF
14593 /* confdefs.h.  */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h.  */
14598
14599 /* Override any GCC internal prototype to avoid an error.
14600    Use char because int might match the return type of a GCC
14601    builtin and then its argument prototype would still apply.  */
14602 #ifdef __cplusplus
14603 extern "C"
14604 #endif
14605 char AudioIOGetVersion ();
14606 int
14607 main ()
14608 {
14609 return AudioIOGetVersion ();
14610   ;
14611   return 0;
14612 }
14613 _ACEOF
14614 rm -f conftest.$ac_objext conftest$ac_exeext
14615 if { (ac_try="$ac_link"
14616 case "(($ac_try" in
14617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618   *) ac_try_echo=$ac_try;;
14619 esac
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621   (eval "$ac_link") 2>conftest.er1
14622   ac_status=$?
14623   grep -v '^ *+' conftest.er1 >conftest.err
14624   rm -f conftest.er1
14625   cat conftest.err >&5
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } &&
14628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14629   { (case "(($ac_try" in
14630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631   *) ac_try_echo=$ac_try;;
14632 esac
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634   (eval "$ac_try") 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; } &&
14638          { ac_try='test -s conftest$ac_exeext'
14639   { (case "(($ac_try" in
14640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641   *) ac_try_echo=$ac_try;;
14642 esac
14643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644   (eval "$ac_try") 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); }; }; then
14648   ac_cv_lib_audioio_AudioIOGetVersion=yes
14649 else
14650   echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14652
14653         ac_cv_lib_audioio_AudioIOGetVersion=no
14654 fi
14655
14656 rm -f core conftest.err conftest.$ac_objext \
14657       conftest$ac_exeext conftest.$ac_ext
14658 LIBS=$ac_check_lib_save_LIBS
14659 fi
14660 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14661 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14662 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14663   AUDIOIOLIBS="-laudioio"
14664
14665 cat >>confdefs.h <<\_ACEOF
14666 #define HAVE_LIBAUDIOIO 1
14667 _ACEOF
14668
14669 fi
14670
14671 fi
14672
14673
14674 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14675 then
14676     { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14677 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
14678 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14679   echo $ECHO_N "(cached) $ECHO_C" >&6
14680 else
14681   ac_check_lib_save_LIBS=$LIBS
14682 LIBS="-lcapi20  $LIBS"
14683 cat >conftest.$ac_ext <<_ACEOF
14684 /* confdefs.h.  */
14685 _ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h.  */
14689
14690 /* Override any GCC internal prototype to avoid an error.
14691    Use char because int might match the return type of a GCC
14692    builtin and then its argument prototype would still apply.  */
14693 #ifdef __cplusplus
14694 extern "C"
14695 #endif
14696 char capi20_register ();
14697 int
14698 main ()
14699 {
14700 return capi20_register ();
14701   ;
14702   return 0;
14703 }
14704 _ACEOF
14705 rm -f conftest.$ac_objext conftest$ac_exeext
14706 if { (ac_try="$ac_link"
14707 case "(($ac_try" in
14708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709   *) ac_try_echo=$ac_try;;
14710 esac
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712   (eval "$ac_link") 2>conftest.er1
14713   ac_status=$?
14714   grep -v '^ *+' conftest.er1 >conftest.err
14715   rm -f conftest.er1
14716   cat conftest.err >&5
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); } &&
14719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14720   { (case "(($ac_try" in
14721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14722   *) ac_try_echo=$ac_try;;
14723 esac
14724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14725   (eval "$ac_try") 2>&5
14726   ac_status=$?
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); }; } &&
14729          { ac_try='test -s conftest$ac_exeext'
14730   { (case "(($ac_try" in
14731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732   *) ac_try_echo=$ac_try;;
14733 esac
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735   (eval "$ac_try") 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }; then
14739   ac_cv_lib_capi20_capi20_register=yes
14740 else
14741   echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744         ac_cv_lib_capi20_capi20_register=no
14745 fi
14746
14747 rm -f core conftest.err conftest.$ac_objext \
14748       conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14750 fi
14751 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14752 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
14753 if test $ac_cv_lib_capi20_capi20_register = yes; then
14754
14755 cat >>confdefs.h <<\_ACEOF
14756 #define HAVE_CAPI4LINUX 1
14757 _ACEOF
14758
14759 fi
14760
14761 fi
14762
14763
14764 if test "$ac_cv_header_gif_lib_h" = "yes"
14765 then
14766     cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h.  */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h.  */
14772 #include <gif_lib.h>
14773 int
14774 main ()
14775 {
14776 static typeof(DGifOpen) * func;
14777   ;
14778   return 0;
14779 }
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (ac_try="$ac_compile"
14783 case "(($ac_try" in
14784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785   *) ac_try_echo=$ac_try;;
14786 esac
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788   (eval "$ac_compile") 2>conftest.er1
14789   ac_status=$?
14790   grep -v '^ *+' conftest.er1 >conftest.err
14791   rm -f conftest.er1
14792   cat conftest.err >&5
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); } &&
14795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14796   { (case "(($ac_try" in
14797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798   *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801   (eval "$ac_try") 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); }; } &&
14805          { ac_try='test -s conftest.$ac_objext'
14806   { (case "(($ac_try" in
14807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808   *) ac_try_echo=$ac_try;;
14809 esac
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811   (eval "$ac_try") 2>&5
14812   ac_status=$?
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); }; }; then
14815
14816 cat >>confdefs.h <<\_ACEOF
14817 #define HAVE_GIF 1
14818 _ACEOF
14819
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824
14825 fi
14826
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 fi
14829
14830
14831 EXTRACFLAGS=""
14832
14833 if test "x${GCC}" = "xyes"
14834 then
14835   EXTRACFLAGS="-Wall -pipe"
14836
14837     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14838 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14839 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14840   echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842   if test "$cross_compiling" = yes; then
14843   ac_cv_c_gcc_strength_bug="yes"
14844 else
14845   cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h.  */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h.  */
14851
14852 int     L[4] = {0,1,2,3};
14853 int main(void) {
14854   static int Array[3];
14855   unsigned int B = 3;
14856   int i;
14857   for(i=0; i<B; i++) Array[i] = i - 3;
14858   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14859   L[i] = 4;
14860
14861   exit( Array[1] != -2 || L[2] != 3);
14862 }
14863 _ACEOF
14864 rm -f conftest$ac_exeext
14865 if { (ac_try="$ac_link"
14866 case "(($ac_try" in
14867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868   *) ac_try_echo=$ac_try;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871   (eval "$ac_link") 2>&5
14872   ac_status=$?
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14875   { (case "(($ac_try" in
14876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877   *) ac_try_echo=$ac_try;;
14878 esac
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880   (eval "$ac_try") 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); }; }; then
14884   ac_cv_c_gcc_strength_bug="no"
14885 else
14886   echo "$as_me: program exited with status $ac_status" >&5
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14889
14890 ( exit $ac_status )
14891 ac_cv_c_gcc_strength_bug="yes"
14892 fi
14893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14894 fi
14895
14896
14897 fi
14898 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14899 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
14900   if test "$ac_cv_c_gcc_strength_bug" = "yes"
14901   then
14902     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
14903   fi
14904
14905     { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
14906 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
14907 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
14908   echo $ECHO_N "(cached) $ECHO_C" >&6
14909 else
14910   ac_wine_try_cflags_saved=$CFLAGS
14911 CFLAGS="$CFLAGS -fshort-wchar"
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h.  */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h.  */
14918
14919 int
14920 main ()
14921 {
14922
14923   ;
14924   return 0;
14925 }
14926 _ACEOF
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931   *) ac_try_echo=$ac_try;;
14932 esac
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934   (eval "$ac_link") 2>conftest.er1
14935   ac_status=$?
14936   grep -v '^ *+' conftest.er1 >conftest.err
14937   rm -f conftest.er1
14938   cat conftest.err >&5
14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); } &&
14941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14942   { (case "(($ac_try" in
14943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944   *) ac_try_echo=$ac_try;;
14945 esac
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947   (eval "$ac_try") 2>&5
14948   ac_status=$?
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); }; } &&
14951          { ac_try='test -s conftest$ac_exeext'
14952   { (case "(($ac_try" in
14953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954   *) ac_try_echo=$ac_try;;
14955 esac
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957   (eval "$ac_try") 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; }; then
14961   ac_cv_c_gcc_fshort_wchar="yes"
14962 else
14963   echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14965
14966         ac_cv_c_gcc_fshort_wchar="no"
14967 fi
14968
14969 rm -f core conftest.err conftest.$ac_objext \
14970       conftest$ac_exeext conftest.$ac_ext
14971 CFLAGS=$ac_wine_try_cflags_saved
14972 fi
14973 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
14974 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
14975   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
14976   then
14977
14978 cat >>confdefs.h <<\_ACEOF
14979 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
14980 _ACEOF
14981
14982   fi
14983
14984     { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
14985 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
14986 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
14987   echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989   ac_wine_try_cflags_saved=$CFLAGS
14990 CFLAGS="$CFLAGS -fno-strict-aliasing"
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h.  */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h.  */
14997
14998 int
14999 main ()
15000 {
15001
15002   ;
15003   return 0;
15004 }
15005 _ACEOF
15006 rm -f conftest.$ac_objext conftest$ac_exeext
15007 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15014   ac_status=$?
15015   grep -v '^ *+' conftest.er1 >conftest.err
15016   rm -f conftest.er1
15017   cat conftest.err >&5
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); } &&
15020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15021   { (case "(($ac_try" in
15022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023   *) ac_try_echo=$ac_try;;
15024 esac
15025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026   (eval "$ac_try") 2>&5
15027   ac_status=$?
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); }; } &&
15030          { ac_try='test -s conftest$ac_exeext'
15031   { (case "(($ac_try" in
15032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033   *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036   (eval "$ac_try") 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); }; }; then
15040   ac_cv_c_gcc_no_strict_aliasing="yes"
15041 else
15042   echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15044
15045         ac_cv_c_gcc_no_strict_aliasing="no"
15046 fi
15047
15048 rm -f core conftest.err conftest.$ac_objext \
15049       conftest$ac_exeext conftest.$ac_ext
15050 CFLAGS=$ac_wine_try_cflags_saved
15051 fi
15052 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
15053 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
15054   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
15055   then
15056     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
15057   fi
15058
15059     { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
15060 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
15061 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
15062   echo $ECHO_N "(cached) $ECHO_C" >&6
15063 else
15064   ac_wine_try_cflags_saved=$CFLAGS
15065 CFLAGS="$CFLAGS -gstabs+"
15066 cat >conftest.$ac_ext <<_ACEOF
15067 /* confdefs.h.  */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h.  */
15072
15073 int
15074 main ()
15075 {
15076
15077   ;
15078   return 0;
15079 }
15080 _ACEOF
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085   *) ac_try_echo=$ac_try;;
15086 esac
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088   (eval "$ac_link") 2>conftest.er1
15089   ac_status=$?
15090   grep -v '^ *+' conftest.er1 >conftest.err
15091   rm -f conftest.er1
15092   cat conftest.err >&5
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); } &&
15095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15096   { (case "(($ac_try" in
15097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098   *) ac_try_echo=$ac_try;;
15099 esac
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101   (eval "$ac_try") 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); }; } &&
15105          { ac_try='test -s conftest$ac_exeext'
15106   { (case "(($ac_try" in
15107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108   *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111   (eval "$ac_try") 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); }; }; then
15115   ac_cv_c_gcc_gstabs="yes"
15116 else
15117   echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120         ac_cv_c_gcc_gstabs="no"
15121 fi
15122
15123 rm -f core conftest.err conftest.$ac_objext \
15124       conftest$ac_exeext conftest.$ac_ext
15125 CFLAGS=$ac_wine_try_cflags_saved
15126 fi
15127 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
15128 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
15129   if test "$ac_cv_c_gcc_gstabs" = "yes"
15130   then
15131     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
15132   fi
15133
15134     { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
15135 echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15136 if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
15137   echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139   ac_wine_try_cflags_saved=$CFLAGS
15140 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h.  */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h.  */
15147
15148 int
15149 main ()
15150 {
15151
15152   ;
15153   return 0;
15154 }
15155 _ACEOF
15156 rm -f conftest.$ac_objext conftest$ac_exeext
15157 if { (ac_try="$ac_link"
15158 case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163   (eval "$ac_link") 2>conftest.er1
15164   ac_status=$?
15165   grep -v '^ *+' conftest.er1 >conftest.err
15166   rm -f conftest.er1
15167   cat conftest.err >&5
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); } &&
15170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15171   { (case "(($ac_try" in
15172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173   *) ac_try_echo=$ac_try;;
15174 esac
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176   (eval "$ac_try") 2>&5
15177   ac_status=$?
15178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179   (exit $ac_status); }; } &&
15180          { ac_try='test -s conftest$ac_exeext'
15181   { (case "(($ac_try" in
15182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183   *) ac_try_echo=$ac_try;;
15184 esac
15185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15186   (eval "$ac_try") 2>&5
15187   ac_status=$?
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); }; }; then
15190   ac_cv_c_gcc_decl_after_statement="yes"
15191 else
15192   echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15194
15195         ac_cv_c_gcc_decl_after_statement="no"
15196 fi
15197
15198 rm -f core conftest.err conftest.$ac_objext \
15199       conftest$ac_exeext conftest.$ac_ext
15200 CFLAGS=$ac_wine_try_cflags_saved
15201 fi
15202 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
15203 echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
15204   if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
15205   then
15206     EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
15207   fi
15208
15209     saved_CFLAGS="$CFLAGS"
15210   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
15211   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15212 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
15213 if test "${ac_cv_c_string_h_warnings+set}" = set; then
15214   echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216   cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h.  */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h.  */
15222 #include <string.h>
15223 int
15224 main ()
15225 {
15226
15227   ;
15228   return 0;
15229 }
15230 _ACEOF
15231 rm -f conftest.$ac_objext
15232 if { (ac_try="$ac_compile"
15233 case "(($ac_try" in
15234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235   *) ac_try_echo=$ac_try;;
15236 esac
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238   (eval "$ac_compile") 2>conftest.er1
15239   ac_status=$?
15240   grep -v '^ *+' conftest.er1 >conftest.err
15241   rm -f conftest.er1
15242   cat conftest.err >&5
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); } &&
15245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15246   { (case "(($ac_try" in
15247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248   *) ac_try_echo=$ac_try;;
15249 esac
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251   (eval "$ac_try") 2>&5
15252   ac_status=$?
15253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254   (exit $ac_status); }; } &&
15255          { ac_try='test -s conftest.$ac_objext'
15256   { (case "(($ac_try" in
15257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258   *) ac_try_echo=$ac_try;;
15259 esac
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261   (eval "$ac_try") 2>&5
15262   ac_status=$?
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); }; }; then
15265   ac_cv_c_string_h_warnings=no
15266 else
15267   echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15269
15270         ac_cv_c_string_h_warnings=yes
15271 fi
15272
15273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15274 fi
15275 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15276 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
15277   CFLAGS="$saved_CFLAGS"
15278   if test "$ac_cv_c_string_h_warnings" = "no"
15279   then
15280     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
15281   fi
15282
15283   BUILTINFLAG=""
15284
15285   saved_CFLAGS="$CFLAGS"
15286   CFLAGS="$CFLAGS -Werror"
15287   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15288 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
15289 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15290   echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292   cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298
15299 int
15300 main ()
15301 {
15302 int iswlower(unsigned short);
15303   ;
15304   return 0;
15305 }
15306 _ACEOF
15307 rm -f conftest.$ac_objext
15308 if { (ac_try="$ac_compile"
15309 case "(($ac_try" in
15310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311   *) ac_try_echo=$ac_try;;
15312 esac
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314   (eval "$ac_compile") 2>conftest.er1
15315   ac_status=$?
15316   grep -v '^ *+' conftest.er1 >conftest.err
15317   rm -f conftest.er1
15318   cat conftest.err >&5
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); } &&
15321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15322   { (case "(($ac_try" in
15323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324   *) ac_try_echo=$ac_try;;
15325 esac
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327   (eval "$ac_try") 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; } &&
15331          { ac_try='test -s conftest.$ac_objext'
15332   { (case "(($ac_try" in
15333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334   *) ac_try_echo=$ac_try;;
15335 esac
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337   (eval "$ac_try") 2>&5
15338   ac_status=$?
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); }; }; then
15341   ac_cv_c_builtin_wchar_ctype=no
15342 else
15343   echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346         ac_cv_c_builtin_wchar_ctype=yes
15347 fi
15348
15349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350 fi
15351 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15352 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
15353   CFLAGS="$saved_CFLAGS"
15354   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15355   then
15356     BUILTINFLAG="-fno-builtin"
15357   fi
15358 fi
15359
15360
15361 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15362 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
15363 if test "${ac_cv_asm_func_def+set}" = set; then
15364   echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366   cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h.  */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h.  */
15372 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"); }
15373
15374 int
15375 main ()
15376 {
15377
15378   ;
15379   return 0;
15380 }
15381 _ACEOF
15382 rm -f conftest.$ac_objext conftest$ac_exeext
15383 if { (ac_try="$ac_link"
15384 case "(($ac_try" in
15385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386   *) ac_try_echo=$ac_try;;
15387 esac
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389   (eval "$ac_link") 2>conftest.er1
15390   ac_status=$?
15391   grep -v '^ *+' conftest.er1 >conftest.err
15392   rm -f conftest.er1
15393   cat conftest.err >&5
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); } &&
15396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15397   { (case "(($ac_try" in
15398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399   *) ac_try_echo=$ac_try;;
15400 esac
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402   (eval "$ac_try") 2>&5
15403   ac_status=$?
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); }; } &&
15406          { ac_try='test -s conftest$ac_exeext'
15407   { (case "(($ac_try" in
15408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409   *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412   (eval "$ac_try") 2>&5
15413   ac_status=$?
15414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415   (exit $ac_status); }; }; then
15416   ac_cv_asm_func_def=".def"
15417 else
15418   echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15420
15421         cat >conftest.$ac_ext <<_ACEOF
15422 /* confdefs.h.  */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h.  */
15427 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
15428
15429 int
15430 main ()
15431 {
15432
15433   ;
15434   return 0;
15435 }
15436 _ACEOF
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (ac_try="$ac_link"
15439 case "(($ac_try" in
15440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441   *) ac_try_echo=$ac_try;;
15442 esac
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444   (eval "$ac_link") 2>conftest.er1
15445   ac_status=$?
15446   grep -v '^ *+' conftest.er1 >conftest.err
15447   rm -f conftest.er1
15448   cat conftest.err >&5
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); } &&
15451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15452   { (case "(($ac_try" in
15453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454   *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457   (eval "$ac_try") 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }; } &&
15461          { ac_try='test -s conftest$ac_exeext'
15462   { (case "(($ac_try" in
15463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464   *) ac_try_echo=$ac_try;;
15465 esac
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467   (eval "$ac_try") 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; }; then
15471   ac_cv_asm_func_def=".type @function"
15472 else
15473   echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15475
15476         cat >conftest.$ac_ext <<_ACEOF
15477 /* confdefs.h.  */
15478 _ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h.  */
15482 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
15483
15484 int
15485 main ()
15486 {
15487
15488   ;
15489   return 0;
15490 }
15491 _ACEOF
15492 rm -f conftest.$ac_objext conftest$ac_exeext
15493 if { (ac_try="$ac_link"
15494 case "(($ac_try" in
15495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496   *) ac_try_echo=$ac_try;;
15497 esac
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499   (eval "$ac_link") 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } &&
15506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15507   { (case "(($ac_try" in
15508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509   *) ac_try_echo=$ac_try;;
15510 esac
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512   (eval "$ac_try") 2>&5
15513   ac_status=$?
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); }; } &&
15516          { ac_try='test -s conftest$ac_exeext'
15517   { (case "(($ac_try" in
15518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519   *) ac_try_echo=$ac_try;;
15520 esac
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522   (eval "$ac_try") 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; }; then
15526   ac_cv_asm_func_def=".type 2"
15527 else
15528   echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15530
15531         ac_cv_asm_func_def="unknown"
15532 fi
15533
15534 rm -f core conftest.err conftest.$ac_objext \
15535       conftest$ac_exeext conftest.$ac_ext
15536 fi
15537
15538 rm -f core conftest.err conftest.$ac_objext \
15539       conftest$ac_exeext conftest.$ac_ext
15540 fi
15541
15542 rm -f core conftest.err conftest.$ac_objext \
15543       conftest$ac_exeext conftest.$ac_ext
15544 fi
15545 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15546 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
15547
15548
15549
15550 case "$ac_cv_asm_func_def" in
15551   ".def")
15552      cat >>confdefs.h <<\_ACEOF
15553 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15554 _ACEOF
15555  ;;
15556   ".type @function")
15557      cat >>confdefs.h <<\_ACEOF
15558 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15559 _ACEOF
15560  ;;
15561   ".type 2")
15562      cat >>confdefs.h <<\_ACEOF
15563 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15564 _ACEOF
15565  ;;
15566   *)
15567      cat >>confdefs.h <<\_ACEOF
15568 #define __ASM_FUNC(name) ""
15569 _ACEOF
15570  ;;
15571 esac
15572
15573
15574 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15575 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15576 if test "${ac_cv_c_extern_prefix+set}" = set; then
15577   echo $ECHO_N "(cached) $ECHO_C" >&6
15578 else
15579   cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h.  */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h.  */
15585 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
15586 extern int ac_test;
15587 int
15588 main ()
15589 {
15590 if (ac_test) return 1
15591   ;
15592   return 0;
15593 }
15594 _ACEOF
15595 rm -f conftest.$ac_objext conftest$ac_exeext
15596 if { (ac_try="$ac_link"
15597 case "(($ac_try" in
15598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599   *) ac_try_echo=$ac_try;;
15600 esac
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602   (eval "$ac_link") 2>conftest.er1
15603   ac_status=$?
15604   grep -v '^ *+' conftest.er1 >conftest.err
15605   rm -f conftest.er1
15606   cat conftest.err >&5
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); } &&
15609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15610   { (case "(($ac_try" in
15611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612   *) ac_try_echo=$ac_try;;
15613 esac
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615   (eval "$ac_try") 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); }; } &&
15619          { ac_try='test -s conftest$ac_exeext'
15620   { (case "(($ac_try" in
15621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622   *) ac_try_echo=$ac_try;;
15623 esac
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625   (eval "$ac_try") 2>&5
15626   ac_status=$?
15627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628   (exit $ac_status); }; }; then
15629   ac_cv_c_extern_prefix="yes"
15630 else
15631   echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15633
15634         ac_cv_c_extern_prefix="no"
15635 fi
15636
15637 rm -f core conftest.err conftest.$ac_objext \
15638       conftest$ac_exeext conftest.$ac_ext
15639 fi
15640 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15641 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
15642
15643
15644
15645 if test "$ac_cv_c_extern_prefix" = "yes"
15646 then
15647   cat >>confdefs.h <<\_ACEOF
15648 #define __ASM_NAME(name) "_" name
15649 _ACEOF
15650
15651 else
15652   cat >>confdefs.h <<\_ACEOF
15653 #define __ASM_NAME(name) name
15654 _ACEOF
15655
15656 fi
15657
15658
15659 DLLEXT=""
15660
15661 DLLFLAGS="-D_REENTRANT"
15662
15663 DLLIBS=""
15664
15665 LDSHARED=""
15666
15667 LDDLLFLAGS=""
15668
15669 LIBEXT="so"
15670
15671 IMPLIBEXT="def"
15672
15673
15674 case $host_os in
15675   cygwin*|mingw32*)
15676     if test -n "$ac_tool_prefix"; then
15677   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15678 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15681 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15682   echo $ECHO_N "(cached) $ECHO_C" >&6
15683 else
15684   if test -n "$DLLTOOL"; then
15685   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15686 else
15687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15688 for as_dir in $PATH
15689 do
15690   IFS=$as_save_IFS
15691   test -z "$as_dir" && as_dir=.
15692   for ac_exec_ext in '' $ac_executable_extensions; do
15693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15694     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15696     break 2
15697   fi
15698 done
15699 done
15700 IFS=$as_save_IFS
15701
15702 fi
15703 fi
15704 DLLTOOL=$ac_cv_prog_DLLTOOL
15705 if test -n "$DLLTOOL"; then
15706   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15707 echo "${ECHO_T}$DLLTOOL" >&6; }
15708 else
15709   { echo "$as_me:$LINENO: result: no" >&5
15710 echo "${ECHO_T}no" >&6; }
15711 fi
15712
15713
15714 fi
15715 if test -z "$ac_cv_prog_DLLTOOL"; then
15716   ac_ct_DLLTOOL=$DLLTOOL
15717   # Extract the first word of "dlltool", so it can be a program name with args.
15718 set dummy dlltool; ac_word=$2
15719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15721 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15722   echo $ECHO_N "(cached) $ECHO_C" >&6
15723 else
15724   if test -n "$ac_ct_DLLTOOL"; then
15725   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15726 else
15727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728 for as_dir in $PATH
15729 do
15730   IFS=$as_save_IFS
15731   test -z "$as_dir" && as_dir=.
15732   for ac_exec_ext in '' $ac_executable_extensions; do
15733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15734     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15736     break 2
15737   fi
15738 done
15739 done
15740 IFS=$as_save_IFS
15741
15742 fi
15743 fi
15744 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15745 if test -n "$ac_ct_DLLTOOL"; then
15746   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15747 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
15748 else
15749   { echo "$as_me:$LINENO: result: no" >&5
15750 echo "${ECHO_T}no" >&6; }
15751 fi
15752
15753   if test "x$ac_ct_DLLTOOL" = x; then
15754     DLLTOOL="false"
15755   else
15756     case $cross_compiling:$ac_tool_warned in
15757 yes:)
15758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15759 whose name does not start with the host triplet.  If you think this
15760 configuration is useful to you, please write to autoconf@gnu.org." >&5
15761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15762 whose name does not start with the host triplet.  If you think this
15763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15764 ac_tool_warned=yes ;;
15765 esac
15766     DLLTOOL=$ac_ct_DLLTOOL
15767   fi
15768 else
15769   DLLTOOL="$ac_cv_prog_DLLTOOL"
15770 fi
15771
15772     if test -n "$ac_tool_prefix"; then
15773   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15774 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
15775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15777 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15778   echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780   if test -n "$DLLWRAP"; then
15781   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15782 else
15783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15784 for as_dir in $PATH
15785 do
15786   IFS=$as_save_IFS
15787   test -z "$as_dir" && as_dir=.
15788   for ac_exec_ext in '' $ac_executable_extensions; do
15789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15790     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
15791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15792     break 2
15793   fi
15794 done
15795 done
15796 IFS=$as_save_IFS
15797
15798 fi
15799 fi
15800 DLLWRAP=$ac_cv_prog_DLLWRAP
15801 if test -n "$DLLWRAP"; then
15802   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15803 echo "${ECHO_T}$DLLWRAP" >&6; }
15804 else
15805   { echo "$as_me:$LINENO: result: no" >&5
15806 echo "${ECHO_T}no" >&6; }
15807 fi
15808
15809
15810 fi
15811 if test -z "$ac_cv_prog_DLLWRAP"; then
15812   ac_ct_DLLWRAP=$DLLWRAP
15813   # Extract the first word of "dllwrap", so it can be a program name with args.
15814 set dummy dllwrap; ac_word=$2
15815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15817 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15818   echo $ECHO_N "(cached) $ECHO_C" >&6
15819 else
15820   if test -n "$ac_ct_DLLWRAP"; then
15821   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15822 else
15823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15824 for as_dir in $PATH
15825 do
15826   IFS=$as_save_IFS
15827   test -z "$as_dir" && as_dir=.
15828   for ac_exec_ext in '' $ac_executable_extensions; do
15829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15830     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15832     break 2
15833   fi
15834 done
15835 done
15836 IFS=$as_save_IFS
15837
15838 fi
15839 fi
15840 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15841 if test -n "$ac_ct_DLLWRAP"; then
15842   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15843 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
15844 else
15845   { echo "$as_me:$LINENO: result: no" >&5
15846 echo "${ECHO_T}no" >&6; }
15847 fi
15848
15849   if test "x$ac_ct_DLLWRAP" = x; then
15850     DLLWRAP="false"
15851   else
15852     case $cross_compiling:$ac_tool_warned in
15853 yes:)
15854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15855 whose name does not start with the host triplet.  If you think this
15856 configuration is useful to you, please write to autoconf@gnu.org." >&5
15857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15858 whose name does not start with the host triplet.  If you think this
15859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15860 ac_tool_warned=yes ;;
15861 esac
15862     DLLWRAP=$ac_ct_DLLWRAP
15863   fi
15864 else
15865   DLLWRAP="$ac_cv_prog_DLLWRAP"
15866 fi
15867
15868     if test "$DLLWRAP" = "false"; then
15869       LIBEXT="a"
15870     else
15871             LIBEXT="dll"
15872     fi
15873     IMPLIBEXT="a"
15874         WIN16_FILES=""
15875     WIN16_INSTALL=""
15876     ;;
15877   *)
15878     if test "$ac_cv_header_dlfcn_h" = "yes"
15879     then
15880
15881 for ac_func in dlopen
15882 do
15883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15887   echo $ECHO_N "(cached) $ECHO_C" >&6
15888 else
15889   cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h.  */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h.  */
15895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15897 #define $ac_func innocuous_$ac_func
15898
15899 /* System header to define __stub macros and hopefully few prototypes,
15900     which can conflict with char $ac_func (); below.
15901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15902     <limits.h> exists even on freestanding compilers.  */
15903
15904 #ifdef __STDC__
15905 # include <limits.h>
15906 #else
15907 # include <assert.h>
15908 #endif
15909
15910 #undef $ac_func
15911
15912 /* Override any GCC internal prototype to avoid an error.
15913    Use char because int might match the return type of a GCC
15914    builtin and then its argument prototype would still apply.  */
15915 #ifdef __cplusplus
15916 extern "C"
15917 #endif
15918 char $ac_func ();
15919 /* The GNU C library defines this for functions which it implements
15920     to always fail with ENOSYS.  Some functions are actually named
15921     something starting with __ and the normal name is an alias.  */
15922 #if defined __stub_$ac_func || defined __stub___$ac_func
15923 choke me
15924 #endif
15925
15926 int
15927 main ()
15928 {
15929 return $ac_func ();
15930   ;
15931   return 0;
15932 }
15933 _ACEOF
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (ac_try="$ac_link"
15936 case "(($ac_try" in
15937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938   *) ac_try_echo=$ac_try;;
15939 esac
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941   (eval "$ac_link") 2>conftest.er1
15942   ac_status=$?
15943   grep -v '^ *+' conftest.er1 >conftest.err
15944   rm -f conftest.er1
15945   cat conftest.err >&5
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); } &&
15948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15949   { (case "(($ac_try" in
15950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951   *) ac_try_echo=$ac_try;;
15952 esac
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954   (eval "$ac_try") 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); }; } &&
15958          { ac_try='test -s conftest$ac_exeext'
15959   { (case "(($ac_try" in
15960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961   *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964   (eval "$ac_try") 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; }; then
15968   eval "$as_ac_var=yes"
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973         eval "$as_ac_var=no"
15974 fi
15975
15976 rm -f core conftest.err conftest.$ac_objext \
15977       conftest$ac_exeext conftest.$ac_ext
15978 fi
15979 ac_res=`eval echo '${'$as_ac_var'}'`
15980                { echo "$as_me:$LINENO: result: $ac_res" >&5
15981 echo "${ECHO_T}$ac_res" >&6; }
15982 if test `eval echo '${'$as_ac_var'}'` = yes; then
15983   cat >>confdefs.h <<_ACEOF
15984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15985 _ACEOF
15986
15987 else
15988   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15989 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15990 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15991   echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993   ac_check_lib_save_LIBS=$LIBS
15994 LIBS="-ldl  $LIBS"
15995 cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001
16002 /* Override any GCC internal prototype to avoid an error.
16003    Use char because int might match the return type of a GCC
16004    builtin and then its argument prototype would still apply.  */
16005 #ifdef __cplusplus
16006 extern "C"
16007 #endif
16008 char dlopen ();
16009 int
16010 main ()
16011 {
16012 return dlopen ();
16013   ;
16014   return 0;
16015 }
16016 _ACEOF
16017 rm -f conftest.$ac_objext conftest$ac_exeext
16018 if { (ac_try="$ac_link"
16019 case "(($ac_try" in
16020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021   *) ac_try_echo=$ac_try;;
16022 esac
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024   (eval "$ac_link") 2>conftest.er1
16025   ac_status=$?
16026   grep -v '^ *+' conftest.er1 >conftest.err
16027   rm -f conftest.er1
16028   cat conftest.err >&5
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); } &&
16031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16032   { (case "(($ac_try" in
16033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034   *) ac_try_echo=$ac_try;;
16035 esac
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037   (eval "$ac_try") 2>&5
16038   ac_status=$?
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); }; } &&
16041          { ac_try='test -s conftest$ac_exeext'
16042   { (case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_try") 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); }; }; then
16051   ac_cv_lib_dl_dlopen=yes
16052 else
16053   echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16055
16056         ac_cv_lib_dl_dlopen=no
16057 fi
16058
16059 rm -f core conftest.err conftest.$ac_objext \
16060       conftest$ac_exeext conftest.$ac_ext
16061 LIBS=$ac_check_lib_save_LIBS
16062 fi
16063 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16064 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16065 if test $ac_cv_lib_dl_dlopen = yes; then
16066
16067 cat >>confdefs.h <<\_ACEOF
16068 #define HAVE_DLOPEN 1
16069 _ACEOF
16070
16071                           DLLIBS="-ldl"
16072 else
16073   LIBEXT="a"
16074 fi
16075
16076 fi
16077 done
16078
16079         ac_wine_check_funcs_save_LIBS="$LIBS"
16080 LIBS="$LIBS $DLLIBS"
16081
16082 for ac_func in dladdr
16083 do
16084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16088   echo $ECHO_N "(cached) $ECHO_C" >&6
16089 else
16090   cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h.  */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h.  */
16096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16098 #define $ac_func innocuous_$ac_func
16099
16100 /* System header to define __stub macros and hopefully few prototypes,
16101     which can conflict with char $ac_func (); below.
16102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16103     <limits.h> exists even on freestanding compilers.  */
16104
16105 #ifdef __STDC__
16106 # include <limits.h>
16107 #else
16108 # include <assert.h>
16109 #endif
16110
16111 #undef $ac_func
16112
16113 /* Override any GCC internal prototype to avoid an error.
16114    Use char because int might match the return type of a GCC
16115    builtin and then its argument prototype would still apply.  */
16116 #ifdef __cplusplus
16117 extern "C"
16118 #endif
16119 char $ac_func ();
16120 /* The GNU C library defines this for functions which it implements
16121     to always fail with ENOSYS.  Some functions are actually named
16122     something starting with __ and the normal name is an alias.  */
16123 #if defined __stub_$ac_func || defined __stub___$ac_func
16124 choke me
16125 #endif
16126
16127 int
16128 main ()
16129 {
16130 return $ac_func ();
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (ac_try="$ac_link"
16137 case "(($ac_try" in
16138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139   *) ac_try_echo=$ac_try;;
16140 esac
16141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142   (eval "$ac_link") 2>conftest.er1
16143   ac_status=$?
16144   grep -v '^ *+' conftest.er1 >conftest.err
16145   rm -f conftest.er1
16146   cat conftest.err >&5
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } &&
16149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16150   { (case "(($ac_try" in
16151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152   *) ac_try_echo=$ac_try;;
16153 esac
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155   (eval "$ac_try") 2>&5
16156   ac_status=$?
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); }; } &&
16159          { ac_try='test -s conftest$ac_exeext'
16160   { (case "(($ac_try" in
16161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162   *) ac_try_echo=$ac_try;;
16163 esac
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165   (eval "$ac_try") 2>&5
16166   ac_status=$?
16167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168   (exit $ac_status); }; }; then
16169   eval "$as_ac_var=yes"
16170 else
16171   echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16173
16174         eval "$as_ac_var=no"
16175 fi
16176
16177 rm -f core conftest.err conftest.$ac_objext \
16178       conftest$ac_exeext conftest.$ac_ext
16179 fi
16180 ac_res=`eval echo '${'$as_ac_var'}'`
16181                { echo "$as_me:$LINENO: result: $ac_res" >&5
16182 echo "${ECHO_T}$ac_res" >&6; }
16183 if test `eval echo '${'$as_ac_var'}'` = yes; then
16184   cat >>confdefs.h <<_ACEOF
16185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16186 _ACEOF
16187
16188 fi
16189 done
16190
16191 LIBS="$ac_wine_check_funcs_save_LIBS"
16192     else
16193         LIBEXT="a"
16194     fi
16195
16196     if test "$LIBEXT" = "so"
16197     then
16198       DLLFLAGS="$DLLFLAGS -fPIC"
16199       DLLEXT=".so"
16200       { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
16201 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
16202 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
16203   echo $ECHO_N "(cached) $ECHO_C" >&6
16204 else
16205   ac_wine_try_cflags_saved=$CFLAGS
16206 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
16207 cat >conftest.$ac_ext <<_ACEOF
16208 void myfunc() {}
16209 _ACEOF
16210 rm -f conftest.$ac_objext conftest$ac_exeext
16211 if { (ac_try="$ac_link"
16212 case "(($ac_try" in
16213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214   *) ac_try_echo=$ac_try;;
16215 esac
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217   (eval "$ac_link") 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } &&
16224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16225   { (case "(($ac_try" in
16226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227   *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230   (eval "$ac_try") 2>&5
16231   ac_status=$?
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); }; } &&
16234          { ac_try='test -s conftest$ac_exeext'
16235   { (case "(($ac_try" in
16236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237   *) ac_try_echo=$ac_try;;
16238 esac
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240   (eval "$ac_try") 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); }; }; then
16244   ac_cv_c_dll_gnuelf="yes"
16245 else
16246   echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249         ac_cv_c_dll_gnuelf="no"
16250 fi
16251
16252 rm -f core conftest.err conftest.$ac_objext \
16253       conftest$ac_exeext conftest.$ac_ext
16254 CFLAGS=$ac_wine_try_cflags_saved
16255 fi
16256 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
16257 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
16258       if test "$ac_cv_c_dll_gnuelf" = "yes"
16259       then
16260         LDSHARED="\$(CC) -shared"
16261         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
16262         { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5
16263 echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; }
16264 if test "${ac_cv_c_sonames+set}" = set; then
16265   echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267   ac_wine_try_cflags_saved=$CFLAGS
16268 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
16269 cat >conftest.$ac_ext <<_ACEOF
16270 /* confdefs.h.  */
16271 _ACEOF
16272 cat confdefs.h >>conftest.$ac_ext
16273 cat >>conftest.$ac_ext <<_ACEOF
16274 /* end confdefs.h.  */
16275
16276 int
16277 main ()
16278 {
16279
16280   ;
16281   return 0;
16282 }
16283 _ACEOF
16284 rm -f conftest.$ac_objext conftest$ac_exeext
16285 if { (ac_try="$ac_link"
16286 case "(($ac_try" in
16287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16288   *) ac_try_echo=$ac_try;;
16289 esac
16290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16291   (eval "$ac_link") 2>conftest.er1
16292   ac_status=$?
16293   grep -v '^ *+' conftest.er1 >conftest.err
16294   rm -f conftest.er1
16295   cat conftest.err >&5
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); } &&
16298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16299   { (case "(($ac_try" in
16300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301   *) ac_try_echo=$ac_try;;
16302 esac
16303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304   (eval "$ac_try") 2>&5
16305   ac_status=$?
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); }; } &&
16308          { ac_try='test -s conftest$ac_exeext'
16309   { (case "(($ac_try" in
16310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311   *) ac_try_echo=$ac_try;;
16312 esac
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314   (eval "$ac_try") 2>&5
16315   ac_status=$?
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); }; }; then
16318   ac_cv_c_sonames="yes"
16319 else
16320   echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16322
16323         ac_cv_c_sonames="no"
16324 fi
16325
16326 rm -f core conftest.err conftest.$ac_objext \
16327       conftest$ac_exeext conftest.$ac_ext
16328 CFLAGS=$ac_wine_try_cflags_saved
16329 fi
16330 { echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5
16331 echo "${ECHO_T}$ac_cv_c_sonames" >&6; }
16332         if test "$ac_cv_c_sonames" = "yes"
16333         then
16334           LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
16335         else
16336           { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5
16337 echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; }
16338 if test "${ac_cv_c_h_sonames+set}" = set; then
16339   echo $ECHO_N "(cached) $ECHO_C" >&6
16340 else
16341   ac_wine_try_cflags_saved=$CFLAGS
16342 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
16343 cat >conftest.$ac_ext <<_ACEOF
16344 /* confdefs.h.  */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h.  */
16349
16350 int
16351 main ()
16352 {
16353
16354   ;
16355   return 0;
16356 }
16357 _ACEOF
16358 rm -f conftest.$ac_objext conftest$ac_exeext
16359 if { (ac_try="$ac_link"
16360 case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365   (eval "$ac_link") 2>conftest.er1
16366   ac_status=$?
16367   grep -v '^ *+' conftest.er1 >conftest.err
16368   rm -f conftest.er1
16369   cat conftest.err >&5
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); } &&
16372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16373   { (case "(($ac_try" in
16374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375   *) ac_try_echo=$ac_try;;
16376 esac
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378   (eval "$ac_try") 2>&5
16379   ac_status=$?
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); }; } &&
16382          { ac_try='test -s conftest$ac_exeext'
16383   { (case "(($ac_try" in
16384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385   *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388   (eval "$ac_try") 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); }; }; then
16392   ac_cv_c_h_sonames="yes"
16393 else
16394   echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16396
16397         ac_cv_c_h_sonames="no"
16398 fi
16399
16400 rm -f core conftest.err conftest.$ac_objext \
16401       conftest$ac_exeext conftest.$ac_ext
16402 CFLAGS=$ac_wine_try_cflags_saved
16403 fi
16404 { echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5
16405 echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; }
16406           if test "$ac_cv_c_h_sonames" = "yes"
16407           then
16408             LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
16409           fi
16410         fi
16411
16412         { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
16413 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
16414 if test "${ac_cv_c_dll_zdefs+set}" = set; then
16415   echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417   ac_wine_try_cflags_saved=$CFLAGS
16418 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
16419 cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h.  */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h.  */
16425
16426 int
16427 main ()
16428 {
16429
16430   ;
16431   return 0;
16432 }
16433 _ACEOF
16434 rm -f conftest.$ac_objext conftest$ac_exeext
16435 if { (ac_try="$ac_link"
16436 case "(($ac_try" in
16437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438   *) ac_try_echo=$ac_try;;
16439 esac
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441   (eval "$ac_link") 2>conftest.er1
16442   ac_status=$?
16443   grep -v '^ *+' conftest.er1 >conftest.err
16444   rm -f conftest.er1
16445   cat conftest.err >&5
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   (exit $ac_status); } &&
16448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16449   { (case "(($ac_try" in
16450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451   *) ac_try_echo=$ac_try;;
16452 esac
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454   (eval "$ac_try") 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; } &&
16458          { ac_try='test -s conftest$ac_exeext'
16459   { (case "(($ac_try" in
16460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461   *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464   (eval "$ac_try") 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); }; }; then
16468   ac_cv_c_dll_zdefs="yes"
16469 else
16470   echo "$as_me: failed program was:" >&5
16471 sed 's/^/| /' conftest.$ac_ext >&5
16472
16473         ac_cv_c_dll_zdefs="no"
16474 fi
16475
16476 rm -f core conftest.err conftest.$ac_objext \
16477       conftest$ac_exeext conftest.$ac_ext
16478 CFLAGS=$ac_wine_try_cflags_saved
16479 fi
16480 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
16481 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
16482         if test "$ac_cv_c_dll_zdefs" = "yes"
16483         then
16484           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
16485         fi
16486
16487         { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
16488 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
16489 if test "${ac_cv_c_dll_init_fini+set}" = set; then
16490   echo $ECHO_N "(cached) $ECHO_C" >&6
16491 else
16492   ac_wine_try_cflags_saved=$CFLAGS
16493 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
16494 cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h.  */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h.  */
16500
16501 int
16502 main ()
16503 {
16504
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (ac_try="$ac_link"
16511 case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_link") 2>conftest.er1
16517   ac_status=$?
16518   grep -v '^ *+' conftest.er1 >conftest.err
16519   rm -f conftest.er1
16520   cat conftest.err >&5
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); } &&
16523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16530   ac_status=$?
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); }; } &&
16533          { ac_try='test -s conftest$ac_exeext'
16534   { (case "(($ac_try" in
16535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536   *) ac_try_echo=$ac_try;;
16537 esac
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539   (eval "$ac_try") 2>&5
16540   ac_status=$?
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); }; }; then
16543   ac_cv_c_dll_init_fini="yes"
16544 else
16545   echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548         ac_cv_c_dll_init_fini="no"
16549 fi
16550
16551 rm -f core conftest.err conftest.$ac_objext \
16552       conftest$ac_exeext conftest.$ac_ext
16553 CFLAGS=$ac_wine_try_cflags_saved
16554 fi
16555 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
16556 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
16557         if test "$ac_cv_c_dll_init_fini" = "yes"
16558         then
16559           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
16560         fi
16561
16562         { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
16563 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
16564 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
16565   echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16567   echo '{ global: *; };' >conftest.map
16568            ac_wine_try_cflags_saved=$CFLAGS
16569 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h.  */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h.  */
16576
16577 int
16578 main ()
16579 {
16580
16581   ;
16582   return 0;
16583 }
16584 _ACEOF
16585 rm -f conftest.$ac_objext conftest$ac_exeext
16586 if { (ac_try="$ac_link"
16587 case "(($ac_try" in
16588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589   *) ac_try_echo=$ac_try;;
16590 esac
16591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592   (eval "$ac_link") 2>conftest.er1
16593   ac_status=$?
16594   grep -v '^ *+' conftest.er1 >conftest.err
16595   rm -f conftest.er1
16596   cat conftest.err >&5
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); } &&
16599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16600   { (case "(($ac_try" in
16601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602   *) ac_try_echo=$ac_try;;
16603 esac
16604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16605   (eval "$ac_try") 2>&5
16606   ac_status=$?
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); }; } &&
16609          { ac_try='test -s conftest$ac_exeext'
16610   { (case "(($ac_try" in
16611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612   *) ac_try_echo=$ac_try;;
16613 esac
16614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615   (eval "$ac_try") 2>&5
16616   ac_status=$?
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); }; }; then
16619   ac_cv_c_ld_version_scripts="yes"
16620 else
16621   echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16623
16624         ac_cv_c_ld_version_scripts="no"
16625 fi
16626
16627 rm -f core conftest.err conftest.$ac_objext \
16628       conftest$ac_exeext conftest.$ac_ext
16629 CFLAGS=$ac_wine_try_cflags_saved
16630            rm -f conftest.map
16631 fi
16632 { echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
16633 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
16634         if test "$ac_cv_c_ld_version_scripts" = "yes"
16635         then
16636           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
16637         fi
16638
16639         { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
16640 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
16641 if test "${ac_cv_c_export_dynamic+set}" = set; then
16642   echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644   ac_wine_try_cflags_saved=$CFLAGS
16645 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
16646 cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h.  */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h.  */
16652
16653 int
16654 main ()
16655 {
16656
16657   ;
16658   return 0;
16659 }
16660 _ACEOF
16661 rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (ac_try="$ac_link"
16663 case "(($ac_try" in
16664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665   *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668   (eval "$ac_link") 2>conftest.er1
16669   ac_status=$?
16670   grep -v '^ *+' conftest.er1 >conftest.err
16671   rm -f conftest.er1
16672   cat conftest.err >&5
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); } &&
16675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676   { (case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_try") 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; } &&
16685          { ac_try='test -s conftest$ac_exeext'
16686   { (case "(($ac_try" in
16687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688   *) ac_try_echo=$ac_try;;
16689 esac
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691   (eval "$ac_try") 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); }; }; then
16695   ac_cv_c_export_dynamic="yes"
16696 else
16697   echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700         ac_cv_c_export_dynamic="no"
16701 fi
16702
16703 rm -f core conftest.err conftest.$ac_objext \
16704       conftest$ac_exeext conftest.$ac_ext
16705 CFLAGS=$ac_wine_try_cflags_saved
16706 fi
16707 { echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
16708 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
16709         if test "$ac_cv_c_export_dynamic" = "yes"
16710         then
16711           LDEXECFLAGS="-Wl,--export-dynamic"
16712
16713         fi
16714
16715         { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
16716 echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
16717 if test "${ac_cv_ld_rpath+set}" = set; then
16718   echo $ECHO_N "(cached) $ECHO_C" >&6
16719 else
16720   ac_wine_try_cflags_saved=$CFLAGS
16721 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h.  */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h.  */
16728
16729 int
16730 main ()
16731 {
16732
16733   ;
16734   return 0;
16735 }
16736 _ACEOF
16737 rm -f conftest.$ac_objext conftest$ac_exeext
16738 if { (ac_try="$ac_link"
16739 case "(($ac_try" in
16740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741   *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744   (eval "$ac_link") 2>conftest.er1
16745   ac_status=$?
16746   grep -v '^ *+' conftest.er1 >conftest.err
16747   rm -f conftest.er1
16748   cat conftest.err >&5
16749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750   (exit $ac_status); } &&
16751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752   { (case "(($ac_try" in
16753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754   *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757   (eval "$ac_try") 2>&5
16758   ac_status=$?
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); }; } &&
16761          { ac_try='test -s conftest$ac_exeext'
16762   { (case "(($ac_try" in
16763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764   *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767   (eval "$ac_try") 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); }; }; then
16771   ac_cv_ld_rpath="yes"
16772 else
16773   echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16775
16776         ac_cv_ld_rpath="no"
16777 fi
16778
16779 rm -f core conftest.err conftest.$ac_objext \
16780       conftest$ac_exeext conftest.$ac_ext
16781 CFLAGS=$ac_wine_try_cflags_saved
16782 fi
16783 { echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
16784 echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
16785         if test "$ac_cv_ld_rpath" = "yes"
16786         then
16787           LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
16788
16789           LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
16790
16791         fi
16792
16793         case $host_cpu in
16794           *i[3456789]86* | x86_64)
16795             { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
16796 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
16797 if test "${ac_cv_ld_reloc_exec+set}" = set; then
16798   echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800   ac_wine_try_cflags_saved=$CFLAGS
16801 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
16802 cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h.  */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h.  */
16808
16809 int
16810 main ()
16811 {
16812
16813   ;
16814   return 0;
16815 }
16816 _ACEOF
16817 rm -f conftest.$ac_objext conftest$ac_exeext
16818 if { (ac_try="$ac_link"
16819 case "(($ac_try" in
16820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821   *) ac_try_echo=$ac_try;;
16822 esac
16823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824   (eval "$ac_link") 2>conftest.er1
16825   ac_status=$?
16826   grep -v '^ *+' conftest.er1 >conftest.err
16827   rm -f conftest.er1
16828   cat conftest.err >&5
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); } &&
16831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16832   { (case "(($ac_try" in
16833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834   *) ac_try_echo=$ac_try;;
16835 esac
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837   (eval "$ac_try") 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; } &&
16841          { ac_try='test -s conftest$ac_exeext'
16842   { (case "(($ac_try" in
16843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844   *) ac_try_echo=$ac_try;;
16845 esac
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847   (eval "$ac_try") 2>&5
16848   ac_status=$?
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); }; }; then
16851   ac_cv_ld_reloc_exec="yes"
16852 else
16853   echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.$ac_ext >&5
16855
16856         ac_cv_ld_reloc_exec="no"
16857 fi
16858
16859 rm -f core conftest.err conftest.$ac_objext \
16860       conftest$ac_exeext conftest.$ac_ext
16861 CFLAGS=$ac_wine_try_cflags_saved
16862 fi
16863 { echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
16864 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
16865             if test "$ac_cv_ld_reloc_exec" = "yes"
16866             then
16867               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
16868             fi
16869             ;;
16870         esac
16871
16872       else
16873         { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16874 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
16875 if test "${ac_cv_c_dll_unixware+set}" = set; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878   ac_wine_try_cflags_saved=$CFLAGS
16879 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
16880 cat >conftest.$ac_ext <<_ACEOF
16881 void myfunc() {}
16882 _ACEOF
16883 rm -f conftest.$ac_objext conftest$ac_exeext
16884 if { (ac_try="$ac_link"
16885 case "(($ac_try" in
16886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887   *) ac_try_echo=$ac_try;;
16888 esac
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890   (eval "$ac_link") 2>conftest.er1
16891   ac_status=$?
16892   grep -v '^ *+' conftest.er1 >conftest.err
16893   rm -f conftest.er1
16894   cat conftest.err >&5
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); } &&
16897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16898   { (case "(($ac_try" in
16899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900   *) ac_try_echo=$ac_try;;
16901 esac
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903   (eval "$ac_try") 2>&5
16904   ac_status=$?
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); }; } &&
16907          { ac_try='test -s conftest$ac_exeext'
16908   { (case "(($ac_try" in
16909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910   *) ac_try_echo=$ac_try;;
16911 esac
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913   (eval "$ac_try") 2>&5
16914   ac_status=$?
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); }; }; then
16917   ac_cv_c_dll_unixware="yes"
16918 else
16919   echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16921
16922         ac_cv_c_dll_unixware="no"
16923 fi
16924
16925 rm -f core conftest.err conftest.$ac_objext \
16926       conftest$ac_exeext conftest.$ac_ext
16927 CFLAGS=$ac_wine_try_cflags_saved
16928 fi
16929 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
16930 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
16931         if test "$ac_cv_c_dll_unixware" = "yes"
16932         then
16933           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
16934           LDDLLFLAGS="-Wl,-G,-B,symbolic"
16935
16936         else
16937           { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
16938 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; }
16939 if test "${ac_cv_c_dll_macho+set}" = set; then
16940   echo $ECHO_N "(cached) $ECHO_C" >&6
16941 else
16942   ac_wine_try_cflags_saved=$CFLAGS
16943 CFLAGS="$CFLAGS -bundle"
16944 cat >conftest.$ac_ext <<_ACEOF
16945 void myfunc() {}
16946 _ACEOF
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (ac_try="$ac_link"
16949 case "(($ac_try" in
16950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951   *) ac_try_echo=$ac_try;;
16952 esac
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954   (eval "$ac_link") 2>conftest.er1
16955   ac_status=$?
16956   grep -v '^ *+' conftest.er1 >conftest.err
16957   rm -f conftest.er1
16958   cat conftest.err >&5
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); } &&
16961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16962   { (case "(($ac_try" in
16963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964   *) ac_try_echo=$ac_try;;
16965 esac
16966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967   (eval "$ac_try") 2>&5
16968   ac_status=$?
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); }; } &&
16971          { ac_try='test -s conftest$ac_exeext'
16972   { (case "(($ac_try" in
16973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974   *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977   (eval "$ac_try") 2>&5
16978   ac_status=$?
16979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); }; }; then
16981   ac_cv_c_dll_macho="yes"
16982 else
16983   echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16985
16986         ac_cv_c_dll_macho="no"
16987 fi
16988
16989 rm -f core conftest.err conftest.$ac_objext \
16990       conftest$ac_exeext conftest.$ac_ext
16991 CFLAGS=$ac_wine_try_cflags_saved
16992 fi
16993 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
16994 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
16995           if test "$ac_cv_c_dll_macho" = "yes"
16996           then
16997             LIBEXT="dylib"
16998             LDDLLFLAGS="-bundle -multiply_defined suppress"
16999             LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
17000             STRIP="$STRIP -u -r"
17001                         COREFOUNDATIONLIB="-framework CoreFoundation"
17002
17003             IOKITLIB="-framework IOKit -framework CoreFoundation"
17004
17005             LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
17006
17007             if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
17008             then
17009                                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
17010
17011             fi
17012             case $host_cpu in
17013               *powerpc*)
17014                 CFLAGS="$CFLAGS -ffixed-r13"
17015                 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
17016                 ;;
17017             esac
17018
17019           else
17020             { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
17021 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
17022 if test "${ac_cv_c_dll_hpux+set}" = set; then
17023   echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025   ac_wine_try_cflags_saved=$CFLAGS
17026 CFLAGS="$CFLAGS -shared"
17027 cat >conftest.$ac_ext <<_ACEOF
17028 void myfunc() {}
17029 _ACEOF
17030 rm -f conftest.$ac_objext conftest$ac_exeext
17031 if { (ac_try="$ac_link"
17032 case "(($ac_try" in
17033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034   *) ac_try_echo=$ac_try;;
17035 esac
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037   (eval "$ac_link") 2>conftest.er1
17038   ac_status=$?
17039   grep -v '^ *+' conftest.er1 >conftest.err
17040   rm -f conftest.er1
17041   cat conftest.err >&5
17042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043   (exit $ac_status); } &&
17044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17045   { (case "(($ac_try" in
17046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047   *) ac_try_echo=$ac_try;;
17048 esac
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050   (eval "$ac_try") 2>&5
17051   ac_status=$?
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); }; } &&
17054          { ac_try='test -s conftest$ac_exeext'
17055   { (case "(($ac_try" in
17056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057   *) ac_try_echo=$ac_try;;
17058 esac
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060   (eval "$ac_try") 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); }; }; then
17064   ac_cv_c_dll_hpux="yes"
17065 else
17066   echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17068
17069         ac_cv_c_dll_hpux="no"
17070 fi
17071
17072 rm -f core conftest.err conftest.$ac_objext \
17073       conftest$ac_exeext conftest.$ac_ext
17074 CFLAGS=$ac_wine_try_cflags_saved
17075 fi
17076 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
17077 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
17078             if test "$ac_cv_c_dll_hpux" = "yes"
17079             then
17080               LIBEXT="sl"
17081               DLLEXT=".sl"
17082               LDDLLFLAGS="-shared -fPIC"
17083               LDSHARED="\$(CC) -shared"
17084             fi
17085           fi
17086         fi
17087       fi
17088     fi
17089
17090         CROSSTEST=""
17091
17092     if test "$cross_compiling" = "no"
17093     then
17094       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
17095 do
17096   # Extract the first word of "$ac_prog", so it can be a program name with args.
17097 set dummy $ac_prog; ac_word=$2
17098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17100 if test "${ac_cv_prog_CROSSCC+set}" = set; then
17101   echo $ECHO_N "(cached) $ECHO_C" >&6
17102 else
17103   if test -n "$CROSSCC"; then
17104   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
17105 else
17106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17107 for as_dir in $PATH
17108 do
17109   IFS=$as_save_IFS
17110   test -z "$as_dir" && as_dir=.
17111   for ac_exec_ext in '' $ac_executable_extensions; do
17112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17113     ac_cv_prog_CROSSCC="$ac_prog"
17114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17115     break 2
17116   fi
17117 done
17118 done
17119 IFS=$as_save_IFS
17120
17121 fi
17122 fi
17123 CROSSCC=$ac_cv_prog_CROSSCC
17124 if test -n "$CROSSCC"; then
17125   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
17126 echo "${ECHO_T}$CROSSCC" >&6; }
17127 else
17128   { echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6; }
17130 fi
17131
17132
17133   test -n "$CROSSCC" && break
17134 done
17135 test -n "$CROSSCC" || CROSSCC="false"
17136
17137       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
17138 do
17139   # Extract the first word of "$ac_prog", so it can be a program name with args.
17140 set dummy $ac_prog; ac_word=$2
17141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17143 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17144   echo $ECHO_N "(cached) $ECHO_C" >&6
17145 else
17146   if test -n "$DLLTOOL"; then
17147   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17148 else
17149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17150 for as_dir in $PATH
17151 do
17152   IFS=$as_save_IFS
17153   test -z "$as_dir" && as_dir=.
17154   for ac_exec_ext in '' $ac_executable_extensions; do
17155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17156     ac_cv_prog_DLLTOOL="$ac_prog"
17157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17158     break 2
17159   fi
17160 done
17161 done
17162 IFS=$as_save_IFS
17163
17164 fi
17165 fi
17166 DLLTOOL=$ac_cv_prog_DLLTOOL
17167 if test -n "$DLLTOOL"; then
17168   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17169 echo "${ECHO_T}$DLLTOOL" >&6; }
17170 else
17171   { echo "$as_me:$LINENO: result: no" >&5
17172 echo "${ECHO_T}no" >&6; }
17173 fi
17174
17175
17176   test -n "$DLLTOOL" && break
17177 done
17178 test -n "$DLLTOOL" || DLLTOOL="false"
17179
17180       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
17181 do
17182   # Extract the first word of "$ac_prog", so it can be a program name with args.
17183 set dummy $ac_prog; ac_word=$2
17184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17186 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
17187   echo $ECHO_N "(cached) $ECHO_C" >&6
17188 else
17189   if test -n "$CROSSWINDRES"; then
17190   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
17191 else
17192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17193 for as_dir in $PATH
17194 do
17195   IFS=$as_save_IFS
17196   test -z "$as_dir" && as_dir=.
17197   for ac_exec_ext in '' $ac_executable_extensions; do
17198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17199     ac_cv_prog_CROSSWINDRES="$ac_prog"
17200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17201     break 2
17202   fi
17203 done
17204 done
17205 IFS=$as_save_IFS
17206
17207 fi
17208 fi
17209 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
17210 if test -n "$CROSSWINDRES"; then
17211   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
17212 echo "${ECHO_T}$CROSSWINDRES" >&6; }
17213 else
17214   { echo "$as_me:$LINENO: result: no" >&5
17215 echo "${ECHO_T}no" >&6; }
17216 fi
17217
17218
17219   test -n "$CROSSWINDRES" && break
17220 done
17221 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
17222
17223       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
17224     fi
17225     ;;
17226 esac
17227
17228 if test "$LIBEXT" = "a"; then
17229   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
17230 It is currently not possible to build Wine without shared library
17231 (.so) support to allow transparent switch between .so and .dll files.
17232 If you are using Linux, you will need a newer binutils.
17233 " >&5
17234 echo "$as_me: error: could not find a way to build shared libraries.
17235 It is currently not possible to build Wine without shared library
17236 (.so) support to allow transparent switch between .so and .dll files.
17237 If you are using Linux, you will need a newer binutils.
17238 " >&2;}
17239    { (exit 1); exit 1; }; }
17240 fi
17241
17242 case $build_os in
17243   cygwin*|mingw32*)
17244     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
17245  ;;
17246   darwin*|macosx*)
17247     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
17248  ;;
17249   *)
17250     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
17251  ;;
17252 esac
17253
17254 case $host_os in
17255   mingw32*)
17256     CRTLIBS="-lmsvcrt"
17257
17258     SOCKETLIBS="-lws2_32"
17259
17260     ;;
17261 esac
17262
17263 MAIN_BINARY="wine-pthread"
17264   case $host_cpu in
17265   *i[3456789]86*)
17266     case $host_os in
17267       linux* | k*bsd*-gnu)
17268         MAIN_BINARY="wine-glibc"
17269
17270         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
17271  ;;
17272     esac
17273     ;;
17274 esac
17275
17276
17277 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
17278 then
17279   # Extract the first word of "ldd", so it can be a program name with args.
17280 set dummy ldd; ac_word=$2
17281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17283 if test "${ac_cv_path_LDD+set}" = set; then
17284   echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286   case $LDD in
17287   [\\/]* | ?:[\\/]*)
17288   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17289   ;;
17290   *)
17291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17292 as_dummy="/sbin:/usr/sbin:$PATH"
17293 for as_dir in $as_dummy
17294 do
17295   IFS=$as_save_IFS
17296   test -z "$as_dir" && as_dir=.
17297   for ac_exec_ext in '' $ac_executable_extensions; do
17298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17299     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17301     break 2
17302   fi
17303 done
17304 done
17305 IFS=$as_save_IFS
17306
17307   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
17308   ;;
17309 esac
17310 fi
17311 LDD=$ac_cv_path_LDD
17312 if test -n "$LDD"; then
17313   { echo "$as_me:$LINENO: result: $LDD" >&5
17314 echo "${ECHO_T}$LDD" >&6; }
17315 else
17316   { echo "$as_me:$LINENO: result: no" >&5
17317 echo "${ECHO_T}no" >&6; }
17318 fi
17319
17320
17321 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
17322 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
17323 if test "${ac_cv_lib_soname_X11+set}" = set; then
17324   echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326   ac_get_soname_save_LIBS=$LIBS
17327 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $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 XCreateWindow ();
17342 int
17343 main ()
17344 {
17345 return XCreateWindow ();
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_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'` ;;
17386     so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^        ]*\).*$/\1/"';2,$d'` ;;
17387   esac
17388   if test "x$ac_cv_lib_soname_X11" = "x"
17389   then
17390      ac_cv_lib_soname_X11="libX11.$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_X11="libX11.$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_X11" >&5
17404 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
17405 if test "${ac_cv_lib_soname_X11+set}" = set; then
17406
17407 cat >>confdefs.h <<_ACEOF
17408 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
17409 _ACEOF
17410
17411 fi
17412
17413   { echo "$as_me:$LINENO: checking for -lXext soname" >&5
17414 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
17415 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17416   echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418   ac_get_soname_save_LIBS=$LIBS
17419 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $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 XextCreateExtension ();
17434 int
17435 main ()
17436 {
17437 return XextCreateExtension ();
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_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'` ;;
17478     so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^     ]*\).*$/\1/"';2,$d'` ;;
17479   esac
17480   if test "x$ac_cv_lib_soname_Xext" = "x"
17481   then
17482      ac_cv_lib_soname_Xext="libXext.$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_Xext="libXext.$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_Xext" >&5
17496 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
17497 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17498
17499 cat >>confdefs.h <<_ACEOF
17500 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
17501 _ACEOF
17502
17503 fi
17504
17505   { echo "$as_me:$LINENO: checking for -lXi soname" >&5
17506 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
17507 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17508   echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510   ac_get_soname_save_LIBS=$LIBS
17511 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $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 XOpenDevice ();
17526 int
17527 main ()
17528 {
17529 return XOpenDevice ();
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_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'` ;;
17570     so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^   ]*\).*$/\1/"';2,$d'` ;;
17571   esac
17572   if test "x$ac_cv_lib_soname_Xi" = "x"
17573   then
17574      ac_cv_lib_soname_Xi="libXi.$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_Xi="libXi.$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_Xi" >&5
17588 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
17589 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17590
17591 cat >>confdefs.h <<_ACEOF
17592 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
17593 _ACEOF
17594
17595 fi
17596
17597   { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
17598 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
17599 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17600   echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602   ac_get_soname_save_LIBS=$LIBS
17603 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $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 XRenderQueryExtension ();
17618 int
17619 main ()
17620 {
17621 return XRenderQueryExtension ();
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_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'` ;;
17662     so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^    ]*\).*$/\1/"';2,$d'` ;;
17663   esac
17664   if test "x$ac_cv_lib_soname_Xrender" = "x"
17665   then
17666      ac_cv_lib_soname_Xrender="libXrender.$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_Xrender="libXrender.$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_Xrender" >&5
17680 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
17681 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17682
17683 cat >>confdefs.h <<_ACEOF
17684 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
17685 _ACEOF
17686
17687 fi
17688
17689   { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
17690 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
17691 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17692   echo $ECHO_N "(cached) $ECHO_C" >&6
17693 else
17694   ac_get_soname_save_LIBS=$LIBS
17695 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $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 XRRQueryExtension ();
17710 int
17711 main ()
17712 {
17713 return XRRQueryExtension ();
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_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'` ;;
17754     so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^       ]*\).*$/\1/"';2,$d'` ;;
17755   esac
17756   if test "x$ac_cv_lib_soname_Xrandr" = "x"
17757   then
17758      ac_cv_lib_soname_Xrandr="libXrandr.$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_Xrandr="libXrandr.$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_Xrandr" >&5
17772 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
17773 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17774
17775 cat >>confdefs.h <<_ACEOF
17776 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
17777 _ACEOF
17778
17779 fi
17780
17781   { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
17782 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
17783 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17784   echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786   ac_get_soname_save_LIBS=$LIBS
17787 LIBS="-lfreetype $X_LIBS $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 FT_Init_FreeType ();
17802 int
17803 main ()
17804 {
17805 return FT_Init_FreeType ();
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_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'` ;;
17846     so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^         ]*\).*$/\1/"';2,$d'` ;;
17847   esac
17848   if test "x$ac_cv_lib_soname_freetype" = "x"
17849   then
17850      ac_cv_lib_soname_freetype="libfreetype.$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_freetype="libfreetype.$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_freetype" >&5
17864 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
17865 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17866
17867 cat >>confdefs.h <<_ACEOF
17868 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
17869 _ACEOF
17870
17871 fi
17872
17873   { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17874 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
17875 if test "${ac_cv_lib_soname_GL+set}" = set; then
17876   echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878   ac_get_soname_save_LIBS=$LIBS
17879 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $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 glXQueryExtension ();
17894 int
17895 main ()
17896 {
17897 return glXQueryExtension ();
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_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'` ;;
17938     so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^   ]*\).*$/\1/"';2,$d'` ;;
17939   esac
17940   if test "x$ac_cv_lib_soname_GL" = "x"
17941   then
17942      ac_cv_lib_soname_GL="libGL.$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_GL="libGL.$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_GL" >&5
17956 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
17957 if test "${ac_cv_lib_soname_GL+set}" = set; then
17958
17959 cat >>confdefs.h <<_ACEOF
17960 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
17961 _ACEOF
17962
17963 fi
17964
17965   { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
17966 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
17967 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970   ac_get_soname_save_LIBS=$LIBS
17971 LIBS="-ldbus-1  $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 dbus_error_init ();
17986 int
17987 main ()
17988 {
17989 return dbus_error_init ();
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_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'` ;;
18030     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'` ;;
18031   esac
18032   if test "x$ac_cv_lib_soname_dbus_1" = "x"
18033   then
18034      ac_cv_lib_soname_dbus_1="libdbus-1.$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_dbus_1="libdbus-1.$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_dbus_1" >&5
18048 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
18049 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18050
18051 cat >>confdefs.h <<_ACEOF
18052 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
18053 _ACEOF
18054
18055 fi
18056
18057   { echo "$as_me:$LINENO: checking for -lhal soname" >&5
18058 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
18059 if test "${ac_cv_lib_soname_hal+set}" = set; then
18060   echo $ECHO_N "(cached) $ECHO_C" >&6
18061 else
18062   ac_get_soname_save_LIBS=$LIBS
18063 LIBS="-lhal  $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 libhal_ctx_new ();
18078 int
18079 main ()
18080 {
18081 return libhal_ctx_new ();
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_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'` ;;
18122     so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^        ]*\).*$/\1/"';2,$d'` ;;
18123   esac
18124   if test "x$ac_cv_lib_soname_hal" = "x"
18125   then
18126      ac_cv_lib_soname_hal="libhal.$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_hal="libhal.$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_hal" >&5
18140 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
18141 if test "${ac_cv_lib_soname_hal+set}" = set; then
18142
18143 cat >>confdefs.h <<_ACEOF
18144 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
18145 _ACEOF
18146
18147 fi
18148
18149   { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
18150 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
18151 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18152   echo $ECHO_N "(cached) $ECHO_C" >&6
18153 else
18154   ac_get_soname_save_LIBS=$LIBS
18155 LIBS="-ltxc_dxtn  $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 fetch_2d_texel_rgba_dxt1 ();
18170 int
18171 main ()
18172 {
18173 return fetch_2d_texel_rgba_dxt1 ();
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_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'` ;;
18214     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'` ;;
18215   esac
18216   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
18217   then
18218      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$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_txc_dxtn="libtxc_dxtn.$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_txc_dxtn" >&5
18232 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
18233 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18234
18235 cat >>confdefs.h <<_ACEOF
18236 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
18237 _ACEOF
18238
18239 fi
18240
18241   { echo "$as_me:$LINENO: checking for -lcups soname" >&5
18242 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
18243 if test "${ac_cv_lib_soname_cups+set}" = set; then
18244   echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246   ac_get_soname_save_LIBS=$LIBS
18247 LIBS="-lcups  $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 cupsGetDefault ();
18262 int
18263 main ()
18264 {
18265 return cupsGetDefault ();
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_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'` ;;
18306     so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^     ]*\).*$/\1/"';2,$d'` ;;
18307   esac
18308   if test "x$ac_cv_lib_soname_cups" = "x"
18309   then
18310      ac_cv_lib_soname_cups="libcups.$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_cups="libcups.$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_cups" >&5
18324 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
18325 if test "${ac_cv_lib_soname_cups+set}" = set; then
18326
18327 cat >>confdefs.h <<_ACEOF
18328 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
18329 _ACEOF
18330
18331 fi
18332
18333   { echo "$as_me:$LINENO: checking for -ljack soname" >&5
18334 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
18335 if test "${ac_cv_lib_soname_jack+set}" = set; then
18336   echo $ECHO_N "(cached) $ECHO_C" >&6
18337 else
18338   ac_get_soname_save_LIBS=$LIBS
18339 LIBS="-ljack  $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 jack_client_new ();
18354 int
18355 main ()
18356 {
18357 return jack_client_new ();
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_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'` ;;
18398     so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^     ]*\).*$/\1/"';2,$d'` ;;
18399   esac
18400   if test "x$ac_cv_lib_soname_jack" = "x"
18401   then
18402      ac_cv_lib_soname_jack="libjack.$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_jack="libjack.$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_jack" >&5
18416 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
18417 if test "${ac_cv_lib_soname_jack+set}" = set; then
18418
18419 cat >>confdefs.h <<_ACEOF
18420 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
18421 _ACEOF
18422
18423 fi
18424
18425   { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
18426 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
18427 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18428   echo $ECHO_N "(cached) $ECHO_C" >&6
18429 else
18430   ac_get_soname_save_LIBS=$LIBS
18431 LIBS="-lfontconfig  $LIBS"
18432   cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h.  */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h.  */
18438
18439 /* Override any GCC internal prototype to avoid an error.
18440    Use char because int might match the return type of a GCC
18441    builtin and then its argument prototype would still apply.  */
18442 #ifdef __cplusplus
18443 extern "C"
18444 #endif
18445 char FcInit ();
18446 int
18447 main ()
18448 {
18449 return FcInit ();
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (ac_try="$ac_link"
18456 case "(($ac_try" in
18457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458   *) ac_try_echo=$ac_try;;
18459 esac
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461   (eval "$ac_link") 2>conftest.er1
18462   ac_status=$?
18463   grep -v '^ *+' conftest.er1 >conftest.err
18464   rm -f conftest.er1
18465   cat conftest.err >&5
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); } &&
18468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18469   { (case "(($ac_try" in
18470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471   *) ac_try_echo=$ac_try;;
18472 esac
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474   (eval "$ac_try") 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); }; } &&
18478          { ac_try='test -s conftest$ac_exeext'
18479   { (case "(($ac_try" in
18480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481   *) ac_try_echo=$ac_try;;
18482 esac
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484   (eval "$ac_try") 2>&5
18485   ac_status=$?
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); }; }; then
18488   case "$LIBEXT" in
18489     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'` ;;
18490     so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^   ]*\).*$/\1/"';2,$d'` ;;
18491   esac
18492   if test "x$ac_cv_lib_soname_fontconfig" = "x"
18493   then
18494      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18495   fi
18496 else
18497   echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18499
18500         ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18501 fi
18502
18503 rm -f core conftest.err conftest.$ac_objext \
18504       conftest$ac_exeext conftest.$ac_ext
18505   LIBS=$ac_get_soname_save_LIBS
18506 fi
18507 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
18508 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
18509 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18510
18511 cat >>confdefs.h <<_ACEOF
18512 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
18513 _ACEOF
18514
18515 fi
18516
18517   { echo "$as_me:$LINENO: checking for -lssl soname" >&5
18518 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
18519 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18520   echo $ECHO_N "(cached) $ECHO_C" >&6
18521 else
18522   ac_get_soname_save_LIBS=$LIBS
18523 LIBS="-lssl  $LIBS"
18524   cat >conftest.$ac_ext <<_ACEOF
18525 /* confdefs.h.  */
18526 _ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h.  */
18530
18531 /* Override any GCC internal prototype to avoid an error.
18532    Use char because int might match the return type of a GCC
18533    builtin and then its argument prototype would still apply.  */
18534 #ifdef __cplusplus
18535 extern "C"
18536 #endif
18537 char SSL_library_init ();
18538 int
18539 main ()
18540 {
18541 return SSL_library_init ();
18542   ;
18543   return 0;
18544 }
18545 _ACEOF
18546 rm -f conftest.$ac_objext conftest$ac_exeext
18547 if { (ac_try="$ac_link"
18548 case "(($ac_try" in
18549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550   *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553   (eval "$ac_link") 2>conftest.er1
18554   ac_status=$?
18555   grep -v '^ *+' conftest.er1 >conftest.err
18556   rm -f conftest.er1
18557   cat conftest.err >&5
18558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559   (exit $ac_status); } &&
18560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18561   { (case "(($ac_try" in
18562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563   *) ac_try_echo=$ac_try;;
18564 esac
18565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566   (eval "$ac_try") 2>&5
18567   ac_status=$?
18568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569   (exit $ac_status); }; } &&
18570          { ac_try='test -s conftest$ac_exeext'
18571   { (case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_try") 2>&5
18577   ac_status=$?
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); }; }; then
18580   case "$LIBEXT" in
18581     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'` ;;
18582     so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^        ]*\).*$/\1/"';2,$d'` ;;
18583   esac
18584   if test "x$ac_cv_lib_soname_ssl" = "x"
18585   then
18586      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18587   fi
18588 else
18589   echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18591
18592         ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18593 fi
18594
18595 rm -f core conftest.err conftest.$ac_objext \
18596       conftest$ac_exeext conftest.$ac_ext
18597   LIBS=$ac_get_soname_save_LIBS
18598 fi
18599 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
18600 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
18601 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18602
18603 cat >>confdefs.h <<_ACEOF
18604 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
18605 _ACEOF
18606
18607 fi
18608
18609   { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
18610 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
18611 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18612   echo $ECHO_N "(cached) $ECHO_C" >&6
18613 else
18614   ac_get_soname_save_LIBS=$LIBS
18615 LIBS="-lcrypto  $LIBS"
18616   cat >conftest.$ac_ext <<_ACEOF
18617 /* confdefs.h.  */
18618 _ACEOF
18619 cat confdefs.h >>conftest.$ac_ext
18620 cat >>conftest.$ac_ext <<_ACEOF
18621 /* end confdefs.h.  */
18622
18623 /* Override any GCC internal prototype to avoid an error.
18624    Use char because int might match the return type of a GCC
18625    builtin and then its argument prototype would still apply.  */
18626 #ifdef __cplusplus
18627 extern "C"
18628 #endif
18629 char BIO_new_socket ();
18630 int
18631 main ()
18632 {
18633 return BIO_new_socket ();
18634   ;
18635   return 0;
18636 }
18637 _ACEOF
18638 rm -f conftest.$ac_objext conftest$ac_exeext
18639 if { (ac_try="$ac_link"
18640 case "(($ac_try" in
18641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642   *) ac_try_echo=$ac_try;;
18643 esac
18644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645   (eval "$ac_link") 2>conftest.er1
18646   ac_status=$?
18647   grep -v '^ *+' conftest.er1 >conftest.err
18648   rm -f conftest.er1
18649   cat conftest.err >&5
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); } &&
18652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18653   { (case "(($ac_try" in
18654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18655   *) ac_try_echo=$ac_try;;
18656 esac
18657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18658   (eval "$ac_try") 2>&5
18659   ac_status=$?
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); }; } &&
18662          { ac_try='test -s conftest$ac_exeext'
18663   { (case "(($ac_try" in
18664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665   *) ac_try_echo=$ac_try;;
18666 esac
18667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18668   (eval "$ac_try") 2>&5
18669   ac_status=$?
18670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671   (exit $ac_status); }; }; then
18672   case "$LIBEXT" in
18673     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'` ;;
18674     so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^       ]*\).*$/\1/"';2,$d'` ;;
18675   esac
18676   if test "x$ac_cv_lib_soname_crypto" = "x"
18677   then
18678      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18679   fi
18680 else
18681   echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18683
18684         ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18685 fi
18686
18687 rm -f core conftest.err conftest.$ac_objext \
18688       conftest$ac_exeext conftest.$ac_ext
18689   LIBS=$ac_get_soname_save_LIBS
18690 fi
18691 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
18692 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
18693 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18694
18695 cat >>confdefs.h <<_ACEOF
18696 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
18697 _ACEOF
18698
18699 fi
18700
18701   { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
18702 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
18703 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18704   echo $ECHO_N "(cached) $ECHO_C" >&6
18705 else
18706   ac_get_soname_save_LIBS=$LIBS
18707 LIBS="-lncurses  $LIBS"
18708   cat >conftest.$ac_ext <<_ACEOF
18709 /* confdefs.h.  */
18710 _ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h.  */
18714
18715 /* Override any GCC internal prototype to avoid an error.
18716    Use char because int might match the return type of a GCC
18717    builtin and then its argument prototype would still apply.  */
18718 #ifdef __cplusplus
18719 extern "C"
18720 #endif
18721 char waddch ();
18722 int
18723 main ()
18724 {
18725 return waddch ();
18726   ;
18727   return 0;
18728 }
18729 _ACEOF
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734   *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737   (eval "$ac_link") 2>conftest.er1
18738   ac_status=$?
18739   grep -v '^ *+' conftest.er1 >conftest.err
18740   rm -f conftest.er1
18741   cat conftest.err >&5
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } &&
18744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18745   { (case "(($ac_try" in
18746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747   *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750   (eval "$ac_try") 2>&5
18751   ac_status=$?
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); }; } &&
18754          { ac_try='test -s conftest$ac_exeext'
18755   { (case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760   (eval "$ac_try") 2>&5
18761   ac_status=$?
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); }; }; then
18764   case "$LIBEXT" in
18765     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'` ;;
18766     so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^    ]*\).*$/\1/"';2,$d'` ;;
18767   esac
18768   if test "x$ac_cv_lib_soname_ncurses" = "x"
18769   then
18770      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18771   fi
18772 else
18773   echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18775
18776         ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18777 fi
18778
18779 rm -f core conftest.err conftest.$ac_objext \
18780       conftest$ac_exeext conftest.$ac_ext
18781   LIBS=$ac_get_soname_save_LIBS
18782 fi
18783 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
18784 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
18785 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18786
18787 cat >>confdefs.h <<_ACEOF
18788 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
18789 _ACEOF
18790
18791 fi
18792
18793   { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
18794 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
18795 if test "${ac_cv_lib_soname_curses+set}" = set; then
18796   echo $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798   ac_get_soname_save_LIBS=$LIBS
18799 LIBS="-lcurses  $LIBS"
18800   cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h.  */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h.  */
18806
18807 /* Override any GCC internal prototype to avoid an error.
18808    Use char because int might match the return type of a GCC
18809    builtin and then its argument prototype would still apply.  */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 char waddch ();
18814 int
18815 main ()
18816 {
18817 return waddch ();
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   case "$LIBEXT" in
18857     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'` ;;
18858     so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^       ]*\).*$/\1/"';2,$d'` ;;
18859   esac
18860   if test "x$ac_cv_lib_soname_curses" = "x"
18861   then
18862      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18863   fi
18864 else
18865   echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18867
18868         ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18869 fi
18870
18871 rm -f core conftest.err conftest.$ac_objext \
18872       conftest$ac_exeext conftest.$ac_ext
18873   LIBS=$ac_get_soname_save_LIBS
18874 fi
18875 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
18876 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
18877 if test "${ac_cv_lib_soname_curses+set}" = set; then
18878
18879 cat >>confdefs.h <<_ACEOF
18880 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
18881 _ACEOF
18882
18883 fi
18884
18885   { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
18886 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
18887 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18888   echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890   ac_get_soname_save_LIBS=$LIBS
18891 LIBS="-ljpeg  $LIBS"
18892   cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h.  */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h.  */
18898
18899 /* Override any GCC internal prototype to avoid an error.
18900    Use char because int might match the return type of a GCC
18901    builtin and then its argument prototype would still apply.  */
18902 #ifdef __cplusplus
18903 extern "C"
18904 #endif
18905 char jpeg_start_decompress ();
18906 int
18907 main ()
18908 {
18909 return jpeg_start_decompress ();
18910   ;
18911   return 0;
18912 }
18913 _ACEOF
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918   *) ac_try_echo=$ac_try;;
18919 esac
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921   (eval "$ac_link") 2>conftest.er1
18922   ac_status=$?
18923   grep -v '^ *+' conftest.er1 >conftest.err
18924   rm -f conftest.er1
18925   cat conftest.err >&5
18926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927   (exit $ac_status); } &&
18928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18929   { (case "(($ac_try" in
18930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931   *) ac_try_echo=$ac_try;;
18932 esac
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934   (eval "$ac_try") 2>&5
18935   ac_status=$?
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); }; } &&
18938          { ac_try='test -s conftest$ac_exeext'
18939   { (case "(($ac_try" in
18940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941   *) ac_try_echo=$ac_try;;
18942 esac
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944   (eval "$ac_try") 2>&5
18945   ac_status=$?
18946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947   (exit $ac_status); }; }; then
18948   case "$LIBEXT" in
18949     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'` ;;
18950     so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^     ]*\).*$/\1/"';2,$d'` ;;
18951   esac
18952   if test "x$ac_cv_lib_soname_jpeg" = "x"
18953   then
18954      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18955   fi
18956 else
18957   echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18959
18960         ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18961 fi
18962
18963 rm -f core conftest.err conftest.$ac_objext \
18964       conftest$ac_exeext conftest.$ac_ext
18965   LIBS=$ac_get_soname_save_LIBS
18966 fi
18967 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
18968 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
18969 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18970
18971 cat >>confdefs.h <<_ACEOF
18972 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
18973 _ACEOF
18974
18975 fi
18976
18977   { echo "$as_me:$LINENO: checking for -lungif soname" >&5
18978 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
18979 if test "${ac_cv_lib_soname_ungif+set}" = set; then
18980   echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982   ac_get_soname_save_LIBS=$LIBS
18983 LIBS="-lungif  $LIBS"
18984   cat >conftest.$ac_ext <<_ACEOF
18985 /* confdefs.h.  */
18986 _ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h.  */
18990
18991 /* Override any GCC internal prototype to avoid an error.
18992    Use char because int might match the return type of a GCC
18993    builtin and then its argument prototype would still apply.  */
18994 #ifdef __cplusplus
18995 extern "C"
18996 #endif
18997 char DGifOpen ();
18998 int
18999 main ()
19000 {
19001 return DGifOpen ();
19002   ;
19003   return 0;
19004 }
19005 _ACEOF
19006 rm -f conftest.$ac_objext conftest$ac_exeext
19007 if { (ac_try="$ac_link"
19008 case "(($ac_try" in
19009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010   *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013   (eval "$ac_link") 2>conftest.er1
19014   ac_status=$?
19015   grep -v '^ *+' conftest.er1 >conftest.err
19016   rm -f conftest.er1
19017   cat conftest.err >&5
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); } &&
19020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19021   { (case "(($ac_try" in
19022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023   *) ac_try_echo=$ac_try;;
19024 esac
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026   (eval "$ac_try") 2>&5
19027   ac_status=$?
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); }; } &&
19030          { ac_try='test -s conftest$ac_exeext'
19031   { (case "(($ac_try" in
19032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033   *) ac_try_echo=$ac_try;;
19034 esac
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036   (eval "$ac_try") 2>&5
19037   ac_status=$?
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); }; }; then
19040   case "$LIBEXT" in
19041     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'` ;;
19042     so) ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.so | sed -e "s/^.*\(libungif\.so[^  ]*\).*$/\1/"';2,$d'` ;;
19043   esac
19044   if test "x$ac_cv_lib_soname_ungif" = "x"
19045   then
19046      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19047   fi
19048 else
19049   echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19051
19052         ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19053 fi
19054
19055 rm -f core conftest.err conftest.$ac_objext \
19056       conftest$ac_exeext conftest.$ac_ext
19057   LIBS=$ac_get_soname_save_LIBS
19058 fi
19059 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
19060 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
19061 if test "${ac_cv_lib_soname_ungif+set}" = set; then
19062
19063 cat >>confdefs.h <<_ACEOF
19064 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
19065 _ACEOF
19066
19067 fi
19068
19069   { echo "$as_me:$LINENO: checking for -lgif soname" >&5
19070 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
19071 if test "${ac_cv_lib_soname_gif+set}" = set; then
19072   echo $ECHO_N "(cached) $ECHO_C" >&6
19073 else
19074   ac_get_soname_save_LIBS=$LIBS
19075 LIBS="-lgif  $LIBS"
19076   cat >conftest.$ac_ext <<_ACEOF
19077 /* confdefs.h.  */
19078 _ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h.  */
19082
19083 /* Override any GCC internal prototype to avoid an error.
19084    Use char because int might match the return type of a GCC
19085    builtin and then its argument prototype would still apply.  */
19086 #ifdef __cplusplus
19087 extern "C"
19088 #endif
19089 char DGifOpen ();
19090 int
19091 main ()
19092 {
19093 return DGifOpen ();
19094   ;
19095   return 0;
19096 }
19097 _ACEOF
19098 rm -f conftest.$ac_objext conftest$ac_exeext
19099 if { (ac_try="$ac_link"
19100 case "(($ac_try" in
19101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102   *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105   (eval "$ac_link") 2>conftest.er1
19106   ac_status=$?
19107   grep -v '^ *+' conftest.er1 >conftest.err
19108   rm -f conftest.er1
19109   cat conftest.err >&5
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); } &&
19112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19113   { (case "(($ac_try" in
19114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115   *) ac_try_echo=$ac_try;;
19116 esac
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118   (eval "$ac_try") 2>&5
19119   ac_status=$?
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); }; } &&
19122          { ac_try='test -s conftest$ac_exeext'
19123   { (case "(($ac_try" in
19124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125   *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128   (eval "$ac_try") 2>&5
19129   ac_status=$?
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); }; }; then
19132   case "$LIBEXT" in
19133     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'` ;;
19134     so) ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.so | sed -e "s/^.*\(libgif\.so[^        ]*\).*$/\1/"';2,$d'` ;;
19135   esac
19136   if test "x$ac_cv_lib_soname_gif" = "x"
19137   then
19138      ac_cv_lib_soname_gif="libgif.$LIBEXT"
19139   fi
19140 else
19141   echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19143
19144         ac_cv_lib_soname_gif="libgif.$LIBEXT"
19145 fi
19146
19147 rm -f core conftest.err conftest.$ac_objext \
19148       conftest$ac_exeext conftest.$ac_ext
19149   LIBS=$ac_get_soname_save_LIBS
19150 fi
19151 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
19152 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
19153 if test "${ac_cv_lib_soname_gif+set}" = set; then
19154
19155 cat >>confdefs.h <<_ACEOF
19156 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
19157 _ACEOF
19158
19159 fi
19160
19161   { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
19162 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
19163 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19164   echo $ECHO_N "(cached) $ECHO_C" >&6
19165 else
19166   ac_get_soname_save_LIBS=$LIBS
19167 LIBS="-lcapi20  $LIBS"
19168   cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h.  */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h.  */
19174
19175 /* Override any GCC internal prototype to avoid an error.
19176    Use char because int might match the return type of a GCC
19177    builtin and then its argument prototype would still apply.  */
19178 #ifdef __cplusplus
19179 extern "C"
19180 #endif
19181 char capi20_isinstalled ();
19182 int
19183 main ()
19184 {
19185 return capi20_isinstalled ();
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 rm -f conftest.$ac_objext conftest$ac_exeext
19191 if { (ac_try="$ac_link"
19192 case "(($ac_try" in
19193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194   *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197   (eval "$ac_link") 2>conftest.er1
19198   ac_status=$?
19199   grep -v '^ *+' conftest.er1 >conftest.err
19200   rm -f conftest.er1
19201   cat conftest.err >&5
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); } &&
19204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19205   { (case "(($ac_try" in
19206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207   *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210   (eval "$ac_try") 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; } &&
19214          { ac_try='test -s conftest$ac_exeext'
19215   { (case "(($ac_try" in
19216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217   *) ac_try_echo=$ac_try;;
19218 esac
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220   (eval "$ac_try") 2>&5
19221   ac_status=$?
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); }; }; then
19224   case "$LIBEXT" in
19225     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'` ;;
19226     so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^       ]*\).*$/\1/"';2,$d'` ;;
19227   esac
19228   if test "x$ac_cv_lib_soname_capi20" = "x"
19229   then
19230      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19231   fi
19232 else
19233   echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19235
19236         ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19237 fi
19238
19239 rm -f core conftest.err conftest.$ac_objext \
19240       conftest$ac_exeext conftest.$ac_ext
19241   LIBS=$ac_get_soname_save_LIBS
19242 fi
19243 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
19244 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
19245 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19246
19247 cat >>confdefs.h <<_ACEOF
19248 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
19249 _ACEOF
19250
19251 fi
19252
19253 fi
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324 for ac_func in \
19325         _lwp_create \
19326         _lwp_self \
19327         _pclose \
19328         _popen \
19329         _snprintf \
19330         _spawnvp \
19331         _stricmp \
19332         _strnicmp \
19333         _vsnprintf \
19334         asctime_r \
19335         chsize \
19336         clone \
19337         epoll_create \
19338         ffs \
19339         finite \
19340         fork \
19341         fpclass \
19342         fstatfs \
19343         fstatvfs \
19344         ftruncate \
19345         futimes \
19346         futimesat \
19347         getaddrinfo \
19348         getnameinfo \
19349         getnetbyname \
19350         getopt_long \
19351         getpagesize \
19352         getprotobyname \
19353         getprotobynumber \
19354         getpwuid \
19355         getservbyport \
19356         gettid \
19357         gettimeofday \
19358         getuid \
19359         inet_network \
19360         kqueue \
19361         lstat \
19362         memmove \
19363         mmap \
19364         pclose \
19365         poll \
19366         popen \
19367         prctl \
19368         pread \
19369         pwrite \
19370         readlink \
19371         rfork \
19372         sched_yield \
19373         select \
19374         sendmsg \
19375         setrlimit \
19376         settimeofday \
19377         sigaltstack \
19378         sigprocmask \
19379         snprintf \
19380         spawnvp \
19381         statfs \
19382         statvfs \
19383         strcasecmp \
19384         strerror \
19385         strncasecmp \
19386         tcgetattr \
19387         timegm \
19388         usleep \
19389         vsnprintf \
19390         wait4 \
19391         waitpid \
19392
19393 do
19394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19398   echo $ECHO_N "(cached) $ECHO_C" >&6
19399 else
19400   cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19408 #define $ac_func innocuous_$ac_func
19409
19410 /* System header to define __stub macros and hopefully few prototypes,
19411     which can conflict with char $ac_func (); below.
19412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19413     <limits.h> exists even on freestanding compilers.  */
19414
19415 #ifdef __STDC__
19416 # include <limits.h>
19417 #else
19418 # include <assert.h>
19419 #endif
19420
19421 #undef $ac_func
19422
19423 /* Override any GCC internal prototype to avoid an error.
19424    Use char because int might match the return type of a GCC
19425    builtin and then its argument prototype would still apply.  */
19426 #ifdef __cplusplus
19427 extern "C"
19428 #endif
19429 char $ac_func ();
19430 /* The GNU C library defines this for functions which it implements
19431     to always fail with ENOSYS.  Some functions are actually named
19432     something starting with __ and the normal name is an alias.  */
19433 #if defined __stub_$ac_func || defined __stub___$ac_func
19434 choke me
19435 #endif
19436
19437 int
19438 main ()
19439 {
19440 return $ac_func ();
19441   ;
19442   return 0;
19443 }
19444 _ACEOF
19445 rm -f conftest.$ac_objext conftest$ac_exeext
19446 if { (ac_try="$ac_link"
19447 case "(($ac_try" in
19448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449   *) ac_try_echo=$ac_try;;
19450 esac
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452   (eval "$ac_link") 2>conftest.er1
19453   ac_status=$?
19454   grep -v '^ *+' conftest.er1 >conftest.err
19455   rm -f conftest.er1
19456   cat conftest.err >&5
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } &&
19459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19460   { (case "(($ac_try" in
19461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462   *) ac_try_echo=$ac_try;;
19463 esac
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465   (eval "$ac_try") 2>&5
19466   ac_status=$?
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); }; } &&
19469          { ac_try='test -s conftest$ac_exeext'
19470   { (case "(($ac_try" in
19471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472   *) ac_try_echo=$ac_try;;
19473 esac
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475   (eval "$ac_try") 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }; }; then
19479   eval "$as_ac_var=yes"
19480 else
19481   echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19483
19484         eval "$as_ac_var=no"
19485 fi
19486
19487 rm -f core conftest.err conftest.$ac_objext \
19488       conftest$ac_exeext conftest.$ac_ext
19489 fi
19490 ac_res=`eval echo '${'$as_ac_var'}'`
19491                { echo "$as_me:$LINENO: result: $ac_res" >&5
19492 echo "${ECHO_T}$ac_res" >&6; }
19493 if test `eval echo '${'$as_ac_var'}'` = yes; then
19494   cat >>confdefs.h <<_ACEOF
19495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19496 _ACEOF
19497
19498 fi
19499 done
19500
19501
19502 if test "$ac_cv_func_poll" = no
19503 then
19504     { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
19505 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
19506 if test "${ac_cv_lib_poll_poll+set}" = set; then
19507   echo $ECHO_N "(cached) $ECHO_C" >&6
19508 else
19509   ac_check_lib_save_LIBS=$LIBS
19510 LIBS="-lpoll  $LIBS"
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h.  */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h.  */
19517
19518 /* Override any GCC internal prototype to avoid an error.
19519    Use char because int might match the return type of a GCC
19520    builtin and then its argument prototype would still apply.  */
19521 #ifdef __cplusplus
19522 extern "C"
19523 #endif
19524 char poll ();
19525 int
19526 main ()
19527 {
19528 return poll ();
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_link") 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19548   { (case "(($ac_try" in
19549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550   *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553   (eval "$ac_try") 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; } &&
19557          { ac_try='test -s conftest$ac_exeext'
19558   { (case "(($ac_try" in
19559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560   *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563   (eval "$ac_try") 2>&5
19564   ac_status=$?
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); }; }; then
19567   ac_cv_lib_poll_poll=yes
19568 else
19569   echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572         ac_cv_lib_poll_poll=no
19573 fi
19574
19575 rm -f core conftest.err conftest.$ac_objext \
19576       conftest$ac_exeext conftest.$ac_ext
19577 LIBS=$ac_check_lib_save_LIBS
19578 fi
19579 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
19580 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
19581 if test $ac_cv_lib_poll_poll = yes; then
19582   cat >>confdefs.h <<\_ACEOF
19583 #define HAVE_POLL 1
19584 _ACEOF
19585  LIBPOLL="-lpoll"
19586
19587 fi
19588
19589 fi
19590
19591
19592 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19593 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19594 if test "${ac_cv_c_const+set}" = set; then
19595   echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597   cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h.  */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h.  */
19603
19604 int
19605 main ()
19606 {
19607 /* FIXME: Include the comments suggested by Paul. */
19608 #ifndef __cplusplus
19609   /* Ultrix mips cc rejects this.  */
19610   typedef int charset[2];
19611   const charset x;
19612   /* SunOS 4.1.1 cc rejects this.  */
19613   char const *const *ccp;
19614   char **p;
19615   /* NEC SVR4.0.2 mips cc rejects this.  */
19616   struct point {int x, y;};
19617   static struct point const zero = {0,0};
19618   /* AIX XL C 1.02.0.0 rejects this.
19619      It does not let you subtract one const X* pointer from another in
19620      an arm of an if-expression whose if-part is not a constant
19621      expression */
19622   const char *g = "string";
19623   ccp = &g + (g ? g-g : 0);
19624   /* HPUX 7.0 cc rejects these. */
19625   ++ccp;
19626   p = (char**) ccp;
19627   ccp = (char const *const *) p;
19628   { /* SCO 3.2v4 cc rejects this.  */
19629     char *t;
19630     char const *s = 0 ? (char *) 0 : (char const *) 0;
19631
19632     *t++ = 0;
19633     if (s) return 0;
19634   }
19635   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19636     int x[] = {25, 17};
19637     const int *foo = &x[0];
19638     ++foo;
19639   }
19640   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19641     typedef const int *iptr;
19642     iptr p = 0;
19643     ++p;
19644   }
19645   { /* AIX XL C 1.02.0.0 rejects this saying
19646        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19647     struct s { int j; const int *ap[3]; };
19648     struct s *b; b->j = 5;
19649   }
19650   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19651     const int foo = 10;
19652     if (!foo) return 0;
19653   }
19654   return !x[0] && !zero.x;
19655 #endif
19656
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest.$ac_objext
19662 if { (ac_try="$ac_compile"
19663 case "(($ac_try" in
19664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665   *) ac_try_echo=$ac_try;;
19666 esac
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668   (eval "$ac_compile") 2>conftest.er1
19669   ac_status=$?
19670   grep -v '^ *+' conftest.er1 >conftest.err
19671   rm -f conftest.er1
19672   cat conftest.err >&5
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); } &&
19675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19676   { (case "(($ac_try" in
19677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678   *) ac_try_echo=$ac_try;;
19679 esac
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681   (eval "$ac_try") 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); }; } &&
19685          { ac_try='test -s conftest.$ac_objext'
19686   { (case "(($ac_try" in
19687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688   *) ac_try_echo=$ac_try;;
19689 esac
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691   (eval "$ac_try") 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); }; }; then
19695   ac_cv_c_const=yes
19696 else
19697   echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19699
19700         ac_cv_c_const=no
19701 fi
19702
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704 fi
19705 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19706 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19707 if test $ac_cv_c_const = no; then
19708
19709 cat >>confdefs.h <<\_ACEOF
19710 #define const
19711 _ACEOF
19712
19713 fi
19714
19715 { echo "$as_me:$LINENO: checking for inline" >&5
19716 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19717 if test "${ac_cv_c_inline+set}" = set; then
19718   echo $ECHO_N "(cached) $ECHO_C" >&6
19719 else
19720   ac_cv_c_inline=no
19721 for ac_kw in inline __inline__ __inline; do
19722   cat >conftest.$ac_ext <<_ACEOF
19723 /* confdefs.h.  */
19724 _ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h.  */
19728 #ifndef __cplusplus
19729 typedef int foo_t;
19730 static $ac_kw foo_t static_foo () {return 0; }
19731 $ac_kw foo_t foo () {return 0; }
19732 #endif
19733
19734 _ACEOF
19735 rm -f conftest.$ac_objext
19736 if { (ac_try="$ac_compile"
19737 case "(($ac_try" in
19738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739   *) ac_try_echo=$ac_try;;
19740 esac
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742   (eval "$ac_compile") 2>conftest.er1
19743   ac_status=$?
19744   grep -v '^ *+' conftest.er1 >conftest.err
19745   rm -f conftest.er1
19746   cat conftest.err >&5
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); } &&
19749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19750   { (case "(($ac_try" in
19751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752   *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755   (eval "$ac_try") 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); }; } &&
19759          { ac_try='test -s conftest.$ac_objext'
19760   { (case "(($ac_try" in
19761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762   *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765   (eval "$ac_try") 2>&5
19766   ac_status=$?
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); }; }; then
19769   ac_cv_c_inline=$ac_kw
19770 else
19771   echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.$ac_ext >&5
19773
19774
19775 fi
19776
19777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19778   test "$ac_cv_c_inline" != no && break
19779 done
19780
19781 fi
19782 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19783 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19784
19785
19786 case $ac_cv_c_inline in
19787   inline | yes) ;;
19788   *)
19789     case $ac_cv_c_inline in
19790       no) ac_val=;;
19791       *) ac_val=$ac_cv_c_inline;;
19792     esac
19793     cat >>confdefs.h <<_ACEOF
19794 #ifndef __cplusplus
19795 #define inline $ac_val
19796 #endif
19797 _ACEOF
19798     ;;
19799 esac
19800
19801 { echo "$as_me:$LINENO: checking for mode_t" >&5
19802 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
19803 if test "${ac_cv_type_mode_t+set}" = set; then
19804   echo $ECHO_N "(cached) $ECHO_C" >&6
19805 else
19806   cat >conftest.$ac_ext <<_ACEOF
19807 /* confdefs.h.  */
19808 _ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h.  */
19812 $ac_includes_default
19813 typedef mode_t ac__type_new_;
19814 int
19815 main ()
19816 {
19817 if ((ac__type_new_ *) 0)
19818   return 0;
19819 if (sizeof (ac__type_new_))
19820   return 0;
19821   ;
19822   return 0;
19823 }
19824 _ACEOF
19825 rm -f conftest.$ac_objext
19826 if { (ac_try="$ac_compile"
19827 case "(($ac_try" in
19828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829   *) ac_try_echo=$ac_try;;
19830 esac
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832   (eval "$ac_compile") 2>conftest.er1
19833   ac_status=$?
19834   grep -v '^ *+' conftest.er1 >conftest.err
19835   rm -f conftest.er1
19836   cat conftest.err >&5
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); } &&
19839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19840   { (case "(($ac_try" in
19841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842   *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845   (eval "$ac_try") 2>&5
19846   ac_status=$?
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); }; } &&
19849          { ac_try='test -s conftest.$ac_objext'
19850   { (case "(($ac_try" in
19851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852   *) ac_try_echo=$ac_try;;
19853 esac
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855   (eval "$ac_try") 2>&5
19856   ac_status=$?
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); }; }; then
19859   ac_cv_type_mode_t=yes
19860 else
19861   echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864         ac_cv_type_mode_t=no
19865 fi
19866
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 fi
19869 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19870 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
19871 if test $ac_cv_type_mode_t = yes; then
19872
19873 cat >>confdefs.h <<_ACEOF
19874 #define HAVE_MODE_T 1
19875 _ACEOF
19876
19877
19878 fi
19879 { echo "$as_me:$LINENO: checking for off_t" >&5
19880 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
19881 if test "${ac_cv_type_off_t+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884   cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h.  */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h.  */
19890 $ac_includes_default
19891 typedef off_t ac__type_new_;
19892 int
19893 main ()
19894 {
19895 if ((ac__type_new_ *) 0)
19896   return 0;
19897 if (sizeof (ac__type_new_))
19898   return 0;
19899   ;
19900   return 0;
19901 }
19902 _ACEOF
19903 rm -f conftest.$ac_objext
19904 if { (ac_try="$ac_compile"
19905 case "(($ac_try" in
19906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907   *) ac_try_echo=$ac_try;;
19908 esac
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910   (eval "$ac_compile") 2>conftest.er1
19911   ac_status=$?
19912   grep -v '^ *+' conftest.er1 >conftest.err
19913   rm -f conftest.er1
19914   cat conftest.err >&5
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } &&
19917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19918   { (case "(($ac_try" in
19919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920   *) ac_try_echo=$ac_try;;
19921 esac
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923   (eval "$ac_try") 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); }; } &&
19927          { ac_try='test -s conftest.$ac_objext'
19928   { (case "(($ac_try" in
19929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930   *) ac_try_echo=$ac_try;;
19931 esac
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933   (eval "$ac_try") 2>&5
19934   ac_status=$?
19935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936   (exit $ac_status); }; }; then
19937   ac_cv_type_off_t=yes
19938 else
19939   echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942         ac_cv_type_off_t=no
19943 fi
19944
19945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946 fi
19947 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19948 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
19949 if test $ac_cv_type_off_t = yes; then
19950
19951 cat >>confdefs.h <<_ACEOF
19952 #define HAVE_OFF_T 1
19953 _ACEOF
19954
19955
19956 fi
19957 { echo "$as_me:$LINENO: checking for pid_t" >&5
19958 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19959 if test "${ac_cv_type_pid_t+set}" = set; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962   cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 $ac_includes_default
19969 typedef pid_t ac__type_new_;
19970 int
19971 main ()
19972 {
19973 if ((ac__type_new_ *) 0)
19974   return 0;
19975 if (sizeof (ac__type_new_))
19976   return 0;
19977   ;
19978   return 0;
19979 }
19980 _ACEOF
19981 rm -f conftest.$ac_objext
19982 if { (ac_try="$ac_compile"
19983 case "(($ac_try" in
19984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985   *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988   (eval "$ac_compile") 2>conftest.er1
19989   ac_status=$?
19990   grep -v '^ *+' conftest.er1 >conftest.err
19991   rm -f conftest.er1
19992   cat conftest.err >&5
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } &&
19995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19996   { (case "(($ac_try" in
19997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998   *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001   (eval "$ac_try") 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; } &&
20005          { ac_try='test -s conftest.$ac_objext'
20006   { (case "(($ac_try" in
20007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008   *) ac_try_echo=$ac_try;;
20009 esac
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011   (eval "$ac_try") 2>&5
20012   ac_status=$?
20013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014   (exit $ac_status); }; }; then
20015   ac_cv_type_pid_t=yes
20016 else
20017   echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20019
20020         ac_cv_type_pid_t=no
20021 fi
20022
20023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 fi
20025 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20026 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20027 if test $ac_cv_type_pid_t = yes; then
20028
20029 cat >>confdefs.h <<_ACEOF
20030 #define HAVE_PID_T 1
20031 _ACEOF
20032
20033
20034 fi
20035 { echo "$as_me:$LINENO: checking for size_t" >&5
20036 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20037 if test "${ac_cv_type_size_t+set}" = set; then
20038   echo $ECHO_N "(cached) $ECHO_C" >&6
20039 else
20040   cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046 $ac_includes_default
20047 typedef size_t ac__type_new_;
20048 int
20049 main ()
20050 {
20051 if ((ac__type_new_ *) 0)
20052   return 0;
20053 if (sizeof (ac__type_new_))
20054   return 0;
20055   ;
20056   return 0;
20057 }
20058 _ACEOF
20059 rm -f conftest.$ac_objext
20060 if { (ac_try="$ac_compile"
20061 case "(($ac_try" in
20062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063   *) ac_try_echo=$ac_try;;
20064 esac
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066   (eval "$ac_compile") 2>conftest.er1
20067   ac_status=$?
20068   grep -v '^ *+' conftest.er1 >conftest.err
20069   rm -f conftest.er1
20070   cat conftest.err >&5
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); } &&
20073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20074   { (case "(($ac_try" in
20075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076   *) ac_try_echo=$ac_try;;
20077 esac
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079   (eval "$ac_try") 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; } &&
20083          { ac_try='test -s conftest.$ac_objext'
20084   { (case "(($ac_try" in
20085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086   *) ac_try_echo=$ac_try;;
20087 esac
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089   (eval "$ac_try") 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); }; }; then
20093   ac_cv_type_size_t=yes
20094 else
20095   echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20097
20098         ac_cv_type_size_t=no
20099 fi
20100
20101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 fi
20103 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20104 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20105 if test $ac_cv_type_size_t = yes; then
20106
20107 cat >>confdefs.h <<_ACEOF
20108 #define HAVE_SIZE_T 1
20109 _ACEOF
20110
20111
20112 fi
20113 { echo "$as_me:$LINENO: checking for ssize_t" >&5
20114 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
20115 if test "${ac_cv_type_ssize_t+set}" = set; then
20116   echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118   cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124 $ac_includes_default
20125 typedef ssize_t ac__type_new_;
20126 int
20127 main ()
20128 {
20129 if ((ac__type_new_ *) 0)
20130   return 0;
20131 if (sizeof (ac__type_new_))
20132   return 0;
20133   ;
20134   return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest.$ac_objext
20138 if { (ac_try="$ac_compile"
20139 case "(($ac_try" in
20140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141   *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144   (eval "$ac_compile") 2>conftest.er1
20145   ac_status=$?
20146   grep -v '^ *+' conftest.er1 >conftest.err
20147   rm -f conftest.er1
20148   cat conftest.err >&5
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); } &&
20151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20152   { (case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157   (eval "$ac_try") 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; } &&
20161          { ac_try='test -s conftest.$ac_objext'
20162   { (case "(($ac_try" in
20163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20164   *) ac_try_echo=$ac_try;;
20165 esac
20166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20167   (eval "$ac_try") 2>&5
20168   ac_status=$?
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); }; }; then
20171   ac_cv_type_ssize_t=yes
20172 else
20173   echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176         ac_cv_type_ssize_t=no
20177 fi
20178
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 fi
20181 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20182 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
20183 if test $ac_cv_type_ssize_t = yes; then
20184
20185 cat >>confdefs.h <<_ACEOF
20186 #define HAVE_SSIZE_T 1
20187 _ACEOF
20188
20189
20190 fi
20191 { echo "$as_me:$LINENO: checking for long long" >&5
20192 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20193 if test "${ac_cv_type_long_long+set}" = set; then
20194   echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196   cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202 $ac_includes_default
20203 typedef long long ac__type_new_;
20204 int
20205 main ()
20206 {
20207 if ((ac__type_new_ *) 0)
20208   return 0;
20209 if (sizeof (ac__type_new_))
20210   return 0;
20211   ;
20212   return 0;
20213 }
20214 _ACEOF
20215 rm -f conftest.$ac_objext
20216 if { (ac_try="$ac_compile"
20217 case "(($ac_try" in
20218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219   *) ac_try_echo=$ac_try;;
20220 esac
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222   (eval "$ac_compile") 2>conftest.er1
20223   ac_status=$?
20224   grep -v '^ *+' conftest.er1 >conftest.err
20225   rm -f conftest.er1
20226   cat conftest.err >&5
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); } &&
20229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20230   { (case "(($ac_try" in
20231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232   *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235   (eval "$ac_try") 2>&5
20236   ac_status=$?
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); }; } &&
20239          { ac_try='test -s conftest.$ac_objext'
20240   { (case "(($ac_try" in
20241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242   *) ac_try_echo=$ac_try;;
20243 esac
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245   (eval "$ac_try") 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }; }; then
20249   ac_cv_type_long_long=yes
20250 else
20251   echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254         ac_cv_type_long_long=no
20255 fi
20256
20257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20258 fi
20259 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20260 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20261 if test $ac_cv_type_long_long = yes; then
20262
20263 cat >>confdefs.h <<_ACEOF
20264 #define HAVE_LONG_LONG 1
20265 _ACEOF
20266
20267
20268 fi
20269 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
20270 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
20271 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
20272   echo $ECHO_N "(cached) $ECHO_C" >&6
20273 else
20274   cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280 $ac_includes_default
20281 typedef fsblkcnt_t ac__type_new_;
20282 int
20283 main ()
20284 {
20285 if ((ac__type_new_ *) 0)
20286   return 0;
20287 if (sizeof (ac__type_new_))
20288   return 0;
20289   ;
20290   return 0;
20291 }
20292 _ACEOF
20293 rm -f conftest.$ac_objext
20294 if { (ac_try="$ac_compile"
20295 case "(($ac_try" in
20296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297   *) ac_try_echo=$ac_try;;
20298 esac
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300   (eval "$ac_compile") 2>conftest.er1
20301   ac_status=$?
20302   grep -v '^ *+' conftest.er1 >conftest.err
20303   rm -f conftest.er1
20304   cat conftest.err >&5
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); } &&
20307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20308   { (case "(($ac_try" in
20309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310   *) ac_try_echo=$ac_try;;
20311 esac
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313   (eval "$ac_try") 2>&5
20314   ac_status=$?
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); }; } &&
20317          { ac_try='test -s conftest.$ac_objext'
20318   { (case "(($ac_try" in
20319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320   *) ac_try_echo=$ac_try;;
20321 esac
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323   (eval "$ac_try") 2>&5
20324   ac_status=$?
20325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326   (exit $ac_status); }; }; then
20327   ac_cv_type_fsblkcnt_t=yes
20328 else
20329   echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20331
20332         ac_cv_type_fsblkcnt_t=no
20333 fi
20334
20335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20336 fi
20337 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
20338 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
20339 if test $ac_cv_type_fsblkcnt_t = yes; then
20340
20341 cat >>confdefs.h <<_ACEOF
20342 #define HAVE_FSBLKCNT_T 1
20343 _ACEOF
20344
20345
20346 fi
20347 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
20348 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
20349 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
20350   echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352   cat >conftest.$ac_ext <<_ACEOF
20353 /* confdefs.h.  */
20354 _ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h.  */
20358 $ac_includes_default
20359 typedef fsfilcnt_t ac__type_new_;
20360 int
20361 main ()
20362 {
20363 if ((ac__type_new_ *) 0)
20364   return 0;
20365 if (sizeof (ac__type_new_))
20366   return 0;
20367   ;
20368   return 0;
20369 }
20370 _ACEOF
20371 rm -f conftest.$ac_objext
20372 if { (ac_try="$ac_compile"
20373 case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_compile") 2>conftest.er1
20379   ac_status=$?
20380   grep -v '^ *+' conftest.er1 >conftest.err
20381   rm -f conftest.er1
20382   cat conftest.err >&5
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } &&
20385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20386   { (case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391   (eval "$ac_try") 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); }; } &&
20395          { ac_try='test -s conftest.$ac_objext'
20396   { (case "(($ac_try" in
20397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398   *) ac_try_echo=$ac_try;;
20399 esac
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401   (eval "$ac_try") 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); }; }; then
20405   ac_cv_type_fsfilcnt_t=yes
20406 else
20407   echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410         ac_cv_type_fsfilcnt_t=no
20411 fi
20412
20413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20414 fi
20415 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20416 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
20417 if test $ac_cv_type_fsfilcnt_t = yes; then
20418
20419 cat >>confdefs.h <<_ACEOF
20420 #define HAVE_FSFILCNT_T 1
20421 _ACEOF
20422
20423
20424 fi
20425
20426 { echo "$as_me:$LINENO: checking for sigset_t" >&5
20427 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
20428 if test "${ac_cv_type_sigset_t+set}" = set; then
20429   echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431   cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h.  */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h.  */
20437 #include <signal.h>
20438
20439 typedef sigset_t ac__type_new_;
20440 int
20441 main ()
20442 {
20443 if ((ac__type_new_ *) 0)
20444   return 0;
20445 if (sizeof (ac__type_new_))
20446   return 0;
20447   ;
20448   return 0;
20449 }
20450 _ACEOF
20451 rm -f conftest.$ac_objext
20452 if { (ac_try="$ac_compile"
20453 case "(($ac_try" in
20454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455   *) ac_try_echo=$ac_try;;
20456 esac
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458   (eval "$ac_compile") 2>conftest.er1
20459   ac_status=$?
20460   grep -v '^ *+' conftest.er1 >conftest.err
20461   rm -f conftest.er1
20462   cat conftest.err >&5
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); } &&
20465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20466   { (case "(($ac_try" in
20467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468   *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471   (eval "$ac_try") 2>&5
20472   ac_status=$?
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); }; } &&
20475          { ac_try='test -s conftest.$ac_objext'
20476   { (case "(($ac_try" in
20477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478   *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481   (eval "$ac_try") 2>&5
20482   ac_status=$?
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); }; }; then
20485   ac_cv_type_sigset_t=yes
20486 else
20487   echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490         ac_cv_type_sigset_t=no
20491 fi
20492
20493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20494 fi
20495 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20496 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
20497 if test $ac_cv_type_sigset_t = yes; then
20498
20499 cat >>confdefs.h <<_ACEOF
20500 #define HAVE_SIGSET_T 1
20501 _ACEOF
20502
20503
20504 fi
20505
20506 { echo "$as_me:$LINENO: checking for request_sense" >&5
20507 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
20508 if test "${ac_cv_type_request_sense+set}" = set; then
20509   echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511   cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h.  */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h.  */
20517 #include <linux/cdrom.h>
20518
20519 typedef request_sense ac__type_new_;
20520 int
20521 main ()
20522 {
20523 if ((ac__type_new_ *) 0)
20524   return 0;
20525 if (sizeof (ac__type_new_))
20526   return 0;
20527   ;
20528   return 0;
20529 }
20530 _ACEOF
20531 rm -f conftest.$ac_objext
20532 if { (ac_try="$ac_compile"
20533 case "(($ac_try" in
20534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535   *) ac_try_echo=$ac_try;;
20536 esac
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538   (eval "$ac_compile") 2>conftest.er1
20539   ac_status=$?
20540   grep -v '^ *+' conftest.er1 >conftest.err
20541   rm -f conftest.er1
20542   cat conftest.err >&5
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); } &&
20545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20546   { (case "(($ac_try" in
20547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548   *) ac_try_echo=$ac_try;;
20549 esac
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551   (eval "$ac_try") 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); }; } &&
20555          { ac_try='test -s conftest.$ac_objext'
20556   { (case "(($ac_try" in
20557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558   *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561   (eval "$ac_try") 2>&5
20562   ac_status=$?
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); }; }; then
20565   ac_cv_type_request_sense=yes
20566 else
20567   echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20569
20570         ac_cv_type_request_sense=no
20571 fi
20572
20573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20574 fi
20575 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20576 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
20577 if test $ac_cv_type_request_sense = yes; then
20578
20579 cat >>confdefs.h <<_ACEOF
20580 #define HAVE_REQUEST_SENSE 1
20581 _ACEOF
20582
20583
20584 fi
20585
20586
20587 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20588 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
20589 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20590   echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592   cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h.  */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h.  */
20598 #ifdef HAVE_LINUX_INPUT_H
20599 #include <linux/input.h>
20600 #endif
20601
20602 int
20603 main ()
20604 {
20605 static struct ff_effect ac_aggr;
20606 if (ac_aggr.direction)
20607 return 0;
20608   ;
20609   return 0;
20610 }
20611 _ACEOF
20612 rm -f conftest.$ac_objext
20613 if { (ac_try="$ac_compile"
20614 case "(($ac_try" in
20615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616   *) ac_try_echo=$ac_try;;
20617 esac
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619   (eval "$ac_compile") 2>conftest.er1
20620   ac_status=$?
20621   grep -v '^ *+' conftest.er1 >conftest.err
20622   rm -f conftest.er1
20623   cat conftest.err >&5
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); } &&
20626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20627   { (case "(($ac_try" in
20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629   *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632   (eval "$ac_try") 2>&5
20633   ac_status=$?
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); }; } &&
20636          { ac_try='test -s conftest.$ac_objext'
20637   { (case "(($ac_try" in
20638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639   *) ac_try_echo=$ac_try;;
20640 esac
20641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642   (eval "$ac_try") 2>&5
20643   ac_status=$?
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); }; }; then
20646   ac_cv_member_struct_ff_effect_direction=yes
20647 else
20648   echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20650
20651         cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657 #ifdef HAVE_LINUX_INPUT_H
20658 #include <linux/input.h>
20659 #endif
20660
20661 int
20662 main ()
20663 {
20664 static struct ff_effect ac_aggr;
20665 if (sizeof ac_aggr.direction)
20666 return 0;
20667   ;
20668   return 0;
20669 }
20670 _ACEOF
20671 rm -f conftest.$ac_objext
20672 if { (ac_try="$ac_compile"
20673 case "(($ac_try" in
20674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675   *) ac_try_echo=$ac_try;;
20676 esac
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678   (eval "$ac_compile") 2>conftest.er1
20679   ac_status=$?
20680   grep -v '^ *+' conftest.er1 >conftest.err
20681   rm -f conftest.er1
20682   cat conftest.err >&5
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); } &&
20685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20686   { (case "(($ac_try" in
20687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688   *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691   (eval "$ac_try") 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); }; } &&
20695          { ac_try='test -s conftest.$ac_objext'
20696   { (case "(($ac_try" in
20697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698   *) ac_try_echo=$ac_try;;
20699 esac
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701   (eval "$ac_try") 2>&5
20702   ac_status=$?
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); }; }; then
20705   ac_cv_member_struct_ff_effect_direction=yes
20706 else
20707   echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20709
20710         ac_cv_member_struct_ff_effect_direction=no
20711 fi
20712
20713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20714 fi
20715
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 fi
20718 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20719 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
20720 if test $ac_cv_member_struct_ff_effect_direction = yes; then
20721
20722 cat >>confdefs.h <<_ACEOF
20723 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20724 _ACEOF
20725
20726
20727 fi
20728
20729
20730 { echo "$as_me:$LINENO: checking for sigaddset" >&5
20731 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
20732 if test "${wine_cv_have_sigaddset+set}" = set; then
20733   echo $ECHO_N "(cached) $ECHO_C" >&6
20734 else
20735   cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h.  */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h.  */
20741 #include <signal.h>
20742 int
20743 main ()
20744 {
20745 sigset_t set; sigaddset(&set,SIGTERM);
20746   ;
20747   return 0;
20748 }
20749 _ACEOF
20750 rm -f conftest.$ac_objext conftest$ac_exeext
20751 if { (ac_try="$ac_link"
20752 case "(($ac_try" in
20753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754   *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757   (eval "$ac_link") 2>conftest.er1
20758   ac_status=$?
20759   grep -v '^ *+' conftest.er1 >conftest.err
20760   rm -f conftest.er1
20761   cat conftest.err >&5
20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763   (exit $ac_status); } &&
20764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20765   { (case "(($ac_try" in
20766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767   *) ac_try_echo=$ac_try;;
20768 esac
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770   (eval "$ac_try") 2>&5
20771   ac_status=$?
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); }; } &&
20774          { ac_try='test -s conftest$ac_exeext'
20775   { (case "(($ac_try" in
20776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777   *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780   (eval "$ac_try") 2>&5
20781   ac_status=$?
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); }; }; then
20784   wine_cv_have_sigaddset=yes
20785 else
20786   echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789         wine_cv_have_sigaddset=no
20790 fi
20791
20792 rm -f core conftest.err conftest.$ac_objext \
20793       conftest$ac_exeext conftest.$ac_ext
20794 fi
20795 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20796 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
20797 if test "$wine_cv_have_sigaddset" = "yes"
20798 then
20799
20800 cat >>confdefs.h <<\_ACEOF
20801 #define HAVE_SIGADDSET 1
20802 _ACEOF
20803
20804 fi
20805
20806
20807 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20808 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
20809 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20810   echo $ECHO_N "(cached) $ECHO_C" >&6
20811 else
20812   cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h.  */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h.  */
20818
20819 #include <netdb.h>
20820
20821 int
20822 main ()
20823 {
20824
20825     char *name=NULL;
20826     struct hostent he;
20827     struct hostent *result;
20828     char *buf=NULL;
20829     int bufsize=0;
20830     int res,errnr;
20831     char *addr=NULL;
20832     int addrlen=0;
20833     int addrtype=0;
20834     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20835     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
20836
20837   ;
20838   return 0;
20839 }
20840 _ACEOF
20841 rm -f conftest.$ac_objext conftest$ac_exeext
20842 if { (ac_try="$ac_link"
20843 case "(($ac_try" in
20844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845   *) ac_try_echo=$ac_try;;
20846 esac
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848   (eval "$ac_link") 2>conftest.er1
20849   ac_status=$?
20850   grep -v '^ *+' conftest.er1 >conftest.err
20851   rm -f conftest.er1
20852   cat conftest.err >&5
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); } &&
20855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20856   { (case "(($ac_try" in
20857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858   *) ac_try_echo=$ac_try;;
20859 esac
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861   (eval "$ac_try") 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); }; } &&
20865          { ac_try='test -s conftest$ac_exeext'
20866   { (case "(($ac_try" in
20867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868   *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871   (eval "$ac_try") 2>&5
20872   ac_status=$?
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); }; }; then
20875   wine_cv_linux_gethostbyname_r_6=yes
20876 else
20877   echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880         wine_cv_linux_gethostbyname_r_6=no
20881
20882 fi
20883
20884 rm -f core conftest.err conftest.$ac_objext \
20885       conftest$ac_exeext conftest.$ac_ext
20886
20887 fi
20888 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20889 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
20890    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20891    then
20892
20893 cat >>confdefs.h <<\_ACEOF
20894 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
20895 _ACEOF
20896
20897    fi
20898
20899 if test "$ac_cv_header_linux_joystick_h" = "yes"
20900 then
20901    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20902 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
20903 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20904   echo $ECHO_N "(cached) $ECHO_C" >&6
20905 else
20906   cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h.  */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h.  */
20912
20913         #include <sys/ioctl.h>
20914         #include <linux/joystick.h>
20915
20916         struct js_event blub;
20917         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20918         #error "no 2.2 header"
20919         #endif
20920
20921 int
20922 main ()
20923 {
20924 /*empty*/
20925   ;
20926   return 0;
20927 }
20928 _ACEOF
20929 rm -f conftest.$ac_objext
20930 if { (ac_try="$ac_compile"
20931 case "(($ac_try" in
20932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933   *) ac_try_echo=$ac_try;;
20934 esac
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936   (eval "$ac_compile") 2>conftest.er1
20937   ac_status=$?
20938   grep -v '^ *+' conftest.er1 >conftest.err
20939   rm -f conftest.er1
20940   cat conftest.err >&5
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); } &&
20943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20944   { (case "(($ac_try" in
20945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946   *) ac_try_echo=$ac_try;;
20947 esac
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949   (eval "$ac_try") 2>&5
20950   ac_status=$?
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); }; } &&
20953          { ac_try='test -s conftest.$ac_objext'
20954   { (case "(($ac_try" in
20955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956   *) ac_try_echo=$ac_try;;
20957 esac
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959   (eval "$ac_try") 2>&5
20960   ac_status=$?
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); }; }; then
20963   wine_cv_linux_joystick_22_api=yes
20964 else
20965   echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968         wine_cv_linux_joystick_22_api=no
20969 fi
20970
20971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20972
20973 fi
20974 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20975 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
20976    if test "$wine_cv_linux_joystick_22_api" = "yes"
20977    then
20978
20979 cat >>confdefs.h <<\_ACEOF
20980 #define HAVE_LINUX_22_JOYSTICK_API 1
20981 _ACEOF
20982
20983    fi
20984 fi
20985
20986
20987 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20988 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
20989 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
20990   echo $ECHO_N "(cached) $ECHO_C" >&6
20991 else
20992   cat >conftest.$ac_ext <<_ACEOF
20993 /* confdefs.h.  */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h.  */
20998 #include <sys/types.h>
20999 #ifdef HAVE_SYS_PARAM_H
21000 # include <sys/param.h>
21001 #endif
21002 #ifdef HAVE_SYS_MOUNT_H
21003 # include <sys/mount.h>
21004 #endif
21005 #ifdef HAVE_SYS_VFS_H
21006 # include <sys/vfs.h>
21007 #endif
21008 #ifdef HAVE_SYS_STATFS_H
21009 # include <sys/statfs.h>
21010 #endif
21011
21012 int
21013 main ()
21014 {
21015 static struct statfs ac_aggr;
21016 if (ac_aggr.f_bfree)
21017 return 0;
21018   ;
21019   return 0;
21020 }
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (ac_try="$ac_compile"
21024 case "(($ac_try" in
21025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026   *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029   (eval "$ac_compile") 2>conftest.er1
21030   ac_status=$?
21031   grep -v '^ *+' conftest.er1 >conftest.err
21032   rm -f conftest.er1
21033   cat conftest.err >&5
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); } &&
21036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21037   { (case "(($ac_try" in
21038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039   *) ac_try_echo=$ac_try;;
21040 esac
21041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042   (eval "$ac_try") 2>&5
21043   ac_status=$?
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); }; } &&
21046          { ac_try='test -s conftest.$ac_objext'
21047   { (case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_try") 2>&5
21053   ac_status=$?
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); }; }; then
21056   ac_cv_member_struct_statfs_f_bfree=yes
21057 else
21058   echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21060
21061         cat >conftest.$ac_ext <<_ACEOF
21062 /* confdefs.h.  */
21063 _ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h.  */
21067 #include <sys/types.h>
21068 #ifdef HAVE_SYS_PARAM_H
21069 # include <sys/param.h>
21070 #endif
21071 #ifdef HAVE_SYS_MOUNT_H
21072 # include <sys/mount.h>
21073 #endif
21074 #ifdef HAVE_SYS_VFS_H
21075 # include <sys/vfs.h>
21076 #endif
21077 #ifdef HAVE_SYS_STATFS_H
21078 # include <sys/statfs.h>
21079 #endif
21080
21081 int
21082 main ()
21083 {
21084 static struct statfs ac_aggr;
21085 if (sizeof ac_aggr.f_bfree)
21086 return 0;
21087   ;
21088   return 0;
21089 }
21090 _ACEOF
21091 rm -f conftest.$ac_objext
21092 if { (ac_try="$ac_compile"
21093 case "(($ac_try" in
21094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095   *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098   (eval "$ac_compile") 2>conftest.er1
21099   ac_status=$?
21100   grep -v '^ *+' conftest.er1 >conftest.err
21101   rm -f conftest.er1
21102   cat conftest.err >&5
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); } &&
21105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21106   { (case "(($ac_try" in
21107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108   *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111   (eval "$ac_try") 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); }; } &&
21115          { ac_try='test -s conftest.$ac_objext'
21116   { (case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_try") 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); }; }; then
21125   ac_cv_member_struct_statfs_f_bfree=yes
21126 else
21127   echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130         ac_cv_member_struct_statfs_f_bfree=no
21131 fi
21132
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 fi
21135
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137 fi
21138 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
21139 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
21140 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
21141
21142 cat >>confdefs.h <<_ACEOF
21143 #define HAVE_STRUCT_STATFS_F_BFREE 1
21144 _ACEOF
21145
21146
21147 fi
21148 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
21149 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
21150 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
21151   echo $ECHO_N "(cached) $ECHO_C" >&6
21152 else
21153   cat >conftest.$ac_ext <<_ACEOF
21154 /* confdefs.h.  */
21155 _ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h.  */
21159 #include <sys/types.h>
21160 #ifdef HAVE_SYS_PARAM_H
21161 # include <sys/param.h>
21162 #endif
21163 #ifdef HAVE_SYS_MOUNT_H
21164 # include <sys/mount.h>
21165 #endif
21166 #ifdef HAVE_SYS_VFS_H
21167 # include <sys/vfs.h>
21168 #endif
21169 #ifdef HAVE_SYS_STATFS_H
21170 # include <sys/statfs.h>
21171 #endif
21172
21173 int
21174 main ()
21175 {
21176 static struct statfs ac_aggr;
21177 if (ac_aggr.f_bavail)
21178 return 0;
21179   ;
21180   return 0;
21181 }
21182 _ACEOF
21183 rm -f conftest.$ac_objext
21184 if { (ac_try="$ac_compile"
21185 case "(($ac_try" in
21186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187   *) ac_try_echo=$ac_try;;
21188 esac
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190   (eval "$ac_compile") 2>conftest.er1
21191   ac_status=$?
21192   grep -v '^ *+' conftest.er1 >conftest.err
21193   rm -f conftest.er1
21194   cat conftest.err >&5
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); } &&
21197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21198   { (case "(($ac_try" in
21199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200   *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203   (eval "$ac_try") 2>&5
21204   ac_status=$?
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); }; } &&
21207          { ac_try='test -s conftest.$ac_objext'
21208   { (case "(($ac_try" in
21209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210   *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213   (eval "$ac_try") 2>&5
21214   ac_status=$?
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); }; }; then
21217   ac_cv_member_struct_statfs_f_bavail=yes
21218 else
21219   echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21221
21222         cat >conftest.$ac_ext <<_ACEOF
21223 /* confdefs.h.  */
21224 _ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h.  */
21228 #include <sys/types.h>
21229 #ifdef HAVE_SYS_PARAM_H
21230 # include <sys/param.h>
21231 #endif
21232 #ifdef HAVE_SYS_MOUNT_H
21233 # include <sys/mount.h>
21234 #endif
21235 #ifdef HAVE_SYS_VFS_H
21236 # include <sys/vfs.h>
21237 #endif
21238 #ifdef HAVE_SYS_STATFS_H
21239 # include <sys/statfs.h>
21240 #endif
21241
21242 int
21243 main ()
21244 {
21245 static struct statfs ac_aggr;
21246 if (sizeof ac_aggr.f_bavail)
21247 return 0;
21248   ;
21249   return 0;
21250 }
21251 _ACEOF
21252 rm -f conftest.$ac_objext
21253 if { (ac_try="$ac_compile"
21254 case "(($ac_try" in
21255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256   *) ac_try_echo=$ac_try;;
21257 esac
21258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21259   (eval "$ac_compile") 2>conftest.er1
21260   ac_status=$?
21261   grep -v '^ *+' conftest.er1 >conftest.err
21262   rm -f conftest.er1
21263   cat conftest.err >&5
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); } &&
21266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21267   { (case "(($ac_try" in
21268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269   *) ac_try_echo=$ac_try;;
21270 esac
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272   (eval "$ac_try") 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); }; } &&
21276          { ac_try='test -s conftest.$ac_objext'
21277   { (case "(($ac_try" in
21278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279   *) ac_try_echo=$ac_try;;
21280 esac
21281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21282   (eval "$ac_try") 2>&5
21283   ac_status=$?
21284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285   (exit $ac_status); }; }; then
21286   ac_cv_member_struct_statfs_f_bavail=yes
21287 else
21288   echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21290
21291         ac_cv_member_struct_statfs_f_bavail=no
21292 fi
21293
21294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 fi
21296
21297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21298 fi
21299 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
21300 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
21301 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
21302
21303 cat >>confdefs.h <<_ACEOF
21304 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
21305 _ACEOF
21306
21307
21308 fi
21309 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
21310 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
21311 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
21312   echo $ECHO_N "(cached) $ECHO_C" >&6
21313 else
21314   cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h.  */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h.  */
21320 #include <sys/types.h>
21321 #ifdef HAVE_SYS_PARAM_H
21322 # include <sys/param.h>
21323 #endif
21324 #ifdef HAVE_SYS_MOUNT_H
21325 # include <sys/mount.h>
21326 #endif
21327 #ifdef HAVE_SYS_VFS_H
21328 # include <sys/vfs.h>
21329 #endif
21330 #ifdef HAVE_SYS_STATFS_H
21331 # include <sys/statfs.h>
21332 #endif
21333
21334 int
21335 main ()
21336 {
21337 static struct statfs ac_aggr;
21338 if (ac_aggr.f_frsize)
21339 return 0;
21340   ;
21341   return 0;
21342 }
21343 _ACEOF
21344 rm -f conftest.$ac_objext
21345 if { (ac_try="$ac_compile"
21346 case "(($ac_try" in
21347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348   *) ac_try_echo=$ac_try;;
21349 esac
21350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351   (eval "$ac_compile") 2>conftest.er1
21352   ac_status=$?
21353   grep -v '^ *+' conftest.er1 >conftest.err
21354   rm -f conftest.er1
21355   cat conftest.err >&5
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); } &&
21358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21359   { (case "(($ac_try" in
21360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361   *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364   (eval "$ac_try") 2>&5
21365   ac_status=$?
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); }; } &&
21368          { ac_try='test -s conftest.$ac_objext'
21369   { (case "(($ac_try" in
21370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371   *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374   (eval "$ac_try") 2>&5
21375   ac_status=$?
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); }; }; then
21378   ac_cv_member_struct_statfs_f_frsize=yes
21379 else
21380   echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383         cat >conftest.$ac_ext <<_ACEOF
21384 /* confdefs.h.  */
21385 _ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h.  */
21389 #include <sys/types.h>
21390 #ifdef HAVE_SYS_PARAM_H
21391 # include <sys/param.h>
21392 #endif
21393 #ifdef HAVE_SYS_MOUNT_H
21394 # include <sys/mount.h>
21395 #endif
21396 #ifdef HAVE_SYS_VFS_H
21397 # include <sys/vfs.h>
21398 #endif
21399 #ifdef HAVE_SYS_STATFS_H
21400 # include <sys/statfs.h>
21401 #endif
21402
21403 int
21404 main ()
21405 {
21406 static struct statfs ac_aggr;
21407 if (sizeof ac_aggr.f_frsize)
21408 return 0;
21409   ;
21410   return 0;
21411 }
21412 _ACEOF
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417   *) ac_try_echo=$ac_try;;
21418 esac
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420   (eval "$ac_compile") 2>conftest.er1
21421   ac_status=$?
21422   grep -v '^ *+' conftest.er1 >conftest.err
21423   rm -f conftest.er1
21424   cat conftest.err >&5
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } &&
21427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21428   { (case "(($ac_try" in
21429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430   *) ac_try_echo=$ac_try;;
21431 esac
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433   (eval "$ac_try") 2>&5
21434   ac_status=$?
21435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); }; } &&
21437          { ac_try='test -s conftest.$ac_objext'
21438   { (case "(($ac_try" in
21439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440   *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443   (eval "$ac_try") 2>&5
21444   ac_status=$?
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); }; }; then
21447   ac_cv_member_struct_statfs_f_frsize=yes
21448 else
21449   echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21451
21452         ac_cv_member_struct_statfs_f_frsize=no
21453 fi
21454
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 fi
21457
21458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21459 fi
21460 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21461 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
21462 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21463
21464 cat >>confdefs.h <<_ACEOF
21465 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
21466 _ACEOF
21467
21468
21469 fi
21470 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21471 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
21472 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21473   echo $ECHO_N "(cached) $ECHO_C" >&6
21474 else
21475   cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h.  */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h.  */
21481 #include <sys/types.h>
21482 #ifdef HAVE_SYS_PARAM_H
21483 # include <sys/param.h>
21484 #endif
21485 #ifdef HAVE_SYS_MOUNT_H
21486 # include <sys/mount.h>
21487 #endif
21488 #ifdef HAVE_SYS_VFS_H
21489 # include <sys/vfs.h>
21490 #endif
21491 #ifdef HAVE_SYS_STATFS_H
21492 # include <sys/statfs.h>
21493 #endif
21494
21495 int
21496 main ()
21497 {
21498 static struct statfs ac_aggr;
21499 if (ac_aggr.f_ffree)
21500 return 0;
21501   ;
21502   return 0;
21503 }
21504 _ACEOF
21505 rm -f conftest.$ac_objext
21506 if { (ac_try="$ac_compile"
21507 case "(($ac_try" in
21508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509   *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512   (eval "$ac_compile") 2>conftest.er1
21513   ac_status=$?
21514   grep -v '^ *+' conftest.er1 >conftest.err
21515   rm -f conftest.er1
21516   cat conftest.err >&5
21517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518   (exit $ac_status); } &&
21519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21520   { (case "(($ac_try" in
21521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522   *) ac_try_echo=$ac_try;;
21523 esac
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525   (eval "$ac_try") 2>&5
21526   ac_status=$?
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); }; } &&
21529          { ac_try='test -s conftest.$ac_objext'
21530   { (case "(($ac_try" in
21531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532   *) ac_try_echo=$ac_try;;
21533 esac
21534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21535   (eval "$ac_try") 2>&5
21536   ac_status=$?
21537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538   (exit $ac_status); }; }; then
21539   ac_cv_member_struct_statfs_f_ffree=yes
21540 else
21541   echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544         cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h.  */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h.  */
21550 #include <sys/types.h>
21551 #ifdef HAVE_SYS_PARAM_H
21552 # include <sys/param.h>
21553 #endif
21554 #ifdef HAVE_SYS_MOUNT_H
21555 # include <sys/mount.h>
21556 #endif
21557 #ifdef HAVE_SYS_VFS_H
21558 # include <sys/vfs.h>
21559 #endif
21560 #ifdef HAVE_SYS_STATFS_H
21561 # include <sys/statfs.h>
21562 #endif
21563
21564 int
21565 main ()
21566 {
21567 static struct statfs ac_aggr;
21568 if (sizeof ac_aggr.f_ffree)
21569 return 0;
21570   ;
21571   return 0;
21572 }
21573 _ACEOF
21574 rm -f conftest.$ac_objext
21575 if { (ac_try="$ac_compile"
21576 case "(($ac_try" in
21577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578   *) ac_try_echo=$ac_try;;
21579 esac
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581   (eval "$ac_compile") 2>conftest.er1
21582   ac_status=$?
21583   grep -v '^ *+' conftest.er1 >conftest.err
21584   rm -f conftest.er1
21585   cat conftest.err >&5
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); } &&
21588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21589   { (case "(($ac_try" in
21590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591   *) ac_try_echo=$ac_try;;
21592 esac
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594   (eval "$ac_try") 2>&5
21595   ac_status=$?
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); }; } &&
21598          { ac_try='test -s conftest.$ac_objext'
21599   { (case "(($ac_try" in
21600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601   *) ac_try_echo=$ac_try;;
21602 esac
21603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604   (eval "$ac_try") 2>&5
21605   ac_status=$?
21606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607   (exit $ac_status); }; }; then
21608   ac_cv_member_struct_statfs_f_ffree=yes
21609 else
21610   echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21612
21613         ac_cv_member_struct_statfs_f_ffree=no
21614 fi
21615
21616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21617 fi
21618
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620 fi
21621 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21622 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
21623 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21624
21625 cat >>confdefs.h <<_ACEOF
21626 #define HAVE_STRUCT_STATFS_F_FFREE 1
21627 _ACEOF
21628
21629
21630 fi
21631 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21632 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
21633 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21634   echo $ECHO_N "(cached) $ECHO_C" >&6
21635 else
21636   cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h.  */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h.  */
21642 #include <sys/types.h>
21643 #ifdef HAVE_SYS_PARAM_H
21644 # include <sys/param.h>
21645 #endif
21646 #ifdef HAVE_SYS_MOUNT_H
21647 # include <sys/mount.h>
21648 #endif
21649 #ifdef HAVE_SYS_VFS_H
21650 # include <sys/vfs.h>
21651 #endif
21652 #ifdef HAVE_SYS_STATFS_H
21653 # include <sys/statfs.h>
21654 #endif
21655
21656 int
21657 main ()
21658 {
21659 static struct statfs ac_aggr;
21660 if (ac_aggr.f_favail)
21661 return 0;
21662   ;
21663   return 0;
21664 }
21665 _ACEOF
21666 rm -f conftest.$ac_objext
21667 if { (ac_try="$ac_compile"
21668 case "(($ac_try" in
21669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670   *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673   (eval "$ac_compile") 2>conftest.er1
21674   ac_status=$?
21675   grep -v '^ *+' conftest.er1 >conftest.err
21676   rm -f conftest.er1
21677   cat conftest.err >&5
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); } &&
21680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21681   { (case "(($ac_try" in
21682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683   *) ac_try_echo=$ac_try;;
21684 esac
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686   (eval "$ac_try") 2>&5
21687   ac_status=$?
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); }; } &&
21690          { ac_try='test -s conftest.$ac_objext'
21691   { (case "(($ac_try" in
21692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693   *) ac_try_echo=$ac_try;;
21694 esac
21695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21696   (eval "$ac_try") 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); }; }; then
21700   ac_cv_member_struct_statfs_f_favail=yes
21701 else
21702   echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705         cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 #include <sys/types.h>
21712 #ifdef HAVE_SYS_PARAM_H
21713 # include <sys/param.h>
21714 #endif
21715 #ifdef HAVE_SYS_MOUNT_H
21716 # include <sys/mount.h>
21717 #endif
21718 #ifdef HAVE_SYS_VFS_H
21719 # include <sys/vfs.h>
21720 #endif
21721 #ifdef HAVE_SYS_STATFS_H
21722 # include <sys/statfs.h>
21723 #endif
21724
21725 int
21726 main ()
21727 {
21728 static struct statfs ac_aggr;
21729 if (sizeof ac_aggr.f_favail)
21730 return 0;
21731   ;
21732   return 0;
21733 }
21734 _ACEOF
21735 rm -f conftest.$ac_objext
21736 if { (ac_try="$ac_compile"
21737 case "(($ac_try" in
21738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739   *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742   (eval "$ac_compile") 2>conftest.er1
21743   ac_status=$?
21744   grep -v '^ *+' conftest.er1 >conftest.err
21745   rm -f conftest.er1
21746   cat conftest.err >&5
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } &&
21749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21750   { (case "(($ac_try" in
21751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752   *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755   (eval "$ac_try") 2>&5
21756   ac_status=$?
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); }; } &&
21759          { ac_try='test -s conftest.$ac_objext'
21760   { (case "(($ac_try" in
21761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762   *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765   (eval "$ac_try") 2>&5
21766   ac_status=$?
21767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768   (exit $ac_status); }; }; then
21769   ac_cv_member_struct_statfs_f_favail=yes
21770 else
21771   echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21773
21774         ac_cv_member_struct_statfs_f_favail=no
21775 fi
21776
21777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21778 fi
21779
21780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21781 fi
21782 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21783 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
21784 if test $ac_cv_member_struct_statfs_f_favail = yes; then
21785
21786 cat >>confdefs.h <<_ACEOF
21787 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
21788 _ACEOF
21789
21790
21791 fi
21792 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21793 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
21794 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21795   echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797   cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h.  */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h.  */
21803 #include <sys/types.h>
21804 #ifdef HAVE_SYS_PARAM_H
21805 # include <sys/param.h>
21806 #endif
21807 #ifdef HAVE_SYS_MOUNT_H
21808 # include <sys/mount.h>
21809 #endif
21810 #ifdef HAVE_SYS_VFS_H
21811 # include <sys/vfs.h>
21812 #endif
21813 #ifdef HAVE_SYS_STATFS_H
21814 # include <sys/statfs.h>
21815 #endif
21816
21817 int
21818 main ()
21819 {
21820 static struct statfs ac_aggr;
21821 if (ac_aggr.f_namelen)
21822 return 0;
21823   ;
21824   return 0;
21825 }
21826 _ACEOF
21827 rm -f conftest.$ac_objext
21828 if { (ac_try="$ac_compile"
21829 case "(($ac_try" in
21830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831   *) ac_try_echo=$ac_try;;
21832 esac
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834   (eval "$ac_compile") 2>conftest.er1
21835   ac_status=$?
21836   grep -v '^ *+' conftest.er1 >conftest.err
21837   rm -f conftest.er1
21838   cat conftest.err >&5
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } &&
21841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21842   { (case "(($ac_try" in
21843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844   *) ac_try_echo=$ac_try;;
21845 esac
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847   (eval "$ac_try") 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); }; } &&
21851          { ac_try='test -s conftest.$ac_objext'
21852   { (case "(($ac_try" in
21853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854   *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857   (eval "$ac_try") 2>&5
21858   ac_status=$?
21859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860   (exit $ac_status); }; }; then
21861   ac_cv_member_struct_statfs_f_namelen=yes
21862 else
21863   echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21865
21866         cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872 #include <sys/types.h>
21873 #ifdef HAVE_SYS_PARAM_H
21874 # include <sys/param.h>
21875 #endif
21876 #ifdef HAVE_SYS_MOUNT_H
21877 # include <sys/mount.h>
21878 #endif
21879 #ifdef HAVE_SYS_VFS_H
21880 # include <sys/vfs.h>
21881 #endif
21882 #ifdef HAVE_SYS_STATFS_H
21883 # include <sys/statfs.h>
21884 #endif
21885
21886 int
21887 main ()
21888 {
21889 static struct statfs ac_aggr;
21890 if (sizeof ac_aggr.f_namelen)
21891 return 0;
21892   ;
21893   return 0;
21894 }
21895 _ACEOF
21896 rm -f conftest.$ac_objext
21897 if { (ac_try="$ac_compile"
21898 case "(($ac_try" in
21899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900   *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903   (eval "$ac_compile") 2>conftest.er1
21904   ac_status=$?
21905   grep -v '^ *+' conftest.er1 >conftest.err
21906   rm -f conftest.er1
21907   cat conftest.err >&5
21908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909   (exit $ac_status); } &&
21910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21911   { (case "(($ac_try" in
21912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913   *) ac_try_echo=$ac_try;;
21914 esac
21915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21916   (eval "$ac_try") 2>&5
21917   ac_status=$?
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); }; } &&
21920          { ac_try='test -s conftest.$ac_objext'
21921   { (case "(($ac_try" in
21922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923   *) ac_try_echo=$ac_try;;
21924 esac
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926   (eval "$ac_try") 2>&5
21927   ac_status=$?
21928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929   (exit $ac_status); }; }; then
21930   ac_cv_member_struct_statfs_f_namelen=yes
21931 else
21932   echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21934
21935         ac_cv_member_struct_statfs_f_namelen=no
21936 fi
21937
21938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21939 fi
21940
21941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21942 fi
21943 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21944 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
21945 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21946
21947 cat >>confdefs.h <<_ACEOF
21948 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
21949 _ACEOF
21950
21951
21952 fi
21953
21954
21955 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21956 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
21957 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21958   echo $ECHO_N "(cached) $ECHO_C" >&6
21959 else
21960   cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h.  */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h.  */
21966 #ifdef HAVE_SYS_STATVFS_H
21967 #include <sys/statvfs.h>
21968 #endif
21969
21970 int
21971 main ()
21972 {
21973 static struct statvfs ac_aggr;
21974 if (ac_aggr.f_blocks)
21975 return 0;
21976   ;
21977   return 0;
21978 }
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987   (eval "$ac_compile") 2>conftest.er1
21988   ac_status=$?
21989   grep -v '^ *+' conftest.er1 >conftest.err
21990   rm -f conftest.er1
21991   cat conftest.err >&5
21992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); } &&
21994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21995   { (case "(($ac_try" in
21996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997   *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000   (eval "$ac_try") 2>&5
22001   ac_status=$?
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); }; } &&
22004          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22014   ac_cv_member_struct_statvfs_f_blocks=yes
22015 else
22016   echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019         cat >conftest.$ac_ext <<_ACEOF
22020 /* confdefs.h.  */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h.  */
22025 #ifdef HAVE_SYS_STATVFS_H
22026 #include <sys/statvfs.h>
22027 #endif
22028
22029 int
22030 main ()
22031 {
22032 static struct statvfs ac_aggr;
22033 if (sizeof ac_aggr.f_blocks)
22034 return 0;
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043   *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046   (eval "$ac_compile") 2>conftest.er1
22047   ac_status=$?
22048   grep -v '^ *+' conftest.er1 >conftest.err
22049   rm -f conftest.er1
22050   cat conftest.err >&5
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } &&
22053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22054   { (case "(($ac_try" in
22055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056   *) ac_try_echo=$ac_try;;
22057 esac
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059   (eval "$ac_try") 2>&5
22060   ac_status=$?
22061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062   (exit $ac_status); }; } &&
22063          { ac_try='test -s conftest.$ac_objext'
22064   { (case "(($ac_try" in
22065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066   *) ac_try_echo=$ac_try;;
22067 esac
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069   (eval "$ac_try") 2>&5
22070   ac_status=$?
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); }; }; then
22073   ac_cv_member_struct_statvfs_f_blocks=yes
22074 else
22075   echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078         ac_cv_member_struct_statvfs_f_blocks=no
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 fi
22083
22084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22085 fi
22086 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
22087 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
22088 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
22089
22090 cat >>confdefs.h <<_ACEOF
22091 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
22092 _ACEOF
22093
22094
22095 fi
22096
22097
22098 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
22099 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
22100 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
22101   echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103   cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h.  */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h.  */
22109 #include <sys/types.h>
22110 #ifdef HAVE_SYS_SOCKET_H
22111 # include <sys/socket.h>
22112 #endif
22113 #ifdef HAVE_SYS_UN_H
22114 # include <sys/un.h>
22115 #endif
22116
22117 int
22118 main ()
22119 {
22120 static struct msghdr ac_aggr;
22121 if (ac_aggr.msg_accrights)
22122 return 0;
22123   ;
22124   return 0;
22125 }
22126 _ACEOF
22127 rm -f conftest.$ac_objext
22128 if { (ac_try="$ac_compile"
22129 case "(($ac_try" in
22130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131   *) ac_try_echo=$ac_try;;
22132 esac
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134   (eval "$ac_compile") 2>conftest.er1
22135   ac_status=$?
22136   grep -v '^ *+' conftest.er1 >conftest.err
22137   rm -f conftest.er1
22138   cat conftest.err >&5
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); } &&
22141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22142   { (case "(($ac_try" in
22143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144   *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147   (eval "$ac_try") 2>&5
22148   ac_status=$?
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); }; } &&
22151          { ac_try='test -s conftest.$ac_objext'
22152   { (case "(($ac_try" in
22153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154   *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157   (eval "$ac_try") 2>&5
22158   ac_status=$?
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); }; }; then
22161   ac_cv_member_struct_msghdr_msg_accrights=yes
22162 else
22163   echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165
22166         cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h.  */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h.  */
22172 #include <sys/types.h>
22173 #ifdef HAVE_SYS_SOCKET_H
22174 # include <sys/socket.h>
22175 #endif
22176 #ifdef HAVE_SYS_UN_H
22177 # include <sys/un.h>
22178 #endif
22179
22180 int
22181 main ()
22182 {
22183 static struct msghdr ac_aggr;
22184 if (sizeof ac_aggr.msg_accrights)
22185 return 0;
22186   ;
22187   return 0;
22188 }
22189 _ACEOF
22190 rm -f conftest.$ac_objext
22191 if { (ac_try="$ac_compile"
22192 case "(($ac_try" in
22193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22194   *) ac_try_echo=$ac_try;;
22195 esac
22196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22197   (eval "$ac_compile") 2>conftest.er1
22198   ac_status=$?
22199   grep -v '^ *+' conftest.er1 >conftest.err
22200   rm -f conftest.er1
22201   cat conftest.err >&5
22202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203   (exit $ac_status); } &&
22204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22205   { (case "(($ac_try" in
22206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207   *) ac_try_echo=$ac_try;;
22208 esac
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210   (eval "$ac_try") 2>&5
22211   ac_status=$?
22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213   (exit $ac_status); }; } &&
22214          { ac_try='test -s conftest.$ac_objext'
22215   { (case "(($ac_try" in
22216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217   *) ac_try_echo=$ac_try;;
22218 esac
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220   (eval "$ac_try") 2>&5
22221   ac_status=$?
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); }; }; then
22224   ac_cv_member_struct_msghdr_msg_accrights=yes
22225 else
22226   echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229         ac_cv_member_struct_msghdr_msg_accrights=no
22230 fi
22231
22232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22233 fi
22234
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236 fi
22237 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
22238 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
22239 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
22240
22241 cat >>confdefs.h <<_ACEOF
22242 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
22243 _ACEOF
22244
22245
22246 fi
22247 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22248 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
22249 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22250   echo $ECHO_N "(cached) $ECHO_C" >&6
22251 else
22252   cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h.  */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h.  */
22258 #include <sys/types.h>
22259 #ifdef HAVE_SYS_SOCKET_H
22260 # include <sys/socket.h>
22261 #endif
22262 #ifdef HAVE_SYS_UN_H
22263 # include <sys/un.h>
22264 #endif
22265
22266 int
22267 main ()
22268 {
22269 static struct sockaddr ac_aggr;
22270 if (ac_aggr.sa_len)
22271 return 0;
22272   ;
22273   return 0;
22274 }
22275 _ACEOF
22276 rm -f conftest.$ac_objext
22277 if { (ac_try="$ac_compile"
22278 case "(($ac_try" in
22279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280   *) ac_try_echo=$ac_try;;
22281 esac
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283   (eval "$ac_compile") 2>conftest.er1
22284   ac_status=$?
22285   grep -v '^ *+' conftest.er1 >conftest.err
22286   rm -f conftest.er1
22287   cat conftest.err >&5
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); } &&
22290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22291   { (case "(($ac_try" in
22292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293   *) ac_try_echo=$ac_try;;
22294 esac
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296   (eval "$ac_try") 2>&5
22297   ac_status=$?
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); }; } &&
22300          { ac_try='test -s conftest.$ac_objext'
22301   { (case "(($ac_try" in
22302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303   *) ac_try_echo=$ac_try;;
22304 esac
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306   (eval "$ac_try") 2>&5
22307   ac_status=$?
22308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); }; }; then
22310   ac_cv_member_struct_sockaddr_sa_len=yes
22311 else
22312   echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315         cat >conftest.$ac_ext <<_ACEOF
22316 /* confdefs.h.  */
22317 _ACEOF
22318 cat confdefs.h >>conftest.$ac_ext
22319 cat >>conftest.$ac_ext <<_ACEOF
22320 /* end confdefs.h.  */
22321 #include <sys/types.h>
22322 #ifdef HAVE_SYS_SOCKET_H
22323 # include <sys/socket.h>
22324 #endif
22325 #ifdef HAVE_SYS_UN_H
22326 # include <sys/un.h>
22327 #endif
22328
22329 int
22330 main ()
22331 {
22332 static struct sockaddr ac_aggr;
22333 if (sizeof ac_aggr.sa_len)
22334 return 0;
22335   ;
22336   return 0;
22337 }
22338 _ACEOF
22339 rm -f conftest.$ac_objext
22340 if { (ac_try="$ac_compile"
22341 case "(($ac_try" in
22342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343   *) ac_try_echo=$ac_try;;
22344 esac
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346   (eval "$ac_compile") 2>conftest.er1
22347   ac_status=$?
22348   grep -v '^ *+' conftest.er1 >conftest.err
22349   rm -f conftest.er1
22350   cat conftest.err >&5
22351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352   (exit $ac_status); } &&
22353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22354   { (case "(($ac_try" in
22355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356   *) ac_try_echo=$ac_try;;
22357 esac
22358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22359   (eval "$ac_try") 2>&5
22360   ac_status=$?
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); }; } &&
22363          { ac_try='test -s conftest.$ac_objext'
22364   { (case "(($ac_try" in
22365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366   *) ac_try_echo=$ac_try;;
22367 esac
22368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22369   (eval "$ac_try") 2>&5
22370   ac_status=$?
22371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372   (exit $ac_status); }; }; then
22373   ac_cv_member_struct_sockaddr_sa_len=yes
22374 else
22375   echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22377
22378         ac_cv_member_struct_sockaddr_sa_len=no
22379 fi
22380
22381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22382 fi
22383
22384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22385 fi
22386 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22387 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22388 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22389
22390 cat >>confdefs.h <<_ACEOF
22391 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22392 _ACEOF
22393
22394
22395 fi
22396 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22397 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
22398 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22399   echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401   cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h.  */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h.  */
22407 #include <sys/types.h>
22408 #ifdef HAVE_SYS_SOCKET_H
22409 # include <sys/socket.h>
22410 #endif
22411 #ifdef HAVE_SYS_UN_H
22412 # include <sys/un.h>
22413 #endif
22414
22415 int
22416 main ()
22417 {
22418 static struct sockaddr_un ac_aggr;
22419 if (ac_aggr.sun_len)
22420 return 0;
22421   ;
22422   return 0;
22423 }
22424 _ACEOF
22425 rm -f conftest.$ac_objext
22426 if { (ac_try="$ac_compile"
22427 case "(($ac_try" in
22428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429   *) ac_try_echo=$ac_try;;
22430 esac
22431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432   (eval "$ac_compile") 2>conftest.er1
22433   ac_status=$?
22434   grep -v '^ *+' conftest.er1 >conftest.err
22435   rm -f conftest.er1
22436   cat conftest.err >&5
22437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438   (exit $ac_status); } &&
22439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22440   { (case "(($ac_try" in
22441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22442   *) ac_try_echo=$ac_try;;
22443 esac
22444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22445   (eval "$ac_try") 2>&5
22446   ac_status=$?
22447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448   (exit $ac_status); }; } &&
22449          { ac_try='test -s conftest.$ac_objext'
22450   { (case "(($ac_try" in
22451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452   *) ac_try_echo=$ac_try;;
22453 esac
22454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455   (eval "$ac_try") 2>&5
22456   ac_status=$?
22457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458   (exit $ac_status); }; }; then
22459   ac_cv_member_struct_sockaddr_un_sun_len=yes
22460 else
22461   echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22463
22464         cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h.  */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h.  */
22470 #include <sys/types.h>
22471 #ifdef HAVE_SYS_SOCKET_H
22472 # include <sys/socket.h>
22473 #endif
22474 #ifdef HAVE_SYS_UN_H
22475 # include <sys/un.h>
22476 #endif
22477
22478 int
22479 main ()
22480 {
22481 static struct sockaddr_un ac_aggr;
22482 if (sizeof ac_aggr.sun_len)
22483 return 0;
22484   ;
22485   return 0;
22486 }
22487 _ACEOF
22488 rm -f conftest.$ac_objext
22489 if { (ac_try="$ac_compile"
22490 case "(($ac_try" in
22491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492   *) ac_try_echo=$ac_try;;
22493 esac
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495   (eval "$ac_compile") 2>conftest.er1
22496   ac_status=$?
22497   grep -v '^ *+' conftest.er1 >conftest.err
22498   rm -f conftest.er1
22499   cat conftest.err >&5
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); } &&
22502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22503   { (case "(($ac_try" in
22504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505   *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508   (eval "$ac_try") 2>&5
22509   ac_status=$?
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); }; } &&
22512          { ac_try='test -s conftest.$ac_objext'
22513   { (case "(($ac_try" in
22514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515   *) ac_try_echo=$ac_try;;
22516 esac
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518   (eval "$ac_try") 2>&5
22519   ac_status=$?
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); }; }; then
22522   ac_cv_member_struct_sockaddr_un_sun_len=yes
22523 else
22524   echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22526
22527         ac_cv_member_struct_sockaddr_un_sun_len=no
22528 fi
22529
22530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22531 fi
22532
22533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22534 fi
22535 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22536 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
22537 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22538
22539 cat >>confdefs.h <<_ACEOF
22540 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22541 _ACEOF
22542
22543
22544 fi
22545
22546
22547 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22548 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
22549 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22550   echo $ECHO_N "(cached) $ECHO_C" >&6
22551 else
22552   cat >conftest.$ac_ext <<_ACEOF
22553 /* confdefs.h.  */
22554 _ACEOF
22555 cat confdefs.h >>conftest.$ac_ext
22556 cat >>conftest.$ac_ext <<_ACEOF
22557 /* end confdefs.h.  */
22558 #include <sys/types.h>
22559 #ifdef HAVE_SCSI_SG_H
22560 #include <scsi/sg.h>
22561 #endif
22562
22563 int
22564 main ()
22565 {
22566 static scsireq_t ac_aggr;
22567 if (ac_aggr.cmd)
22568 return 0;
22569   ;
22570   return 0;
22571 }
22572 _ACEOF
22573 rm -f conftest.$ac_objext
22574 if { (ac_try="$ac_compile"
22575 case "(($ac_try" in
22576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577   *) ac_try_echo=$ac_try;;
22578 esac
22579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22580   (eval "$ac_compile") 2>conftest.er1
22581   ac_status=$?
22582   grep -v '^ *+' conftest.er1 >conftest.err
22583   rm -f conftest.er1
22584   cat conftest.err >&5
22585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); } &&
22587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22588   { (case "(($ac_try" in
22589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590   *) ac_try_echo=$ac_try;;
22591 esac
22592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593   (eval "$ac_try") 2>&5
22594   ac_status=$?
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); }; } &&
22597          { ac_try='test -s conftest.$ac_objext'
22598   { (case "(($ac_try" in
22599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600   *) ac_try_echo=$ac_try;;
22601 esac
22602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22603   (eval "$ac_try") 2>&5
22604   ac_status=$?
22605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); }; }; then
22607   ac_cv_member_scsireq_t_cmd=yes
22608 else
22609   echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22611
22612         cat >conftest.$ac_ext <<_ACEOF
22613 /* confdefs.h.  */
22614 _ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h.  */
22618 #include <sys/types.h>
22619 #ifdef HAVE_SCSI_SG_H
22620 #include <scsi/sg.h>
22621 #endif
22622
22623 int
22624 main ()
22625 {
22626 static scsireq_t ac_aggr;
22627 if (sizeof ac_aggr.cmd)
22628 return 0;
22629   ;
22630   return 0;
22631 }
22632 _ACEOF
22633 rm -f conftest.$ac_objext
22634 if { (ac_try="$ac_compile"
22635 case "(($ac_try" in
22636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637   *) ac_try_echo=$ac_try;;
22638 esac
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640   (eval "$ac_compile") 2>conftest.er1
22641   ac_status=$?
22642   grep -v '^ *+' conftest.er1 >conftest.err
22643   rm -f conftest.er1
22644   cat conftest.err >&5
22645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646   (exit $ac_status); } &&
22647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22648   { (case "(($ac_try" in
22649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650   *) ac_try_echo=$ac_try;;
22651 esac
22652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653   (eval "$ac_try") 2>&5
22654   ac_status=$?
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); }; } &&
22657          { ac_try='test -s conftest.$ac_objext'
22658   { (case "(($ac_try" in
22659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660   *) ac_try_echo=$ac_try;;
22661 esac
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663   (eval "$ac_try") 2>&5
22664   ac_status=$?
22665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666   (exit $ac_status); }; }; then
22667   ac_cv_member_scsireq_t_cmd=yes
22668 else
22669   echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22671
22672         ac_cv_member_scsireq_t_cmd=no
22673 fi
22674
22675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676 fi
22677
22678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22679 fi
22680 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22681 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
22682 if test $ac_cv_member_scsireq_t_cmd = yes; then
22683
22684 cat >>confdefs.h <<_ACEOF
22685 #define HAVE_SCSIREQ_T_CMD 1
22686 _ACEOF
22687
22688
22689 fi
22690 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22691 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
22692 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22693   echo $ECHO_N "(cached) $ECHO_C" >&6
22694 else
22695   cat >conftest.$ac_ext <<_ACEOF
22696 /* confdefs.h.  */
22697 _ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h.  */
22701 #include <sys/types.h>
22702 #ifdef HAVE_SCSI_SG_H
22703 #include <scsi/sg.h>
22704 #endif
22705
22706 int
22707 main ()
22708 {
22709 static sg_io_hdr_t ac_aggr;
22710 if (ac_aggr.interface_id)
22711 return 0;
22712   ;
22713   return 0;
22714 }
22715 _ACEOF
22716 rm -f conftest.$ac_objext
22717 if { (ac_try="$ac_compile"
22718 case "(($ac_try" in
22719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720   *) ac_try_echo=$ac_try;;
22721 esac
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723   (eval "$ac_compile") 2>conftest.er1
22724   ac_status=$?
22725   grep -v '^ *+' conftest.er1 >conftest.err
22726   rm -f conftest.er1
22727   cat conftest.err >&5
22728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); } &&
22730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22731   { (case "(($ac_try" in
22732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22733   *) ac_try_echo=$ac_try;;
22734 esac
22735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22736   (eval "$ac_try") 2>&5
22737   ac_status=$?
22738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739   (exit $ac_status); }; } &&
22740          { ac_try='test -s conftest.$ac_objext'
22741   { (case "(($ac_try" in
22742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743   *) ac_try_echo=$ac_try;;
22744 esac
22745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746   (eval "$ac_try") 2>&5
22747   ac_status=$?
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); }; }; then
22750   ac_cv_member_sg_io_hdr_t_interface_id=yes
22751 else
22752   echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22754
22755         cat >conftest.$ac_ext <<_ACEOF
22756 /* confdefs.h.  */
22757 _ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h.  */
22761 #include <sys/types.h>
22762 #ifdef HAVE_SCSI_SG_H
22763 #include <scsi/sg.h>
22764 #endif
22765
22766 int
22767 main ()
22768 {
22769 static sg_io_hdr_t ac_aggr;
22770 if (sizeof ac_aggr.interface_id)
22771 return 0;
22772   ;
22773   return 0;
22774 }
22775 _ACEOF
22776 rm -f conftest.$ac_objext
22777 if { (ac_try="$ac_compile"
22778 case "(($ac_try" in
22779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780   *) ac_try_echo=$ac_try;;
22781 esac
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783   (eval "$ac_compile") 2>conftest.er1
22784   ac_status=$?
22785   grep -v '^ *+' conftest.er1 >conftest.err
22786   rm -f conftest.er1
22787   cat conftest.err >&5
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); } &&
22790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22791   { (case "(($ac_try" in
22792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793   *) ac_try_echo=$ac_try;;
22794 esac
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796   (eval "$ac_try") 2>&5
22797   ac_status=$?
22798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799   (exit $ac_status); }; } &&
22800          { ac_try='test -s conftest.$ac_objext'
22801   { (case "(($ac_try" in
22802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803   *) ac_try_echo=$ac_try;;
22804 esac
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806   (eval "$ac_try") 2>&5
22807   ac_status=$?
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); }; }; then
22810   ac_cv_member_sg_io_hdr_t_interface_id=yes
22811 else
22812   echo "$as_me: failed program was:" >&5
22813 sed 's/^/| /' conftest.$ac_ext >&5
22814
22815         ac_cv_member_sg_io_hdr_t_interface_id=no
22816 fi
22817
22818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22819 fi
22820
22821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22822 fi
22823 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22824 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
22825 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22826
22827 cat >>confdefs.h <<_ACEOF
22828 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22829 _ACEOF
22830
22831
22832 fi
22833
22834
22835 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22836 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
22837 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22838   echo $ECHO_N "(cached) $ECHO_C" >&6
22839 else
22840   cat >conftest.$ac_ext <<_ACEOF
22841 /* confdefs.h.  */
22842 _ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h.  */
22846 #include <signal.h>
22847
22848 int
22849 main ()
22850 {
22851 static siginfo_t ac_aggr;
22852 if (ac_aggr.si_fd)
22853 return 0;
22854   ;
22855   return 0;
22856 }
22857 _ACEOF
22858 rm -f conftest.$ac_objext
22859 if { (ac_try="$ac_compile"
22860 case "(($ac_try" in
22861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862   *) ac_try_echo=$ac_try;;
22863 esac
22864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22865   (eval "$ac_compile") 2>conftest.er1
22866   ac_status=$?
22867   grep -v '^ *+' conftest.er1 >conftest.err
22868   rm -f conftest.er1
22869   cat conftest.err >&5
22870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871   (exit $ac_status); } &&
22872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22873   { (case "(($ac_try" in
22874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875   *) ac_try_echo=$ac_try;;
22876 esac
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878   (eval "$ac_try") 2>&5
22879   ac_status=$?
22880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881   (exit $ac_status); }; } &&
22882          { ac_try='test -s conftest.$ac_objext'
22883   { (case "(($ac_try" in
22884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885   *) ac_try_echo=$ac_try;;
22886 esac
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888   (eval "$ac_try") 2>&5
22889   ac_status=$?
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); }; }; then
22892   ac_cv_member_siginfo_t_si_fd=yes
22893 else
22894   echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22896
22897         cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h.  */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h.  */
22903 #include <signal.h>
22904
22905 int
22906 main ()
22907 {
22908 static siginfo_t ac_aggr;
22909 if (sizeof ac_aggr.si_fd)
22910 return 0;
22911   ;
22912   return 0;
22913 }
22914 _ACEOF
22915 rm -f conftest.$ac_objext
22916 if { (ac_try="$ac_compile"
22917 case "(($ac_try" in
22918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919   *) ac_try_echo=$ac_try;;
22920 esac
22921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922   (eval "$ac_compile") 2>conftest.er1
22923   ac_status=$?
22924   grep -v '^ *+' conftest.er1 >conftest.err
22925   rm -f conftest.er1
22926   cat conftest.err >&5
22927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928   (exit $ac_status); } &&
22929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22930   { (case "(($ac_try" in
22931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932   *) ac_try_echo=$ac_try;;
22933 esac
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935   (eval "$ac_try") 2>&5
22936   ac_status=$?
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); }; } &&
22939          { ac_try='test -s conftest.$ac_objext'
22940   { (case "(($ac_try" in
22941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942   *) ac_try_echo=$ac_try;;
22943 esac
22944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945   (eval "$ac_try") 2>&5
22946   ac_status=$?
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); }; }; then
22949   ac_cv_member_siginfo_t_si_fd=yes
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954         ac_cv_member_siginfo_t_si_fd=no
22955 fi
22956
22957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958 fi
22959
22960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22961 fi
22962 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22963 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
22964 if test $ac_cv_member_siginfo_t_si_fd = yes; then
22965
22966 cat >>confdefs.h <<_ACEOF
22967 #define HAVE_SIGINFO_T_SI_FD 1
22968 _ACEOF
22969
22970
22971 fi
22972
22973
22974 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22975 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
22976 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22977   echo $ECHO_N "(cached) $ECHO_C" >&6
22978 else
22979   cat >conftest.$ac_ext <<_ACEOF
22980 /* confdefs.h.  */
22981 _ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h.  */
22985 #include <sys/types.h>
22986 #ifdef HAVE_SYS_MTIO_H
22987 #include <sys/mtio.h>
22988 #endif
22989
22990 int
22991 main ()
22992 {
22993 static struct mtget ac_aggr;
22994 if (ac_aggr.mt_blksiz)
22995 return 0;
22996   ;
22997   return 0;
22998 }
22999 _ACEOF
23000 rm -f conftest.$ac_objext
23001 if { (ac_try="$ac_compile"
23002 case "(($ac_try" in
23003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23004   *) ac_try_echo=$ac_try;;
23005 esac
23006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23007   (eval "$ac_compile") 2>conftest.er1
23008   ac_status=$?
23009   grep -v '^ *+' conftest.er1 >conftest.err
23010   rm -f conftest.er1
23011   cat conftest.err >&5
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); } &&
23014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23015   { (case "(($ac_try" in
23016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017   *) ac_try_echo=$ac_try;;
23018 esac
23019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020   (eval "$ac_try") 2>&5
23021   ac_status=$?
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); }; } &&
23024          { ac_try='test -s conftest.$ac_objext'
23025   { (case "(($ac_try" in
23026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027   *) ac_try_echo=$ac_try;;
23028 esac
23029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23030   (eval "$ac_try") 2>&5
23031   ac_status=$?
23032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033   (exit $ac_status); }; }; then
23034   ac_cv_member_struct_mtget_mt_blksiz=yes
23035 else
23036   echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23038
23039         cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h.  */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h.  */
23045 #include <sys/types.h>
23046 #ifdef HAVE_SYS_MTIO_H
23047 #include <sys/mtio.h>
23048 #endif
23049
23050 int
23051 main ()
23052 {
23053 static struct mtget ac_aggr;
23054 if (sizeof ac_aggr.mt_blksiz)
23055 return 0;
23056   ;
23057   return 0;
23058 }
23059 _ACEOF
23060 rm -f conftest.$ac_objext
23061 if { (ac_try="$ac_compile"
23062 case "(($ac_try" in
23063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064   *) ac_try_echo=$ac_try;;
23065 esac
23066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23067   (eval "$ac_compile") 2>conftest.er1
23068   ac_status=$?
23069   grep -v '^ *+' conftest.er1 >conftest.err
23070   rm -f conftest.er1
23071   cat conftest.err >&5
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); } &&
23074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23075   { (case "(($ac_try" in
23076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077   *) ac_try_echo=$ac_try;;
23078 esac
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080   (eval "$ac_try") 2>&5
23081   ac_status=$?
23082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083   (exit $ac_status); }; } &&
23084          { ac_try='test -s conftest.$ac_objext'
23085   { (case "(($ac_try" in
23086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087   *) ac_try_echo=$ac_try;;
23088 esac
23089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23090   (eval "$ac_try") 2>&5
23091   ac_status=$?
23092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093   (exit $ac_status); }; }; then
23094   ac_cv_member_struct_mtget_mt_blksiz=yes
23095 else
23096   echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23098
23099         ac_cv_member_struct_mtget_mt_blksiz=no
23100 fi
23101
23102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23103 fi
23104
23105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23106 fi
23107 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
23108 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
23109 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
23110
23111 cat >>confdefs.h <<_ACEOF
23112 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
23113 _ACEOF
23114
23115
23116 fi
23117 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
23118 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
23119 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
23120   echo $ECHO_N "(cached) $ECHO_C" >&6
23121 else
23122   cat >conftest.$ac_ext <<_ACEOF
23123 /* confdefs.h.  */
23124 _ACEOF
23125 cat confdefs.h >>conftest.$ac_ext
23126 cat >>conftest.$ac_ext <<_ACEOF
23127 /* end confdefs.h.  */
23128 #include <sys/types.h>
23129 #ifdef HAVE_SYS_MTIO_H
23130 #include <sys/mtio.h>
23131 #endif
23132
23133 int
23134 main ()
23135 {
23136 static struct mtget ac_aggr;
23137 if (ac_aggr.mt_gstat)
23138 return 0;
23139   ;
23140   return 0;
23141 }
23142 _ACEOF
23143 rm -f conftest.$ac_objext
23144 if { (ac_try="$ac_compile"
23145 case "(($ac_try" in
23146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147   *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150   (eval "$ac_compile") 2>conftest.er1
23151   ac_status=$?
23152   grep -v '^ *+' conftest.er1 >conftest.err
23153   rm -f conftest.er1
23154   cat conftest.err >&5
23155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); } &&
23157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23158   { (case "(($ac_try" in
23159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23160   *) ac_try_echo=$ac_try;;
23161 esac
23162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23163   (eval "$ac_try") 2>&5
23164   ac_status=$?
23165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166   (exit $ac_status); }; } &&
23167          { ac_try='test -s conftest.$ac_objext'
23168   { (case "(($ac_try" in
23169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170   *) ac_try_echo=$ac_try;;
23171 esac
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173   (eval "$ac_try") 2>&5
23174   ac_status=$?
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); }; }; then
23177   ac_cv_member_struct_mtget_mt_gstat=yes
23178 else
23179   echo "$as_me: failed program was:" >&5
23180 sed 's/^/| /' conftest.$ac_ext >&5
23181
23182         cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h.  */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h.  */
23188 #include <sys/types.h>
23189 #ifdef HAVE_SYS_MTIO_H
23190 #include <sys/mtio.h>
23191 #endif
23192
23193 int
23194 main ()
23195 {
23196 static struct mtget ac_aggr;
23197 if (sizeof ac_aggr.mt_gstat)
23198 return 0;
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext
23204 if { (ac_try="$ac_compile"
23205 case "(($ac_try" in
23206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207   *) ac_try_echo=$ac_try;;
23208 esac
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210   (eval "$ac_compile") 2>conftest.er1
23211   ac_status=$?
23212   grep -v '^ *+' conftest.er1 >conftest.err
23213   rm -f conftest.er1
23214   cat conftest.err >&5
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); } &&
23217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23218   { (case "(($ac_try" in
23219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220   *) ac_try_echo=$ac_try;;
23221 esac
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223   (eval "$ac_try") 2>&5
23224   ac_status=$?
23225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226   (exit $ac_status); }; } &&
23227          { ac_try='test -s conftest.$ac_objext'
23228   { (case "(($ac_try" in
23229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23230   *) ac_try_echo=$ac_try;;
23231 esac
23232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23233   (eval "$ac_try") 2>&5
23234   ac_status=$?
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); }; }; then
23237   ac_cv_member_struct_mtget_mt_gstat=yes
23238 else
23239   echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23241
23242         ac_cv_member_struct_mtget_mt_gstat=no
23243 fi
23244
23245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23246 fi
23247
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 fi
23250 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
23251 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
23252 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
23253
23254 cat >>confdefs.h <<_ACEOF
23255 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
23256 _ACEOF
23257
23258
23259 fi
23260 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
23261 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
23262 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
23263   echo $ECHO_N "(cached) $ECHO_C" >&6
23264 else
23265   cat >conftest.$ac_ext <<_ACEOF
23266 /* confdefs.h.  */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h.  */
23271 #include <sys/types.h>
23272 #ifdef HAVE_SYS_MTIO_H
23273 #include <sys/mtio.h>
23274 #endif
23275
23276 int
23277 main ()
23278 {
23279 static struct mtget ac_aggr;
23280 if (ac_aggr.mt_blkno)
23281 return 0;
23282   ;
23283   return 0;
23284 }
23285 _ACEOF
23286 rm -f conftest.$ac_objext
23287 if { (ac_try="$ac_compile"
23288 case "(($ac_try" in
23289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290   *) ac_try_echo=$ac_try;;
23291 esac
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293   (eval "$ac_compile") 2>conftest.er1
23294   ac_status=$?
23295   grep -v '^ *+' conftest.er1 >conftest.err
23296   rm -f conftest.er1
23297   cat conftest.err >&5
23298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299   (exit $ac_status); } &&
23300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23301   { (case "(($ac_try" in
23302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303   *) ac_try_echo=$ac_try;;
23304 esac
23305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23306   (eval "$ac_try") 2>&5
23307   ac_status=$?
23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309   (exit $ac_status); }; } &&
23310          { ac_try='test -s conftest.$ac_objext'
23311   { (case "(($ac_try" in
23312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23313   *) ac_try_echo=$ac_try;;
23314 esac
23315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23316   (eval "$ac_try") 2>&5
23317   ac_status=$?
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); }; }; then
23320   ac_cv_member_struct_mtget_mt_blkno=yes
23321 else
23322   echo "$as_me: failed program was:" >&5
23323 sed 's/^/| /' conftest.$ac_ext >&5
23324
23325         cat >conftest.$ac_ext <<_ACEOF
23326 /* confdefs.h.  */
23327 _ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h.  */
23331 #include <sys/types.h>
23332 #ifdef HAVE_SYS_MTIO_H
23333 #include <sys/mtio.h>
23334 #endif
23335
23336 int
23337 main ()
23338 {
23339 static struct mtget ac_aggr;
23340 if (sizeof ac_aggr.mt_blkno)
23341 return 0;
23342   ;
23343   return 0;
23344 }
23345 _ACEOF
23346 rm -f conftest.$ac_objext
23347 if { (ac_try="$ac_compile"
23348 case "(($ac_try" in
23349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350   *) ac_try_echo=$ac_try;;
23351 esac
23352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23353   (eval "$ac_compile") 2>conftest.er1
23354   ac_status=$?
23355   grep -v '^ *+' conftest.er1 >conftest.err
23356   rm -f conftest.er1
23357   cat conftest.err >&5
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); } &&
23360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23361   { (case "(($ac_try" in
23362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363   *) ac_try_echo=$ac_try;;
23364 esac
23365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23366   (eval "$ac_try") 2>&5
23367   ac_status=$?
23368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369   (exit $ac_status); }; } &&
23370          { ac_try='test -s conftest.$ac_objext'
23371   { (case "(($ac_try" in
23372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373   *) ac_try_echo=$ac_try;;
23374 esac
23375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23376   (eval "$ac_try") 2>&5
23377   ac_status=$?
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); }; }; then
23380   ac_cv_member_struct_mtget_mt_blkno=yes
23381 else
23382   echo "$as_me: failed program was:" >&5
23383 sed 's/^/| /' conftest.$ac_ext >&5
23384
23385         ac_cv_member_struct_mtget_mt_blkno=no
23386 fi
23387
23388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23389 fi
23390
23391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 fi
23393 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23394 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
23395 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23396
23397 cat >>confdefs.h <<_ACEOF
23398 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
23399 _ACEOF
23400
23401
23402 fi
23403
23404
23405 { echo "$as_me:$LINENO: checking for struct option.name" >&5
23406 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
23407 if test "${ac_cv_member_struct_option_name+set}" = set; then
23408   echo $ECHO_N "(cached) $ECHO_C" >&6
23409 else
23410   cat >conftest.$ac_ext <<_ACEOF
23411 /* confdefs.h.  */
23412 _ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h.  */
23416 #ifdef HAVE_GETOPT_H
23417 #include <getopt.h>
23418 #endif
23419
23420 int
23421 main ()
23422 {
23423 static struct option ac_aggr;
23424 if (ac_aggr.name)
23425 return 0;
23426   ;
23427   return 0;
23428 }
23429 _ACEOF
23430 rm -f conftest.$ac_objext
23431 if { (ac_try="$ac_compile"
23432 case "(($ac_try" in
23433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434   *) ac_try_echo=$ac_try;;
23435 esac
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437   (eval "$ac_compile") 2>conftest.er1
23438   ac_status=$?
23439   grep -v '^ *+' conftest.er1 >conftest.err
23440   rm -f conftest.er1
23441   cat conftest.err >&5
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); } &&
23444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23445   { (case "(($ac_try" in
23446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447   *) ac_try_echo=$ac_try;;
23448 esac
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450   (eval "$ac_try") 2>&5
23451   ac_status=$?
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); }; } &&
23454          { ac_try='test -s conftest.$ac_objext'
23455   { (case "(($ac_try" in
23456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457   *) ac_try_echo=$ac_try;;
23458 esac
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460   (eval "$ac_try") 2>&5
23461   ac_status=$?
23462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463   (exit $ac_status); }; }; then
23464   ac_cv_member_struct_option_name=yes
23465 else
23466   echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23468
23469         cat >conftest.$ac_ext <<_ACEOF
23470 /* confdefs.h.  */
23471 _ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h.  */
23475 #ifdef HAVE_GETOPT_H
23476 #include <getopt.h>
23477 #endif
23478
23479 int
23480 main ()
23481 {
23482 static struct option ac_aggr;
23483 if (sizeof ac_aggr.name)
23484 return 0;
23485   ;
23486   return 0;
23487 }
23488 _ACEOF
23489 rm -f conftest.$ac_objext
23490 if { (ac_try="$ac_compile"
23491 case "(($ac_try" in
23492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23493   *) ac_try_echo=$ac_try;;
23494 esac
23495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23496   (eval "$ac_compile") 2>conftest.er1
23497   ac_status=$?
23498   grep -v '^ *+' conftest.er1 >conftest.err
23499   rm -f conftest.er1
23500   cat conftest.err >&5
23501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502   (exit $ac_status); } &&
23503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23504   { (case "(($ac_try" in
23505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506   *) ac_try_echo=$ac_try;;
23507 esac
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509   (eval "$ac_try") 2>&5
23510   ac_status=$?
23511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512   (exit $ac_status); }; } &&
23513          { ac_try='test -s conftest.$ac_objext'
23514   { (case "(($ac_try" in
23515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516   *) ac_try_echo=$ac_try;;
23517 esac
23518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23519   (eval "$ac_try") 2>&5
23520   ac_status=$?
23521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522   (exit $ac_status); }; }; then
23523   ac_cv_member_struct_option_name=yes
23524 else
23525   echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23527
23528         ac_cv_member_struct_option_name=no
23529 fi
23530
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23532 fi
23533
23534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535 fi
23536 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23537 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
23538 if test $ac_cv_member_struct_option_name = yes; then
23539
23540 cat >>confdefs.h <<_ACEOF
23541 #define HAVE_STRUCT_OPTION_NAME 1
23542 _ACEOF
23543
23544
23545 fi
23546
23547
23548 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23549 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23550 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23551   echo $ECHO_N "(cached) $ECHO_C" >&6
23552 else
23553   cat >conftest.$ac_ext <<_ACEOF
23554 /* confdefs.h.  */
23555 _ACEOF
23556 cat confdefs.h >>conftest.$ac_ext
23557 cat >>conftest.$ac_ext <<_ACEOF
23558 /* end confdefs.h.  */
23559 $ac_includes_default
23560 int
23561 main ()
23562 {
23563 static struct stat ac_aggr;
23564 if (ac_aggr.st_blocks)
23565 return 0;
23566   ;
23567   return 0;
23568 }
23569 _ACEOF
23570 rm -f conftest.$ac_objext
23571 if { (ac_try="$ac_compile"
23572 case "(($ac_try" in
23573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23574   *) ac_try_echo=$ac_try;;
23575 esac
23576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23577   (eval "$ac_compile") 2>conftest.er1
23578   ac_status=$?
23579   grep -v '^ *+' conftest.er1 >conftest.err
23580   rm -f conftest.er1
23581   cat conftest.err >&5
23582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583   (exit $ac_status); } &&
23584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23585   { (case "(($ac_try" in
23586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587   *) ac_try_echo=$ac_try;;
23588 esac
23589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590   (eval "$ac_try") 2>&5
23591   ac_status=$?
23592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593   (exit $ac_status); }; } &&
23594          { ac_try='test -s conftest.$ac_objext'
23595   { (case "(($ac_try" in
23596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597   *) ac_try_echo=$ac_try;;
23598 esac
23599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600   (eval "$ac_try") 2>&5
23601   ac_status=$?
23602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603   (exit $ac_status); }; }; then
23604   ac_cv_member_struct_stat_st_blocks=yes
23605 else
23606   echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23608
23609         cat >conftest.$ac_ext <<_ACEOF
23610 /* confdefs.h.  */
23611 _ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h.  */
23615 $ac_includes_default
23616 int
23617 main ()
23618 {
23619 static struct stat ac_aggr;
23620 if (sizeof ac_aggr.st_blocks)
23621 return 0;
23622   ;
23623   return 0;
23624 }
23625 _ACEOF
23626 rm -f conftest.$ac_objext
23627 if { (ac_try="$ac_compile"
23628 case "(($ac_try" in
23629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630   *) ac_try_echo=$ac_try;;
23631 esac
23632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23633   (eval "$ac_compile") 2>conftest.er1
23634   ac_status=$?
23635   grep -v '^ *+' conftest.er1 >conftest.err
23636   rm -f conftest.er1
23637   cat conftest.err >&5
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); } &&
23640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23641   { (case "(($ac_try" in
23642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23643   *) ac_try_echo=$ac_try;;
23644 esac
23645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23646   (eval "$ac_try") 2>&5
23647   ac_status=$?
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); }; } &&
23650          { ac_try='test -s conftest.$ac_objext'
23651   { (case "(($ac_try" in
23652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23653   *) ac_try_echo=$ac_try;;
23654 esac
23655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23656   (eval "$ac_try") 2>&5
23657   ac_status=$?
23658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); }; }; then
23660   ac_cv_member_struct_stat_st_blocks=yes
23661 else
23662   echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23664
23665         ac_cv_member_struct_stat_st_blocks=no
23666 fi
23667
23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669 fi
23670
23671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23672 fi
23673 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23674 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23675 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23676
23677 cat >>confdefs.h <<_ACEOF
23678 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23679 _ACEOF
23680
23681
23682 fi
23683
23684
23685 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23686 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23687 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23688   echo $ECHO_N "(cached) $ECHO_C" >&6
23689 else
23690   cat >conftest.$ac_ext <<_ACEOF
23691 /* confdefs.h.  */
23692 _ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h.  */
23696 #ifdef HAVE_SYS_TYPES_H
23697 #include <sys/types.h>
23698 #endif
23699 #ifdef HAVE_NETINET_IN_H
23700 #include <netinet/in.h>
23701 #endif
23702
23703 int
23704 main ()
23705 {
23706 static struct sockaddr_in6 ac_aggr;
23707 if (ac_aggr.sin6_scope_id)
23708 return 0;
23709   ;
23710   return 0;
23711 }
23712 _ACEOF
23713 rm -f conftest.$ac_objext
23714 if { (ac_try="$ac_compile"
23715 case "(($ac_try" in
23716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717   *) ac_try_echo=$ac_try;;
23718 esac
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720   (eval "$ac_compile") 2>conftest.er1
23721   ac_status=$?
23722   grep -v '^ *+' conftest.er1 >conftest.err
23723   rm -f conftest.er1
23724   cat conftest.err >&5
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); } &&
23727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23728   { (case "(($ac_try" in
23729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730   *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733   (eval "$ac_try") 2>&5
23734   ac_status=$?
23735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736   (exit $ac_status); }; } &&
23737          { ac_try='test -s conftest.$ac_objext'
23738   { (case "(($ac_try" in
23739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740   *) ac_try_echo=$ac_try;;
23741 esac
23742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23743   (eval "$ac_try") 2>&5
23744   ac_status=$?
23745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746   (exit $ac_status); }; }; then
23747   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23748 else
23749   echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23751
23752         cat >conftest.$ac_ext <<_ACEOF
23753 /* confdefs.h.  */
23754 _ACEOF
23755 cat confdefs.h >>conftest.$ac_ext
23756 cat >>conftest.$ac_ext <<_ACEOF
23757 /* end confdefs.h.  */
23758 #ifdef HAVE_SYS_TYPES_H
23759 #include <sys/types.h>
23760 #endif
23761 #ifdef HAVE_NETINET_IN_H
23762 #include <netinet/in.h>
23763 #endif
23764
23765 int
23766 main ()
23767 {
23768 static struct sockaddr_in6 ac_aggr;
23769 if (sizeof ac_aggr.sin6_scope_id)
23770 return 0;
23771   ;
23772   return 0;
23773 }
23774 _ACEOF
23775 rm -f conftest.$ac_objext
23776 if { (ac_try="$ac_compile"
23777 case "(($ac_try" in
23778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779   *) ac_try_echo=$ac_try;;
23780 esac
23781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23782   (eval "$ac_compile") 2>conftest.er1
23783   ac_status=$?
23784   grep -v '^ *+' conftest.er1 >conftest.err
23785   rm -f conftest.er1
23786   cat conftest.err >&5
23787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788   (exit $ac_status); } &&
23789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23790   { (case "(($ac_try" in
23791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792   *) ac_try_echo=$ac_try;;
23793 esac
23794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23795   (eval "$ac_try") 2>&5
23796   ac_status=$?
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); }; } &&
23799          { ac_try='test -s conftest.$ac_objext'
23800   { (case "(($ac_try" in
23801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802   *) ac_try_echo=$ac_try;;
23803 esac
23804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23805   (eval "$ac_try") 2>&5
23806   ac_status=$?
23807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808   (exit $ac_status); }; }; then
23809   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23810 else
23811   echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23813
23814         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23815 fi
23816
23817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818 fi
23819
23820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23821 fi
23822 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23823 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23824 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23825
23826 cat >>confdefs.h <<_ACEOF
23827 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23828 _ACEOF
23829
23830
23831 fi
23832
23833
23834 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23835 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23836 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23837   echo $ECHO_N "(cached) $ECHO_C" >&6
23838 else
23839   cat >conftest.$ac_ext <<_ACEOF
23840 /* confdefs.h.  */
23841 _ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h.  */
23845 #ifdef HAVE_SYS_TYPES_H
23846 #include <sys/types.h>
23847 #endif
23848 #ifdef HAVE_NETINET_IN_H
23849 # include <netinet/in.h>
23850 #endif
23851 #ifdef HAVE_ARPA_NAMESER_H
23852 # include <arpa/nameser.h>
23853 #endif
23854
23855 int
23856 main ()
23857 {
23858 static ns_msg ac_aggr;
23859 if (ac_aggr._msg_ptr)
23860 return 0;
23861   ;
23862   return 0;
23863 }
23864 _ACEOF
23865 rm -f conftest.$ac_objext
23866 if { (ac_try="$ac_compile"
23867 case "(($ac_try" in
23868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869   *) ac_try_echo=$ac_try;;
23870 esac
23871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872   (eval "$ac_compile") 2>conftest.er1
23873   ac_status=$?
23874   grep -v '^ *+' conftest.er1 >conftest.err
23875   rm -f conftest.er1
23876   cat conftest.err >&5
23877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878   (exit $ac_status); } &&
23879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23880   { (case "(($ac_try" in
23881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882   *) ac_try_echo=$ac_try;;
23883 esac
23884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23885   (eval "$ac_try") 2>&5
23886   ac_status=$?
23887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888   (exit $ac_status); }; } &&
23889          { ac_try='test -s conftest.$ac_objext'
23890   { (case "(($ac_try" in
23891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23892   *) ac_try_echo=$ac_try;;
23893 esac
23894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23895   (eval "$ac_try") 2>&5
23896   ac_status=$?
23897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898   (exit $ac_status); }; }; then
23899   ac_cv_member_ns_msg__msg_ptr=yes
23900 else
23901   echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.$ac_ext >&5
23903
23904         cat >conftest.$ac_ext <<_ACEOF
23905 /* confdefs.h.  */
23906 _ACEOF
23907 cat confdefs.h >>conftest.$ac_ext
23908 cat >>conftest.$ac_ext <<_ACEOF
23909 /* end confdefs.h.  */
23910 #ifdef HAVE_SYS_TYPES_H
23911 #include <sys/types.h>
23912 #endif
23913 #ifdef HAVE_NETINET_IN_H
23914 # include <netinet/in.h>
23915 #endif
23916 #ifdef HAVE_ARPA_NAMESER_H
23917 # include <arpa/nameser.h>
23918 #endif
23919
23920 int
23921 main ()
23922 {
23923 static ns_msg ac_aggr;
23924 if (sizeof ac_aggr._msg_ptr)
23925 return 0;
23926   ;
23927   return 0;
23928 }
23929 _ACEOF
23930 rm -f conftest.$ac_objext
23931 if { (ac_try="$ac_compile"
23932 case "(($ac_try" in
23933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934   *) ac_try_echo=$ac_try;;
23935 esac
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937   (eval "$ac_compile") 2>conftest.er1
23938   ac_status=$?
23939   grep -v '^ *+' conftest.er1 >conftest.err
23940   rm -f conftest.er1
23941   cat conftest.err >&5
23942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943   (exit $ac_status); } &&
23944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23945   { (case "(($ac_try" in
23946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947   *) ac_try_echo=$ac_try;;
23948 esac
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950   (eval "$ac_try") 2>&5
23951   ac_status=$?
23952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953   (exit $ac_status); }; } &&
23954          { ac_try='test -s conftest.$ac_objext'
23955   { (case "(($ac_try" in
23956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23957   *) ac_try_echo=$ac_try;;
23958 esac
23959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23960   (eval "$ac_try") 2>&5
23961   ac_status=$?
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); }; }; then
23964   ac_cv_member_ns_msg__msg_ptr=yes
23965 else
23966   echo "$as_me: failed program was:" >&5
23967 sed 's/^/| /' conftest.$ac_ext >&5
23968
23969         ac_cv_member_ns_msg__msg_ptr=no
23970 fi
23971
23972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23973 fi
23974
23975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23976 fi
23977 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23978 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23979 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23980
23981 cat >>confdefs.h <<_ACEOF
23982 #define HAVE_NS_MSG__MSG_PTR 1
23983 _ACEOF
23984
23985
23986 fi
23987
23988
23989 { echo "$as_me:$LINENO: checking for timezone variable" >&5
23990 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
23991 if test "${ac_cv_have_timezone+set}" = set; then
23992   echo $ECHO_N "(cached) $ECHO_C" >&6
23993 else
23994   cat >conftest.$ac_ext <<_ACEOF
23995 /* confdefs.h.  */
23996 _ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h.  */
24000 #include <time.h>
24001 int
24002 main ()
24003 {
24004 timezone;
24005   ;
24006   return 0;
24007 }
24008 _ACEOF
24009 rm -f conftest.$ac_objext conftest$ac_exeext
24010 if { (ac_try="$ac_link"
24011 case "(($ac_try" in
24012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24013   *) ac_try_echo=$ac_try;;
24014 esac
24015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24016   (eval "$ac_link") 2>conftest.er1
24017   ac_status=$?
24018   grep -v '^ *+' conftest.er1 >conftest.err
24019   rm -f conftest.er1
24020   cat conftest.err >&5
24021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022   (exit $ac_status); } &&
24023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24024   { (case "(($ac_try" in
24025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24026   *) ac_try_echo=$ac_try;;
24027 esac
24028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24029   (eval "$ac_try") 2>&5
24030   ac_status=$?
24031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); }; } &&
24033          { ac_try='test -s conftest$ac_exeext'
24034   { (case "(($ac_try" in
24035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036   *) ac_try_echo=$ac_try;;
24037 esac
24038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24039   (eval "$ac_try") 2>&5
24040   ac_status=$?
24041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042   (exit $ac_status); }; }; then
24043   ac_cv_have_timezone="yes"
24044 else
24045   echo "$as_me: failed program was:" >&5
24046 sed 's/^/| /' conftest.$ac_ext >&5
24047
24048         ac_cv_have_timezone="no"
24049 fi
24050
24051 rm -f core conftest.err conftest.$ac_objext \
24052       conftest$ac_exeext conftest.$ac_ext
24053 fi
24054 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
24055 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
24056 if test "$ac_cv_have_timezone" = "yes"
24057 then
24058
24059 cat >>confdefs.h <<\_ACEOF
24060 #define HAVE_TIMEZONE 1
24061 _ACEOF
24062
24063 fi
24064 { echo "$as_me:$LINENO: checking for daylight variable" >&5
24065 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
24066 if test "${ac_cv_have_daylight+set}" = set; then
24067   echo $ECHO_N "(cached) $ECHO_C" >&6
24068 else
24069   cat >conftest.$ac_ext <<_ACEOF
24070 /* confdefs.h.  */
24071 _ACEOF
24072 cat confdefs.h >>conftest.$ac_ext
24073 cat >>conftest.$ac_ext <<_ACEOF
24074 /* end confdefs.h.  */
24075 #include <time.h>
24076 int
24077 main ()
24078 {
24079 daylight;
24080   ;
24081   return 0;
24082 }
24083 _ACEOF
24084 rm -f conftest.$ac_objext conftest$ac_exeext
24085 if { (ac_try="$ac_link"
24086 case "(($ac_try" in
24087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088   *) ac_try_echo=$ac_try;;
24089 esac
24090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24091   (eval "$ac_link") 2>conftest.er1
24092   ac_status=$?
24093   grep -v '^ *+' conftest.er1 >conftest.err
24094   rm -f conftest.er1
24095   cat conftest.err >&5
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); } &&
24098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24099   { (case "(($ac_try" in
24100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101   *) ac_try_echo=$ac_try;;
24102 esac
24103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24104   (eval "$ac_try") 2>&5
24105   ac_status=$?
24106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107   (exit $ac_status); }; } &&
24108          { ac_try='test -s conftest$ac_exeext'
24109   { (case "(($ac_try" in
24110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111   *) ac_try_echo=$ac_try;;
24112 esac
24113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24114   (eval "$ac_try") 2>&5
24115   ac_status=$?
24116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117   (exit $ac_status); }; }; then
24118   ac_cv_have_daylight="yes"
24119 else
24120   echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24122
24123         ac_cv_have_daylight="no"
24124 fi
24125
24126 rm -f core conftest.err conftest.$ac_objext \
24127       conftest$ac_exeext conftest.$ac_ext
24128 fi
24129 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
24130 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
24131 if test "$ac_cv_have_daylight" = "yes"
24132 then
24133
24134 cat >>confdefs.h <<\_ACEOF
24135 #define HAVE_DAYLIGHT 1
24136 _ACEOF
24137
24138 fi
24139
24140
24141 case $host_cpu in
24142   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
24143 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
24144 if test "${ac_cv_cpp_def___i386__+set}" = set; then
24145   echo $ECHO_N "(cached) $ECHO_C" >&6
24146 else
24147   cat >conftest.$ac_ext <<_ACEOF
24148 /* confdefs.h.  */
24149 _ACEOF
24150 cat confdefs.h >>conftest.$ac_ext
24151 cat >>conftest.$ac_ext <<_ACEOF
24152 /* end confdefs.h.  */
24153 #ifndef __i386__
24154 yes
24155 #endif
24156 _ACEOF
24157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24158   $EGREP "yes" >/dev/null 2>&1; then
24159   ac_cv_cpp_def___i386__=yes
24160 else
24161   ac_cv_cpp_def___i386__=no
24162 fi
24163 rm -f conftest*
24164
24165 fi
24166 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
24167 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
24168 if test $ac_cv_cpp_def___i386__ = yes; then
24169   CFLAGS="$CFLAGS -D__i386__"
24170   LINTFLAGS="$LINTFLAGS -D__i386__"
24171 fi
24172  ;;
24173   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
24174 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
24175 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
24176   echo $ECHO_N "(cached) $ECHO_C" >&6
24177 else
24178   cat >conftest.$ac_ext <<_ACEOF
24179 /* confdefs.h.  */
24180 _ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h.  */
24184 #ifndef __x86_64__
24185 yes
24186 #endif
24187 _ACEOF
24188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24189   $EGREP "yes" >/dev/null 2>&1; then
24190   ac_cv_cpp_def___x86_64__=yes
24191 else
24192   ac_cv_cpp_def___x86_64__=no
24193 fi
24194 rm -f conftest*
24195
24196 fi
24197 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
24198 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
24199 if test $ac_cv_cpp_def___x86_64__ = yes; then
24200   CFLAGS="$CFLAGS -D__x86_64__"
24201   LINTFLAGS="$LINTFLAGS -D__x86_64__"
24202 fi
24203
24204                     { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
24205 echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
24206 if test "${ac_cv_cpp_def__WIN64+set}" = set; then
24207   echo $ECHO_N "(cached) $ECHO_C" >&6
24208 else
24209   cat >conftest.$ac_ext <<_ACEOF
24210 /* confdefs.h.  */
24211 _ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h.  */
24215 #ifndef _WIN64
24216 yes
24217 #endif
24218 _ACEOF
24219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24220   $EGREP "yes" >/dev/null 2>&1; then
24221   ac_cv_cpp_def__WIN64=yes
24222 else
24223   ac_cv_cpp_def__WIN64=no
24224 fi
24225 rm -f conftest*
24226
24227 fi
24228 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
24229 echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
24230 if test $ac_cv_cpp_def__WIN64 = yes; then
24231   CFLAGS="$CFLAGS -D_WIN64"
24232   LINTFLAGS="$LINTFLAGS -D_WIN64"
24233 fi
24234  ;;
24235   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
24236 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
24237 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
24238   echo $ECHO_N "(cached) $ECHO_C" >&6
24239 else
24240   cat >conftest.$ac_ext <<_ACEOF
24241 /* confdefs.h.  */
24242 _ACEOF
24243 cat confdefs.h >>conftest.$ac_ext
24244 cat >>conftest.$ac_ext <<_ACEOF
24245 /* end confdefs.h.  */
24246 #ifndef __ALPHA__
24247 yes
24248 #endif
24249 _ACEOF
24250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24251   $EGREP "yes" >/dev/null 2>&1; then
24252   ac_cv_cpp_def___ALPHA__=yes
24253 else
24254   ac_cv_cpp_def___ALPHA__=no
24255 fi
24256 rm -f conftest*
24257
24258 fi
24259 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
24260 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
24261 if test $ac_cv_cpp_def___ALPHA__ = yes; then
24262   CFLAGS="$CFLAGS -D__ALPHA__"
24263   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
24264 fi
24265  ;;
24266   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
24267 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
24268 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
24269   echo $ECHO_N "(cached) $ECHO_C" >&6
24270 else
24271   cat >conftest.$ac_ext <<_ACEOF
24272 /* confdefs.h.  */
24273 _ACEOF
24274 cat confdefs.h >>conftest.$ac_ext
24275 cat >>conftest.$ac_ext <<_ACEOF
24276 /* end confdefs.h.  */
24277 #ifndef __sparc__
24278 yes
24279 #endif
24280 _ACEOF
24281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24282   $EGREP "yes" >/dev/null 2>&1; then
24283   ac_cv_cpp_def___sparc__=yes
24284 else
24285   ac_cv_cpp_def___sparc__=no
24286 fi
24287 rm -f conftest*
24288
24289 fi
24290 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
24291 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
24292 if test $ac_cv_cpp_def___sparc__ = yes; then
24293   CFLAGS="$CFLAGS -D__sparc__"
24294   LINTFLAGS="$LINTFLAGS -D__sparc__"
24295 fi
24296  ;;
24297   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
24298 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
24299 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
24300   echo $ECHO_N "(cached) $ECHO_C" >&6
24301 else
24302   cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308 #ifndef __powerpc__
24309 yes
24310 #endif
24311 _ACEOF
24312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24313   $EGREP "yes" >/dev/null 2>&1; then
24314   ac_cv_cpp_def___powerpc__=yes
24315 else
24316   ac_cv_cpp_def___powerpc__=no
24317 fi
24318 rm -f conftest*
24319
24320 fi
24321 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
24322 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
24323 if test $ac_cv_cpp_def___powerpc__ = yes; then
24324   CFLAGS="$CFLAGS -D__powerpc__"
24325   LINTFLAGS="$LINTFLAGS -D__powerpc__"
24326 fi
24327  ;;
24328 esac
24329
24330 case $host_vendor in
24331   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
24332 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
24333 if test "${ac_cv_cpp_def___sun__+set}" = set; then
24334   echo $ECHO_N "(cached) $ECHO_C" >&6
24335 else
24336   cat >conftest.$ac_ext <<_ACEOF
24337 /* confdefs.h.  */
24338 _ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h.  */
24342 #ifndef __sun__
24343 yes
24344 #endif
24345 _ACEOF
24346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24347   $EGREP "yes" >/dev/null 2>&1; then
24348   ac_cv_cpp_def___sun__=yes
24349 else
24350   ac_cv_cpp_def___sun__=no
24351 fi
24352 rm -f conftest*
24353
24354 fi
24355 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24356 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
24357 if test $ac_cv_cpp_def___sun__ = yes; then
24358   CFLAGS="$CFLAGS -D__sun__"
24359   LINTFLAGS="$LINTFLAGS -D__sun__"
24360 fi
24361  ;;
24362 esac
24363
24364
24365
24366
24367
24368 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
24369
24370 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
24371
24372 ac_config_commands="$ac_config_commands dlls/kernel/messages"
24373
24374 ac_config_commands="$ac_config_commands dlls/user/resources"
24375
24376 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
24377
24378 ac_config_commands="$ac_config_commands include/wine"
24379
24380
24381 MAKE_RULES=Make.rules
24382
24383
24384 MAKE_DLL_RULES=dlls/Makedll.rules
24385
24386
24387 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24388
24389
24390 MAKE_TEST_RULES=dlls/Maketest.rules
24391
24392
24393 MAKE_PROG_RULES=programs/Makeprog.rules
24394
24395
24396 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/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"
24397
24398
24399 cat >confcache <<\_ACEOF
24400 # This file is a shell script that caches the results of configure
24401 # tests run on this system so they can be shared between configure
24402 # scripts and configure runs, see configure's option --config-cache.
24403 # It is not useful on other systems.  If it contains results you don't
24404 # want to keep, you may remove or edit it.
24405 #
24406 # config.status only pays attention to the cache file if you give it
24407 # the --recheck option to rerun configure.
24408 #
24409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24411 # following values.
24412
24413 _ACEOF
24414
24415 # The following way of writing the cache mishandles newlines in values,
24416 # but we know of no workaround that is simple, portable, and efficient.
24417 # So, we kill variables containing newlines.
24418 # Ultrix sh set writes to stderr and can't be redirected directly,
24419 # and sets the high bit in the cache file unless we assign to the vars.
24420 (
24421   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24422     eval ac_val=\$$ac_var
24423     case $ac_val in #(
24424     *${as_nl}*)
24425       case $ac_var in #(
24426       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24427 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24428       esac
24429       case $ac_var in #(
24430       _ | IFS | as_nl) ;; #(
24431       *) $as_unset $ac_var ;;
24432       esac ;;
24433     esac
24434   done
24435
24436   (set) 2>&1 |
24437     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24438     *${as_nl}ac_space=\ *)
24439       # `set' does not quote correctly, so add quotes (double-quote
24440       # substitution turns \\\\ into \\, and sed turns \\ into \).
24441       sed -n \
24442         "s/'/'\\\\''/g;
24443           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24444       ;; #(
24445     *)
24446       # `set' quotes correctly as required by POSIX, so do not add quotes.
24447       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24448       ;;
24449     esac |
24450     sort
24451 ) |
24452   sed '
24453      /^ac_cv_env_/b end
24454      t clear
24455      :clear
24456      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24457      t end
24458      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24459      :end' >>confcache
24460 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24461   if test -w "$cache_file"; then
24462     test "x$cache_file" != "x/dev/null" &&
24463       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24464 echo "$as_me: updating cache $cache_file" >&6;}
24465     cat confcache >$cache_file
24466   else
24467     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24468 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24469   fi
24470 fi
24471 rm -f confcache
24472
24473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24474 # Let make expand exec_prefix.
24475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24476
24477 DEFS=-DHAVE_CONFIG_H
24478
24479 ac_libobjs=
24480 ac_ltlibobjs=
24481 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24482   # 1. Remove the extension, and $U if already installed.
24483   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24484   ac_i=`echo "$ac_i" | sed "$ac_script"`
24485   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24486   #    will be set to the directory where LIBOBJS objects are built.
24487   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24488   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24489 done
24490 LIBOBJS=$ac_libobjs
24491
24492 LTLIBOBJS=$ac_ltlibobjs
24493
24494
24495
24496 : ${CONFIG_STATUS=./config.status}
24497 ac_clean_files_save=$ac_clean_files
24498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24499 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24500 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24501 cat >$CONFIG_STATUS <<_ACEOF
24502 #! $SHELL
24503 # Generated by $as_me.
24504 # Run this file to recreate the current configuration.
24505 # Compiler output produced by configure, useful for debugging
24506 # configure, is in config.log if it exists.
24507
24508 debug=false
24509 ac_cs_recheck=false
24510 ac_cs_silent=false
24511 SHELL=\${CONFIG_SHELL-$SHELL}
24512 _ACEOF
24513
24514 cat >>$CONFIG_STATUS <<\_ACEOF
24515 ## --------------------- ##
24516 ## M4sh Initialization.  ##
24517 ## --------------------- ##
24518
24519 # Be Bourne compatible
24520 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24521   emulate sh
24522   NULLCMD=:
24523   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24524   # is contrary to our usage.  Disable this feature.
24525   alias -g '${1+"$@"}'='"$@"'
24526   setopt NO_GLOB_SUBST
24527 else
24528   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24529 fi
24530 BIN_SH=xpg4; export BIN_SH # for Tru64
24531 DUALCASE=1; export DUALCASE # for MKS sh
24532
24533
24534 # PATH needs CR
24535 # Avoid depending upon Character Ranges.
24536 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24537 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24538 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24539 as_cr_digits='0123456789'
24540 as_cr_alnum=$as_cr_Letters$as_cr_digits
24541
24542 # The user is always right.
24543 if test "${PATH_SEPARATOR+set}" != set; then
24544   echo "#! /bin/sh" >conf$$.sh
24545   echo  "exit 0"   >>conf$$.sh
24546   chmod +x conf$$.sh
24547   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24548     PATH_SEPARATOR=';'
24549   else
24550     PATH_SEPARATOR=:
24551   fi
24552   rm -f conf$$.sh
24553 fi
24554
24555 # Support unset when possible.
24556 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24557   as_unset=unset
24558 else
24559   as_unset=false
24560 fi
24561
24562
24563 # IFS
24564 # We need space, tab and new line, in precisely that order.  Quoting is
24565 # there to prevent editors from complaining about space-tab.
24566 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24567 # splitting by setting IFS to empty value.)
24568 as_nl='
24569 '
24570 IFS=" ""        $as_nl"
24571
24572 # Find who we are.  Look in the path if we contain no directory separator.
24573 case $0 in
24574   *[\\/]* ) as_myself=$0 ;;
24575   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24576 for as_dir in $PATH
24577 do
24578   IFS=$as_save_IFS
24579   test -z "$as_dir" && as_dir=.
24580   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24581 done
24582 IFS=$as_save_IFS
24583
24584      ;;
24585 esac
24586 # We did not find ourselves, most probably we were run as `sh COMMAND'
24587 # in which case we are not to be found in the path.
24588 if test "x$as_myself" = x; then
24589   as_myself=$0
24590 fi
24591 if test ! -f "$as_myself"; then
24592   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24593   { (exit 1); exit 1; }
24594 fi
24595
24596 # Work around bugs in pre-3.0 UWIN ksh.
24597 for as_var in ENV MAIL MAILPATH
24598 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24599 done
24600 PS1='$ '
24601 PS2='> '
24602 PS4='+ '
24603
24604 # NLS nuisances.
24605 for as_var in \
24606   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24607   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24608   LC_TELEPHONE LC_TIME
24609 do
24610   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24611     eval $as_var=C; export $as_var
24612   else
24613     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24614   fi
24615 done
24616
24617 # Required to use basename.
24618 if expr a : '\(a\)' >/dev/null 2>&1 &&
24619    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24620   as_expr=expr
24621 else
24622   as_expr=false
24623 fi
24624
24625 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24626   as_basename=basename
24627 else
24628   as_basename=false
24629 fi
24630
24631
24632 # Name of the executable.
24633 as_me=`$as_basename -- "$0" ||
24634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24635          X"$0" : 'X\(//\)$' \| \
24636          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24637 echo X/"$0" |
24638     sed '/^.*\/\([^/][^/]*\)\/*$/{
24639             s//\1/
24640             q
24641           }
24642           /^X\/\(\/\/\)$/{
24643             s//\1/
24644             q
24645           }
24646           /^X\/\(\/\).*/{
24647             s//\1/
24648             q
24649           }
24650           s/.*/./; q'`
24651
24652 # CDPATH.
24653 $as_unset CDPATH
24654
24655
24656
24657   as_lineno_1=$LINENO
24658   as_lineno_2=$LINENO
24659   test "x$as_lineno_1" != "x$as_lineno_2" &&
24660   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24661
24662   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24663   # uniformly replaced by the line number.  The first 'sed' inserts a
24664   # line-number line after each line using $LINENO; the second 'sed'
24665   # does the real work.  The second script uses 'N' to pair each
24666   # line-number line with the line containing $LINENO, and appends
24667   # trailing '-' during substitution so that $LINENO is not a special
24668   # case at line end.
24669   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24670   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24671   # E. McMahon (1931-1989) for sed's syntax.  :-)
24672   sed -n '
24673     p
24674     /[$]LINENO/=
24675   ' <$as_myself |
24676     sed '
24677       s/[$]LINENO.*/&-/
24678       t lineno
24679       b
24680       :lineno
24681       N
24682       :loop
24683       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24684       t loop
24685       s/-\n.*//
24686     ' >$as_me.lineno &&
24687   chmod +x "$as_me.lineno" ||
24688     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24689    { (exit 1); exit 1; }; }
24690
24691   # Don't try to exec as it changes $[0], causing all sort of problems
24692   # (the dirname of $[0] is not the place where we might find the
24693   # original and so on.  Autoconf is especially sensitive to this).
24694   . "./$as_me.lineno"
24695   # Exit status is that of the last command.
24696   exit
24697 }
24698
24699
24700 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24701   as_dirname=dirname
24702 else
24703   as_dirname=false
24704 fi
24705
24706 ECHO_C= ECHO_N= ECHO_T=
24707 case `echo -n x` in
24708 -n*)
24709   case `echo 'x\c'` in
24710   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24711   *)   ECHO_C='\c';;
24712   esac;;
24713 *)
24714   ECHO_N='-n';;
24715 esac
24716
24717 if expr a : '\(a\)' >/dev/null 2>&1 &&
24718    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24719   as_expr=expr
24720 else
24721   as_expr=false
24722 fi
24723
24724 rm -f conf$$ conf$$.exe conf$$.file
24725 if test -d conf$$.dir; then
24726   rm -f conf$$.dir/conf$$.file
24727 else
24728   rm -f conf$$.dir
24729   mkdir conf$$.dir
24730 fi
24731 echo >conf$$.file
24732 if ln -s conf$$.file conf$$ 2>/dev/null; then
24733   as_ln_s='ln -s'
24734   # ... but there are two gotchas:
24735   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24736   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24737   # In both cases, we have to default to `cp -p'.
24738   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24739     as_ln_s='cp -p'
24740 elif ln conf$$.file conf$$ 2>/dev/null; then
24741   as_ln_s=ln
24742 else
24743   as_ln_s='cp -p'
24744 fi
24745 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24746 rmdir conf$$.dir 2>/dev/null
24747
24748 if mkdir -p . 2>/dev/null; then
24749   as_mkdir_p=:
24750 else
24751   test -d ./-p && rmdir ./-p
24752   as_mkdir_p=false
24753 fi
24754
24755 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
24756 # systems may use methods other than mode bits to determine executability.
24757 cat >conf$$.file <<_ASEOF
24758 #! /bin/sh
24759 exit 0
24760 _ASEOF
24761 chmod +x conf$$.file
24762 if test -x conf$$.file >/dev/null 2>&1; then
24763   as_executable_p="test -x"
24764 else
24765   as_executable_p=:
24766 fi
24767 rm -f conf$$.file
24768
24769 # Sed expression to map a string onto a valid CPP name.
24770 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24771
24772 # Sed expression to map a string onto a valid variable name.
24773 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24774
24775
24776 exec 6>&1
24777
24778 # Save the log message, to keep $[0] and so on meaningful, and to
24779 # report actual input values of CONFIG_FILES etc. instead of their
24780 # values after options handling.
24781 ac_log="
24782 This file was extended by Wine $as_me 0.9.19, which was
24783 generated by GNU Autoconf 2.60a.  Invocation command line was
24784
24785   CONFIG_FILES    = $CONFIG_FILES
24786   CONFIG_HEADERS  = $CONFIG_HEADERS
24787   CONFIG_LINKS    = $CONFIG_LINKS
24788   CONFIG_COMMANDS = $CONFIG_COMMANDS
24789   $ $0 $@
24790
24791 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24792 "
24793
24794 _ACEOF
24795
24796 cat >>$CONFIG_STATUS <<_ACEOF
24797 # Files that config.status was made for.
24798 config_files="$ac_config_files"
24799 config_headers="$ac_config_headers"
24800 config_commands="$ac_config_commands"
24801
24802 _ACEOF
24803
24804 cat >>$CONFIG_STATUS <<\_ACEOF
24805 ac_cs_usage="\
24806 \`$as_me' instantiates files from templates according to the
24807 current configuration.
24808
24809 Usage: $0 [OPTIONS] [FILE]...
24810
24811   -h, --help       print this help, then exit
24812   -V, --version    print version number and configuration settings, then exit
24813   -q, --quiet      do not print progress messages
24814   -d, --debug      don't remove temporary files
24815       --recheck    update $as_me by reconfiguring in the same conditions
24816   --file=FILE[:TEMPLATE]
24817                    instantiate the configuration file FILE
24818   --header=FILE[:TEMPLATE]
24819                    instantiate the configuration header FILE
24820
24821 Configuration files:
24822 $config_files
24823
24824 Configuration headers:
24825 $config_headers
24826
24827 Configuration commands:
24828 $config_commands
24829
24830 Report bugs to <bug-autoconf@gnu.org>."
24831
24832 _ACEOF
24833 cat >>$CONFIG_STATUS <<_ACEOF
24834 ac_cs_version="\\
24835 Wine config.status 0.9.19
24836 configured by $0, generated by GNU Autoconf 2.60a,
24837   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24838
24839 Copyright (C) 2006 Free Software Foundation, Inc.
24840 This config.status script is free software; the Free Software Foundation
24841 gives unlimited permission to copy, distribute and modify it."
24842
24843 ac_pwd='$ac_pwd'
24844 srcdir='$srcdir'
24845 INSTALL='$INSTALL'
24846 _ACEOF
24847
24848 cat >>$CONFIG_STATUS <<\_ACEOF
24849 # If no file are specified by the user, then we need to provide default
24850 # value.  By we need to know if files were specified by the user.
24851 ac_need_defaults=:
24852 while test $# != 0
24853 do
24854   case $1 in
24855   --*=*)
24856     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24857     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24858     ac_shift=:
24859     ;;
24860   *)
24861     ac_option=$1
24862     ac_optarg=$2
24863     ac_shift=shift
24864     ;;
24865   esac
24866
24867   case $ac_option in
24868   # Handling of the options.
24869   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24870     ac_cs_recheck=: ;;
24871   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24872     echo "$ac_cs_version"; exit ;;
24873   --debug | --debu | --deb | --de | --d | -d )
24874     debug=: ;;
24875   --file | --fil | --fi | --f )
24876     $ac_shift
24877     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24878     ac_need_defaults=false;;
24879   --header | --heade | --head | --hea )
24880     $ac_shift
24881     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24882     ac_need_defaults=false;;
24883   --he | --h)
24884     # Conflict between --help and --header
24885     { echo "$as_me: error: ambiguous option: $1
24886 Try \`$0 --help' for more information." >&2
24887    { (exit 1); exit 1; }; };;
24888   --help | --hel | -h )
24889     echo "$ac_cs_usage"; exit ;;
24890   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24891   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24892     ac_cs_silent=: ;;
24893
24894   # This is an error.
24895   -*) { echo "$as_me: error: unrecognized option: $1
24896 Try \`$0 --help' for more information." >&2
24897    { (exit 1); exit 1; }; } ;;
24898
24899   *) ac_config_targets="$ac_config_targets $1"
24900      ac_need_defaults=false ;;
24901
24902   esac
24903   shift
24904 done
24905
24906 ac_configure_extra_args=
24907
24908 if $ac_cs_silent; then
24909   exec 6>/dev/null
24910   ac_configure_extra_args="$ac_configure_extra_args --silent"
24911 fi
24912
24913 _ACEOF
24914 cat >>$CONFIG_STATUS <<_ACEOF
24915 if \$ac_cs_recheck; then
24916   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24917   CONFIG_SHELL=$SHELL
24918   export CONFIG_SHELL
24919   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24920 fi
24921
24922 _ACEOF
24923 cat >>$CONFIG_STATUS <<\_ACEOF
24924 exec 5>>config.log
24925 {
24926   echo
24927   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24928 ## Running $as_me. ##
24929 _ASBOX
24930   echo "$ac_log"
24931 } >&5
24932
24933 _ACEOF
24934 cat >>$CONFIG_STATUS <<_ACEOF
24935 _ACEOF
24936
24937 cat >>$CONFIG_STATUS <<\_ACEOF
24938
24939 # Handling of arguments.
24940 for ac_config_target in $ac_config_targets
24941 do
24942   case $ac_config_target in
24943     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24944     "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24945     "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24946     "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24947     "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24948     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24949     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24950     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24951     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24952     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24953     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24954     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24955     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24956     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24957     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24958     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24959     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24960     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24961     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24962     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24963     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24964     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24965     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24966     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24967     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24968     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24969     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24970     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24971     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
24972     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
24973     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24974     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24975     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
24976     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
24977     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
24978     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24979     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24980     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24981     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
24982     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
24983     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24984     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24985     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24986     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24987     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24988     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24989     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24990     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24991     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24992     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24993     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24994     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24995     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24996     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24997     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24998     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24999     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
25000     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
25001     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
25002     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
25003     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
25004     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
25005     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
25006     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
25007     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
25008     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
25009     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
25010     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
25011     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
25012     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
25013     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
25014     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
25015     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
25016     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
25017     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
25018     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
25019     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
25020     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
25021     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
25022     "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
25023     "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
25024     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
25025     "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
25026     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
25027     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
25028     "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
25029     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
25030     "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
25031     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
25032     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
25033     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
25034     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
25035     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
25036     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
25037     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
25038     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
25039     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
25040     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
25041     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
25042     "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
25043     "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
25044     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
25045     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
25046     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
25047     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
25048     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
25049     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
25050     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
25051     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
25052     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
25053     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
25054     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
25055     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
25056     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
25057     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
25058     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
25059     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
25060     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
25061     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
25062     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
25063     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
25064     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
25065     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
25066     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
25067     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
25068     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
25069     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
25070     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
25071     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
25072     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
25073     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
25074     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
25075     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
25076     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
25077     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
25078     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
25079     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
25080     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
25081     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
25082     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
25083     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
25084     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
25085     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
25086     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
25087     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
25088     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
25089     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
25090     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
25091     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
25092     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
25093     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
25094     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
25095     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
25096     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
25097     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
25098     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
25099     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
25100     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
25101     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
25102     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
25103     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
25104     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
25105     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
25106     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
25107     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
25108     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
25109     "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
25110     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
25111     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
25112     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
25113     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
25114     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
25115     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
25116     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
25117     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
25118     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
25119     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
25120     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
25121     "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
25122     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
25123     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
25124     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
25125     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
25126     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
25127     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
25128     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
25129     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
25130     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
25131     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
25132     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
25133     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
25134     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
25135     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
25136     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
25137     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
25138     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
25139     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
25140     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
25141     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
25142     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
25143     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
25144     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
25145     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
25146     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
25147     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
25148     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
25149     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
25150     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
25151     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
25152     "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
25153     "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
25154     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
25155     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
25156     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
25157     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
25158     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
25159     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
25160     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
25161     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
25162     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
25163     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
25164     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
25165     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
25166     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
25167     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
25168     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
25169     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
25170     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
25171     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
25172     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
25173     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
25174     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
25175     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
25176     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
25177     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
25178     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
25179     "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
25180     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
25181     "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
25182     "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
25183     "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
25184     "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
25185     "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
25186     "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
25187     "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
25188     "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
25189     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
25190     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
25191     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
25192     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
25193     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
25194     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
25195     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
25196     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
25197     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
25198     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
25199     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
25200     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
25201     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
25202     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
25203     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25204     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
25205     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
25206     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
25207     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
25208     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
25209     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
25210     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
25211     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
25212     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
25213     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
25214     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
25215     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
25216     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
25217     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
25218     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
25219     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
25220     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
25221     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
25222     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
25223     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
25224     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
25225     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
25226     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
25227     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
25228     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
25229     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
25230     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
25231     "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
25232     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
25233     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
25234     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
25235     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
25236     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
25237     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
25238     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
25239     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
25240     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
25241     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
25242     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
25243     "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
25244     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
25245     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
25246     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
25247     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25248     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
25249     "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
25250     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
25251     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
25252     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
25253     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
25254     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
25255
25256   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25257 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25258    { (exit 1); exit 1; }; };;
25259   esac
25260 done
25261
25262
25263 # If the user did not use the arguments to specify the items to instantiate,
25264 # then the envvar interface is used.  Set only those that are not.
25265 # We use the long form for the default assignment because of an extremely
25266 # bizarre bug on SunOS 4.1.3.
25267 if $ac_need_defaults; then
25268   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25269   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25270   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25271 fi
25272
25273 # Have a temporary directory for convenience.  Make it in the build tree
25274 # simply because there is no reason against having it here, and in addition,
25275 # creating and moving files from /tmp can sometimes cause problems.
25276 # Hook for its removal unless debugging.
25277 # Note that there is a small window in which the directory will not be cleaned:
25278 # after its creation but before its name has been assigned to `$tmp'.
25279 $debug ||
25280 {
25281   tmp=
25282   trap 'exit_status=$?
25283   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25284 ' 0
25285   trap '{ (exit 1); exit 1; }' 1 2 13 15
25286 }
25287 # Create a (secure) tmp directory for tmp files.
25288
25289 {
25290   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25291   test -n "$tmp" && test -d "$tmp"
25292 }  ||
25293 {
25294   tmp=./conf$$-$RANDOM
25295   (umask 077 && mkdir "$tmp")
25296 } ||
25297 {
25298    echo "$me: cannot create a temporary directory in ." >&2
25299    { (exit 1); exit 1; }
25300 }
25301
25302 #
25303 # Set up the sed scripts for CONFIG_FILES section.
25304 #
25305
25306 # No need to generate the scripts if there are no CONFIG_FILES.
25307 # This happens for instance when ./config.status config.h
25308 if test -n "$CONFIG_FILES"; then
25309
25310 _ACEOF
25311
25312 # Create sed commands to just substitute file output variables.
25313
25314 # Remaining file output variables are in a fragment that also has non-file
25315 # output varibles.
25316
25317
25318
25319 ac_delim='%!_!# '
25320 for ac_last_try in false false false false false :; do
25321   cat >conf$$subs.sed <<_ACEOF
25322 SHELL!$SHELL$ac_delim
25323 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25324 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25325 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25326 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25327 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25328 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25329 exec_prefix!$exec_prefix$ac_delim
25330 prefix!$prefix$ac_delim
25331 program_transform_name!$program_transform_name$ac_delim
25332 bindir!$bindir$ac_delim
25333 sbindir!$sbindir$ac_delim
25334 libexecdir!$libexecdir$ac_delim
25335 datarootdir!$datarootdir$ac_delim
25336 datadir!$datadir$ac_delim
25337 sysconfdir!$sysconfdir$ac_delim
25338 sharedstatedir!$sharedstatedir$ac_delim
25339 localstatedir!$localstatedir$ac_delim
25340 includedir!$includedir$ac_delim
25341 oldincludedir!$oldincludedir$ac_delim
25342 docdir!$docdir$ac_delim
25343 infodir!$infodir$ac_delim
25344 htmldir!$htmldir$ac_delim
25345 dvidir!$dvidir$ac_delim
25346 pdfdir!$pdfdir$ac_delim
25347 psdir!$psdir$ac_delim
25348 libdir!$libdir$ac_delim
25349 localedir!$localedir$ac_delim
25350 mandir!$mandir$ac_delim
25351 DEFS!$DEFS$ac_delim
25352 ECHO_C!$ECHO_C$ac_delim
25353 ECHO_N!$ECHO_N$ac_delim
25354 ECHO_T!$ECHO_T$ac_delim
25355 LIBS!$LIBS$ac_delim
25356 build_alias!$build_alias$ac_delim
25357 host_alias!$host_alias$ac_delim
25358 target_alias!$target_alias$ac_delim
25359 build!$build$ac_delim
25360 build_cpu!$build_cpu$ac_delim
25361 build_vendor!$build_vendor$ac_delim
25362 build_os!$build_os$ac_delim
25363 host!$host$ac_delim
25364 host_cpu!$host_cpu$ac_delim
25365 host_vendor!$host_vendor$ac_delim
25366 host_os!$host_os$ac_delim
25367 WIN16_FILES!$WIN16_FILES$ac_delim
25368 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25369 SET_MAKE!$SET_MAKE$ac_delim
25370 CC!$CC$ac_delim
25371 CFLAGS!$CFLAGS$ac_delim
25372 LDFLAGS!$LDFLAGS$ac_delim
25373 CPPFLAGS!$CPPFLAGS$ac_delim
25374 ac_ct_CC!$ac_ct_CC$ac_delim
25375 EXEEXT!$EXEEXT$ac_delim
25376 OBJEXT!$OBJEXT$ac_delim
25377 CXX!$CXX$ac_delim
25378 CXXFLAGS!$CXXFLAGS$ac_delim
25379 ac_ct_CXX!$ac_ct_CXX$ac_delim
25380 CPPBIN!$CPPBIN$ac_delim
25381 TOOLSDIR!$TOOLSDIR$ac_delim
25382 XMKMF!$XMKMF$ac_delim
25383 CPP!$CPP$ac_delim
25384 X_CFLAGS!$X_CFLAGS$ac_delim
25385 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25386 X_LIBS!$X_LIBS$ac_delim
25387 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25388 LEX!$LEX$ac_delim
25389 LEXLIB!$LEXLIB$ac_delim
25390 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25391 XLEX!$XLEX$ac_delim
25392 BISON!$BISON$ac_delim
25393 AS!$AS$ac_delim
25394 ac_ct_AS!$ac_ct_AS$ac_delim
25395 LD!$LD$ac_delim
25396 AR!$AR$ac_delim
25397 RANLIB!$RANLIB$ac_delim
25398 STRIP!$STRIP$ac_delim
25399 WINDRES!$WINDRES$ac_delim
25400 LN_S!$LN_S$ac_delim
25401 LN!$LN$ac_delim
25402 GREP!$GREP$ac_delim
25403 EGREP!$EGREP$ac_delim
25404 _ACEOF
25405
25406   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
25407     break
25408   elif $ac_last_try; then
25409     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25410 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25411    { (exit 1); exit 1; }; }
25412   else
25413     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25414   fi
25415 done
25416
25417 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25418 if test -n "$ac_eof"; then
25419   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25420   ac_eof=`expr $ac_eof + 1`
25421 fi
25422
25423 cat >>$CONFIG_STATUS <<_ACEOF
25424 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25426 /^[      ]*@MAKE_RULES@[         ]*$/{
25427 r $MAKE_RULES
25428 d
25429 }
25430 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
25431 r $MAKE_DLL_RULES
25432 d
25433 }
25434 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
25435 r $MAKE_IMPLIB_RULES
25436 d
25437 }
25438 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
25439 r $MAKE_TEST_RULES
25440 d
25441 }
25442 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
25443 r $MAKE_PROG_RULES
25444 d
25445 }
25446 _ACEOF
25447 sed '
25448 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25449 s/^/s,@/; s/!/@,|#_!!_#|/
25450 :n
25451 t n
25452 s/'"$ac_delim"'$/,g/; t
25453 s/$/\\/; p
25454 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25455 ' >>$CONFIG_STATUS <conf$$subs.sed
25456 rm -f conf$$subs.sed
25457 cat >>$CONFIG_STATUS <<_ACEOF
25458 CEOF$ac_eof
25459 _ACEOF
25460
25461
25462 ac_delim='%!_!# '
25463 for ac_last_try in false false false false false :; do
25464   cat >conf$$subs.sed <<_ACEOF
25465 LDCONFIG!$LDCONFIG$ac_delim
25466 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25467 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25468 INSTALL_DATA!$INSTALL_DATA$ac_delim
25469 LINT!$LINT$ac_delim
25470 LINTFLAGS!$LINTFLAGS$ac_delim
25471 FONTFORGE!$FONTFORGE$ac_delim
25472 PKG_CONFIG!$PKG_CONFIG$ac_delim
25473 PRELINK!$PRELINK$ac_delim
25474 LIBPTHREAD!$LIBPTHREAD$ac_delim
25475 XLIB!$XLIB$ac_delim
25476 XFILES!$XFILES$ac_delim
25477 OPENGLFILES!$OPENGLFILES$ac_delim
25478 GLU32FILES!$GLU32FILES$ac_delim
25479 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25480 GLUT_LIBS!$GLUT_LIBS$ac_delim
25481 GLUT32FILES!$GLUT32FILES$ac_delim
25482 NASLIBS!$NASLIBS$ac_delim
25483 XML2LIBS!$XML2LIBS$ac_delim
25484 XML2INCL!$XML2INCL$ac_delim
25485 XSLTLIBS!$XSLTLIBS$ac_delim
25486 XSLTINCL!$XSLTINCL$ac_delim
25487 HALINCL!$HALINCL$ac_delim
25488 CURSESLIBS!$CURSESLIBS$ac_delim
25489 sane_devel!$sane_devel$ac_delim
25490 SANELIBS!$SANELIBS$ac_delim
25491 SANEINCL!$SANEINCL$ac_delim
25492 gphoto2_devel!$gphoto2_devel$ac_delim
25493 gphoto2port_devel!$gphoto2port_devel$ac_delim
25494 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25495 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25496 ICULIBS!$ICULIBS$ac_delim
25497 RESOLVLIBS!$RESOLVLIBS$ac_delim
25498 LCMSLIBS!$LCMSLIBS$ac_delim
25499 LDAPLIBS!$LDAPLIBS$ac_delim
25500 FREETYPELIBS!$FREETYPELIBS$ac_delim
25501 FREETYPEINCL!$FREETYPEINCL$ac_delim
25502 ft_devel!$ft_devel$ac_delim
25503 ft_devel2!$ft_devel2$ac_delim
25504 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25505 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25506 ARTSLIBS!$ARTSLIBS$ac_delim
25507 ARTSINCL!$ARTSINCL$ac_delim
25508 ESDCONFIG!$ESDCONFIG$ac_delim
25509 ESDLIBS!$ESDLIBS$ac_delim
25510 ESDINCL!$ESDINCL$ac_delim
25511 ALSALIBS!$ALSALIBS$ac_delim
25512 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25513 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25514 BUILTINFLAG!$BUILTINFLAG$ac_delim
25515 DLLEXT!$DLLEXT$ac_delim
25516 DLLFLAGS!$DLLFLAGS$ac_delim
25517 DLLIBS!$DLLIBS$ac_delim
25518 LDSHARED!$LDSHARED$ac_delim
25519 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25520 LIBEXT!$LIBEXT$ac_delim
25521 IMPLIBEXT!$IMPLIBEXT$ac_delim
25522 DLLTOOL!$DLLTOOL$ac_delim
25523 DLLWRAP!$DLLWRAP$ac_delim
25524 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
25525 LDEXERPATH!$LDEXERPATH$ac_delim
25526 LDDLLRPATH!$LDDLLRPATH$ac_delim
25527 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25528 IOKITLIB!$IOKITLIB$ac_delim
25529 COREAUDIO!$COREAUDIO$ac_delim
25530 CROSSTEST!$CROSSTEST$ac_delim
25531 CROSSCC!$CROSSCC$ac_delim
25532 CROSSWINDRES!$CROSSWINDRES$ac_delim
25533 LDPATH!$LDPATH$ac_delim
25534 CRTLIBS!$CRTLIBS$ac_delim
25535 SOCKETLIBS!$SOCKETLIBS$ac_delim
25536 MAIN_BINARY!$MAIN_BINARY$ac_delim
25537 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25538 LDD!$LDD$ac_delim
25539 LIBPOLL!$LIBPOLL$ac_delim
25540 LIBOBJS!$LIBOBJS$ac_delim
25541 LTLIBOBJS!$LTLIBOBJS$ac_delim
25542 _ACEOF
25543
25544   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
25545     break
25546   elif $ac_last_try; then
25547     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25548 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25549    { (exit 1); exit 1; }; }
25550   else
25551     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25552   fi
25553 done
25554
25555 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25556 if test -n "$ac_eof"; then
25557   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25558   ac_eof=`expr $ac_eof + 1`
25559 fi
25560
25561 cat >>$CONFIG_STATUS <<_ACEOF
25562 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25564 _ACEOF
25565 sed '
25566 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25567 s/^/s,@/; s/!/@,|#_!!_#|/
25568 :n
25569 t n
25570 s/'"$ac_delim"'$/,g/; t
25571 s/$/\\/; p
25572 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25573 ' >>$CONFIG_STATUS <conf$$subs.sed
25574 rm -f conf$$subs.sed
25575 cat >>$CONFIG_STATUS <<_ACEOF
25576 :end
25577 s/|#_!!_#|//g
25578 CEOF$ac_eof
25579 _ACEOF
25580
25581
25582 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25583 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25584 # trailing colons and then remove the whole line if VPATH becomes empty
25585 # (actually we leave an empty line to preserve line numbers).
25586 if test "x$srcdir" = x.; then
25587   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25588 s/:*\$(srcdir):*/:/
25589 s/:*\${srcdir}:*/:/
25590 s/:*@srcdir@:*/:/
25591 s/^\([^=]*=[     ]*\):*/\1/
25592 s/:*$//
25593 s/^[^=]*=[       ]*$//
25594 }'
25595 fi
25596
25597 cat >>$CONFIG_STATUS <<\_ACEOF
25598 fi # test -n "$CONFIG_FILES"
25599
25600
25601 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25602 do
25603   case $ac_tag in
25604   :[FHLC]) ac_mode=$ac_tag; continue;;
25605   esac
25606   case $ac_mode$ac_tag in
25607   :[FHL]*:*);;
25608   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25609 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25610    { (exit 1); exit 1; }; };;
25611   :[FH]-) ac_tag=-:-;;
25612   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25613   esac
25614   ac_save_IFS=$IFS
25615   IFS=:
25616   set x $ac_tag
25617   IFS=$ac_save_IFS
25618   shift
25619   ac_file=$1
25620   shift
25621
25622   case $ac_mode in
25623   :L) ac_source=$1;;
25624   :[FH])
25625     ac_file_inputs=
25626     for ac_f
25627     do
25628       case $ac_f in
25629       -) ac_f="$tmp/stdin";;
25630       *) # Look for the file first in the build tree, then in the source tree
25631          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25632          # because $ac_f cannot contain `:'.
25633          test -f "$ac_f" ||
25634            case $ac_f in
25635            [\\/$]*) false;;
25636            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25637            esac ||
25638            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25639 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25640    { (exit 1); exit 1; }; };;
25641       esac
25642       ac_file_inputs="$ac_file_inputs $ac_f"
25643     done
25644
25645     # Let's still pretend it is `configure' which instantiates (i.e., don't
25646     # use $as_me), people would be surprised to read:
25647     #    /* config.h.  Generated by config.status.  */
25648     configure_input="Generated from "`IFS=:
25649           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25650     if test x"$ac_file" != x-; then
25651       configure_input="$ac_file.  $configure_input"
25652       { echo "$as_me:$LINENO: creating $ac_file" >&5
25653 echo "$as_me: creating $ac_file" >&6;}
25654     fi
25655
25656     case $ac_tag in
25657     *:-:* | *:-) cat >"$tmp/stdin";;
25658     esac
25659     ;;
25660   esac
25661
25662   ac_dir=`$as_dirname -- "$ac_file" ||
25663 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25664          X"$ac_file" : 'X\(//\)[^/]' \| \
25665          X"$ac_file" : 'X\(//\)$' \| \
25666          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25667 echo X"$ac_file" |
25668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25669             s//\1/
25670             q
25671           }
25672           /^X\(\/\/\)[^/].*/{
25673             s//\1/
25674             q
25675           }
25676           /^X\(\/\/\)$/{
25677             s//\1/
25678             q
25679           }
25680           /^X\(\/\).*/{
25681             s//\1/
25682             q
25683           }
25684           s/.*/./; q'`
25685   { as_dir="$ac_dir"
25686   case $as_dir in #(
25687   -*) as_dir=./$as_dir;;
25688   esac
25689   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25690     as_dirs=
25691     while :; do
25692       case $as_dir in #(
25693       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25694       *) as_qdir=$as_dir;;
25695       esac
25696       as_dirs="'$as_qdir' $as_dirs"
25697       as_dir=`$as_dirname -- "$as_dir" ||
25698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25699          X"$as_dir" : 'X\(//\)[^/]' \| \
25700          X"$as_dir" : 'X\(//\)$' \| \
25701          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25702 echo X"$as_dir" |
25703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25704             s//\1/
25705             q
25706           }
25707           /^X\(\/\/\)[^/].*/{
25708             s//\1/
25709             q
25710           }
25711           /^X\(\/\/\)$/{
25712             s//\1/
25713             q
25714           }
25715           /^X\(\/\).*/{
25716             s//\1/
25717             q
25718           }
25719           s/.*/./; q'`
25720       test -d "$as_dir" && break
25721     done
25722     test -z "$as_dirs" || eval "mkdir $as_dirs"
25723   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25724 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25725    { (exit 1); exit 1; }; }; }
25726   ac_builddir=.
25727
25728 case "$ac_dir" in
25729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25730 *)
25731   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25732   # A ".." for each directory in $ac_dir_suffix.
25733   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25734   case $ac_top_builddir_sub in
25735   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25736   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25737   esac ;;
25738 esac
25739 ac_abs_top_builddir=$ac_pwd
25740 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25741 # for backward compatibility:
25742 ac_top_builddir=$ac_top_build_prefix
25743
25744 case $srcdir in
25745   .)  # We are building in place.
25746     ac_srcdir=.
25747     ac_top_srcdir=$ac_top_builddir_sub
25748     ac_abs_top_srcdir=$ac_pwd ;;
25749   [\\/]* | ?:[\\/]* )  # Absolute name.
25750     ac_srcdir=$srcdir$ac_dir_suffix;
25751     ac_top_srcdir=$srcdir
25752     ac_abs_top_srcdir=$srcdir ;;
25753   *) # Relative name.
25754     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25755     ac_top_srcdir=$ac_top_build_prefix$srcdir
25756     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25757 esac
25758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25759
25760
25761   case $ac_mode in
25762   :F)
25763   #
25764   # CONFIG_FILE
25765   #
25766
25767   case $INSTALL in
25768   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25769   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25770   esac
25771 _ACEOF
25772
25773 cat >>$CONFIG_STATUS <<\_ACEOF
25774 # If the template does not know about datarootdir, expand it.
25775 # FIXME: This hack should be removed a few years after 2.60.
25776 ac_datarootdir_hack=; ac_datarootdir_seen=
25777
25778 case `sed -n '/datarootdir/ {
25779   p
25780   q
25781 }
25782 /@datadir@/p
25783 /@docdir@/p
25784 /@infodir@/p
25785 /@localedir@/p
25786 /@mandir@/p
25787 ' $ac_file_inputs` in
25788 *datarootdir*) ac_datarootdir_seen=yes;;
25789 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25790   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25791 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25792 _ACEOF
25793 cat >>$CONFIG_STATUS <<_ACEOF
25794   ac_datarootdir_hack='
25795   s&@datadir@&$datadir&g
25796   s&@docdir@&$docdir&g
25797   s&@infodir@&$infodir&g
25798   s&@localedir@&$localedir&g
25799   s&@mandir@&$mandir&g
25800     s&\\\${datarootdir}&$datarootdir&g' ;;
25801 esac
25802 _ACEOF
25803
25804 # Neutralize VPATH when `$srcdir' = `.'.
25805 # Shell code in configure.ac might set extrasub.
25806 # FIXME: do we really want to maintain this feature?
25807 cat >>$CONFIG_STATUS <<_ACEOF
25808   sed "$ac_vpsub
25809 $extrasub
25810 _ACEOF
25811 cat >>$CONFIG_STATUS <<\_ACEOF
25812 :t
25813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25814 s&@configure_input@&$configure_input&;t t
25815 s&@top_builddir@&$ac_top_builddir_sub&;t t
25816 s&@srcdir@&$ac_srcdir&;t t
25817 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25818 s&@top_srcdir@&$ac_top_srcdir&;t t
25819 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25820 s&@builddir@&$ac_builddir&;t t
25821 s&@abs_builddir@&$ac_abs_builddir&;t t
25822 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25823 s&@INSTALL@&$ac_INSTALL&;t t
25824 $ac_datarootdir_hack
25825 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25826
25827 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25828   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25829   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25830   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25831 which seems to be undefined.  Please make sure it is defined." >&5
25832 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25833 which seems to be undefined.  Please make sure it is defined." >&2;}
25834
25835   rm -f "$tmp/stdin"
25836   case $ac_file in
25837   -) cat "$tmp/out"; rm -f "$tmp/out";;
25838   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25839   esac
25840  ;;
25841   :H)
25842   #
25843   # CONFIG_HEADER
25844   #
25845 _ACEOF
25846
25847 # Transform confdefs.h into a sed script `conftest.defines', that
25848 # substitutes the proper values into config.h.in to produce config.h.
25849 rm -f conftest.defines conftest.tail
25850 # First, append a space to every undef/define line, to ease matching.
25851 echo 's/$/ /' >conftest.defines
25852 # Then, protect against being on the right side of a sed subst, or in
25853 # an unquoted here document, in config.status.  If some macros were
25854 # called several times there might be several #defines for the same
25855 # symbol, which is useless.  But do not sort them, since the last
25856 # AC_DEFINE must be honored.
25857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25858 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25859 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25860 # PARAMS is the parameter list in the macro definition--in most cases, it's
25861 # just an empty string.
25862 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25863 ac_dB='\\)[      (].*,\\1define\\2'
25864 ac_dC=' '
25865 ac_dD=' ,'
25866
25867 uniq confdefs.h |
25868   sed -n '
25869         t rset
25870         :rset
25871         s/^[     ]*#[    ]*define[       ][      ]*//
25872         t ok
25873         d
25874         :ok
25875         s/[\\&,]/\\&/g
25876         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25877         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25878   ' >>conftest.defines
25879
25880 # Remove the space that was appended to ease matching.
25881 # Then replace #undef with comments.  This is necessary, for
25882 # example, in the case of _POSIX_SOURCE, which is predefined and required
25883 # on some systems where configure will not decide to define it.
25884 # (The regexp can be short, since the line contains either #define or #undef.)
25885 echo 's/ $//
25886 s,^[     #]*u.*,/* & */,' >>conftest.defines
25887
25888 # Break up conftest.defines:
25889 ac_max_sed_lines=50
25890
25891 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25892 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25893 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25894 # et cetera.
25895 ac_in='$ac_file_inputs'
25896 ac_out='"$tmp/out1"'
25897 ac_nxt='"$tmp/out2"'
25898
25899 while :
25900 do
25901   # Write a here document:
25902     cat >>$CONFIG_STATUS <<_ACEOF
25903     # First, check the format of the line:
25904     cat >"\$tmp/defines.sed" <<\\CEOF
25905 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25906 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25907 b
25908 :def
25909 _ACEOF
25910   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25911   echo 'CEOF
25912     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25913   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25914   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25915   grep . conftest.tail >/dev/null || break
25916   rm -f conftest.defines
25917   mv conftest.tail conftest.defines
25918 done
25919 rm -f conftest.defines conftest.tail
25920
25921 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25922 cat >>$CONFIG_STATUS <<\_ACEOF
25923   if test x"$ac_file" != x-; then
25924     echo "/* $configure_input  */" >"$tmp/config.h"
25925     cat "$ac_result" >>"$tmp/config.h"
25926     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25927       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25928 echo "$as_me: $ac_file is unchanged" >&6;}
25929     else
25930       rm -f $ac_file
25931       mv "$tmp/config.h" $ac_file
25932     fi
25933   else
25934     echo "/* $configure_input  */"
25935     cat "$ac_result"
25936   fi
25937   rm -f "$tmp/out12"
25938  ;;
25939
25940   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25941 echo "$as_me: executing $ac_file commands" >&6;}
25942  ;;
25943   esac
25944
25945
25946   case $ac_file$ac_mode in
25947     "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25948 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25949     "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25950 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25951     "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25952 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25953     "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25954 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25955     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25956 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25957     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25958 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25959
25960   esac
25961 done # for ac_tag
25962
25963
25964 { (exit 0); exit 0; }
25965 _ACEOF
25966 chmod +x $CONFIG_STATUS
25967 ac_clean_files=$ac_clean_files_save
25968
25969
25970 # configure is writing to config.log, and then calls config.status.
25971 # config.status does its own redirection, appending to config.log.
25972 # Unfortunately, on DOS this fails, as config.log is still kept open
25973 # by configure, so config.status won't be able to write to it; its
25974 # output is simply discarded.  So we exec the FD to /dev/null,
25975 # effectively closing config.log, so it can be properly (re)opened and
25976 # appended to by config.status.  When coming back to configure, we
25977 # need to make the FD available again.
25978 if test "$no_create" != yes; then
25979   ac_cs_success=:
25980   ac_config_status_args=
25981   test "$silent" = yes &&
25982     ac_config_status_args="$ac_config_status_args --quiet"
25983   exec 5>/dev/null
25984   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25985   exec 5>>config.log
25986   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25987   # would make configure fail if this is the last instruction.
25988   $ac_cs_success || { (exit 1); exit 1; }
25989 fi
25990
25991
25992 if test "$have_x" = "no"
25993 then
25994   echo >&2
25995   { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25996 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25997   { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25998 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25999   { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
26000 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
26001   { echo "$as_me:$LINENO: WARNING:  packages of Xlib/Xfree86 at the very least." >&5
26002 echo "$as_me: WARNING:  packages of Xlib/Xfree86 at the very least." >&2;}
26003 fi
26004
26005 if test "$wine_cv_opengl_version_OK" = "no"
26006 then
26007   echo >&2
26008   { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
26009 echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
26010   { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
26011 echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
26012 fi
26013
26014 if test "$wine_cv_msg_freetype" = "yes"
26015 then
26016   echo >&2
26017   { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
26018 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
26019   { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
26020 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
26021   { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
26022 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
26023   { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
26024 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
26025 fi
26026
26027 if test -z "$FONTSSUBDIRS"
26028 then
26029   echo >&2
26030   if test "$FONTFORGE" = "false"
26031   then
26032     { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
26033 echo "$as_me: WARNING: FontForge is missing." >&2;}
26034   else
26035     { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
26036 echo "$as_me: WARNING: FreeType is missing." >&2;}
26037   fi
26038   { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
26039 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
26040 fi
26041
26042 if test -z "$ALSALIBS" -a \
26043         -z "$ARTSC_LIBS" -a \
26044         -z "$AUDIOIOLIBS" -a \
26045         -z "$NASLIBS" -a \
26046         -z "$ESD_LIBS" -a \
26047         -z "$ac_cv_lib_soname_jack" -a \
26048         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
26049         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
26050         "$ac_cv_header_soundcard_h" != "yes"
26051 then
26052   echo >&2
26053   { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
26054 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
26055   { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
26056 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
26057   { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
26058 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
26059 fi
26060
26061 echo
26062 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
26063 echo
26064