push a3069cb3bfd71d4719e515a5e2d9729e18e3f983
[wine/hacks.git] / configure
blobacbc1a1978ec3e4a54b2d90ab722ed0e3b73e607
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Wine 0.9.39.
5 # Report bugs to <wine-devel@winehq.org>.
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 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='Wine'
576 PACKAGE_TARNAME='wine'
577 PACKAGE_VERSION='0.9.39'
578 PACKAGE_STRING='Wine 0.9.39'
579 PACKAGE_BUGREPORT='wine-devel@winehq.org'
581 ac_unique_file="server/atom.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 WIN16_FILES
664 WIN16_INSTALL
665 TESTSUBDIRS
666 WINETEST
667 SET_MAKE
669 CFLAGS
670 LDFLAGS
671 CPPFLAGS
672 ac_ct_CC
673 EXEEXT
674 OBJEXT
676 CXXFLAGS
677 ac_ct_CXX
678 CPPBIN
679 TOOLSDIR
680 XMKMF
682 X_CFLAGS
683 X_PRE_LIBS
684 X_LIBS
685 X_EXTRA_LIBS
686 FLEX
687 BISON
689 ac_ct_AS
692 RANLIB
693 STRIP
694 WINDRES
695 LN_S
697 GREP
698 EGREP
699 LDCONFIG
700 INSTALL_PROGRAM
701 INSTALL_SCRIPT
702 INSTALL_DATA
703 LINT
704 LINTFLAGS
705 FONTFORGE
706 PKG_CONFIG
707 PRELINK
708 LIBPTHREAD
709 XLIB
710 XFILES
711 OPENGLFILES
712 GLU32FILES
713 OPENGL_LIBS
714 QUARTZFILES
715 NASLIBS
716 XML2LIBS
717 XML2INCL
718 XSLTLIBS
719 XSLTINCL
720 HALINCL
721 sane_devel
722 SANEINCL
723 gphoto2_devel
724 gphoto2port_devel
725 GPHOTO2LIBS
726 GPHOTO2INCL
727 ICULIBS
728 RESOLVLIBS
729 LCMSLIBS
730 LDAPLIBS
731 FREETYPELIBS
732 FREETYPEINCL
733 ft_devel
734 ft_devel2
735 FONTSSUBDIRS
736 ESDCONFIG
737 ESDLIBS
738 ESDINCL
739 ALSALIBS
740 AUDIOIOLIBS
741 EXTRACFLAGS
742 BUILTINFLAG
743 DLLEXT
744 DLLFLAGS
745 LDSHARED
746 LDDLLFLAGS
747 LIBEXT
748 IMPLIBEXT
749 LIBWINE_LDFLAGS
750 DLLTOOL
751 DLLWRAP
752 MINGWAR
753 COREFOUNDATIONLIB
754 IOKITLIB
755 LDEXECFLAGS
756 DISKARBITRATIONLIB
757 COREAUDIO
758 CARBONLIB
759 CROSSTEST
760 CROSSCC
761 CROSSWINDRES
762 LDPATH
763 CRTLIBS
764 SOCKETLIBS
765 MAIN_BINARY
766 EXTRA_BINARIES
768 LIBDL
769 LIBPOLL
770 DEPENDENCIES
771 LIBOBJS
772 LTLIBOBJS'
773 ac_subst_files='MAKE_RULES
774 MAKE_DLL_RULES
775 MAKE_IMPLIB_RULES
776 MAKE_TEST_RULES
777 MAKE_PROG_RULES'
778 ac_precious_vars='build_alias
779 host_alias
780 target_alias
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
787 CXXFLAGS
789 XMKMF
790 CPP'
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
839 ac_prev=
840 ac_dashdash=
841 for ac_option
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
850 case $ac_option in
851 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *) ac_optarg=yes ;;
853 esac
855 # Accept the important Cygnus configure options, so we can diagnose typos.
857 case $ac_dashdash$ac_option in
859 ac_dashdash=yes ;;
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
878 --config-cache | -C)
879 cache_file=config.cache ;;
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
893 -disable-* | --disable-*)
894 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
897 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
898 { (exit 1); exit 1; }; }
899 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
900 eval enable_$ac_feature=no ;;
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
912 -enable-* | --enable-*)
913 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
916 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
917 { (exit 1); exit 1; }; }
918 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
919 eval enable_$ac_feature=\$ac_optarg ;;
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 exec_prefix=$ac_optarg ;;
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
932 with_gas=yes ;;
934 -help | --help | --hel | --he | -h)
935 ac_init_help=long ;;
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
941 -host | --host | --hos | --ho)
942 ac_prev=host_alias ;;
943 -host=* | --host=* | --hos=* | --ho=*)
944 host_alias=$ac_optarg ;;
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 ac_prev=htmldir ;;
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 | --ht=*)
950 htmldir=$ac_optarg ;;
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
957 includedir=$ac_optarg ;;
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 ac_prev=infodir ;;
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962 infodir=$ac_optarg ;;
964 -libdir | --libdir | --libdi | --libd)
965 ac_prev=libdir ;;
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
967 libdir=$ac_optarg ;;
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
974 libexecdir=$ac_optarg ;;
976 -localedir | --localedir | --localedi | --localed | --locale)
977 ac_prev=localedir ;;
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
981 -localstatedir | --localstatedir | --localstatedi | --localstated \
982 | --localstate | --localstat | --localsta | --localst | --locals)
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986 localstatedir=$ac_optarg ;;
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 ac_prev=mandir ;;
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 mandir=$ac_optarg ;;
993 -nfp | --nfp | --nf)
994 # Obsolete; use --without-fp.
995 with_fp=no ;;
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n)
999 no_create=yes ;;
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 no_recursion=yes ;;
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012 oldincludedir=$ac_optarg ;;
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 ac_prev=prefix ;;
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017 prefix=$ac_optarg ;;
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024 program_prefix=$ac_optarg ;;
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031 program_suffix=$ac_optarg ;;
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
1048 program_transform_name=$ac_optarg ;;
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 ac_prev=pdfdir ;;
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1055 -psdir | --psdir | --psdi | --psd | --ps)
1056 ac_prev=psdir ;;
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 psdir=$ac_optarg ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 silent=yes ;;
1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065 ac_prev=sbindir ;;
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067 | --sbi=* | --sb=*)
1068 sbindir=$ac_optarg ;;
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1073 | --sha | --sh)
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078 | --sha=* | --sh=*)
1079 sharedstatedir=$ac_optarg ;;
1081 -site | --site | --sit)
1082 ac_prev=site ;;
1083 -site=* | --site=* | --sit=*)
1084 site=$ac_optarg ;;
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087 ac_prev=srcdir ;;
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089 srcdir=$ac_optarg ;;
1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096 sysconfdir=$ac_optarg ;;
1098 -target | --target | --targe | --targ | --tar | --ta | --t)
1099 ac_prev=target_alias ;;
1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101 target_alias=$ac_optarg ;;
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 verbose=yes ;;
1106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
1109 -with-* | --with-*)
1110 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid package name: $ac_package" >&2
1114 { (exit 1); exit 1; }; }
1115 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1116 eval with_$ac_package=\$ac_optarg ;;
1118 -without-* | --without-*)
1119 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 { echo "$as_me: error: invalid package name: $ac_package" >&2
1123 { (exit 1); exit 1; }; }
1124 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1125 eval with_$ac_package=no ;;
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1145 -*) { echo "$as_me: error: unrecognized option: $ac_option
1146 Try \`$0 --help' for more information." >&2
1147 { (exit 1); exit 1; }; }
1150 *=*)
1151 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1155 { (exit 1); exit 1; }; }
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1160 # FIXME: should be removed in autoconf 3.0.
1161 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 esac
1168 done
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 { echo "$as_me: error: missing argument to $ac_option" >&2
1173 { (exit 1); exit 1; }; }
1176 # Be sure to have absolute directory names.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1182 eval ac_val=\$$ac_var
1183 case $ac_val in
1184 [\\/$]* | ?:[\\/]* ) continue;;
1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1186 esac
1187 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1188 { (exit 1); exit 1; }; }
1189 done
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1194 build=$build_alias
1195 host=$host_alias
1196 target=$target_alias
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1203 If a cross compiler is detected then cross compile mode will be used." >&2
1204 elif test "x$build_alias" != "x$host_alias"; then
1205 cross_compiling=yes
1209 ac_tool_prefix=
1210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212 test "$silent" = yes && exec 6>/dev/null
1215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di=`ls -di .` &&
1217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218 { echo "$as_me: error: Working directory cannot be determined" >&2
1219 { (exit 1); exit 1; }; }
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 { echo "$as_me: error: pwd does not report name of working directory" >&2
1222 { (exit 1); exit 1; }; }
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$0" ||
1230 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$0" : 'X\(//\)[^/]' \| \
1232 X"$0" : 'X\(//\)$' \| \
1233 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1234 echo X"$0" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236 s//\1/
1239 /^X\(\/\/\)[^/].*/{
1240 s//\1/
1243 /^X\(\/\/\)$/{
1244 s//\1/
1247 /^X\(\/\).*/{
1248 s//\1/
1251 s/.*/./; q'`
1252 srcdir=$ac_confdir
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 srcdir=..
1256 else
1257 ac_srcdir_defaulted=no
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1262 { (exit 1); exit 1; }; }
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 ac_abs_confdir=`(
1266 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1267 { (exit 1); exit 1; }; }
1268 pwd)`
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 srcdir=.
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1276 case $srcdir in
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 esac
1279 for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284 done
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1292 cat <<_ACEOF
1293 \`configure' configures Wine 0.9.39 to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1302 Configuration:
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 [PREFIX]
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1346 _ACEOF
1348 cat <<\_ACEOF
1350 X features:
1351 --x-includes=DIR X include files are in DIR
1352 --x-libraries=DIR X library files are in DIR
1354 System types:
1355 --build=BUILD configure for building on BUILD [guessed]
1356 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1357 _ACEOF
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive ) echo "Configuration of Wine 0.9.39:";;
1363 esac
1364 cat <<\_ACEOF
1366 Optional Features:
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --disable-win16 do not include Win16 support
1370 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1371 binaries)
1372 --disable-tests do not build the testsuites
1374 Optional Packages:
1375 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1376 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1377 --without-opengl do not use OpenGL
1378 --with-wine-tools=<dir> use Wine tools from directory <dir>
1379 --with-x use the X Window System
1381 Some influential environment variables:
1382 CC C compiler command
1383 CFLAGS C compiler flags
1384 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1385 nonstandard directory <lib dir>
1386 LIBS libraries to pass to the linker, e.g. -l<library>
1387 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388 you have headers in a nonstandard directory <include dir>
1389 CXX C++ compiler command
1390 CXXFLAGS C++ compiler flags
1391 XMKMF Path to xmkmf, Makefile generator for X Window System
1392 CPP C preprocessor
1394 Use these variables to override the choices made by `configure' or to help
1395 it to find libraries and programs with nonstandard names/locations.
1397 Report bugs to <wine-devel@winehq.org>.
1398 _ACEOF
1399 ac_status=$?
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" || continue
1406 ac_builddir=.
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1424 case $srcdir in
1425 .) # We are building in place.
1426 ac_srcdir=.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1433 *) # Relative name.
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1448 else
1449 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450 fi || ac_status=$?
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1452 done
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1457 cat <<\_ACEOF
1458 Wine configure 0.9.39
1459 generated by GNU Autoconf 2.61
1461 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1462 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1463 This configure script is free software; the Free Software Foundation
1464 gives unlimited permission to copy, distribute and modify it.
1465 _ACEOF
1466 exit
1468 cat >config.log <<_ACEOF
1469 This file contains any messages produced by compilers while
1470 running configure, to aid debugging if configure makes a mistake.
1472 It was created by Wine $as_me 0.9.39, which was
1473 generated by GNU Autoconf 2.61. Invocation command line was
1475 $ $0 $@
1477 _ACEOF
1478 exec 5>>config.log
1480 cat <<_ASUNAME
1481 ## --------- ##
1482 ## Platform. ##
1483 ## --------- ##
1485 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1486 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1487 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1488 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1489 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1491 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1492 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1494 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1495 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1496 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1497 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1498 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1499 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1500 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1502 _ASUNAME
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1507 IFS=$as_save_IFS
1508 test -z "$as_dir" && as_dir=.
1509 echo "PATH: $as_dir"
1510 done
1511 IFS=$as_save_IFS
1513 } >&5
1515 cat >&5 <<_ACEOF
1518 ## ----------- ##
1519 ## Core tests. ##
1520 ## ----------- ##
1522 _ACEOF
1525 # Keep a trace of the command line.
1526 # Strip out --no-create and --no-recursion so they do not pile up.
1527 # Strip out --silent because we don't want to record it for future runs.
1528 # Also quote any args containing shell meta-characters.
1529 # Make two passes to allow for proper duplicate-argument suppression.
1530 ac_configure_args=
1531 ac_configure_args0=
1532 ac_configure_args1=
1533 ac_must_keep_next=false
1534 for ac_pass in 1 2
1536 for ac_arg
1538 case $ac_arg in
1539 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1541 | -silent | --silent | --silen | --sile | --sil)
1542 continue ;;
1543 *\'*)
1544 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1545 esac
1546 case $ac_pass in
1547 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1549 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1550 if test $ac_must_keep_next = true; then
1551 ac_must_keep_next=false # Got value, back to normal.
1552 else
1553 case $ac_arg in
1554 *=* | --config-cache | -C | -disable-* | --disable-* \
1555 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1556 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1557 | -with-* | --with-* | -without-* | --without-* | --x)
1558 case "$ac_configure_args0 " in
1559 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1560 esac
1562 -* ) ac_must_keep_next=true ;;
1563 esac
1565 ac_configure_args="$ac_configure_args '$ac_arg'"
1567 esac
1568 done
1569 done
1570 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1571 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1573 # When interrupted or exit'd, cleanup temporary files, and complete
1574 # config.log. We remove comments because anyway the quotes in there
1575 # would cause problems or look ugly.
1576 # WARNING: Use '\'' to represent an apostrophe within the trap.
1577 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1578 trap 'exit_status=$?
1579 # Save into config.log some information that might help in debugging.
1581 echo
1583 cat <<\_ASBOX
1584 ## ---------------- ##
1585 ## Cache variables. ##
1586 ## ---------------- ##
1587 _ASBOX
1588 echo
1589 # The following way of writing the cache mishandles newlines in values,
1591 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1592 eval ac_val=\$$ac_var
1593 case $ac_val in #(
1594 *${as_nl}*)
1595 case $ac_var in #(
1596 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1598 esac
1599 case $ac_var in #(
1600 _ | IFS | as_nl) ;; #(
1601 *) $as_unset $ac_var ;;
1602 esac ;;
1603 esac
1604 done
1605 (set) 2>&1 |
1606 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1607 *${as_nl}ac_space=\ *)
1608 sed -n \
1609 "s/'\''/'\''\\\\'\'''\''/g;
1610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1611 ;; #(
1613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1615 esac |
1616 sort
1618 echo
1620 cat <<\_ASBOX
1621 ## ----------------- ##
1622 ## Output variables. ##
1623 ## ----------------- ##
1624 _ASBOX
1625 echo
1626 for ac_var in $ac_subst_vars
1628 eval ac_val=\$$ac_var
1629 case $ac_val in
1630 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 esac
1632 echo "$ac_var='\''$ac_val'\''"
1633 done | sort
1634 echo
1636 if test -n "$ac_subst_files"; then
1637 cat <<\_ASBOX
1638 ## ------------------- ##
1639 ## File substitutions. ##
1640 ## ------------------- ##
1641 _ASBOX
1642 echo
1643 for ac_var in $ac_subst_files
1645 eval ac_val=\$$ac_var
1646 case $ac_val in
1647 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 esac
1649 echo "$ac_var='\''$ac_val'\''"
1650 done | sort
1651 echo
1654 if test -s confdefs.h; then
1655 cat <<\_ASBOX
1656 ## ----------- ##
1657 ## confdefs.h. ##
1658 ## ----------- ##
1659 _ASBOX
1660 echo
1661 cat confdefs.h
1662 echo
1664 test "$ac_signal" != 0 &&
1665 echo "$as_me: caught signal $ac_signal"
1666 echo "$as_me: exit $exit_status"
1667 } >&5
1668 rm -f core *.core core.conftest.* &&
1669 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1670 exit $exit_status
1672 for ac_signal in 1 2 13 15; do
1673 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1674 done
1675 ac_signal=0
1677 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1678 rm -f -r conftest* confdefs.h
1680 # Predefined preprocessor variables.
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_NAME "$PACKAGE_NAME"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_STRING "$PACKAGE_STRING"
1699 _ACEOF
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1704 _ACEOF
1707 # Let the site file select an alternate cache file if it wants to.
1708 # Prefer explicitly selected file to automatically selected ones.
1709 if test -n "$CONFIG_SITE"; then
1710 set x "$CONFIG_SITE"
1711 elif test "x$prefix" != xNONE; then
1712 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1713 else
1714 set x "$ac_default_prefix/share/config.site" \
1715 "$ac_default_prefix/etc/config.site"
1717 shift
1718 for ac_site_file
1720 if test -r "$ac_site_file"; then
1721 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1722 echo "$as_me: loading site script $ac_site_file" >&6;}
1723 sed 's/^/| /' "$ac_site_file" >&5
1724 . "$ac_site_file"
1726 done
1728 if test -r "$cache_file"; then
1729 # Some versions of bash will fail to source /dev/null (special
1730 # files actually), so we avoid doing that.
1731 if test -f "$cache_file"; then
1732 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1733 echo "$as_me: loading cache $cache_file" >&6;}
1734 case $cache_file in
1735 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1736 *) . "./$cache_file";;
1737 esac
1739 else
1740 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1741 echo "$as_me: creating cache $cache_file" >&6;}
1742 >$cache_file
1745 # Check that the precious variables saved in the cache have kept the same
1746 # value.
1747 ac_cache_corrupted=false
1748 for ac_var in $ac_precious_vars; do
1749 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1750 eval ac_new_set=\$ac_env_${ac_var}_set
1751 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1752 eval ac_new_val=\$ac_env_${ac_var}_value
1753 case $ac_old_set,$ac_new_set in
1754 set,)
1755 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1756 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1757 ac_cache_corrupted=: ;;
1758 ,set)
1759 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1760 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1761 ac_cache_corrupted=: ;;
1762 ,);;
1764 if test "x$ac_old_val" != "x$ac_new_val"; then
1765 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1766 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1767 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1768 echo "$as_me: former value: $ac_old_val" >&2;}
1769 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1770 echo "$as_me: current value: $ac_new_val" >&2;}
1771 ac_cache_corrupted=:
1772 fi;;
1773 esac
1774 # Pass precious variables to config.status.
1775 if test "$ac_new_set" = set; then
1776 case $ac_new_val in
1777 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1778 *) ac_arg=$ac_var=$ac_new_val ;;
1779 esac
1780 case " $ac_configure_args " in
1781 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1782 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1783 esac
1785 done
1786 if $ac_cache_corrupted; then
1787 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1788 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1789 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1790 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1791 { (exit 1); exit 1; }; }
1818 ac_ext=c
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826 ac_config_headers="$ac_config_headers include/config.h"
1828 ac_aux_dir=
1829 for ac_dir in tools "$srcdir"/tools; do
1830 if test -f "$ac_dir/install-sh"; then
1831 ac_aux_dir=$ac_dir
1832 ac_install_sh="$ac_aux_dir/install-sh -c"
1833 break
1834 elif test -f "$ac_dir/install.sh"; then
1835 ac_aux_dir=$ac_dir
1836 ac_install_sh="$ac_aux_dir/install.sh -c"
1837 break
1838 elif test -f "$ac_dir/shtool"; then
1839 ac_aux_dir=$ac_dir
1840 ac_install_sh="$ac_aux_dir/shtool install -c"
1841 break
1843 done
1844 if test -z "$ac_aux_dir"; then
1845 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1846 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1847 { (exit 1); exit 1; }; }
1850 # These three variables are undocumented and unsupported,
1851 # and are intended to be withdrawn in a future Autoconf release.
1852 # They can cause serious problems if a builder's source tree is in a directory
1853 # whose full name contains unusual characters.
1854 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1855 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1856 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1861 # Check whether --enable-win16 was given.
1862 if test "${enable_win16+set}" = set; then
1863 enableval=$enable_win16;
1866 # Check whether --enable-win64 was given.
1867 if test "${enable_win64+set}" = set; then
1868 enableval=$enable_win64;
1873 # Check whether --with-opengl was given.
1874 if test "${with_opengl+set}" = set; then
1875 withval=$with_opengl;
1879 # Check whether --with-wine-tools was given.
1880 if test "${with_wine_tools+set}" = set; then
1881 withval=$with_wine_tools;
1884 # Check whether --enable-tests was given.
1885 if test "${enable_tests+set}" = set; then
1886 enableval=$enable_tests;
1890 # Make sure we can run config.sub.
1891 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1892 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1893 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1894 { (exit 1); exit 1; }; }
1896 { echo "$as_me:$LINENO: checking build system type" >&5
1897 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1898 if test "${ac_cv_build+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901 ac_build_alias=$build_alias
1902 test "x$ac_build_alias" = x &&
1903 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1904 test "x$ac_build_alias" = x &&
1905 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1906 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1907 { (exit 1); exit 1; }; }
1908 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1909 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1910 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1911 { (exit 1); exit 1; }; }
1914 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1915 echo "${ECHO_T}$ac_cv_build" >&6; }
1916 case $ac_cv_build in
1917 *-*-*) ;;
1918 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1919 echo "$as_me: error: invalid value of canonical build" >&2;}
1920 { (exit 1); exit 1; }; };;
1921 esac
1922 build=$ac_cv_build
1923 ac_save_IFS=$IFS; IFS='-'
1924 set x $ac_cv_build
1925 shift
1926 build_cpu=$1
1927 build_vendor=$2
1928 shift; shift
1929 # Remember, the first character of IFS is used to create $*,
1930 # except with old shells:
1931 build_os=$*
1932 IFS=$ac_save_IFS
1933 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1936 { echo "$as_me:$LINENO: checking host system type" >&5
1937 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1938 if test "${ac_cv_host+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941 if test "x$host_alias" = x; then
1942 ac_cv_host=$ac_cv_build
1943 else
1944 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1945 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1946 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1947 { (exit 1); exit 1; }; }
1951 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1952 echo "${ECHO_T}$ac_cv_host" >&6; }
1953 case $ac_cv_host in
1954 *-*-*) ;;
1955 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1956 echo "$as_me: error: invalid value of canonical host" >&2;}
1957 { (exit 1); exit 1; }; };;
1958 esac
1959 host=$ac_cv_host
1960 ac_save_IFS=$IFS; IFS='-'
1961 set x $ac_cv_host
1962 shift
1963 host_cpu=$1
1964 host_vendor=$2
1965 shift; shift
1966 # Remember, the first character of IFS is used to create $*,
1967 # except with old shells:
1968 host_os=$*
1969 IFS=$ac_save_IFS
1970 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1973 case $host in
1974 x86_64*linux*)
1975 if test "x$enable_win64" != "xyes"
1976 then
1977 test -n "$CC" || CC="gcc -m32"
1978 test -n "$LD" || LD="ld -m elf_i386"
1979 test -n "$AS" || AS="as --32"
1980 host_cpu="i386"
1983 esac
1985 case $host_cpu in
1986 *i[3456789]86*)
1987 if test "x$enable_win16" != "xno"
1988 then
1989 enable_win16="yes"
1992 esac
1994 WIN16_FILES="\$(WIN16_FILES)"
1996 WIN16_INSTALL="\$(WIN16_INSTALL)"
1998 if test "x$enable_win16" != "xyes"
1999 then
2000 WIN16_FILES=""
2001 WIN16_INSTALL=""
2004 if test "x$enable_tests" == "xno"
2005 then
2006 TESTSUBDIRS=""
2008 WINETEST=""
2010 else
2011 TESTSUBDIRS="\$(TESTSUBDIRS)"
2013 WINETEST="winetest"
2017 case "$srcdir" in
2018 .) ;;
2019 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2020 { { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2021 You need to run 'make distclean' in the source tree first." >&5
2022 echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2023 You need to run 'make distclean' in the source tree first." >&2;}
2024 { (exit 1); exit 1; }; }
2025 fi ;;
2026 esac
2029 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2030 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2031 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2032 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 cat >conftest.make <<\_ACEOF
2036 SHELL = /bin/sh
2037 all:
2038 @echo '@@@%%%=$(MAKE)=@@@%%%'
2039 _ACEOF
2040 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2041 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2042 *@@@%%%=?*=@@@%%%*)
2043 eval ac_cv_prog_make_${ac_make}_set=yes;;
2045 eval ac_cv_prog_make_${ac_make}_set=no;;
2046 esac
2047 rm -f conftest.make
2049 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2050 { echo "$as_me:$LINENO: result: yes" >&5
2051 echo "${ECHO_T}yes" >&6; }
2052 SET_MAKE=
2053 else
2054 { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2056 SET_MAKE="MAKE=${MAKE-make}"
2059 ac_ext=c
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 if test -n "$ac_tool_prefix"; then
2065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2066 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2082 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2086 done
2087 done
2088 IFS=$as_save_IFS
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094 { echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6; }
2096 else
2097 { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2103 if test -z "$ac_cv_prog_CC"; then
2104 ac_ct_CC=$CC
2105 # Extract the first word of "gcc", so it can be a program name with args.
2106 set dummy gcc; ac_word=$2
2107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2109 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 if test -n "$ac_ct_CC"; then
2113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2118 IFS=$as_save_IFS
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2122 ac_cv_prog_ac_ct_CC="gcc"
2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 break 2
2126 done
2127 done
2128 IFS=$as_save_IFS
2132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2133 if test -n "$ac_ct_CC"; then
2134 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135 echo "${ECHO_T}$ac_ct_CC" >&6; }
2136 else
2137 { echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6; }
2141 if test "x$ac_ct_CC" = x; then
2142 CC=""
2143 else
2144 case $cross_compiling:$ac_tool_warned in
2145 yes:)
2146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2147 whose name does not start with the host triplet. If you think this
2148 configuration is useful to you, please write to autoconf@gnu.org." >&5
2149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2150 whose name does not start with the host triplet. If you think this
2151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2152 ac_tool_warned=yes ;;
2153 esac
2154 CC=$ac_ct_CC
2156 else
2157 CC="$ac_cv_prog_CC"
2160 if test -z "$CC"; then
2161 if test -n "$ac_tool_prefix"; then
2162 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2163 set dummy ${ac_tool_prefix}cc; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 if test -n "$CC"; then
2170 ac_cv_prog_CC="$CC" # Let the user override the test.
2171 else
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 ac_cv_prog_CC="${ac_tool_prefix}cc"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 break 2
2183 done
2184 done
2185 IFS=$as_save_IFS
2189 CC=$ac_cv_prog_CC
2190 if test -n "$CC"; then
2191 { echo "$as_me:$LINENO: result: $CC" >&5
2192 echo "${ECHO_T}$CC" >&6; }
2193 else
2194 { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2201 if test -z "$CC"; then
2202 # Extract the first word of "cc", so it can be a program name with args.
2203 set dummy cc; ac_word=$2
2204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC="$CC" # Let the user override the test.
2211 else
2212 ac_prog_rejected=no
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2220 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2221 ac_prog_rejected=yes
2222 continue
2224 ac_cv_prog_CC="cc"
2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 break 2
2228 done
2229 done
2230 IFS=$as_save_IFS
2232 if test $ac_prog_rejected = yes; then
2233 # We found a bogon in the path, so make sure we never use it.
2234 set dummy $ac_cv_prog_CC
2235 shift
2236 if test $# != 0; then
2237 # We chose a different compiler from the bogus one.
2238 # However, it has the same basename, so the bogon will be chosen
2239 # first if we set CC to just the basename; use the full file name.
2240 shift
2241 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2246 CC=$ac_cv_prog_CC
2247 if test -n "$CC"; then
2248 { echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6; }
2250 else
2251 { echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6; }
2257 if test -z "$CC"; then
2258 if test -n "$ac_tool_prefix"; then
2259 for ac_prog in cl.exe
2261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2262 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2265 if test "${ac_cv_prog_CC+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268 if test -n "$CC"; then
2269 ac_cv_prog_CC="$CC" # Let the user override the test.
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2278 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2282 done
2283 done
2284 IFS=$as_save_IFS
2288 CC=$ac_cv_prog_CC
2289 if test -n "$CC"; then
2290 { echo "$as_me:$LINENO: result: $CC" >&5
2291 echo "${ECHO_T}$CC" >&6; }
2292 else
2293 { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2298 test -n "$CC" && break
2299 done
2301 if test -z "$CC"; then
2302 ac_ct_CC=$CC
2303 for ac_prog in cl.exe
2305 # Extract the first word of "$ac_prog", so it can be a program name with args.
2306 set dummy $ac_prog; ac_word=$2
2307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 if test -n "$ac_ct_CC"; then
2313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_ac_ct_CC="$ac_prog"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 break 2
2326 done
2327 done
2328 IFS=$as_save_IFS
2332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2333 if test -n "$ac_ct_CC"; then
2334 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2335 echo "${ECHO_T}$ac_ct_CC" >&6; }
2336 else
2337 { echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6; }
2342 test -n "$ac_ct_CC" && break
2343 done
2345 if test "x$ac_ct_CC" = x; then
2346 CC=""
2347 else
2348 case $cross_compiling:$ac_tool_warned in
2349 yes:)
2350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2351 whose name does not start with the host triplet. If you think this
2352 configuration is useful to you, please write to autoconf@gnu.org." >&5
2353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2354 whose name does not start with the host triplet. If you think this
2355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2356 ac_tool_warned=yes ;;
2357 esac
2358 CC=$ac_ct_CC
2365 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2366 See \`config.log' for more details." >&5
2367 echo "$as_me: error: no acceptable C compiler found in \$PATH
2368 See \`config.log' for more details." >&2;}
2369 { (exit 1); exit 1; }; }
2371 # Provide some information about the compiler.
2372 echo "$as_me:$LINENO: checking for C compiler version" >&5
2373 ac_compiler=`set X $ac_compile; echo $2`
2374 { (ac_try="$ac_compiler --version >&5"
2375 case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378 esac
2379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380 (eval "$ac_compiler --version >&5") 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }
2384 { (ac_try="$ac_compiler -v >&5"
2385 case "(($ac_try" in
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2388 esac
2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390 (eval "$ac_compiler -v >&5") 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }
2394 { (ac_try="$ac_compiler -V >&5"
2395 case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398 esac
2399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400 (eval "$ac_compiler -V >&5") 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }
2405 cat >conftest.$ac_ext <<_ACEOF
2406 /* confdefs.h. */
2407 _ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2413 main ()
2417 return 0;
2419 _ACEOF
2420 ac_clean_files_save=$ac_clean_files
2421 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2422 # Try to create an executable without -o first, disregard a.out.
2423 # It will help us diagnose broken compilers, and finding out an intuition
2424 # of exeext.
2425 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2426 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2427 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2429 # List of possible output files, starting from the most likely.
2430 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2431 # only as a last resort. b.out is created by i960 compilers.
2432 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2434 # The IRIX 6 linker writes into existing files which may not be
2435 # executable, retaining their permissions. Remove them first so a
2436 # subsequent execution test works.
2437 ac_rmfiles=
2438 for ac_file in $ac_files
2440 case $ac_file in
2441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2442 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2443 esac
2444 done
2445 rm -f $ac_rmfiles
2447 if { (ac_try="$ac_link_default"
2448 case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_link_default") 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; then
2457 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2458 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2459 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2460 # so that the user can short-circuit this test for compilers unknown to
2461 # Autoconf.
2462 for ac_file in $ac_files ''
2464 test -f "$ac_file" || continue
2465 case $ac_file in
2466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2468 [ab].out )
2469 # We found the default executable, but exeext='' is most
2470 # certainly right.
2471 break;;
2472 *.* )
2473 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2474 then :; else
2475 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2477 # We set ac_cv_exeext here because the later test for it is not
2478 # safe: cross compilers may not add the suffix if given an `-o'
2479 # argument, so we may need to know it at that point already.
2480 # Even if this section looks crufty: it has the advantage of
2481 # actually working.
2482 break;;
2484 break;;
2485 esac
2486 done
2487 test "$ac_cv_exeext" = no && ac_cv_exeext=
2489 else
2490 ac_file=''
2493 { echo "$as_me:$LINENO: result: $ac_file" >&5
2494 echo "${ECHO_T}$ac_file" >&6; }
2495 if test -z "$ac_file"; then
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2499 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: C compiler cannot create executables
2502 See \`config.log' for more details." >&2;}
2503 { (exit 77); exit 77; }; }
2506 ac_exeext=$ac_cv_exeext
2508 # Check that the compiler produces executables we can run. If not, either
2509 # the compiler is broken, or we cross compile.
2510 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2511 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2512 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2513 # If not cross compiling, check that we can run a simple program.
2514 if test "$cross_compiling" != yes; then
2515 if { ac_try='./$ac_file'
2516 { (case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519 esac
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_try") 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2525 cross_compiling=no
2526 else
2527 if test "$cross_compiling" = maybe; then
2528 cross_compiling=yes
2529 else
2530 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2531 If you meant to cross compile, use \`--host'.
2532 See \`config.log' for more details." >&5
2533 echo "$as_me: error: cannot run C compiled programs.
2534 If you meant to cross compile, use \`--host'.
2535 See \`config.log' for more details." >&2;}
2536 { (exit 1); exit 1; }; }
2540 { echo "$as_me:$LINENO: result: yes" >&5
2541 echo "${ECHO_T}yes" >&6; }
2543 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2544 ac_clean_files=$ac_clean_files_save
2545 # Check that the compiler produces executables we can run. If not, either
2546 # the compiler is broken, or we cross compile.
2547 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2548 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2549 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2550 echo "${ECHO_T}$cross_compiling" >&6; }
2552 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2553 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2554 if { (ac_try="$ac_link"
2555 case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2558 esac
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_link") 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; then
2564 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2565 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2566 # work properly (i.e., refer to `conftest.exe'), while it won't with
2567 # `rm'.
2568 for ac_file in conftest.exe conftest conftest.*; do
2569 test -f "$ac_file" || continue
2570 case $ac_file in
2571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2573 break;;
2574 * ) break;;
2575 esac
2576 done
2577 else
2578 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2581 See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2585 rm -f conftest$ac_cv_exeext
2586 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2587 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2589 rm -f conftest.$ac_ext
2590 EXEEXT=$ac_cv_exeext
2591 ac_exeext=$EXEEXT
2592 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2593 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2594 if test "${ac_cv_objext+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597 cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h. */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2605 main ()
2609 return 0;
2611 _ACEOF
2612 rm -f conftest.o conftest.obj
2613 if { (ac_try="$ac_compile"
2614 case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2617 esac
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 (eval "$ac_compile") 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; then
2623 for ac_file in conftest.o conftest.obj conftest.*; do
2624 test -f "$ac_file" || continue;
2625 case $ac_file in
2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2628 break;;
2629 esac
2630 done
2631 else
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2635 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2638 See \`config.log' for more details." >&2;}
2639 { (exit 1); exit 1; }; }
2642 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2644 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2645 echo "${ECHO_T}$ac_cv_objext" >&6; }
2646 OBJEXT=$ac_cv_objext
2647 ac_objext=$OBJEXT
2648 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2649 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2650 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653 cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h. */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2661 main ()
2663 #ifndef __GNUC__
2664 choke me
2665 #endif
2668 return 0;
2670 _ACEOF
2671 rm -f conftest.$ac_objext
2672 if { (ac_try="$ac_compile"
2673 case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676 esac
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compile") 2>conftest.er1
2679 ac_status=$?
2680 grep -v '^ *+' conftest.er1 >conftest.err
2681 rm -f conftest.er1
2682 cat conftest.err >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } && {
2685 test -z "$ac_c_werror_flag" ||
2686 test ! -s conftest.err
2687 } && test -s conftest.$ac_objext; then
2688 ac_compiler_gnu=yes
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2693 ac_compiler_gnu=no
2696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2700 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2701 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2702 GCC=`test $ac_compiler_gnu = yes && echo yes`
2703 ac_test_CFLAGS=${CFLAGS+set}
2704 ac_save_CFLAGS=$CFLAGS
2705 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2706 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_cc_g+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 ac_save_c_werror_flag=$ac_c_werror_flag
2711 ac_c_werror_flag=yes
2712 ac_cv_prog_cc_g=no
2713 CFLAGS="-g"
2714 cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h. */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2722 main ()
2726 return 0;
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2731 case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compile") 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } && {
2743 test -z "$ac_c_werror_flag" ||
2744 test ! -s conftest.err
2745 } && test -s conftest.$ac_objext; then
2746 ac_cv_prog_cc_g=yes
2747 else
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2751 CFLAGS=""
2752 cat >conftest.$ac_ext <<_ACEOF
2753 /* confdefs.h. */
2754 _ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2760 main ()
2764 return 0;
2766 _ACEOF
2767 rm -f conftest.$ac_objext
2768 if { (ac_try="$ac_compile"
2769 case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772 esac
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_compile") 2>conftest.er1
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } && {
2781 test -z "$ac_c_werror_flag" ||
2782 test ! -s conftest.err
2783 } && test -s conftest.$ac_objext; then
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2789 ac_c_werror_flag=$ac_save_c_werror_flag
2790 CFLAGS="-g"
2791 cat >conftest.$ac_ext <<_ACEOF
2792 /* confdefs.h. */
2793 _ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2799 main ()
2803 return 0;
2805 _ACEOF
2806 rm -f conftest.$ac_objext
2807 if { (ac_try="$ac_compile"
2808 case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_compile") 2>conftest.er1
2814 ac_status=$?
2815 grep -v '^ *+' conftest.er1 >conftest.err
2816 rm -f conftest.er1
2817 cat conftest.err >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } && {
2820 test -z "$ac_c_werror_flag" ||
2821 test ! -s conftest.err
2822 } && test -s conftest.$ac_objext; then
2823 ac_cv_prog_cc_g=yes
2824 else
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838 ac_c_werror_flag=$ac_save_c_werror_flag
2840 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2841 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2842 if test "$ac_test_CFLAGS" = set; then
2843 CFLAGS=$ac_save_CFLAGS
2844 elif test $ac_cv_prog_cc_g = yes; then
2845 if test "$GCC" = yes; then
2846 CFLAGS="-g -O2"
2847 else
2848 CFLAGS="-g"
2850 else
2851 if test "$GCC" = yes; then
2852 CFLAGS="-O2"
2853 else
2854 CFLAGS=
2857 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2858 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_cc_c89+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 ac_cv_prog_cc_c89=no
2863 ac_save_CC=$CC
2864 cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h. */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2870 #include <stdarg.h>
2871 #include <stdio.h>
2872 #include <sys/types.h>
2873 #include <sys/stat.h>
2874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2875 struct buf { int x; };
2876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2877 static char *e (p, i)
2878 char **p;
2879 int i;
2881 return p[i];
2883 static char *f (char * (*g) (char **, int), char **p, ...)
2885 char *s;
2886 va_list v;
2887 va_start (v,p);
2888 s = g (p, va_arg (v,int));
2889 va_end (v);
2890 return s;
2893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2894 function prototypes and stuff, but not '\xHH' hex character constants.
2895 These don't provoke an error unfortunately, instead are silently treated
2896 as 'x'. The following induces an error, until -std is added to get
2897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2898 array size at least. It's necessary to write '\x00'==0 to get something
2899 that's true only with -std. */
2900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2903 inside strings and character constants. */
2904 #define FOO(x) 'x'
2905 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2907 int test (int i, double x);
2908 struct s1 {int (*f) (int a);};
2909 struct s2 {int (*f) (double a);};
2910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2911 int argc;
2912 char **argv;
2914 main ()
2916 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2918 return 0;
2920 _ACEOF
2921 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2922 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2924 CC="$ac_save_CC $ac_arg"
2925 rm -f conftest.$ac_objext
2926 if { (ac_try="$ac_compile"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compile") 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } && {
2939 test -z "$ac_c_werror_flag" ||
2940 test ! -s conftest.err
2941 } && test -s conftest.$ac_objext; then
2942 ac_cv_prog_cc_c89=$ac_arg
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2950 rm -f core conftest.err conftest.$ac_objext
2951 test "x$ac_cv_prog_cc_c89" != "xno" && break
2952 done
2953 rm -f conftest.$ac_ext
2954 CC=$ac_save_CC
2957 # AC_CACHE_VAL
2958 case "x$ac_cv_prog_cc_c89" in
2960 { echo "$as_me:$LINENO: result: none needed" >&5
2961 echo "${ECHO_T}none needed" >&6; } ;;
2962 xno)
2963 { echo "$as_me:$LINENO: result: unsupported" >&5
2964 echo "${ECHO_T}unsupported" >&6; } ;;
2966 CC="$CC $ac_cv_prog_cc_c89"
2967 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2968 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2969 esac
2972 ac_ext=c
2973 ac_cpp='$CPP $CPPFLAGS'
2974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 ac_ext=cpp
2979 ac_cpp='$CXXCPP $CPPFLAGS'
2980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2983 if test -z "$CXX"; then
2984 if test -n "$CCC"; then
2985 CXX=$CCC
2986 else
2987 if test -n "$ac_tool_prefix"; then
2988 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2994 if test "${ac_cv_prog_CXX+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997 if test -n "$CXX"; then
2998 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3011 done
3012 done
3013 IFS=$as_save_IFS
3017 CXX=$ac_cv_prog_CXX
3018 if test -n "$CXX"; then
3019 { echo "$as_me:$LINENO: result: $CXX" >&5
3020 echo "${ECHO_T}$CXX" >&6; }
3021 else
3022 { echo "$as_me:$LINENO: result: no" >&5
3023 echo "${ECHO_T}no" >&6; }
3027 test -n "$CXX" && break
3028 done
3030 if test -z "$CXX"; then
3031 ac_ct_CXX=$CXX
3032 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3034 # Extract the first word of "$ac_prog", so it can be a program name with args.
3035 set dummy $ac_prog; ac_word=$2
3036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3038 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041 if test -n "$ac_ct_CXX"; then
3042 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_ac_ct_CXX="$ac_prog"
3052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3055 done
3056 done
3057 IFS=$as_save_IFS
3061 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3062 if test -n "$ac_ct_CXX"; then
3063 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3064 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3065 else
3066 { echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6; }
3071 test -n "$ac_ct_CXX" && break
3072 done
3074 if test "x$ac_ct_CXX" = x; then
3075 CXX="g++"
3076 else
3077 case $cross_compiling:$ac_tool_warned in
3078 yes:)
3079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3080 whose name does not start with the host triplet. If you think this
3081 configuration is useful to you, please write to autoconf@gnu.org." >&5
3082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3083 whose name does not start with the host triplet. If you think this
3084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3085 ac_tool_warned=yes ;;
3086 esac
3087 CXX=$ac_ct_CXX
3093 # Provide some information about the compiler.
3094 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3095 ac_compiler=`set X $ac_compile; echo $2`
3096 { (ac_try="$ac_compiler --version >&5"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compiler --version >&5") 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }
3106 { (ac_try="$ac_compiler -v >&5"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_compiler -v >&5") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }
3116 { (ac_try="$ac_compiler -V >&5"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compiler -V >&5") 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }
3127 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3128 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3129 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3140 main ()
3142 #ifndef __GNUC__
3143 choke me
3144 #endif
3147 return 0;
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (ac_try="$ac_compile"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } && {
3164 test -z "$ac_cxx_werror_flag" ||
3165 test ! -s conftest.err
3166 } && test -s conftest.$ac_objext; then
3167 ac_compiler_gnu=yes
3168 else
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3172 ac_compiler_gnu=no
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3179 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3180 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3181 GXX=`test $ac_compiler_gnu = yes && echo yes`
3182 ac_test_CXXFLAGS=${CXXFLAGS+set}
3183 ac_save_CXXFLAGS=$CXXFLAGS
3184 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3185 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3186 if test "${ac_cv_prog_cxx_g+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3190 ac_cxx_werror_flag=yes
3191 ac_cv_prog_cxx_g=no
3192 CXXFLAGS="-g"
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3201 main ()
3205 return 0;
3207 _ACEOF
3208 rm -f conftest.$ac_objext
3209 if { (ac_try="$ac_compile"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_compile") 2>conftest.er1
3216 ac_status=$?
3217 grep -v '^ *+' conftest.er1 >conftest.err
3218 rm -f conftest.er1
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } && {
3222 test -z "$ac_cxx_werror_flag" ||
3223 test ! -s conftest.err
3224 } && test -s conftest.$ac_objext; then
3225 ac_cv_prog_cxx_g=yes
3226 else
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3230 CXXFLAGS=""
3231 cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h. */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3239 main ()
3243 return 0;
3245 _ACEOF
3246 rm -f conftest.$ac_objext
3247 if { (ac_try="$ac_compile"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_compile") 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } && {
3260 test -z "$ac_cxx_werror_flag" ||
3261 test ! -s conftest.err
3262 } && test -s conftest.$ac_objext; then
3264 else
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3269 CXXFLAGS="-g"
3270 cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h. */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3278 main ()
3282 return 0;
3284 _ACEOF
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } && {
3299 test -z "$ac_cxx_werror_flag" ||
3300 test ! -s conftest.err
3301 } && test -s conftest.$ac_objext; then
3302 ac_cv_prog_cxx_g=yes
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3319 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3320 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3321 if test "$ac_test_CXXFLAGS" = set; then
3322 CXXFLAGS=$ac_save_CXXFLAGS
3323 elif test $ac_cv_prog_cxx_g = yes; then
3324 if test "$GXX" = yes; then
3325 CXXFLAGS="-g -O2"
3326 else
3327 CXXFLAGS="-g"
3329 else
3330 if test "$GXX" = yes; then
3331 CXXFLAGS="-O2"
3332 else
3333 CXXFLAGS=
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 if test -n "$ac_tool_prefix"; then
3343 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3344 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3347 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350 if test -n "$CPPBIN"; then
3351 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3364 done
3365 done
3366 IFS=$as_save_IFS
3370 CPPBIN=$ac_cv_prog_CPPBIN
3371 if test -n "$CPPBIN"; then
3372 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3373 echo "${ECHO_T}$CPPBIN" >&6; }
3374 else
3375 { echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6; }
3381 if test -z "$ac_cv_prog_CPPBIN"; then
3382 ac_ct_CPPBIN=$CPPBIN
3383 # Extract the first word of "cpp", so it can be a program name with args.
3384 set dummy cpp; ac_word=$2
3385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3387 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390 if test -n "$ac_ct_CPPBIN"; then
3391 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3400 ac_cv_prog_ac_ct_CPPBIN="cpp"
3401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3404 done
3405 done
3406 IFS=$as_save_IFS
3410 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3411 if test -n "$ac_ct_CPPBIN"; then
3412 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3413 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3414 else
3415 { echo "$as_me:$LINENO: result: no" >&5
3416 echo "${ECHO_T}no" >&6; }
3419 if test "x$ac_ct_CPPBIN" = x; then
3420 CPPBIN="cpp"
3421 else
3422 case $cross_compiling:$ac_tool_warned in
3423 yes:)
3424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3425 whose name does not start with the host triplet. If you think this
3426 configuration is useful to you, please write to autoconf@gnu.org." >&5
3427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3428 whose name does not start with the host triplet. If you think this
3429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3430 ac_tool_warned=yes ;;
3431 esac
3432 CPPBIN=$ac_ct_CPPBIN
3434 else
3435 CPPBIN="$ac_cv_prog_CPPBIN"
3439 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3440 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3441 if test "${wine_cv_toolsdir+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 if test -z "$with_wine_tools"; then
3445 if test "$cross_compiling" = "yes"; then
3446 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3447 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3448 { (exit 1); exit 1; }; }
3449 else
3450 wine_cv_toolsdir="\$(TOPOBJDIR)"
3452 elif test -d "$with_wine_tools/tools/winebuild"; then
3453 case $with_wine_tools in
3454 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3455 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3456 esac
3457 else
3458 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3459 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3460 { (exit 1); exit 1; }; }
3463 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3464 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3465 TOOLSDIR=$wine_cv_toolsdir
3469 ac_ext=c
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3475 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3476 # On Suns, sometimes $CPP names a directory.
3477 if test -n "$CPP" && test -d "$CPP"; then
3478 CPP=
3480 if test -z "$CPP"; then
3481 if test "${ac_cv_prog_CPP+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484 # Double quotes because CPP needs to be expanded
3485 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3487 ac_preproc_ok=false
3488 for ac_c_preproc_warn_flag in '' yes
3490 # Use a header file that comes with gcc, so configuring glibc
3491 # with a fresh cross-compiler works.
3492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3493 # <limits.h> exists even on freestanding compilers.
3494 # On the NeXT, cc -E runs the code through the compiler's parser,
3495 # not just through cpp. "Syntax error" is here to catch this case.
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #ifdef __STDC__
3503 # include <limits.h>
3504 #else
3505 # include <assert.h>
3506 #endif
3507 Syntax error
3508 _ACEOF
3509 if { (ac_try="$ac_cpp conftest.$ac_ext"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } >/dev/null && {
3522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3523 test ! -s conftest.err
3524 }; then
3526 else
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 # Broken: fails on valid input.
3531 continue
3534 rm -f conftest.err conftest.$ac_ext
3536 # OK, works on sane cases. Now check whether nonexistent headers
3537 # can be detected and how.
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 #include <ac_nonexistent.h>
3545 _ACEOF
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null && {
3559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3560 test ! -s conftest.err
3561 }; then
3562 # Broken: success on invalid input.
3563 continue
3564 else
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 # Passes both tests.
3569 ac_preproc_ok=:
3570 break
3573 rm -f conftest.err conftest.$ac_ext
3575 done
3576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577 rm -f conftest.err conftest.$ac_ext
3578 if $ac_preproc_ok; then
3579 break
3582 done
3583 ac_cv_prog_CPP=$CPP
3586 CPP=$ac_cv_prog_CPP
3587 else
3588 ac_cv_prog_CPP=$CPP
3590 { echo "$as_me:$LINENO: result: $CPP" >&5
3591 echo "${ECHO_T}$CPP" >&6; }
3592 ac_preproc_ok=false
3593 for ac_c_preproc_warn_flag in '' yes
3595 # Use a header file that comes with gcc, so configuring glibc
3596 # with a fresh cross-compiler works.
3597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3598 # <limits.h> exists even on freestanding compilers.
3599 # On the NeXT, cc -E runs the code through the compiler's parser,
3600 # not just through cpp. "Syntax error" is here to catch this case.
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 #ifdef __STDC__
3608 # include <limits.h>
3609 #else
3610 # include <assert.h>
3611 #endif
3612 Syntax error
3613 _ACEOF
3614 if { (ac_try="$ac_cpp conftest.$ac_ext"
3615 case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3621 ac_status=$?
3622 grep -v '^ *+' conftest.er1 >conftest.err
3623 rm -f conftest.er1
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } >/dev/null && {
3627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3629 }; then
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 # Broken: fails on valid input.
3636 continue
3639 rm -f conftest.err conftest.$ac_ext
3641 # OK, works on sane cases. Now check whether nonexistent headers
3642 # can be detected and how.
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 #include <ac_nonexistent.h>
3650 _ACEOF
3651 if { (ac_try="$ac_cpp conftest.$ac_ext"
3652 case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev/null && {
3664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 }; then
3667 # Broken: success on invalid input.
3668 continue
3669 else
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 # Passes both tests.
3674 ac_preproc_ok=:
3675 break
3678 rm -f conftest.err conftest.$ac_ext
3680 done
3681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3682 rm -f conftest.err conftest.$ac_ext
3683 if $ac_preproc_ok; then
3685 else
3686 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3687 See \`config.log' for more details." >&5
3688 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3689 See \`config.log' for more details." >&2;}
3690 { (exit 1); exit 1; }; }
3693 ac_ext=c
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700 { echo "$as_me:$LINENO: checking for X" >&5
3701 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3704 # Check whether --with-x was given.
3705 if test "${with_x+set}" = set; then
3706 withval=$with_x;
3709 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3710 if test "x$with_x" = xno; then
3711 # The user explicitly disabled X.
3712 have_x=disabled
3713 else
3714 case $x_includes,$x_libraries in #(
3715 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3716 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3717 { (exit 1); exit 1; }; };; #(
3718 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721 # One or both of the vars are not set, and there is no cached value.
3722 ac_x_includes=no ac_x_libraries=no
3723 rm -f -r conftest.dir
3724 if mkdir conftest.dir; then
3725 cd conftest.dir
3726 cat >Imakefile <<'_ACEOF'
3727 incroot:
3728 @echo incroot='${INCROOT}'
3729 usrlibdir:
3730 @echo usrlibdir='${USRLIBDIR}'
3731 libdir:
3732 @echo libdir='${LIBDIR}'
3733 _ACEOF
3734 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3736 for ac_var in incroot usrlibdir libdir; do
3737 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3738 done
3739 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3740 for ac_extension in a so sl; do
3741 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3742 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3743 ac_im_usrlibdir=$ac_im_libdir; break
3745 done
3746 # Screen out bogus values from the imake configuration. They are
3747 # bogus both because they are the default anyway, and because
3748 # using them would break gcc on systems where it needs fixed includes.
3749 case $ac_im_incroot in
3750 /usr/include) ac_x_includes= ;;
3751 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3752 esac
3753 case $ac_im_usrlibdir in
3754 /usr/lib | /lib) ;;
3755 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3756 esac
3758 cd ..
3759 rm -f -r conftest.dir
3762 # Standard set of common directories for X headers.
3763 # Check X11 before X11Rn because it is often a symlink to the current release.
3764 ac_x_header_dirs='
3765 /usr/X11/include
3766 /usr/X11R6/include
3767 /usr/X11R5/include
3768 /usr/X11R4/include
3770 /usr/include/X11
3771 /usr/include/X11R6
3772 /usr/include/X11R5
3773 /usr/include/X11R4
3775 /usr/local/X11/include
3776 /usr/local/X11R6/include
3777 /usr/local/X11R5/include
3778 /usr/local/X11R4/include
3780 /usr/local/include/X11
3781 /usr/local/include/X11R6
3782 /usr/local/include/X11R5
3783 /usr/local/include/X11R4
3785 /usr/X386/include
3786 /usr/x386/include
3787 /usr/XFree86/include/X11
3789 /usr/include
3790 /usr/local/include
3791 /usr/unsupported/include
3792 /usr/athena/include
3793 /usr/local/x11r5/include
3794 /usr/lpp/Xamples/include
3796 /usr/openwin/include
3797 /usr/openwin/share/include'
3799 if test "$ac_x_includes" = no; then
3800 # Guess where to find include files, by looking for Xlib.h.
3801 # First, try using that file with no special directory specified.
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3808 #include <X11/Xlib.h>
3809 _ACEOF
3810 if { (ac_try="$ac_cpp conftest.$ac_ext"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } >/dev/null && {
3823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3824 test ! -s conftest.err
3825 }; then
3826 # We can compile using X headers with no special include directory.
3827 ac_x_includes=
3828 else
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 for ac_dir in $ac_x_header_dirs; do
3833 if test -r "$ac_dir/X11/Xlib.h"; then
3834 ac_x_includes=$ac_dir
3835 break
3837 done
3840 rm -f conftest.err conftest.$ac_ext
3841 fi # $ac_x_includes = no
3843 if test "$ac_x_libraries" = no; then
3844 # Check for the libraries.
3845 # See if we find them without any special options.
3846 # Don't add to $LIBS permanently.
3847 ac_save_LIBS=$LIBS
3848 LIBS="-lX11 $LIBS"
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <X11/Xlib.h>
3857 main ()
3859 XrmInitialize ()
3861 return 0;
3863 _ACEOF
3864 rm -f conftest.$ac_objext conftest$ac_exeext
3865 if { (ac_try="$ac_link"
3866 case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869 esac
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_link") 2>conftest.er1
3872 ac_status=$?
3873 grep -v '^ *+' conftest.er1 >conftest.err
3874 rm -f conftest.er1
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } && {
3878 test -z "$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3880 } && test -s conftest$ac_exeext &&
3881 $as_test_x conftest$ac_exeext; then
3882 LIBS=$ac_save_LIBS
3883 # We can link X programs with no special library path.
3884 ac_x_libraries=
3885 else
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 LIBS=$ac_save_LIBS
3890 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3892 # Don't even attempt the hair of trying to link an X program!
3893 for ac_extension in a so sl; do
3894 if test -r "$ac_dir/libX11.$ac_extension"; then
3895 ac_x_libraries=$ac_dir
3896 break 2
3898 done
3899 done
3902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3903 conftest$ac_exeext conftest.$ac_ext
3904 fi # $ac_x_libraries = no
3906 case $ac_x_includes,$ac_x_libraries in #(
3907 no,* | *,no | *\'*)
3908 # Didn't find X, or a directory has "'" in its name.
3909 ac_cv_have_x="have_x=no";; #(
3911 # Record where we found X for the cache.
3912 ac_cv_have_x="have_x=yes\
3913 ac_x_includes='$ac_x_includes'\
3914 ac_x_libraries='$ac_x_libraries'"
3915 esac
3917 ;; #(
3918 *) have_x=yes;;
3919 esac
3920 eval "$ac_cv_have_x"
3921 fi # $with_x != no
3923 if test "$have_x" != yes; then
3924 { echo "$as_me:$LINENO: result: $have_x" >&5
3925 echo "${ECHO_T}$have_x" >&6; }
3926 no_x=yes
3927 else
3928 # If each of the values was on the command line, it overrides each guess.
3929 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3930 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3931 # Update the cache value to reflect the command line values.
3932 ac_cv_have_x="have_x=yes\
3933 ac_x_includes='$x_includes'\
3934 ac_x_libraries='$x_libraries'"
3935 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3936 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3939 if test "$no_x" = yes; then
3940 # Not all programs may use this symbol, but it does not hurt to define it.
3942 cat >>confdefs.h <<\_ACEOF
3943 #define X_DISPLAY_MISSING 1
3944 _ACEOF
3946 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3947 else
3948 if test -n "$x_includes"; then
3949 X_CFLAGS="$X_CFLAGS -I$x_includes"
3952 # It would also be nice to do this for all -L options, not just this one.
3953 if test -n "$x_libraries"; then
3954 X_LIBS="$X_LIBS -L$x_libraries"
3955 # For Solaris; some versions of Sun CC require a space after -R and
3956 # others require no space. Words are not sufficient . . . .
3957 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3958 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3959 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3960 ac_xsave_c_werror_flag=$ac_c_werror_flag
3961 ac_c_werror_flag=yes
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3970 main ()
3974 return 0;
3976 _ACEOF
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (ac_try="$ac_link"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_link") 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } && {
3991 test -z "$ac_c_werror_flag" ||
3992 test ! -s conftest.err
3993 } && test -s conftest$ac_exeext &&
3994 $as_test_x conftest$ac_exeext; then
3995 { echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6; }
3997 X_LIBS="$X_LIBS -R$x_libraries"
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 LIBS="$ac_xsave_LIBS -R $x_libraries"
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4011 main ()
4015 return 0;
4017 _ACEOF
4018 rm -f conftest.$ac_objext conftest$ac_exeext
4019 if { (ac_try="$ac_link"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_link") 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } && {
4032 test -z "$ac_c_werror_flag" ||
4033 test ! -s conftest.err
4034 } && test -s conftest$ac_exeext &&
4035 $as_test_x conftest$ac_exeext; then
4036 { echo "$as_me:$LINENO: result: yes" >&5
4037 echo "${ECHO_T}yes" >&6; }
4038 X_LIBS="$X_LIBS -R $x_libraries"
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 { echo "$as_me:$LINENO: result: neither works" >&5
4044 echo "${ECHO_T}neither works" >&6; }
4047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4048 conftest$ac_exeext conftest.$ac_ext
4051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4052 conftest$ac_exeext conftest.$ac_ext
4053 ac_c_werror_flag=$ac_xsave_c_werror_flag
4054 LIBS=$ac_xsave_LIBS
4057 # Check for system-dependent libraries X programs must link with.
4058 # Do this before checking for the system-independent R6 libraries
4059 # (-lICE), since we may need -lsocket or whatever for X linking.
4061 if test "$ISC" = yes; then
4062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4063 else
4064 # Martyn Johnson says this is needed for Ultrix, if the X
4065 # libraries were built with DECnet support. And Karl Berry says
4066 # the Alpha needs dnet_stub (dnet does not exist).
4067 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4075 /* Override any GCC internal prototype to avoid an error.
4076 Use char because int might match the return type of a GCC
4077 builtin and then its argument prototype would still apply. */
4078 #ifdef __cplusplus
4079 extern "C"
4080 #endif
4081 char XOpenDisplay ();
4083 main ()
4085 return XOpenDisplay ();
4087 return 0;
4089 _ACEOF
4090 rm -f conftest.$ac_objext conftest$ac_exeext
4091 if { (ac_try="$ac_link"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_link") 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } && {
4104 test -z "$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4106 } && test -s conftest$ac_exeext &&
4107 $as_test_x conftest$ac_exeext; then
4109 else
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4114 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4115 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 ac_check_lib_save_LIBS=$LIBS
4119 LIBS="-ldnet $LIBS"
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4127 /* Override any GCC internal prototype to avoid an error.
4128 Use char because int might match the return type of a GCC
4129 builtin and then its argument prototype would still apply. */
4130 #ifdef __cplusplus
4131 extern "C"
4132 #endif
4133 char dnet_ntoa ();
4135 main ()
4137 return dnet_ntoa ();
4139 return 0;
4141 _ACEOF
4142 rm -f conftest.$ac_objext conftest$ac_exeext
4143 if { (ac_try="$ac_link"
4144 case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147 esac
4148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4149 (eval "$ac_link") 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && {
4156 test -z "$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4158 } && test -s conftest$ac_exeext &&
4159 $as_test_x conftest$ac_exeext; then
4160 ac_cv_lib_dnet_dnet_ntoa=yes
4161 else
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 ac_cv_lib_dnet_dnet_ntoa=no
4168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4169 conftest$ac_exeext conftest.$ac_ext
4170 LIBS=$ac_check_lib_save_LIBS
4172 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4173 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4174 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4175 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4178 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4179 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4180 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4181 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 ac_check_lib_save_LIBS=$LIBS
4185 LIBS="-ldnet_stub $LIBS"
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h. */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4193 /* Override any GCC internal prototype to avoid an error.
4194 Use char because int might match the return type of a GCC
4195 builtin and then its argument prototype would still apply. */
4196 #ifdef __cplusplus
4197 extern "C"
4198 #endif
4199 char dnet_ntoa ();
4201 main ()
4203 return dnet_ntoa ();
4205 return 0;
4207 _ACEOF
4208 rm -f conftest.$ac_objext conftest$ac_exeext
4209 if { (ac_try="$ac_link"
4210 case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213 esac
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_link") 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } && {
4222 test -z "$ac_c_werror_flag" ||
4223 test ! -s conftest.err
4224 } && test -s conftest$ac_exeext &&
4225 $as_test_x conftest$ac_exeext; then
4226 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4227 else
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 ac_cv_lib_dnet_stub_dnet_ntoa=no
4234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4235 conftest$ac_exeext conftest.$ac_ext
4236 LIBS=$ac_check_lib_save_LIBS
4238 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4239 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4240 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4241 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4248 conftest$ac_exeext conftest.$ac_ext
4249 LIBS="$ac_xsave_LIBS"
4251 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4252 # to get the SysV transport functions.
4253 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4254 # needs -lnsl.
4255 # The nsl library prevents programs from opening the X display
4256 # on Irix 5.2, according to T.E. Dickey.
4257 # The functions gethostbyname, getservbyname, and inet_addr are
4258 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4259 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4260 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4261 if test "${ac_cv_func_gethostbyname+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4272 #define gethostbyname innocuous_gethostbyname
4274 /* System header to define __stub macros and hopefully few prototypes,
4275 which can conflict with char gethostbyname (); below.
4276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277 <limits.h> exists even on freestanding compilers. */
4279 #ifdef __STDC__
4280 # include <limits.h>
4281 #else
4282 # include <assert.h>
4283 #endif
4285 #undef gethostbyname
4287 /* Override any GCC internal prototype to avoid an error.
4288 Use char because int might match the return type of a GCC
4289 builtin and then its argument prototype would still apply. */
4290 #ifdef __cplusplus
4291 extern "C"
4292 #endif
4293 char gethostbyname ();
4294 /* The GNU C library defines this for functions which it implements
4295 to always fail with ENOSYS. Some functions are actually named
4296 something starting with __ and the normal name is an alias. */
4297 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4298 choke me
4299 #endif
4302 main ()
4304 return gethostbyname ();
4306 return 0;
4308 _ACEOF
4309 rm -f conftest.$ac_objext conftest$ac_exeext
4310 if { (ac_try="$ac_link"
4311 case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_link") 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } && {
4323 test -z "$ac_c_werror_flag" ||
4324 test ! -s conftest.err
4325 } && test -s conftest$ac_exeext &&
4326 $as_test_x conftest$ac_exeext; then
4327 ac_cv_func_gethostbyname=yes
4328 else
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 ac_cv_func_gethostbyname=no
4335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4336 conftest$ac_exeext conftest.$ac_ext
4338 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4339 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4341 if test $ac_cv_func_gethostbyname = no; then
4342 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4343 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4344 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347 ac_check_lib_save_LIBS=$LIBS
4348 LIBS="-lnsl $LIBS"
4349 cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h. */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4356 /* Override any GCC internal prototype to avoid an error.
4357 Use char because int might match the return type of a GCC
4358 builtin and then its argument prototype would still apply. */
4359 #ifdef __cplusplus
4360 extern "C"
4361 #endif
4362 char gethostbyname ();
4364 main ()
4366 return gethostbyname ();
4368 return 0;
4370 _ACEOF
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
4379 ac_status=$?
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } && {
4385 test -z "$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4387 } && test -s conftest$ac_exeext &&
4388 $as_test_x conftest$ac_exeext; then
4389 ac_cv_lib_nsl_gethostbyname=yes
4390 else
4391 echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4394 ac_cv_lib_nsl_gethostbyname=no
4397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4398 conftest$ac_exeext conftest.$ac_ext
4399 LIBS=$ac_check_lib_save_LIBS
4401 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4402 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4403 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4404 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4407 if test $ac_cv_lib_nsl_gethostbyname = no; then
4408 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4409 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4410 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413 ac_check_lib_save_LIBS=$LIBS
4414 LIBS="-lbsd $LIBS"
4415 cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h. */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4422 /* Override any GCC internal prototype to avoid an error.
4423 Use char because int might match the return type of a GCC
4424 builtin and then its argument prototype would still apply. */
4425 #ifdef __cplusplus
4426 extern "C"
4427 #endif
4428 char gethostbyname ();
4430 main ()
4432 return gethostbyname ();
4434 return 0;
4436 _ACEOF
4437 rm -f conftest.$ac_objext conftest$ac_exeext
4438 if { (ac_try="$ac_link"
4439 case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_link") 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } && {
4451 test -z "$ac_c_werror_flag" ||
4452 test ! -s conftest.err
4453 } && test -s conftest$ac_exeext &&
4454 $as_test_x conftest$ac_exeext; then
4455 ac_cv_lib_bsd_gethostbyname=yes
4456 else
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 ac_cv_lib_bsd_gethostbyname=no
4463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4464 conftest$ac_exeext conftest.$ac_ext
4465 LIBS=$ac_check_lib_save_LIBS
4467 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4468 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4469 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4470 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4476 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4477 # socket/setsockopt and other routines are undefined under SCO ODT
4478 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4479 # on later versions), says Simon Leinen: it contains gethostby*
4480 # variants that don't use the name server (or something). -lsocket
4481 # must be given before -lnsl if both are needed. We assume that
4482 # if connect needs -lnsl, so does gethostbyname.
4483 { echo "$as_me:$LINENO: checking for connect" >&5
4484 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4485 if test "${ac_cv_func_connect+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4496 #define connect innocuous_connect
4498 /* System header to define __stub macros and hopefully few prototypes,
4499 which can conflict with char connect (); below.
4500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4501 <limits.h> exists even on freestanding compilers. */
4503 #ifdef __STDC__
4504 # include <limits.h>
4505 #else
4506 # include <assert.h>
4507 #endif
4509 #undef connect
4511 /* Override any GCC internal prototype to avoid an error.
4512 Use char because int might match the return type of a GCC
4513 builtin and then its argument prototype would still apply. */
4514 #ifdef __cplusplus
4515 extern "C"
4516 #endif
4517 char connect ();
4518 /* The GNU C library defines this for functions which it implements
4519 to always fail with ENOSYS. Some functions are actually named
4520 something starting with __ and the normal name is an alias. */
4521 #if defined __stub_connect || defined __stub___connect
4522 choke me
4523 #endif
4526 main ()
4528 return connect ();
4530 return 0;
4532 _ACEOF
4533 rm -f conftest.$ac_objext conftest$ac_exeext
4534 if { (ac_try="$ac_link"
4535 case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_link") 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest$ac_exeext &&
4550 $as_test_x conftest$ac_exeext; then
4551 ac_cv_func_connect=yes
4552 else
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 ac_cv_func_connect=no
4559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4560 conftest$ac_exeext conftest.$ac_ext
4562 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4563 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4565 if test $ac_cv_func_connect = no; then
4566 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4567 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4568 if test "${ac_cv_lib_socket_connect+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 ac_check_lib_save_LIBS=$LIBS
4572 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4573 cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h. */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4580 /* Override any GCC internal prototype to avoid an error.
4581 Use char because int might match the return type of a GCC
4582 builtin and then its argument prototype would still apply. */
4583 #ifdef __cplusplus
4584 extern "C"
4585 #endif
4586 char connect ();
4588 main ()
4590 return connect ();
4592 return 0;
4594 _ACEOF
4595 rm -f conftest.$ac_objext conftest$ac_exeext
4596 if { (ac_try="$ac_link"
4597 case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_link") 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && {
4609 test -z "$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4611 } && test -s conftest$ac_exeext &&
4612 $as_test_x conftest$ac_exeext; then
4613 ac_cv_lib_socket_connect=yes
4614 else
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 ac_cv_lib_socket_connect=no
4621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4622 conftest$ac_exeext conftest.$ac_ext
4623 LIBS=$ac_check_lib_save_LIBS
4625 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4626 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4627 if test $ac_cv_lib_socket_connect = yes; then
4628 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4633 # Guillermo Gomez says -lposix is necessary on A/UX.
4634 { echo "$as_me:$LINENO: checking for remove" >&5
4635 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4636 if test "${ac_cv_func_remove+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4647 #define remove innocuous_remove
4649 /* System header to define __stub macros and hopefully few prototypes,
4650 which can conflict with char remove (); below.
4651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4652 <limits.h> exists even on freestanding compilers. */
4654 #ifdef __STDC__
4655 # include <limits.h>
4656 #else
4657 # include <assert.h>
4658 #endif
4660 #undef remove
4662 /* Override any GCC internal prototype to avoid an error.
4663 Use char because int might match the return type of a GCC
4664 builtin and then its argument prototype would still apply. */
4665 #ifdef __cplusplus
4666 extern "C"
4667 #endif
4668 char remove ();
4669 /* The GNU C library defines this for functions which it implements
4670 to always fail with ENOSYS. Some functions are actually named
4671 something starting with __ and the normal name is an alias. */
4672 #if defined __stub_remove || defined __stub___remove
4673 choke me
4674 #endif
4677 main ()
4679 return remove ();
4681 return 0;
4683 _ACEOF
4684 rm -f conftest.$ac_objext conftest$ac_exeext
4685 if { (ac_try="$ac_link"
4686 case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_link") 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } && {
4698 test -z "$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 } && test -s conftest$ac_exeext &&
4701 $as_test_x conftest$ac_exeext; then
4702 ac_cv_func_remove=yes
4703 else
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4707 ac_cv_func_remove=no
4710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4711 conftest$ac_exeext conftest.$ac_ext
4713 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4714 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4716 if test $ac_cv_func_remove = no; then
4717 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4718 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4719 if test "${ac_cv_lib_posix_remove+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 ac_check_lib_save_LIBS=$LIBS
4723 LIBS="-lposix $LIBS"
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h. */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4731 /* Override any GCC internal prototype to avoid an error.
4732 Use char because int might match the return type of a GCC
4733 builtin and then its argument prototype would still apply. */
4734 #ifdef __cplusplus
4735 extern "C"
4736 #endif
4737 char remove ();
4739 main ()
4741 return remove ();
4743 return 0;
4745 _ACEOF
4746 rm -f conftest.$ac_objext conftest$ac_exeext
4747 if { (ac_try="$ac_link"
4748 case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_link") 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } && {
4760 test -z "$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4762 } && test -s conftest$ac_exeext &&
4763 $as_test_x conftest$ac_exeext; then
4764 ac_cv_lib_posix_remove=yes
4765 else
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4769 ac_cv_lib_posix_remove=no
4772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4773 conftest$ac_exeext conftest.$ac_ext
4774 LIBS=$ac_check_lib_save_LIBS
4776 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4777 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4778 if test $ac_cv_lib_posix_remove = yes; then
4779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4784 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4785 { echo "$as_me:$LINENO: checking for shmat" >&5
4786 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4787 if test "${ac_cv_func_shmat+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4798 #define shmat innocuous_shmat
4800 /* System header to define __stub macros and hopefully few prototypes,
4801 which can conflict with char shmat (); below.
4802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803 <limits.h> exists even on freestanding compilers. */
4805 #ifdef __STDC__
4806 # include <limits.h>
4807 #else
4808 # include <assert.h>
4809 #endif
4811 #undef shmat
4813 /* Override any GCC internal prototype to avoid an error.
4814 Use char because int might match the return type of a GCC
4815 builtin and then its argument prototype would still apply. */
4816 #ifdef __cplusplus
4817 extern "C"
4818 #endif
4819 char shmat ();
4820 /* The GNU C library defines this for functions which it implements
4821 to always fail with ENOSYS. Some functions are actually named
4822 something starting with __ and the normal name is an alias. */
4823 #if defined __stub_shmat || defined __stub___shmat
4824 choke me
4825 #endif
4828 main ()
4830 return shmat ();
4832 return 0;
4834 _ACEOF
4835 rm -f conftest.$ac_objext conftest$ac_exeext
4836 if { (ac_try="$ac_link"
4837 case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840 esac
4841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_link") 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } && {
4849 test -z "$ac_c_werror_flag" ||
4850 test ! -s conftest.err
4851 } && test -s conftest$ac_exeext &&
4852 $as_test_x conftest$ac_exeext; then
4853 ac_cv_func_shmat=yes
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 ac_cv_func_shmat=no
4861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4862 conftest$ac_exeext conftest.$ac_ext
4864 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4865 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4867 if test $ac_cv_func_shmat = no; then
4868 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4869 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4870 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873 ac_check_lib_save_LIBS=$LIBS
4874 LIBS="-lipc $LIBS"
4875 cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h. */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4882 /* Override any GCC internal prototype to avoid an error.
4883 Use char because int might match the return type of a GCC
4884 builtin and then its argument prototype would still apply. */
4885 #ifdef __cplusplus
4886 extern "C"
4887 #endif
4888 char shmat ();
4890 main ()
4892 return shmat ();
4894 return 0;
4896 _ACEOF
4897 rm -f conftest.$ac_objext conftest$ac_exeext
4898 if { (ac_try="$ac_link"
4899 case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_link") 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } && {
4911 test -z "$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4913 } && test -s conftest$ac_exeext &&
4914 $as_test_x conftest$ac_exeext; then
4915 ac_cv_lib_ipc_shmat=yes
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 ac_cv_lib_ipc_shmat=no
4923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4924 conftest$ac_exeext conftest.$ac_ext
4925 LIBS=$ac_check_lib_save_LIBS
4927 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4928 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4929 if test $ac_cv_lib_ipc_shmat = yes; then
4930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4936 # Check for libraries that X11R6 Xt/Xaw programs need.
4937 ac_save_LDFLAGS=$LDFLAGS
4938 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4939 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4940 # check for ICE first), but we must link in the order -lSM -lICE or
4941 # we get undefined symbols. So assume we have SM if we have ICE.
4942 # These have to be linked with before -lX11, unlike the other
4943 # libraries we check for below, so use a different variable.
4944 # John Interrante, Karl Berry
4945 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4946 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4947 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950 ac_check_lib_save_LIBS=$LIBS
4951 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4959 /* Override any GCC internal prototype to avoid an error.
4960 Use char because int might match the return type of a GCC
4961 builtin and then its argument prototype would still apply. */
4962 #ifdef __cplusplus
4963 extern "C"
4964 #endif
4965 char IceConnectionNumber ();
4967 main ()
4969 return IceConnectionNumber ();
4971 return 0;
4973 _ACEOF
4974 rm -f conftest.$ac_objext conftest$ac_exeext
4975 if { (ac_try="$ac_link"
4976 case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979 esac
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_link") 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } && {
4988 test -z "$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 } && test -s conftest$ac_exeext &&
4991 $as_test_x conftest$ac_exeext; then
4992 ac_cv_lib_ICE_IceConnectionNumber=yes
4993 else
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 ac_cv_lib_ICE_IceConnectionNumber=no
5000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5001 conftest$ac_exeext conftest.$ac_ext
5002 LIBS=$ac_check_lib_save_LIBS
5004 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5005 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5006 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5007 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5010 LDFLAGS=$ac_save_LDFLAGS
5015 for ac_prog in flex
5017 # Extract the first word of "$ac_prog", so it can be a program name with args.
5018 set dummy $ac_prog; ac_word=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_prog_FLEX+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 if test -n "$FLEX"; then
5025 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_FLEX="$ac_prog"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5038 done
5039 done
5040 IFS=$as_save_IFS
5044 FLEX=$ac_cv_prog_FLEX
5045 if test -n "$FLEX"; then
5046 { echo "$as_me:$LINENO: result: $FLEX" >&5
5047 echo "${ECHO_T}$FLEX" >&6; }
5048 else
5049 { echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6; }
5054 test -n "$FLEX" && break
5055 done
5056 test -n "$FLEX" || FLEX="none"
5058 if test "$FLEX" = "none"
5059 then
5060 { { echo "$as_me:$LINENO: error: no suitable flex found. Please install the 'flex' package." >&5
5061 echo "$as_me: error: no suitable flex found. Please install the 'flex' package." >&2;}
5062 { (exit 1); exit 1; }; }
5065 for ac_prog in bison
5067 # Extract the first word of "$ac_prog", so it can be a program name with args.
5068 set dummy $ac_prog; ac_word=$2
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071 if test "${ac_cv_prog_BISON+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074 if test -n "$BISON"; then
5075 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_BISON="$ac_prog"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5088 done
5089 done
5090 IFS=$as_save_IFS
5094 BISON=$ac_cv_prog_BISON
5095 if test -n "$BISON"; then
5096 { echo "$as_me:$LINENO: result: $BISON" >&5
5097 echo "${ECHO_T}$BISON" >&6; }
5098 else
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5104 test -n "$BISON" && break
5105 done
5106 test -n "$BISON" || BISON="none"
5108 if test "$BISON" = "none"
5109 then
5110 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5111 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5112 { (exit 1); exit 1; }; }
5115 if test -n "$ac_tool_prefix"; then
5116 for ac_prog in gas as
5118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5122 if test "${ac_cv_prog_AS+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125 if test -n "$AS"; then
5126 ac_cv_prog_AS="$AS" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5139 done
5140 done
5141 IFS=$as_save_IFS
5145 AS=$ac_cv_prog_AS
5146 if test -n "$AS"; then
5147 { echo "$as_me:$LINENO: result: $AS" >&5
5148 echo "${ECHO_T}$AS" >&6; }
5149 else
5150 { echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6; }
5155 test -n "$AS" && break
5156 done
5158 if test -z "$AS"; then
5159 ac_ct_AS=$AS
5160 for ac_prog in gas as
5162 # Extract the first word of "$ac_prog", so it can be a program name with args.
5163 set dummy $ac_prog; ac_word=$2
5164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5166 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 if test -n "$ac_ct_AS"; then
5170 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_ac_ct_AS="$ac_prog"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5183 done
5184 done
5185 IFS=$as_save_IFS
5189 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5190 if test -n "$ac_ct_AS"; then
5191 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5192 echo "${ECHO_T}$ac_ct_AS" >&6; }
5193 else
5194 { echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6; }
5199 test -n "$ac_ct_AS" && break
5200 done
5202 if test "x$ac_ct_AS" = x; then
5203 AS="as"
5204 else
5205 case $cross_compiling:$ac_tool_warned in
5206 yes:)
5207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5208 whose name does not start with the host triplet. If you think this
5209 configuration is useful to you, please write to autoconf@gnu.org." >&5
5210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5211 whose name does not start with the host triplet. If you think this
5212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5213 ac_tool_warned=yes ;;
5214 esac
5215 AS=$ac_ct_AS
5219 if test -n "$ac_tool_prefix"; then
5220 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5221 set dummy ${ac_tool_prefix}ld; ac_word=$2
5222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5224 if test "${ac_cv_prog_LD+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 if test -n "$LD"; then
5228 ac_cv_prog_LD="$LD" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_prog_LD="${ac_tool_prefix}ld"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5243 IFS=$as_save_IFS
5247 LD=$ac_cv_prog_LD
5248 if test -n "$LD"; then
5249 { echo "$as_me:$LINENO: result: $LD" >&5
5250 echo "${ECHO_T}$LD" >&6; }
5251 else
5252 { echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6; }
5258 if test -z "$ac_cv_prog_LD"; then
5259 ac_ct_LD=$LD
5260 # Extract the first word of "ld", so it can be a program name with args.
5261 set dummy ld; ac_word=$2
5262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5264 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 if test -n "$ac_ct_LD"; then
5268 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_prog_ac_ct_LD="ld"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5281 done
5282 done
5283 IFS=$as_save_IFS
5287 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5288 if test -n "$ac_ct_LD"; then
5289 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5290 echo "${ECHO_T}$ac_ct_LD" >&6; }
5291 else
5292 { echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6; }
5296 if test "x$ac_ct_LD" = x; then
5297 LD="ld"
5298 else
5299 case $cross_compiling:$ac_tool_warned in
5300 yes:)
5301 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5302 whose name does not start with the host triplet. If you think this
5303 configuration is useful to you, please write to autoconf@gnu.org." >&5
5304 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5305 whose name does not start with the host triplet. If you think this
5306 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5307 ac_tool_warned=yes ;;
5308 esac
5309 LD=$ac_ct_LD
5311 else
5312 LD="$ac_cv_prog_LD"
5315 if test -n "$ac_tool_prefix"; then
5316 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5317 set dummy ${ac_tool_prefix}ar; ac_word=$2
5318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5320 if test "${ac_cv_prog_AR+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 if test -n "$AR"; then
5324 ac_cv_prog_AR="$AR" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_prog_AR="${ac_tool_prefix}ar"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5339 IFS=$as_save_IFS
5343 AR=$ac_cv_prog_AR
5344 if test -n "$AR"; then
5345 { echo "$as_me:$LINENO: result: $AR" >&5
5346 echo "${ECHO_T}$AR" >&6; }
5347 else
5348 { echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6; }
5354 if test -z "$ac_cv_prog_AR"; then
5355 ac_ct_AR=$AR
5356 # Extract the first word of "ar", so it can be a program name with args.
5357 set dummy ar; ac_word=$2
5358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5360 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363 if test -n "$ac_ct_AR"; then
5364 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_ac_ct_AR="ar"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5377 done
5378 done
5379 IFS=$as_save_IFS
5383 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5384 if test -n "$ac_ct_AR"; then
5385 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5386 echo "${ECHO_T}$ac_ct_AR" >&6; }
5387 else
5388 { echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6; }
5392 if test "x$ac_ct_AR" = x; then
5393 AR="ar"
5394 else
5395 case $cross_compiling:$ac_tool_warned in
5396 yes:)
5397 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5398 whose name does not start with the host triplet. If you think this
5399 configuration is useful to you, please write to autoconf@gnu.org." >&5
5400 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5401 whose name does not start with the host triplet. If you think this
5402 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5403 ac_tool_warned=yes ;;
5404 esac
5405 AR=$ac_ct_AR
5407 else
5408 AR="$ac_cv_prog_AR"
5411 if test -n "$ac_tool_prefix"; then
5412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5416 if test "${ac_cv_prog_RANLIB+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419 if test -n "$RANLIB"; then
5420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5433 done
5434 done
5435 IFS=$as_save_IFS
5439 RANLIB=$ac_cv_prog_RANLIB
5440 if test -n "$RANLIB"; then
5441 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5442 echo "${ECHO_T}$RANLIB" >&6; }
5443 else
5444 { echo "$as_me:$LINENO: result: no" >&5
5445 echo "${ECHO_T}no" >&6; }
5450 if test -z "$ac_cv_prog_RANLIB"; then
5451 ac_ct_RANLIB=$RANLIB
5452 # Extract the first word of "ranlib", so it can be a program name with args.
5453 set dummy ranlib; ac_word=$2
5454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5456 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 else
5459 if test -n "$ac_ct_RANLIB"; then
5460 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_prog_ac_ct_RANLIB="ranlib"
5470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5473 done
5474 done
5475 IFS=$as_save_IFS
5479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5480 if test -n "$ac_ct_RANLIB"; then
5481 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5482 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5483 else
5484 { echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6; }
5488 if test "x$ac_ct_RANLIB" = x; then
5489 RANLIB=":"
5490 else
5491 case $cross_compiling:$ac_tool_warned in
5492 yes:)
5493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5494 whose name does not start with the host triplet. If you think this
5495 configuration is useful to you, please write to autoconf@gnu.org." >&5
5496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5497 whose name does not start with the host triplet. If you think this
5498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501 RANLIB=$ac_ct_RANLIB
5503 else
5504 RANLIB="$ac_cv_prog_RANLIB"
5507 if test -n "$ac_tool_prefix"; then
5508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5509 set dummy ${ac_tool_prefix}strip; ac_word=$2
5510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5512 if test "${ac_cv_prog_STRIP+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515 if test -n "$STRIP"; then
5516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5525 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5529 done
5530 done
5531 IFS=$as_save_IFS
5535 STRIP=$ac_cv_prog_STRIP
5536 if test -n "$STRIP"; then
5537 { echo "$as_me:$LINENO: result: $STRIP" >&5
5538 echo "${ECHO_T}$STRIP" >&6; }
5539 else
5540 { echo "$as_me:$LINENO: result: no" >&5
5541 echo "${ECHO_T}no" >&6; }
5546 if test -z "$ac_cv_prog_STRIP"; then
5547 ac_ct_STRIP=$STRIP
5548 # Extract the first word of "strip", so it can be a program name with args.
5549 set dummy strip; ac_word=$2
5550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5552 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555 if test -n "$ac_ct_STRIP"; then
5556 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5565 ac_cv_prog_ac_ct_STRIP="strip"
5566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5569 done
5570 done
5571 IFS=$as_save_IFS
5575 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5576 if test -n "$ac_ct_STRIP"; then
5577 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5578 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5579 else
5580 { echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6; }
5584 if test "x$ac_ct_STRIP" = x; then
5585 STRIP="strip"
5586 else
5587 case $cross_compiling:$ac_tool_warned in
5588 yes:)
5589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5590 whose name does not start with the host triplet. If you think this
5591 configuration is useful to you, please write to autoconf@gnu.org." >&5
5592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5593 whose name does not start with the host triplet. If you think this
5594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5595 ac_tool_warned=yes ;;
5596 esac
5597 STRIP=$ac_ct_STRIP
5599 else
5600 STRIP="$ac_cv_prog_STRIP"
5603 if test -n "$ac_tool_prefix"; then
5604 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5605 set dummy ${ac_tool_prefix}windres; ac_word=$2
5606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5608 if test "${ac_cv_prog_WINDRES+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611 if test -n "$WINDRES"; then
5612 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5625 done
5626 done
5627 IFS=$as_save_IFS
5631 WINDRES=$ac_cv_prog_WINDRES
5632 if test -n "$WINDRES"; then
5633 { echo "$as_me:$LINENO: result: $WINDRES" >&5
5634 echo "${ECHO_T}$WINDRES" >&6; }
5635 else
5636 { echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6; }
5642 if test -z "$ac_cv_prog_WINDRES"; then
5643 ac_ct_WINDRES=$WINDRES
5644 # Extract the first word of "windres", so it can be a program name with args.
5645 set dummy windres; ac_word=$2
5646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5648 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651 if test -n "$ac_ct_WINDRES"; then
5652 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661 ac_cv_prog_ac_ct_WINDRES="windres"
5662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5665 done
5666 done
5667 IFS=$as_save_IFS
5671 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5672 if test -n "$ac_ct_WINDRES"; then
5673 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5674 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
5675 else
5676 { echo "$as_me:$LINENO: result: no" >&5
5677 echo "${ECHO_T}no" >&6; }
5680 if test "x$ac_ct_WINDRES" = x; then
5681 WINDRES="false"
5682 else
5683 case $cross_compiling:$ac_tool_warned in
5684 yes:)
5685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5686 whose name does not start with the host triplet. If you think this
5687 configuration is useful to you, please write to autoconf@gnu.org." >&5
5688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5689 whose name does not start with the host triplet. If you think this
5690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5691 ac_tool_warned=yes ;;
5692 esac
5693 WINDRES=$ac_ct_WINDRES
5695 else
5696 WINDRES="$ac_cv_prog_WINDRES"
5699 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5700 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5701 LN_S=$as_ln_s
5702 if test "$LN_S" = "ln -s"; then
5703 { echo "$as_me:$LINENO: result: yes" >&5
5704 echo "${ECHO_T}yes" >&6; }
5705 else
5706 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5707 echo "${ECHO_T}no, using $LN_S" >&6; }
5710 { echo "$as_me:$LINENO: checking whether ln works" >&5
5711 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
5712 rm -f conf$$ conf$$.file
5713 echo >conf$$.file
5714 if ln conf$$.file conf$$ 2>/dev/null; then
5715 LN=ln
5717 { echo "$as_me:$LINENO: result: yes" >&5
5718 echo "${ECHO_T}yes" >&6; }
5719 else
5720 LN="cp -p"
5722 { echo "$as_me:$LINENO: result: no, using $LN" >&5
5723 echo "${ECHO_T}no, using $LN" >&6; }
5725 rm -f conf$$ conf$$.file
5726 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5727 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5728 if test "${ac_cv_path_GREP+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 # Extract the first word of "grep ggrep" to use in msg output
5732 if test -z "$GREP"; then
5733 set dummy grep ggrep; ac_prog_name=$2
5734 if test "${ac_cv_path_GREP+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 ac_path_GREP_found=false
5738 # Loop through the user's path and test for each of PROGNAME-LIST
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_prog in grep ggrep; do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5747 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5748 # Check for GNU ac_path_GREP and select it if it is found.
5749 # Check for GNU $ac_path_GREP
5750 case `"$ac_path_GREP" --version 2>&1` in
5751 *GNU*)
5752 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5754 ac_count=0
5755 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5756 while :
5758 cat "conftest.in" "conftest.in" >"conftest.tmp"
5759 mv "conftest.tmp" "conftest.in"
5760 cp "conftest.in" "conftest.nl"
5761 echo 'GREP' >> "conftest.nl"
5762 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5764 ac_count=`expr $ac_count + 1`
5765 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5766 # Best one so far, save it but keep looking for a better one
5767 ac_cv_path_GREP="$ac_path_GREP"
5768 ac_path_GREP_max=$ac_count
5770 # 10*(2^10) chars as input seems more than enough
5771 test $ac_count -gt 10 && break
5772 done
5773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5774 esac
5777 $ac_path_GREP_found && break 3
5778 done
5779 done
5781 done
5782 IFS=$as_save_IFS
5787 GREP="$ac_cv_path_GREP"
5788 if test -z "$GREP"; then
5789 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5790 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5791 { (exit 1); exit 1; }; }
5794 else
5795 ac_cv_path_GREP=$GREP
5800 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5801 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5802 GREP="$ac_cv_path_GREP"
5805 { echo "$as_me:$LINENO: checking for egrep" >&5
5806 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5807 if test "${ac_cv_path_EGREP+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5811 then ac_cv_path_EGREP="$GREP -E"
5812 else
5813 # Extract the first word of "egrep" to use in msg output
5814 if test -z "$EGREP"; then
5815 set dummy egrep; ac_prog_name=$2
5816 if test "${ac_cv_path_EGREP+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819 ac_path_EGREP_found=false
5820 # Loop through the user's path and test for each of PROGNAME-LIST
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_prog in egrep; do
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5829 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5830 # Check for GNU ac_path_EGREP and select it if it is found.
5831 # Check for GNU $ac_path_EGREP
5832 case `"$ac_path_EGREP" --version 2>&1` in
5833 *GNU*)
5834 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5836 ac_count=0
5837 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5838 while :
5840 cat "conftest.in" "conftest.in" >"conftest.tmp"
5841 mv "conftest.tmp" "conftest.in"
5842 cp "conftest.in" "conftest.nl"
5843 echo 'EGREP' >> "conftest.nl"
5844 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5846 ac_count=`expr $ac_count + 1`
5847 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5848 # Best one so far, save it but keep looking for a better one
5849 ac_cv_path_EGREP="$ac_path_EGREP"
5850 ac_path_EGREP_max=$ac_count
5852 # 10*(2^10) chars as input seems more than enough
5853 test $ac_count -gt 10 && break
5854 done
5855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5856 esac
5859 $ac_path_EGREP_found && break 3
5860 done
5861 done
5863 done
5864 IFS=$as_save_IFS
5869 EGREP="$ac_cv_path_EGREP"
5870 if test -z "$EGREP"; then
5871 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5872 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5873 { (exit 1); exit 1; }; }
5876 else
5877 ac_cv_path_EGREP=$EGREP
5883 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5884 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5885 EGREP="$ac_cv_path_EGREP"
5888 # Extract the first word of "ldconfig", so it can be a program name with args.
5889 set dummy ldconfig; ac_word=$2
5890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5892 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 case $LDCONFIG in
5896 [\\/]* | ?:[\\/]*)
5897 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in /sbin /usr/sbin $PATH
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5907 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5911 done
5912 done
5913 IFS=$as_save_IFS
5915 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5917 esac
5919 LDCONFIG=$ac_cv_path_LDCONFIG
5920 if test -n "$LDCONFIG"; then
5921 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5922 echo "${ECHO_T}$LDCONFIG" >&6; }
5923 else
5924 { echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6; }
5929 # Find a good install program. We prefer a C program (faster),
5930 # so one script is as good as another. But avoid the broken or
5931 # incompatible versions:
5932 # SysV /etc/install, /usr/sbin/install
5933 # SunOS /usr/etc/install
5934 # IRIX /sbin/install
5935 # AIX /bin/install
5936 # AmigaOS /C/install, which installs bootblocks on floppy discs
5937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5940 # OS/2's system install, which has a completely different semantic
5941 # ./install, which can be erroneously created by make from ./install.sh.
5942 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5943 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5944 if test -z "$INSTALL"; then
5945 if test "${ac_cv_path_install+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 # Account for people who put trailing slashes in PATH elements.
5954 case $as_dir/ in
5955 ./ | .// | /cC/* | \
5956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5957 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5958 /usr/ucb/* ) ;;
5960 # OSF1 and SCO ODT 3.0 have their own names for install.
5961 # Don't use installbsd from OSF since it installs stuff as root
5962 # by default.
5963 for ac_prog in ginstall scoinst install; do
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5966 if test $ac_prog = install &&
5967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5968 # AIX install. It has an incompatible calling convention.
5970 elif test $ac_prog = install &&
5971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5972 # program-specific install script used by HP pwplus--don't use.
5974 else
5975 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5976 break 3
5979 done
5980 done
5982 esac
5983 done
5984 IFS=$as_save_IFS
5988 if test "${ac_cv_path_install+set}" = set; then
5989 INSTALL=$ac_cv_path_install
5990 else
5991 # As a last resort, use the slow shell script. Don't cache a
5992 # value for INSTALL within a source directory, because that will
5993 # break other packages using the cache if that directory is
5994 # removed, or if the value is a relative name.
5995 INSTALL=$ac_install_sh
5998 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5999 echo "${ECHO_T}$INSTALL" >&6; }
6001 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6002 # It thinks the first close brace ends the variable substitution.
6003 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6005 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6007 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6009 case "$INSTALL" in
6010 [\\/$]* | ?:[\\/]* ) ;;
6011 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6012 esac
6014 for ac_prog in lclint lint
6016 # Extract the first word of "$ac_prog", so it can be a program name with args.
6017 set dummy $ac_prog; ac_word=$2
6018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6020 if test "${ac_cv_prog_LINT+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023 if test -n "$LINT"; then
6024 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6033 ac_cv_prog_LINT="$ac_prog"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6037 done
6038 done
6039 IFS=$as_save_IFS
6043 LINT=$ac_cv_prog_LINT
6044 if test -n "$LINT"; then
6045 { echo "$as_me:$LINENO: result: $LINT" >&5
6046 echo "${ECHO_T}$LINT" >&6; }
6047 else
6048 { echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6; }
6053 test -n "$LINT" && break
6054 done
6056 if test "$LINT" = "lint"
6057 then
6058 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6063 for ac_prog in fontforge
6065 # Extract the first word of "$ac_prog", so it can be a program name with args.
6066 set dummy $ac_prog; ac_word=$2
6067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6069 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 if test -n "$FONTFORGE"; then
6073 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_FONTFORGE="$ac_prog"
6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6086 done
6087 done
6088 IFS=$as_save_IFS
6092 FONTFORGE=$ac_cv_prog_FONTFORGE
6093 if test -n "$FONTFORGE"; then
6094 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6095 echo "${ECHO_T}$FONTFORGE" >&6; }
6096 else
6097 { echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6; }
6102 test -n "$FONTFORGE" && break
6103 done
6104 test -n "$FONTFORGE" || FONTFORGE="false"
6106 for ac_prog in pkg-config
6108 # Extract the first word of "$ac_prog", so it can be a program name with args.
6109 set dummy $ac_prog; ac_word=$2
6110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115 if test -n "$PKG_CONFIG"; then
6116 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_PKG_CONFIG="$ac_prog"
6126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6129 done
6130 done
6131 IFS=$as_save_IFS
6135 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6136 if test -n "$PKG_CONFIG"; then
6137 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6138 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6139 else
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6145 test -n "$PKG_CONFIG" && break
6146 done
6147 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6150 case $host_cpu in
6151 *i[3456789]86*)
6152 # Extract the first word of "prelink", so it can be a program name with args.
6153 set dummy prelink; ac_word=$2
6154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6156 if test "${ac_cv_path_PRELINK+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 case $PRELINK in
6160 [\\/]* | ?:[\\/]*)
6161 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in /sbin /usr/sbin $PATH
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6175 done
6176 done
6177 IFS=$as_save_IFS
6179 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6181 esac
6183 PRELINK=$ac_cv_path_PRELINK
6184 if test -n "$PRELINK"; then
6185 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6186 echo "${ECHO_T}$PRELINK" >&6; }
6187 else
6188 { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6194 esac
6198 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6199 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6200 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 ac_check_lib_save_LIBS=$LIBS
6204 LIBS="-li386 $LIBS"
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6212 /* Override any GCC internal prototype to avoid an error.
6213 Use char because int might match the return type of a GCC
6214 builtin and then its argument prototype would still apply. */
6215 #ifdef __cplusplus
6216 extern "C"
6217 #endif
6218 char i386_set_ldt ();
6220 main ()
6222 return i386_set_ldt ();
6224 return 0;
6226 _ACEOF
6227 rm -f conftest.$ac_objext conftest$ac_exeext
6228 if { (ac_try="$ac_link"
6229 case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6232 esac
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_link") 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } && {
6241 test -z "$ac_c_werror_flag" ||
6242 test ! -s conftest.err
6243 } && test -s conftest$ac_exeext &&
6244 $as_test_x conftest$ac_exeext; then
6245 ac_cv_lib_i386_i386_set_ldt=yes
6246 else
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6250 ac_cv_lib_i386_i386_set_ldt=no
6253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6254 conftest$ac_exeext conftest.$ac_ext
6255 LIBS=$ac_check_lib_save_LIBS
6257 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6258 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
6259 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
6260 cat >>confdefs.h <<_ACEOF
6261 #define HAVE_LIBI386 1
6262 _ACEOF
6264 LIBS="-li386 $LIBS"
6269 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6270 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6271 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274 ac_check_lib_save_LIBS=$LIBS
6275 LIBS="-lossaudio $LIBS"
6276 cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h. */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6283 /* Override any GCC internal prototype to avoid an error.
6284 Use char because int might match the return type of a GCC
6285 builtin and then its argument prototype would still apply. */
6286 #ifdef __cplusplus
6287 extern "C"
6288 #endif
6289 char _oss_ioctl ();
6291 main ()
6293 return _oss_ioctl ();
6295 return 0;
6297 _ACEOF
6298 rm -f conftest.$ac_objext conftest$ac_exeext
6299 if { (ac_try="$ac_link"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_link") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest$ac_exeext &&
6315 $as_test_x conftest$ac_exeext; then
6316 ac_cv_lib_ossaudio__oss_ioctl=yes
6317 else
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 ac_cv_lib_ossaudio__oss_ioctl=no
6324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6325 conftest$ac_exeext conftest.$ac_ext
6326 LIBS=$ac_check_lib_save_LIBS
6328 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6329 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6330 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6331 cat >>confdefs.h <<_ACEOF
6332 #define HAVE_LIBOSSAUDIO 1
6333 _ACEOF
6335 LIBS="-lossaudio $LIBS"
6340 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6341 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
6342 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 ac_check_lib_save_LIBS=$LIBS
6346 LIBS="-lxpg4 $LIBS"
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h. */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6354 /* Override any GCC internal prototype to avoid an error.
6355 Use char because int might match the return type of a GCC
6356 builtin and then its argument prototype would still apply. */
6357 #ifdef __cplusplus
6358 extern "C"
6359 #endif
6360 char _xpg4_setrunelocale ();
6362 main ()
6364 return _xpg4_setrunelocale ();
6366 return 0;
6368 _ACEOF
6369 rm -f conftest.$ac_objext conftest$ac_exeext
6370 if { (ac_try="$ac_link"
6371 case "(($ac_try" in
6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6374 esac
6375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376 (eval "$ac_link") 2>conftest.er1
6377 ac_status=$?
6378 grep -v '^ *+' conftest.er1 >conftest.err
6379 rm -f conftest.er1
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } && {
6383 test -z "$ac_c_werror_flag" ||
6384 test ! -s conftest.err
6385 } && test -s conftest$ac_exeext &&
6386 $as_test_x conftest$ac_exeext; then
6387 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6392 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6396 conftest$ac_exeext conftest.$ac_ext
6397 LIBS=$ac_check_lib_save_LIBS
6399 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6400 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
6401 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6402 cat >>confdefs.h <<_ACEOF
6403 #define HAVE_LIBXPG4 1
6404 _ACEOF
6406 LIBS="-lxpg4 $LIBS"
6410 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6411 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
6412 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415 ac_check_lib_save_LIBS=$LIBS
6416 LIBS="-lpthread $LIBS"
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6424 /* Override any GCC internal prototype to avoid an error.
6425 Use char because int might match the return type of a GCC
6426 builtin and then its argument prototype would still apply. */
6427 #ifdef __cplusplus
6428 extern "C"
6429 #endif
6430 char pthread_create ();
6432 main ()
6434 return pthread_create ();
6436 return 0;
6438 _ACEOF
6439 rm -f conftest.$ac_objext conftest$ac_exeext
6440 if { (ac_try="$ac_link"
6441 case "(($ac_try" in
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6444 esac
6445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446 (eval "$ac_link") 2>conftest.er1
6447 ac_status=$?
6448 grep -v '^ *+' conftest.er1 >conftest.err
6449 rm -f conftest.er1
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } && {
6453 test -z "$ac_c_werror_flag" ||
6454 test ! -s conftest.err
6455 } && test -s conftest$ac_exeext &&
6456 $as_test_x conftest$ac_exeext; then
6457 ac_cv_lib_pthread_pthread_create=yes
6458 else
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6462 ac_cv_lib_pthread_pthread_create=no
6465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6466 conftest$ac_exeext conftest.$ac_ext
6467 LIBS=$ac_check_lib_save_LIBS
6469 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6470 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
6471 if test $ac_cv_lib_pthread_pthread_create = yes; then
6472 LIBPTHREAD="-lpthread"
6477 XLIB=""
6479 XFILES=""
6481 OPENGLFILES=""
6483 GLU32FILES=""
6485 OPENGL_LIBS=""
6487 QUARTZFILES=""
6491 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6492 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6493 if test "${ac_cv_header_stdc+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 #include <stdlib.h>
6503 #include <stdarg.h>
6504 #include <string.h>
6505 #include <float.h>
6508 main ()
6512 return 0;
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6517 case "(($ac_try" in
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6520 esac
6521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522 (eval "$ac_compile") 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } && {
6529 test -z "$ac_c_werror_flag" ||
6530 test ! -s conftest.err
6531 } && test -s conftest.$ac_objext; then
6532 ac_cv_header_stdc=yes
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_cv_header_stdc=no
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 if test $ac_cv_header_stdc = yes; then
6543 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6544 cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h. */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 #include <string.h>
6552 _ACEOF
6553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6554 $EGREP "memchr" >/dev/null 2>&1; then
6556 else
6557 ac_cv_header_stdc=no
6559 rm -f conftest*
6563 if test $ac_cv_header_stdc = yes; then
6564 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h. */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <stdlib.h>
6573 _ACEOF
6574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6575 $EGREP "free" >/dev/null 2>&1; then
6577 else
6578 ac_cv_header_stdc=no
6580 rm -f conftest*
6584 if test $ac_cv_header_stdc = yes; then
6585 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6586 if test "$cross_compiling" = yes; then
6588 else
6589 cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h. */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 #include <ctype.h>
6596 #include <stdlib.h>
6597 #if ((' ' & 0x0FF) == 0x020)
6598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6600 #else
6601 # define ISLOWER(c) \
6602 (('a' <= (c) && (c) <= 'i') \
6603 || ('j' <= (c) && (c) <= 'r') \
6604 || ('s' <= (c) && (c) <= 'z'))
6605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6606 #endif
6608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6610 main ()
6612 int i;
6613 for (i = 0; i < 256; i++)
6614 if (XOR (islower (i), ISLOWER (i))
6615 || toupper (i) != TOUPPER (i))
6616 return 2;
6617 return 0;
6619 _ACEOF
6620 rm -f conftest$ac_exeext
6621 if { (ac_try="$ac_link"
6622 case "(($ac_try" in
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6625 esac
6626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627 (eval "$ac_link") 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6631 { (case "(($ac_try" in
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6634 esac
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636 (eval "$ac_try") 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6641 else
6642 echo "$as_me: program exited with status $ac_status" >&5
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ( exit $ac_status )
6647 ac_cv_header_stdc=no
6649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6655 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6656 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6657 if test $ac_cv_header_stdc = yes; then
6659 cat >>confdefs.h <<\_ACEOF
6660 #define STDC_HEADERS 1
6661 _ACEOF
6665 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6675 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6676 inttypes.h stdint.h unistd.h
6678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h. */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 $ac_includes_default
6692 #include <$ac_header>
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (ac_try="$ac_compile"
6696 case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699 esac
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_compile") 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && {
6708 test -z "$ac_c_werror_flag" ||
6709 test ! -s conftest.err
6710 } && test -s conftest.$ac_objext; then
6711 eval "$as_ac_Header=yes"
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 eval "$as_ac_Header=no"
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 ac_res=`eval echo '${'$as_ac_Header'}'`
6722 { echo "$as_me:$LINENO: result: $ac_res" >&5
6723 echo "${ECHO_T}$ac_res" >&6; }
6724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725 cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727 _ACEOF
6731 done
6843 for ac_header in \
6844 AudioUnit/AudioUnit.h \
6845 Carbon/Carbon.h \
6846 CoreAudio/CoreAudio.h \
6847 DiskArbitration/DiskArbitration.h \
6848 IOKit/IOKitLib.h \
6849 alsa/asoundlib.h \
6850 arpa/inet.h \
6851 arpa/nameser.h \
6852 asm/types.h \
6853 capi20.h \
6854 cups/cups.h \
6855 curses.h \
6856 direct.h \
6857 dlfcn.h \
6858 elf.h \
6859 float.h \
6860 fontconfig/fontconfig.h \
6861 getopt.h \
6862 ieeefp.h \
6863 io.h \
6864 jack/jack.h \
6865 jpeglib.h \
6866 lber.h \
6867 lcms.h \
6868 lcms/lcms.h \
6869 ldap.h \
6870 libaudioio.h \
6871 link.h \
6872 linux/cdrom.h \
6873 linux/compiler.h \
6874 linux/hdreg.h \
6875 linux/input.h \
6876 linux/ioctl.h \
6877 linux/joystick.h \
6878 linux/major.h \
6879 linux/param.h \
6880 linux/serial.h \
6881 linux/ucdrom.h \
6882 mach/mach.h \
6883 mach/machine.h \
6884 machine/cpu.h \
6885 machine/limits.h \
6886 machine/soundcard.h \
6887 mntent.h \
6888 ncurses.h \
6889 netdb.h \
6890 netinet/in.h \
6891 netinet/in_systm.h \
6892 netinet/tcp.h \
6893 netinet/tcp_fsm.h \
6894 openssl/err.h \
6895 openssl/ssl.h \
6896 poll.h \
6897 process.h \
6898 pthread.h \
6899 pwd.h \
6900 regex.h \
6901 sched.h \
6902 scsi/scsi.h \
6903 scsi/scsi_ioctl.h \
6904 scsi/sg.h \
6905 soundcard.h \
6906 stdint.h \
6907 strings.h \
6908 sys/asoundlib.h \
6909 sys/cdio.h \
6910 sys/elf32.h \
6911 sys/epoll.h \
6912 sys/errno.h \
6913 sys/event.h \
6914 sys/exec_elf.h \
6915 sys/filio.h \
6916 sys/ioctl.h \
6917 sys/ipc.h \
6918 sys/limits.h \
6919 sys/link.h \
6920 sys/lwp.h \
6921 sys/mman.h \
6922 sys/modem.h \
6923 sys/msg.h \
6924 sys/mtio.h \
6925 sys/param.h \
6926 sys/poll.h \
6927 sys/prctl.h \
6928 sys/ptrace.h \
6929 sys/reg.h \
6930 sys/resource.h \
6931 sys/scsiio.h \
6932 sys/shm.h \
6933 sys/signal.h \
6934 sys/socket.h \
6935 sys/sockio.h \
6936 sys/soundcard.h \
6937 sys/statvfs.h \
6938 sys/strtio.h \
6939 sys/syscall.h \
6940 sys/sysctl.h \
6941 sys/time.h \
6942 sys/times.h \
6943 sys/uio.h \
6944 sys/un.h \
6945 sys/vm86.h \
6946 sys/wait.h \
6947 syscall.h \
6948 termios.h \
6949 unicode/ubidi.h \
6950 unistd.h \
6951 utime.h \
6952 valgrind/memcheck.h
6955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 ac_res=`eval echo '${'$as_ac_Header'}'`
6963 { echo "$as_me:$LINENO: result: $ac_res" >&5
6964 echo "${ECHO_T}$ac_res" >&6; }
6965 else
6966 # Is the header compilable?
6967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 $ac_includes_default
6976 #include <$ac_header>
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (ac_try="$ac_compile"
6980 case "(($ac_try" in
6981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6983 esac
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6995 ac_header_compiler=yes
6996 else
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7000 ac_header_compiler=no
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7005 echo "${ECHO_T}$ac_header_compiler" >&6; }
7007 # Is the header present?
7008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7010 cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h. */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7016 #include <$ac_header>
7017 _ACEOF
7018 if { (ac_try="$ac_cpp conftest.$ac_ext"
7019 case "(($ac_try" in
7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021 *) ac_try_echo=$ac_try;;
7022 esac
7023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } >/dev/null && {
7031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7032 test ! -s conftest.err
7033 }; then
7034 ac_header_preproc=yes
7035 else
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7039 ac_header_preproc=no
7042 rm -f conftest.err conftest.$ac_ext
7043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7044 echo "${ECHO_T}$ac_header_preproc" >&6; }
7046 # So? What about this header?
7047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7048 yes:no: )
7049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7053 ac_header_preproc=yes
7055 no:yes:* )
7056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7068 ( cat <<\_ASBOX
7069 ## ------------------------------------ ##
7070 ## Report this to wine-devel@winehq.org ##
7071 ## ------------------------------------ ##
7072 _ASBOX
7073 ) | sed "s/^/$as_me: WARNING: /" >&2
7075 esac
7076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 eval "$as_ac_Header=\$ac_header_preproc"
7083 ac_res=`eval echo '${'$as_ac_Header'}'`
7084 { echo "$as_me:$LINENO: result: $ac_res" >&5
7085 echo "${ECHO_T}$ac_res" >&6; }
7088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7089 cat >>confdefs.h <<_ACEOF
7090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7091 _ACEOF
7095 done
7097 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7098 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7099 if test "${ac_cv_header_stat_broken+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #include <sys/types.h>
7109 #include <sys/stat.h>
7111 #if defined S_ISBLK && defined S_IFDIR
7112 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7113 #endif
7115 #if defined S_ISBLK && defined S_IFCHR
7116 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7117 #endif
7119 #if defined S_ISLNK && defined S_IFREG
7120 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7121 #endif
7123 #if defined S_ISSOCK && defined S_IFREG
7124 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7125 #endif
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7145 ac_cv_header_stat_broken=no
7146 else
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 ac_cv_header_stat_broken=yes
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7156 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7157 if test $ac_cv_header_stat_broken = yes; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define STAT_MACROS_BROKEN 1
7161 _ACEOF
7171 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179 cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h. */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185 #include <sys/types.h>
7186 #if HAVE_SYS_PARAM_H
7187 # include <sys/param.h>
7188 #endif
7190 #include <$ac_header>
7191 _ACEOF
7192 rm -f conftest.$ac_objext
7193 if { (ac_try="$ac_compile"
7194 case "(($ac_try" in
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7197 esac
7198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7199 (eval "$ac_compile") 2>conftest.er1
7200 ac_status=$?
7201 grep -v '^ *+' conftest.er1 >conftest.err
7202 rm -f conftest.er1
7203 cat conftest.err >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } && {
7206 test -z "$ac_c_werror_flag" ||
7207 test ! -s conftest.err
7208 } && test -s conftest.$ac_objext; then
7209 eval "$as_ac_Header=yes"
7210 else
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7214 eval "$as_ac_Header=no"
7217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 ac_res=`eval echo '${'$as_ac_Header'}'`
7220 { echo "$as_me:$LINENO: result: $ac_res" >&5
7221 echo "${ECHO_T}$ac_res" >&6; }
7222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7223 cat >>confdefs.h <<_ACEOF
7224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7225 _ACEOF
7229 done
7238 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
7240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 #include <sys/types.h>
7253 #if HAVE_SYS_SOCKET_H
7254 # include <sys/socket.h>
7255 #endif
7257 #include <$ac_header>
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7261 case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 eval "$as_ac_Header=yes"
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 eval "$as_ac_Header=no"
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 ac_res=`eval echo '${'$as_ac_Header'}'`
7287 { echo "$as_me:$LINENO: result: $ac_res" >&5
7288 echo "${ECHO_T}$ac_res" >&6; }
7289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7290 cat >>confdefs.h <<_ACEOF
7291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7292 _ACEOF
7296 done
7300 for ac_header in linux/ipx.h
7302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <sys/types.h>
7315 #ifdef HAVE_ASM_TYPES_H
7316 # include <asm/types.h>
7317 #endif
7318 #if HAVE_SYS_SOCKET_H
7319 # include <sys/socket.h>
7320 #endif
7322 #include <$ac_header>
7323 _ACEOF
7324 rm -f conftest.$ac_objext
7325 if { (ac_try="$ac_compile"
7326 case "(($ac_try" in
7327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328 *) ac_try_echo=$ac_try;;
7329 esac
7330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7331 (eval "$ac_compile") 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && {
7338 test -z "$ac_c_werror_flag" ||
7339 test ! -s conftest.err
7340 } && test -s conftest.$ac_objext; then
7341 eval "$as_ac_Header=yes"
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7346 eval "$as_ac_Header=no"
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 ac_res=`eval echo '${'$as_ac_Header'}'`
7352 { echo "$as_me:$LINENO: result: $ac_res" >&5
7353 echo "${ECHO_T}$ac_res" >&6; }
7354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7355 cat >>confdefs.h <<_ACEOF
7356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357 _ACEOF
7361 done
7365 for ac_header in resolv.h
7367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373 cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h. */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 #include <sys/types.h>
7380 #if HAVE_SYS_SOCKET_H
7381 # include <sys/socket.h>
7382 #endif
7383 #if HAVE_NETINET_IN_H
7384 # include <netinet/in.h>
7385 #endif
7386 #if HAVE_ARPA_NAMESER_H
7387 # include <arpa/nameser.h>
7388 #endif
7390 #include <$ac_header>
7391 _ACEOF
7392 rm -f conftest.$ac_objext
7393 if { (ac_try="$ac_compile"
7394 case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397 esac
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7409 eval "$as_ac_Header=yes"
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 eval "$as_ac_Header=no"
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 ac_res=`eval echo '${'$as_ac_Header'}'`
7420 { echo "$as_me:$LINENO: result: $ac_res" >&5
7421 echo "${ECHO_T}$ac_res" >&6; }
7422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7423 cat >>confdefs.h <<_ACEOF
7424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7425 _ACEOF
7429 done
7433 for ac_header in ucontext.h
7435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441 cat >conftest.$ac_ext <<_ACEOF
7442 /* confdefs.h. */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7447 #include <signal.h>
7449 #include <$ac_header>
7450 _ACEOF
7451 rm -f conftest.$ac_objext
7452 if { (ac_try="$ac_compile"
7453 case "(($ac_try" in
7454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455 *) ac_try_echo=$ac_try;;
7456 esac
7457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7458 (eval "$ac_compile") 2>conftest.er1
7459 ac_status=$?
7460 grep -v '^ *+' conftest.er1 >conftest.err
7461 rm -f conftest.er1
7462 cat conftest.err >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } && {
7465 test -z "$ac_c_werror_flag" ||
7466 test ! -s conftest.err
7467 } && test -s conftest.$ac_objext; then
7468 eval "$as_ac_Header=yes"
7469 else
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7473 eval "$as_ac_Header=no"
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 ac_res=`eval echo '${'$as_ac_Header'}'`
7479 { echo "$as_me:$LINENO: result: $ac_res" >&5
7480 echo "${ECHO_T}$ac_res" >&6; }
7481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7482 cat >>confdefs.h <<_ACEOF
7483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7484 _ACEOF
7488 done
7492 for ac_header in pthread_np.h
7494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500 cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h. */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 #ifdef HAVE_PTHREAD_H
7507 #include <pthread.h>
7508 #endif
7510 #include <$ac_header>
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7514 case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517 esac
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 eval "$as_ac_Header=yes"
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 eval "$as_ac_Header=no"
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 ac_res=`eval echo '${'$as_ac_Header'}'`
7540 { echo "$as_me:$LINENO: result: $ac_res" >&5
7541 echo "${ECHO_T}$ac_res" >&6; }
7542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7543 cat >>confdefs.h <<_ACEOF
7544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7545 _ACEOF
7549 done
7553 for ac_header in linux/videodev.h
7555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561 cat >conftest.$ac_ext <<_ACEOF
7562 /* confdefs.h. */
7563 _ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7567 #ifdef HAVE_SYS_TIME_H
7568 #include <sys/time.h>
7569 #endif
7570 #include <sys/types.h>
7571 #ifdef HAVE_ASM_TYPES_H
7572 #include <asm/types.h>
7573 #endif
7575 #include <$ac_header>
7576 _ACEOF
7577 rm -f conftest.$ac_objext
7578 if { (ac_try="$ac_compile"
7579 case "(($ac_try" in
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7582 esac
7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584 (eval "$ac_compile") 2>conftest.er1
7585 ac_status=$?
7586 grep -v '^ *+' conftest.er1 >conftest.err
7587 rm -f conftest.er1
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } && {
7591 test -z "$ac_c_werror_flag" ||
7592 test ! -s conftest.err
7593 } && test -s conftest.$ac_objext; then
7594 eval "$as_ac_Header=yes"
7595 else
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 eval "$as_ac_Header=no"
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 ac_res=`eval echo '${'$as_ac_Header'}'`
7605 { echo "$as_me:$LINENO: result: $ac_res" >&5
7606 echo "${ECHO_T}$ac_res" >&6; }
7607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7608 cat >>confdefs.h <<_ACEOF
7609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7610 _ACEOF
7614 done
7618 for ac_header in linux/capi.h
7620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626 cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h. */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 #define __user
7634 #include <$ac_header>
7635 _ACEOF
7636 rm -f conftest.$ac_objext
7637 if { (ac_try="$ac_compile"
7638 case "(($ac_try" in
7639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640 *) ac_try_echo=$ac_try;;
7641 esac
7642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 eval "$as_ac_Header=yes"
7654 else
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 eval "$as_ac_Header=no"
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 ac_res=`eval echo '${'$as_ac_Header'}'`
7664 { echo "$as_me:$LINENO: result: $ac_res" >&5
7665 echo "${ECHO_T}$ac_res" >&6; }
7666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7667 cat >>confdefs.h <<_ACEOF
7668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7669 _ACEOF
7673 done
7677 if test "$have_x" = "yes"
7678 then
7679 XLIB="-lXext -lX11"
7680 ac_save_CPPFLAGS="$CPPFLAGS"
7681 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7694 for ac_header in X11/Xlib.h \
7695 X11/XKBlib.h \
7696 X11/Xutil.h \
7697 X11/Xcursor/Xcursor.h \
7698 X11/extensions/shape.h \
7699 X11/extensions/XInput.h \
7700 X11/extensions/XShm.h \
7701 X11/extensions/Xinerama.h \
7702 X11/extensions/Xrandr.h \
7703 X11/extensions/Xrender.h \
7704 X11/extensions/xf86vmode.h
7706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h. */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 #ifdef HAVE_X11_XLIB_H
7719 # include <X11/Xlib.h>
7720 #endif
7721 #ifdef HAVE_X11_XUTIL_H
7722 # include <X11/Xutil.h>
7723 #endif
7725 #include <$ac_header>
7726 _ACEOF
7727 rm -f conftest.$ac_objext
7728 if { (ac_try="$ac_compile"
7729 case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732 esac
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_compile") 2>conftest.er1
7735 ac_status=$?
7736 grep -v '^ *+' conftest.er1 >conftest.err
7737 rm -f conftest.er1
7738 cat conftest.err >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && {
7741 test -z "$ac_c_werror_flag" ||
7742 test ! -s conftest.err
7743 } && test -s conftest.$ac_objext; then
7744 eval "$as_ac_Header=yes"
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7749 eval "$as_ac_Header=no"
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 ac_res=`eval echo '${'$as_ac_Header'}'`
7755 { echo "$as_me:$LINENO: result: $ac_res" >&5
7756 echo "${ECHO_T}$ac_res" >&6; }
7757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7758 cat >>confdefs.h <<_ACEOF
7759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7760 _ACEOF
7764 done
7767 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7768 then
7769 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7770 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
7771 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 ac_check_lib_save_LIBS=$LIBS
7775 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7776 cat >conftest.$ac_ext <<_ACEOF
7777 /* confdefs.h. */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7783 /* Override any GCC internal prototype to avoid an error.
7784 Use char because int might match the return type of a GCC
7785 builtin and then its argument prototype would still apply. */
7786 #ifdef __cplusplus
7787 extern "C"
7788 #endif
7789 char XkbQueryExtension ();
7791 main ()
7793 return XkbQueryExtension ();
7795 return 0;
7797 _ACEOF
7798 rm -f conftest.$ac_objext conftest$ac_exeext
7799 if { (ac_try="$ac_link"
7800 case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803 esac
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_link") 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && {
7812 test -z "$ac_c_werror_flag" ||
7813 test ! -s conftest.err
7814 } && test -s conftest$ac_exeext &&
7815 $as_test_x conftest$ac_exeext; then
7816 ac_cv_lib_X11_XkbQueryExtension=yes
7817 else
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 ac_cv_lib_X11_XkbQueryExtension=no
7824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7825 conftest$ac_exeext conftest.$ac_ext
7826 LIBS=$ac_check_lib_save_LIBS
7828 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7829 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
7830 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7832 cat >>confdefs.h <<\_ACEOF
7833 #define HAVE_XKB 1
7834 _ACEOF
7840 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7841 then
7842 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7843 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
7844 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847 ac_check_lib_save_LIBS=$LIBS
7848 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7849 cat >conftest.$ac_ext <<_ACEOF
7850 /* confdefs.h. */
7851 _ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7856 /* Override any GCC internal prototype to avoid an error.
7857 Use char because int might match the return type of a GCC
7858 builtin and then its argument prototype would still apply. */
7859 #ifdef __cplusplus
7860 extern "C"
7861 #endif
7862 char XShmQueryExtension ();
7864 main ()
7866 return XShmQueryExtension ();
7868 return 0;
7870 _ACEOF
7871 rm -f conftest.$ac_objext conftest$ac_exeext
7872 if { (ac_try="$ac_link"
7873 case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_link") 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && {
7885 test -z "$ac_c_werror_flag" ||
7886 test ! -s conftest.err
7887 } && test -s conftest$ac_exeext &&
7888 $as_test_x conftest$ac_exeext; then
7889 ac_cv_lib_Xext_XShmQueryExtension=yes
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 ac_cv_lib_Xext_XShmQueryExtension=no
7897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7898 conftest$ac_exeext conftest.$ac_ext
7899 LIBS=$ac_check_lib_save_LIBS
7901 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7902 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
7903 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7905 cat >>confdefs.h <<\_ACEOF
7906 #define HAVE_LIBXXSHM 1
7907 _ACEOF
7913 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7914 then
7915 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7916 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
7917 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920 ac_check_lib_save_LIBS=$LIBS
7921 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7929 /* Override any GCC internal prototype to avoid an error.
7930 Use char because int might match the return type of a GCC
7931 builtin and then its argument prototype would still apply. */
7932 #ifdef __cplusplus
7933 extern "C"
7934 #endif
7935 char XShapeQueryExtension ();
7937 main ()
7939 return XShapeQueryExtension ();
7941 return 0;
7943 _ACEOF
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (ac_try="$ac_link"
7946 case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_link") 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest$ac_exeext &&
7961 $as_test_x conftest$ac_exeext; then
7962 ac_cv_lib_Xext_XShapeQueryExtension=yes
7963 else
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 ac_cv_lib_Xext_XShapeQueryExtension=no
7970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7971 conftest$ac_exeext conftest.$ac_ext
7972 LIBS=$ac_check_lib_save_LIBS
7974 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7975 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
7976 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7978 cat >>confdefs.h <<\_ACEOF
7979 #define HAVE_LIBXSHAPE 1
7980 _ACEOF
7986 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7987 then
7988 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7989 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
7990 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 ac_check_lib_save_LIBS=$LIBS
7994 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7995 cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h. */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8002 /* Override any GCC internal prototype to avoid an error.
8003 Use char because int might match the return type of a GCC
8004 builtin and then its argument prototype would still apply. */
8005 #ifdef __cplusplus
8006 extern "C"
8007 #endif
8008 char XF86VidModeQueryExtension ();
8010 main ()
8012 return XF86VidModeQueryExtension ();
8014 return 0;
8016 _ACEOF
8017 rm -f conftest.$ac_objext conftest$ac_exeext
8018 if { (ac_try="$ac_link"
8019 case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8022 esac
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_link") 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest$ac_exeext &&
8034 $as_test_x conftest$ac_exeext; then
8035 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8036 else
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8040 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8044 conftest$ac_exeext conftest.$ac_ext
8045 LIBS=$ac_check_lib_save_LIBS
8047 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8048 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
8049 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8051 cat >>confdefs.h <<\_ACEOF
8052 #define HAVE_LIBXXF86VM 1
8053 _ACEOF
8055 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8061 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8062 then
8063 cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h. */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 #include <X11/Xlib.h>
8070 #include <X11/extensions/Xrandr.h>
8072 main ()
8074 static typeof(XRRSetScreenConfigAndRate) * func;
8076 return 0;
8078 _ACEOF
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8081 case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8084 esac
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_compile") 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } && {
8093 test -z "$ac_c_werror_flag" ||
8094 test ! -s conftest.err
8095 } && test -s conftest.$ac_objext; then
8097 cat >>confdefs.h <<\_ACEOF
8098 #define HAVE_LIBXRANDR 1
8099 _ACEOF
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8112 then
8113 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8114 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
8115 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118 ac_check_lib_save_LIBS=$LIBS
8119 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h. */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8127 /* Override any GCC internal prototype to avoid an error.
8128 Use char because int might match the return type of a GCC
8129 builtin and then its argument prototype would still apply. */
8130 #ifdef __cplusplus
8131 extern "C"
8132 #endif
8133 char XRenderSetPictureTransform ();
8135 main ()
8137 return XRenderSetPictureTransform ();
8139 return 0;
8141 _ACEOF
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (ac_try="$ac_link"
8144 case "(($ac_try" in
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8147 esac
8148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_link") 2>conftest.er1
8150 ac_status=$?
8151 grep -v '^ *+' conftest.er1 >conftest.err
8152 rm -f conftest.er1
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && {
8156 test -z "$ac_c_werror_flag" ||
8157 test ! -s conftest.err
8158 } && test -s conftest$ac_exeext &&
8159 $as_test_x conftest$ac_exeext; then
8160 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8169 conftest$ac_exeext conftest.$ac_ext
8170 LIBS=$ac_check_lib_save_LIBS
8172 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8173 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8174 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8176 cat >>confdefs.h <<\_ACEOF
8177 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8178 _ACEOF
8184 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8185 then
8186 cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h. */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 #include <X11/Xlib.h>
8193 #include <X11/extensions/Xinerama.h>
8195 main ()
8197 static typeof(XineramaQueryScreens) * func;
8199 return 0;
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8204 case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest.$ac_objext; then
8220 cat >>confdefs.h <<\_ACEOF
8221 #define HAVE_LIBXINERAMA 1
8222 _ACEOF
8224 else
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 if test "x$with_opengl" != "xno"
8236 then
8241 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
8243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 else
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 #ifdef HAVE_GL_GLX_H
8256 # include <GL/glx.h>
8257 #endif
8259 #include <$ac_header>
8260 _ACEOF
8261 rm -f conftest.$ac_objext
8262 if { (ac_try="$ac_compile"
8263 case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.$ac_objext; then
8278 eval "$as_ac_Header=yes"
8279 else
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 eval "$as_ac_Header=no"
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 ac_res=`eval echo '${'$as_ac_Header'}'`
8289 { echo "$as_me:$LINENO: result: $ac_res" >&5
8290 echo "${ECHO_T}$ac_res" >&6; }
8291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8292 cat >>confdefs.h <<_ACEOF
8293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8294 _ACEOF
8298 done
8300 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8301 then
8302 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8303 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
8304 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307 cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h. */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8313 #include <GL/gl.h>
8315 main ()
8317 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8319 return 0;
8321 _ACEOF
8322 rm -f conftest.$ac_objext
8323 if { (ac_try="$ac_compile"
8324 case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327 esac
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_compile") 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } && {
8336 test -z "$ac_c_werror_flag" ||
8337 test ! -s conftest.err
8338 } && test -s conftest.$ac_objext; then
8339 wine_cv_opengl_header_version_OK="yes"
8340 else
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 wine_cv_opengl_header_version_OK="no"
8347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
8350 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
8352 if test "$wine_cv_opengl_header_version_OK" = "yes"
8353 then
8354 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8355 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
8356 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359 ac_check_lib_save_LIBS=$LIBS
8360 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8361 cat >conftest.$ac_ext <<_ACEOF
8362 /* confdefs.h. */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8368 /* Override any GCC internal prototype to avoid an error.
8369 Use char because int might match the return type of a GCC
8370 builtin and then its argument prototype would still apply. */
8371 #ifdef __cplusplus
8372 extern "C"
8373 #endif
8374 char glXCreateContext ();
8376 main ()
8378 return glXCreateContext ();
8380 return 0;
8382 _ACEOF
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (ac_try="$ac_link"
8385 case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8388 esac
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_link") 2>conftest.er1
8391 ac_status=$?
8392 grep -v '^ *+' conftest.er1 >conftest.err
8393 rm -f conftest.er1
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest$ac_exeext &&
8400 $as_test_x conftest$ac_exeext; then
8401 ac_cv_lib_GL_glXCreateContext=yes
8402 else
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8406 ac_cv_lib_GL_glXCreateContext=no
8409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8410 conftest$ac_exeext conftest.$ac_ext
8411 LIBS=$ac_check_lib_save_LIBS
8413 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8414 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
8415 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8416 OPENGL_LIBS="-lGL"
8417 OPENGLFILES='$(OPENGLFILES)'
8419 cat >>confdefs.h <<\_ACEOF
8420 #define HAVE_OPENGL 1
8421 _ACEOF
8427 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8428 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
8429 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432 ac_check_lib_save_LIBS=$LIBS
8433 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8434 $LIBS"
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8442 /* Override any GCC internal prototype to avoid an error.
8443 Use char because int might match the return type of a GCC
8444 builtin and then its argument prototype would still apply. */
8445 #ifdef __cplusplus
8446 extern "C"
8447 #endif
8448 char gluLookAt ();
8450 main ()
8452 return gluLookAt ();
8454 return 0;
8456 _ACEOF
8457 rm -f conftest.$ac_objext conftest$ac_exeext
8458 if { (ac_try="$ac_link"
8459 case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_link") 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_c_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest$ac_exeext &&
8474 $as_test_x conftest$ac_exeext; then
8475 ac_cv_lib_GLU_gluLookAt=yes
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_cv_lib_GLU_gluLookAt=no
8483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8484 conftest$ac_exeext conftest.$ac_ext
8485 LIBS=$ac_check_lib_save_LIBS
8487 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8488 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
8489 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8490 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8491 GLU32FILES='$(GLU32FILES)'
8496 else
8497 wine_cv_opengl_headers_found="no"
8500 NASLIBS=""
8503 for ac_header in audio/audiolib.h
8505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 ac_res=`eval echo '${'$as_ac_Header'}'`
8513 { echo "$as_me:$LINENO: result: $ac_res" >&5
8514 echo "${ECHO_T}$ac_res" >&6; }
8515 else
8516 # Is the header compilable?
8517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525 $ac_includes_default
8526 #include <$ac_header>
8527 _ACEOF
8528 rm -f conftest.$ac_objext
8529 if { (ac_try="$ac_compile"
8530 case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533 esac
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_compile") 2>conftest.er1
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } && {
8542 test -z "$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest.$ac_objext; then
8545 ac_header_compiler=yes
8546 else
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 ac_header_compiler=no
8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8555 echo "${ECHO_T}$ac_header_compiler" >&6; }
8557 # Is the header present?
8558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8560 cat >conftest.$ac_ext <<_ACEOF
8561 /* confdefs.h. */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 #include <$ac_header>
8567 _ACEOF
8568 if { (ac_try="$ac_cpp conftest.$ac_ext"
8569 case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } >/dev/null && {
8581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8582 test ! -s conftest.err
8583 }; then
8584 ac_header_preproc=yes
8585 else
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8589 ac_header_preproc=no
8592 rm -f conftest.err conftest.$ac_ext
8593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8594 echo "${ECHO_T}$ac_header_preproc" >&6; }
8596 # So? What about this header?
8597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8598 yes:no: )
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8603 ac_header_preproc=yes
8605 no:yes:* )
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8618 ( cat <<\_ASBOX
8619 ## ------------------------------------ ##
8620 ## Report this to wine-devel@winehq.org ##
8621 ## ------------------------------------ ##
8622 _ASBOX
8623 ) | sed "s/^/$as_me: WARNING: /" >&2
8625 esac
8626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 else
8631 eval "$as_ac_Header=\$ac_header_preproc"
8633 ac_res=`eval echo '${'$as_ac_Header'}'`
8634 { echo "$as_me:$LINENO: result: $ac_res" >&5
8635 echo "${ECHO_T}$ac_res" >&6; }
8638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8639 cat >>confdefs.h <<_ACEOF
8640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8641 _ACEOF
8643 for ac_header in audio/soundlib.h
8645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 #include <audio/audiolib.h>
8659 #include <$ac_header>
8660 _ACEOF
8661 rm -f conftest.$ac_objext
8662 if { (ac_try="$ac_compile"
8663 case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8669 ac_status=$?
8670 grep -v '^ *+' conftest.er1 >conftest.err
8671 rm -f conftest.er1
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 eval "$as_ac_Header=yes"
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 eval "$as_ac_Header=no"
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688 ac_res=`eval echo '${'$as_ac_Header'}'`
8689 { echo "$as_me:$LINENO: result: $ac_res" >&5
8690 echo "${ECHO_T}$ac_res" >&6; }
8691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8692 cat >>confdefs.h <<_ACEOF
8693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8694 _ACEOF
8698 done
8700 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8701 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
8702 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705 ac_check_lib_save_LIBS=$LIBS
8706 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8707 cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h. */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8717 #ifdef __cplusplus
8718 extern "C"
8719 #endif
8720 char AuCreateFlow ();
8722 main ()
8724 return AuCreateFlow ();
8726 return 0;
8728 _ACEOF
8729 rm -f conftest.$ac_objext conftest$ac_exeext
8730 if { (ac_try="$ac_link"
8731 case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734 esac
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_link") 2>conftest.er1
8737 ac_status=$?
8738 grep -v '^ *+' conftest.er1 >conftest.err
8739 rm -f conftest.er1
8740 cat conftest.err >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest$ac_exeext &&
8746 $as_test_x conftest$ac_exeext; then
8747 ac_cv_lib_audio_AuCreateFlow=yes
8748 else
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 ac_cv_lib_audio_AuCreateFlow=no
8755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8756 conftest$ac_exeext conftest.$ac_ext
8757 LIBS=$ac_check_lib_save_LIBS
8759 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8760 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
8761 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8763 cat >>confdefs.h <<\_ACEOF
8764 #define HAVE_NAS 1
8765 _ACEOF
8767 { echo "$as_me:$LINENO: checking for XauGetBestAuthByAddr in -lXau" >&5
8768 echo $ECHO_N "checking for XauGetBestAuthByAddr in -lXau... $ECHO_C" >&6; }
8769 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772 ac_check_lib_save_LIBS=$LIBS
8773 LIBS="-lXau $X_LIBS $LIBS"
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8781 /* Override any GCC internal prototype to avoid an error.
8782 Use char because int might match the return type of a GCC
8783 builtin and then its argument prototype would still apply. */
8784 #ifdef __cplusplus
8785 extern "C"
8786 #endif
8787 char XauGetBestAuthByAddr ();
8789 main ()
8791 return XauGetBestAuthByAddr ();
8793 return 0;
8795 _ACEOF
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (ac_try="$ac_link"
8798 case "(($ac_try" in
8799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800 *) ac_try_echo=$ac_try;;
8801 esac
8802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803 (eval "$ac_link") 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } && {
8810 test -z "$ac_c_werror_flag" ||
8811 test ! -s conftest.err
8812 } && test -s conftest$ac_exeext &&
8813 $as_test_x conftest$ac_exeext; then
8814 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
8822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8823 conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_lib_save_LIBS
8826 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
8827 echo "${ECHO_T}$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
8828 if test $ac_cv_lib_Xau_XauGetBestAuthByAddr = yes; then
8829 NASLIBS="-lXau -laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8830 else
8831 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8839 done
8842 CPPFLAGS="$ac_save_CPPFLAGS"
8843 XFILES='$(XFILES)'
8844 else
8845 XLIB=""
8846 X_CFLAGS=""
8847 X_LIBS=""
8851 XML2LIBS=""
8853 XML2INCL=""
8855 XSLTLIBS=""
8857 XSLTINCL=""
8859 if test "$PKG_CONFIG" != "false"
8860 then
8861 ac_save_CPPFLAGS="$CPPFLAGS"
8862 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8863 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8864 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8866 for ac_header in libxml/parser.h
8868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 ac_res=`eval echo '${'$as_ac_Header'}'`
8876 { echo "$as_me:$LINENO: result: $ac_res" >&5
8877 echo "${ECHO_T}$ac_res" >&6; }
8878 else
8879 # Is the header compilable?
8880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8882 cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h. */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 $ac_includes_default
8889 #include <$ac_header>
8890 _ACEOF
8891 rm -f conftest.$ac_objext
8892 if { (ac_try="$ac_compile"
8893 case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896 esac
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_compile") 2>conftest.er1
8899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } && {
8905 test -z "$ac_c_werror_flag" ||
8906 test ! -s conftest.err
8907 } && test -s conftest.$ac_objext; then
8908 ac_header_compiler=yes
8909 else
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ac_header_compiler=no
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8918 echo "${ECHO_T}$ac_header_compiler" >&6; }
8920 # Is the header present?
8921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 #include <$ac_header>
8930 _ACEOF
8931 if { (ac_try="$ac_cpp conftest.$ac_ext"
8932 case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935 esac
8936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8938 ac_status=$?
8939 grep -v '^ *+' conftest.er1 >conftest.err
8940 rm -f conftest.er1
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } >/dev/null && {
8944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8945 test ! -s conftest.err
8946 }; then
8947 ac_header_preproc=yes
8948 else
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 ac_header_preproc=no
8955 rm -f conftest.err conftest.$ac_ext
8956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8957 echo "${ECHO_T}$ac_header_preproc" >&6; }
8959 # So? What about this header?
8960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8961 yes:no: )
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8966 ac_header_preproc=yes
8968 no:yes:* )
8969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8981 ( cat <<\_ASBOX
8982 ## ------------------------------------ ##
8983 ## Report this to wine-devel@winehq.org ##
8984 ## ------------------------------------ ##
8985 _ASBOX
8986 ) | sed "s/^/$as_me: WARNING: /" >&2
8988 esac
8989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994 eval "$as_ac_Header=\$ac_header_preproc"
8996 ac_res=`eval echo '${'$as_ac_Header'}'`
8997 { echo "$as_me:$LINENO: result: $ac_res" >&5
8998 echo "${ECHO_T}$ac_res" >&6; }
9001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9002 cat >>confdefs.h <<_ACEOF
9003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9004 _ACEOF
9005 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
9006 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
9007 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010 ac_check_lib_save_LIBS=$LIBS
9011 LIBS="-lxml2 $ac_xml_libs $LIBS"
9012 cat >conftest.$ac_ext <<_ACEOF
9013 /* confdefs.h. */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9019 /* Override any GCC internal prototype to avoid an error.
9020 Use char because int might match the return type of a GCC
9021 builtin and then its argument prototype would still apply. */
9022 #ifdef __cplusplus
9023 extern "C"
9024 #endif
9025 char xmlParseMemory ();
9027 main ()
9029 return xmlParseMemory ();
9031 return 0;
9033 _ACEOF
9034 rm -f conftest.$ac_objext conftest$ac_exeext
9035 if { (ac_try="$ac_link"
9036 case "(($ac_try" in
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9039 esac
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041 (eval "$ac_link") 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && {
9048 test -z "$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 } && test -s conftest$ac_exeext &&
9051 $as_test_x conftest$ac_exeext; then
9052 ac_cv_lib_xml2_xmlParseMemory=yes
9053 else
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9057 ac_cv_lib_xml2_xmlParseMemory=no
9060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9061 conftest$ac_exeext conftest.$ac_ext
9062 LIBS=$ac_check_lib_save_LIBS
9064 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9065 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9066 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
9068 cat >>confdefs.h <<\_ACEOF
9069 #define HAVE_LIBXML2 1
9070 _ACEOF
9072 XML2LIBS="$ac_xml_libs"
9073 XML2INCL="$ac_xml_cflags"
9076 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
9077 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
9078 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 else
9081 ac_check_lib_save_LIBS=$LIBS
9082 LIBS="-lxml2 $ac_xml_libs $LIBS"
9083 cat >conftest.$ac_ext <<_ACEOF
9084 /* confdefs.h. */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9090 /* Override any GCC internal prototype to avoid an error.
9091 Use char because int might match the return type of a GCC
9092 builtin and then its argument prototype would still apply. */
9093 #ifdef __cplusplus
9094 extern "C"
9095 #endif
9096 char xmlReadMemory ();
9098 main ()
9100 return xmlReadMemory ();
9102 return 0;
9104 _ACEOF
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (ac_try="$ac_link"
9107 case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110 esac
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_link") 2>conftest.er1
9113 ac_status=$?
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } && {
9119 test -z "$ac_c_werror_flag" ||
9120 test ! -s conftest.err
9121 } && test -s conftest$ac_exeext &&
9122 $as_test_x conftest$ac_exeext; then
9123 ac_cv_lib_xml2_xmlReadMemory=yes
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 ac_cv_lib_xml2_xmlReadMemory=no
9131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9132 conftest$ac_exeext conftest.$ac_ext
9133 LIBS=$ac_check_lib_save_LIBS
9135 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9136 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9137 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
9139 cat >>confdefs.h <<\_ACEOF
9140 #define HAVE_XMLREADMEMORY 1
9141 _ACEOF
9145 { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
9146 echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
9147 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150 ac_check_lib_save_LIBS=$LIBS
9151 LIBS="-lxml2 $ac_xml_libs $LIBS"
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9159 /* Override any GCC internal prototype to avoid an error.
9160 Use char because int might match the return type of a GCC
9161 builtin and then its argument prototype would still apply. */
9162 #ifdef __cplusplus
9163 extern "C"
9164 #endif
9165 char xmlNewDocPI ();
9167 main ()
9169 return xmlNewDocPI ();
9171 return 0;
9173 _ACEOF
9174 rm -f conftest.$ac_objext conftest$ac_exeext
9175 if { (ac_try="$ac_link"
9176 case "(($ac_try" in
9177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178 *) ac_try_echo=$ac_try;;
9179 esac
9180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181 (eval "$ac_link") 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } && {
9188 test -z "$ac_c_werror_flag" ||
9189 test ! -s conftest.err
9190 } && test -s conftest$ac_exeext &&
9191 $as_test_x conftest$ac_exeext; then
9192 ac_cv_lib_xml2_xmlNewDocPI=yes
9193 else
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 ac_cv_lib_xml2_xmlNewDocPI=no
9200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9201 conftest$ac_exeext conftest.$ac_ext
9202 LIBS=$ac_check_lib_save_LIBS
9204 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9205 echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9206 if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
9208 cat >>confdefs.h <<\_ACEOF
9209 #define HAVE_XMLNEWDOCPI 1
9210 _ACEOF
9217 done
9219 CPPFLAGS="$ac_save_CPPFLAGS"
9220 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9221 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9222 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9225 for ac_header in libxslt/pattern.h libxslt/transform.h
9227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233 cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h. */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9239 #ifdef HAVE_LIBXSLT_PATTERN_H
9240 # include <libxslt/pattern.h>
9241 #endif
9243 #include <$ac_header>
9244 _ACEOF
9245 rm -f conftest.$ac_objext
9246 if { (ac_try="$ac_compile"
9247 case "(($ac_try" in
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9250 esac
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_compile") 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } && {
9259 test -z "$ac_c_werror_flag" ||
9260 test ! -s conftest.err
9261 } && test -s conftest.$ac_objext; then
9262 eval "$as_ac_Header=yes"
9263 else
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 eval "$as_ac_Header=no"
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 ac_res=`eval echo '${'$as_ac_Header'}'`
9273 { echo "$as_me:$LINENO: result: $ac_res" >&5
9274 echo "${ECHO_T}$ac_res" >&6; }
9275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9276 cat >>confdefs.h <<_ACEOF
9277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9278 _ACEOF
9279 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
9280 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
9281 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284 ac_check_lib_save_LIBS=$LIBS
9285 LIBS="-lxslt $ac_xslt_libs $LIBS"
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h. */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9293 /* Override any GCC internal prototype to avoid an error.
9294 Use char because int might match the return type of a GCC
9295 builtin and then its argument prototype would still apply. */
9296 #ifdef __cplusplus
9297 extern "C"
9298 #endif
9299 char xsltCompilePattern ();
9301 main ()
9303 return xsltCompilePattern ();
9305 return 0;
9307 _ACEOF
9308 rm -f conftest.$ac_objext conftest$ac_exeext
9309 if { (ac_try="$ac_link"
9310 case "(($ac_try" in
9311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312 *) ac_try_echo=$ac_try;;
9313 esac
9314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_link") 2>conftest.er1
9316 ac_status=$?
9317 grep -v '^ *+' conftest.er1 >conftest.err
9318 rm -f conftest.er1
9319 cat conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } && {
9322 test -z "$ac_c_werror_flag" ||
9323 test ! -s conftest.err
9324 } && test -s conftest$ac_exeext &&
9325 $as_test_x conftest$ac_exeext; then
9326 ac_cv_lib_xslt_xsltCompilePattern=yes
9327 else
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ac_cv_lib_xslt_xsltCompilePattern=no
9334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335 conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9338 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
9339 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
9340 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
9342 cat >>confdefs.h <<\_ACEOF
9343 #define HAVE_LIBXSLT 1
9344 _ACEOF
9346 XSLTLIBS="$ac_xslt_libs"
9347 XSLTINCL="$ac_xslt_cflags"
9353 done
9355 CPPFLAGS="$ac_save_CPPFLAGS"
9358 HALINCL=""
9360 if test "$PKG_CONFIG" != "false"
9361 then
9362 ac_save_CPPFLAGS="$CPPFLAGS"
9363 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9364 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9365 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9368 for ac_header in dbus/dbus.h hal/libhal.h
9370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 ac_res=`eval echo '${'$as_ac_Header'}'`
9378 { echo "$as_me:$LINENO: result: $ac_res" >&5
9379 echo "${ECHO_T}$ac_res" >&6; }
9380 else
9381 # Is the header compilable?
9382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9384 cat >conftest.$ac_ext <<_ACEOF
9385 /* confdefs.h. */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9390 $ac_includes_default
9391 #include <$ac_header>
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (ac_try="$ac_compile"
9395 case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_compile") 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && {
9407 test -z "$ac_c_werror_flag" ||
9408 test ! -s conftest.err
9409 } && test -s conftest.$ac_objext; then
9410 ac_header_compiler=yes
9411 else
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9415 ac_header_compiler=no
9418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9420 echo "${ECHO_T}$ac_header_compiler" >&6; }
9422 # Is the header present?
9423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 #include <$ac_header>
9432 _ACEOF
9433 if { (ac_try="$ac_cpp conftest.$ac_ext"
9434 case "(($ac_try" in
9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436 *) ac_try_echo=$ac_try;;
9437 esac
9438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9440 ac_status=$?
9441 grep -v '^ *+' conftest.er1 >conftest.err
9442 rm -f conftest.er1
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } >/dev/null && {
9446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9447 test ! -s conftest.err
9448 }; then
9449 ac_header_preproc=yes
9450 else
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9454 ac_header_preproc=no
9457 rm -f conftest.err conftest.$ac_ext
9458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9459 echo "${ECHO_T}$ac_header_preproc" >&6; }
9461 # So? What about this header?
9462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9463 yes:no: )
9464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9468 ac_header_preproc=yes
9470 no:yes:* )
9471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9483 ( cat <<\_ASBOX
9484 ## ------------------------------------ ##
9485 ## Report this to wine-devel@winehq.org ##
9486 ## ------------------------------------ ##
9487 _ASBOX
9488 ) | sed "s/^/$as_me: WARNING: /" >&2
9490 esac
9491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496 eval "$as_ac_Header=\$ac_header_preproc"
9498 ac_res=`eval echo '${'$as_ac_Header'}'`
9499 { echo "$as_me:$LINENO: result: $ac_res" >&5
9500 echo "${ECHO_T}$ac_res" >&6; }
9503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9504 cat >>confdefs.h <<_ACEOF
9505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9506 _ACEOF
9510 done
9512 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9513 then
9514 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
9515 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
9516 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519 ac_check_lib_save_LIBS=$LIBS
9520 LIBS="-lhal $LIBS"
9521 cat >conftest.$ac_ext <<_ACEOF
9522 /* confdefs.h. */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9528 /* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9531 #ifdef __cplusplus
9532 extern "C"
9533 #endif
9534 char libhal_ctx_new ();
9536 main ()
9538 return libhal_ctx_new ();
9540 return 0;
9542 _ACEOF
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9545 case "(($ac_try" in
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9548 esac
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && {
9557 test -z "$ac_c_werror_flag" ||
9558 test ! -s conftest.err
9559 } && test -s conftest$ac_exeext &&
9560 $as_test_x conftest$ac_exeext; then
9561 ac_cv_lib_hal_libhal_ctx_new=yes
9562 else
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9566 ac_cv_lib_hal_libhal_ctx_new=no
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9571 LIBS=$ac_check_lib_save_LIBS
9573 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
9574 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
9575 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
9576 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
9577 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
9578 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581 ac_check_lib_save_LIBS=$LIBS
9582 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9583 cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h. */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9590 /* Override any GCC internal prototype to avoid an error.
9591 Use char because int might match the return type of a GCC
9592 builtin and then its argument prototype would still apply. */
9593 #ifdef __cplusplus
9594 extern "C"
9595 #endif
9596 char dbus_connection_close ();
9598 main ()
9600 return dbus_connection_close ();
9602 return 0;
9604 _ACEOF
9605 rm -f conftest.$ac_objext conftest$ac_exeext
9606 if { (ac_try="$ac_link"
9607 case "(($ac_try" in
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9610 esac
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_link") 2>conftest.er1
9613 ac_status=$?
9614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } && {
9619 test -z "$ac_c_werror_flag" ||
9620 test ! -s conftest.err
9621 } && test -s conftest$ac_exeext &&
9622 $as_test_x conftest$ac_exeext; then
9623 ac_cv_lib_dbus_1_dbus_connection_close=yes
9624 else
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 ac_cv_lib_dbus_1_dbus_connection_close=no
9631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9632 conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_check_lib_save_LIBS
9635 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9636 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9637 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
9639 cat >>confdefs.h <<\_ACEOF
9640 #define HAVE_LIBHAL 1
9641 _ACEOF
9643 HALINCL="$ac_hal_cflags"
9649 CPPFLAGS="$ac_save_CPPFLAGS"
9652 CURSESLIBS=""
9653 if test "$ac_cv_header_ncurses_h" = "yes"
9654 then
9655 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9656 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
9657 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660 ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-lncurses $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9672 #ifdef __cplusplus
9673 extern "C"
9674 #endif
9675 char waddch ();
9677 main ()
9679 return waddch ();
9681 return 0;
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9686 case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_link") 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && {
9698 test -z "$ac_c_werror_flag" ||
9699 test ! -s conftest.err
9700 } && test -s conftest$ac_exeext &&
9701 $as_test_x conftest$ac_exeext; then
9702 ac_cv_lib_ncurses_waddch=yes
9703 else
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 ac_cv_lib_ncurses_waddch=no
9710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9711 conftest$ac_exeext conftest.$ac_ext
9712 LIBS=$ac_check_lib_save_LIBS
9714 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9715 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
9716 if test $ac_cv_lib_ncurses_waddch = yes; then
9717 CURSESLIBS="-lncurses"
9720 elif test "$ac_cv_header_curses_h" = "yes"
9721 then
9722 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9723 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
9724 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727 ac_check_lib_save_LIBS=$LIBS
9728 LIBS="-lcurses $LIBS"
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h. */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9736 /* Override any GCC internal prototype to avoid an error.
9737 Use char because int might match the return type of a GCC
9738 builtin and then its argument prototype would still apply. */
9739 #ifdef __cplusplus
9740 extern "C"
9741 #endif
9742 char waddch ();
9744 main ()
9746 return waddch ();
9748 return 0;
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (ac_try="$ac_link"
9753 case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9756 esac
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_link") 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } && {
9765 test -z "$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9767 } && test -s conftest$ac_exeext &&
9768 $as_test_x conftest$ac_exeext; then
9769 ac_cv_lib_curses_waddch=yes
9770 else
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9774 ac_cv_lib_curses_waddch=no
9777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9778 conftest$ac_exeext conftest.$ac_ext
9779 LIBS=$ac_check_lib_save_LIBS
9781 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9782 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
9783 if test $ac_cv_lib_curses_waddch = yes; then
9784 CURSESLIBS="-lcurses"
9788 ac_save_LIBS="$LIBS"
9789 LIBS="$LIBS $CURSESLIBS"
9791 for ac_func in mousemask
9793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799 cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h. */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9807 #define $ac_func innocuous_$ac_func
9809 /* System header to define __stub macros and hopefully few prototypes,
9810 which can conflict with char $ac_func (); below.
9811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812 <limits.h> exists even on freestanding compilers. */
9814 #ifdef __STDC__
9815 # include <limits.h>
9816 #else
9817 # include <assert.h>
9818 #endif
9820 #undef $ac_func
9822 /* Override any GCC internal prototype to avoid an error.
9823 Use char because int might match the return type of a GCC
9824 builtin and then its argument prototype would still apply. */
9825 #ifdef __cplusplus
9826 extern "C"
9827 #endif
9828 char $ac_func ();
9829 /* The GNU C library defines this for functions which it implements
9830 to always fail with ENOSYS. Some functions are actually named
9831 something starting with __ and the normal name is an alias. */
9832 #if defined __stub_$ac_func || defined __stub___$ac_func
9833 choke me
9834 #endif
9837 main ()
9839 return $ac_func ();
9841 return 0;
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } && {
9858 test -z "$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9860 } && test -s conftest$ac_exeext &&
9861 $as_test_x conftest$ac_exeext; then
9862 eval "$as_ac_var=yes"
9863 else
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 eval "$as_ac_var=no"
9870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9871 conftest$ac_exeext conftest.$ac_ext
9873 ac_res=`eval echo '${'$as_ac_var'}'`
9874 { echo "$as_me:$LINENO: result: $ac_res" >&5
9875 echo "${ECHO_T}$ac_res" >&6; }
9876 if test `eval echo '${'$as_ac_var'}'` = yes; then
9877 cat >>confdefs.h <<_ACEOF
9878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9879 _ACEOF
9882 done
9884 LIBS="$ac_save_LIBS"
9886 # Extract the first word of "sane-config", so it can be a program name with args.
9887 set dummy sane-config; ac_word=$2
9888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9890 if test "${ac_cv_prog_sane_devel+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 if test -n "$sane_devel"; then
9894 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9895 else
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9903 ac_cv_prog_sane_devel="sane-config"
9904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 break 2
9907 done
9908 done
9909 IFS=$as_save_IFS
9911 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9914 sane_devel=$ac_cv_prog_sane_devel
9915 if test -n "$sane_devel"; then
9916 { echo "$as_me:$LINENO: result: $sane_devel" >&5
9917 echo "${ECHO_T}$sane_devel" >&6; }
9918 else
9919 { echo "$as_me:$LINENO: result: no" >&5
9920 echo "${ECHO_T}no" >&6; }
9924 SANEINCL=""
9926 if test "$sane_devel" != "no"
9927 then
9928 SANEINCL="`$sane_devel --cflags`"
9929 ac_save_CPPFLAGS="$CPPFLAGS"
9930 CPPFLAGS="$CPPFLAGS $SANEINCL"
9931 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9932 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9933 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
9934 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9938 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
9939 else
9940 # Is the header compilable?
9941 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9942 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h. */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 $ac_includes_default
9950 #include <sane/sane.h>
9951 _ACEOF
9952 rm -f conftest.$ac_objext
9953 if { (ac_try="$ac_compile"
9954 case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_compile") 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest.$ac_objext; then
9969 ac_header_compiler=yes
9970 else
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 ac_header_compiler=no
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9979 echo "${ECHO_T}$ac_header_compiler" >&6; }
9981 # Is the header present?
9982 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9983 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 #include <sane/sane.h>
9991 _ACEOF
9992 if { (ac_try="$ac_cpp conftest.$ac_ext"
9993 case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } >/dev/null && {
10005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 }; then
10008 ac_header_preproc=yes
10009 else
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_header_preproc=no
10016 rm -f conftest.err conftest.$ac_ext
10017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10018 echo "${ECHO_T}$ac_header_preproc" >&6; }
10020 # So? What about this header?
10021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10022 yes:no: )
10023 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10024 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10025 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10026 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10027 ac_header_preproc=yes
10029 no:yes:* )
10030 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10031 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10032 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10033 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10034 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10035 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10037 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10038 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10039 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10040 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10041 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10042 ( cat <<\_ASBOX
10043 ## ------------------------------------ ##
10044 ## Report this to wine-devel@winehq.org ##
10045 ## ------------------------------------ ##
10046 _ASBOX
10047 ) | sed "s/^/$as_me: WARNING: /" >&2
10049 esac
10050 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10051 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10052 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055 ac_cv_header_sane_sane_h=$ac_header_preproc
10057 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10058 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10061 if test $ac_cv_header_sane_sane_h = yes; then
10063 cat >>confdefs.h <<\_ACEOF
10064 #define HAVE_SANE 1
10065 _ACEOF
10067 else
10068 SANEINCL=""
10072 CPPFLAGS="$ac_save_CPPFLAGS"
10075 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10076 set dummy gphoto2-config; ac_word=$2
10077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10079 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082 if test -n "$gphoto2_devel"; then
10083 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10084 else
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10088 IFS=$as_save_IFS
10089 test -z "$as_dir" && as_dir=.
10090 for ac_exec_ext in '' $ac_executable_extensions; do
10091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10092 ac_cv_prog_gphoto2_devel="gphoto2-config"
10093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10094 break 2
10096 done
10097 done
10098 IFS=$as_save_IFS
10100 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10103 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10104 if test -n "$gphoto2_devel"; then
10105 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
10106 echo "${ECHO_T}$gphoto2_devel" >&6; }
10107 else
10108 { echo "$as_me:$LINENO: result: no" >&5
10109 echo "${ECHO_T}no" >&6; }
10113 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10114 set dummy gphoto2-port-config; ac_word=$2
10115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10117 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120 if test -n "$gphoto2port_devel"; then
10121 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10122 else
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10126 IFS=$as_save_IFS
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10130 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10132 break 2
10134 done
10135 done
10136 IFS=$as_save_IFS
10138 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10141 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10142 if test -n "$gphoto2port_devel"; then
10143 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
10144 echo "${ECHO_T}$gphoto2port_devel" >&6; }
10145 else
10146 { echo "$as_me:$LINENO: result: no" >&5
10147 echo "${ECHO_T}no" >&6; }
10151 GPHOTO2LIBS=""
10153 GPHOTO2INCL=""
10155 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10156 then
10157 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10158 GPHOTO2LIBS=""
10159 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10161 case "$i" in
10162 -L/usr/lib|-L/usr/lib64) ;;
10163 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
10164 esac
10165 done
10166 ac_save_CPPFLAGS="$CPPFLAGS"
10167 ac_save_LIBS="$LIBS"
10168 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
10169 LIBS="$LIBS $GPHOTO2LIBS"
10170 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10171 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10172 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10173 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10177 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10178 else
10179 # Is the header compilable?
10180 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
10181 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
10182 cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h. */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 $ac_includes_default
10189 #include <gphoto2-camera.h>
10190 _ACEOF
10191 rm -f conftest.$ac_objext
10192 if { (ac_try="$ac_compile"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_compile") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest.$ac_objext; then
10208 ac_header_compiler=yes
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_header_compiler=no
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10218 echo "${ECHO_T}$ac_header_compiler" >&6; }
10220 # Is the header present?
10221 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
10222 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 #include <gphoto2-camera.h>
10230 _ACEOF
10231 if { (ac_try="$ac_cpp conftest.$ac_ext"
10232 case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } >/dev/null && {
10244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10245 test ! -s conftest.err
10246 }; then
10247 ac_header_preproc=yes
10248 else
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 ac_header_preproc=no
10255 rm -f conftest.err conftest.$ac_ext
10256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10257 echo "${ECHO_T}$ac_header_preproc" >&6; }
10259 # So? What about this header?
10260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10261 yes:no: )
10262 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
10263 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10264 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
10265 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
10266 ac_header_preproc=yes
10268 no:yes:* )
10269 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
10270 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
10271 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
10272 echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
10273 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
10274 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
10275 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
10276 echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
10278 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
10279 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
10280 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
10281 ( cat <<\_ASBOX
10282 ## ------------------------------------ ##
10283 ## Report this to wine-devel@winehq.org ##
10284 ## ------------------------------------ ##
10285 _ASBOX
10286 ) | sed "s/^/$as_me: WARNING: /" >&2
10288 esac
10289 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10290 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10291 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
10296 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10297 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10300 if test $ac_cv_header_gphoto2_camera_h = yes; then
10301 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
10302 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
10303 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-lgphoto2 $LIBS"
10308 cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h. */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 char gp_camera_new ();
10323 main ()
10325 return gp_camera_new ();
10327 return 0;
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest$ac_exeext &&
10347 $as_test_x conftest$ac_exeext; then
10348 ac_cv_lib_gphoto2_gp_camera_new=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 ac_cv_lib_gphoto2_gp_camera_new=no
10356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10357 conftest$ac_exeext conftest.$ac_ext
10358 LIBS=$ac_check_lib_save_LIBS
10360 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10361 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10362 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
10364 cat >>confdefs.h <<\_ACEOF
10365 #define HAVE_GPHOTO2 1
10366 _ACEOF
10368 else
10369 GPHOTO2LIBS=""
10370 GPHOTO2INCL=""
10373 else
10374 GPHOTO2LIBS=""
10375 GPHOTO2INCL=""
10379 LIBS="$ac_save_LIBS"
10380 CPPFLAGS="$ac_save_CPPFLAGS"
10383 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10384 then
10385 saved_libs="$LIBS"
10386 icu_libs="-lsicuuc -lsicudata -lstdc++ -lgcc_s"
10387 if test -n "$ICU_LIB_DIR"
10388 then
10389 icu_libs="-L$ICU_LIB_DIR $icu_libs"
10391 { echo "$as_me:$LINENO: checking whether can link with ICU libraries" >&5
10392 echo $ECHO_N "checking whether can link with ICU libraries... $ECHO_C" >&6; }
10393 LIBS="$saved_libs $icu_libs"
10394 if test "$cross_compiling" = yes; then
10395 { echo "$as_me:$LINENO: result: no" >&5
10396 echo "${ECHO_T}no" >&6; }
10397 else
10398 cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h. */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10404 #include <unicode/ubidi.h>
10406 main ()
10408 ubidi_open()
10410 return 0;
10412 _ACEOF
10413 rm -f conftest$ac_exeext
10414 if { (ac_try="$ac_link"
10415 case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418 esac
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_link") 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10424 { (case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10427 esac
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_try") 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; }; then
10434 cat >>confdefs.h <<\_ACEOF
10435 #define HAVE_ICU 1
10436 _ACEOF
10438 ICULIBS="$icu_libs"
10440 { echo "$as_me:$LINENO: result: yes" >&5
10441 echo "${ECHO_T}yes" >&6; }
10442 else
10443 echo "$as_me: program exited with status $ac_status" >&5
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10447 ( exit $ac_status )
10448 { echo "$as_me:$LINENO: result: no" >&5
10449 echo "${ECHO_T}no" >&6; }
10451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10455 LIBS="$saved_libs"
10458 RESOLVLIBS=""
10460 if test "$ac_cv_header_resolv_h" = "yes"
10461 then
10462 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
10463 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
10464 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 else
10467 ac_check_lib_save_LIBS=$LIBS
10468 LIBS="-lresolv $LIBS"
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h. */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10476 /* Override any GCC internal prototype to avoid an error.
10477 Use char because int might match the return type of a GCC
10478 builtin and then its argument prototype would still apply. */
10479 #ifdef __cplusplus
10480 extern "C"
10481 #endif
10482 char res_query ();
10484 main ()
10486 return res_query ();
10488 return 0;
10490 _ACEOF
10491 rm -f conftest.$ac_objext conftest$ac_exeext
10492 if { (ac_try="$ac_link"
10493 case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_link") 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } && {
10505 test -z "$ac_c_werror_flag" ||
10506 test ! -s conftest.err
10507 } && test -s conftest$ac_exeext &&
10508 $as_test_x conftest$ac_exeext; then
10509 ac_cv_lib_resolv_res_query=yes
10510 else
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 ac_cv_lib_resolv_res_query=no
10517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10518 conftest$ac_exeext conftest.$ac_ext
10519 LIBS=$ac_check_lib_save_LIBS
10521 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
10522 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
10523 if test $ac_cv_lib_resolv_res_query = yes; then
10525 cat >>confdefs.h <<\_ACEOF
10526 #define HAVE_RESOLV 1
10527 _ACEOF
10529 RESOLVLIBS="-lresolv"
10534 LCMSLIBS=""
10536 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10537 then
10538 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
10539 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
10540 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 else
10543 ac_check_lib_save_LIBS=$LIBS
10544 LIBS="-llcms $LIBS"
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10552 /* Override any GCC internal prototype to avoid an error.
10553 Use char because int might match the return type of a GCC
10554 builtin and then its argument prototype would still apply. */
10555 #ifdef __cplusplus
10556 extern "C"
10557 #endif
10558 char cmsOpenProfileFromFile ();
10560 main ()
10562 return cmsOpenProfileFromFile ();
10564 return 0;
10566 _ACEOF
10567 rm -f conftest.$ac_objext conftest$ac_exeext
10568 if { (ac_try="$ac_link"
10569 case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572 esac
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_link") 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } && {
10581 test -z "$ac_c_werror_flag" ||
10582 test ! -s conftest.err
10583 } && test -s conftest$ac_exeext &&
10584 $as_test_x conftest$ac_exeext; then
10585 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10594 conftest$ac_exeext conftest.$ac_ext
10595 LIBS=$ac_check_lib_save_LIBS
10597 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10598 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10599 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
10601 cat >>confdefs.h <<\_ACEOF
10602 #define HAVE_LCMS 1
10603 _ACEOF
10605 LCMSLIBS="-llcms"
10610 LDAPLIBS=""
10612 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
10613 then
10614 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
10615 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
10616 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619 ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-lldap_r $LIBPTHREAD $LIBS"
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h. */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10628 /* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
10631 #ifdef __cplusplus
10632 extern "C"
10633 #endif
10634 char ldap_initialize ();
10636 main ()
10638 return ldap_initialize ();
10640 return 0;
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (ac_try="$ac_link"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_link") 2>conftest.er1
10651 ac_status=$?
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest$ac_exeext &&
10660 $as_test_x conftest$ac_exeext; then
10661 ac_cv_lib_ldap_r_ldap_initialize=yes
10662 else
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 ac_cv_lib_ldap_r_ldap_initialize=no
10669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10670 conftest$ac_exeext conftest.$ac_ext
10671 LIBS=$ac_check_lib_save_LIBS
10673 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
10674 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
10675 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
10676 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
10677 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
10678 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681 ac_check_lib_save_LIBS=$LIBS
10682 LIBS="-llber $LIBPTHREAD $LIBS"
10683 cat >conftest.$ac_ext <<_ACEOF
10684 /* confdefs.h. */
10685 _ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 char ber_init ();
10698 main ()
10700 return ber_init ();
10702 return 0;
10704 _ACEOF
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (ac_try="$ac_link"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_link") 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest$ac_exeext &&
10722 $as_test_x conftest$ac_exeext; then
10723 ac_cv_lib_lber_ber_init=yes
10724 else
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 ac_cv_lib_lber_ber_init=no
10731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10732 conftest$ac_exeext conftest.$ac_ext
10733 LIBS=$ac_check_lib_save_LIBS
10735 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
10736 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
10737 if test $ac_cv_lib_lber_ber_init = yes; then
10739 cat >>confdefs.h <<\_ACEOF
10740 #define HAVE_LDAP 1
10741 _ACEOF
10743 LDAPLIBS="-lldap_r -llber"
10748 ac_wine_check_funcs_save_LIBS="$LIBS"
10749 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
10754 for ac_func in \
10755 ldap_count_references \
10756 ldap_first_reference \
10757 ldap_next_reference \
10758 ldap_parse_reference
10760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 else
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h. */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10774 #define $ac_func innocuous_$ac_func
10776 /* System header to define __stub macros and hopefully few prototypes,
10777 which can conflict with char $ac_func (); below.
10778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10779 <limits.h> exists even on freestanding compilers. */
10781 #ifdef __STDC__
10782 # include <limits.h>
10783 #else
10784 # include <assert.h>
10785 #endif
10787 #undef $ac_func
10789 /* Override any GCC internal prototype to avoid an error.
10790 Use char because int might match the return type of a GCC
10791 builtin and then its argument prototype would still apply. */
10792 #ifdef __cplusplus
10793 extern "C"
10794 #endif
10795 char $ac_func ();
10796 /* The GNU C library defines this for functions which it implements
10797 to always fail with ENOSYS. Some functions are actually named
10798 something starting with __ and the normal name is an alias. */
10799 #if defined __stub_$ac_func || defined __stub___$ac_func
10800 choke me
10801 #endif
10804 main ()
10806 return $ac_func ();
10808 return 0;
10810 _ACEOF
10811 rm -f conftest.$ac_objext conftest$ac_exeext
10812 if { (ac_try="$ac_link"
10813 case "(($ac_try" in
10814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815 *) ac_try_echo=$ac_try;;
10816 esac
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818 (eval "$ac_link") 2>conftest.er1
10819 ac_status=$?
10820 grep -v '^ *+' conftest.er1 >conftest.err
10821 rm -f conftest.er1
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } && {
10825 test -z "$ac_c_werror_flag" ||
10826 test ! -s conftest.err
10827 } && test -s conftest$ac_exeext &&
10828 $as_test_x conftest$ac_exeext; then
10829 eval "$as_ac_var=yes"
10830 else
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10834 eval "$as_ac_var=no"
10837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10838 conftest$ac_exeext conftest.$ac_ext
10840 ac_res=`eval echo '${'$as_ac_var'}'`
10841 { echo "$as_me:$LINENO: result: $ac_res" >&5
10842 echo "${ECHO_T}$ac_res" >&6; }
10843 if test `eval echo '${'$as_ac_var'}'` = yes; then
10844 cat >>confdefs.h <<_ACEOF
10845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10846 _ACEOF
10849 done
10851 LIBS="$ac_wine_check_funcs_save_LIBS"
10854 FREETYPELIBS=""
10856 FREETYPEINCL=""
10858 # Extract the first word of "freetype-config", so it can be a program name with args.
10859 set dummy freetype-config; ac_word=$2
10860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10862 if test "${ac_cv_prog_ft_devel+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865 if test -n "$ft_devel"; then
10866 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10867 else
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875 ac_cv_prog_ft_devel="freetype-config"
10876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 break 2
10879 done
10880 done
10881 IFS=$as_save_IFS
10883 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10886 ft_devel=$ac_cv_prog_ft_devel
10887 if test -n "$ft_devel"; then
10888 { echo "$as_me:$LINENO: result: $ft_devel" >&5
10889 echo "${ECHO_T}$ft_devel" >&6; }
10890 else
10891 { echo "$as_me:$LINENO: result: no" >&5
10892 echo "${ECHO_T}no" >&6; }
10896 if test "$ft_devel" = "no"
10897 then
10898 # Extract the first word of "freetype2-config", so it can be a program name with args.
10899 set dummy freetype2-config; ac_word=$2
10900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10902 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 if test -n "$ft_devel2"; then
10906 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10907 else
10908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909 for as_dir in $PATH
10911 IFS=$as_save_IFS
10912 test -z "$as_dir" && as_dir=.
10913 for ac_exec_ext in '' $ac_executable_extensions; do
10914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10915 ac_cv_prog_ft_devel2="freetype2-config"
10916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10917 break 2
10919 done
10920 done
10921 IFS=$as_save_IFS
10923 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10926 ft_devel2=$ac_cv_prog_ft_devel2
10927 if test -n "$ft_devel2"; then
10928 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
10929 echo "${ECHO_T}$ft_devel2" >&6; }
10930 else
10931 { echo "$as_me:$LINENO: result: no" >&5
10932 echo "${ECHO_T}no" >&6; }
10936 if test "$ft_devel2" = "freetype2-config"
10937 then
10938 ft_devel=$ft_devel2
10942 if test "$ft_devel" = "no"
10943 then
10944 wine_cv_msg_freetype=yes
10945 else
10946 FREETYPELIBS=`$ft_devel --libs`
10947 FREETYPEINCL=`$ft_devel --cflags`
10948 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10949 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
10950 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953 ac_check_lib_save_LIBS=$LIBS
10954 LIBS="-lfreetype $FREETYPELIBS $LIBS"
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 /* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 char FT_Init_FreeType ();
10970 main ()
10972 return FT_Init_FreeType ();
10974 return 0;
10976 _ACEOF
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982 esac
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_link") 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && {
10991 test -z "$ac_c_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest$ac_exeext &&
10994 $as_test_x conftest$ac_exeext; then
10995 ac_cv_lib_freetype_FT_Init_FreeType=yes
10996 else
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11000 ac_cv_lib_freetype_FT_Init_FreeType=no
11003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11004 conftest$ac_exeext conftest.$ac_ext
11005 LIBS=$ac_check_lib_save_LIBS
11007 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
11008 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
11009 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
11010 ft_lib=yes
11011 else
11012 ft_lib=no
11015 if test "$ft_lib" = "no"
11016 then
11017 wine_cv_msg_freetype=yes
11018 FREETYPELIBS=""
11019 FREETYPEINCL=""
11020 else
11021 ac_save_CPPFLAGS="$CPPFLAGS"
11022 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
11034 for ac_header in ft2build.h \
11035 freetype/freetype.h \
11036 freetype/ftglyph.h \
11037 freetype/tttables.h \
11038 freetype/ftnames.h \
11039 freetype/ftsnames.h \
11040 freetype/ttnameid.h \
11041 freetype/ftoutln.h \
11042 freetype/ftwinfnt.h \
11043 freetype/ftmodapi.h \
11044 freetype/internal/sfnt.h
11046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h. */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 #if HAVE_FT2BUILD_H
11059 #include <ft2build.h>
11060 #endif
11062 #include <$ac_header>
11063 _ACEOF
11064 rm -f conftest.$ac_objext
11065 if { (ac_try="$ac_compile"
11066 case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11069 esac
11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_compile") 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest.$ac_objext; then
11081 eval "$as_ac_Header=yes"
11082 else
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 eval "$as_ac_Header=no"
11089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091 ac_res=`eval echo '${'$as_ac_Header'}'`
11092 { echo "$as_me:$LINENO: result: $ac_res" >&5
11093 echo "${ECHO_T}$ac_res" >&6; }
11094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11095 cat >>confdefs.h <<_ACEOF
11096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11097 _ACEOF
11101 done
11103 cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h. */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 #include <ft2build.h>
11110 #include <freetype/fttrigon.h>
11111 _ACEOF
11112 if { (ac_try="$ac_cpp conftest.$ac_ext"
11113 case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11119 ac_status=$?
11120 grep -v '^ *+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev/null && {
11125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11126 test ! -s conftest.err
11127 }; then
11129 cat >>confdefs.h <<\_ACEOF
11130 #define HAVE_FREETYPE_FTTRIGON_H 1
11131 _ACEOF
11133 wine_cv_fttrigon=yes
11134 else
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 wine_cv_fttrigon=no
11141 rm -f conftest.err conftest.$ac_ext
11142 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
11143 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
11144 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 else
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 #include <freetype/ftmodapi.h>
11155 typedef FT_TrueTypeEngineType ac__type_new_;
11157 main ()
11159 if ((ac__type_new_ *) 0)
11160 return 0;
11161 if (sizeof (ac__type_new_))
11162 return 0;
11164 return 0;
11166 _ACEOF
11167 rm -f conftest.$ac_objext
11168 if { (ac_try="$ac_compile"
11169 case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11172 esac
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_compile") 2>conftest.er1
11175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } && {
11181 test -z "$ac_c_werror_flag" ||
11182 test ! -s conftest.err
11183 } && test -s conftest.$ac_objext; then
11184 ac_cv_type_FT_TrueTypeEngineType=yes
11185 else
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11189 ac_cv_type_FT_TrueTypeEngineType=no
11192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11194 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
11195 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
11196 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
11198 cat >>confdefs.h <<_ACEOF
11199 #define HAVE_FT_TRUETYPEENGINETYPE 1
11200 _ACEOF
11205 ac_save_CFLAGS="$CFLAGS"
11206 CFLAGS="$CFLAGS $FREETYPELIBS"
11208 for ac_func in FT_Load_Sfnt_Table
11210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11211 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 else
11216 cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h. */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11224 #define $ac_func innocuous_$ac_func
11226 /* System header to define __stub macros and hopefully few prototypes,
11227 which can conflict with char $ac_func (); below.
11228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11229 <limits.h> exists even on freestanding compilers. */
11231 #ifdef __STDC__
11232 # include <limits.h>
11233 #else
11234 # include <assert.h>
11235 #endif
11237 #undef $ac_func
11239 /* Override any GCC internal prototype to avoid an error.
11240 Use char because int might match the return type of a GCC
11241 builtin and then its argument prototype would still apply. */
11242 #ifdef __cplusplus
11243 extern "C"
11244 #endif
11245 char $ac_func ();
11246 /* The GNU C library defines this for functions which it implements
11247 to always fail with ENOSYS. Some functions are actually named
11248 something starting with __ and the normal name is an alias. */
11249 #if defined __stub_$ac_func || defined __stub___$ac_func
11250 choke me
11251 #endif
11254 main ()
11256 return $ac_func ();
11258 return 0;
11260 _ACEOF
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (ac_try="$ac_link"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266 esac
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_link") 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && {
11275 test -z "$ac_c_werror_flag" ||
11276 test ! -s conftest.err
11277 } && test -s conftest$ac_exeext &&
11278 $as_test_x conftest$ac_exeext; then
11279 eval "$as_ac_var=yes"
11280 else
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 eval "$as_ac_var=no"
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288 conftest$ac_exeext conftest.$ac_ext
11290 ac_res=`eval echo '${'$as_ac_var'}'`
11291 { echo "$as_me:$LINENO: result: $ac_res" >&5
11292 echo "${ECHO_T}$ac_res" >&6; }
11293 if test `eval echo '${'$as_ac_var'}'` = yes; then
11294 cat >>confdefs.h <<_ACEOF
11295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11296 _ACEOF
11299 done
11301 CFLAGS="$ac_save_CFLAGS"
11302 CPPFLAGS="$ac_save_CPPFLAGS"
11303 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11304 then
11306 cat >>confdefs.h <<\_ACEOF
11307 #define HAVE_FREETYPE 1
11308 _ACEOF
11310 wine_cv_msg_freetype=no
11311 else
11312 FREETYPELIBS=""
11313 FREETYPEINCL=""
11314 wine_cv_msg_freetype=yes
11319 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
11320 then
11321 FONTSSUBDIRS="fonts"
11325 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
11326 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
11327 if test "${ac_cv_c_ppdev+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 #include <linux/ppdev.h>
11338 main ()
11340 ioctl (1,PPCLAIM,0)
11342 return 0;
11344 _ACEOF
11345 rm -f conftest.$ac_objext
11346 if { (ac_try="$ac_compile"
11347 case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_compile") 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } && {
11359 test -z "$ac_c_werror_flag" ||
11360 test ! -s conftest.err
11361 } && test -s conftest.$ac_objext; then
11362 ac_cv_c_ppdev="yes"
11363 else
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 ac_cv_c_ppdev="no"
11370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11372 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
11373 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
11374 if test "$ac_cv_c_ppdev" = "yes"
11375 then
11377 cat >>confdefs.h <<\_ACEOF
11378 #define HAVE_PPDEV 1
11379 _ACEOF
11383 { echo "$as_me:$LINENO: checking for va_copy" >&5
11384 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
11385 if test "${ac_cv_c_va_copy+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 #include <stdarg.h>
11396 main ()
11398 va_list ap1, ap2; va_copy(ap1,ap2);
11400 return 0;
11402 _ACEOF
11403 rm -f conftest.$ac_objext conftest$ac_exeext
11404 if { (ac_try="$ac_link"
11405 case "(($ac_try" in
11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11408 esac
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410 (eval "$ac_link") 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } && {
11417 test -z "$ac_c_werror_flag" ||
11418 test ! -s conftest.err
11419 } && test -s conftest$ac_exeext &&
11420 $as_test_x conftest$ac_exeext; then
11421 ac_cv_c_va_copy="yes"
11422 else
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_cv_c_va_copy="no"
11429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11430 conftest$ac_exeext conftest.$ac_ext
11433 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
11434 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
11435 if test "$ac_cv_c_va_copy" = "yes"
11436 then
11438 cat >>confdefs.h <<\_ACEOF
11439 #define HAVE_VA_COPY 1
11440 _ACEOF
11443 { echo "$as_me:$LINENO: checking for __va_copy" >&5
11444 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
11445 if test "${ac_cv_c___va_copy+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 else
11448 cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h. */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 #include <stdarg.h>
11456 main ()
11458 va_list ap1, ap2; __va_copy(ap1,ap2);
11460 return 0;
11462 _ACEOF
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (ac_try="$ac_link"
11465 case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468 esac
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_link") 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } && {
11477 test -z "$ac_c_werror_flag" ||
11478 test ! -s conftest.err
11479 } && test -s conftest$ac_exeext &&
11480 $as_test_x conftest$ac_exeext; then
11481 ac_cv_c___va_copy="yes"
11482 else
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11486 ac_cv_c___va_copy="no"
11489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11490 conftest$ac_exeext conftest.$ac_ext
11493 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
11494 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
11495 if test "$ac_cv_c___va_copy" = "yes"
11496 then
11498 cat >>confdefs.h <<\_ACEOF
11499 #define HAVE___VA_COPY 1
11500 _ACEOF
11504 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11505 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
11506 if test "${ac_cv_c_sigsetjmp+set}" = set; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 else
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h. */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 #include <setjmp.h>
11517 main ()
11519 sigjmp_buf buf;
11520 sigsetjmp( buf, 1 );
11521 siglongjmp( buf, 1 );
11523 return 0;
11525 _ACEOF
11526 rm -f conftest.$ac_objext conftest$ac_exeext
11527 if { (ac_try="$ac_link"
11528 case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531 esac
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_link") 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } && {
11540 test -z "$ac_c_werror_flag" ||
11541 test ! -s conftest.err
11542 } && test -s conftest$ac_exeext &&
11543 $as_test_x conftest$ac_exeext; then
11544 ac_cv_c_sigsetjmp="yes"
11545 else
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ac_cv_c_sigsetjmp="no"
11552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11553 conftest$ac_exeext conftest.$ac_ext
11556 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11557 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
11558 if test "$ac_cv_c_sigsetjmp" = "yes"
11559 then
11561 cat >>confdefs.h <<\_ACEOF
11562 #define HAVE_SIGSETJMP 1
11563 _ACEOF
11567 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11568 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
11569 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 else
11572 cat >conftest.$ac_ext <<_ACEOF
11573 /* confdefs.h. */
11574 _ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h. */
11578 #define _GNU_SOURCE
11579 #include <pthread.h>
11581 typedef pthread_rwlock_t ac__type_new_;
11583 main ()
11585 if ((ac__type_new_ *) 0)
11586 return 0;
11587 if (sizeof (ac__type_new_))
11588 return 0;
11590 return 0;
11592 _ACEOF
11593 rm -f conftest.$ac_objext
11594 if { (ac_try="$ac_compile"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598 esac
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_compile") 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } && {
11607 test -z "$ac_c_werror_flag" ||
11608 test ! -s conftest.err
11609 } && test -s conftest.$ac_objext; then
11610 ac_cv_type_pthread_rwlock_t=yes
11611 else
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11615 ac_cv_type_pthread_rwlock_t=no
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11621 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
11622 if test $ac_cv_type_pthread_rwlock_t = yes; then
11624 cat >>confdefs.h <<_ACEOF
11625 #define HAVE_PTHREAD_RWLOCK_T 1
11626 _ACEOF
11630 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11631 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
11632 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 #define _GNU_SOURCE
11642 #include <pthread.h>
11644 typedef pthread_rwlockattr_t ac__type_new_;
11646 main ()
11648 if ((ac__type_new_ *) 0)
11649 return 0;
11650 if (sizeof (ac__type_new_))
11651 return 0;
11653 return 0;
11655 _ACEOF
11656 rm -f conftest.$ac_objext
11657 if { (ac_try="$ac_compile"
11658 case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11661 esac
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_compile") 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } && {
11670 test -z "$ac_c_werror_flag" ||
11671 test ! -s conftest.err
11672 } && test -s conftest.$ac_objext; then
11673 ac_cv_type_pthread_rwlockattr_t=yes
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 ac_cv_type_pthread_rwlockattr_t=no
11681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11684 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
11685 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11687 cat >>confdefs.h <<_ACEOF
11688 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11689 _ACEOF
11695 ac_wine_check_funcs_save_LIBS="$LIBS"
11696 LIBS="$LIBS $LIBPTHREAD"
11701 for ac_func in \
11702 pthread_attr_get_np \
11703 pthread_getattr_np \
11704 pthread_get_stackaddr_np \
11705 pthread_get_stacksize_np
11707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11721 #define $ac_func innocuous_$ac_func
11723 /* System header to define __stub macros and hopefully few prototypes,
11724 which can conflict with char $ac_func (); below.
11725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11726 <limits.h> exists even on freestanding compilers. */
11728 #ifdef __STDC__
11729 # include <limits.h>
11730 #else
11731 # include <assert.h>
11732 #endif
11734 #undef $ac_func
11736 /* Override any GCC internal prototype to avoid an error.
11737 Use char because int might match the return type of a GCC
11738 builtin and then its argument prototype would still apply. */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 char $ac_func ();
11743 /* The GNU C library defines this for functions which it implements
11744 to always fail with ENOSYS. Some functions are actually named
11745 something starting with __ and the normal name is an alias. */
11746 #if defined __stub_$ac_func || defined __stub___$ac_func
11747 choke me
11748 #endif
11751 main ()
11753 return $ac_func ();
11755 return 0;
11757 _ACEOF
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (ac_try="$ac_link"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_link") 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } && {
11772 test -z "$ac_c_werror_flag" ||
11773 test ! -s conftest.err
11774 } && test -s conftest$ac_exeext &&
11775 $as_test_x conftest$ac_exeext; then
11776 eval "$as_ac_var=yes"
11777 else
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 eval "$as_ac_var=no"
11784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11785 conftest$ac_exeext conftest.$ac_ext
11787 ac_res=`eval echo '${'$as_ac_var'}'`
11788 { echo "$as_me:$LINENO: result: $ac_res" >&5
11789 echo "${ECHO_T}$ac_res" >&6; }
11790 if test `eval echo '${'$as_ac_var'}'` = yes; then
11791 cat >>confdefs.h <<_ACEOF
11792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11793 _ACEOF
11796 done
11798 LIBS="$ac_wine_check_funcs_save_LIBS"
11800 # Extract the first word of "esd-config", so it can be a program name with args.
11801 set dummy esd-config; ac_word=$2
11802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11804 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807 case $ESDCONFIG in
11808 [\\/]* | ?:[\\/]*)
11809 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11819 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 break 2
11823 done
11824 done
11825 IFS=$as_save_IFS
11828 esac
11830 ESDCONFIG=$ac_cv_path_ESDCONFIG
11831 if test -n "$ESDCONFIG"; then
11832 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
11833 echo "${ECHO_T}$ESDCONFIG" >&6; }
11834 else
11835 { echo "$as_me:$LINENO: result: no" >&5
11836 echo "${ECHO_T}no" >&6; }
11840 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
11841 then
11842 ESD_CFLAGS=""
11843 for i in `$ESDCONFIG --cflags`
11845 case "$i" in
11846 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
11847 esac
11848 done
11849 ESD_LIBS=`$ESDCONFIG --libs`
11850 save_CFLAGS="$CFLAGS"
11851 CFLAGS="$CFLAGS $ESD_CFLAGS"
11852 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
11853 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
11854 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857 ac_check_lib_save_LIBS=$LIBS
11858 LIBS="-lesd $LIBS"
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11866 /* Override any GCC internal prototype to avoid an error.
11867 Use char because int might match the return type of a GCC
11868 builtin and then its argument prototype would still apply. */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 char esd_open_sound ();
11874 main ()
11876 return esd_open_sound ();
11878 return 0;
11880 _ACEOF
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (ac_try="$ac_link"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_link") 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest$ac_exeext &&
11898 $as_test_x conftest$ac_exeext; then
11899 ac_cv_lib_esd_esd_open_sound=yes
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_cv_lib_esd_esd_open_sound=no
11907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11911 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
11912 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
11913 if test $ac_cv_lib_esd_esd_open_sound = yes; then
11914 ESDLIBS=$ESD_LIBS
11916 ESDINCL=$ESD_CFLAGS
11919 cat >>confdefs.h <<\_ACEOF
11920 #define HAVE_ESD 1
11921 _ACEOF
11925 CFLAGS="$save_CFLAGS"
11928 ALSALIBS=""
11930 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11931 then
11932 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
11933 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
11934 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11936 else
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lasound $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. */
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 snd_pcm_hw_params_get_access ();
11954 main ()
11956 return snd_pcm_hw_params_get_access ();
11958 return 0;
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 test -z "$ac_c_werror_flag" ||
11976 test ! -s conftest.err
11977 } && test -s conftest$ac_exeext &&
11978 $as_test_x conftest$ac_exeext; then
11979 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
11980 else
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
11987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11988 conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11991 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
11992 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
11993 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
11994 cat >conftest.$ac_ext <<_ACEOF
11995 /* confdefs.h. */
11996 _ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 #ifdef HAVE_ALSA_ASOUNDLIB_H
12001 #include <alsa/asoundlib.h>
12002 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12003 #include <sys/asoundlib.h>
12004 #endif
12006 main ()
12008 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
12010 return 0;
12012 _ACEOF
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } && {
12027 test -z "$ac_c_werror_flag" ||
12028 test ! -s conftest.err
12029 } && test -s conftest.$ac_objext; then
12031 cat >>confdefs.h <<\_ACEOF
12032 #define HAVE_ALSA 1
12033 _ACEOF
12035 ALSALIBS="-lasound"
12036 else
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049 AUDIOIOLIBS=""
12051 if test "$ac_cv_header_libaudioio_h" = "yes"
12052 then
12053 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12054 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
12055 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 ac_check_lib_save_LIBS=$LIBS
12059 LIBS="-laudioio $LIBS"
12060 cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h. */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12070 #ifdef __cplusplus
12071 extern "C"
12072 #endif
12073 char AudioIOGetVersion ();
12075 main ()
12077 return AudioIOGetVersion ();
12079 return 0;
12081 _ACEOF
12082 rm -f conftest.$ac_objext conftest$ac_exeext
12083 if { (ac_try="$ac_link"
12084 case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12087 esac
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_link") 2>conftest.er1
12090 ac_status=$?
12091 grep -v '^ *+' conftest.er1 >conftest.err
12092 rm -f conftest.er1
12093 cat conftest.err >&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } && {
12096 test -z "$ac_c_werror_flag" ||
12097 test ! -s conftest.err
12098 } && test -s conftest$ac_exeext &&
12099 $as_test_x conftest$ac_exeext; then
12100 ac_cv_lib_audioio_AudioIOGetVersion=yes
12101 else
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 ac_cv_lib_audioio_AudioIOGetVersion=no
12108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12109 conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12112 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12113 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
12114 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12115 AUDIOIOLIBS="-laudioio"
12117 cat >>confdefs.h <<\_ACEOF
12118 #define HAVE_LIBAUDIOIO 1
12119 _ACEOF
12126 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12127 then
12128 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12129 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
12130 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 else
12133 ac_check_lib_save_LIBS=$LIBS
12134 LIBS="-lcapi20 $LIBS"
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char capi20_register ();
12150 main ()
12152 return capi20_register ();
12154 return 0;
12156 _ACEOF
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (ac_try="$ac_link"
12159 case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12162 esac
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164 (eval "$ac_link") 2>conftest.er1
12165 ac_status=$?
12166 grep -v '^ *+' conftest.er1 >conftest.err
12167 rm -f conftest.er1
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } && {
12171 test -z "$ac_c_werror_flag" ||
12172 test ! -s conftest.err
12173 } && test -s conftest$ac_exeext &&
12174 $as_test_x conftest$ac_exeext; then
12175 ac_cv_lib_capi20_capi20_register=yes
12176 else
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 ac_cv_lib_capi20_capi20_register=no
12183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12187 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12188 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
12189 if test $ac_cv_lib_capi20_capi20_register = yes; then
12191 cat >>confdefs.h <<\_ACEOF
12192 #define HAVE_CAPI4LINUX 1
12193 _ACEOF
12200 EXTRACFLAGS=""
12202 if test "x${GCC}" = "xyes"
12203 then
12204 EXTRACFLAGS="-Wall -pipe"
12206 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12207 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
12208 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 if test "$cross_compiling" = yes; then
12212 ac_cv_c_gcc_strength_bug="yes"
12213 else
12214 cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h. */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 int L[4] = {0,1,2,3};
12222 main ()
12224 static int Array[3];
12225 unsigned int B = 3;
12226 int i;
12227 for(i=0; i<B; i++) Array[i] = i - 3;
12228 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12229 L[i] = 4;
12230 exit( Array[1] != -2 || L[2] != 3)
12232 return 0;
12234 _ACEOF
12235 rm -f conftest$ac_exeext
12236 if { (ac_try="$ac_link"
12237 case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_link") 2>&5
12243 ac_status=$?
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12246 { (case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_try") 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 ac_cv_c_gcc_strength_bug="no"
12256 else
12257 echo "$as_me: program exited with status $ac_status" >&5
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12261 ( exit $ac_status )
12262 ac_cv_c_gcc_strength_bug="yes"
12264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12269 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12270 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
12271 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12272 then
12273 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12277 { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
12278 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
12279 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 else
12282 ac_wine_try_cflags_saved=$CFLAGS
12283 CFLAGS="$CFLAGS -fshort-wchar"
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12292 main ()
12296 return 0;
12298 _ACEOF
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (ac_try="$ac_link"
12301 case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12304 esac
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_link") 2>conftest.er1
12307 ac_status=$?
12308 grep -v '^ *+' conftest.er1 >conftest.err
12309 rm -f conftest.er1
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } && {
12313 test -z "$ac_c_werror_flag" ||
12314 test ! -s conftest.err
12315 } && test -s conftest$ac_exeext &&
12316 $as_test_x conftest$ac_exeext; then
12317 ac_cv_cflags__fshort_wchar=yes
12318 else
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ac_cv_cflags__fshort_wchar=no
12325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12326 conftest$ac_exeext conftest.$ac_ext
12327 CFLAGS=$ac_wine_try_cflags_saved
12329 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
12330 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
12331 if test $ac_cv_cflags__fshort_wchar = yes; then
12333 cat >>confdefs.h <<\_ACEOF
12334 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12335 _ACEOF
12339 { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
12340 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
12341 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344 ac_wine_try_cflags_saved=$CFLAGS
12345 CFLAGS="$CFLAGS -fno-strict-aliasing"
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h. */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12354 main ()
12358 return 0;
12360 _ACEOF
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (ac_try="$ac_link"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_link") 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest$ac_exeext &&
12378 $as_test_x conftest$ac_exeext; then
12379 ac_cv_cflags__fno_strict_aliasing=yes
12380 else
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12384 ac_cv_cflags__fno_strict_aliasing=no
12387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12388 conftest$ac_exeext conftest.$ac_ext
12389 CFLAGS=$ac_wine_try_cflags_saved
12391 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12392 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
12393 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
12394 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12397 { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12398 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
12399 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402 ac_wine_try_cflags_saved=$CFLAGS
12403 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h. */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12412 main ()
12416 return 0;
12418 _ACEOF
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12424 esac
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_link") 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest$ac_exeext &&
12436 $as_test_x conftest$ac_exeext; then
12437 ac_cv_cflags__Wdeclaration_after_statement=yes
12438 else
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_cv_cflags__Wdeclaration_after_statement=no
12445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12446 conftest$ac_exeext conftest.$ac_ext
12447 CFLAGS=$ac_wine_try_cflags_saved
12449 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12450 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12451 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
12452 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12455 { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
12456 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
12457 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460 ac_wine_try_cflags_saved=$CFLAGS
12461 CFLAGS="$CFLAGS -Wwrite-strings"
12462 cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h. */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12470 main ()
12474 return 0;
12476 _ACEOF
12477 rm -f conftest.$ac_objext conftest$ac_exeext
12478 if { (ac_try="$ac_link"
12479 case "(($ac_try" in
12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12482 esac
12483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484 (eval "$ac_link") 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } && {
12491 test -z "$ac_c_werror_flag" ||
12492 test ! -s conftest.err
12493 } && test -s conftest$ac_exeext &&
12494 $as_test_x conftest$ac_exeext; then
12495 ac_cv_cflags__Wwrite_strings=yes
12496 else
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12500 ac_cv_cflags__Wwrite_strings=no
12503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12504 conftest$ac_exeext conftest.$ac_ext
12505 CFLAGS=$ac_wine_try_cflags_saved
12507 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
12508 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
12509 if test $ac_cv_cflags__Wwrite_strings = yes; then
12510 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12514 saved_CFLAGS="$CFLAGS"
12515 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12516 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12517 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
12518 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <string.h>
12529 main ()
12533 return 0;
12535 _ACEOF
12536 rm -f conftest.$ac_objext
12537 if { (ac_try="$ac_compile"
12538 case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_compile") 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && {
12550 test -z "$ac_c_werror_flag" ||
12551 test ! -s conftest.err
12552 } && test -s conftest.$ac_objext; then
12553 ac_cv_c_string_h_warnings=no
12554 else
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 ac_cv_c_string_h_warnings=yes
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12564 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
12565 CFLAGS="$saved_CFLAGS"
12566 if test "$ac_cv_c_string_h_warnings" = "no"
12567 then
12568 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12571 BUILTINFLAG=""
12573 saved_CFLAGS="$CFLAGS"
12574 CFLAGS="$CFLAGS -Werror"
12575 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
12576 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
12577 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12588 main ()
12590 int iswlower(unsigned short);
12592 return 0;
12594 _ACEOF
12595 rm -f conftest.$ac_objext
12596 if { (ac_try="$ac_compile"
12597 case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12600 esac
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_compile") 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && {
12609 test -z "$ac_c_werror_flag" ||
12610 test ! -s conftest.err
12611 } && test -s conftest.$ac_objext; then
12612 ac_cv_c_builtin_wchar_ctype=no
12613 else
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ac_cv_c_builtin_wchar_ctype=yes
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
12623 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
12624 CFLAGS="$saved_CFLAGS"
12625 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
12626 then
12627 BUILTINFLAG="-fno-builtin"
12632 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12633 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
12634 if test "${ac_cv_asm_func_def+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637 cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h. */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12645 main ()
12647 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12649 return 0;
12651 _ACEOF
12652 rm -f conftest.$ac_objext conftest$ac_exeext
12653 if { (ac_try="$ac_link"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12657 esac
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_link") 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } && {
12666 test -z "$ac_c_werror_flag" ||
12667 test ! -s conftest.err
12668 } && test -s conftest$ac_exeext &&
12669 $as_test_x conftest$ac_exeext; then
12670 ac_cv_asm_func_def=".def"
12671 else
12672 echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h. */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12683 main ()
12685 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12687 return 0;
12689 _ACEOF
12690 rm -f conftest.$ac_objext conftest$ac_exeext
12691 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } && {
12704 test -z "$ac_c_werror_flag" ||
12705 test ! -s conftest.err
12706 } && test -s conftest$ac_exeext &&
12707 $as_test_x conftest$ac_exeext; then
12708 ac_cv_asm_func_def=".type @function"
12709 else
12710 echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12713 cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h. */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12721 main ()
12723 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12725 return 0;
12727 _ACEOF
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (ac_try="$ac_link"
12730 case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12733 esac
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_link") 2>conftest.er1
12736 ac_status=$?
12737 grep -v '^ *+' conftest.er1 >conftest.err
12738 rm -f conftest.er1
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && {
12742 test -z "$ac_c_werror_flag" ||
12743 test ! -s conftest.err
12744 } && test -s conftest$ac_exeext &&
12745 $as_test_x conftest$ac_exeext; then
12746 ac_cv_asm_func_def=".type 2"
12747 else
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 ac_cv_asm_func_def="unknown"
12754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12755 conftest$ac_exeext conftest.$ac_ext
12758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12759 conftest$ac_exeext conftest.$ac_ext
12762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12763 conftest$ac_exeext conftest.$ac_ext
12765 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12766 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
12770 case "$ac_cv_asm_func_def" in
12771 ".def")
12772 cat >>confdefs.h <<\_ACEOF
12773 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12774 _ACEOF
12776 ".type @function")
12777 cat >>confdefs.h <<\_ACEOF
12778 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12779 _ACEOF
12781 ".type 2")
12782 cat >>confdefs.h <<\_ACEOF
12783 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12784 _ACEOF
12787 cat >>confdefs.h <<\_ACEOF
12788 #define __ASM_FUNC(name) ""
12789 _ACEOF
12791 esac
12794 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12795 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
12796 if test "${ac_cv_c_extern_prefix+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 else
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h. */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 extern int ac_test;
12807 main ()
12809 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12811 return 0;
12813 _ACEOF
12814 rm -f conftest.$ac_objext conftest$ac_exeext
12815 if { (ac_try="$ac_link"
12816 case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_link") 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && {
12828 test -z "$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 } && test -s conftest$ac_exeext &&
12831 $as_test_x conftest$ac_exeext; then
12832 ac_cv_c_extern_prefix="yes"
12833 else
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_cv_c_extern_prefix="no"
12840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12841 conftest$ac_exeext conftest.$ac_ext
12843 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12844 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
12848 if test "$ac_cv_c_extern_prefix" = "yes"
12849 then
12850 cat >>confdefs.h <<\_ACEOF
12851 #define __ASM_NAME(name) "_" name
12852 _ACEOF
12854 else
12855 cat >>confdefs.h <<\_ACEOF
12856 #define __ASM_NAME(name) name
12857 _ACEOF
12862 DLLEXT=""
12864 DLLFLAGS="-D_REENTRANT"
12866 LDSHARED=""
12868 LDDLLFLAGS=""
12870 LIBEXT="so"
12872 IMPLIBEXT="def"
12874 LIBWINE_LDFLAGS=""
12877 case $host_os in
12878 cygwin*|mingw32*)
12879 if test -n "$ac_tool_prefix"; then
12880 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12881 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12884 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887 if test -n "$DLLTOOL"; then
12888 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12889 else
12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891 for as_dir in $PATH
12893 IFS=$as_save_IFS
12894 test -z "$as_dir" && as_dir=.
12895 for ac_exec_ext in '' $ac_executable_extensions; do
12896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12897 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12899 break 2
12901 done
12902 done
12903 IFS=$as_save_IFS
12907 DLLTOOL=$ac_cv_prog_DLLTOOL
12908 if test -n "$DLLTOOL"; then
12909 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12910 echo "${ECHO_T}$DLLTOOL" >&6; }
12911 else
12912 { echo "$as_me:$LINENO: result: no" >&5
12913 echo "${ECHO_T}no" >&6; }
12918 if test -z "$ac_cv_prog_DLLTOOL"; then
12919 ac_ct_DLLTOOL=$DLLTOOL
12920 # Extract the first word of "dlltool", so it can be a program name with args.
12921 set dummy dlltool; ac_word=$2
12922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12924 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927 if test -n "$ac_ct_DLLTOOL"; then
12928 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12929 else
12930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 for as_dir in $PATH
12933 IFS=$as_save_IFS
12934 test -z "$as_dir" && as_dir=.
12935 for ac_exec_ext in '' $ac_executable_extensions; do
12936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12937 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12939 break 2
12941 done
12942 done
12943 IFS=$as_save_IFS
12947 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12948 if test -n "$ac_ct_DLLTOOL"; then
12949 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
12950 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
12951 else
12952 { echo "$as_me:$LINENO: result: no" >&5
12953 echo "${ECHO_T}no" >&6; }
12956 if test "x$ac_ct_DLLTOOL" = x; then
12957 DLLTOOL="false"
12958 else
12959 case $cross_compiling:$ac_tool_warned in
12960 yes:)
12961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12962 whose name does not start with the host triplet. If you think this
12963 configuration is useful to you, please write to autoconf@gnu.org." >&5
12964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12965 whose name does not start with the host triplet. If you think this
12966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12967 ac_tool_warned=yes ;;
12968 esac
12969 DLLTOOL=$ac_ct_DLLTOOL
12971 else
12972 DLLTOOL="$ac_cv_prog_DLLTOOL"
12975 if test -n "$ac_tool_prefix"; then
12976 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
12977 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
12978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12980 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983 if test -n "$DLLWRAP"; then
12984 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
12985 else
12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $PATH
12989 IFS=$as_save_IFS
12990 test -z "$as_dir" && as_dir=.
12991 for ac_exec_ext in '' $ac_executable_extensions; do
12992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12993 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
12994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 break 2
12997 done
12998 done
12999 IFS=$as_save_IFS
13003 DLLWRAP=$ac_cv_prog_DLLWRAP
13004 if test -n "$DLLWRAP"; then
13005 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13006 echo "${ECHO_T}$DLLWRAP" >&6; }
13007 else
13008 { echo "$as_me:$LINENO: result: no" >&5
13009 echo "${ECHO_T}no" >&6; }
13014 if test -z "$ac_cv_prog_DLLWRAP"; then
13015 ac_ct_DLLWRAP=$DLLWRAP
13016 # Extract the first word of "dllwrap", so it can be a program name with args.
13017 set dummy dllwrap; ac_word=$2
13018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13020 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023 if test -n "$ac_ct_DLLWRAP"; then
13024 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13025 else
13026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027 for as_dir in $PATH
13029 IFS=$as_save_IFS
13030 test -z "$as_dir" && as_dir=.
13031 for ac_exec_ext in '' $ac_executable_extensions; do
13032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13033 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13035 break 2
13037 done
13038 done
13039 IFS=$as_save_IFS
13043 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13044 if test -n "$ac_ct_DLLWRAP"; then
13045 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13046 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
13047 else
13048 { echo "$as_me:$LINENO: result: no" >&5
13049 echo "${ECHO_T}no" >&6; }
13052 if test "x$ac_ct_DLLWRAP" = x; then
13053 DLLWRAP="false"
13054 else
13055 case $cross_compiling:$ac_tool_warned in
13056 yes:)
13057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13058 whose name does not start with the host triplet. If you think this
13059 configuration is useful to you, please write to autoconf@gnu.org." >&5
13060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13061 whose name does not start with the host triplet. If you think this
13062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13063 ac_tool_warned=yes ;;
13064 esac
13065 DLLWRAP=$ac_ct_DLLWRAP
13067 else
13068 DLLWRAP="$ac_cv_prog_DLLWRAP"
13071 if test -n "$ac_tool_prefix"; then
13072 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13073 set dummy ${ac_tool_prefix}ar; ac_word=$2
13074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13076 if test "${ac_cv_prog_MINGWAR+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13078 else
13079 if test -n "$MINGWAR"; then
13080 ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
13081 else
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13085 IFS=$as_save_IFS
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089 ac_cv_prog_MINGWAR="${ac_tool_prefix}ar"
13090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13091 break 2
13093 done
13094 done
13095 IFS=$as_save_IFS
13099 MINGWAR=$ac_cv_prog_MINGWAR
13100 if test -n "$MINGWAR"; then
13101 { echo "$as_me:$LINENO: result: $MINGWAR" >&5
13102 echo "${ECHO_T}$MINGWAR" >&6; }
13103 else
13104 { echo "$as_me:$LINENO: result: no" >&5
13105 echo "${ECHO_T}no" >&6; }
13110 if test -z "$ac_cv_prog_MINGWAR"; then
13111 ac_ct_MINGWAR=$MINGWAR
13112 # Extract the first word of "ar", so it can be a program name with args.
13113 set dummy ar; ac_word=$2
13114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13116 if test "${ac_cv_prog_ac_ct_MINGWAR+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119 if test -n "$ac_ct_MINGWAR"; then
13120 ac_cv_prog_ac_ct_MINGWAR="$ac_ct_MINGWAR" # Let the user override the test.
13121 else
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13125 IFS=$as_save_IFS
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13129 ac_cv_prog_ac_ct_MINGWAR="ar"
13130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 break 2
13133 done
13134 done
13135 IFS=$as_save_IFS
13139 ac_ct_MINGWAR=$ac_cv_prog_ac_ct_MINGWAR
13140 if test -n "$ac_ct_MINGWAR"; then
13141 { echo "$as_me:$LINENO: result: $ac_ct_MINGWAR" >&5
13142 echo "${ECHO_T}$ac_ct_MINGWAR" >&6; }
13143 else
13144 { echo "$as_me:$LINENO: result: no" >&5
13145 echo "${ECHO_T}no" >&6; }
13148 if test "x$ac_ct_MINGWAR" = x; then
13149 MINGWAR="false"
13150 else
13151 case $cross_compiling:$ac_tool_warned in
13152 yes:)
13153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13154 whose name does not start with the host triplet. If you think this
13155 configuration is useful to you, please write to autoconf@gnu.org." >&5
13156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13157 whose name does not start with the host triplet. If you think this
13158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13159 ac_tool_warned=yes ;;
13160 esac
13161 MINGWAR=$ac_ct_MINGWAR
13163 else
13164 MINGWAR="$ac_cv_prog_MINGWAR"
13167 if test "$DLLWRAP" = "false"; then
13168 LIBEXT="a"
13169 else
13170 LIBEXT="dll"
13172 IMPLIBEXT="a"
13173 WIN16_FILES=""
13174 WIN16_INSTALL=""
13176 darwin*|macosx*)
13177 DLLEXT=".so"
13178 LIBEXT="dylib"
13179 DLLFLAGS="$DLLFLAGS -fPIC"
13180 LDDLLFLAGS="-bundle -multiply_defined suppress"
13181 LIBWINE_LDFLAGS="-multiply_defined suppress"
13182 LDSHARED="\$(CC) -dynamiclib"
13183 STRIP="$STRIP -u -r"
13184 COREFOUNDATIONLIB="-framework CoreFoundation"
13186 IOKITLIB="-framework IOKit -framework CoreFoundation"
13188 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
13190 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
13191 then
13192 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
13195 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
13196 then
13197 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
13200 case $host_cpu in
13201 *powerpc*)
13202 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
13203 esac
13204 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
13205 then
13206 CARBONLIB="-framework Carbon"
13208 QUARTZFILES='$(QUARTZFILES)'
13212 DLLFLAGS="$DLLFLAGS -fPIC"
13213 DLLEXT=".so"
13214 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13215 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
13216 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219 ac_wine_try_cflags_saved=$CFLAGS
13220 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
13221 cat >conftest.$ac_ext <<_ACEOF
13222 void myfunc() {}
13223 _ACEOF
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } && {
13238 test -z "$ac_c_werror_flag" ||
13239 test ! -s conftest.err
13240 } && test -s conftest$ac_exeext &&
13241 $as_test_x conftest$ac_exeext; then
13242 ac_cv_c_dll_gnuelf="yes"
13243 else
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 ac_cv_c_dll_gnuelf="no"
13250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13251 conftest$ac_exeext conftest.$ac_ext
13252 CFLAGS=$ac_wine_try_cflags_saved
13254 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13255 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
13256 if test "$ac_cv_c_dll_gnuelf" = "yes"
13257 then
13258 LDSHARED="\$(CC) -shared"
13259 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13260 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
13261 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
13262 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 else
13265 ac_wine_try_cflags_saved=$CFLAGS
13266 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
13267 cat >conftest.$ac_ext <<_ACEOF
13268 /* confdefs.h. */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13275 main ()
13279 return 0;
13281 _ACEOF
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (ac_try="$ac_link"
13284 case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_link") 2>conftest.er1
13290 ac_status=$?
13291 grep -v '^ *+' conftest.er1 >conftest.err
13292 rm -f conftest.er1
13293 cat conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } && {
13296 test -z "$ac_c_werror_flag" ||
13297 test ! -s conftest.err
13298 } && test -s conftest$ac_exeext &&
13299 $as_test_x conftest$ac_exeext; then
13300 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
13301 else
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
13308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13309 conftest$ac_exeext conftest.$ac_ext
13310 CFLAGS=$ac_wine_try_cflags_saved
13312 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
13313 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
13314 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
13315 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13316 else
13317 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
13318 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
13319 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321 else
13322 ac_wine_try_cflags_saved=$CFLAGS
13323 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h. */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13332 main ()
13336 return 0;
13338 _ACEOF
13339 rm -f conftest.$ac_objext conftest$ac_exeext
13340 if { (ac_try="$ac_link"
13341 case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13344 esac
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_link") 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && {
13353 test -z "$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13355 } && test -s conftest$ac_exeext &&
13356 $as_test_x conftest$ac_exeext; then
13357 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
13358 else
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13362 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
13365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13366 conftest$ac_exeext conftest.$ac_ext
13367 CFLAGS=$ac_wine_try_cflags_saved
13369 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
13370 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
13371 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
13372 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
13378 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
13379 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
13380 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383 ac_wine_try_cflags_saved=$CFLAGS
13384 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13385 cat >conftest.$ac_ext <<_ACEOF
13386 /* confdefs.h. */
13387 _ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13393 main ()
13397 return 0;
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 test -z "$ac_c_werror_flag" ||
13415 test ! -s conftest.err
13416 } && test -s conftest$ac_exeext &&
13417 $as_test_x conftest$ac_exeext; then
13418 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
13419 else
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13423 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
13426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13427 conftest$ac_exeext conftest.$ac_ext
13428 CFLAGS=$ac_wine_try_cflags_saved
13430 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
13431 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
13432 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
13433 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13437 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
13438 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
13439 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 else
13442 ac_wine_try_cflags_saved=$CFLAGS
13443 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13444 cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h. */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13452 main ()
13456 return 0;
13458 _ACEOF
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (ac_try="$ac_link"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_link") 2>conftest.er1
13467 ac_status=$?
13468 grep -v '^ *+' conftest.er1 >conftest.err
13469 rm -f conftest.er1
13470 cat conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && {
13473 test -z "$ac_c_werror_flag" ||
13474 test ! -s conftest.err
13475 } && test -s conftest$ac_exeext &&
13476 $as_test_x conftest$ac_exeext; then
13477 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
13478 else
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
13485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13486 conftest$ac_exeext conftest.$ac_ext
13487 CFLAGS=$ac_wine_try_cflags_saved
13489 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
13490 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
13491 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
13492 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13496 echo '{ global: *; };' >conftest.map
13497 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
13498 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
13499 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502 ac_wine_try_cflags_saved=$CFLAGS
13503 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13504 cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h. */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13512 main ()
13516 return 0;
13518 _ACEOF
13519 rm -f conftest.$ac_objext conftest$ac_exeext
13520 if { (ac_try="$ac_link"
13521 case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13524 esac
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_link") 2>conftest.er1
13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } && {
13533 test -z "$ac_c_werror_flag" ||
13534 test ! -s conftest.err
13535 } && test -s conftest$ac_exeext &&
13536 $as_test_x conftest$ac_exeext; then
13537 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
13538 else
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
13545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13546 conftest$ac_exeext conftest.$ac_ext
13547 CFLAGS=$ac_wine_try_cflags_saved
13549 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
13550 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
13551 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
13552 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13555 rm -f conftest.map
13557 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
13558 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
13559 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562 ac_wine_try_cflags_saved=$CFLAGS
13563 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13564 cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h. */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13572 main ()
13576 return 0;
13578 _ACEOF
13579 rm -f conftest.$ac_objext conftest$ac_exeext
13580 if { (ac_try="$ac_link"
13581 case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584 esac
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_link") 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } && {
13593 test -z "$ac_c_werror_flag" ||
13594 test ! -s conftest.err
13595 } && test -s conftest$ac_exeext &&
13596 $as_test_x conftest$ac_exeext; then
13597 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 ac_cv_cflags__fPIC__Wl___export_dynamic=no
13605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13606 conftest$ac_exeext conftest.$ac_ext
13607 CFLAGS=$ac_wine_try_cflags_saved
13609 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
13610 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
13611 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
13612 LDEXECFLAGS="-Wl,--export-dynamic"
13617 as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
13618 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
13619 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
13620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623 ac_wine_try_cflags_saved=$CFLAGS
13624 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
13625 cat >conftest.$ac_ext <<_ACEOF
13626 /* confdefs.h. */
13627 _ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h. */
13633 main ()
13637 return 0;
13639 _ACEOF
13640 rm -f conftest.$ac_objext conftest$ac_exeext
13641 if { (ac_try="$ac_link"
13642 case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13645 esac
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_link") 2>conftest.er1
13648 ac_status=$?
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } && {
13654 test -z "$ac_c_werror_flag" ||
13655 test ! -s conftest.err
13656 } && test -s conftest$ac_exeext &&
13657 $as_test_x conftest$ac_exeext; then
13658 eval "$as_ac_var=yes"
13659 else
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13663 eval "$as_ac_var=no"
13666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13667 conftest$ac_exeext conftest.$ac_ext
13668 CFLAGS=$ac_wine_try_cflags_saved
13670 ac_res=`eval echo '${'$as_ac_var'}'`
13671 { echo "$as_me:$LINENO: result: $ac_res" >&5
13672 echo "${ECHO_T}$ac_res" >&6; }
13673 if test `eval echo '${'$as_ac_var'}'` = yes; then
13674 LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
13675 else
13676 as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,-R,\$ORIGIN/../lib" | $as_tr_sh`
13677 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
13678 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... $ECHO_C" >&6; }
13679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13681 else
13682 ac_wine_try_cflags_saved=$CFLAGS
13683 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
13684 cat >conftest.$ac_ext <<_ACEOF
13685 /* confdefs.h. */
13686 _ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13692 main ()
13696 return 0;
13698 _ACEOF
13699 rm -f conftest.$ac_objext conftest$ac_exeext
13700 if { (ac_try="$ac_link"
13701 case "(($ac_try" in
13702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13704 esac
13705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13706 (eval "$ac_link") 2>conftest.er1
13707 ac_status=$?
13708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } && {
13713 test -z "$ac_c_werror_flag" ||
13714 test ! -s conftest.err
13715 } && test -s conftest$ac_exeext &&
13716 $as_test_x conftest$ac_exeext; then
13717 eval "$as_ac_var=yes"
13718 else
13719 echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13722 eval "$as_ac_var=no"
13725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13726 conftest$ac_exeext conftest.$ac_ext
13727 CFLAGS=$ac_wine_try_cflags_saved
13729 ac_res=`eval echo '${'$as_ac_var'}'`
13730 { echo "$as_me:$LINENO: result: $ac_res" >&5
13731 echo "${ECHO_T}$ac_res" >&6; }
13732 if test `eval echo '${'$as_ac_var'}'` = yes; then
13733 LIBWINE_LDFLAGS="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
13739 case $host_cpu in
13740 *i[3456789]86* | x86_64)
13741 { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
13742 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
13743 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 else
13746 ac_wine_try_cflags_saved=$CFLAGS
13747 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
13748 cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h. */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13756 main ()
13760 return 0;
13762 _ACEOF
13763 rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (ac_try="$ac_link"
13765 case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_link") 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } && {
13777 test -z "$ac_c_werror_flag" ||
13778 test ! -s conftest.err
13779 } && test -s conftest$ac_exeext &&
13780 $as_test_x conftest$ac_exeext; then
13781 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
13782 else
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13786 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
13789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13790 conftest$ac_exeext conftest.$ac_ext
13791 CFLAGS=$ac_wine_try_cflags_saved
13793 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
13794 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
13795 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
13796 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
13800 esac
13802 else
13803 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13804 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
13805 if test "${ac_cv_c_dll_unixware+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 else
13808 ac_wine_try_cflags_saved=$CFLAGS
13809 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13810 cat >conftest.$ac_ext <<_ACEOF
13811 void myfunc() {}
13812 _ACEOF
13813 rm -f conftest.$ac_objext conftest$ac_exeext
13814 if { (ac_try="$ac_link"
13815 case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818 esac
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_link") 2>conftest.er1
13821 ac_status=$?
13822 grep -v '^ *+' conftest.er1 >conftest.err
13823 rm -f conftest.er1
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } && {
13827 test -z "$ac_c_werror_flag" ||
13828 test ! -s conftest.err
13829 } && test -s conftest$ac_exeext &&
13830 $as_test_x conftest$ac_exeext; then
13831 ac_cv_c_dll_unixware="yes"
13832 else
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13836 ac_cv_c_dll_unixware="no"
13839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13840 conftest$ac_exeext conftest.$ac_ext
13841 CFLAGS=$ac_wine_try_cflags_saved
13843 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13844 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
13845 if test "$ac_cv_c_dll_unixware" = "yes"
13846 then
13847 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13848 LDDLLFLAGS="-Wl,-G,-B,symbolic"
13850 else
13851 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
13852 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
13853 if test "${ac_cv_c_dll_hpux+set}" = set; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13855 else
13856 ac_wine_try_cflags_saved=$CFLAGS
13857 CFLAGS="$CFLAGS -shared"
13858 cat >conftest.$ac_ext <<_ACEOF
13859 void myfunc() {}
13860 _ACEOF
13861 rm -f conftest.$ac_objext conftest$ac_exeext
13862 if { (ac_try="$ac_link"
13863 case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_link") 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } && {
13875 test -z "$ac_c_werror_flag" ||
13876 test ! -s conftest.err
13877 } && test -s conftest$ac_exeext &&
13878 $as_test_x conftest$ac_exeext; then
13879 ac_cv_c_dll_hpux="yes"
13880 else
13881 echo "$as_me: failed program was:" >&5
13882 sed 's/^/| /' conftest.$ac_ext >&5
13884 ac_cv_c_dll_hpux="no"
13887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13888 conftest$ac_exeext conftest.$ac_ext
13889 CFLAGS=$ac_wine_try_cflags_saved
13891 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
13892 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
13893 if test "$ac_cv_c_dll_hpux" = "yes"
13894 then
13895 LIBEXT="sl"
13896 DLLEXT=".sl"
13897 LDDLLFLAGS="-shared -fPIC"
13898 LDSHARED="\$(CC) -shared"
13903 CROSSTEST=""
13905 if test "$cross_compiling" = "no"
13906 then
13907 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
13909 # Extract the first word of "$ac_prog", so it can be a program name with args.
13910 set dummy $ac_prog; ac_word=$2
13911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13913 if test "${ac_cv_prog_CROSSCC+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916 if test -n "$CROSSCC"; then
13917 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
13918 else
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13922 IFS=$as_save_IFS
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13926 ac_cv_prog_CROSSCC="$ac_prog"
13927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13928 break 2
13930 done
13931 done
13932 IFS=$as_save_IFS
13936 CROSSCC=$ac_cv_prog_CROSSCC
13937 if test -n "$CROSSCC"; then
13938 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
13939 echo "${ECHO_T}$CROSSCC" >&6; }
13940 else
13941 { echo "$as_me:$LINENO: result: no" >&5
13942 echo "${ECHO_T}no" >&6; }
13946 test -n "$CROSSCC" && break
13947 done
13948 test -n "$CROSSCC" || CROSSCC="false"
13950 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
13952 # Extract the first word of "$ac_prog", so it can be a program name with args.
13953 set dummy $ac_prog; ac_word=$2
13954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13956 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959 if test -n "$DLLTOOL"; then
13960 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13961 else
13962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13963 for as_dir in $PATH
13965 IFS=$as_save_IFS
13966 test -z "$as_dir" && as_dir=.
13967 for ac_exec_ext in '' $ac_executable_extensions; do
13968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13969 ac_cv_prog_DLLTOOL="$ac_prog"
13970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13971 break 2
13973 done
13974 done
13975 IFS=$as_save_IFS
13979 DLLTOOL=$ac_cv_prog_DLLTOOL
13980 if test -n "$DLLTOOL"; then
13981 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13982 echo "${ECHO_T}$DLLTOOL" >&6; }
13983 else
13984 { echo "$as_me:$LINENO: result: no" >&5
13985 echo "${ECHO_T}no" >&6; }
13989 test -n "$DLLTOOL" && break
13990 done
13991 test -n "$DLLTOOL" || DLLTOOL="false"
13993 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
13995 # Extract the first word of "$ac_prog", so it can be a program name with args.
13996 set dummy $ac_prog; ac_word=$2
13997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13999 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 else
14002 if test -n "$CROSSWINDRES"; then
14003 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14004 else
14005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14006 for as_dir in $PATH
14008 IFS=$as_save_IFS
14009 test -z "$as_dir" && as_dir=.
14010 for ac_exec_ext in '' $ac_executable_extensions; do
14011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14012 ac_cv_prog_CROSSWINDRES="$ac_prog"
14013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14014 break 2
14016 done
14017 done
14018 IFS=$as_save_IFS
14022 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14023 if test -n "$CROSSWINDRES"; then
14024 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14025 echo "${ECHO_T}$CROSSWINDRES" >&6; }
14026 else
14027 { echo "$as_me:$LINENO: result: no" >&5
14028 echo "${ECHO_T}no" >&6; }
14032 test -n "$CROSSWINDRES" && break
14033 done
14034 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14036 for ac_prog in i586-mingw32msvc-ar i386-mingw32msvc-ar i386-mingw32-ar mingw32-ar mingw-ar
14038 # Extract the first word of "$ac_prog", so it can be a program name with args.
14039 set dummy $ac_prog; ac_word=$2
14040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14042 if test "${ac_cv_prog_MINGWAR+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045 if test -n "$MINGWAR"; then
14046 ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
14047 else
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14055 ac_cv_prog_MINGWAR="$ac_prog"
14056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14059 done
14060 done
14061 IFS=$as_save_IFS
14065 MINGWAR=$ac_cv_prog_MINGWAR
14066 if test -n "$MINGWAR"; then
14067 { echo "$as_me:$LINENO: result: $MINGWAR" >&5
14068 echo "${ECHO_T}$MINGWAR" >&6; }
14069 else
14070 { echo "$as_me:$LINENO: result: no" >&5
14071 echo "${ECHO_T}no" >&6; }
14075 test -n "$MINGWAR" && break
14076 done
14077 test -n "$MINGWAR" || MINGWAR="false"
14079 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14082 esac
14084 if test "$LIBEXT" = "a"; then
14085 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14086 It is currently not possible to build Wine without shared library
14087 (.so) support to allow transparent switch between .so and .dll files.
14088 If you are using Linux, you will need a newer binutils.
14089 " >&5
14090 echo "$as_me: error: could not find a way to build shared libraries.
14091 It is currently not possible to build Wine without shared library
14092 (.so) support to allow transparent switch between .so and .dll files.
14093 If you are using Linux, you will need a newer binutils.
14094 " >&2;}
14095 { (exit 1); exit 1; }; }
14098 case $build_os in
14099 cygwin*|mingw32*)
14100 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
14102 darwin*|macosx*)
14103 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
14106 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
14108 esac
14110 case $host_os in
14111 mingw32*)
14112 CRTLIBS="-lmsvcrt"
14114 SOCKETLIBS="-lws2_32"
14117 esac
14119 MAIN_BINARY="wine-pthread"
14120 case $host_cpu in
14121 *i[3456789]86*)
14122 case $host_os in
14123 linux* | k*bsd*-gnu)
14124 MAIN_BINARY="wine-glibc"
14126 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
14128 esac
14130 esac
14133 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14134 then
14135 # Extract the first word of "ldd", so it can be a program name with args.
14136 set dummy ldd; ac_word=$2
14137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14139 if test "${ac_cv_path_LDD+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142 case $LDD in
14143 [\\/]* | ?:[\\/]*)
14144 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14148 as_dummy="/sbin:/usr/sbin:$PATH"
14149 for as_dir in $as_dummy
14151 IFS=$as_save_IFS
14152 test -z "$as_dir" && as_dir=.
14153 for ac_exec_ext in '' $ac_executable_extensions; do
14154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14155 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14157 break 2
14159 done
14160 done
14161 IFS=$as_save_IFS
14163 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14165 esac
14167 LDD=$ac_cv_path_LDD
14168 if test -n "$LDD"; then
14169 { echo "$as_me:$LINENO: result: $LDD" >&5
14170 echo "${ECHO_T}$LDD" >&6; }
14171 else
14172 { echo "$as_me:$LINENO: result: no" >&5
14173 echo "${ECHO_T}no" >&6; }
14177 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14178 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
14179 if test "${ac_cv_lib_soname_X11+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182 ac_get_soname_save_LIBS=$LIBS
14183 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14184 cat >conftest.$ac_ext <<_ACEOF
14185 /* confdefs.h. */
14186 _ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h. */
14191 /* Override any GCC internal prototype to avoid an error.
14192 Use char because int might match the return type of a GCC
14193 builtin and then its argument prototype would still apply. */
14194 #ifdef __cplusplus
14195 extern "C"
14196 #endif
14197 char XCreateWindow ();
14199 main ()
14201 return XCreateWindow ();
14203 return 0;
14205 _ACEOF
14206 rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (ac_try="$ac_link"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } && {
14220 test -z "$ac_c_werror_flag" ||
14221 test ! -s conftest.err
14222 } && test -s conftest$ac_exeext &&
14223 $as_test_x conftest$ac_exeext; then
14224 case "$LIBEXT" in
14225 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'` ;;
14226 so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14227 esac
14228 if test "x$ac_cv_lib_soname_X11" = "x"
14229 then
14230 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14232 else
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14236 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14240 conftest$ac_exeext conftest.$ac_ext
14241 LIBS=$ac_get_soname_save_LIBS
14243 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14244 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
14245 if test "${ac_cv_lib_soname_X11+set}" = set; then
14247 cat >>confdefs.h <<_ACEOF
14248 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14249 _ACEOF
14253 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
14254 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
14255 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 else
14258 ac_get_soname_save_LIBS=$LIBS
14259 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14260 cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h. */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14267 /* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */
14270 #ifdef __cplusplus
14271 extern "C"
14272 #endif
14273 char XextCreateExtension ();
14275 main ()
14277 return XextCreateExtension ();
14279 return 0;
14281 _ACEOF
14282 rm -f conftest.$ac_objext conftest$ac_exeext
14283 if { (ac_try="$ac_link"
14284 case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_link") 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } && {
14296 test -z "$ac_c_werror_flag" ||
14297 test ! -s conftest.err
14298 } && test -s conftest$ac_exeext &&
14299 $as_test_x conftest$ac_exeext; then
14300 case "$LIBEXT" in
14301 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'` ;;
14302 so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14303 esac
14304 if test "x$ac_cv_lib_soname_Xext" = "x"
14305 then
14306 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14308 else
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14312 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14316 conftest$ac_exeext conftest.$ac_ext
14317 LIBS=$ac_get_soname_save_LIBS
14319 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14320 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
14321 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14323 cat >>confdefs.h <<_ACEOF
14324 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14325 _ACEOF
14329 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
14330 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
14331 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 else
14334 ac_get_soname_save_LIBS=$LIBS
14335 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14336 cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h. */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14343 /* Override any GCC internal prototype to avoid an error.
14344 Use char because int might match the return type of a GCC
14345 builtin and then its argument prototype would still apply. */
14346 #ifdef __cplusplus
14347 extern "C"
14348 #endif
14349 char XOpenDevice ();
14351 main ()
14353 return XOpenDevice ();
14355 return 0;
14357 _ACEOF
14358 rm -f conftest.$ac_objext conftest$ac_exeext
14359 if { (ac_try="$ac_link"
14360 case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14363 esac
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_link") 2>conftest.er1
14366 ac_status=$?
14367 grep -v '^ *+' conftest.er1 >conftest.err
14368 rm -f conftest.er1
14369 cat conftest.err >&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && {
14372 test -z "$ac_c_werror_flag" ||
14373 test ! -s conftest.err
14374 } && test -s conftest$ac_exeext &&
14375 $as_test_x conftest$ac_exeext; then
14376 case "$LIBEXT" in
14377 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'` ;;
14378 so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14379 esac
14380 if test "x$ac_cv_lib_soname_Xi" = "x"
14381 then
14382 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14384 else
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14392 conftest$ac_exeext conftest.$ac_ext
14393 LIBS=$ac_get_soname_save_LIBS
14395 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14396 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
14397 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14399 cat >>confdefs.h <<_ACEOF
14400 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14401 _ACEOF
14405 { echo "$as_me:$LINENO: checking for -lXinerama soname" >&5
14406 echo $ECHO_N "checking for -lXinerama soname... $ECHO_C" >&6; }
14407 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 else
14410 ac_get_soname_save_LIBS=$LIBS
14411 LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14412 cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h. */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14419 /* Override any GCC internal prototype to avoid an error.
14420 Use char because int might match the return type of a GCC
14421 builtin and then its argument prototype would still apply. */
14422 #ifdef __cplusplus
14423 extern "C"
14424 #endif
14425 char XineramaQueryScreens ();
14427 main ()
14429 return XineramaQueryScreens ();
14431 return 0;
14433 _ACEOF
14434 rm -f conftest.$ac_objext conftest$ac_exeext
14435 if { (ac_try="$ac_link"
14436 case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14439 esac
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_link") 2>conftest.er1
14442 ac_status=$?
14443 grep -v '^ *+' conftest.er1 >conftest.err
14444 rm -f conftest.er1
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } && {
14448 test -z "$ac_c_werror_flag" ||
14449 test ! -s conftest.err
14450 } && test -s conftest$ac_exeext &&
14451 $as_test_x conftest$ac_exeext; then
14452 case "$LIBEXT" in
14453 dylib) ac_cv_lib_soname_Xinerama=`otool -L conftest$ac_exeext | grep libXinerama\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXinerama\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14454 so) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep libXinerama\\.so | sed -e "s/^.*\(libXinerama\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14455 esac
14456 if test "x$ac_cv_lib_soname_Xinerama" = "x"
14457 then
14458 ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14460 else
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14464 ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14468 conftest$ac_exeext conftest.$ac_ext
14469 LIBS=$ac_get_soname_save_LIBS
14471 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
14472 echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
14473 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14475 cat >>confdefs.h <<_ACEOF
14476 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
14477 _ACEOF
14481 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14482 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
14483 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486 ac_get_soname_save_LIBS=$LIBS
14487 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14488 cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h. */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 /* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
14498 #ifdef __cplusplus
14499 extern "C"
14500 #endif
14501 char XRenderQueryExtension ();
14503 main ()
14505 return XRenderQueryExtension ();
14507 return 0;
14509 _ACEOF
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (ac_try="$ac_link"
14512 case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_link") 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest$ac_exeext &&
14527 $as_test_x conftest$ac_exeext; then
14528 case "$LIBEXT" in
14529 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'` ;;
14530 so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14531 esac
14532 if test "x$ac_cv_lib_soname_Xrender" = "x"
14533 then
14534 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14536 else
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14544 conftest$ac_exeext conftest.$ac_ext
14545 LIBS=$ac_get_soname_save_LIBS
14547 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14548 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
14549 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14551 cat >>confdefs.h <<_ACEOF
14552 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14553 _ACEOF
14557 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14558 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
14559 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562 ac_get_soname_save_LIBS=$LIBS
14563 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14564 cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h. */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14571 /* Override any GCC internal prototype to avoid an error.
14572 Use char because int might match the return type of a GCC
14573 builtin and then its argument prototype would still apply. */
14574 #ifdef __cplusplus
14575 extern "C"
14576 #endif
14577 char XRRQueryExtension ();
14579 main ()
14581 return XRRQueryExtension ();
14583 return 0;
14585 _ACEOF
14586 rm -f conftest.$ac_objext conftest$ac_exeext
14587 if { (ac_try="$ac_link"
14588 case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14591 esac
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_link") 2>conftest.er1
14594 ac_status=$?
14595 grep -v '^ *+' conftest.er1 >conftest.err
14596 rm -f conftest.er1
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } && {
14600 test -z "$ac_c_werror_flag" ||
14601 test ! -s conftest.err
14602 } && test -s conftest$ac_exeext &&
14603 $as_test_x conftest$ac_exeext; then
14604 case "$LIBEXT" in
14605 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'` ;;
14606 so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14607 esac
14608 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14609 then
14610 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14612 else
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14620 conftest$ac_exeext conftest.$ac_ext
14621 LIBS=$ac_get_soname_save_LIBS
14623 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14624 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
14625 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14627 cat >>confdefs.h <<_ACEOF
14628 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14629 _ACEOF
14633 { echo "$as_me:$LINENO: checking for -lXcursor soname" >&5
14634 echo $ECHO_N "checking for -lXcursor soname... $ECHO_C" >&6; }
14635 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638 ac_get_soname_save_LIBS=$LIBS
14639 LIBS="-lXcursor $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14640 cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h. */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14647 /* Override any GCC internal prototype to avoid an error.
14648 Use char because int might match the return type of a GCC
14649 builtin and then its argument prototype would still apply. */
14650 #ifdef __cplusplus
14651 extern "C"
14652 #endif
14653 char XcursorImageLoadCursor ();
14655 main ()
14657 return XcursorImageLoadCursor ();
14659 return 0;
14661 _ACEOF
14662 rm -f conftest.$ac_objext conftest$ac_exeext
14663 if { (ac_try="$ac_link"
14664 case "(($ac_try" in
14665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14666 *) ac_try_echo=$ac_try;;
14667 esac
14668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14669 (eval "$ac_link") 2>conftest.er1
14670 ac_status=$?
14671 grep -v '^ *+' conftest.er1 >conftest.err
14672 rm -f conftest.er1
14673 cat conftest.err >&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } && {
14676 test -z "$ac_c_werror_flag" ||
14677 test ! -s conftest.err
14678 } && test -s conftest$ac_exeext &&
14679 $as_test_x conftest$ac_exeext; then
14680 case "$LIBEXT" in
14681 dylib) ac_cv_lib_soname_Xcursor=`otool -L conftest$ac_exeext | grep libXcursor\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXcursor\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14682 so) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep libXcursor\\.so | sed -e "s/^.*\(libXcursor\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14683 esac
14684 if test "x$ac_cv_lib_soname_Xcursor" = "x"
14685 then
14686 ac_cv_lib_soname_Xcursor="libXcursor.$LIBEXT"
14688 else
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 ac_cv_lib_soname_Xcursor="libXcursor.$LIBEXT"
14695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14696 conftest$ac_exeext conftest.$ac_ext
14697 LIBS=$ac_get_soname_save_LIBS
14699 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xcursor" >&5
14700 echo "${ECHO_T}$ac_cv_lib_soname_Xcursor" >&6; }
14701 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then
14703 cat >>confdefs.h <<_ACEOF
14704 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
14705 _ACEOF
14709 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14710 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
14711 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 else
14714 ac_get_soname_save_LIBS=$LIBS
14715 LIBS="-lfreetype $X_LIBS $LIBS"
14716 cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h. */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14723 /* Override any GCC internal prototype to avoid an error.
14724 Use char because int might match the return type of a GCC
14725 builtin and then its argument prototype would still apply. */
14726 #ifdef __cplusplus
14727 extern "C"
14728 #endif
14729 char FT_Init_FreeType ();
14731 main ()
14733 return FT_Init_FreeType ();
14735 return 0;
14737 _ACEOF
14738 rm -f conftest.$ac_objext conftest$ac_exeext
14739 if { (ac_try="$ac_link"
14740 case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14743 esac
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_link") 2>conftest.er1
14746 ac_status=$?
14747 grep -v '^ *+' conftest.er1 >conftest.err
14748 rm -f conftest.er1
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } && {
14752 test -z "$ac_c_werror_flag" ||
14753 test ! -s conftest.err
14754 } && test -s conftest$ac_exeext &&
14755 $as_test_x conftest$ac_exeext; then
14756 case "$LIBEXT" in
14757 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'` ;;
14758 so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14759 esac
14760 if test "x$ac_cv_lib_soname_freetype" = "x"
14761 then
14762 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14764 else
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14768 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14772 conftest$ac_exeext conftest.$ac_ext
14773 LIBS=$ac_get_soname_save_LIBS
14775 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14776 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
14777 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14779 cat >>confdefs.h <<_ACEOF
14780 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14781 _ACEOF
14785 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
14786 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
14787 if test "${ac_cv_lib_soname_GL+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 else
14790 ac_get_soname_save_LIBS=$LIBS
14791 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14792 cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h. */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14799 /* Override any GCC internal prototype to avoid an error.
14800 Use char because int might match the return type of a GCC
14801 builtin and then its argument prototype would still apply. */
14802 #ifdef __cplusplus
14803 extern "C"
14804 #endif
14805 char glXQueryExtension ();
14807 main ()
14809 return glXQueryExtension ();
14811 return 0;
14813 _ACEOF
14814 rm -f conftest.$ac_objext conftest$ac_exeext
14815 if { (ac_try="$ac_link"
14816 case "(($ac_try" in
14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14819 esac
14820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821 (eval "$ac_link") 2>conftest.er1
14822 ac_status=$?
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } && {
14828 test -z "$ac_c_werror_flag" ||
14829 test ! -s conftest.err
14830 } && test -s conftest$ac_exeext &&
14831 $as_test_x conftest$ac_exeext; then
14832 case "$LIBEXT" in
14833 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'` ;;
14834 so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14835 esac
14836 if test "x$ac_cv_lib_soname_GL" = "x"
14837 then
14838 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14840 else
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14844 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14848 conftest$ac_exeext conftest.$ac_ext
14849 LIBS=$ac_get_soname_save_LIBS
14851 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14852 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
14853 if test "${ac_cv_lib_soname_GL+set}" = set; then
14855 cat >>confdefs.h <<_ACEOF
14856 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14857 _ACEOF
14861 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
14862 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
14863 if test "${ac_cv_lib_soname_hal+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 else
14866 ac_get_soname_save_LIBS=$LIBS
14867 LIBS="-lhal $LIBS"
14868 cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h. */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14875 /* Override any GCC internal prototype to avoid an error.
14876 Use char because int might match the return type of a GCC
14877 builtin and then its argument prototype would still apply. */
14878 #ifdef __cplusplus
14879 extern "C"
14880 #endif
14881 char libhal_ctx_new ();
14883 main ()
14885 return libhal_ctx_new ();
14887 return 0;
14889 _ACEOF
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (ac_try="$ac_link"
14892 case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14895 esac
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_link") 2>conftest.er1
14898 ac_status=$?
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } && {
14904 test -z "$ac_c_werror_flag" ||
14905 test ! -s conftest.err
14906 } && test -s conftest$ac_exeext &&
14907 $as_test_x conftest$ac_exeext; then
14908 case "$LIBEXT" in
14909 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'` ;;
14910 so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14911 esac
14912 if test "x$ac_cv_lib_soname_hal" = "x"
14913 then
14914 ac_cv_lib_soname_hal="libhal.$LIBEXT"
14916 else
14917 echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 ac_cv_lib_soname_hal="libhal.$LIBEXT"
14923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14924 conftest$ac_exeext conftest.$ac_ext
14925 LIBS=$ac_get_soname_save_LIBS
14927 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
14928 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
14929 if test "${ac_cv_lib_soname_hal+set}" = set; then
14931 cat >>confdefs.h <<_ACEOF
14932 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
14933 _ACEOF
14937 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14938 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
14939 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 else
14942 ac_get_soname_save_LIBS=$LIBS
14943 LIBS="-ltxc_dxtn $LIBS"
14944 cat >conftest.$ac_ext <<_ACEOF
14945 /* confdefs.h. */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14951 /* Override any GCC internal prototype to avoid an error.
14952 Use char because int might match the return type of a GCC
14953 builtin and then its argument prototype would still apply. */
14954 #ifdef __cplusplus
14955 extern "C"
14956 #endif
14957 char fetch_2d_texel_rgba_dxt1 ();
14959 main ()
14961 return fetch_2d_texel_rgba_dxt1 ();
14963 return 0;
14965 _ACEOF
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_link") 2>conftest.er1
14974 ac_status=$?
14975 grep -v '^ *+' conftest.er1 >conftest.err
14976 rm -f conftest.er1
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } && {
14980 test -z "$ac_c_werror_flag" ||
14981 test ! -s conftest.err
14982 } && test -s conftest$ac_exeext &&
14983 $as_test_x conftest$ac_exeext; then
14984 case "$LIBEXT" in
14985 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'` ;;
14986 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'` ;;
14987 esac
14988 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14989 then
14990 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14992 else
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15000 conftest$ac_exeext conftest.$ac_ext
15001 LIBS=$ac_get_soname_save_LIBS
15003 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15004 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
15005 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15007 cat >>confdefs.h <<_ACEOF
15008 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15009 _ACEOF
15013 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
15014 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
15015 if test "${ac_cv_lib_soname_cups+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018 ac_get_soname_save_LIBS=$LIBS
15019 LIBS="-lcups $LIBS"
15020 cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h. */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15027 /* Override any GCC internal prototype to avoid an error.
15028 Use char because int might match the return type of a GCC
15029 builtin and then its argument prototype would still apply. */
15030 #ifdef __cplusplus
15031 extern "C"
15032 #endif
15033 char cupsGetDefault ();
15035 main ()
15037 return cupsGetDefault ();
15039 return 0;
15041 _ACEOF
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (ac_try="$ac_link"
15044 case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_link") 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } && {
15056 test -z "$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15058 } && test -s conftest$ac_exeext &&
15059 $as_test_x conftest$ac_exeext; then
15060 case "$LIBEXT" in
15061 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'` ;;
15062 so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15063 esac
15064 if test "x$ac_cv_lib_soname_cups" = "x"
15065 then
15066 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15068 else
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15076 conftest$ac_exeext conftest.$ac_ext
15077 LIBS=$ac_get_soname_save_LIBS
15079 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15080 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
15081 if test "${ac_cv_lib_soname_cups+set}" = set; then
15083 cat >>confdefs.h <<_ACEOF
15084 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15085 _ACEOF
15089 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
15090 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
15091 if test "${ac_cv_lib_soname_jack+set}" = set; then
15092 echo $ECHO_N "(cached) $ECHO_C" >&6
15093 else
15094 ac_get_soname_save_LIBS=$LIBS
15095 LIBS="-ljack $LIBS"
15096 cat >conftest.$ac_ext <<_ACEOF
15097 /* confdefs.h. */
15098 _ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15103 /* Override any GCC internal prototype to avoid an error.
15104 Use char because int might match the return type of a GCC
15105 builtin and then its argument prototype would still apply. */
15106 #ifdef __cplusplus
15107 extern "C"
15108 #endif
15109 char jack_client_new ();
15111 main ()
15113 return jack_client_new ();
15115 return 0;
15117 _ACEOF
15118 rm -f conftest.$ac_objext conftest$ac_exeext
15119 if { (ac_try="$ac_link"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_link") 2>conftest.er1
15126 ac_status=$?
15127 grep -v '^ *+' conftest.er1 >conftest.err
15128 rm -f conftest.er1
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } && {
15132 test -z "$ac_c_werror_flag" ||
15133 test ! -s conftest.err
15134 } && test -s conftest$ac_exeext &&
15135 $as_test_x conftest$ac_exeext; then
15136 case "$LIBEXT" in
15137 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'` ;;
15138 so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15139 esac
15140 if test "x$ac_cv_lib_soname_jack" = "x"
15141 then
15142 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15144 else
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15148 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15152 conftest$ac_exeext conftest.$ac_ext
15153 LIBS=$ac_get_soname_save_LIBS
15155 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15156 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
15157 if test "${ac_cv_lib_soname_jack+set}" = set; then
15159 cat >>confdefs.h <<_ACEOF
15160 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15161 _ACEOF
15165 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15166 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
15167 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170 ac_get_soname_save_LIBS=$LIBS
15171 LIBS="-lfontconfig $LIBS"
15172 cat >conftest.$ac_ext <<_ACEOF
15173 /* confdefs.h. */
15174 _ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h. */
15179 /* Override any GCC internal prototype to avoid an error.
15180 Use char because int might match the return type of a GCC
15181 builtin and then its argument prototype would still apply. */
15182 #ifdef __cplusplus
15183 extern "C"
15184 #endif
15185 char FcInit ();
15187 main ()
15189 return FcInit ();
15191 return 0;
15193 _ACEOF
15194 rm -f conftest.$ac_objext conftest$ac_exeext
15195 if { (ac_try="$ac_link"
15196 case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15199 esac
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_link") 2>conftest.er1
15202 ac_status=$?
15203 grep -v '^ *+' conftest.er1 >conftest.err
15204 rm -f conftest.er1
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } && {
15208 test -z "$ac_c_werror_flag" ||
15209 test ! -s conftest.err
15210 } && test -s conftest$ac_exeext &&
15211 $as_test_x conftest$ac_exeext; then
15212 case "$LIBEXT" in
15213 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'` ;;
15214 so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15215 esac
15216 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15217 then
15218 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15220 else
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15224 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15228 conftest$ac_exeext conftest.$ac_ext
15229 LIBS=$ac_get_soname_save_LIBS
15231 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15232 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
15233 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15235 cat >>confdefs.h <<_ACEOF
15236 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15237 _ACEOF
15241 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
15242 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
15243 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 else
15246 ac_get_soname_save_LIBS=$LIBS
15247 LIBS="-lssl $LIBS"
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15255 /* Override any GCC internal prototype to avoid an error.
15256 Use char because int might match the return type of a GCC
15257 builtin and then its argument prototype would still apply. */
15258 #ifdef __cplusplus
15259 extern "C"
15260 #endif
15261 char SSL_library_init ();
15263 main ()
15265 return SSL_library_init ();
15267 return 0;
15269 _ACEOF
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (ac_try="$ac_link"
15272 case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275 esac
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_link") 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } && {
15284 test -z "$ac_c_werror_flag" ||
15285 test ! -s conftest.err
15286 } && test -s conftest$ac_exeext &&
15287 $as_test_x conftest$ac_exeext; then
15288 case "$LIBEXT" in
15289 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'` ;;
15290 so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15291 esac
15292 if test "x$ac_cv_lib_soname_ssl" = "x"
15293 then
15294 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15296 else
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15304 conftest$ac_exeext conftest.$ac_ext
15305 LIBS=$ac_get_soname_save_LIBS
15307 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15308 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
15309 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15311 cat >>confdefs.h <<_ACEOF
15312 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15313 _ACEOF
15317 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15318 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
15319 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322 ac_get_soname_save_LIBS=$LIBS
15323 LIBS="-lcrypto $LIBS"
15324 cat >conftest.$ac_ext <<_ACEOF
15325 /* confdefs.h. */
15326 _ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15331 /* Override any GCC internal prototype to avoid an error.
15332 Use char because int might match the return type of a GCC
15333 builtin and then its argument prototype would still apply. */
15334 #ifdef __cplusplus
15335 extern "C"
15336 #endif
15337 char BIO_new_socket ();
15339 main ()
15341 return BIO_new_socket ();
15343 return 0;
15345 _ACEOF
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (ac_try="$ac_link"
15348 case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351 esac
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_link") 2>conftest.er1
15354 ac_status=$?
15355 grep -v '^ *+' conftest.er1 >conftest.err
15356 rm -f conftest.er1
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } && {
15360 test -z "$ac_c_werror_flag" ||
15361 test ! -s conftest.err
15362 } && test -s conftest$ac_exeext &&
15363 $as_test_x conftest$ac_exeext; then
15364 case "$LIBEXT" in
15365 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'` ;;
15366 so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15367 esac
15368 if test "x$ac_cv_lib_soname_crypto" = "x"
15369 then
15370 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15372 else
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15380 conftest$ac_exeext conftest.$ac_ext
15381 LIBS=$ac_get_soname_save_LIBS
15383 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15384 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
15385 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15387 cat >>confdefs.h <<_ACEOF
15388 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15389 _ACEOF
15393 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15394 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
15395 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 else
15398 ac_get_soname_save_LIBS=$LIBS
15399 LIBS="-lncurses $LIBS"
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h. */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15407 /* Override any GCC internal prototype to avoid an error.
15408 Use char because int might match the return type of a GCC
15409 builtin and then its argument prototype would still apply. */
15410 #ifdef __cplusplus
15411 extern "C"
15412 #endif
15413 char waddch ();
15415 main ()
15417 return waddch ();
15419 return 0;
15421 _ACEOF
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (ac_try="$ac_link"
15424 case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15427 esac
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_link") 2>conftest.er1
15430 ac_status=$?
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -f conftest.er1
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } && {
15436 test -z "$ac_c_werror_flag" ||
15437 test ! -s conftest.err
15438 } && test -s conftest$ac_exeext &&
15439 $as_test_x conftest$ac_exeext; then
15440 case "$LIBEXT" in
15441 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'` ;;
15442 so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15443 esac
15444 if test "x$ac_cv_lib_soname_ncurses" = "x"
15445 then
15446 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15448 else
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15456 conftest$ac_exeext conftest.$ac_ext
15457 LIBS=$ac_get_soname_save_LIBS
15459 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15460 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
15461 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15465 _ACEOF
15469 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15470 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
15471 if test "${ac_cv_lib_soname_curses+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474 ac_get_soname_save_LIBS=$LIBS
15475 LIBS="-lcurses $LIBS"
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. */
15483 /* Override any GCC internal prototype to avoid an error.
15484 Use char because int might match the return type of a GCC
15485 builtin and then its argument prototype would still apply. */
15486 #ifdef __cplusplus
15487 extern "C"
15488 #endif
15489 char waddch ();
15491 main ()
15493 return waddch ();
15495 return 0;
15497 _ACEOF
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (ac_try="$ac_link"
15500 case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_link") 2>conftest.er1
15506 ac_status=$?
15507 grep -v '^ *+' conftest.er1 >conftest.err
15508 rm -f conftest.er1
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } && {
15512 test -z "$ac_c_werror_flag" ||
15513 test ! -s conftest.err
15514 } && test -s conftest$ac_exeext &&
15515 $as_test_x conftest$ac_exeext; then
15516 case "$LIBEXT" in
15517 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'` ;;
15518 so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15519 esac
15520 if test "x$ac_cv_lib_soname_curses" = "x"
15521 then
15522 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15524 else
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15532 conftest$ac_exeext conftest.$ac_ext
15533 LIBS=$ac_get_soname_save_LIBS
15535 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15536 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
15537 if test "${ac_cv_lib_soname_curses+set}" = set; then
15539 cat >>confdefs.h <<_ACEOF
15540 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15541 _ACEOF
15545 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15546 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
15547 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 else
15550 ac_get_soname_save_LIBS=$LIBS
15551 LIBS="-ljpeg $LIBS"
15552 cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h. */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15559 /* Override any GCC internal prototype to avoid an error.
15560 Use char because int might match the return type of a GCC
15561 builtin and then its argument prototype would still apply. */
15562 #ifdef __cplusplus
15563 extern "C"
15564 #endif
15565 char jpeg_start_decompress ();
15567 main ()
15569 return jpeg_start_decompress ();
15571 return 0;
15573 _ACEOF
15574 rm -f conftest.$ac_objext conftest$ac_exeext
15575 if { (ac_try="$ac_link"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_link") 2>conftest.er1
15582 ac_status=$?
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } && {
15588 test -z "$ac_c_werror_flag" ||
15589 test ! -s conftest.err
15590 } && test -s conftest$ac_exeext &&
15591 $as_test_x conftest$ac_exeext; then
15592 case "$LIBEXT" in
15593 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'` ;;
15594 so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15595 esac
15596 if test "x$ac_cv_lib_soname_jpeg" = "x"
15597 then
15598 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15600 else
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15608 conftest$ac_exeext conftest.$ac_ext
15609 LIBS=$ac_get_soname_save_LIBS
15611 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15612 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
15613 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15615 cat >>confdefs.h <<_ACEOF
15616 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15617 _ACEOF
15621 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15622 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
15623 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626 ac_get_soname_save_LIBS=$LIBS
15627 LIBS="-lcapi20 $LIBS"
15628 cat >conftest.$ac_ext <<_ACEOF
15629 /* confdefs.h. */
15630 _ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15635 /* Override any GCC internal prototype to avoid an error.
15636 Use char because int might match the return type of a GCC
15637 builtin and then its argument prototype would still apply. */
15638 #ifdef __cplusplus
15639 extern "C"
15640 #endif
15641 char capi20_isinstalled ();
15643 main ()
15645 return capi20_isinstalled ();
15647 return 0;
15649 _ACEOF
15650 rm -f conftest.$ac_objext conftest$ac_exeext
15651 if { (ac_try="$ac_link"
15652 case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15655 esac
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_link") 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest$ac_exeext &&
15667 $as_test_x conftest$ac_exeext; then
15668 case "$LIBEXT" in
15669 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'` ;;
15670 so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15671 esac
15672 if test "x$ac_cv_lib_soname_capi20" = "x"
15673 then
15674 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15676 else
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15680 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15684 conftest$ac_exeext conftest.$ac_ext
15685 LIBS=$ac_get_soname_save_LIBS
15687 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15688 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
15689 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15691 cat >>confdefs.h <<_ACEOF
15692 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15693 _ACEOF
15697 { echo "$as_me:$LINENO: checking for -lsane soname" >&5
15698 echo $ECHO_N "checking for -lsane soname... $ECHO_C" >&6; }
15699 if test "${ac_cv_lib_soname_sane+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 else
15702 ac_get_soname_save_LIBS=$LIBS
15703 LIBS="-lsane $LIBS"
15704 cat >conftest.$ac_ext <<_ACEOF
15705 /* confdefs.h. */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15711 /* Override any GCC internal prototype to avoid an error.
15712 Use char because int might match the return type of a GCC
15713 builtin and then its argument prototype would still apply. */
15714 #ifdef __cplusplus
15715 extern "C"
15716 #endif
15717 char sane_init ();
15719 main ()
15721 return sane_init ();
15723 return 0;
15725 _ACEOF
15726 rm -f conftest.$ac_objext conftest$ac_exeext
15727 if { (ac_try="$ac_link"
15728 case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15731 esac
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_link") 2>conftest.er1
15734 ac_status=$?
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } && {
15740 test -z "$ac_c_werror_flag" ||
15741 test ! -s conftest.err
15742 } && test -s conftest$ac_exeext &&
15743 $as_test_x conftest$ac_exeext; then
15744 case "$LIBEXT" in
15745 dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep libsane\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15746 so) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep libsane\\.so | sed -e "s/^.*\(libsane\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15747 esac
15748 if test "x$ac_cv_lib_soname_sane" = "x"
15749 then
15750 ac_cv_lib_soname_sane="libsane.$LIBEXT"
15752 else
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 ac_cv_lib_soname_sane="libsane.$LIBEXT"
15759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15760 conftest$ac_exeext conftest.$ac_ext
15761 LIBS=$ac_get_soname_save_LIBS
15763 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_sane" >&5
15764 echo "${ECHO_T}$ac_cv_lib_soname_sane" >&6; }
15765 if test "${ac_cv_lib_soname_sane+set}" = set; then
15767 cat >>confdefs.h <<_ACEOF
15768 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
15769 _ACEOF
15837 for ac_func in \
15838 _pclose \
15839 _popen \
15840 _snprintf \
15841 _spawnvp \
15842 _stricmp \
15843 _strnicmp \
15844 _vsnprintf \
15845 asctime_r \
15846 chsize \
15847 clone \
15848 dlopen \
15849 epoll_create \
15850 ffs \
15851 finite \
15852 fork \
15853 fpclass \
15854 fstatfs \
15855 fstatvfs \
15856 ftruncate \
15857 futimes \
15858 futimesat \
15859 getdirentries \
15860 getopt_long \
15861 getpagesize \
15862 getpwuid \
15863 gettid \
15864 gettimeofday \
15865 getuid \
15866 kqueue \
15867 lstat \
15868 memmove \
15869 mmap \
15870 pclose \
15871 poll \
15872 popen \
15873 prctl \
15874 pread \
15875 pwrite \
15876 readlink \
15877 rfork \
15878 sched_yield \
15879 select \
15880 setrlimit \
15881 settimeofday \
15882 sigaltstack \
15883 sigprocmask \
15884 snprintf \
15885 spawnvp \
15886 statfs \
15887 statvfs \
15888 strcasecmp \
15889 strerror \
15890 strncasecmp \
15891 strtold \
15892 tcgetattr \
15893 timegm \
15894 usleep \
15895 vsnprintf \
15896 wait4 \
15897 waitpid \
15900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 else
15906 cat >conftest.$ac_ext <<_ACEOF
15907 /* confdefs.h. */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15914 #define $ac_func innocuous_$ac_func
15916 /* System header to define __stub macros and hopefully few prototypes,
15917 which can conflict with char $ac_func (); below.
15918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15919 <limits.h> exists even on freestanding compilers. */
15921 #ifdef __STDC__
15922 # include <limits.h>
15923 #else
15924 # include <assert.h>
15925 #endif
15927 #undef $ac_func
15929 /* Override any GCC internal prototype to avoid an error.
15930 Use char because int might match the return type of a GCC
15931 builtin and then its argument prototype would still apply. */
15932 #ifdef __cplusplus
15933 extern "C"
15934 #endif
15935 char $ac_func ();
15936 /* The GNU C library defines this for functions which it implements
15937 to always fail with ENOSYS. Some functions are actually named
15938 something starting with __ and the normal name is an alias. */
15939 #if defined __stub_$ac_func || defined __stub___$ac_func
15940 choke me
15941 #endif
15944 main ()
15946 return $ac_func ();
15948 return 0;
15950 _ACEOF
15951 rm -f conftest.$ac_objext conftest$ac_exeext
15952 if { (ac_try="$ac_link"
15953 case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15956 esac
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_link") 2>conftest.er1
15959 ac_status=$?
15960 grep -v '^ *+' conftest.er1 >conftest.err
15961 rm -f conftest.er1
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } && {
15965 test -z "$ac_c_werror_flag" ||
15966 test ! -s conftest.err
15967 } && test -s conftest$ac_exeext &&
15968 $as_test_x conftest$ac_exeext; then
15969 eval "$as_ac_var=yes"
15970 else
15971 echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15974 eval "$as_ac_var=no"
15977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15978 conftest$ac_exeext conftest.$ac_ext
15980 ac_res=`eval echo '${'$as_ac_var'}'`
15981 { echo "$as_me:$LINENO: result: $ac_res" >&5
15982 echo "${ECHO_T}$ac_res" >&6; }
15983 if test `eval echo '${'$as_ac_var'}'` = yes; then
15984 cat >>confdefs.h <<_ACEOF
15985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15986 _ACEOF
15989 done
15992 if test "$ac_cv_func_dlopen" = no
15993 then
15994 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15995 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15996 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15997 echo $ECHO_N "(cached) $ECHO_C" >&6
15998 else
15999 ac_check_lib_save_LIBS=$LIBS
16000 LIBS="-ldl $LIBS"
16001 cat >conftest.$ac_ext <<_ACEOF
16002 /* confdefs.h. */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16008 /* Override any GCC internal prototype to avoid an error.
16009 Use char because int might match the return type of a GCC
16010 builtin and then its argument prototype would still apply. */
16011 #ifdef __cplusplus
16012 extern "C"
16013 #endif
16014 char dlopen ();
16016 main ()
16018 return dlopen ();
16020 return 0;
16022 _ACEOF
16023 rm -f conftest.$ac_objext conftest$ac_exeext
16024 if { (ac_try="$ac_link"
16025 case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16028 esac
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_link") 2>conftest.er1
16031 ac_status=$?
16032 grep -v '^ *+' conftest.er1 >conftest.err
16033 rm -f conftest.er1
16034 cat conftest.err >&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } && {
16037 test -z "$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16039 } && test -s conftest$ac_exeext &&
16040 $as_test_x conftest$ac_exeext; then
16041 ac_cv_lib_dl_dlopen=yes
16042 else
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16046 ac_cv_lib_dl_dlopen=no
16049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16050 conftest$ac_exeext conftest.$ac_ext
16051 LIBS=$ac_check_lib_save_LIBS
16053 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16054 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16055 if test $ac_cv_lib_dl_dlopen = yes; then
16056 cat >>confdefs.h <<\_ACEOF
16057 #define HAVE_DLOPEN 1
16058 _ACEOF
16059 LIBDL="-ldl"
16064 ac_wine_check_funcs_save_LIBS="$LIBS"
16065 LIBS="$LIBS $LIBDL"
16067 for ac_func in dladdr
16069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075 cat >conftest.$ac_ext <<_ACEOF
16076 /* confdefs.h. */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16083 #define $ac_func innocuous_$ac_func
16085 /* System header to define __stub macros and hopefully few prototypes,
16086 which can conflict with char $ac_func (); below.
16087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16088 <limits.h> exists even on freestanding compilers. */
16090 #ifdef __STDC__
16091 # include <limits.h>
16092 #else
16093 # include <assert.h>
16094 #endif
16096 #undef $ac_func
16098 /* Override any GCC internal prototype to avoid an error.
16099 Use char because int might match the return type of a GCC
16100 builtin and then its argument prototype would still apply. */
16101 #ifdef __cplusplus
16102 extern "C"
16103 #endif
16104 char $ac_func ();
16105 /* The GNU C library defines this for functions which it implements
16106 to always fail with ENOSYS. Some functions are actually named
16107 something starting with __ and the normal name is an alias. */
16108 #if defined __stub_$ac_func || defined __stub___$ac_func
16109 choke me
16110 #endif
16113 main ()
16115 return $ac_func ();
16117 return 0;
16119 _ACEOF
16120 rm -f conftest.$ac_objext conftest$ac_exeext
16121 if { (ac_try="$ac_link"
16122 case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_link") 2>conftest.er1
16128 ac_status=$?
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } && {
16134 test -z "$ac_c_werror_flag" ||
16135 test ! -s conftest.err
16136 } && test -s conftest$ac_exeext &&
16137 $as_test_x conftest$ac_exeext; then
16138 eval "$as_ac_var=yes"
16139 else
16140 echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16143 eval "$as_ac_var=no"
16146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16147 conftest$ac_exeext conftest.$ac_ext
16149 ac_res=`eval echo '${'$as_ac_var'}'`
16150 { echo "$as_me:$LINENO: result: $ac_res" >&5
16151 echo "${ECHO_T}$ac_res" >&6; }
16152 if test `eval echo '${'$as_ac_var'}'` = yes; then
16153 cat >>confdefs.h <<_ACEOF
16154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16155 _ACEOF
16158 done
16160 LIBS="$ac_wine_check_funcs_save_LIBS"
16162 if test "$ac_cv_func_poll" = no
16163 then
16164 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
16165 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
16166 if test "${ac_cv_lib_poll_poll+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 else
16169 ac_check_lib_save_LIBS=$LIBS
16170 LIBS="-lpoll $LIBS"
16171 cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h. */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16178 /* Override any GCC internal prototype to avoid an error.
16179 Use char because int might match the return type of a GCC
16180 builtin and then its argument prototype would still apply. */
16181 #ifdef __cplusplus
16182 extern "C"
16183 #endif
16184 char poll ();
16186 main ()
16188 return poll ();
16190 return 0;
16192 _ACEOF
16193 rm -f conftest.$ac_objext conftest$ac_exeext
16194 if { (ac_try="$ac_link"
16195 case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16198 esac
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_link") 2>conftest.er1
16201 ac_status=$?
16202 grep -v '^ *+' conftest.er1 >conftest.err
16203 rm -f conftest.er1
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } && {
16207 test -z "$ac_c_werror_flag" ||
16208 test ! -s conftest.err
16209 } && test -s conftest$ac_exeext &&
16210 $as_test_x conftest$ac_exeext; then
16211 ac_cv_lib_poll_poll=yes
16212 else
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16216 ac_cv_lib_poll_poll=no
16219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16220 conftest$ac_exeext conftest.$ac_ext
16221 LIBS=$ac_check_lib_save_LIBS
16223 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
16224 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
16225 if test $ac_cv_lib_poll_poll = yes; then
16226 cat >>confdefs.h <<\_ACEOF
16227 #define HAVE_POLL 1
16228 _ACEOF
16229 LIBPOLL="-lpoll"
16235 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
16236 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
16237 if test "${ac_cv_search_gethostbyname+set}" = set; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240 ac_func_search_save_LIBS=$LIBS
16241 cat >conftest.$ac_ext <<_ACEOF
16242 /* confdefs.h. */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16248 /* Override any GCC internal prototype to avoid an error.
16249 Use char because int might match the return type of a GCC
16250 builtin and then its argument prototype would still apply. */
16251 #ifdef __cplusplus
16252 extern "C"
16253 #endif
16254 char gethostbyname ();
16256 main ()
16258 return gethostbyname ();
16260 return 0;
16262 _ACEOF
16263 for ac_lib in '' nsl; do
16264 if test -z "$ac_lib"; then
16265 ac_res="none required"
16266 else
16267 ac_res=-l$ac_lib
16268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (ac_try="$ac_link"
16272 case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_link") 2>conftest.er1
16278 ac_status=$?
16279 grep -v '^ *+' conftest.er1 >conftest.err
16280 rm -f conftest.er1
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } && {
16284 test -z "$ac_c_werror_flag" ||
16285 test ! -s conftest.err
16286 } && test -s conftest$ac_exeext &&
16287 $as_test_x conftest$ac_exeext; then
16288 ac_cv_search_gethostbyname=$ac_res
16289 else
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16297 conftest$ac_exeext
16298 if test "${ac_cv_search_gethostbyname+set}" = set; then
16299 break
16301 done
16302 if test "${ac_cv_search_gethostbyname+set}" = set; then
16304 else
16305 ac_cv_search_gethostbyname=no
16307 rm conftest.$ac_ext
16308 LIBS=$ac_func_search_save_LIBS
16310 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
16311 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
16312 ac_res=$ac_cv_search_gethostbyname
16313 if test "$ac_res" != no; then
16314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16319 { echo "$as_me:$LINENO: checking for library containing connect" >&5
16320 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
16321 if test "${ac_cv_search_connect+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 else
16324 ac_func_search_save_LIBS=$LIBS
16325 cat >conftest.$ac_ext <<_ACEOF
16326 /* confdefs.h. */
16327 _ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16332 /* Override any GCC internal prototype to avoid an error.
16333 Use char because int might match the return type of a GCC
16334 builtin and then its argument prototype would still apply. */
16335 #ifdef __cplusplus
16336 extern "C"
16337 #endif
16338 char connect ();
16340 main ()
16342 return connect ();
16344 return 0;
16346 _ACEOF
16347 for ac_lib in '' socket; do
16348 if test -z "$ac_lib"; then
16349 ac_res="none required"
16350 else
16351 ac_res=-l$ac_lib
16352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16354 rm -f conftest.$ac_objext conftest$ac_exeext
16355 if { (ac_try="$ac_link"
16356 case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16359 esac
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_link") 2>conftest.er1
16362 ac_status=$?
16363 grep -v '^ *+' conftest.er1 >conftest.err
16364 rm -f conftest.er1
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } && {
16368 test -z "$ac_c_werror_flag" ||
16369 test ! -s conftest.err
16370 } && test -s conftest$ac_exeext &&
16371 $as_test_x conftest$ac_exeext; then
16372 ac_cv_search_connect=$ac_res
16373 else
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16381 conftest$ac_exeext
16382 if test "${ac_cv_search_connect+set}" = set; then
16383 break
16385 done
16386 if test "${ac_cv_search_connect+set}" = set; then
16388 else
16389 ac_cv_search_connect=no
16391 rm conftest.$ac_ext
16392 LIBS=$ac_func_search_save_LIBS
16394 { echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
16395 echo "${ECHO_T}$ac_cv_search_connect" >&6; }
16396 ac_res=$ac_cv_search_connect
16397 if test "$ac_res" != no; then
16398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16403 { echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
16404 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
16405 if test "${ac_cv_search_inet_aton+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 else
16408 ac_func_search_save_LIBS=$LIBS
16409 cat >conftest.$ac_ext <<_ACEOF
16410 /* confdefs.h. */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16416 /* Override any GCC internal prototype to avoid an error.
16417 Use char because int might match the return type of a GCC
16418 builtin and then its argument prototype would still apply. */
16419 #ifdef __cplusplus
16420 extern "C"
16421 #endif
16422 char inet_aton ();
16424 main ()
16426 return inet_aton ();
16428 return 0;
16430 _ACEOF
16431 for ac_lib in '' resolv; do
16432 if test -z "$ac_lib"; then
16433 ac_res="none required"
16434 else
16435 ac_res=-l$ac_lib
16436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16438 rm -f conftest.$ac_objext conftest$ac_exeext
16439 if { (ac_try="$ac_link"
16440 case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16443 esac
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_link") 2>conftest.er1
16446 ac_status=$?
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } && {
16452 test -z "$ac_c_werror_flag" ||
16453 test ! -s conftest.err
16454 } && test -s conftest$ac_exeext &&
16455 $as_test_x conftest$ac_exeext; then
16456 ac_cv_search_inet_aton=$ac_res
16457 else
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16465 conftest$ac_exeext
16466 if test "${ac_cv_search_inet_aton+set}" = set; then
16467 break
16469 done
16470 if test "${ac_cv_search_inet_aton+set}" = set; then
16472 else
16473 ac_cv_search_inet_aton=no
16475 rm conftest.$ac_ext
16476 LIBS=$ac_func_search_save_LIBS
16478 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
16479 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
16480 ac_res=$ac_cv_search_inet_aton
16481 if test "$ac_res" != no; then
16482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16495 for ac_func in \
16496 getaddrinfo \
16497 getnameinfo \
16498 getnetbyname \
16499 getprotobyname \
16500 getprotobynumber \
16501 getservbyport \
16502 inet_network \
16503 sendmsg \
16506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16507 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h. */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16520 #define $ac_func innocuous_$ac_func
16522 /* System header to define __stub macros and hopefully few prototypes,
16523 which can conflict with char $ac_func (); below.
16524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16525 <limits.h> exists even on freestanding compilers. */
16527 #ifdef __STDC__
16528 # include <limits.h>
16529 #else
16530 # include <assert.h>
16531 #endif
16533 #undef $ac_func
16535 /* Override any GCC internal prototype to avoid an error.
16536 Use char because int might match the return type of a GCC
16537 builtin and then its argument prototype would still apply. */
16538 #ifdef __cplusplus
16539 extern "C"
16540 #endif
16541 char $ac_func ();
16542 /* The GNU C library defines this for functions which it implements
16543 to always fail with ENOSYS. Some functions are actually named
16544 something starting with __ and the normal name is an alias. */
16545 #if defined __stub_$ac_func || defined __stub___$ac_func
16546 choke me
16547 #endif
16550 main ()
16552 return $ac_func ();
16554 return 0;
16556 _ACEOF
16557 rm -f conftest.$ac_objext conftest$ac_exeext
16558 if { (ac_try="$ac_link"
16559 case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16562 esac
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_link") 2>conftest.er1
16565 ac_status=$?
16566 grep -v '^ *+' conftest.er1 >conftest.err
16567 rm -f conftest.er1
16568 cat conftest.err >&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } && {
16571 test -z "$ac_c_werror_flag" ||
16572 test ! -s conftest.err
16573 } && test -s conftest$ac_exeext &&
16574 $as_test_x conftest$ac_exeext; then
16575 eval "$as_ac_var=yes"
16576 else
16577 echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16580 eval "$as_ac_var=no"
16583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16584 conftest$ac_exeext conftest.$ac_ext
16586 ac_res=`eval echo '${'$as_ac_var'}'`
16587 { echo "$as_me:$LINENO: result: $ac_res" >&5
16588 echo "${ECHO_T}$ac_res" >&6; }
16589 if test `eval echo '${'$as_ac_var'}'` = yes; then
16590 cat >>confdefs.h <<_ACEOF
16591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16592 _ACEOF
16595 done
16599 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16600 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
16601 if test "${ac_cv_c_const+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604 cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h. */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16612 main ()
16614 /* FIXME: Include the comments suggested by Paul. */
16615 #ifndef __cplusplus
16616 /* Ultrix mips cc rejects this. */
16617 typedef int charset[2];
16618 const charset cs;
16619 /* SunOS 4.1.1 cc rejects this. */
16620 char const *const *pcpcc;
16621 char **ppc;
16622 /* NEC SVR4.0.2 mips cc rejects this. */
16623 struct point {int x, y;};
16624 static struct point const zero = {0,0};
16625 /* AIX XL C 1.02.0.0 rejects this.
16626 It does not let you subtract one const X* pointer from another in
16627 an arm of an if-expression whose if-part is not a constant
16628 expression */
16629 const char *g = "string";
16630 pcpcc = &g + (g ? g-g : 0);
16631 /* HPUX 7.0 cc rejects these. */
16632 ++pcpcc;
16633 ppc = (char**) pcpcc;
16634 pcpcc = (char const *const *) ppc;
16635 { /* SCO 3.2v4 cc rejects this. */
16636 char *t;
16637 char const *s = 0 ? (char *) 0 : (char const *) 0;
16639 *t++ = 0;
16640 if (s) return 0;
16642 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16643 int x[] = {25, 17};
16644 const int *foo = &x[0];
16645 ++foo;
16647 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16648 typedef const int *iptr;
16649 iptr p = 0;
16650 ++p;
16652 { /* AIX XL C 1.02.0.0 rejects this saying
16653 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16654 struct s { int j; const int *ap[3]; };
16655 struct s *b; b->j = 5;
16657 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16658 const int foo = 10;
16659 if (!foo) return 0;
16661 return !cs[0] && !zero.x;
16662 #endif
16665 return 0;
16667 _ACEOF
16668 rm -f conftest.$ac_objext
16669 if { (ac_try="$ac_compile"
16670 case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_compile") 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } && {
16682 test -z "$ac_c_werror_flag" ||
16683 test ! -s conftest.err
16684 } && test -s conftest.$ac_objext; then
16685 ac_cv_c_const=yes
16686 else
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 ac_cv_c_const=no
16693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16695 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16696 echo "${ECHO_T}$ac_cv_c_const" >&6; }
16697 if test $ac_cv_c_const = no; then
16699 cat >>confdefs.h <<\_ACEOF
16700 #define const
16701 _ACEOF
16705 { echo "$as_me:$LINENO: checking for inline" >&5
16706 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
16707 if test "${ac_cv_c_inline+set}" = set; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710 ac_cv_c_inline=no
16711 for ac_kw in inline __inline__ __inline; do
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 #ifndef __cplusplus
16719 typedef int foo_t;
16720 static $ac_kw foo_t static_foo () {return 0; }
16721 $ac_kw foo_t foo () {return 0; }
16722 #endif
16724 _ACEOF
16725 rm -f conftest.$ac_objext
16726 if { (ac_try="$ac_compile"
16727 case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_compile") 2>conftest.er1
16733 ac_status=$?
16734 grep -v '^ *+' conftest.er1 >conftest.err
16735 rm -f conftest.er1
16736 cat conftest.err >&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } && {
16739 test -z "$ac_c_werror_flag" ||
16740 test ! -s conftest.err
16741 } && test -s conftest.$ac_objext; then
16742 ac_cv_c_inline=$ac_kw
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 test "$ac_cv_c_inline" != no && break
16752 done
16755 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16756 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16759 case $ac_cv_c_inline in
16760 inline | yes) ;;
16762 case $ac_cv_c_inline in
16763 no) ac_val=;;
16764 *) ac_val=$ac_cv_c_inline;;
16765 esac
16766 cat >>confdefs.h <<_ACEOF
16767 #ifndef __cplusplus
16768 #define inline $ac_val
16769 #endif
16770 _ACEOF
16772 esac
16774 { echo "$as_me:$LINENO: checking for mode_t" >&5
16775 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
16776 if test "${ac_cv_type_mode_t+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778 else
16779 cat >conftest.$ac_ext <<_ACEOF
16780 /* confdefs.h. */
16781 _ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 $ac_includes_default
16786 typedef mode_t ac__type_new_;
16788 main ()
16790 if ((ac__type_new_ *) 0)
16791 return 0;
16792 if (sizeof (ac__type_new_))
16793 return 0;
16795 return 0;
16797 _ACEOF
16798 rm -f conftest.$ac_objext
16799 if { (ac_try="$ac_compile"
16800 case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_compile") 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } && {
16812 test -z "$ac_c_werror_flag" ||
16813 test ! -s conftest.err
16814 } && test -s conftest.$ac_objext; then
16815 ac_cv_type_mode_t=yes
16816 else
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 ac_cv_type_mode_t=no
16823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16826 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
16827 if test $ac_cv_type_mode_t = yes; then
16829 cat >>confdefs.h <<_ACEOF
16830 #define HAVE_MODE_T 1
16831 _ACEOF
16835 { echo "$as_me:$LINENO: checking for off_t" >&5
16836 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
16837 if test "${ac_cv_type_off_t+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840 cat >conftest.$ac_ext <<_ACEOF
16841 /* confdefs.h. */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h. */
16846 $ac_includes_default
16847 typedef off_t ac__type_new_;
16849 main ()
16851 if ((ac__type_new_ *) 0)
16852 return 0;
16853 if (sizeof (ac__type_new_))
16854 return 0;
16856 return 0;
16858 _ACEOF
16859 rm -f conftest.$ac_objext
16860 if { (ac_try="$ac_compile"
16861 case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864 esac
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_compile") 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } && {
16873 test -z "$ac_c_werror_flag" ||
16874 test ! -s conftest.err
16875 } && test -s conftest.$ac_objext; then
16876 ac_cv_type_off_t=yes
16877 else
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16881 ac_cv_type_off_t=no
16884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16887 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
16888 if test $ac_cv_type_off_t = yes; then
16890 cat >>confdefs.h <<_ACEOF
16891 #define HAVE_OFF_T 1
16892 _ACEOF
16896 { echo "$as_me:$LINENO: checking for pid_t" >&5
16897 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16898 if test "${ac_cv_type_pid_t+set}" = set; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 else
16901 cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h. */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 $ac_includes_default
16908 typedef pid_t ac__type_new_;
16910 main ()
16912 if ((ac__type_new_ *) 0)
16913 return 0;
16914 if (sizeof (ac__type_new_))
16915 return 0;
16917 return 0;
16919 _ACEOF
16920 rm -f conftest.$ac_objext
16921 if { (ac_try="$ac_compile"
16922 case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925 esac
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_compile") 2>conftest.er1
16928 ac_status=$?
16929 grep -v '^ *+' conftest.er1 >conftest.err
16930 rm -f conftest.er1
16931 cat conftest.err >&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } && {
16934 test -z "$ac_c_werror_flag" ||
16935 test ! -s conftest.err
16936 } && test -s conftest.$ac_objext; then
16937 ac_cv_type_pid_t=yes
16938 else
16939 echo "$as_me: failed program was:" >&5
16940 sed 's/^/| /' conftest.$ac_ext >&5
16942 ac_cv_type_pid_t=no
16945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16947 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16948 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16949 if test $ac_cv_type_pid_t = yes; then
16951 cat >>confdefs.h <<_ACEOF
16952 #define HAVE_PID_T 1
16953 _ACEOF
16957 { echo "$as_me:$LINENO: checking for size_t" >&5
16958 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16959 if test "${ac_cv_type_size_t+set}" = set; then
16960 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 else
16962 cat >conftest.$ac_ext <<_ACEOF
16963 /* confdefs.h. */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16968 $ac_includes_default
16969 typedef size_t ac__type_new_;
16971 main ()
16973 if ((ac__type_new_ *) 0)
16974 return 0;
16975 if (sizeof (ac__type_new_))
16976 return 0;
16978 return 0;
16980 _ACEOF
16981 rm -f conftest.$ac_objext
16982 if { (ac_try="$ac_compile"
16983 case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986 esac
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_compile") 2>conftest.er1
16989 ac_status=$?
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && {
16995 test -z "$ac_c_werror_flag" ||
16996 test ! -s conftest.err
16997 } && test -s conftest.$ac_objext; then
16998 ac_cv_type_size_t=yes
16999 else
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17003 ac_cv_type_size_t=no
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17008 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17009 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17010 if test $ac_cv_type_size_t = yes; then
17012 cat >>confdefs.h <<_ACEOF
17013 #define HAVE_SIZE_T 1
17014 _ACEOF
17018 { echo "$as_me:$LINENO: checking for ssize_t" >&5
17019 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
17020 if test "${ac_cv_type_ssize_t+set}" = set; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 else
17023 cat >conftest.$ac_ext <<_ACEOF
17024 /* confdefs.h. */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 $ac_includes_default
17030 typedef ssize_t ac__type_new_;
17032 main ()
17034 if ((ac__type_new_ *) 0)
17035 return 0;
17036 if (sizeof (ac__type_new_))
17037 return 0;
17039 return 0;
17041 _ACEOF
17042 rm -f conftest.$ac_objext
17043 if { (ac_try="$ac_compile"
17044 case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047 esac
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_compile") 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && {
17056 test -z "$ac_c_werror_flag" ||
17057 test ! -s conftest.err
17058 } && test -s conftest.$ac_objext; then
17059 ac_cv_type_ssize_t=yes
17060 else
17061 echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17064 ac_cv_type_ssize_t=no
17067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17070 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
17071 if test $ac_cv_type_ssize_t = yes; then
17073 cat >>confdefs.h <<_ACEOF
17074 #define HAVE_SSIZE_T 1
17075 _ACEOF
17079 { echo "$as_me:$LINENO: checking for long long" >&5
17080 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
17081 if test "${ac_cv_type_long_long+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
17084 cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h. */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 $ac_includes_default
17091 typedef long long ac__type_new_;
17093 main ()
17095 if ((ac__type_new_ *) 0)
17096 return 0;
17097 if (sizeof (ac__type_new_))
17098 return 0;
17100 return 0;
17102 _ACEOF
17103 rm -f conftest.$ac_objext
17104 if { (ac_try="$ac_compile"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_compile") 2>conftest.er1
17111 ac_status=$?
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest.$ac_objext; then
17120 ac_cv_type_long_long=yes
17121 else
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 ac_cv_type_long_long=no
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17130 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17131 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
17132 if test $ac_cv_type_long_long = yes; then
17134 cat >>confdefs.h <<_ACEOF
17135 #define HAVE_LONG_LONG 1
17136 _ACEOF
17140 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17141 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
17142 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17143 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 else
17145 cat >conftest.$ac_ext <<_ACEOF
17146 /* confdefs.h. */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17151 $ac_includes_default
17152 typedef fsblkcnt_t ac__type_new_;
17154 main ()
17156 if ((ac__type_new_ *) 0)
17157 return 0;
17158 if (sizeof (ac__type_new_))
17159 return 0;
17161 return 0;
17163 _ACEOF
17164 rm -f conftest.$ac_objext
17165 if { (ac_try="$ac_compile"
17166 case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169 esac
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_compile") 2>conftest.er1
17172 ac_status=$?
17173 grep -v '^ *+' conftest.er1 >conftest.err
17174 rm -f conftest.er1
17175 cat conftest.err >&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } && {
17178 test -z "$ac_c_werror_flag" ||
17179 test ! -s conftest.err
17180 } && test -s conftest.$ac_objext; then
17181 ac_cv_type_fsblkcnt_t=yes
17182 else
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17186 ac_cv_type_fsblkcnt_t=no
17189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17191 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17192 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
17193 if test $ac_cv_type_fsblkcnt_t = yes; then
17195 cat >>confdefs.h <<_ACEOF
17196 #define HAVE_FSBLKCNT_T 1
17197 _ACEOF
17201 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17202 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
17203 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h. */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 $ac_includes_default
17213 typedef fsfilcnt_t ac__type_new_;
17215 main ()
17217 if ((ac__type_new_ *) 0)
17218 return 0;
17219 if (sizeof (ac__type_new_))
17220 return 0;
17222 return 0;
17224 _ACEOF
17225 rm -f conftest.$ac_objext
17226 if { (ac_try="$ac_compile"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_compile") 2>conftest.er1
17233 ac_status=$?
17234 grep -v '^ *+' conftest.er1 >conftest.err
17235 rm -f conftest.er1
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } && {
17239 test -z "$ac_c_werror_flag" ||
17240 test ! -s conftest.err
17241 } && test -s conftest.$ac_objext; then
17242 ac_cv_type_fsfilcnt_t=yes
17243 else
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ac_cv_type_fsfilcnt_t=no
17250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17252 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17253 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
17254 if test $ac_cv_type_fsfilcnt_t = yes; then
17256 cat >>confdefs.h <<_ACEOF
17257 #define HAVE_FSFILCNT_T 1
17258 _ACEOF
17263 { echo "$as_me:$LINENO: checking for sigset_t" >&5
17264 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
17265 if test "${ac_cv_type_sigset_t+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268 cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h. */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17274 #include <signal.h>
17276 typedef sigset_t ac__type_new_;
17278 main ()
17280 if ((ac__type_new_ *) 0)
17281 return 0;
17282 if (sizeof (ac__type_new_))
17283 return 0;
17285 return 0;
17287 _ACEOF
17288 rm -f conftest.$ac_objext
17289 if { (ac_try="$ac_compile"
17290 case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293 esac
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_compile") 2>conftest.er1
17296 ac_status=$?
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && {
17302 test -z "$ac_c_werror_flag" ||
17303 test ! -s conftest.err
17304 } && test -s conftest.$ac_objext; then
17305 ac_cv_type_sigset_t=yes
17306 else
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 ac_cv_type_sigset_t=no
17313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17315 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17316 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
17317 if test $ac_cv_type_sigset_t = yes; then
17319 cat >>confdefs.h <<_ACEOF
17320 #define HAVE_SIGSET_T 1
17321 _ACEOF
17326 { echo "$as_me:$LINENO: checking for request_sense" >&5
17327 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
17328 if test "${ac_cv_type_request_sense+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 else
17331 cat >conftest.$ac_ext <<_ACEOF
17332 /* confdefs.h. */
17333 _ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h. */
17337 #include <linux/cdrom.h>
17339 typedef request_sense ac__type_new_;
17341 main ()
17343 if ((ac__type_new_ *) 0)
17344 return 0;
17345 if (sizeof (ac__type_new_))
17346 return 0;
17348 return 0;
17350 _ACEOF
17351 rm -f conftest.$ac_objext
17352 if { (ac_try="$ac_compile"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_compile") 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } && {
17365 test -z "$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest.$ac_objext; then
17368 ac_cv_type_request_sense=yes
17369 else
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17373 ac_cv_type_request_sense=no
17376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17378 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17379 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
17380 if test $ac_cv_type_request_sense = yes; then
17382 cat >>confdefs.h <<_ACEOF
17383 #define HAVE_REQUEST_SENSE 1
17384 _ACEOF
17390 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
17391 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
17392 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 else
17395 cat >conftest.$ac_ext <<_ACEOF
17396 /* confdefs.h. */
17397 _ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17401 #ifdef HAVE_LINUX_INPUT_H
17402 #include <linux/input.h>
17403 #endif
17406 main ()
17408 static struct ff_effect ac_aggr;
17409 if (ac_aggr.direction)
17410 return 0;
17412 return 0;
17414 _ACEOF
17415 rm -f conftest.$ac_objext
17416 if { (ac_try="$ac_compile"
17417 case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_compile") 2>conftest.er1
17423 ac_status=$?
17424 grep -v '^ *+' conftest.er1 >conftest.err
17425 rm -f conftest.er1
17426 cat conftest.err >&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && {
17429 test -z "$ac_c_werror_flag" ||
17430 test ! -s conftest.err
17431 } && test -s conftest.$ac_objext; then
17432 ac_cv_member_struct_ff_effect_direction=yes
17433 else
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 cat >conftest.$ac_ext <<_ACEOF
17438 /* confdefs.h. */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443 #ifdef HAVE_LINUX_INPUT_H
17444 #include <linux/input.h>
17445 #endif
17448 main ()
17450 static struct ff_effect ac_aggr;
17451 if (sizeof ac_aggr.direction)
17452 return 0;
17454 return 0;
17456 _ACEOF
17457 rm -f conftest.$ac_objext
17458 if { (ac_try="$ac_compile"
17459 case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17462 esac
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_compile") 2>conftest.er1
17465 ac_status=$?
17466 grep -v '^ *+' conftest.er1 >conftest.err
17467 rm -f conftest.er1
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } && {
17471 test -z "$ac_c_werror_flag" ||
17472 test ! -s conftest.err
17473 } && test -s conftest.$ac_objext; then
17474 ac_cv_member_struct_ff_effect_direction=yes
17475 else
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ac_cv_member_struct_ff_effect_direction=no
17482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
17488 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
17489 if test $ac_cv_member_struct_ff_effect_direction = yes; then
17491 cat >>confdefs.h <<_ACEOF
17492 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
17493 _ACEOF
17499 { echo "$as_me:$LINENO: checking for sigaddset" >&5
17500 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
17501 if test "${wine_cv_have_sigaddset+set}" = set; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 else
17504 cat >conftest.$ac_ext <<_ACEOF
17505 /* confdefs.h. */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h. */
17510 #include <signal.h>
17512 main ()
17514 sigset_t set; sigaddset(&set,SIGTERM);
17516 return 0;
17518 _ACEOF
17519 rm -f conftest.$ac_objext conftest$ac_exeext
17520 if { (ac_try="$ac_link"
17521 case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17524 esac
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_link") 2>conftest.er1
17527 ac_status=$?
17528 grep -v '^ *+' conftest.er1 >conftest.err
17529 rm -f conftest.er1
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } && {
17533 test -z "$ac_c_werror_flag" ||
17534 test ! -s conftest.err
17535 } && test -s conftest$ac_exeext &&
17536 $as_test_x conftest$ac_exeext; then
17537 wine_cv_have_sigaddset=yes
17538 else
17539 echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17542 wine_cv_have_sigaddset=no
17545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17546 conftest$ac_exeext conftest.$ac_ext
17548 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17549 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
17550 if test "$wine_cv_have_sigaddset" = "yes"
17551 then
17553 cat >>confdefs.h <<\_ACEOF
17554 #define HAVE_SIGADDSET 1
17555 _ACEOF
17560 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17561 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
17562 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565 cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h. */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 #include <netdb.h>
17573 main ()
17576 char *name=NULL;
17577 struct hostent he;
17578 struct hostent *result;
17579 char *buf=NULL;
17580 int bufsize=0;
17581 int res,errnr;
17582 char *addr=NULL;
17583 int addrlen=0;
17584 int addrtype=0;
17585 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17586 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17589 return 0;
17591 _ACEOF
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (ac_try="$ac_link"
17594 case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_link") 2>conftest.er1
17600 ac_status=$?
17601 grep -v '^ *+' conftest.er1 >conftest.err
17602 rm -f conftest.er1
17603 cat conftest.err >&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } && {
17606 test -z "$ac_c_werror_flag" ||
17607 test ! -s conftest.err
17608 } && test -s conftest$ac_exeext &&
17609 $as_test_x conftest$ac_exeext; then
17610 wine_cv_linux_gethostbyname_r_6=yes
17611 else
17612 echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17615 wine_cv_linux_gethostbyname_r_6=no
17619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17620 conftest$ac_exeext conftest.$ac_ext
17623 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17624 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
17625 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17626 then
17628 cat >>confdefs.h <<\_ACEOF
17629 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17630 _ACEOF
17634 if test "$ac_cv_header_linux_joystick_h" = "yes"
17635 then
17636 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17637 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
17638 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 else
17641 cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h. */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17648 #include <sys/ioctl.h>
17649 #include <sys/types.h>
17650 #include <linux/joystick.h>
17652 struct js_event blub;
17653 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17654 #error "no 2.2 header"
17655 #endif
17658 main ()
17660 /*empty*/
17662 return 0;
17664 _ACEOF
17665 rm -f conftest.$ac_objext
17666 if { (ac_try="$ac_compile"
17667 case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17670 esac
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_compile") 2>conftest.er1
17673 ac_status=$?
17674 grep -v '^ *+' conftest.er1 >conftest.err
17675 rm -f conftest.er1
17676 cat conftest.err >&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } && {
17679 test -z "$ac_c_werror_flag" ||
17680 test ! -s conftest.err
17681 } && test -s conftest.$ac_objext; then
17682 wine_cv_linux_joystick_22_api=yes
17683 else
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17687 wine_cv_linux_joystick_22_api=no
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17694 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
17695 if test "$wine_cv_linux_joystick_22_api" = "yes"
17696 then
17698 cat >>confdefs.h <<\_ACEOF
17699 #define HAVE_LINUX_22_JOYSTICK_API 1
17700 _ACEOF
17706 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17707 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
17708 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711 cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h. */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 #include <sys/types.h>
17718 #ifdef HAVE_SYS_PARAM_H
17719 # include <sys/param.h>
17720 #endif
17721 #ifdef HAVE_SYS_MOUNT_H
17722 # include <sys/mount.h>
17723 #endif
17724 #ifdef HAVE_SYS_VFS_H
17725 # include <sys/vfs.h>
17726 #endif
17727 #ifdef HAVE_SYS_STATFS_H
17728 # include <sys/statfs.h>
17729 #endif
17732 main ()
17734 static struct statfs ac_aggr;
17735 if (ac_aggr.f_bfree)
17736 return 0;
17738 return 0;
17740 _ACEOF
17741 rm -f conftest.$ac_objext
17742 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17749 ac_status=$?
17750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } && {
17755 test -z "$ac_c_werror_flag" ||
17756 test ! -s conftest.err
17757 } && test -s conftest.$ac_objext; then
17758 ac_cv_member_struct_statfs_f_bfree=yes
17759 else
17760 echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17763 cat >conftest.$ac_ext <<_ACEOF
17764 /* confdefs.h. */
17765 _ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h. */
17769 #include <sys/types.h>
17770 #ifdef HAVE_SYS_PARAM_H
17771 # include <sys/param.h>
17772 #endif
17773 #ifdef HAVE_SYS_MOUNT_H
17774 # include <sys/mount.h>
17775 #endif
17776 #ifdef HAVE_SYS_VFS_H
17777 # include <sys/vfs.h>
17778 #endif
17779 #ifdef HAVE_SYS_STATFS_H
17780 # include <sys/statfs.h>
17781 #endif
17784 main ()
17786 static struct statfs ac_aggr;
17787 if (sizeof ac_aggr.f_bfree)
17788 return 0;
17790 return 0;
17792 _ACEOF
17793 rm -f conftest.$ac_objext
17794 if { (ac_try="$ac_compile"
17795 case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17798 esac
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_compile") 2>conftest.er1
17801 ac_status=$?
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } && {
17807 test -z "$ac_c_werror_flag" ||
17808 test ! -s conftest.err
17809 } && test -s conftest.$ac_objext; then
17810 ac_cv_member_struct_statfs_f_bfree=yes
17811 else
17812 echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17815 ac_cv_member_struct_statfs_f_bfree=no
17818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17823 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17824 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
17825 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17827 cat >>confdefs.h <<_ACEOF
17828 #define HAVE_STRUCT_STATFS_F_BFREE 1
17829 _ACEOF
17833 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17834 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
17835 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 else
17838 cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h. */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 #include <sys/types.h>
17845 #ifdef HAVE_SYS_PARAM_H
17846 # include <sys/param.h>
17847 #endif
17848 #ifdef HAVE_SYS_MOUNT_H
17849 # include <sys/mount.h>
17850 #endif
17851 #ifdef HAVE_SYS_VFS_H
17852 # include <sys/vfs.h>
17853 #endif
17854 #ifdef HAVE_SYS_STATFS_H
17855 # include <sys/statfs.h>
17856 #endif
17859 main ()
17861 static struct statfs ac_aggr;
17862 if (ac_aggr.f_bavail)
17863 return 0;
17865 return 0;
17867 _ACEOF
17868 rm -f conftest.$ac_objext
17869 if { (ac_try="$ac_compile"
17870 case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17873 esac
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_compile") 2>conftest.er1
17876 ac_status=$?
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && {
17882 test -z "$ac_c_werror_flag" ||
17883 test ! -s conftest.err
17884 } && test -s conftest.$ac_objext; then
17885 ac_cv_member_struct_statfs_f_bavail=yes
17886 else
17887 echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17890 cat >conftest.$ac_ext <<_ACEOF
17891 /* confdefs.h. */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17896 #include <sys/types.h>
17897 #ifdef HAVE_SYS_PARAM_H
17898 # include <sys/param.h>
17899 #endif
17900 #ifdef HAVE_SYS_MOUNT_H
17901 # include <sys/mount.h>
17902 #endif
17903 #ifdef HAVE_SYS_VFS_H
17904 # include <sys/vfs.h>
17905 #endif
17906 #ifdef HAVE_SYS_STATFS_H
17907 # include <sys/statfs.h>
17908 #endif
17911 main ()
17913 static struct statfs ac_aggr;
17914 if (sizeof ac_aggr.f_bavail)
17915 return 0;
17917 return 0;
17919 _ACEOF
17920 rm -f conftest.$ac_objext
17921 if { (ac_try="$ac_compile"
17922 case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17925 esac
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_compile") 2>conftest.er1
17928 ac_status=$?
17929 grep -v '^ *+' conftest.er1 >conftest.err
17930 rm -f conftest.er1
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } && {
17934 test -z "$ac_c_werror_flag" ||
17935 test ! -s conftest.err
17936 } && test -s conftest.$ac_objext; then
17937 ac_cv_member_struct_statfs_f_bavail=yes
17938 else
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17942 ac_cv_member_struct_statfs_f_bavail=no
17945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17950 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17951 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
17952 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17954 cat >>confdefs.h <<_ACEOF
17955 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17956 _ACEOF
17960 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17961 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
17962 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h. */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 #include <sys/types.h>
17972 #ifdef HAVE_SYS_PARAM_H
17973 # include <sys/param.h>
17974 #endif
17975 #ifdef HAVE_SYS_MOUNT_H
17976 # include <sys/mount.h>
17977 #endif
17978 #ifdef HAVE_SYS_VFS_H
17979 # include <sys/vfs.h>
17980 #endif
17981 #ifdef HAVE_SYS_STATFS_H
17982 # include <sys/statfs.h>
17983 #endif
17986 main ()
17988 static struct statfs ac_aggr;
17989 if (ac_aggr.f_frsize)
17990 return 0;
17992 return 0;
17994 _ACEOF
17995 rm -f conftest.$ac_objext
17996 if { (ac_try="$ac_compile"
17997 case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18000 esac
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_compile") 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } && {
18009 test -z "$ac_c_werror_flag" ||
18010 test ! -s conftest.err
18011 } && test -s conftest.$ac_objext; then
18012 ac_cv_member_struct_statfs_f_frsize=yes
18013 else
18014 echo "$as_me: failed program was:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18017 cat >conftest.$ac_ext <<_ACEOF
18018 /* confdefs.h. */
18019 _ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h. */
18023 #include <sys/types.h>
18024 #ifdef HAVE_SYS_PARAM_H
18025 # include <sys/param.h>
18026 #endif
18027 #ifdef HAVE_SYS_MOUNT_H
18028 # include <sys/mount.h>
18029 #endif
18030 #ifdef HAVE_SYS_VFS_H
18031 # include <sys/vfs.h>
18032 #endif
18033 #ifdef HAVE_SYS_STATFS_H
18034 # include <sys/statfs.h>
18035 #endif
18038 main ()
18040 static struct statfs ac_aggr;
18041 if (sizeof ac_aggr.f_frsize)
18042 return 0;
18044 return 0;
18046 _ACEOF
18047 rm -f conftest.$ac_objext
18048 if { (ac_try="$ac_compile"
18049 case "(($ac_try" in
18050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18051 *) ac_try_echo=$ac_try;;
18052 esac
18053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18054 (eval "$ac_compile") 2>conftest.er1
18055 ac_status=$?
18056 grep -v '^ *+' conftest.er1 >conftest.err
18057 rm -f conftest.er1
18058 cat conftest.err >&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } && {
18061 test -z "$ac_c_werror_flag" ||
18062 test ! -s conftest.err
18063 } && test -s conftest.$ac_objext; then
18064 ac_cv_member_struct_statfs_f_frsize=yes
18065 else
18066 echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.$ac_ext >&5
18069 ac_cv_member_struct_statfs_f_frsize=no
18072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18077 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18078 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
18079 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18081 cat >>confdefs.h <<_ACEOF
18082 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18083 _ACEOF
18087 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18088 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
18089 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 else
18092 cat >conftest.$ac_ext <<_ACEOF
18093 /* confdefs.h. */
18094 _ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h. */
18098 #include <sys/types.h>
18099 #ifdef HAVE_SYS_PARAM_H
18100 # include <sys/param.h>
18101 #endif
18102 #ifdef HAVE_SYS_MOUNT_H
18103 # include <sys/mount.h>
18104 #endif
18105 #ifdef HAVE_SYS_VFS_H
18106 # include <sys/vfs.h>
18107 #endif
18108 #ifdef HAVE_SYS_STATFS_H
18109 # include <sys/statfs.h>
18110 #endif
18113 main ()
18115 static struct statfs ac_aggr;
18116 if (ac_aggr.f_ffree)
18117 return 0;
18119 return 0;
18121 _ACEOF
18122 rm -f conftest.$ac_objext
18123 if { (ac_try="$ac_compile"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_compile") 2>conftest.er1
18130 ac_status=$?
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } && {
18136 test -z "$ac_c_werror_flag" ||
18137 test ! -s conftest.err
18138 } && test -s conftest.$ac_objext; then
18139 ac_cv_member_struct_statfs_f_ffree=yes
18140 else
18141 echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18144 cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h. */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 #include <sys/types.h>
18151 #ifdef HAVE_SYS_PARAM_H
18152 # include <sys/param.h>
18153 #endif
18154 #ifdef HAVE_SYS_MOUNT_H
18155 # include <sys/mount.h>
18156 #endif
18157 #ifdef HAVE_SYS_VFS_H
18158 # include <sys/vfs.h>
18159 #endif
18160 #ifdef HAVE_SYS_STATFS_H
18161 # include <sys/statfs.h>
18162 #endif
18165 main ()
18167 static struct statfs ac_aggr;
18168 if (sizeof ac_aggr.f_ffree)
18169 return 0;
18171 return 0;
18173 _ACEOF
18174 rm -f conftest.$ac_objext
18175 if { (ac_try="$ac_compile"
18176 case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_compile") 2>conftest.er1
18182 ac_status=$?
18183 grep -v '^ *+' conftest.er1 >conftest.err
18184 rm -f conftest.er1
18185 cat conftest.err >&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } && {
18188 test -z "$ac_c_werror_flag" ||
18189 test ! -s conftest.err
18190 } && test -s conftest.$ac_objext; then
18191 ac_cv_member_struct_statfs_f_ffree=yes
18192 else
18193 echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18196 ac_cv_member_struct_statfs_f_ffree=no
18199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18204 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18205 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
18206 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18208 cat >>confdefs.h <<_ACEOF
18209 #define HAVE_STRUCT_STATFS_F_FFREE 1
18210 _ACEOF
18214 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18215 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
18216 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18218 else
18219 cat >conftest.$ac_ext <<_ACEOF
18220 /* confdefs.h. */
18221 _ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18225 #include <sys/types.h>
18226 #ifdef HAVE_SYS_PARAM_H
18227 # include <sys/param.h>
18228 #endif
18229 #ifdef HAVE_SYS_MOUNT_H
18230 # include <sys/mount.h>
18231 #endif
18232 #ifdef HAVE_SYS_VFS_H
18233 # include <sys/vfs.h>
18234 #endif
18235 #ifdef HAVE_SYS_STATFS_H
18236 # include <sys/statfs.h>
18237 #endif
18240 main ()
18242 static struct statfs ac_aggr;
18243 if (ac_aggr.f_favail)
18244 return 0;
18246 return 0;
18248 _ACEOF
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_compile") 2>conftest.er1
18257 ac_status=$?
18258 grep -v '^ *+' conftest.er1 >conftest.err
18259 rm -f conftest.er1
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } && {
18263 test -z "$ac_c_werror_flag" ||
18264 test ! -s conftest.err
18265 } && test -s conftest.$ac_objext; then
18266 ac_cv_member_struct_statfs_f_favail=yes
18267 else
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h. */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 #include <sys/types.h>
18278 #ifdef HAVE_SYS_PARAM_H
18279 # include <sys/param.h>
18280 #endif
18281 #ifdef HAVE_SYS_MOUNT_H
18282 # include <sys/mount.h>
18283 #endif
18284 #ifdef HAVE_SYS_VFS_H
18285 # include <sys/vfs.h>
18286 #endif
18287 #ifdef HAVE_SYS_STATFS_H
18288 # include <sys/statfs.h>
18289 #endif
18292 main ()
18294 static struct statfs ac_aggr;
18295 if (sizeof ac_aggr.f_favail)
18296 return 0;
18298 return 0;
18300 _ACEOF
18301 rm -f conftest.$ac_objext
18302 if { (ac_try="$ac_compile"
18303 case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18306 esac
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_compile") 2>conftest.er1
18309 ac_status=$?
18310 grep -v '^ *+' conftest.er1 >conftest.err
18311 rm -f conftest.er1
18312 cat conftest.err >&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } && {
18315 test -z "$ac_c_werror_flag" ||
18316 test ! -s conftest.err
18317 } && test -s conftest.$ac_objext; then
18318 ac_cv_member_struct_statfs_f_favail=yes
18319 else
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 ac_cv_member_struct_statfs_f_favail=no
18326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18332 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
18333 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18335 cat >>confdefs.h <<_ACEOF
18336 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18337 _ACEOF
18341 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18342 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
18343 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18345 else
18346 cat >conftest.$ac_ext <<_ACEOF
18347 /* confdefs.h. */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18352 #include <sys/types.h>
18353 #ifdef HAVE_SYS_PARAM_H
18354 # include <sys/param.h>
18355 #endif
18356 #ifdef HAVE_SYS_MOUNT_H
18357 # include <sys/mount.h>
18358 #endif
18359 #ifdef HAVE_SYS_VFS_H
18360 # include <sys/vfs.h>
18361 #endif
18362 #ifdef HAVE_SYS_STATFS_H
18363 # include <sys/statfs.h>
18364 #endif
18367 main ()
18369 static struct statfs ac_aggr;
18370 if (ac_aggr.f_namelen)
18371 return 0;
18373 return 0;
18375 _ACEOF
18376 rm -f conftest.$ac_objext
18377 if { (ac_try="$ac_compile"
18378 case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18381 esac
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_compile") 2>conftest.er1
18384 ac_status=$?
18385 grep -v '^ *+' conftest.er1 >conftest.err
18386 rm -f conftest.er1
18387 cat conftest.err >&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } && {
18390 test -z "$ac_c_werror_flag" ||
18391 test ! -s conftest.err
18392 } && test -s conftest.$ac_objext; then
18393 ac_cv_member_struct_statfs_f_namelen=yes
18394 else
18395 echo "$as_me: failed program was:" >&5
18396 sed 's/^/| /' conftest.$ac_ext >&5
18398 cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h. */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18404 #include <sys/types.h>
18405 #ifdef HAVE_SYS_PARAM_H
18406 # include <sys/param.h>
18407 #endif
18408 #ifdef HAVE_SYS_MOUNT_H
18409 # include <sys/mount.h>
18410 #endif
18411 #ifdef HAVE_SYS_VFS_H
18412 # include <sys/vfs.h>
18413 #endif
18414 #ifdef HAVE_SYS_STATFS_H
18415 # include <sys/statfs.h>
18416 #endif
18419 main ()
18421 static struct statfs ac_aggr;
18422 if (sizeof ac_aggr.f_namelen)
18423 return 0;
18425 return 0;
18427 _ACEOF
18428 rm -f conftest.$ac_objext
18429 if { (ac_try="$ac_compile"
18430 case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18433 esac
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_compile") 2>conftest.er1
18436 ac_status=$?
18437 grep -v '^ *+' conftest.er1 >conftest.err
18438 rm -f conftest.er1
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } && {
18442 test -z "$ac_c_werror_flag" ||
18443 test ! -s conftest.err
18444 } && test -s conftest.$ac_objext; then
18445 ac_cv_member_struct_statfs_f_namelen=yes
18446 else
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18450 ac_cv_member_struct_statfs_f_namelen=no
18453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18458 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18459 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
18460 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18462 cat >>confdefs.h <<_ACEOF
18463 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18464 _ACEOF
18470 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18471 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
18472 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475 cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h. */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 #ifdef HAVE_SYS_STATVFS_H
18482 #include <sys/statvfs.h>
18483 #endif
18486 main ()
18488 static struct statvfs ac_aggr;
18489 if (ac_aggr.f_blocks)
18490 return 0;
18492 return 0;
18494 _ACEOF
18495 rm -f conftest.$ac_objext
18496 if { (ac_try="$ac_compile"
18497 case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_compile") 2>conftest.er1
18503 ac_status=$?
18504 grep -v '^ *+' conftest.er1 >conftest.err
18505 rm -f conftest.er1
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } && {
18509 test -z "$ac_c_werror_flag" ||
18510 test ! -s conftest.err
18511 } && test -s conftest.$ac_objext; then
18512 ac_cv_member_struct_statvfs_f_blocks=yes
18513 else
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18517 cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h. */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523 #ifdef HAVE_SYS_STATVFS_H
18524 #include <sys/statvfs.h>
18525 #endif
18528 main ()
18530 static struct statvfs ac_aggr;
18531 if (sizeof ac_aggr.f_blocks)
18532 return 0;
18534 return 0;
18536 _ACEOF
18537 rm -f conftest.$ac_objext
18538 if { (ac_try="$ac_compile"
18539 case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18542 esac
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_compile") 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } && {
18551 test -z "$ac_c_werror_flag" ||
18552 test ! -s conftest.err
18553 } && test -s conftest.$ac_objext; then
18554 ac_cv_member_struct_statvfs_f_blocks=yes
18555 else
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18559 ac_cv_member_struct_statvfs_f_blocks=no
18562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18568 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
18569 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18571 cat >>confdefs.h <<_ACEOF
18572 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18573 _ACEOF
18579 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18580 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
18581 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584 cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h. */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590 #include <sys/types.h>
18591 #ifdef HAVE_SYS_SOCKET_H
18592 # include <sys/socket.h>
18593 #endif
18594 #ifdef HAVE_SYS_UN_H
18595 # include <sys/un.h>
18596 #endif
18599 main ()
18601 static struct msghdr ac_aggr;
18602 if (ac_aggr.msg_accrights)
18603 return 0;
18605 return 0;
18607 _ACEOF
18608 rm -f conftest.$ac_objext
18609 if { (ac_try="$ac_compile"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_compile") 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest.$ac_objext; then
18625 ac_cv_member_struct_msghdr_msg_accrights=yes
18626 else
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h. */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 #include <sys/types.h>
18637 #ifdef HAVE_SYS_SOCKET_H
18638 # include <sys/socket.h>
18639 #endif
18640 #ifdef HAVE_SYS_UN_H
18641 # include <sys/un.h>
18642 #endif
18645 main ()
18647 static struct msghdr ac_aggr;
18648 if (sizeof ac_aggr.msg_accrights)
18649 return 0;
18651 return 0;
18653 _ACEOF
18654 rm -f conftest.$ac_objext
18655 if { (ac_try="$ac_compile"
18656 case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18659 esac
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_compile") 2>conftest.er1
18662 ac_status=$?
18663 grep -v '^ *+' conftest.er1 >conftest.err
18664 rm -f conftest.er1
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } && {
18668 test -z "$ac_c_werror_flag" ||
18669 test ! -s conftest.err
18670 } && test -s conftest.$ac_objext; then
18671 ac_cv_member_struct_msghdr_msg_accrights=yes
18672 else
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 ac_cv_member_struct_msghdr_msg_accrights=no
18679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18684 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18685 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
18686 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18688 cat >>confdefs.h <<_ACEOF
18689 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18690 _ACEOF
18694 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18695 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
18696 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699 cat >conftest.$ac_ext <<_ACEOF
18700 /* confdefs.h. */
18701 _ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h. */
18705 #include <sys/types.h>
18706 #ifdef HAVE_SYS_SOCKET_H
18707 # include <sys/socket.h>
18708 #endif
18709 #ifdef HAVE_SYS_UN_H
18710 # include <sys/un.h>
18711 #endif
18714 main ()
18716 static struct sockaddr ac_aggr;
18717 if (ac_aggr.sa_len)
18718 return 0;
18720 return 0;
18722 _ACEOF
18723 rm -f conftest.$ac_objext
18724 if { (ac_try="$ac_compile"
18725 case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18728 esac
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_compile") 2>conftest.er1
18731 ac_status=$?
18732 grep -v '^ *+' conftest.er1 >conftest.err
18733 rm -f conftest.er1
18734 cat conftest.err >&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } && {
18737 test -z "$ac_c_werror_flag" ||
18738 test ! -s conftest.err
18739 } && test -s conftest.$ac_objext; then
18740 ac_cv_member_struct_sockaddr_sa_len=yes
18741 else
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 cat >conftest.$ac_ext <<_ACEOF
18746 /* confdefs.h. */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18751 #include <sys/types.h>
18752 #ifdef HAVE_SYS_SOCKET_H
18753 # include <sys/socket.h>
18754 #endif
18755 #ifdef HAVE_SYS_UN_H
18756 # include <sys/un.h>
18757 #endif
18760 main ()
18762 static struct sockaddr ac_aggr;
18763 if (sizeof ac_aggr.sa_len)
18764 return 0;
18766 return 0;
18768 _ACEOF
18769 rm -f conftest.$ac_objext
18770 if { (ac_try="$ac_compile"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_compile") 2>conftest.er1
18777 ac_status=$?
18778 grep -v '^ *+' conftest.er1 >conftest.err
18779 rm -f conftest.er1
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } && {
18783 test -z "$ac_c_werror_flag" ||
18784 test ! -s conftest.err
18785 } && test -s conftest.$ac_objext; then
18786 ac_cv_member_struct_sockaddr_sa_len=yes
18787 else
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18791 ac_cv_member_struct_sockaddr_sa_len=no
18794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18799 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18800 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
18801 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18805 _ACEOF
18809 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18810 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
18811 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 else
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h. */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18820 #include <sys/types.h>
18821 #ifdef HAVE_SYS_SOCKET_H
18822 # include <sys/socket.h>
18823 #endif
18824 #ifdef HAVE_SYS_UN_H
18825 # include <sys/un.h>
18826 #endif
18829 main ()
18831 static struct sockaddr_un ac_aggr;
18832 if (ac_aggr.sun_len)
18833 return 0;
18835 return 0;
18837 _ACEOF
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_compile") 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest.$ac_objext; then
18855 ac_cv_member_struct_sockaddr_un_sun_len=yes
18856 else
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18860 cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h. */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18866 #include <sys/types.h>
18867 #ifdef HAVE_SYS_SOCKET_H
18868 # include <sys/socket.h>
18869 #endif
18870 #ifdef HAVE_SYS_UN_H
18871 # include <sys/un.h>
18872 #endif
18875 main ()
18877 static struct sockaddr_un ac_aggr;
18878 if (sizeof ac_aggr.sun_len)
18879 return 0;
18881 return 0;
18883 _ACEOF
18884 rm -f conftest.$ac_objext
18885 if { (ac_try="$ac_compile"
18886 case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_compile") 2>conftest.er1
18892 ac_status=$?
18893 grep -v '^ *+' conftest.er1 >conftest.err
18894 rm -f conftest.er1
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } && {
18898 test -z "$ac_c_werror_flag" ||
18899 test ! -s conftest.err
18900 } && test -s conftest.$ac_objext; then
18901 ac_cv_member_struct_sockaddr_un_sun_len=yes
18902 else
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18906 ac_cv_member_struct_sockaddr_un_sun_len=no
18909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18914 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18915 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
18916 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18918 cat >>confdefs.h <<_ACEOF
18919 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18920 _ACEOF
18926 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18927 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
18928 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 else
18931 cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h. */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 #include <sys/types.h>
18938 #ifdef HAVE_SCSI_SG_H
18939 #include <scsi/sg.h>
18940 #endif
18943 main ()
18945 static scsireq_t ac_aggr;
18946 if (ac_aggr.cmd)
18947 return 0;
18949 return 0;
18951 _ACEOF
18952 rm -f conftest.$ac_objext
18953 if { (ac_try="$ac_compile"
18954 case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18957 esac
18958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959 (eval "$ac_compile") 2>conftest.er1
18960 ac_status=$?
18961 grep -v '^ *+' conftest.er1 >conftest.err
18962 rm -f conftest.er1
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } && {
18966 test -z "$ac_c_werror_flag" ||
18967 test ! -s conftest.err
18968 } && test -s conftest.$ac_objext; then
18969 ac_cv_member_scsireq_t_cmd=yes
18970 else
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h. */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 #include <sys/types.h>
18981 #ifdef HAVE_SCSI_SG_H
18982 #include <scsi/sg.h>
18983 #endif
18986 main ()
18988 static scsireq_t ac_aggr;
18989 if (sizeof ac_aggr.cmd)
18990 return 0;
18992 return 0;
18994 _ACEOF
18995 rm -f conftest.$ac_objext
18996 if { (ac_try="$ac_compile"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_compile") 2>conftest.er1
19003 ac_status=$?
19004 grep -v '^ *+' conftest.er1 >conftest.err
19005 rm -f conftest.er1
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest.$ac_objext; then
19012 ac_cv_member_scsireq_t_cmd=yes
19013 else
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19017 ac_cv_member_scsireq_t_cmd=no
19020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19025 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
19026 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
19027 if test $ac_cv_member_scsireq_t_cmd = yes; then
19029 cat >>confdefs.h <<_ACEOF
19030 #define HAVE_SCSIREQ_T_CMD 1
19031 _ACEOF
19035 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
19036 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
19037 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 else
19040 cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h. */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 #include <sys/types.h>
19047 #ifdef HAVE_SCSI_SG_H
19048 #include <scsi/sg.h>
19049 #endif
19052 main ()
19054 static sg_io_hdr_t ac_aggr;
19055 if (ac_aggr.interface_id)
19056 return 0;
19058 return 0;
19060 _ACEOF
19061 rm -f conftest.$ac_objext
19062 if { (ac_try="$ac_compile"
19063 case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_compile") 2>conftest.er1
19069 ac_status=$?
19070 grep -v '^ *+' conftest.er1 >conftest.err
19071 rm -f conftest.er1
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } && {
19075 test -z "$ac_c_werror_flag" ||
19076 test ! -s conftest.err
19077 } && test -s conftest.$ac_objext; then
19078 ac_cv_member_sg_io_hdr_t_interface_id=yes
19079 else
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 cat >conftest.$ac_ext <<_ACEOF
19084 /* confdefs.h. */
19085 _ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h. */
19089 #include <sys/types.h>
19090 #ifdef HAVE_SCSI_SG_H
19091 #include <scsi/sg.h>
19092 #endif
19095 main ()
19097 static sg_io_hdr_t ac_aggr;
19098 if (sizeof ac_aggr.interface_id)
19099 return 0;
19101 return 0;
19103 _ACEOF
19104 rm -f conftest.$ac_objext
19105 if { (ac_try="$ac_compile"
19106 case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19109 esac
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_compile") 2>conftest.er1
19112 ac_status=$?
19113 grep -v '^ *+' conftest.er1 >conftest.err
19114 rm -f conftest.er1
19115 cat conftest.err >&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } && {
19118 test -z "$ac_c_werror_flag" ||
19119 test ! -s conftest.err
19120 } && test -s conftest.$ac_objext; then
19121 ac_cv_member_sg_io_hdr_t_interface_id=yes
19122 else
19123 echo "$as_me: failed program was:" >&5
19124 sed 's/^/| /' conftest.$ac_ext >&5
19126 ac_cv_member_sg_io_hdr_t_interface_id=no
19129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19134 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19135 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
19136 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19138 cat >>confdefs.h <<_ACEOF
19139 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19140 _ACEOF
19146 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19147 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
19148 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151 cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h. */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 #include <signal.h>
19160 main ()
19162 static siginfo_t ac_aggr;
19163 if (ac_aggr.si_fd)
19164 return 0;
19166 return 0;
19168 _ACEOF
19169 rm -f conftest.$ac_objext
19170 if { (ac_try="$ac_compile"
19171 case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19174 esac
19175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176 (eval "$ac_compile") 2>conftest.er1
19177 ac_status=$?
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } && {
19183 test -z "$ac_c_werror_flag" ||
19184 test ! -s conftest.err
19185 } && test -s conftest.$ac_objext; then
19186 ac_cv_member_siginfo_t_si_fd=yes
19187 else
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 cat >conftest.$ac_ext <<_ACEOF
19192 /* confdefs.h. */
19193 _ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h. */
19197 #include <signal.h>
19200 main ()
19202 static siginfo_t ac_aggr;
19203 if (sizeof ac_aggr.si_fd)
19204 return 0;
19206 return 0;
19208 _ACEOF
19209 rm -f conftest.$ac_objext
19210 if { (ac_try="$ac_compile"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_compile") 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } && {
19223 test -z "$ac_c_werror_flag" ||
19224 test ! -s conftest.err
19225 } && test -s conftest.$ac_objext; then
19226 ac_cv_member_siginfo_t_si_fd=yes
19227 else
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19231 ac_cv_member_siginfo_t_si_fd=no
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19239 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19240 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
19241 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19243 cat >>confdefs.h <<_ACEOF
19244 #define HAVE_SIGINFO_T_SI_FD 1
19245 _ACEOF
19251 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
19252 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
19253 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h. */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include <sys/types.h>
19263 #ifdef HAVE_SYS_MTIO_H
19264 #include <sys/mtio.h>
19265 #endif
19268 main ()
19270 static struct mtget ac_aggr;
19271 if (ac_aggr.mt_blksiz)
19272 return 0;
19274 return 0;
19276 _ACEOF
19277 rm -f conftest.$ac_objext
19278 if { (ac_try="$ac_compile"
19279 case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_compile") 2>conftest.er1
19285 ac_status=$?
19286 grep -v '^ *+' conftest.er1 >conftest.err
19287 rm -f conftest.er1
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } && {
19291 test -z "$ac_c_werror_flag" ||
19292 test ! -s conftest.err
19293 } && test -s conftest.$ac_objext; then
19294 ac_cv_member_struct_mtget_mt_blksiz=yes
19295 else
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19299 cat >conftest.$ac_ext <<_ACEOF
19300 /* confdefs.h. */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 #include <sys/types.h>
19306 #ifdef HAVE_SYS_MTIO_H
19307 #include <sys/mtio.h>
19308 #endif
19311 main ()
19313 static struct mtget ac_aggr;
19314 if (sizeof ac_aggr.mt_blksiz)
19315 return 0;
19317 return 0;
19319 _ACEOF
19320 rm -f conftest.$ac_objext
19321 if { (ac_try="$ac_compile"
19322 case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19325 esac
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_compile") 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest.$ac_objext; then
19337 ac_cv_member_struct_mtget_mt_blksiz=yes
19338 else
19339 echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 ac_cv_member_struct_mtget_mt_blksiz=no
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19350 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
19351 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
19352 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
19354 cat >>confdefs.h <<_ACEOF
19355 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
19356 _ACEOF
19360 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
19361 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
19362 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365 cat >conftest.$ac_ext <<_ACEOF
19366 /* confdefs.h. */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19371 #include <sys/types.h>
19372 #ifdef HAVE_SYS_MTIO_H
19373 #include <sys/mtio.h>
19374 #endif
19377 main ()
19379 static struct mtget ac_aggr;
19380 if (ac_aggr.mt_gstat)
19381 return 0;
19383 return 0;
19385 _ACEOF
19386 rm -f conftest.$ac_objext
19387 if { (ac_try="$ac_compile"
19388 case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_compile") 2>conftest.er1
19394 ac_status=$?
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } && {
19400 test -z "$ac_c_werror_flag" ||
19401 test ! -s conftest.err
19402 } && test -s conftest.$ac_objext; then
19403 ac_cv_member_struct_mtget_mt_gstat=yes
19404 else
19405 echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19408 cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h. */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 #include <sys/types.h>
19415 #ifdef HAVE_SYS_MTIO_H
19416 #include <sys/mtio.h>
19417 #endif
19420 main ()
19422 static struct mtget ac_aggr;
19423 if (sizeof ac_aggr.mt_gstat)
19424 return 0;
19426 return 0;
19428 _ACEOF
19429 rm -f conftest.$ac_objext
19430 if { (ac_try="$ac_compile"
19431 case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_compile") 2>conftest.er1
19437 ac_status=$?
19438 grep -v '^ *+' conftest.er1 >conftest.err
19439 rm -f conftest.er1
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } && {
19443 test -z "$ac_c_werror_flag" ||
19444 test ! -s conftest.err
19445 } && test -s conftest.$ac_objext; then
19446 ac_cv_member_struct_mtget_mt_gstat=yes
19447 else
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 ac_cv_member_struct_mtget_mt_gstat=no
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19459 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
19460 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
19461 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
19463 cat >>confdefs.h <<_ACEOF
19464 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
19465 _ACEOF
19469 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
19470 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
19471 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19473 else
19474 cat >conftest.$ac_ext <<_ACEOF
19475 /* confdefs.h. */
19476 _ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19480 #include <sys/types.h>
19481 #ifdef HAVE_SYS_MTIO_H
19482 #include <sys/mtio.h>
19483 #endif
19486 main ()
19488 static struct mtget ac_aggr;
19489 if (ac_aggr.mt_blkno)
19490 return 0;
19492 return 0;
19494 _ACEOF
19495 rm -f conftest.$ac_objext
19496 if { (ac_try="$ac_compile"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500 esac
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_compile") 2>conftest.er1
19503 ac_status=$?
19504 grep -v '^ *+' conftest.er1 >conftest.err
19505 rm -f conftest.er1
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && {
19509 test -z "$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 } && test -s conftest.$ac_objext; then
19512 ac_cv_member_struct_mtget_mt_blkno=yes
19513 else
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 cat >conftest.$ac_ext <<_ACEOF
19518 /* confdefs.h. */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19523 #include <sys/types.h>
19524 #ifdef HAVE_SYS_MTIO_H
19525 #include <sys/mtio.h>
19526 #endif
19529 main ()
19531 static struct mtget ac_aggr;
19532 if (sizeof ac_aggr.mt_blkno)
19533 return 0;
19535 return 0;
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (ac_try="$ac_compile"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19543 esac
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_compile") 2>conftest.er1
19546 ac_status=$?
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } && {
19552 test -z "$ac_c_werror_flag" ||
19553 test ! -s conftest.err
19554 } && test -s conftest.$ac_objext; then
19555 ac_cv_member_struct_mtget_mt_blkno=yes
19556 else
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 ac_cv_member_struct_mtget_mt_blkno=no
19563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19568 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19569 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
19570 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19572 cat >>confdefs.h <<_ACEOF
19573 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
19574 _ACEOF
19580 { echo "$as_me:$LINENO: checking for struct option.name" >&5
19581 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
19582 if test "${ac_cv_member_struct_option_name+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19584 else
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h. */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 #ifdef HAVE_GETOPT_H
19592 #include <getopt.h>
19593 #endif
19596 main ()
19598 static struct option ac_aggr;
19599 if (ac_aggr.name)
19600 return 0;
19602 return 0;
19604 _ACEOF
19605 rm -f conftest.$ac_objext
19606 if { (ac_try="$ac_compile"
19607 case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_compile") 2>conftest.er1
19613 ac_status=$?
19614 grep -v '^ *+' conftest.er1 >conftest.err
19615 rm -f conftest.er1
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest.$ac_objext; then
19622 ac_cv_member_struct_option_name=yes
19623 else
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h. */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19633 #ifdef HAVE_GETOPT_H
19634 #include <getopt.h>
19635 #endif
19638 main ()
19640 static struct option ac_aggr;
19641 if (sizeof ac_aggr.name)
19642 return 0;
19644 return 0;
19646 _ACEOF
19647 rm -f conftest.$ac_objext
19648 if { (ac_try="$ac_compile"
19649 case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652 esac
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_compile") 2>conftest.er1
19655 ac_status=$?
19656 grep -v '^ *+' conftest.er1 >conftest.err
19657 rm -f conftest.er1
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } && {
19661 test -z "$ac_c_werror_flag" ||
19662 test ! -s conftest.err
19663 } && test -s conftest.$ac_objext; then
19664 ac_cv_member_struct_option_name=yes
19665 else
19666 echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19669 ac_cv_member_struct_option_name=no
19672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19677 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19678 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
19679 if test $ac_cv_member_struct_option_name = yes; then
19681 cat >>confdefs.h <<_ACEOF
19682 #define HAVE_STRUCT_OPTION_NAME 1
19683 _ACEOF
19689 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19690 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19691 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19693 else
19694 cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h. */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19700 $ac_includes_default
19702 main ()
19704 static struct stat ac_aggr;
19705 if (ac_aggr.st_blocks)
19706 return 0;
19708 return 0;
19710 _ACEOF
19711 rm -f conftest.$ac_objext
19712 if { (ac_try="$ac_compile"
19713 case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19716 esac
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_compile") 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } && {
19725 test -z "$ac_c_werror_flag" ||
19726 test ! -s conftest.err
19727 } && test -s conftest.$ac_objext; then
19728 ac_cv_member_struct_stat_st_blocks=yes
19729 else
19730 echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19733 cat >conftest.$ac_ext <<_ACEOF
19734 /* confdefs.h. */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19739 $ac_includes_default
19741 main ()
19743 static struct stat ac_aggr;
19744 if (sizeof ac_aggr.st_blocks)
19745 return 0;
19747 return 0;
19749 _ACEOF
19750 rm -f conftest.$ac_objext
19751 if { (ac_try="$ac_compile"
19752 case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19755 esac
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_compile") 2>conftest.er1
19758 ac_status=$?
19759 grep -v '^ *+' conftest.er1 >conftest.err
19760 rm -f conftest.er1
19761 cat conftest.err >&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } && {
19764 test -z "$ac_c_werror_flag" ||
19765 test ! -s conftest.err
19766 } && test -s conftest.$ac_objext; then
19767 ac_cv_member_struct_stat_st_blocks=yes
19768 else
19769 echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19772 ac_cv_member_struct_stat_st_blocks=no
19775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19780 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19781 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19782 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19784 cat >>confdefs.h <<_ACEOF
19785 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19786 _ACEOF
19792 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19793 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
19794 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19796 else
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h. */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 #ifdef HAVE_SYS_TYPES_H
19804 #include <sys/types.h>
19805 #endif
19806 #ifdef HAVE_NETINET_IN_H
19807 #include <netinet/in.h>
19808 #endif
19811 main ()
19813 static struct sockaddr_in6 ac_aggr;
19814 if (ac_aggr.sin6_scope_id)
19815 return 0;
19817 return 0;
19819 _ACEOF
19820 rm -f conftest.$ac_objext
19821 if { (ac_try="$ac_compile"
19822 case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19825 esac
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_compile") 2>conftest.er1
19828 ac_status=$?
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -f conftest.er1
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } && {
19834 test -z "$ac_c_werror_flag" ||
19835 test ! -s conftest.err
19836 } && test -s conftest.$ac_objext; then
19837 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19838 else
19839 echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19842 cat >conftest.$ac_ext <<_ACEOF
19843 /* confdefs.h. */
19844 _ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19848 #ifdef HAVE_SYS_TYPES_H
19849 #include <sys/types.h>
19850 #endif
19851 #ifdef HAVE_NETINET_IN_H
19852 #include <netinet/in.h>
19853 #endif
19856 main ()
19858 static struct sockaddr_in6 ac_aggr;
19859 if (sizeof ac_aggr.sin6_scope_id)
19860 return 0;
19862 return 0;
19864 _ACEOF
19865 rm -f conftest.$ac_objext
19866 if { (ac_try="$ac_compile"
19867 case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19870 esac
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_compile") 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } && {
19879 test -z "$ac_c_werror_flag" ||
19880 test ! -s conftest.err
19881 } && test -s conftest.$ac_objext; then
19882 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19883 else
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
19890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19895 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19896 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
19897 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19899 cat >>confdefs.h <<_ACEOF
19900 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19901 _ACEOF
19907 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
19908 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
19909 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912 cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h. */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 #ifdef HAVE_SYS_TYPES_H
19919 #include <sys/types.h>
19920 #endif
19921 #ifdef HAVE_NETINET_IN_H
19922 # include <netinet/in.h>
19923 #endif
19924 #ifdef HAVE_ARPA_NAMESER_H
19925 # include <arpa/nameser.h>
19926 #endif
19929 main ()
19931 static ns_msg ac_aggr;
19932 if (ac_aggr._msg_ptr)
19933 return 0;
19935 return 0;
19937 _ACEOF
19938 rm -f conftest.$ac_objext
19939 if { (ac_try="$ac_compile"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19943 esac
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_compile") 2>conftest.er1
19946 ac_status=$?
19947 grep -v '^ *+' conftest.er1 >conftest.err
19948 rm -f conftest.er1
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } && {
19952 test -z "$ac_c_werror_flag" ||
19953 test ! -s conftest.err
19954 } && test -s conftest.$ac_objext; then
19955 ac_cv_member_ns_msg__msg_ptr=yes
19956 else
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h. */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 #ifdef HAVE_SYS_TYPES_H
19967 #include <sys/types.h>
19968 #endif
19969 #ifdef HAVE_NETINET_IN_H
19970 # include <netinet/in.h>
19971 #endif
19972 #ifdef HAVE_ARPA_NAMESER_H
19973 # include <arpa/nameser.h>
19974 #endif
19977 main ()
19979 static ns_msg ac_aggr;
19980 if (sizeof ac_aggr._msg_ptr)
19981 return 0;
19983 return 0;
19985 _ACEOF
19986 rm -f conftest.$ac_objext
19987 if { (ac_try="$ac_compile"
19988 case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_compile") 2>conftest.er1
19994 ac_status=$?
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } && {
20000 test -z "$ac_c_werror_flag" ||
20001 test ! -s conftest.err
20002 } && test -s conftest.$ac_objext; then
20003 ac_cv_member_ns_msg__msg_ptr=yes
20004 else
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_cv_member_ns_msg__msg_ptr=no
20011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20016 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
20017 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
20018 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
20020 cat >>confdefs.h <<_ACEOF
20021 #define HAVE_NS_MSG__MSG_PTR 1
20022 _ACEOF
20028 { echo "$as_me:$LINENO: checking for timezone variable" >&5
20029 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
20030 if test "${ac_cv_have_timezone+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033 cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h. */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20039 #include <time.h>
20041 main ()
20043 timezone = 1
20045 return 0;
20047 _ACEOF
20048 rm -f conftest.$ac_objext conftest$ac_exeext
20049 if { (ac_try="$ac_link"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_link") 2>conftest.er1
20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest$ac_exeext &&
20065 $as_test_x conftest$ac_exeext; then
20066 ac_cv_have_timezone="yes"
20067 else
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20071 ac_cv_have_timezone="no"
20074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20075 conftest$ac_exeext conftest.$ac_ext
20077 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
20078 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
20079 if test "$ac_cv_have_timezone" = "yes"
20080 then
20082 cat >>confdefs.h <<\_ACEOF
20083 #define HAVE_TIMEZONE 1
20084 _ACEOF
20087 { echo "$as_me:$LINENO: checking for daylight variable" >&5
20088 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
20089 if test "${ac_cv_have_daylight+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092 cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h. */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 #include <time.h>
20100 main ()
20102 daylight = 1
20104 return 0;
20106 _ACEOF
20107 rm -f conftest.$ac_objext conftest$ac_exeext
20108 if { (ac_try="$ac_link"
20109 case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20112 esac
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_link") 2>conftest.er1
20115 ac_status=$?
20116 grep -v '^ *+' conftest.er1 >conftest.err
20117 rm -f conftest.er1
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } && {
20121 test -z "$ac_c_werror_flag" ||
20122 test ! -s conftest.err
20123 } && test -s conftest$ac_exeext &&
20124 $as_test_x conftest$ac_exeext; then
20125 ac_cv_have_daylight="yes"
20126 else
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 ac_cv_have_daylight="no"
20133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20134 conftest$ac_exeext conftest.$ac_ext
20136 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20137 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
20138 if test "$ac_cv_have_daylight" = "yes"
20139 then
20141 cat >>confdefs.h <<\_ACEOF
20142 #define HAVE_DAYLIGHT 1
20143 _ACEOF
20148 case $host_cpu in
20149 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20150 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
20151 if test "${ac_cv_cpp_def___i386__+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154 cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h. */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20160 #ifndef __i386__
20162 #endif
20163 _ACEOF
20164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20165 $EGREP "yes" >/dev/null 2>&1; then
20166 ac_cv_cpp_def___i386__=yes
20167 else
20168 ac_cv_cpp_def___i386__=no
20170 rm -f conftest*
20173 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20174 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
20175 if test $ac_cv_cpp_def___i386__ = yes; then
20176 CFLAGS="$CFLAGS -D__i386__"
20177 LINTFLAGS="$LINTFLAGS -D__i386__"
20180 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
20181 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
20182 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185 cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h. */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 #ifndef __x86_64__
20193 #endif
20194 _ACEOF
20195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20196 $EGREP "yes" >/dev/null 2>&1; then
20197 ac_cv_cpp_def___x86_64__=yes
20198 else
20199 ac_cv_cpp_def___x86_64__=no
20201 rm -f conftest*
20204 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
20205 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
20206 if test $ac_cv_cpp_def___x86_64__ = yes; then
20207 CFLAGS="$CFLAGS -D__x86_64__"
20208 LINTFLAGS="$LINTFLAGS -D__x86_64__"
20211 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20212 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
20213 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 else
20216 cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h. */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 #ifndef __ALPHA__
20224 #endif
20225 _ACEOF
20226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20227 $EGREP "yes" >/dev/null 2>&1; then
20228 ac_cv_cpp_def___ALPHA__=yes
20229 else
20230 ac_cv_cpp_def___ALPHA__=no
20232 rm -f conftest*
20235 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20236 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
20237 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20238 CFLAGS="$CFLAGS -D__ALPHA__"
20239 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20242 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20243 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
20244 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20246 else
20247 cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h. */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20253 #ifndef __sparc__
20255 #endif
20256 _ACEOF
20257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20258 $EGREP "yes" >/dev/null 2>&1; then
20259 ac_cv_cpp_def___sparc__=yes
20260 else
20261 ac_cv_cpp_def___sparc__=no
20263 rm -f conftest*
20266 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20267 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
20268 if test $ac_cv_cpp_def___sparc__ = yes; then
20269 CFLAGS="$CFLAGS -D__sparc__"
20270 LINTFLAGS="$LINTFLAGS -D__sparc__"
20273 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20274 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
20275 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20276 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 else
20278 cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h. */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 #ifndef __powerpc__
20286 #endif
20287 _ACEOF
20288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20289 $EGREP "yes" >/dev/null 2>&1; then
20290 ac_cv_cpp_def___powerpc__=yes
20291 else
20292 ac_cv_cpp_def___powerpc__=no
20294 rm -f conftest*
20297 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20298 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
20299 if test $ac_cv_cpp_def___powerpc__ = yes; then
20300 CFLAGS="$CFLAGS -D__powerpc__"
20301 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20304 esac
20306 case $host_vendor in
20307 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20308 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
20309 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20312 cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h. */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 #ifndef __sun__
20320 #endif
20321 _ACEOF
20322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20323 $EGREP "yes" >/dev/null 2>&1; then
20324 ac_cv_cpp_def___sun__=yes
20325 else
20326 ac_cv_cpp_def___sun__=no
20328 rm -f conftest*
20331 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20332 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
20333 if test $ac_cv_cpp_def___sun__ = yes; then
20334 CFLAGS="$CFLAGS -D__sun__"
20335 LINTFLAGS="$LINTFLAGS -D__sun__"
20338 esac
20341 DEPENDENCIES="### Dependencies:
20343 .INIT: Makefile
20344 .BEGIN: Makefile
20345 Makefile: dummy
20346 -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
20348 \$(OBJS): \$(IDL_GEN_HEADERS)
20349 \$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
20350 \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
20351 \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
20357 ac_config_commands="$ac_config_commands include/stamp-h"
20360 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
20362 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
20364 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
20366 ac_config_commands="$ac_config_commands dlls/user32/resources"
20368 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
20370 ac_config_commands="$ac_config_commands include/wine"
20373 MAKE_RULES=Make.rules
20376 MAKE_DLL_RULES=dlls/Makedll.rules
20379 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
20382 MAKE_TEST_RULES=dlls/Maketest.rules
20385 MAKE_PROG_RULES=programs/Makeprog.rules
20388 ac_config_files="$ac_config_files Make.rules"
20390 ac_config_files="$ac_config_files dlls/Makedll.rules"
20392 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
20394 ac_config_files="$ac_config_files dlls/Maketest.rules"
20396 ac_config_files="$ac_config_files programs/Makeprog.rules"
20398 ac_config_files="$ac_config_files Makefile"
20400 ac_config_files="$ac_config_files dlls/Makefile"
20402 ac_config_files="$ac_config_files dlls/acledit/Makefile"
20404 ac_config_files="$ac_config_files dlls/activeds/Makefile"
20406 ac_config_files="$ac_config_files dlls/advapi32/Makefile"
20408 ac_config_files="$ac_config_files dlls/advapi32/tests/Makefile"
20410 ac_config_files="$ac_config_files dlls/advpack/Makefile"
20412 ac_config_files="$ac_config_files dlls/advpack/tests/Makefile"
20414 ac_config_files="$ac_config_files dlls/amstream/Makefile"
20416 ac_config_files="$ac_config_files dlls/atl/Makefile"
20418 ac_config_files="$ac_config_files dlls/avicap32/Makefile"
20420 ac_config_files="$ac_config_files dlls/avifil32/Makefile"
20422 ac_config_files="$ac_config_files dlls/browseui/Makefile"
20424 ac_config_files="$ac_config_files dlls/browseui/tests/Makefile"
20426 ac_config_files="$ac_config_files dlls/cabinet/Makefile"
20428 ac_config_files="$ac_config_files dlls/cabinet/tests/Makefile"
20430 ac_config_files="$ac_config_files dlls/capi2032/Makefile"
20432 ac_config_files="$ac_config_files dlls/cards/Makefile"
20434 ac_config_files="$ac_config_files dlls/cfgmgr32/Makefile"
20436 ac_config_files="$ac_config_files dlls/clusapi/Makefile"
20438 ac_config_files="$ac_config_files dlls/comcat/Makefile"
20440 ac_config_files="$ac_config_files dlls/comcat/tests/Makefile"
20442 ac_config_files="$ac_config_files dlls/comctl32/Makefile"
20444 ac_config_files="$ac_config_files dlls/comctl32/tests/Makefile"
20446 ac_config_files="$ac_config_files dlls/comdlg32/Makefile"
20448 ac_config_files="$ac_config_files dlls/comdlg32/tests/Makefile"
20450 ac_config_files="$ac_config_files dlls/compstui/Makefile"
20452 ac_config_files="$ac_config_files dlls/credui/Makefile"
20454 ac_config_files="$ac_config_files dlls/crtdll/Makefile"
20456 ac_config_files="$ac_config_files dlls/crypt32/Makefile"
20458 ac_config_files="$ac_config_files dlls/crypt32/tests/Makefile"
20460 ac_config_files="$ac_config_files dlls/cryptdll/Makefile"
20462 ac_config_files="$ac_config_files dlls/cryptnet/Makefile"
20464 ac_config_files="$ac_config_files dlls/ctl3d32/Makefile"
20466 ac_config_files="$ac_config_files dlls/d3d8/Makefile"
20468 ac_config_files="$ac_config_files dlls/d3d8/tests/Makefile"
20470 ac_config_files="$ac_config_files dlls/d3d9/Makefile"
20472 ac_config_files="$ac_config_files dlls/d3d9/tests/Makefile"
20474 ac_config_files="$ac_config_files dlls/d3dim/Makefile"
20476 ac_config_files="$ac_config_files dlls/d3drm/Makefile"
20478 ac_config_files="$ac_config_files dlls/d3drm/tests/Makefile"
20480 ac_config_files="$ac_config_files dlls/d3dx8/Makefile"
20482 ac_config_files="$ac_config_files dlls/d3dxof/Makefile"
20484 ac_config_files="$ac_config_files dlls/dbghelp/Makefile"
20486 ac_config_files="$ac_config_files dlls/dciman32/Makefile"
20488 ac_config_files="$ac_config_files dlls/ddraw/Makefile"
20490 ac_config_files="$ac_config_files dlls/ddraw/tests/Makefile"
20492 ac_config_files="$ac_config_files dlls/ddrawex/Makefile"
20494 ac_config_files="$ac_config_files dlls/devenum/Makefile"
20496 ac_config_files="$ac_config_files dlls/dinput/Makefile"
20498 ac_config_files="$ac_config_files dlls/dinput/tests/Makefile"
20500 ac_config_files="$ac_config_files dlls/dinput8/Makefile"
20502 ac_config_files="$ac_config_files dlls/dmband/Makefile"
20504 ac_config_files="$ac_config_files dlls/dmcompos/Makefile"
20506 ac_config_files="$ac_config_files dlls/dmime/Makefile"
20508 ac_config_files="$ac_config_files dlls/dmloader/Makefile"
20510 ac_config_files="$ac_config_files dlls/dmscript/Makefile"
20512 ac_config_files="$ac_config_files dlls/dmstyle/Makefile"
20514 ac_config_files="$ac_config_files dlls/dmsynth/Makefile"
20516 ac_config_files="$ac_config_files dlls/dmusic/Makefile"
20518 ac_config_files="$ac_config_files dlls/dmusic32/Makefile"
20520 ac_config_files="$ac_config_files dlls/dnsapi/Makefile"
20522 ac_config_files="$ac_config_files dlls/dnsapi/tests/Makefile"
20524 ac_config_files="$ac_config_files dlls/dplay/Makefile"
20526 ac_config_files="$ac_config_files dlls/dplayx/Makefile"
20528 ac_config_files="$ac_config_files dlls/dplayx/tests/Makefile"
20530 ac_config_files="$ac_config_files dlls/dpnaddr/Makefile"
20532 ac_config_files="$ac_config_files dlls/dpnet/Makefile"
20534 ac_config_files="$ac_config_files dlls/dpnhpast/Makefile"
20536 ac_config_files="$ac_config_files dlls/dsound/Makefile"
20538 ac_config_files="$ac_config_files dlls/dsound/tests/Makefile"
20540 ac_config_files="$ac_config_files dlls/dswave/Makefile"
20542 ac_config_files="$ac_config_files dlls/dxdiagn/Makefile"
20544 ac_config_files="$ac_config_files dlls/dxerr8/Makefile"
20546 ac_config_files="$ac_config_files dlls/dxerr9/Makefile"
20548 ac_config_files="$ac_config_files dlls/dxguid/Makefile"
20550 ac_config_files="$ac_config_files dlls/gdi32/Makefile"
20552 ac_config_files="$ac_config_files dlls/gdi32/tests/Makefile"
20554 ac_config_files="$ac_config_files dlls/gdiplus/Makefile"
20556 ac_config_files="$ac_config_files dlls/gdiplus/tests/Makefile"
20558 ac_config_files="$ac_config_files dlls/glu32/Makefile"
20560 ac_config_files="$ac_config_files dlls/gphoto2.ds/Makefile"
20562 ac_config_files="$ac_config_files dlls/hal/Makefile"
20564 ac_config_files="$ac_config_files dlls/hhctrl.ocx/Makefile"
20566 ac_config_files="$ac_config_files dlls/hid/Makefile"
20568 ac_config_files="$ac_config_files dlls/hlink/Makefile"
20570 ac_config_files="$ac_config_files dlls/hlink/tests/Makefile"
20572 ac_config_files="$ac_config_files dlls/iccvid/Makefile"
20574 ac_config_files="$ac_config_files dlls/icmp/Makefile"
20576 ac_config_files="$ac_config_files dlls/ifsmgr.vxd/Makefile"
20578 ac_config_files="$ac_config_files dlls/imaadp32.acm/Makefile"
20580 ac_config_files="$ac_config_files dlls/imagehlp/Makefile"
20582 ac_config_files="$ac_config_files dlls/imm32/Makefile"
20584 ac_config_files="$ac_config_files dlls/infosoft/Makefile"
20586 ac_config_files="$ac_config_files dlls/infosoft/tests/Makefile"
20588 ac_config_files="$ac_config_files dlls/inseng/Makefile"
20590 ac_config_files="$ac_config_files dlls/iphlpapi/Makefile"
20592 ac_config_files="$ac_config_files dlls/iphlpapi/tests/Makefile"
20594 ac_config_files="$ac_config_files dlls/itss/Makefile"
20596 ac_config_files="$ac_config_files dlls/itss/tests/Makefile"
20598 ac_config_files="$ac_config_files dlls/kernel32/Makefile"
20600 ac_config_files="$ac_config_files dlls/kernel32/tests/Makefile"
20602 ac_config_files="$ac_config_files dlls/localspl/Makefile"
20604 ac_config_files="$ac_config_files dlls/localspl/tests/Makefile"
20606 ac_config_files="$ac_config_files dlls/localui/Makefile"
20608 ac_config_files="$ac_config_files dlls/localui/tests/Makefile"
20610 ac_config_files="$ac_config_files dlls/lz32/Makefile"
20612 ac_config_files="$ac_config_files dlls/lz32/tests/Makefile"
20614 ac_config_files="$ac_config_files dlls/mapi32/Makefile"
20616 ac_config_files="$ac_config_files dlls/mapi32/tests/Makefile"
20618 ac_config_files="$ac_config_files dlls/mciavi32/Makefile"
20620 ac_config_files="$ac_config_files dlls/mcicda/Makefile"
20622 ac_config_files="$ac_config_files dlls/mciseq/Makefile"
20624 ac_config_files="$ac_config_files dlls/mciwave/Makefile"
20626 ac_config_files="$ac_config_files dlls/midimap/Makefile"
20628 ac_config_files="$ac_config_files dlls/mlang/Makefile"
20630 ac_config_files="$ac_config_files dlls/mlang/tests/Makefile"
20632 ac_config_files="$ac_config_files dlls/mmdevldr.vxd/Makefile"
20634 ac_config_files="$ac_config_files dlls/monodebg.vxd/Makefile"
20636 ac_config_files="$ac_config_files dlls/mpr/Makefile"
20638 ac_config_files="$ac_config_files dlls/mprapi/Makefile"
20640 ac_config_files="$ac_config_files dlls/msacm32.drv/Makefile"
20642 ac_config_files="$ac_config_files dlls/msacm32/Makefile"
20644 ac_config_files="$ac_config_files dlls/msacm32/tests/Makefile"
20646 ac_config_files="$ac_config_files dlls/msadp32.acm/Makefile"
20648 ac_config_files="$ac_config_files dlls/mscms/Makefile"
20650 ac_config_files="$ac_config_files dlls/mscms/tests/Makefile"
20652 ac_config_files="$ac_config_files dlls/mscoree/Makefile"
20654 ac_config_files="$ac_config_files dlls/msdmo/Makefile"
20656 ac_config_files="$ac_config_files dlls/msftedit/Makefile"
20658 ac_config_files="$ac_config_files dlls/msg711.acm/Makefile"
20660 ac_config_files="$ac_config_files dlls/mshtml/Makefile"
20662 ac_config_files="$ac_config_files dlls/mshtml/tests/Makefile"
20664 ac_config_files="$ac_config_files dlls/msi/Makefile"
20666 ac_config_files="$ac_config_files dlls/msi/tests/Makefile"
20668 ac_config_files="$ac_config_files dlls/msimg32/Makefile"
20670 ac_config_files="$ac_config_files dlls/msisys.ocx/Makefile"
20672 ac_config_files="$ac_config_files dlls/msnet32/Makefile"
20674 ac_config_files="$ac_config_files dlls/msrle32/Makefile"
20676 ac_config_files="$ac_config_files dlls/msvcrt/Makefile"
20678 ac_config_files="$ac_config_files dlls/msvcrt/tests/Makefile"
20680 ac_config_files="$ac_config_files dlls/msvcrt20/Makefile"
20682 ac_config_files="$ac_config_files dlls/msvcrt40/Makefile"
20684 ac_config_files="$ac_config_files dlls/msvcrtd/Makefile"
20686 ac_config_files="$ac_config_files dlls/msvcrtd/tests/Makefile"
20688 ac_config_files="$ac_config_files dlls/msvfw32/Makefile"
20690 ac_config_files="$ac_config_files dlls/msvidc32/Makefile"
20692 ac_config_files="$ac_config_files dlls/mswsock/Makefile"
20694 ac_config_files="$ac_config_files dlls/msxml3/Makefile"
20696 ac_config_files="$ac_config_files dlls/msxml3/tests/Makefile"
20698 ac_config_files="$ac_config_files dlls/nddeapi/Makefile"
20700 ac_config_files="$ac_config_files dlls/netapi32/Makefile"
20702 ac_config_files="$ac_config_files dlls/netapi32/tests/Makefile"
20704 ac_config_files="$ac_config_files dlls/newdev/Makefile"
20706 ac_config_files="$ac_config_files dlls/ntdll/Makefile"
20708 ac_config_files="$ac_config_files dlls/ntdll/tests/Makefile"
20710 ac_config_files="$ac_config_files dlls/ntdsapi/Makefile"
20712 ac_config_files="$ac_config_files dlls/ntoskrnl.exe/Makefile"
20714 ac_config_files="$ac_config_files dlls/objsel/Makefile"
20716 ac_config_files="$ac_config_files dlls/odbc32/Makefile"
20718 ac_config_files="$ac_config_files dlls/odbccp32/Makefile"
20720 ac_config_files="$ac_config_files dlls/odbccp32/tests/Makefile"
20722 ac_config_files="$ac_config_files dlls/ole32/Makefile"
20724 ac_config_files="$ac_config_files dlls/ole32/tests/Makefile"
20726 ac_config_files="$ac_config_files dlls/oleacc/Makefile"
20728 ac_config_files="$ac_config_files dlls/oleaut32/Makefile"
20730 ac_config_files="$ac_config_files dlls/oleaut32/tests/Makefile"
20732 ac_config_files="$ac_config_files dlls/olecli32/Makefile"
20734 ac_config_files="$ac_config_files dlls/oledlg/Makefile"
20736 ac_config_files="$ac_config_files dlls/olepro32/Makefile"
20738 ac_config_files="$ac_config_files dlls/olesvr32/Makefile"
20740 ac_config_files="$ac_config_files dlls/opengl32/Makefile"
20742 ac_config_files="$ac_config_files dlls/pdh/Makefile"
20744 ac_config_files="$ac_config_files dlls/powrprof/Makefile"
20746 ac_config_files="$ac_config_files dlls/psapi/Makefile"
20748 ac_config_files="$ac_config_files dlls/psapi/tests/Makefile"
20750 ac_config_files="$ac_config_files dlls/pstorec/Makefile"
20752 ac_config_files="$ac_config_files dlls/qcap/Makefile"
20754 ac_config_files="$ac_config_files dlls/quartz/Makefile"
20756 ac_config_files="$ac_config_files dlls/quartz/tests/Makefile"
20758 ac_config_files="$ac_config_files dlls/query/Makefile"
20760 ac_config_files="$ac_config_files dlls/rasapi32/Makefile"
20762 ac_config_files="$ac_config_files dlls/resutils/Makefile"
20764 ac_config_files="$ac_config_files dlls/riched20/Makefile"
20766 ac_config_files="$ac_config_files dlls/riched20/tests/Makefile"
20768 ac_config_files="$ac_config_files dlls/riched32/Makefile"
20770 ac_config_files="$ac_config_files dlls/rpcrt4/Makefile"
20772 ac_config_files="$ac_config_files dlls/rpcrt4/tests/Makefile"
20774 ac_config_files="$ac_config_files dlls/rsabase/Makefile"
20776 ac_config_files="$ac_config_files dlls/rsabase/tests/Makefile"
20778 ac_config_files="$ac_config_files dlls/rsaenh/Makefile"
20780 ac_config_files="$ac_config_files dlls/rsaenh/tests/Makefile"
20782 ac_config_files="$ac_config_files dlls/sane.ds/Makefile"
20784 ac_config_files="$ac_config_files dlls/schannel/Makefile"
20786 ac_config_files="$ac_config_files dlls/schannel/tests/Makefile"
20788 ac_config_files="$ac_config_files dlls/secur32/Makefile"
20790 ac_config_files="$ac_config_files dlls/secur32/tests/Makefile"
20792 ac_config_files="$ac_config_files dlls/security/Makefile"
20794 ac_config_files="$ac_config_files dlls/sensapi/Makefile"
20796 ac_config_files="$ac_config_files dlls/serialui/Makefile"
20798 ac_config_files="$ac_config_files dlls/serialui/tests/Makefile"
20800 ac_config_files="$ac_config_files dlls/setupapi/Makefile"
20802 ac_config_files="$ac_config_files dlls/setupapi/tests/Makefile"
20804 ac_config_files="$ac_config_files dlls/sfc/Makefile"
20806 ac_config_files="$ac_config_files dlls/sfc_os/Makefile"
20808 ac_config_files="$ac_config_files dlls/shdoclc/Makefile"
20810 ac_config_files="$ac_config_files dlls/shdocvw/Makefile"
20812 ac_config_files="$ac_config_files dlls/shdocvw/tests/Makefile"
20814 ac_config_files="$ac_config_files dlls/shell32/Makefile"
20816 ac_config_files="$ac_config_files dlls/shell32/tests/Makefile"
20818 ac_config_files="$ac_config_files dlls/shfolder/Makefile"
20820 ac_config_files="$ac_config_files dlls/shlwapi/Makefile"
20822 ac_config_files="$ac_config_files dlls/shlwapi/tests/Makefile"
20824 ac_config_files="$ac_config_files dlls/snmpapi/Makefile"
20826 ac_config_files="$ac_config_files dlls/snmpapi/tests/Makefile"
20828 ac_config_files="$ac_config_files dlls/spoolss/Makefile"
20830 ac_config_files="$ac_config_files dlls/stdole2.tlb/Makefile"
20832 ac_config_files="$ac_config_files dlls/stdole32.tlb/Makefile"
20834 ac_config_files="$ac_config_files dlls/sti/Makefile"
20836 ac_config_files="$ac_config_files dlls/strmiids/Makefile"
20838 ac_config_files="$ac_config_files dlls/svrapi/Makefile"
20840 ac_config_files="$ac_config_files dlls/sxs/Makefile"
20842 ac_config_files="$ac_config_files dlls/tapi32/Makefile"
20844 ac_config_files="$ac_config_files dlls/twain_32/Makefile"
20846 ac_config_files="$ac_config_files dlls/unicows/Makefile"
20848 ac_config_files="$ac_config_files dlls/url/Makefile"
20850 ac_config_files="$ac_config_files dlls/urlmon/Makefile"
20852 ac_config_files="$ac_config_files dlls/urlmon/tests/Makefile"
20854 ac_config_files="$ac_config_files dlls/user32/Makefile"
20856 ac_config_files="$ac_config_files dlls/user32/tests/Makefile"
20858 ac_config_files="$ac_config_files dlls/userenv/Makefile"
20860 ac_config_files="$ac_config_files dlls/usp10/Makefile"
20862 ac_config_files="$ac_config_files dlls/usp10/tests/Makefile"
20864 ac_config_files="$ac_config_files dlls/uuid/Makefile"
20866 ac_config_files="$ac_config_files dlls/uxtheme/Makefile"
20868 ac_config_files="$ac_config_files dlls/uxtheme/tests/Makefile"
20870 ac_config_files="$ac_config_files dlls/vdhcp.vxd/Makefile"
20872 ac_config_files="$ac_config_files dlls/vdmdbg/Makefile"
20874 ac_config_files="$ac_config_files dlls/version/Makefile"
20876 ac_config_files="$ac_config_files dlls/version/tests/Makefile"
20878 ac_config_files="$ac_config_files dlls/vmm.vxd/Makefile"
20880 ac_config_files="$ac_config_files dlls/vnbt.vxd/Makefile"
20882 ac_config_files="$ac_config_files dlls/vnetbios.vxd/Makefile"
20884 ac_config_files="$ac_config_files dlls/vtdapi.vxd/Makefile"
20886 ac_config_files="$ac_config_files dlls/vwin32.vxd/Makefile"
20888 ac_config_files="$ac_config_files dlls/w32skrnl/Makefile"
20890 ac_config_files="$ac_config_files dlls/winealsa.drv/Makefile"
20892 ac_config_files="$ac_config_files dlls/wineaudioio.drv/Makefile"
20894 ac_config_files="$ac_config_files dlls/winecoreaudio.drv/Makefile"
20896 ac_config_files="$ac_config_files dlls/winecrt0/Makefile"
20898 ac_config_files="$ac_config_files dlls/wined3d/Makefile"
20900 ac_config_files="$ac_config_files dlls/winedos/Makefile"
20902 ac_config_files="$ac_config_files dlls/wineesd.drv/Makefile"
20904 ac_config_files="$ac_config_files dlls/winejack.drv/Makefile"
20906 ac_config_files="$ac_config_files dlls/winejoystick.drv/Makefile"
20908 ac_config_files="$ac_config_files dlls/winemp3.acm/Makefile"
20910 ac_config_files="$ac_config_files dlls/winenas.drv/Makefile"
20912 ac_config_files="$ac_config_files dlls/wineoss.drv/Makefile"
20914 ac_config_files="$ac_config_files dlls/wineps.drv/Makefile"
20916 ac_config_files="$ac_config_files dlls/winequartz.drv/Makefile"
20918 ac_config_files="$ac_config_files dlls/winex11.drv/Makefile"
20920 ac_config_files="$ac_config_files dlls/wing32/Makefile"
20922 ac_config_files="$ac_config_files dlls/wininet/Makefile"
20924 ac_config_files="$ac_config_files dlls/wininet/tests/Makefile"
20926 ac_config_files="$ac_config_files dlls/winmm/Makefile"
20928 ac_config_files="$ac_config_files dlls/winmm/tests/Makefile"
20930 ac_config_files="$ac_config_files dlls/winnls32/Makefile"
20932 ac_config_files="$ac_config_files dlls/winscard/Makefile"
20934 ac_config_files="$ac_config_files dlls/winspool.drv/Makefile"
20936 ac_config_files="$ac_config_files dlls/winspool.drv/tests/Makefile"
20938 ac_config_files="$ac_config_files dlls/wintab32/Makefile"
20940 ac_config_files="$ac_config_files dlls/wintrust/Makefile"
20942 ac_config_files="$ac_config_files dlls/wintrust/tests/Makefile"
20944 ac_config_files="$ac_config_files dlls/wldap32/Makefile"
20946 ac_config_files="$ac_config_files dlls/wnaspi32/Makefile"
20948 ac_config_files="$ac_config_files dlls/wow32/Makefile"
20950 ac_config_files="$ac_config_files dlls/ws2_32/Makefile"
20952 ac_config_files="$ac_config_files dlls/ws2_32/tests/Makefile"
20954 ac_config_files="$ac_config_files dlls/wsock32/Makefile"
20956 ac_config_files="$ac_config_files dlls/wtsapi32/Makefile"
20958 ac_config_files="$ac_config_files documentation/Makefile"
20960 ac_config_files="$ac_config_files fonts/Makefile"
20962 ac_config_files="$ac_config_files include/Makefile"
20964 ac_config_files="$ac_config_files libs/Makefile"
20966 ac_config_files="$ac_config_files libs/port/Makefile"
20968 ac_config_files="$ac_config_files libs/wine/Makefile"
20970 ac_config_files="$ac_config_files libs/wpp/Makefile"
20972 ac_config_files="$ac_config_files loader/Makefile"
20974 ac_config_files="$ac_config_files programs/Makefile"
20976 ac_config_files="$ac_config_files programs/clock/Makefile"
20978 ac_config_files="$ac_config_files programs/cmd/Makefile"
20980 ac_config_files="$ac_config_files programs/cmdlgtst/Makefile"
20982 ac_config_files="$ac_config_files programs/control/Makefile"
20984 ac_config_files="$ac_config_files programs/eject/Makefile"
20986 ac_config_files="$ac_config_files programs/expand/Makefile"
20988 ac_config_files="$ac_config_files programs/explorer/Makefile"
20990 ac_config_files="$ac_config_files programs/hh/Makefile"
20992 ac_config_files="$ac_config_files programs/icinfo/Makefile"
20994 ac_config_files="$ac_config_files programs/iexplore/Makefile"
20996 ac_config_files="$ac_config_files programs/msiexec/Makefile"
20998 ac_config_files="$ac_config_files programs/net/Makefile"
21000 ac_config_files="$ac_config_files programs/notepad/Makefile"
21002 ac_config_files="$ac_config_files programs/oleview/Makefile"
21004 ac_config_files="$ac_config_files programs/progman/Makefile"
21006 ac_config_files="$ac_config_files programs/regedit/Makefile"
21008 ac_config_files="$ac_config_files programs/regsvr32/Makefile"
21010 ac_config_files="$ac_config_files programs/rpcss/Makefile"
21012 ac_config_files="$ac_config_files programs/rundll32/Makefile"
21014 ac_config_files="$ac_config_files programs/spoolsv/Makefile"
21016 ac_config_files="$ac_config_files programs/start/Makefile"
21018 ac_config_files="$ac_config_files programs/taskmgr/Makefile"
21020 ac_config_files="$ac_config_files programs/uninstaller/Makefile"
21022 ac_config_files="$ac_config_files programs/view/Makefile"
21024 ac_config_files="$ac_config_files programs/wineboot/Makefile"
21026 ac_config_files="$ac_config_files programs/winebrowser/Makefile"
21028 ac_config_files="$ac_config_files programs/winecfg/Makefile"
21030 ac_config_files="$ac_config_files programs/wineconsole/Makefile"
21032 ac_config_files="$ac_config_files programs/winedbg/Makefile"
21034 ac_config_files="$ac_config_files programs/winedevice/Makefile"
21036 ac_config_files="$ac_config_files programs/winefile/Makefile"
21038 ac_config_files="$ac_config_files programs/winemenubuilder/Makefile"
21040 ac_config_files="$ac_config_files programs/winemine/Makefile"
21042 ac_config_files="$ac_config_files programs/winepath/Makefile"
21044 ac_config_files="$ac_config_files programs/winetest/Makefile"
21046 ac_config_files="$ac_config_files programs/winevdm/Makefile"
21048 ac_config_files="$ac_config_files programs/winhelp/Makefile"
21050 ac_config_files="$ac_config_files programs/winver/Makefile"
21052 ac_config_files="$ac_config_files programs/wordpad/Makefile"
21054 ac_config_files="$ac_config_files programs/xcopy/Makefile"
21056 ac_config_files="$ac_config_files server/Makefile"
21058 ac_config_files="$ac_config_files tools/Makefile"
21060 ac_config_files="$ac_config_files tools/widl/Makefile"
21062 ac_config_files="$ac_config_files tools/winebuild/Makefile"
21064 ac_config_files="$ac_config_files tools/winedump/Makefile"
21066 ac_config_files="$ac_config_files tools/winegcc/Makefile"
21068 ac_config_files="$ac_config_files tools/wmc/Makefile"
21070 ac_config_files="$ac_config_files tools/wrc/Makefile"
21073 cat >confcache <<\_ACEOF
21074 # This file is a shell script that caches the results of configure
21075 # tests run on this system so they can be shared between configure
21076 # scripts and configure runs, see configure's option --config-cache.
21077 # It is not useful on other systems. If it contains results you don't
21078 # want to keep, you may remove or edit it.
21080 # config.status only pays attention to the cache file if you give it
21081 # the --recheck option to rerun configure.
21083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21085 # following values.
21087 _ACEOF
21089 # The following way of writing the cache mishandles newlines in values,
21090 # but we know of no workaround that is simple, portable, and efficient.
21091 # So, we kill variables containing newlines.
21092 # Ultrix sh set writes to stderr and can't be redirected directly,
21093 # and sets the high bit in the cache file unless we assign to the vars.
21095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21096 eval ac_val=\$$ac_var
21097 case $ac_val in #(
21098 *${as_nl}*)
21099 case $ac_var in #(
21100 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21101 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21102 esac
21103 case $ac_var in #(
21104 _ | IFS | as_nl) ;; #(
21105 *) $as_unset $ac_var ;;
21106 esac ;;
21107 esac
21108 done
21110 (set) 2>&1 |
21111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21112 *${as_nl}ac_space=\ *)
21113 # `set' does not quote correctly, so add quotes (double-quote
21114 # substitution turns \\\\ into \\, and sed turns \\ into \).
21115 sed -n \
21116 "s/'/'\\\\''/g;
21117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21118 ;; #(
21120 # `set' quotes correctly as required by POSIX, so do not add quotes.
21121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21123 esac |
21124 sort
21126 sed '
21127 /^ac_cv_env_/b end
21128 t clear
21129 :clear
21130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21131 t end
21132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21133 :end' >>confcache
21134 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21135 if test -w "$cache_file"; then
21136 test "x$cache_file" != "x/dev/null" &&
21137 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21138 echo "$as_me: updating cache $cache_file" >&6;}
21139 cat confcache >$cache_file
21140 else
21141 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21142 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21145 rm -f confcache
21147 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21148 # Let make expand exec_prefix.
21149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21151 DEFS=-DHAVE_CONFIG_H
21153 ac_libobjs=
21154 ac_ltlibobjs=
21155 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21156 # 1. Remove the extension, and $U if already installed.
21157 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21158 ac_i=`echo "$ac_i" | sed "$ac_script"`
21159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21160 # will be set to the directory where LIBOBJS objects are built.
21161 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21162 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21163 done
21164 LIBOBJS=$ac_libobjs
21166 LTLIBOBJS=$ac_ltlibobjs
21170 : ${CONFIG_STATUS=./config.status}
21171 ac_clean_files_save=$ac_clean_files
21172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21175 cat >$CONFIG_STATUS <<_ACEOF
21176 #! $SHELL
21177 # Generated by $as_me.
21178 # Run this file to recreate the current configuration.
21179 # Compiler output produced by configure, useful for debugging
21180 # configure, is in config.log if it exists.
21182 debug=false
21183 ac_cs_recheck=false
21184 ac_cs_silent=false
21185 SHELL=\${CONFIG_SHELL-$SHELL}
21186 _ACEOF
21188 cat >>$CONFIG_STATUS <<\_ACEOF
21189 ## --------------------- ##
21190 ## M4sh Initialization. ##
21191 ## --------------------- ##
21193 # Be more Bourne compatible
21194 DUALCASE=1; export DUALCASE # for MKS sh
21195 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21196 emulate sh
21197 NULLCMD=:
21198 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21199 # is contrary to our usage. Disable this feature.
21200 alias -g '${1+"$@"}'='"$@"'
21201 setopt NO_GLOB_SUBST
21202 else
21203 case `(set -o) 2>/dev/null` in
21204 *posix*) set -o posix ;;
21205 esac
21212 # PATH needs CR
21213 # Avoid depending upon Character Ranges.
21214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21217 as_cr_digits='0123456789'
21218 as_cr_alnum=$as_cr_Letters$as_cr_digits
21220 # The user is always right.
21221 if test "${PATH_SEPARATOR+set}" != set; then
21222 echo "#! /bin/sh" >conf$$.sh
21223 echo "exit 0" >>conf$$.sh
21224 chmod +x conf$$.sh
21225 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21226 PATH_SEPARATOR=';'
21227 else
21228 PATH_SEPARATOR=:
21230 rm -f conf$$.sh
21233 # Support unset when possible.
21234 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21235 as_unset=unset
21236 else
21237 as_unset=false
21241 # IFS
21242 # We need space, tab and new line, in precisely that order. Quoting is
21243 # there to prevent editors from complaining about space-tab.
21244 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21245 # splitting by setting IFS to empty value.)
21246 as_nl='
21248 IFS=" "" $as_nl"
21250 # Find who we are. Look in the path if we contain no directory separator.
21251 case $0 in
21252 *[\\/]* ) as_myself=$0 ;;
21253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21254 for as_dir in $PATH
21256 IFS=$as_save_IFS
21257 test -z "$as_dir" && as_dir=.
21258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21259 done
21260 IFS=$as_save_IFS
21263 esac
21264 # We did not find ourselves, most probably we were run as `sh COMMAND'
21265 # in which case we are not to be found in the path.
21266 if test "x$as_myself" = x; then
21267 as_myself=$0
21269 if test ! -f "$as_myself"; then
21270 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21271 { (exit 1); exit 1; }
21274 # Work around bugs in pre-3.0 UWIN ksh.
21275 for as_var in ENV MAIL MAILPATH
21276 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21277 done
21278 PS1='$ '
21279 PS2='> '
21280 PS4='+ '
21282 # NLS nuisances.
21283 for as_var in \
21284 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21285 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21286 LC_TELEPHONE LC_TIME
21288 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21289 eval $as_var=C; export $as_var
21290 else
21291 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21293 done
21295 # Required to use basename.
21296 if expr a : '\(a\)' >/dev/null 2>&1 &&
21297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21298 as_expr=expr
21299 else
21300 as_expr=false
21303 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21304 as_basename=basename
21305 else
21306 as_basename=false
21310 # Name of the executable.
21311 as_me=`$as_basename -- "$0" ||
21312 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21313 X"$0" : 'X\(//\)$' \| \
21314 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21315 echo X/"$0" |
21316 sed '/^.*\/\([^/][^/]*\)\/*$/{
21317 s//\1/
21320 /^X\/\(\/\/\)$/{
21321 s//\1/
21324 /^X\/\(\/\).*/{
21325 s//\1/
21328 s/.*/./; q'`
21330 # CDPATH.
21331 $as_unset CDPATH
21335 as_lineno_1=$LINENO
21336 as_lineno_2=$LINENO
21337 test "x$as_lineno_1" != "x$as_lineno_2" &&
21338 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21340 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21341 # uniformly replaced by the line number. The first 'sed' inserts a
21342 # line-number line after each line using $LINENO; the second 'sed'
21343 # does the real work. The second script uses 'N' to pair each
21344 # line-number line with the line containing $LINENO, and appends
21345 # trailing '-' during substitution so that $LINENO is not a special
21346 # case at line end.
21347 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21348 # scripts with optimization help from Paolo Bonzini. Blame Lee
21349 # E. McMahon (1931-1989) for sed's syntax. :-)
21350 sed -n '
21352 /[$]LINENO/=
21353 ' <$as_myself |
21354 sed '
21355 s/[$]LINENO.*/&-/
21356 t lineno
21358 :lineno
21360 :loop
21361 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21362 t loop
21363 s/-\n.*//
21364 ' >$as_me.lineno &&
21365 chmod +x "$as_me.lineno" ||
21366 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21367 { (exit 1); exit 1; }; }
21369 # Don't try to exec as it changes $[0], causing all sort of problems
21370 # (the dirname of $[0] is not the place where we might find the
21371 # original and so on. Autoconf is especially sensitive to this).
21372 . "./$as_me.lineno"
21373 # Exit status is that of the last command.
21374 exit
21378 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21379 as_dirname=dirname
21380 else
21381 as_dirname=false
21384 ECHO_C= ECHO_N= ECHO_T=
21385 case `echo -n x` in
21386 -n*)
21387 case `echo 'x\c'` in
21388 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21389 *) ECHO_C='\c';;
21390 esac;;
21392 ECHO_N='-n';;
21393 esac
21395 if expr a : '\(a\)' >/dev/null 2>&1 &&
21396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21397 as_expr=expr
21398 else
21399 as_expr=false
21402 rm -f conf$$ conf$$.exe conf$$.file
21403 if test -d conf$$.dir; then
21404 rm -f conf$$.dir/conf$$.file
21405 else
21406 rm -f conf$$.dir
21407 mkdir conf$$.dir
21409 echo >conf$$.file
21410 if ln -s conf$$.file conf$$ 2>/dev/null; then
21411 as_ln_s='ln -s'
21412 # ... but there are two gotchas:
21413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21415 # In both cases, we have to default to `cp -p'.
21416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21417 as_ln_s='cp -p'
21418 elif ln conf$$.file conf$$ 2>/dev/null; then
21419 as_ln_s=ln
21420 else
21421 as_ln_s='cp -p'
21423 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21424 rmdir conf$$.dir 2>/dev/null
21426 if mkdir -p . 2>/dev/null; then
21427 as_mkdir_p=:
21428 else
21429 test -d ./-p && rmdir ./-p
21430 as_mkdir_p=false
21433 if test -x / >/dev/null 2>&1; then
21434 as_test_x='test -x'
21435 else
21436 if ls -dL / >/dev/null 2>&1; then
21437 as_ls_L_option=L
21438 else
21439 as_ls_L_option=
21441 as_test_x='
21442 eval sh -c '\''
21443 if test -d "$1"; then
21444 test -d "$1/.";
21445 else
21446 case $1 in
21447 -*)set "./$1";;
21448 esac;
21449 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21450 ???[sx]*):;;*)false;;esac;fi
21451 '\'' sh
21454 as_executable_p=$as_test_x
21456 # Sed expression to map a string onto a valid CPP name.
21457 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21459 # Sed expression to map a string onto a valid variable name.
21460 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21463 exec 6>&1
21465 # Save the log message, to keep $[0] and so on meaningful, and to
21466 # report actual input values of CONFIG_FILES etc. instead of their
21467 # values after options handling.
21468 ac_log="
21469 This file was extended by Wine $as_me 0.9.39, which was
21470 generated by GNU Autoconf 2.61. Invocation command line was
21472 CONFIG_FILES = $CONFIG_FILES
21473 CONFIG_HEADERS = $CONFIG_HEADERS
21474 CONFIG_LINKS = $CONFIG_LINKS
21475 CONFIG_COMMANDS = $CONFIG_COMMANDS
21476 $ $0 $@
21478 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21481 _ACEOF
21483 cat >>$CONFIG_STATUS <<_ACEOF
21484 # Files that config.status was made for.
21485 config_files="$ac_config_files"
21486 config_headers="$ac_config_headers"
21487 config_commands="$ac_config_commands"
21489 _ACEOF
21491 cat >>$CONFIG_STATUS <<\_ACEOF
21492 ac_cs_usage="\
21493 \`$as_me' instantiates files from templates according to the
21494 current configuration.
21496 Usage: $0 [OPTIONS] [FILE]...
21498 -h, --help print this help, then exit
21499 -V, --version print version number and configuration settings, then exit
21500 -q, --quiet do not print progress messages
21501 -d, --debug don't remove temporary files
21502 --recheck update $as_me by reconfiguring in the same conditions
21503 --file=FILE[:TEMPLATE]
21504 instantiate the configuration file FILE
21505 --header=FILE[:TEMPLATE]
21506 instantiate the configuration header FILE
21508 Configuration files:
21509 $config_files
21511 Configuration headers:
21512 $config_headers
21514 Configuration commands:
21515 $config_commands
21517 Report bugs to <bug-autoconf@gnu.org>."
21519 _ACEOF
21520 cat >>$CONFIG_STATUS <<_ACEOF
21521 ac_cs_version="\\
21522 Wine config.status 0.9.39
21523 configured by $0, generated by GNU Autoconf 2.61,
21524 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21526 Copyright (C) 2006 Free Software Foundation, Inc.
21527 This config.status script is free software; the Free Software Foundation
21528 gives unlimited permission to copy, distribute and modify it."
21530 ac_pwd='$ac_pwd'
21531 srcdir='$srcdir'
21532 INSTALL='$INSTALL'
21533 _ACEOF
21535 cat >>$CONFIG_STATUS <<\_ACEOF
21536 # If no file are specified by the user, then we need to provide default
21537 # value. By we need to know if files were specified by the user.
21538 ac_need_defaults=:
21539 while test $# != 0
21541 case $1 in
21542 --*=*)
21543 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21544 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21545 ac_shift=:
21548 ac_option=$1
21549 ac_optarg=$2
21550 ac_shift=shift
21552 esac
21554 case $ac_option in
21555 # Handling of the options.
21556 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21557 ac_cs_recheck=: ;;
21558 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21559 echo "$ac_cs_version"; exit ;;
21560 --debug | --debu | --deb | --de | --d | -d )
21561 debug=: ;;
21562 --file | --fil | --fi | --f )
21563 $ac_shift
21564 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21565 ac_need_defaults=false;;
21566 --header | --heade | --head | --hea )
21567 $ac_shift
21568 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21569 ac_need_defaults=false;;
21570 --he | --h)
21571 # Conflict between --help and --header
21572 { echo "$as_me: error: ambiguous option: $1
21573 Try \`$0 --help' for more information." >&2
21574 { (exit 1); exit 1; }; };;
21575 --help | --hel | -h )
21576 echo "$ac_cs_usage"; exit ;;
21577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21578 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21579 ac_cs_silent=: ;;
21581 # This is an error.
21582 -*) { echo "$as_me: error: unrecognized option: $1
21583 Try \`$0 --help' for more information." >&2
21584 { (exit 1); exit 1; }; } ;;
21586 *) ac_config_targets="$ac_config_targets $1"
21587 ac_need_defaults=false ;;
21589 esac
21590 shift
21591 done
21593 ac_configure_extra_args=
21595 if $ac_cs_silent; then
21596 exec 6>/dev/null
21597 ac_configure_extra_args="$ac_configure_extra_args --silent"
21600 _ACEOF
21601 cat >>$CONFIG_STATUS <<_ACEOF
21602 if \$ac_cs_recheck; then
21603 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21604 CONFIG_SHELL=$SHELL
21605 export CONFIG_SHELL
21606 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21609 _ACEOF
21610 cat >>$CONFIG_STATUS <<\_ACEOF
21611 exec 5>>config.log
21613 echo
21614 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21615 ## Running $as_me. ##
21616 _ASBOX
21617 echo "$ac_log"
21618 } >&5
21620 _ACEOF
21621 cat >>$CONFIG_STATUS <<_ACEOF
21622 _ACEOF
21624 cat >>$CONFIG_STATUS <<\_ACEOF
21626 # Handling of arguments.
21627 for ac_config_target in $ac_config_targets
21629 case $ac_config_target in
21630 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21631 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
21632 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
21633 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
21634 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
21635 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
21636 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
21637 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21638 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
21639 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
21640 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
21641 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
21642 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
21643 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21644 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
21645 "dlls/acledit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/acledit/Makefile" ;;
21646 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
21647 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
21648 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
21649 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
21650 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
21651 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
21652 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
21653 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
21654 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
21655 "dlls/browseui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/Makefile" ;;
21656 "dlls/browseui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/tests/Makefile" ;;
21657 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
21658 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
21659 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
21660 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
21661 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
21662 "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
21663 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
21664 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
21665 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
21666 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
21667 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
21668 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
21669 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
21670 "dlls/credui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/credui/Makefile" ;;
21671 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
21672 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
21673 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
21674 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
21675 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
21676 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
21677 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
21678 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
21679 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
21680 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
21681 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
21682 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
21683 "dlls/d3drm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/tests/Makefile" ;;
21684 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
21685 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
21686 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
21687 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
21688 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
21689 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
21690 "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
21691 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
21692 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
21693 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
21694 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
21695 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
21696 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
21697 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
21698 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
21699 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
21700 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
21701 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
21702 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
21703 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
21704 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
21705 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
21706 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
21707 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
21708 "dlls/dplayx/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/tests/Makefile" ;;
21709 "dlls/dpnaddr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnaddr/Makefile" ;;
21710 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
21711 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
21712 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
21713 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
21714 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
21715 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
21716 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
21717 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
21718 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
21719 "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
21720 "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
21721 "dlls/gdiplus/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/Makefile" ;;
21722 "dlls/gdiplus/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/tests/Makefile" ;;
21723 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
21724 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
21725 "dlls/hal/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hal/Makefile" ;;
21726 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
21727 "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
21728 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
21729 "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
21730 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
21731 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
21732 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
21733 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
21734 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
21735 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
21736 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
21737 "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
21738 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
21739 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
21740 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
21741 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
21742 "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
21743 "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
21744 "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
21745 "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
21746 "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
21747 "dlls/localui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/Makefile" ;;
21748 "dlls/localui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/tests/Makefile" ;;
21749 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
21750 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
21751 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
21752 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
21753 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
21754 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
21755 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
21756 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
21757 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
21758 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
21759 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
21760 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
21761 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
21762 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
21763 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
21764 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
21765 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
21766 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
21767 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
21768 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
21769 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
21770 "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
21771 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
21772 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
21773 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
21774 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
21775 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
21776 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
21777 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
21778 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
21779 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
21780 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
21781 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
21782 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
21783 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
21784 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
21785 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
21786 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
21787 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
21788 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
21789 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
21790 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
21791 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
21792 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
21793 "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
21794 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21795 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21796 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21797 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21798 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21799 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
21800 "dlls/ntoskrnl.exe/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntoskrnl.exe/Makefile" ;;
21801 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21802 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21803 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
21804 "dlls/odbccp32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/tests/Makefile" ;;
21805 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21806 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21807 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21808 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21809 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21810 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21811 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21812 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21813 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
21814 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
21815 "dlls/pdh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/Makefile" ;;
21816 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
21817 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21818 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
21819 "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
21820 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21821 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21822 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
21823 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
21824 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
21825 "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
21826 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21827 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21828 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21829 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21830 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21831 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21832 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21833 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21834 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21835 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
21836 "dlls/schannel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/Makefile" ;;
21837 "dlls/schannel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/tests/Makefile" ;;
21838 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21839 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21840 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21841 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21842 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
21843 "dlls/serialui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/tests/Makefile" ;;
21844 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21845 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21846 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
21847 "dlls/sfc_os/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc_os/Makefile" ;;
21848 "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
21849 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21850 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21851 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21852 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21853 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21854 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21855 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21856 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
21857 "dlls/snmpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/tests/Makefile" ;;
21858 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21859 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21860 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21861 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21862 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
21863 "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
21864 "dlls/sxs/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sxs/Makefile" ;;
21865 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21866 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21867 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21868 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21869 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21870 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
21871 "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
21872 "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
21873 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
21874 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21875 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21876 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21877 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
21878 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
21879 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21880 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21881 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21882 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21883 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21884 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21885 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21886 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21887 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21888 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
21889 "dlls/winealsa.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winealsa.drv/Makefile" ;;
21890 "dlls/wineaudioio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineaudioio.drv/Makefile" ;;
21891 "dlls/winecoreaudio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecoreaudio.drv/Makefile" ;;
21892 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21893 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21894 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
21895 "dlls/wineesd.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineesd.drv/Makefile" ;;
21896 "dlls/winejack.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejack.drv/Makefile" ;;
21897 "dlls/winejoystick.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejoystick.drv/Makefile" ;;
21898 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
21899 "dlls/winenas.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winenas.drv/Makefile" ;;
21900 "dlls/wineoss.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineoss.drv/Makefile" ;;
21901 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
21902 "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
21903 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
21904 "dlls/wing32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wing32/Makefile" ;;
21905 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21906 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21907 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
21908 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
21909 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
21910 "dlls/winscard/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winscard/Makefile" ;;
21911 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
21912 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
21913 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
21914 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
21915 "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
21916 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
21917 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
21918 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21919 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
21920 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
21921 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21922 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
21923 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
21924 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21925 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21926 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21927 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
21928 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21929 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21930 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21931 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21932 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
21933 "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
21934 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21935 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21936 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
21937 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21938 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
21939 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
21940 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
21941 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
21942 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
21943 "programs/net/Makefile") CONFIG_FILES="$CONFIG_FILES programs/net/Makefile" ;;
21944 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
21945 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
21946 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21947 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21948 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21949 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21950 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
21951 "programs/spoolsv/Makefile") CONFIG_FILES="$CONFIG_FILES programs/spoolsv/Makefile" ;;
21952 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21953 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21954 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21955 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
21956 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21957 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21958 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21959 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21960 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21961 "programs/winedevice/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedevice/Makefile" ;;
21962 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21963 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21964 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21965 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21966 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21967 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21968 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21969 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21970 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
21971 "programs/xcopy/Makefile") CONFIG_FILES="$CONFIG_FILES programs/xcopy/Makefile" ;;
21972 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21973 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21974 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21975 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21976 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21977 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21978 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21979 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21981 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21982 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21983 { (exit 1); exit 1; }; };;
21984 esac
21985 done
21988 # If the user did not use the arguments to specify the items to instantiate,
21989 # then the envvar interface is used. Set only those that are not.
21990 # We use the long form for the default assignment because of an extremely
21991 # bizarre bug on SunOS 4.1.3.
21992 if $ac_need_defaults; then
21993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21994 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21995 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21998 # Have a temporary directory for convenience. Make it in the build tree
21999 # simply because there is no reason against having it here, and in addition,
22000 # creating and moving files from /tmp can sometimes cause problems.
22001 # Hook for its removal unless debugging.
22002 # Note that there is a small window in which the directory will not be cleaned:
22003 # after its creation but before its name has been assigned to `$tmp'.
22004 $debug ||
22006 tmp=
22007 trap 'exit_status=$?
22008 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22010 trap '{ (exit 1); exit 1; }' 1 2 13 15
22012 # Create a (secure) tmp directory for tmp files.
22015 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22016 test -n "$tmp" && test -d "$tmp"
22017 } ||
22019 tmp=./conf$$-$RANDOM
22020 (umask 077 && mkdir "$tmp")
22021 } ||
22023 echo "$me: cannot create a temporary directory in ." >&2
22024 { (exit 1); exit 1; }
22028 # Set up the sed scripts for CONFIG_FILES section.
22031 # No need to generate the scripts if there are no CONFIG_FILES.
22032 # This happens for instance when ./config.status config.h
22033 if test -n "$CONFIG_FILES"; then
22035 _ACEOF
22037 # Create sed commands to just substitute file output variables.
22039 # Remaining file output variables are in a fragment that also has non-file
22040 # output varibles.
22044 ac_delim='%!_!# '
22045 for ac_last_try in false false false false false :; do
22046 cat >conf$$subs.sed <<_ACEOF
22047 SHELL!$SHELL$ac_delim
22048 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22049 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22050 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22051 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22052 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22053 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22054 exec_prefix!$exec_prefix$ac_delim
22055 prefix!$prefix$ac_delim
22056 program_transform_name!$program_transform_name$ac_delim
22057 bindir!$bindir$ac_delim
22058 sbindir!$sbindir$ac_delim
22059 libexecdir!$libexecdir$ac_delim
22060 datarootdir!$datarootdir$ac_delim
22061 datadir!$datadir$ac_delim
22062 sysconfdir!$sysconfdir$ac_delim
22063 sharedstatedir!$sharedstatedir$ac_delim
22064 localstatedir!$localstatedir$ac_delim
22065 includedir!$includedir$ac_delim
22066 oldincludedir!$oldincludedir$ac_delim
22067 docdir!$docdir$ac_delim
22068 infodir!$infodir$ac_delim
22069 htmldir!$htmldir$ac_delim
22070 dvidir!$dvidir$ac_delim
22071 pdfdir!$pdfdir$ac_delim
22072 psdir!$psdir$ac_delim
22073 libdir!$libdir$ac_delim
22074 localedir!$localedir$ac_delim
22075 mandir!$mandir$ac_delim
22076 DEFS!$DEFS$ac_delim
22077 ECHO_C!$ECHO_C$ac_delim
22078 ECHO_N!$ECHO_N$ac_delim
22079 ECHO_T!$ECHO_T$ac_delim
22080 LIBS!$LIBS$ac_delim
22081 build_alias!$build_alias$ac_delim
22082 host_alias!$host_alias$ac_delim
22083 target_alias!$target_alias$ac_delim
22084 build!$build$ac_delim
22085 build_cpu!$build_cpu$ac_delim
22086 build_vendor!$build_vendor$ac_delim
22087 build_os!$build_os$ac_delim
22088 host!$host$ac_delim
22089 host_cpu!$host_cpu$ac_delim
22090 host_vendor!$host_vendor$ac_delim
22091 host_os!$host_os$ac_delim
22092 WIN16_FILES!$WIN16_FILES$ac_delim
22093 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
22094 TESTSUBDIRS!$TESTSUBDIRS$ac_delim
22095 WINETEST!$WINETEST$ac_delim
22096 SET_MAKE!$SET_MAKE$ac_delim
22097 CC!$CC$ac_delim
22098 CFLAGS!$CFLAGS$ac_delim
22099 LDFLAGS!$LDFLAGS$ac_delim
22100 CPPFLAGS!$CPPFLAGS$ac_delim
22101 ac_ct_CC!$ac_ct_CC$ac_delim
22102 EXEEXT!$EXEEXT$ac_delim
22103 OBJEXT!$OBJEXT$ac_delim
22104 CXX!$CXX$ac_delim
22105 CXXFLAGS!$CXXFLAGS$ac_delim
22106 ac_ct_CXX!$ac_ct_CXX$ac_delim
22107 CPPBIN!$CPPBIN$ac_delim
22108 TOOLSDIR!$TOOLSDIR$ac_delim
22109 XMKMF!$XMKMF$ac_delim
22110 CPP!$CPP$ac_delim
22111 X_CFLAGS!$X_CFLAGS$ac_delim
22112 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
22113 X_LIBS!$X_LIBS$ac_delim
22114 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
22115 FLEX!$FLEX$ac_delim
22116 BISON!$BISON$ac_delim
22117 AS!$AS$ac_delim
22118 ac_ct_AS!$ac_ct_AS$ac_delim
22119 LD!$LD$ac_delim
22120 AR!$AR$ac_delim
22121 RANLIB!$RANLIB$ac_delim
22122 STRIP!$STRIP$ac_delim
22123 WINDRES!$WINDRES$ac_delim
22124 LN_S!$LN_S$ac_delim
22125 LN!$LN$ac_delim
22126 GREP!$GREP$ac_delim
22127 EGREP!$EGREP$ac_delim
22128 LDCONFIG!$LDCONFIG$ac_delim
22129 _ACEOF
22131 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
22132 break
22133 elif $ac_last_try; then
22134 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22135 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22136 { (exit 1); exit 1; }; }
22137 else
22138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22140 done
22142 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22143 if test -n "$ac_eof"; then
22144 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22145 ac_eof=`expr $ac_eof + 1`
22148 cat >>$CONFIG_STATUS <<_ACEOF
22149 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22151 /^[ ]*@MAKE_RULES@[ ]*$/{
22152 r $MAKE_RULES
22155 /^[ ]*@MAKE_DLL_RULES@[ ]*$/{
22156 r $MAKE_DLL_RULES
22159 /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
22160 r $MAKE_IMPLIB_RULES
22163 /^[ ]*@MAKE_TEST_RULES@[ ]*$/{
22164 r $MAKE_TEST_RULES
22167 /^[ ]*@MAKE_PROG_RULES@[ ]*$/{
22168 r $MAKE_PROG_RULES
22171 _ACEOF
22172 sed '
22173 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22174 s/^/s,@/; s/!/@,|#_!!_#|/
22177 s/'"$ac_delim"'$/,g/; t
22178 s/$/\\/; p
22179 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22180 ' >>$CONFIG_STATUS <conf$$subs.sed
22181 rm -f conf$$subs.sed
22182 cat >>$CONFIG_STATUS <<_ACEOF
22183 CEOF$ac_eof
22184 _ACEOF
22187 ac_delim='%!_!# '
22188 for ac_last_try in false false false false false :; do
22189 cat >conf$$subs.sed <<_ACEOF
22190 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22191 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22192 INSTALL_DATA!$INSTALL_DATA$ac_delim
22193 LINT!$LINT$ac_delim
22194 LINTFLAGS!$LINTFLAGS$ac_delim
22195 FONTFORGE!$FONTFORGE$ac_delim
22196 PKG_CONFIG!$PKG_CONFIG$ac_delim
22197 PRELINK!$PRELINK$ac_delim
22198 LIBPTHREAD!$LIBPTHREAD$ac_delim
22199 XLIB!$XLIB$ac_delim
22200 XFILES!$XFILES$ac_delim
22201 OPENGLFILES!$OPENGLFILES$ac_delim
22202 GLU32FILES!$GLU32FILES$ac_delim
22203 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
22204 QUARTZFILES!$QUARTZFILES$ac_delim
22205 NASLIBS!$NASLIBS$ac_delim
22206 XML2LIBS!$XML2LIBS$ac_delim
22207 XML2INCL!$XML2INCL$ac_delim
22208 XSLTLIBS!$XSLTLIBS$ac_delim
22209 XSLTINCL!$XSLTINCL$ac_delim
22210 HALINCL!$HALINCL$ac_delim
22211 sane_devel!$sane_devel$ac_delim
22212 SANEINCL!$SANEINCL$ac_delim
22213 gphoto2_devel!$gphoto2_devel$ac_delim
22214 gphoto2port_devel!$gphoto2port_devel$ac_delim
22215 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
22216 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
22217 ICULIBS!$ICULIBS$ac_delim
22218 RESOLVLIBS!$RESOLVLIBS$ac_delim
22219 LCMSLIBS!$LCMSLIBS$ac_delim
22220 LDAPLIBS!$LDAPLIBS$ac_delim
22221 FREETYPELIBS!$FREETYPELIBS$ac_delim
22222 FREETYPEINCL!$FREETYPEINCL$ac_delim
22223 ft_devel!$ft_devel$ac_delim
22224 ft_devel2!$ft_devel2$ac_delim
22225 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
22226 ESDCONFIG!$ESDCONFIG$ac_delim
22227 ESDLIBS!$ESDLIBS$ac_delim
22228 ESDINCL!$ESDINCL$ac_delim
22229 ALSALIBS!$ALSALIBS$ac_delim
22230 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
22231 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
22232 BUILTINFLAG!$BUILTINFLAG$ac_delim
22233 DLLEXT!$DLLEXT$ac_delim
22234 DLLFLAGS!$DLLFLAGS$ac_delim
22235 LDSHARED!$LDSHARED$ac_delim
22236 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
22237 LIBEXT!$LIBEXT$ac_delim
22238 IMPLIBEXT!$IMPLIBEXT$ac_delim
22239 LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim
22240 DLLTOOL!$DLLTOOL$ac_delim
22241 DLLWRAP!$DLLWRAP$ac_delim
22242 MINGWAR!$MINGWAR$ac_delim
22243 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
22244 IOKITLIB!$IOKITLIB$ac_delim
22245 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
22246 DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
22247 COREAUDIO!$COREAUDIO$ac_delim
22248 CARBONLIB!$CARBONLIB$ac_delim
22249 CROSSTEST!$CROSSTEST$ac_delim
22250 CROSSCC!$CROSSCC$ac_delim
22251 CROSSWINDRES!$CROSSWINDRES$ac_delim
22252 LDPATH!$LDPATH$ac_delim
22253 CRTLIBS!$CRTLIBS$ac_delim
22254 SOCKETLIBS!$SOCKETLIBS$ac_delim
22255 MAIN_BINARY!$MAIN_BINARY$ac_delim
22256 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
22257 LDD!$LDD$ac_delim
22258 LIBDL!$LIBDL$ac_delim
22259 LIBPOLL!$LIBPOLL$ac_delim
22260 DEPENDENCIES!$DEPENDENCIES$ac_delim
22261 LIBOBJS!$LIBOBJS$ac_delim
22262 LTLIBOBJS!$LTLIBOBJS$ac_delim
22263 _ACEOF
22265 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
22266 break
22267 elif $ac_last_try; then
22268 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22269 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22270 { (exit 1); exit 1; }; }
22271 else
22272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22274 done
22276 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22277 if test -n "$ac_eof"; then
22278 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22279 ac_eof=`expr $ac_eof + 1`
22282 cat >>$CONFIG_STATUS <<_ACEOF
22283 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22285 _ACEOF
22286 sed '
22287 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22288 s/^/s,@/; s/!/@,|#_!!_#|/
22291 s/'"$ac_delim"'$/,g/; t
22292 s/$/\\/; p
22293 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22294 ' >>$CONFIG_STATUS <conf$$subs.sed
22295 rm -f conf$$subs.sed
22296 cat >>$CONFIG_STATUS <<_ACEOF
22297 :end
22298 s/|#_!!_#|//g
22299 CEOF$ac_eof
22300 _ACEOF
22303 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22304 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22305 # trailing colons and then remove the whole line if VPATH becomes empty
22306 # (actually we leave an empty line to preserve line numbers).
22307 if test "x$srcdir" = x.; then
22308 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22309 s/:*\$(srcdir):*/:/
22310 s/:*\${srcdir}:*/:/
22311 s/:*@srcdir@:*/:/
22312 s/^\([^=]*=[ ]*\):*/\1/
22313 s/:*$//
22314 s/^[^=]*=[ ]*$//
22318 cat >>$CONFIG_STATUS <<\_ACEOF
22319 fi # test -n "$CONFIG_FILES"
22322 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22324 case $ac_tag in
22325 :[FHLC]) ac_mode=$ac_tag; continue;;
22326 esac
22327 case $ac_mode$ac_tag in
22328 :[FHL]*:*);;
22329 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22330 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22331 { (exit 1); exit 1; }; };;
22332 :[FH]-) ac_tag=-:-;;
22333 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22334 esac
22335 ac_save_IFS=$IFS
22336 IFS=:
22337 set x $ac_tag
22338 IFS=$ac_save_IFS
22339 shift
22340 ac_file=$1
22341 shift
22343 case $ac_mode in
22344 :L) ac_source=$1;;
22345 :[FH])
22346 ac_file_inputs=
22347 for ac_f
22349 case $ac_f in
22350 -) ac_f="$tmp/stdin";;
22351 *) # Look for the file first in the build tree, then in the source tree
22352 # (if the path is not absolute). The absolute path cannot be DOS-style,
22353 # because $ac_f cannot contain `:'.
22354 test -f "$ac_f" ||
22355 case $ac_f in
22356 [\\/$]*) false;;
22357 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22358 esac ||
22359 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22360 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22361 { (exit 1); exit 1; }; };;
22362 esac
22363 ac_file_inputs="$ac_file_inputs $ac_f"
22364 done
22366 # Let's still pretend it is `configure' which instantiates (i.e., don't
22367 # use $as_me), people would be surprised to read:
22368 # /* config.h. Generated by config.status. */
22369 configure_input="Generated from "`IFS=:
22370 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22371 if test x"$ac_file" != x-; then
22372 configure_input="$ac_file. $configure_input"
22373 { echo "$as_me:$LINENO: creating $ac_file" >&5
22374 echo "$as_me: creating $ac_file" >&6;}
22377 case $ac_tag in
22378 *:-:* | *:-) cat >"$tmp/stdin";;
22379 esac
22381 esac
22383 ac_dir=`$as_dirname -- "$ac_file" ||
22384 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22385 X"$ac_file" : 'X\(//\)[^/]' \| \
22386 X"$ac_file" : 'X\(//\)$' \| \
22387 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22388 echo X"$ac_file" |
22389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22390 s//\1/
22393 /^X\(\/\/\)[^/].*/{
22394 s//\1/
22397 /^X\(\/\/\)$/{
22398 s//\1/
22401 /^X\(\/\).*/{
22402 s//\1/
22405 s/.*/./; q'`
22406 { as_dir="$ac_dir"
22407 case $as_dir in #(
22408 -*) as_dir=./$as_dir;;
22409 esac
22410 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22411 as_dirs=
22412 while :; do
22413 case $as_dir in #(
22414 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22415 *) as_qdir=$as_dir;;
22416 esac
22417 as_dirs="'$as_qdir' $as_dirs"
22418 as_dir=`$as_dirname -- "$as_dir" ||
22419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22420 X"$as_dir" : 'X\(//\)[^/]' \| \
22421 X"$as_dir" : 'X\(//\)$' \| \
22422 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22423 echo X"$as_dir" |
22424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22425 s//\1/
22428 /^X\(\/\/\)[^/].*/{
22429 s//\1/
22432 /^X\(\/\/\)$/{
22433 s//\1/
22436 /^X\(\/\).*/{
22437 s//\1/
22440 s/.*/./; q'`
22441 test -d "$as_dir" && break
22442 done
22443 test -z "$as_dirs" || eval "mkdir $as_dirs"
22444 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22445 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22446 { (exit 1); exit 1; }; }; }
22447 ac_builddir=.
22449 case "$ac_dir" in
22450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22452 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22453 # A ".." for each directory in $ac_dir_suffix.
22454 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22455 case $ac_top_builddir_sub in
22456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22458 esac ;;
22459 esac
22460 ac_abs_top_builddir=$ac_pwd
22461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22462 # for backward compatibility:
22463 ac_top_builddir=$ac_top_build_prefix
22465 case $srcdir in
22466 .) # We are building in place.
22467 ac_srcdir=.
22468 ac_top_srcdir=$ac_top_builddir_sub
22469 ac_abs_top_srcdir=$ac_pwd ;;
22470 [\\/]* | ?:[\\/]* ) # Absolute name.
22471 ac_srcdir=$srcdir$ac_dir_suffix;
22472 ac_top_srcdir=$srcdir
22473 ac_abs_top_srcdir=$srcdir ;;
22474 *) # Relative name.
22475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22476 ac_top_srcdir=$ac_top_build_prefix$srcdir
22477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22478 esac
22479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22482 case $ac_mode in
22485 # CONFIG_FILE
22488 case $INSTALL in
22489 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22490 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22491 esac
22492 _ACEOF
22494 cat >>$CONFIG_STATUS <<\_ACEOF
22495 # If the template does not know about datarootdir, expand it.
22496 # FIXME: This hack should be removed a few years after 2.60.
22497 ac_datarootdir_hack=; ac_datarootdir_seen=
22499 case `sed -n '/datarootdir/ {
22503 /@datadir@/p
22504 /@docdir@/p
22505 /@infodir@/p
22506 /@localedir@/p
22507 /@mandir@/p
22508 ' $ac_file_inputs` in
22509 *datarootdir*) ac_datarootdir_seen=yes;;
22510 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22511 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22512 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22513 _ACEOF
22514 cat >>$CONFIG_STATUS <<_ACEOF
22515 ac_datarootdir_hack='
22516 s&@datadir@&$datadir&g
22517 s&@docdir@&$docdir&g
22518 s&@infodir@&$infodir&g
22519 s&@localedir@&$localedir&g
22520 s&@mandir@&$mandir&g
22521 s&\\\${datarootdir}&$datarootdir&g' ;;
22522 esac
22523 _ACEOF
22525 # Neutralize VPATH when `$srcdir' = `.'.
22526 # Shell code in configure.ac might set extrasub.
22527 # FIXME: do we really want to maintain this feature?
22528 cat >>$CONFIG_STATUS <<_ACEOF
22529 sed "$ac_vpsub
22530 $extrasub
22531 _ACEOF
22532 cat >>$CONFIG_STATUS <<\_ACEOF
22534 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22535 s&@configure_input@&$configure_input&;t t
22536 s&@top_builddir@&$ac_top_builddir_sub&;t t
22537 s&@srcdir@&$ac_srcdir&;t t
22538 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22539 s&@top_srcdir@&$ac_top_srcdir&;t t
22540 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22541 s&@builddir@&$ac_builddir&;t t
22542 s&@abs_builddir@&$ac_abs_builddir&;t t
22543 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22544 s&@INSTALL@&$ac_INSTALL&;t t
22545 $ac_datarootdir_hack
22546 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22548 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22549 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22550 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22551 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22552 which seems to be undefined. Please make sure it is defined." >&5
22553 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22554 which seems to be undefined. Please make sure it is defined." >&2;}
22556 rm -f "$tmp/stdin"
22557 case $ac_file in
22558 -) cat "$tmp/out"; rm -f "$tmp/out";;
22559 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22560 esac
22564 # CONFIG_HEADER
22566 _ACEOF
22568 # Transform confdefs.h into a sed script `conftest.defines', that
22569 # substitutes the proper values into config.h.in to produce config.h.
22570 rm -f conftest.defines conftest.tail
22571 # First, append a space to every undef/define line, to ease matching.
22572 echo 's/$/ /' >conftest.defines
22573 # Then, protect against being on the right side of a sed subst, or in
22574 # an unquoted here document, in config.status. If some macros were
22575 # called several times there might be several #defines for the same
22576 # symbol, which is useless. But do not sort them, since the last
22577 # AC_DEFINE must be honored.
22578 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22579 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22580 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22581 # PARAMS is the parameter list in the macro definition--in most cases, it's
22582 # just an empty string.
22583 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22584 ac_dB='\\)[ (].*,\\1define\\2'
22585 ac_dC=' '
22586 ac_dD=' ,'
22588 uniq confdefs.h |
22589 sed -n '
22590 t rset
22591 :rset
22592 s/^[ ]*#[ ]*define[ ][ ]*//
22593 t ok
22596 s/[\\&,]/\\&/g
22597 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22598 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22599 ' >>conftest.defines
22601 # Remove the space that was appended to ease matching.
22602 # Then replace #undef with comments. This is necessary, for
22603 # example, in the case of _POSIX_SOURCE, which is predefined and required
22604 # on some systems where configure will not decide to define it.
22605 # (The regexp can be short, since the line contains either #define or #undef.)
22606 echo 's/ $//
22607 s,^[ #]*u.*,/* & */,' >>conftest.defines
22609 # Break up conftest.defines:
22610 ac_max_sed_lines=50
22612 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22613 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22614 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22615 # et cetera.
22616 ac_in='$ac_file_inputs'
22617 ac_out='"$tmp/out1"'
22618 ac_nxt='"$tmp/out2"'
22620 while :
22622 # Write a here document:
22623 cat >>$CONFIG_STATUS <<_ACEOF
22624 # First, check the format of the line:
22625 cat >"\$tmp/defines.sed" <<\\CEOF
22626 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22627 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22629 :def
22630 _ACEOF
22631 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22632 echo 'CEOF
22633 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22634 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22635 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22636 grep . conftest.tail >/dev/null || break
22637 rm -f conftest.defines
22638 mv conftest.tail conftest.defines
22639 done
22640 rm -f conftest.defines conftest.tail
22642 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22643 cat >>$CONFIG_STATUS <<\_ACEOF
22644 if test x"$ac_file" != x-; then
22645 echo "/* $configure_input */" >"$tmp/config.h"
22646 cat "$ac_result" >>"$tmp/config.h"
22647 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22648 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22649 echo "$as_me: $ac_file is unchanged" >&6;}
22650 else
22651 rm -f $ac_file
22652 mv "$tmp/config.h" $ac_file
22654 else
22655 echo "/* $configure_input */"
22656 cat "$ac_result"
22658 rm -f "$tmp/out12"
22661 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22662 echo "$as_me: executing $ac_file commands" >&6;}
22664 esac
22667 case $ac_file$ac_mode in
22668 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
22669 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
22670 echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
22671 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
22672 echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
22673 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
22674 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
22675 "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
22676 echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
22677 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
22678 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
22679 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
22680 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
22682 esac
22683 done # for ac_tag
22686 { (exit 0); exit 0; }
22687 _ACEOF
22688 chmod +x $CONFIG_STATUS
22689 ac_clean_files=$ac_clean_files_save
22692 # configure is writing to config.log, and then calls config.status.
22693 # config.status does its own redirection, appending to config.log.
22694 # Unfortunately, on DOS this fails, as config.log is still kept open
22695 # by configure, so config.status won't be able to write to it; its
22696 # output is simply discarded. So we exec the FD to /dev/null,
22697 # effectively closing config.log, so it can be properly (re)opened and
22698 # appended to by config.status. When coming back to configure, we
22699 # need to make the FD available again.
22700 if test "$no_create" != yes; then
22701 ac_cs_success=:
22702 ac_config_status_args=
22703 test "$silent" = yes &&
22704 ac_config_status_args="$ac_config_status_args --quiet"
22705 exec 5>/dev/null
22706 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22707 exec 5>>config.log
22708 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22709 # would make configure fail if this is the last instruction.
22710 $ac_cs_success || { (exit 1); exit 1; }
22715 if test "$no_create" = "yes"
22716 then
22717 exit 0
22720 if test "$verbose" = "yes"
22721 then
22722 if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes"
22723 then
22724 echo >&2
22725 { echo "$as_me:$LINENO: libcapi20 development files not found." >&5
22726 echo "$as_me: libcapi20 development files not found." >&6;}
22727 { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5
22728 echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;}
22731 if test "$ac_cv_header_cups_cups_h" != "yes"
22732 then
22733 echo >&2
22734 { echo "$as_me:$LINENO: libcups development files not found." >&5
22735 echo "$as_me: libcups development files not found." >&6;}
22736 { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
22737 echo "$as_me: Wine will be built without CUPS support." >&6;}
22741 if test "$ac_cv_header_gphoto2_camera_h" != "yes"
22742 then
22743 echo >&2
22744 { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
22745 echo "$as_me: libgphoto2 development files not found." >&6;}
22746 if test "$ac_cv_header_sane_sane_h" = "yes"
22747 then
22748 { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
22749 echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
22750 else
22751 { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
22752 echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
22756 if test "$ac_cv_header_hal_libhal_h" != "yes"
22757 then
22758 echo >&2
22759 { echo "$as_me:$LINENO: libhal development files not found." >&5
22760 echo "$as_me: libhal development files not found." >&6;}
22761 { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
22762 echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
22765 if test "$ac_cv_header_unicode_ubidi_h" != "yes"
22766 then
22767 echo >&2
22768 { echo "$as_me:$LINENO: libicu development files not found." >&5
22769 echo "$as_me: libicu development files not found." >&6;}
22770 { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
22771 echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
22774 if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
22775 then
22776 echo >&2
22777 { echo "$as_me:$LINENO: liblcms development files not found." >&5
22778 echo "$as_me: liblcms development files not found." >&6;}
22779 { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
22780 echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
22783 if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
22784 then
22785 echo >&2
22786 { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
22787 echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
22788 { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
22789 echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
22792 if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
22793 then
22794 echo >&2
22795 { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
22796 echo "$as_me: lib(n)curses development files not found." >&6;}
22797 { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
22798 echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
22801 if test "$ac_cv_header_sane_sane_h" != "yes"
22802 then
22803 echo >&2
22804 { echo "$as_me:$LINENO: libsane development files not found." >&5
22805 echo "$as_me: libsane development files not found." >&6;}
22806 { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
22807 echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
22810 if test "$have_x" = "yes"
22811 then
22812 if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
22813 then
22814 echo >&2
22815 { echo "$as_me:$LINENO: libxext development files not found." >&5
22816 echo "$as_me: libxext development files not found." >&6;}
22817 { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
22818 echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
22821 if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
22822 then
22823 echo >&2
22824 { echo "$as_me:$LINENO: libXrandr development files not found." >&5
22825 echo "$as_me: libXrandr development files not found." >&6;}
22826 { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
22827 echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
22830 if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
22831 then
22832 echo >&2
22833 { echo "$as_me:$LINENO: libXrender development files not found." >&5
22834 echo "$as_me: libXrender development files not found." >&6;}
22835 { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
22836 echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
22839 if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
22840 then
22841 echo >&2
22842 { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
22843 echo "$as_me: libXxf86vm development files not found." >&6;}
22844 { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
22845 echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
22849 if test "$ac_cv_header_libxml_parser_h" != "yes"
22850 then
22851 echo >&2
22852 { echo "$as_me:$LINENO: libxml2 development files not found." >&5
22853 echo "$as_me: libxml2 development files not found." >&6;}
22854 { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
22855 echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
22858 if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
22859 then
22860 echo >&2
22861 { echo "$as_me:$LINENO: libxslt development files not found." >&5
22862 echo "$as_me: libxslt development files not found." >&6;}
22863 { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
22864 echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
22869 if test "$have_x" = "no"
22870 then
22871 echo >&2
22872 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
22873 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
22874 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
22875 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
22876 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
22877 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
22878 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
22879 echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
22882 if test -z "$OPENGLFILES"
22883 then
22884 echo >&2
22885 { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
22886 echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
22887 { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
22888 echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
22889 if test "$wine_cv_opengl_headers_found" = "no"
22890 then
22891 { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
22892 echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
22894 if test "$wine_cv_opengl_header_version_OK" = "no"
22895 then
22896 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
22897 echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
22898 elif test "$ac_cv_lib_GL_glXCreateContext" = "no"
22899 then
22900 if test -f /usr/X11R6/lib/libGL.a
22901 then
22902 { echo "$as_me:$LINENO: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22903 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&5
22904 echo "$as_me: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22905 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&2;}
22906 else
22907 { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
22908 echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
22913 if test "$wine_cv_msg_freetype" = "yes"
22914 then
22915 echo >&2
22916 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
22917 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
22918 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
22919 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
22920 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
22921 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
22922 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
22923 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
22926 if test -z "$FONTSSUBDIRS"
22927 then
22928 echo >&2
22929 if test "$FONTFORGE" = "false"
22930 then
22931 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
22932 echo "$as_me: WARNING: FontForge is missing." >&2;}
22933 else
22934 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
22935 echo "$as_me: WARNING: FreeType is missing." >&2;}
22937 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
22938 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
22941 if test -z "$ALSALIBS" -a \
22942 -z "$AUDIOIOLIBS" -a \
22943 -z "$NASLIBS" -a \
22944 -z "$ESD_LIBS" -a \
22945 -z "$ac_cv_lib_soname_jack" -a \
22946 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
22947 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
22948 "$ac_cv_header_soundcard_h" != "yes"
22949 then
22950 echo >&2
22951 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
22952 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
22953 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
22954 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
22955 { echo "$as_me:$LINENO: WARNING: ALSA, EsounD, AudioIO, Jack, NAS and OSS" >&5
22956 echo "$as_me: WARNING: ALSA, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
22959 echo
22960 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
22961 echo