d3d: GetStreamSource on a stream with NULL data isn't an error.
[wine/wine-kai.git] / configure
blob479aa40ff5427d3a9faacba571304846754499dc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Wine 0.9.28.
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.28'
578 PACKAGE_STRING='Wine 0.9.28'
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 SET_MAKE
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
674 CXXFLAGS
675 ac_ct_CXX
676 CPPBIN
677 TOOLSDIR
678 XMKMF
680 X_CFLAGS
681 X_PRE_LIBS
682 X_LIBS
683 X_EXTRA_LIBS
685 LEX_OUTPUT_ROOT
686 LEXLIB
687 XLEX
688 BISON
690 ac_ct_AS
693 RANLIB
694 STRIP
695 WINDRES
696 LN_S
698 GREP
699 EGREP
700 LDCONFIG
701 INSTALL_PROGRAM
702 INSTALL_SCRIPT
703 INSTALL_DATA
704 LINT
705 LINTFLAGS
706 FONTFORGE
707 PKG_CONFIG
708 PRELINK
709 LIBPTHREAD
710 XLIB
711 XFILES
712 OPENGLFILES
713 GLU32FILES
714 OPENGL_LIBS
715 QUARTZFILES
716 NASLIBS
717 XML2LIBS
718 XML2INCL
719 XSLTLIBS
720 XSLTINCL
721 HALINCL
722 sane_devel
723 SANELIBS
724 SANEINCL
725 gphoto2_devel
726 gphoto2port_devel
727 GPHOTO2LIBS
728 GPHOTO2INCL
729 ICULIBS
730 RESOLVLIBS
731 LCMSLIBS
732 LDAPLIBS
733 FREETYPELIBS
734 FREETYPEINCL
735 ft_devel
736 ft_devel2
737 FONTSSUBDIRS
738 ARTSCCONFIG
739 ARTSLIBS
740 ARTSINCL
741 ESDCONFIG
742 ESDLIBS
743 ESDINCL
744 ALSALIBS
745 AUDIOIOLIBS
746 EXTRACFLAGS
747 BUILTINFLAG
748 DLLEXT
749 DLLFLAGS
750 LDSHARED
751 LDDLLFLAGS
752 LIBEXT
753 IMPLIBEXT
754 LIBWINE_LDFLAGS
755 DLLTOOL
756 DLLWRAP
757 COREFOUNDATIONLIB
758 IOKITLIB
759 LDEXECFLAGS
760 DISKARBITRATIONLIB
761 COREAUDIO
762 CARBONLIB
763 CROSSTEST
764 CROSSCC
765 CROSSWINDRES
766 LDPATH
767 CRTLIBS
768 SOCKETLIBS
769 MAIN_BINARY
770 EXTRA_BINARIES
772 LIBDL
773 LIBPOLL
774 DEPENDENCIES
775 LIBOBJS
776 LTLIBOBJS'
777 ac_subst_files='MAKE_RULES
778 MAKE_DLL_RULES
779 MAKE_IMPLIB_RULES
780 MAKE_TEST_RULES
781 MAKE_PROG_RULES'
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
791 CXXFLAGS
793 XMKMF
794 CPP'
797 # Initialize some variables set by options.
798 ac_init_help=
799 ac_init_version=false
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
843 ac_prev=
844 ac_dashdash=
845 for ac_option
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
854 case $ac_option in
855 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *) ac_optarg=yes ;;
857 esac
859 # Accept the important Cygnus configure options, so we can diagnose typos.
861 case $ac_dashdash$ac_option in
863 ac_dashdash=yes ;;
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
866 ac_prev=bindir ;;
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 bindir=$ac_optarg ;;
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
882 --config-cache | -C)
883 cache_file=config.cache ;;
885 -datadir | --datadir | --datadi | --datad)
886 ac_prev=datadir ;;
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
897 -disable-* | --disable-*)
898 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
901 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
902 { (exit 1); exit 1; }; }
903 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
904 eval enable_$ac_feature=no ;;
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
916 -enable-* | --enable-*)
917 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
920 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
921 { (exit 1); exit 1; }; }
922 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
923 eval enable_$ac_feature=\$ac_optarg ;;
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1113 -with-* | --with-*)
1114 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 { echo "$as_me: error: invalid package name: $ac_package" >&2
1118 { (exit 1); exit 1; }; }
1119 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1120 eval with_$ac_package=\$ac_optarg ;;
1122 -without-* | --without-*)
1123 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126 { echo "$as_me: error: invalid package name: $ac_package" >&2
1127 { (exit 1); exit 1; }; }
1128 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1129 eval with_$ac_package=no ;;
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1149 -*) { echo "$as_me: error: unrecognized option: $ac_option
1150 Try \`$0 --help' for more information." >&2
1151 { (exit 1); exit 1; }; }
1154 *=*)
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1159 { (exit 1); exit 1; }; }
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1171 esac
1172 done
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 { echo "$as_me: error: missing argument to $ac_option" >&2
1177 { (exit 1); exit 1; }; }
1180 # Be sure to have absolute directory names.
1181 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1186 eval ac_val=\$$ac_var
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1192 { (exit 1); exit 1; }; }
1193 done
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1198 build=$build_alias
1199 host=$host_alias
1200 target=$target_alias
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x; then
1204 if test "x$build_alias" = x; then
1205 cross_compiling=maybe
1206 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1207 If a cross compiler is detected then cross compile mode will be used." >&2
1208 elif test "x$build_alias" != "x$host_alias"; then
1209 cross_compiling=yes
1213 ac_tool_prefix=
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216 test "$silent" = yes && exec 6>/dev/null
1219 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di=`ls -di .` &&
1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222 { echo "$as_me: error: Working directory cannot be determined" >&2
1223 { (exit 1); exit 1; }; }
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225 { echo "$as_me: error: pwd does not report name of working directory" >&2
1226 { (exit 1); exit 1; }; }
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$0" ||
1234 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$0" : 'X\(//\)[^/]' \| \
1236 X"$0" : 'X\(//\)$' \| \
1237 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1238 echo X"$0" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 s//\1/
1243 /^X\(\/\/\)[^/].*/{
1244 s//\1/
1247 /^X\(\/\/\)$/{
1248 s//\1/
1251 /^X\(\/\).*/{
1252 s//\1/
1255 s/.*/./; q'`
1256 srcdir=$ac_confdir
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 srcdir=..
1260 else
1261 ac_srcdir_defaulted=no
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1266 { (exit 1); exit 1; }; }
1268 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 ac_abs_confdir=`(
1270 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1271 { (exit 1); exit 1; }; }
1272 pwd)`
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 srcdir=.
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1280 case $srcdir in
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 esac
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 done
1291 # Report the --help message.
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1296 cat <<_ACEOF
1297 \`configure' configures Wine 0.9.28 to adapt to many kinds of systems.
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1304 Defaults for the options are specified in brackets.
1306 Configuration:
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 [PREFIX]
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1328 For better control, use the options below.
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1346 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR]
1350 _ACEOF
1352 cat <<\_ACEOF
1354 X features:
1355 --x-includes=DIR X include files are in DIR
1356 --x-libraries=DIR X library files are in DIR
1358 System types:
1359 --build=BUILD configure for building on BUILD [guessed]
1360 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1361 _ACEOF
1364 if test -n "$ac_init_help"; then
1365 case $ac_init_help in
1366 short | recursive ) echo "Configuration of Wine 0.9.28:";;
1367 esac
1368 cat <<\_ACEOF
1370 Optional Features:
1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --disable-win16 do not include Win16 support
1374 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1375 binaries)
1377 Optional Packages:
1378 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1379 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1380 --without-opengl do not use OpenGL
1381 --with-wine-tools=<dir> use Wine tools from directory <dir>
1382 --with-x use the X Window System
1384 Some influential environment variables:
1385 CC C compiler command
1386 CFLAGS C compiler flags
1387 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1388 nonstandard directory <lib dir>
1389 LIBS libraries to pass to the linker, e.g. -l<library>
1390 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1391 you have headers in a nonstandard directory <include dir>
1392 CXX C++ compiler command
1393 CXXFLAGS C++ compiler flags
1394 XMKMF Path to xmkmf, Makefile generator for X Window System
1395 CPP C preprocessor
1397 Use these variables to override the choices made by `configure' or to help
1398 it to find libraries and programs with nonstandard names/locations.
1400 Report bugs to <wine-devel@winehq.org>.
1401 _ACEOF
1402 ac_status=$?
1405 if test "$ac_init_help" = "recursive"; then
1406 # If there are subdirs, report their specific --help.
1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 test -d "$ac_dir" || continue
1409 ac_builddir=.
1411 case "$ac_dir" in
1412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1415 # A ".." for each directory in $ac_dir_suffix.
1416 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420 esac ;;
1421 esac
1422 ac_abs_top_builddir=$ac_pwd
1423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424 # for backward compatibility:
1425 ac_top_builddir=$ac_top_build_prefix
1427 case $srcdir in
1428 .) # We are building in place.
1429 ac_srcdir=.
1430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
1433 ac_srcdir=$srcdir$ac_dir_suffix;
1434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1436 *) # Relative name.
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 esac
1441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for guested configure.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1451 else
1452 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453 fi || ac_status=$?
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1455 done
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1460 cat <<\_ACEOF
1461 Wine configure 0.9.28
1462 generated by GNU Autoconf 2.61
1464 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1465 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1466 This configure script is free software; the Free Software Foundation
1467 gives unlimited permission to copy, distribute and modify it.
1468 _ACEOF
1469 exit
1471 cat >config.log <<_ACEOF
1472 This file contains any messages produced by compilers while
1473 running configure, to aid debugging if configure makes a mistake.
1475 It was created by Wine $as_me 0.9.28, which was
1476 generated by GNU Autoconf 2.61. Invocation command line was
1478 $ $0 $@
1480 _ACEOF
1481 exec 5>>config.log
1483 cat <<_ASUNAME
1484 ## --------- ##
1485 ## Platform. ##
1486 ## --------- ##
1488 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1489 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1490 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1491 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1492 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1494 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1495 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1497 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1498 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1499 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1500 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1501 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1502 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1503 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1505 _ASUNAME
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1510 IFS=$as_save_IFS
1511 test -z "$as_dir" && as_dir=.
1512 echo "PATH: $as_dir"
1513 done
1514 IFS=$as_save_IFS
1516 } >&5
1518 cat >&5 <<_ACEOF
1521 ## ----------- ##
1522 ## Core tests. ##
1523 ## ----------- ##
1525 _ACEOF
1528 # Keep a trace of the command line.
1529 # Strip out --no-create and --no-recursion so they do not pile up.
1530 # Strip out --silent because we don't want to record it for future runs.
1531 # Also quote any args containing shell meta-characters.
1532 # Make two passes to allow for proper duplicate-argument suppression.
1533 ac_configure_args=
1534 ac_configure_args0=
1535 ac_configure_args1=
1536 ac_must_keep_next=false
1537 for ac_pass in 1 2
1539 for ac_arg
1541 case $ac_arg in
1542 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1544 | -silent | --silent | --silen | --sile | --sil)
1545 continue ;;
1546 *\'*)
1547 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1548 esac
1549 case $ac_pass in
1550 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1552 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1553 if test $ac_must_keep_next = true; then
1554 ac_must_keep_next=false # Got value, back to normal.
1555 else
1556 case $ac_arg in
1557 *=* | --config-cache | -C | -disable-* | --disable-* \
1558 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1559 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1560 | -with-* | --with-* | -without-* | --without-* | --x)
1561 case "$ac_configure_args0 " in
1562 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1563 esac
1565 -* ) ac_must_keep_next=true ;;
1566 esac
1568 ac_configure_args="$ac_configure_args '$ac_arg'"
1570 esac
1571 done
1572 done
1573 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1574 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1576 # When interrupted or exit'd, cleanup temporary files, and complete
1577 # config.log. We remove comments because anyway the quotes in there
1578 # would cause problems or look ugly.
1579 # WARNING: Use '\'' to represent an apostrophe within the trap.
1580 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1581 trap 'exit_status=$?
1582 # Save into config.log some information that might help in debugging.
1584 echo
1586 cat <<\_ASBOX
1587 ## ---------------- ##
1588 ## Cache variables. ##
1589 ## ---------------- ##
1590 _ASBOX
1591 echo
1592 # The following way of writing the cache mishandles newlines in values,
1594 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1595 eval ac_val=\$$ac_var
1596 case $ac_val in #(
1597 *${as_nl}*)
1598 case $ac_var in #(
1599 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1600 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1601 esac
1602 case $ac_var in #(
1603 _ | IFS | as_nl) ;; #(
1604 *) $as_unset $ac_var ;;
1605 esac ;;
1606 esac
1607 done
1608 (set) 2>&1 |
1609 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1610 *${as_nl}ac_space=\ *)
1611 sed -n \
1612 "s/'\''/'\''\\\\'\'''\''/g;
1613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1614 ;; #(
1616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1618 esac |
1619 sort
1621 echo
1623 cat <<\_ASBOX
1624 ## ----------------- ##
1625 ## Output variables. ##
1626 ## ----------------- ##
1627 _ASBOX
1628 echo
1629 for ac_var in $ac_subst_vars
1631 eval ac_val=\$$ac_var
1632 case $ac_val in
1633 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 esac
1635 echo "$ac_var='\''$ac_val'\''"
1636 done | sort
1637 echo
1639 if test -n "$ac_subst_files"; then
1640 cat <<\_ASBOX
1641 ## ------------------- ##
1642 ## File substitutions. ##
1643 ## ------------------- ##
1644 _ASBOX
1645 echo
1646 for ac_var in $ac_subst_files
1648 eval ac_val=\$$ac_var
1649 case $ac_val in
1650 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1651 esac
1652 echo "$ac_var='\''$ac_val'\''"
1653 done | sort
1654 echo
1657 if test -s confdefs.h; then
1658 cat <<\_ASBOX
1659 ## ----------- ##
1660 ## confdefs.h. ##
1661 ## ----------- ##
1662 _ASBOX
1663 echo
1664 cat confdefs.h
1665 echo
1667 test "$ac_signal" != 0 &&
1668 echo "$as_me: caught signal $ac_signal"
1669 echo "$as_me: exit $exit_status"
1670 } >&5
1671 rm -f core *.core core.conftest.* &&
1672 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1673 exit $exit_status
1675 for ac_signal in 1 2 13 15; do
1676 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1677 done
1678 ac_signal=0
1680 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1681 rm -f -r conftest* confdefs.h
1683 # Predefined preprocessor variables.
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_NAME "$PACKAGE_NAME"
1687 _ACEOF
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1692 _ACEOF
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1697 _ACEOF
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_STRING "$PACKAGE_STRING"
1702 _ACEOF
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1707 _ACEOF
1710 # Let the site file select an alternate cache file if it wants to.
1711 # Prefer explicitly selected file to automatically selected ones.
1712 if test -n "$CONFIG_SITE"; then
1713 set x "$CONFIG_SITE"
1714 elif test "x$prefix" != xNONE; then
1715 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1716 else
1717 set x "$ac_default_prefix/share/config.site" \
1718 "$ac_default_prefix/etc/config.site"
1720 shift
1721 for ac_site_file
1723 if test -r "$ac_site_file"; then
1724 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1725 echo "$as_me: loading site script $ac_site_file" >&6;}
1726 sed 's/^/| /' "$ac_site_file" >&5
1727 . "$ac_site_file"
1729 done
1731 if test -r "$cache_file"; then
1732 # Some versions of bash will fail to source /dev/null (special
1733 # files actually), so we avoid doing that.
1734 if test -f "$cache_file"; then
1735 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1736 echo "$as_me: loading cache $cache_file" >&6;}
1737 case $cache_file in
1738 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1739 *) . "./$cache_file";;
1740 esac
1742 else
1743 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1744 echo "$as_me: creating cache $cache_file" >&6;}
1745 >$cache_file
1748 # Check that the precious variables saved in the cache have kept the same
1749 # value.
1750 ac_cache_corrupted=false
1751 for ac_var in $ac_precious_vars; do
1752 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1753 eval ac_new_set=\$ac_env_${ac_var}_set
1754 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1755 eval ac_new_val=\$ac_env_${ac_var}_value
1756 case $ac_old_set,$ac_new_set in
1757 set,)
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1761 ,set)
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1763 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1765 ,);;
1767 if test "x$ac_old_val" != "x$ac_new_val"; then
1768 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1769 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1770 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1771 echo "$as_me: former value: $ac_old_val" >&2;}
1772 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1773 echo "$as_me: current value: $ac_new_val" >&2;}
1774 ac_cache_corrupted=:
1775 fi;;
1776 esac
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1786 esac
1788 done
1789 if $ac_cache_corrupted; then
1790 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1791 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1792 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1793 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1794 { (exit 1); exit 1; }; }
1821 ac_ext=c
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 ac_config_headers="$ac_config_headers include/config.h"
1831 ac_aux_dir=
1832 for ac_dir in tools "$srcdir"/tools; do
1833 if test -f "$ac_dir/install-sh"; then
1834 ac_aux_dir=$ac_dir
1835 ac_install_sh="$ac_aux_dir/install-sh -c"
1836 break
1837 elif test -f "$ac_dir/install.sh"; then
1838 ac_aux_dir=$ac_dir
1839 ac_install_sh="$ac_aux_dir/install.sh -c"
1840 break
1841 elif test -f "$ac_dir/shtool"; then
1842 ac_aux_dir=$ac_dir
1843 ac_install_sh="$ac_aux_dir/shtool install -c"
1844 break
1846 done
1847 if test -z "$ac_aux_dir"; then
1848 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1849 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1850 { (exit 1); exit 1; }; }
1853 # These three variables are undocumented and unsupported,
1854 # and are intended to be withdrawn in a future Autoconf release.
1855 # They can cause serious problems if a builder's source tree is in a directory
1856 # whose full name contains unusual characters.
1857 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1858 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1859 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1864 # Check whether --enable-win16 was given.
1865 if test "${enable_win16+set}" = set; then
1866 enableval=$enable_win16;
1869 # Check whether --enable-win64 was given.
1870 if test "${enable_win64+set}" = set; then
1871 enableval=$enable_win64;
1876 # Check whether --with-opengl was given.
1877 if test "${with_opengl+set}" = set; then
1878 withval=$with_opengl;
1882 # Check whether --with-wine-tools was given.
1883 if test "${with_wine_tools+set}" = set; then
1884 withval=$with_wine_tools;
1888 # Make sure we can run config.sub.
1889 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1890 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1891 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1892 { (exit 1); exit 1; }; }
1894 { echo "$as_me:$LINENO: checking build system type" >&5
1895 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1896 if test "${ac_cv_build+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 ac_build_alias=$build_alias
1900 test "x$ac_build_alias" = x &&
1901 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1902 test "x$ac_build_alias" = x &&
1903 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1904 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1905 { (exit 1); exit 1; }; }
1906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1907 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1908 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1909 { (exit 1); exit 1; }; }
1912 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1913 echo "${ECHO_T}$ac_cv_build" >&6; }
1914 case $ac_cv_build in
1915 *-*-*) ;;
1916 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1917 echo "$as_me: error: invalid value of canonical build" >&2;}
1918 { (exit 1); exit 1; }; };;
1919 esac
1920 build=$ac_cv_build
1921 ac_save_IFS=$IFS; IFS='-'
1922 set x $ac_cv_build
1923 shift
1924 build_cpu=$1
1925 build_vendor=$2
1926 shift; shift
1927 # Remember, the first character of IFS is used to create $*,
1928 # except with old shells:
1929 build_os=$*
1930 IFS=$ac_save_IFS
1931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1934 { echo "$as_me:$LINENO: checking host system type" >&5
1935 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1936 if test "${ac_cv_host+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test "x$host_alias" = x; then
1940 ac_cv_host=$ac_cv_build
1941 else
1942 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1943 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1944 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1945 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1950 echo "${ECHO_T}$ac_cv_host" >&6; }
1951 case $ac_cv_host in
1952 *-*-*) ;;
1953 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1954 echo "$as_me: error: invalid value of canonical host" >&2;}
1955 { (exit 1); exit 1; }; };;
1956 esac
1957 host=$ac_cv_host
1958 ac_save_IFS=$IFS; IFS='-'
1959 set x $ac_cv_host
1960 shift
1961 host_cpu=$1
1962 host_vendor=$2
1963 shift; shift
1964 # Remember, the first character of IFS is used to create $*,
1965 # except with old shells:
1966 host_os=$*
1967 IFS=$ac_save_IFS
1968 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1971 case $host in
1972 x86_64*linux*)
1973 if test "x$enable_win64" != "xyes"
1974 then
1975 test -n "$CC" || CC="gcc -m32"
1976 test -n "$LD" || LD="ld -m elf_i386"
1977 test -n "$AS" || AS="as --32"
1978 host_cpu="i386"
1981 esac
1983 case $host_cpu in
1984 *i[3456789]86*)
1985 if test "x$enable_win16" != "xno"
1986 then
1987 enable_win16="yes"
1990 esac
1992 WIN16_FILES="\$(WIN16_FILES)"
1994 WIN16_INSTALL="\$(WIN16_INSTALL)"
1996 if test "x$enable_win16" != "xyes"
1997 then
1998 WIN16_FILES=""
1999 WIN16_INSTALL=""
2003 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2004 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2005 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2006 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 cat >conftest.make <<\_ACEOF
2010 SHELL = /bin/sh
2011 all:
2012 @echo '@@@%%%=$(MAKE)=@@@%%%'
2013 _ACEOF
2014 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2015 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2016 *@@@%%%=?*=@@@%%%*)
2017 eval ac_cv_prog_make_${ac_make}_set=yes;;
2019 eval ac_cv_prog_make_${ac_make}_set=no;;
2020 esac
2021 rm -f conftest.make
2023 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2024 { echo "$as_me:$LINENO: result: yes" >&5
2025 echo "${ECHO_T}yes" >&6; }
2026 SET_MAKE=
2027 else
2028 { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2030 SET_MAKE="MAKE=${MAKE-make}"
2033 ac_ext=c
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038 if test -n "$ac_tool_prefix"; then
2039 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2040 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2043 if test "${ac_cv_prog_CC+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2056 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 break 2
2060 done
2061 done
2062 IFS=$as_save_IFS
2066 CC=$ac_cv_prog_CC
2067 if test -n "$CC"; then
2068 { echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6; }
2070 else
2071 { echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6; }
2077 if test -z "$ac_cv_prog_CC"; then
2078 ac_ct_CC=$CC
2079 # Extract the first word of "gcc", so it can be a program name with args.
2080 set dummy gcc; ac_word=$2
2081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2096 ac_cv_prog_ac_ct_CC="gcc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2100 done
2101 done
2102 IFS=$as_save_IFS
2106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2107 if test -n "$ac_ct_CC"; then
2108 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2109 echo "${ECHO_T}$ac_ct_CC" >&6; }
2110 else
2111 { echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6; }
2115 if test "x$ac_ct_CC" = x; then
2116 CC=""
2117 else
2118 case $cross_compiling:$ac_tool_warned in
2119 yes:)
2120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2121 whose name does not start with the host triplet. If you think this
2122 configuration is useful to you, please write to autoconf@gnu.org." >&5
2123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2124 whose name does not start with the host triplet. If you think this
2125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2126 ac_tool_warned=yes ;;
2127 esac
2128 CC=$ac_ct_CC
2130 else
2131 CC="$ac_cv_prog_CC"
2134 if test -z "$CC"; then
2135 if test -n "$ac_tool_prefix"; then
2136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2137 set dummy ${ac_tool_prefix}cc; ac_word=$2
2138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2140 if test "${ac_cv_prog_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 if test -n "$CC"; then
2144 ac_cv_prog_CC="$CC" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153 ac_cv_prog_CC="${ac_tool_prefix}cc"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 break 2
2157 done
2158 done
2159 IFS=$as_save_IFS
2163 CC=$ac_cv_prog_CC
2164 if test -n "$CC"; then
2165 { echo "$as_me:$LINENO: result: $CC" >&5
2166 echo "${ECHO_T}$CC" >&6; }
2167 else
2168 { echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6; }
2175 if test -z "$CC"; then
2176 # Extract the first word of "cc", so it can be a program name with args.
2177 set dummy cc; ac_word=$2
2178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2185 else
2186 ac_prog_rejected=no
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2195 ac_prog_rejected=yes
2196 continue
2198 ac_cv_prog_CC="cc"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2202 done
2203 done
2204 IFS=$as_save_IFS
2206 if test $ac_prog_rejected = yes; then
2207 # We found a bogon in the path, so make sure we never use it.
2208 set dummy $ac_cv_prog_CC
2209 shift
2210 if test $# != 0; then
2211 # We chose a different compiler from the bogus one.
2212 # However, it has the same basename, so the bogon will be chosen
2213 # first if we set CC to just the basename; use the full file name.
2214 shift
2215 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2220 CC=$ac_cv_prog_CC
2221 if test -n "$CC"; then
2222 { echo "$as_me:$LINENO: result: $CC" >&5
2223 echo "${ECHO_T}$CC" >&6; }
2224 else
2225 { echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6; }
2231 if test -z "$CC"; then
2232 if test -n "$ac_tool_prefix"; then
2233 for ac_prog in cl.exe
2235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2239 if test "${ac_cv_prog_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2256 done
2257 done
2258 IFS=$as_save_IFS
2262 CC=$ac_cv_prog_CC
2263 if test -n "$CC"; then
2264 { echo "$as_me:$LINENO: result: $CC" >&5
2265 echo "${ECHO_T}$CC" >&6; }
2266 else
2267 { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2272 test -n "$CC" && break
2273 done
2275 if test -z "$CC"; then
2276 ac_ct_CC=$CC
2277 for ac_prog in cl.exe
2279 # Extract the first word of "$ac_prog", so it can be a program name with args.
2280 set dummy $ac_prog; ac_word=$2
2281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 if test -n "$ac_ct_CC"; then
2287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_prog_ac_ct_CC="$ac_prog"
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2300 done
2301 done
2302 IFS=$as_save_IFS
2306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2307 if test -n "$ac_ct_CC"; then
2308 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2309 echo "${ECHO_T}$ac_ct_CC" >&6; }
2310 else
2311 { echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6; }
2316 test -n "$ac_ct_CC" && break
2317 done
2319 if test "x$ac_ct_CC" = x; then
2320 CC=""
2321 else
2322 case $cross_compiling:$ac_tool_warned in
2323 yes:)
2324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet. If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&5
2327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2328 whose name does not start with the host triplet. If you think this
2329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2330 ac_tool_warned=yes ;;
2331 esac
2332 CC=$ac_ct_CC
2339 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: no acceptable C compiler found in \$PATH
2342 See \`config.log' for more details." >&2;}
2343 { (exit 1); exit 1; }; }
2345 # Provide some information about the compiler.
2346 echo "$as_me:$LINENO: checking for C compiler version" >&5
2347 ac_compiler=`set X $ac_compile; echo $2`
2348 { (ac_try="$ac_compiler --version >&5"
2349 case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352 esac
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compiler --version >&5") 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
2358 { (ac_try="$ac_compiler -v >&5"
2359 case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362 esac
2363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364 (eval "$ac_compiler -v >&5") 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2368 { (ac_try="$ac_compiler -V >&5"
2369 case "(($ac_try" in
2370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2371 *) ac_try_echo=$ac_try;;
2372 esac
2373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2374 (eval "$ac_compiler -V >&5") 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }
2379 cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h. */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2387 main ()
2391 return 0;
2393 _ACEOF
2394 ac_clean_files_save=$ac_clean_files
2395 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2396 # Try to create an executable without -o first, disregard a.out.
2397 # It will help us diagnose broken compilers, and finding out an intuition
2398 # of exeext.
2399 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2400 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2401 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2403 # List of possible output files, starting from the most likely.
2404 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2405 # only as a last resort. b.out is created by i960 compilers.
2406 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2408 # The IRIX 6 linker writes into existing files which may not be
2409 # executable, retaining their permissions. Remove them first so a
2410 # subsequent execution test works.
2411 ac_rmfiles=
2412 for ac_file in $ac_files
2414 case $ac_file in
2415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2416 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2417 esac
2418 done
2419 rm -f $ac_rmfiles
2421 if { (ac_try="$ac_link_default"
2422 case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_link_default") 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; then
2431 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2432 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2433 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2434 # so that the user can short-circuit this test for compilers unknown to
2435 # Autoconf.
2436 for ac_file in $ac_files ''
2438 test -f "$ac_file" || continue
2439 case $ac_file in
2440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2442 [ab].out )
2443 # We found the default executable, but exeext='' is most
2444 # certainly right.
2445 break;;
2446 *.* )
2447 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2448 then :; else
2449 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2451 # We set ac_cv_exeext here because the later test for it is not
2452 # safe: cross compilers may not add the suffix if given an `-o'
2453 # argument, so we may need to know it at that point already.
2454 # Even if this section looks crufty: it has the advantage of
2455 # actually working.
2456 break;;
2458 break;;
2459 esac
2460 done
2461 test "$ac_cv_exeext" = no && ac_cv_exeext=
2463 else
2464 ac_file=''
2467 { echo "$as_me:$LINENO: result: $ac_file" >&5
2468 echo "${ECHO_T}$ac_file" >&6; }
2469 if test -z "$ac_file"; then
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2473 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2474 See \`config.log' for more details." >&5
2475 echo "$as_me: error: C compiler cannot create executables
2476 See \`config.log' for more details." >&2;}
2477 { (exit 77); exit 77; }; }
2480 ac_exeext=$ac_cv_exeext
2482 # Check that the compiler produces executables we can run. If not, either
2483 # the compiler is broken, or we cross compile.
2484 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2485 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2486 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2487 # If not cross compiling, check that we can run a simple program.
2488 if test "$cross_compiling" != yes; then
2489 if { ac_try='./$ac_file'
2490 { (case "(($ac_try" in
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2493 esac
2494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2495 (eval "$ac_try") 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 cross_compiling=no
2500 else
2501 if test "$cross_compiling" = maybe; then
2502 cross_compiling=yes
2503 else
2504 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2505 If you meant to cross compile, use \`--host'.
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: cannot run C compiled programs.
2508 If you meant to cross compile, use \`--host'.
2509 See \`config.log' for more details." >&2;}
2510 { (exit 1); exit 1; }; }
2514 { echo "$as_me:$LINENO: result: yes" >&5
2515 echo "${ECHO_T}yes" >&6; }
2517 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2518 ac_clean_files=$ac_clean_files_save
2519 # Check that the compiler produces executables we can run. If not, either
2520 # the compiler is broken, or we cross compile.
2521 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2522 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2523 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2524 echo "${ECHO_T}$cross_compiling" >&6; }
2526 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2527 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2528 if { (ac_try="$ac_link"
2529 case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532 esac
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_link") 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; then
2538 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2539 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2540 # work properly (i.e., refer to `conftest.exe'), while it won't with
2541 # `rm'.
2542 for ac_file in conftest.exe conftest conftest.*; do
2543 test -f "$ac_file" || continue
2544 case $ac_file in
2545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2546 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2547 break;;
2548 * ) break;;
2549 esac
2550 done
2551 else
2552 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2553 See \`config.log' for more details." >&5
2554 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2555 See \`config.log' for more details." >&2;}
2556 { (exit 1); exit 1; }; }
2559 rm -f conftest$ac_cv_exeext
2560 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2561 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2563 rm -f conftest.$ac_ext
2564 EXEEXT=$ac_cv_exeext
2565 ac_exeext=$EXEEXT
2566 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2567 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2568 if test "${ac_cv_objext+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571 cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h. */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2579 main ()
2583 return 0;
2585 _ACEOF
2586 rm -f conftest.o conftest.obj
2587 if { (ac_try="$ac_compile"
2588 case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_compile") 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; then
2597 for ac_file in conftest.o conftest.obj conftest.*; do
2598 test -f "$ac_file" || continue;
2599 case $ac_file in
2600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2602 break;;
2603 esac
2604 done
2605 else
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2609 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2610 See \`config.log' for more details." >&5
2611 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2612 See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }
2616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2618 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2619 echo "${ECHO_T}$ac_cv_objext" >&6; }
2620 OBJEXT=$ac_cv_objext
2621 ac_objext=$OBJEXT
2622 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2623 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2624 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h. */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2635 main ()
2637 #ifndef __GNUC__
2638 choke me
2639 #endif
2642 return 0;
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (ac_try="$ac_compile"
2647 case "(($ac_try" in
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2650 esac
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652 (eval "$ac_compile") 2>conftest.er1
2653 ac_status=$?
2654 grep -v '^ *+' conftest.er1 >conftest.err
2655 rm -f conftest.er1
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } && {
2659 test -z "$ac_c_werror_flag" ||
2660 test ! -s conftest.err
2661 } && test -s conftest.$ac_objext; then
2662 ac_compiler_gnu=yes
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 ac_compiler_gnu=no
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2674 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2675 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2676 GCC=`test $ac_compiler_gnu = yes && echo yes`
2677 ac_test_CFLAGS=${CFLAGS+set}
2678 ac_save_CFLAGS=$CFLAGS
2679 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2680 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2681 if test "${ac_cv_prog_cc_g+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 ac_save_c_werror_flag=$ac_c_werror_flag
2685 ac_c_werror_flag=yes
2686 ac_cv_prog_cc_g=no
2687 CFLAGS="-g"
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h. */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2696 main ()
2700 return 0;
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2705 case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compile") 2>conftest.er1
2711 ac_status=$?
2712 grep -v '^ *+' conftest.er1 >conftest.err
2713 rm -f conftest.er1
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } && {
2717 test -z "$ac_c_werror_flag" ||
2718 test ! -s conftest.err
2719 } && test -s conftest.$ac_objext; then
2720 ac_cv_prog_cc_g=yes
2721 else
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 CFLAGS=""
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h. */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2734 main ()
2738 return 0;
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (ac_try="$ac_compile"
2743 case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compile") 2>conftest.er1
2749 ac_status=$?
2750 grep -v '^ *+' conftest.er1 >conftest.err
2751 rm -f conftest.er1
2752 cat conftest.err >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } && {
2755 test -z "$ac_c_werror_flag" ||
2756 test ! -s conftest.err
2757 } && test -s conftest.$ac_objext; then
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2763 ac_c_werror_flag=$ac_save_c_werror_flag
2764 CFLAGS="-g"
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2773 main ()
2777 return 0;
2779 _ACEOF
2780 rm -f conftest.$ac_objext
2781 if { (ac_try="$ac_compile"
2782 case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_compile") 2>conftest.er1
2788 ac_status=$?
2789 grep -v '^ *+' conftest.er1 >conftest.err
2790 rm -f conftest.er1
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } && {
2794 test -z "$ac_c_werror_flag" ||
2795 test ! -s conftest.err
2796 } && test -s conftest.$ac_objext; then
2797 ac_cv_prog_cc_g=yes
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 ac_c_werror_flag=$ac_save_c_werror_flag
2814 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2815 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2816 if test "$ac_test_CFLAGS" = set; then
2817 CFLAGS=$ac_save_CFLAGS
2818 elif test $ac_cv_prog_cc_g = yes; then
2819 if test "$GCC" = yes; then
2820 CFLAGS="-g -O2"
2821 else
2822 CFLAGS="-g"
2824 else
2825 if test "$GCC" = yes; then
2826 CFLAGS="-O2"
2827 else
2828 CFLAGS=
2831 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2832 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_cc_c89+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 ac_cv_prog_cc_c89=no
2837 ac_save_CC=$CC
2838 cat >conftest.$ac_ext <<_ACEOF
2839 /* confdefs.h. */
2840 _ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2844 #include <stdarg.h>
2845 #include <stdio.h>
2846 #include <sys/types.h>
2847 #include <sys/stat.h>
2848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2849 struct buf { int x; };
2850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2851 static char *e (p, i)
2852 char **p;
2853 int i;
2855 return p[i];
2857 static char *f (char * (*g) (char **, int), char **p, ...)
2859 char *s;
2860 va_list v;
2861 va_start (v,p);
2862 s = g (p, va_arg (v,int));
2863 va_end (v);
2864 return s;
2867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2868 function prototypes and stuff, but not '\xHH' hex character constants.
2869 These don't provoke an error unfortunately, instead are silently treated
2870 as 'x'. The following induces an error, until -std is added to get
2871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2872 array size at least. It's necessary to write '\x00'==0 to get something
2873 that's true only with -std. */
2874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2876 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2877 inside strings and character constants. */
2878 #define FOO(x) 'x'
2879 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2881 int test (int i, double x);
2882 struct s1 {int (*f) (int a);};
2883 struct s2 {int (*f) (double a);};
2884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2885 int argc;
2886 char **argv;
2888 main ()
2890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2892 return 0;
2894 _ACEOF
2895 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2896 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2898 CC="$ac_save_CC $ac_arg"
2899 rm -f conftest.$ac_objext
2900 if { (ac_try="$ac_compile"
2901 case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compile") 2>conftest.er1
2907 ac_status=$?
2908 grep -v '^ *+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } && {
2913 test -z "$ac_c_werror_flag" ||
2914 test ! -s conftest.err
2915 } && test -s conftest.$ac_objext; then
2916 ac_cv_prog_cc_c89=$ac_arg
2917 else
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2924 rm -f core conftest.err conftest.$ac_objext
2925 test "x$ac_cv_prog_cc_c89" != "xno" && break
2926 done
2927 rm -f conftest.$ac_ext
2928 CC=$ac_save_CC
2931 # AC_CACHE_VAL
2932 case "x$ac_cv_prog_cc_c89" in
2934 { echo "$as_me:$LINENO: result: none needed" >&5
2935 echo "${ECHO_T}none needed" >&6; } ;;
2936 xno)
2937 { echo "$as_me:$LINENO: result: unsupported" >&5
2938 echo "${ECHO_T}unsupported" >&6; } ;;
2940 CC="$CC $ac_cv_prog_cc_c89"
2941 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2942 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2943 esac
2946 ac_ext=c
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952 ac_ext=cpp
2953 ac_cpp='$CXXCPP $CPPFLAGS'
2954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2957 if test -z "$CXX"; then
2958 if test -n "$CCC"; then
2959 CXX=$CCC
2960 else
2961 if test -n "$ac_tool_prefix"; then
2962 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2968 if test "${ac_cv_prog_CXX+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 if test -n "$CXX"; then
2972 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2985 done
2986 done
2987 IFS=$as_save_IFS
2991 CXX=$ac_cv_prog_CXX
2992 if test -n "$CXX"; then
2993 { echo "$as_me:$LINENO: result: $CXX" >&5
2994 echo "${ECHO_T}$CXX" >&6; }
2995 else
2996 { echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6; }
3001 test -n "$CXX" && break
3002 done
3004 if test -z "$CXX"; then
3005 ac_ct_CXX=$CXX
3006 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3008 # Extract the first word of "$ac_prog", so it can be a program name with args.
3009 set dummy $ac_prog; ac_word=$2
3010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 if test -n "$ac_ct_CXX"; then
3016 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_ac_ct_CXX="$ac_prog"
3026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3029 done
3030 done
3031 IFS=$as_save_IFS
3035 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3036 if test -n "$ac_ct_CXX"; then
3037 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3038 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3039 else
3040 { echo "$as_me:$LINENO: result: no" >&5
3041 echo "${ECHO_T}no" >&6; }
3045 test -n "$ac_ct_CXX" && break
3046 done
3048 if test "x$ac_ct_CXX" = x; then
3049 CXX="g++"
3050 else
3051 case $cross_compiling:$ac_tool_warned in
3052 yes:)
3053 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3054 whose name does not start with the host triplet. If you think this
3055 configuration is useful to you, please write to autoconf@gnu.org." >&5
3056 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3057 whose name does not start with the host triplet. If you think this
3058 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3059 ac_tool_warned=yes ;;
3060 esac
3061 CXX=$ac_ct_CXX
3067 # Provide some information about the compiler.
3068 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3069 ac_compiler=`set X $ac_compile; echo $2`
3070 { (ac_try="$ac_compiler --version >&5"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compiler --version >&5") 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }
3080 { (ac_try="$ac_compiler -v >&5"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compiler -v >&5") 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }
3090 { (ac_try="$ac_compiler -V >&5"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compiler -V >&5") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }
3101 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3102 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3103 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3114 main ()
3116 #ifndef __GNUC__
3117 choke me
3118 #endif
3121 return 0;
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } && {
3138 test -z "$ac_cxx_werror_flag" ||
3139 test ! -s conftest.err
3140 } && test -s conftest.$ac_objext; then
3141 ac_compiler_gnu=yes
3142 else
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 ac_compiler_gnu=no
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3153 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3154 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3155 GXX=`test $ac_compiler_gnu = yes && echo yes`
3156 ac_test_CXXFLAGS=${CXXFLAGS+set}
3157 ac_save_CXXFLAGS=$CXXFLAGS
3158 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3159 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3160 if test "${ac_cv_prog_cxx_g+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3164 ac_cxx_werror_flag=yes
3165 ac_cv_prog_cxx_g=no
3166 CXXFLAGS="-g"
3167 cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h. */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3175 main ()
3179 return 0;
3181 _ACEOF
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && {
3196 test -z "$ac_cxx_werror_flag" ||
3197 test ! -s conftest.err
3198 } && test -s conftest.$ac_objext; then
3199 ac_cv_prog_cxx_g=yes
3200 else
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 CXXFLAGS=""
3205 cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h. */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3213 main ()
3217 return 0;
3219 _ACEOF
3220 rm -f conftest.$ac_objext
3221 if { (ac_try="$ac_compile"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compile") 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } && {
3234 test -z "$ac_cxx_werror_flag" ||
3235 test ! -s conftest.err
3236 } && test -s conftest.$ac_objext; then
3238 else
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3242 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3243 CXXFLAGS="-g"
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3252 main ()
3256 return 0;
3258 _ACEOF
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && {
3273 test -z "$ac_cxx_werror_flag" ||
3274 test ! -s conftest.err
3275 } && test -s conftest.$ac_objext; then
3276 ac_cv_prog_cxx_g=yes
3277 else
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3293 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3294 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3295 if test "$ac_test_CXXFLAGS" = set; then
3296 CXXFLAGS=$ac_save_CXXFLAGS
3297 elif test $ac_cv_prog_cxx_g = yes; then
3298 if test "$GXX" = yes; then
3299 CXXFLAGS="-g -O2"
3300 else
3301 CXXFLAGS="-g"
3303 else
3304 if test "$GXX" = yes; then
3305 CXXFLAGS="-O2"
3306 else
3307 CXXFLAGS=
3310 ac_ext=c
3311 ac_cpp='$CPP $CPPFLAGS'
3312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3316 if test -n "$ac_tool_prefix"; then
3317 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3318 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3321 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324 if test -n "$CPPBIN"; then
3325 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3338 done
3339 done
3340 IFS=$as_save_IFS
3344 CPPBIN=$ac_cv_prog_CPPBIN
3345 if test -n "$CPPBIN"; then
3346 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3347 echo "${ECHO_T}$CPPBIN" >&6; }
3348 else
3349 { echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6; }
3355 if test -z "$ac_cv_prog_CPPBIN"; then
3356 ac_ct_CPPBIN=$CPPBIN
3357 # Extract the first word of "cpp", so it can be a program name with args.
3358 set dummy cpp; ac_word=$2
3359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364 if test -n "$ac_ct_CPPBIN"; then
3365 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374 ac_cv_prog_ac_ct_CPPBIN="cpp"
3375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3378 done
3379 done
3380 IFS=$as_save_IFS
3384 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3385 if test -n "$ac_ct_CPPBIN"; then
3386 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3387 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3388 else
3389 { echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6; }
3393 if test "x$ac_ct_CPPBIN" = x; then
3394 CPPBIN="cpp"
3395 else
3396 case $cross_compiling:$ac_tool_warned in
3397 yes:)
3398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3399 whose name does not start with the host triplet. If you think this
3400 configuration is useful to you, please write to autoconf@gnu.org." >&5
3401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3402 whose name does not start with the host triplet. If you think this
3403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3404 ac_tool_warned=yes ;;
3405 esac
3406 CPPBIN=$ac_ct_CPPBIN
3408 else
3409 CPPBIN="$ac_cv_prog_CPPBIN"
3413 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3414 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3415 if test "${wine_cv_toolsdir+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418 if test -z "$with_wine_tools"; then
3419 if test "$cross_compiling" = "yes"; then
3420 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3421 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3422 { (exit 1); exit 1; }; }
3423 else
3424 wine_cv_toolsdir="\$(TOPOBJDIR)"
3426 elif test -d "$with_wine_tools/tools/winebuild"; then
3427 case $with_wine_tools in
3428 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3429 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3430 esac
3431 else
3432 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3433 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3434 { (exit 1); exit 1; }; }
3437 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3438 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3439 TOOLSDIR=$wine_cv_toolsdir
3443 ac_ext=c
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3449 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3450 # On Suns, sometimes $CPP names a directory.
3451 if test -n "$CPP" && test -d "$CPP"; then
3452 CPP=
3454 if test -z "$CPP"; then
3455 if test "${ac_cv_prog_CPP+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 # Double quotes because CPP needs to be expanded
3459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3461 ac_preproc_ok=false
3462 for ac_c_preproc_warn_flag in '' yes
3464 # Use a header file that comes with gcc, so configuring glibc
3465 # with a fresh cross-compiler works.
3466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467 # <limits.h> exists even on freestanding compilers.
3468 # On the NeXT, cc -E runs the code through the compiler's parser,
3469 # not just through cpp. "Syntax error" is here to catch this case.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 #ifdef __STDC__
3477 # include <limits.h>
3478 #else
3479 # include <assert.h>
3480 #endif
3481 Syntax error
3482 _ACEOF
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } >/dev/null && {
3496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3497 test ! -s conftest.err
3498 }; then
3500 else
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 # Broken: fails on valid input.
3505 continue
3508 rm -f conftest.err conftest.$ac_ext
3510 # OK, works on sane cases. Now check whether nonexistent headers
3511 # can be detected and how.
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518 #include <ac_nonexistent.h>
3519 _ACEOF
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null && {
3533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3535 }; then
3536 # Broken: success on invalid input.
3537 continue
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 # Passes both tests.
3543 ac_preproc_ok=:
3544 break
3547 rm -f conftest.err conftest.$ac_ext
3549 done
3550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551 rm -f conftest.err conftest.$ac_ext
3552 if $ac_preproc_ok; then
3553 break
3556 done
3557 ac_cv_prog_CPP=$CPP
3560 CPP=$ac_cv_prog_CPP
3561 else
3562 ac_cv_prog_CPP=$CPP
3564 { echo "$as_me:$LINENO: result: $CPP" >&5
3565 echo "${ECHO_T}$CPP" >&6; }
3566 ac_preproc_ok=false
3567 for ac_c_preproc_warn_flag in '' yes
3569 # Use a header file that comes with gcc, so configuring glibc
3570 # with a fresh cross-compiler works.
3571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3572 # <limits.h> exists even on freestanding compilers.
3573 # On the NeXT, cc -E runs the code through the compiler's parser,
3574 # not just through cpp. "Syntax error" is here to catch this case.
3575 cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h. */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 #ifdef __STDC__
3582 # include <limits.h>
3583 #else
3584 # include <assert.h>
3585 #endif
3586 Syntax error
3587 _ACEOF
3588 if { (ac_try="$ac_cpp conftest.$ac_ext"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null && {
3601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3602 test ! -s conftest.err
3603 }; then
3605 else
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 # Broken: fails on valid input.
3610 continue
3613 rm -f conftest.err conftest.$ac_ext
3615 # OK, works on sane cases. Now check whether nonexistent headers
3616 # can be detected and how.
3617 cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h. */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include <ac_nonexistent.h>
3624 _ACEOF
3625 if { (ac_try="$ac_cpp conftest.$ac_ext"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } >/dev/null && {
3638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 }; then
3641 # Broken: success on invalid input.
3642 continue
3643 else
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 # Passes both tests.
3648 ac_preproc_ok=:
3649 break
3652 rm -f conftest.err conftest.$ac_ext
3654 done
3655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3656 rm -f conftest.err conftest.$ac_ext
3657 if $ac_preproc_ok; then
3659 else
3660 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3661 See \`config.log' for more details." >&5
3662 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3663 See \`config.log' for more details." >&2;}
3664 { (exit 1); exit 1; }; }
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674 { echo "$as_me:$LINENO: checking for X" >&5
3675 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3678 # Check whether --with-x was given.
3679 if test "${with_x+set}" = set; then
3680 withval=$with_x;
3683 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3684 if test "x$with_x" = xno; then
3685 # The user explicitly disabled X.
3686 have_x=disabled
3687 else
3688 case $x_includes,$x_libraries in #(
3689 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3690 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3691 { (exit 1); exit 1; }; };; #(
3692 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 # One or both of the vars are not set, and there is no cached value.
3696 ac_x_includes=no ac_x_libraries=no
3697 rm -f -r conftest.dir
3698 if mkdir conftest.dir; then
3699 cd conftest.dir
3700 cat >Imakefile <<'_ACEOF'
3701 incroot:
3702 @echo incroot='${INCROOT}'
3703 usrlibdir:
3704 @echo usrlibdir='${USRLIBDIR}'
3705 libdir:
3706 @echo libdir='${LIBDIR}'
3707 _ACEOF
3708 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3709 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3710 for ac_var in incroot usrlibdir libdir; do
3711 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3712 done
3713 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3714 for ac_extension in a so sl; do
3715 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3716 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3717 ac_im_usrlibdir=$ac_im_libdir; break
3719 done
3720 # Screen out bogus values from the imake configuration. They are
3721 # bogus both because they are the default anyway, and because
3722 # using them would break gcc on systems where it needs fixed includes.
3723 case $ac_im_incroot in
3724 /usr/include) ac_x_includes= ;;
3725 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3726 esac
3727 case $ac_im_usrlibdir in
3728 /usr/lib | /lib) ;;
3729 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3730 esac
3732 cd ..
3733 rm -f -r conftest.dir
3736 # Standard set of common directories for X headers.
3737 # Check X11 before X11Rn because it is often a symlink to the current release.
3738 ac_x_header_dirs='
3739 /usr/X11/include
3740 /usr/X11R6/include
3741 /usr/X11R5/include
3742 /usr/X11R4/include
3744 /usr/include/X11
3745 /usr/include/X11R6
3746 /usr/include/X11R5
3747 /usr/include/X11R4
3749 /usr/local/X11/include
3750 /usr/local/X11R6/include
3751 /usr/local/X11R5/include
3752 /usr/local/X11R4/include
3754 /usr/local/include/X11
3755 /usr/local/include/X11R6
3756 /usr/local/include/X11R5
3757 /usr/local/include/X11R4
3759 /usr/X386/include
3760 /usr/x386/include
3761 /usr/XFree86/include/X11
3763 /usr/include
3764 /usr/local/include
3765 /usr/unsupported/include
3766 /usr/athena/include
3767 /usr/local/x11r5/include
3768 /usr/lpp/Xamples/include
3770 /usr/openwin/include
3771 /usr/openwin/share/include'
3773 if test "$ac_x_includes" = no; then
3774 # Guess where to find include files, by looking for Xlib.h.
3775 # First, try using that file with no special directory specified.
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 #include <X11/Xlib.h>
3783 _ACEOF
3784 if { (ac_try="$ac_cpp conftest.$ac_ext"
3785 case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788 esac
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } >/dev/null && {
3797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3798 test ! -s conftest.err
3799 }; then
3800 # We can compile using X headers with no special include directory.
3801 ac_x_includes=
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 for ac_dir in $ac_x_header_dirs; do
3807 if test -r "$ac_dir/X11/Xlib.h"; then
3808 ac_x_includes=$ac_dir
3809 break
3811 done
3814 rm -f conftest.err conftest.$ac_ext
3815 fi # $ac_x_includes = no
3817 if test "$ac_x_libraries" = no; then
3818 # Check for the libraries.
3819 # See if we find them without any special options.
3820 # Don't add to $LIBS permanently.
3821 ac_save_LIBS=$LIBS
3822 LIBS="-lX11 $LIBS"
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h. */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3829 #include <X11/Xlib.h>
3831 main ()
3833 XrmInitialize ()
3835 return 0;
3837 _ACEOF
3838 rm -f conftest.$ac_objext conftest$ac_exeext
3839 if { (ac_try="$ac_link"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_link") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest$ac_exeext &&
3855 $as_test_x conftest$ac_exeext; then
3856 LIBS=$ac_save_LIBS
3857 # We can link X programs with no special library path.
3858 ac_x_libraries=
3859 else
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 LIBS=$ac_save_LIBS
3864 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3866 # Don't even attempt the hair of trying to link an X program!
3867 for ac_extension in a so sl; do
3868 if test -r "$ac_dir/libX11.$ac_extension"; then
3869 ac_x_libraries=$ac_dir
3870 break 2
3872 done
3873 done
3876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3877 conftest$ac_exeext conftest.$ac_ext
3878 fi # $ac_x_libraries = no
3880 case $ac_x_includes,$ac_x_libraries in #(
3881 no,* | *,no | *\'*)
3882 # Didn't find X, or a directory has "'" in its name.
3883 ac_cv_have_x="have_x=no";; #(
3885 # Record where we found X for the cache.
3886 ac_cv_have_x="have_x=yes\
3887 ac_x_includes='$ac_x_includes'\
3888 ac_x_libraries='$ac_x_libraries'"
3889 esac
3891 ;; #(
3892 *) have_x=yes;;
3893 esac
3894 eval "$ac_cv_have_x"
3895 fi # $with_x != no
3897 if test "$have_x" != yes; then
3898 { echo "$as_me:$LINENO: result: $have_x" >&5
3899 echo "${ECHO_T}$have_x" >&6; }
3900 no_x=yes
3901 else
3902 # If each of the values was on the command line, it overrides each guess.
3903 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3904 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3905 # Update the cache value to reflect the command line values.
3906 ac_cv_have_x="have_x=yes\
3907 ac_x_includes='$x_includes'\
3908 ac_x_libraries='$x_libraries'"
3909 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3910 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3913 if test "$no_x" = yes; then
3914 # Not all programs may use this symbol, but it does not hurt to define it.
3916 cat >>confdefs.h <<\_ACEOF
3917 #define X_DISPLAY_MISSING 1
3918 _ACEOF
3920 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3921 else
3922 if test -n "$x_includes"; then
3923 X_CFLAGS="$X_CFLAGS -I$x_includes"
3926 # It would also be nice to do this for all -L options, not just this one.
3927 if test -n "$x_libraries"; then
3928 X_LIBS="$X_LIBS -L$x_libraries"
3929 # For Solaris; some versions of Sun CC require a space after -R and
3930 # others require no space. Words are not sufficient . . . .
3931 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3932 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3933 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3934 ac_xsave_c_werror_flag=$ac_c_werror_flag
3935 ac_c_werror_flag=yes
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3944 main ()
3948 return 0;
3950 _ACEOF
3951 rm -f conftest.$ac_objext conftest$ac_exeext
3952 if { (ac_try="$ac_link"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_link") 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && {
3965 test -z "$ac_c_werror_flag" ||
3966 test ! -s conftest.err
3967 } && test -s conftest$ac_exeext &&
3968 $as_test_x conftest$ac_exeext; then
3969 { echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6; }
3971 X_LIBS="$X_LIBS -R$x_libraries"
3972 else
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3976 LIBS="$ac_xsave_LIBS -R $x_libraries"
3977 cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h. */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3985 main ()
3989 return 0;
3991 _ACEOF
3992 rm -f conftest.$ac_objext conftest$ac_exeext
3993 if { (ac_try="$ac_link"
3994 case "(($ac_try" in
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3997 esac
3998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3999 (eval "$ac_link") 2>conftest.er1
4000 ac_status=$?
4001 grep -v '^ *+' conftest.er1 >conftest.err
4002 rm -f conftest.er1
4003 cat conftest.err >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && {
4006 test -z "$ac_c_werror_flag" ||
4007 test ! -s conftest.err
4008 } && test -s conftest$ac_exeext &&
4009 $as_test_x conftest$ac_exeext; then
4010 { echo "$as_me:$LINENO: result: yes" >&5
4011 echo "${ECHO_T}yes" >&6; }
4012 X_LIBS="$X_LIBS -R $x_libraries"
4013 else
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 { echo "$as_me:$LINENO: result: neither works" >&5
4018 echo "${ECHO_T}neither works" >&6; }
4021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4022 conftest$ac_exeext conftest.$ac_ext
4025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4026 conftest$ac_exeext conftest.$ac_ext
4027 ac_c_werror_flag=$ac_xsave_c_werror_flag
4028 LIBS=$ac_xsave_LIBS
4031 # Check for system-dependent libraries X programs must link with.
4032 # Do this before checking for the system-independent R6 libraries
4033 # (-lICE), since we may need -lsocket or whatever for X linking.
4035 if test "$ISC" = yes; then
4036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4037 else
4038 # Martyn Johnson says this is needed for Ultrix, if the X
4039 # libraries were built with DECnet support. And Karl Berry says
4040 # the Alpha needs dnet_stub (dnet does not exist).
4041 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h. */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4049 /* Override any GCC internal prototype to avoid an error.
4050 Use char because int might match the return type of a GCC
4051 builtin and then its argument prototype would still apply. */
4052 #ifdef __cplusplus
4053 extern "C"
4054 #endif
4055 char XOpenDisplay ();
4057 main ()
4059 return XOpenDisplay ();
4061 return 0;
4063 _ACEOF
4064 rm -f conftest.$ac_objext conftest$ac_exeext
4065 if { (ac_try="$ac_link"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_link") 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && {
4078 test -z "$ac_c_werror_flag" ||
4079 test ! -s conftest.err
4080 } && test -s conftest$ac_exeext &&
4081 $as_test_x conftest$ac_exeext; then
4083 else
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4088 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4089 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092 ac_check_lib_save_LIBS=$LIBS
4093 LIBS="-ldnet $LIBS"
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h. */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4101 /* Override any GCC internal prototype to avoid an error.
4102 Use char because int might match the return type of a GCC
4103 builtin and then its argument prototype would still apply. */
4104 #ifdef __cplusplus
4105 extern "C"
4106 #endif
4107 char dnet_ntoa ();
4109 main ()
4111 return dnet_ntoa ();
4113 return 0;
4115 _ACEOF
4116 rm -f conftest.$ac_objext conftest$ac_exeext
4117 if { (ac_try="$ac_link"
4118 case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_link") 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } && {
4130 test -z "$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4132 } && test -s conftest$ac_exeext &&
4133 $as_test_x conftest$ac_exeext; then
4134 ac_cv_lib_dnet_dnet_ntoa=yes
4135 else
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 ac_cv_lib_dnet_dnet_ntoa=no
4142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4143 conftest$ac_exeext conftest.$ac_ext
4144 LIBS=$ac_check_lib_save_LIBS
4146 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4147 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4148 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4149 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4152 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4153 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4154 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4155 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158 ac_check_lib_save_LIBS=$LIBS
4159 LIBS="-ldnet_stub $LIBS"
4160 cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h. */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4167 /* Override any GCC internal prototype to avoid an error.
4168 Use char because int might match the return type of a GCC
4169 builtin and then its argument prototype would still apply. */
4170 #ifdef __cplusplus
4171 extern "C"
4172 #endif
4173 char dnet_ntoa ();
4175 main ()
4177 return dnet_ntoa ();
4179 return 0;
4181 _ACEOF
4182 rm -f conftest.$ac_objext conftest$ac_exeext
4183 if { (ac_try="$ac_link"
4184 case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_link") 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && {
4196 test -z "$ac_c_werror_flag" ||
4197 test ! -s conftest.err
4198 } && test -s conftest$ac_exeext &&
4199 $as_test_x conftest$ac_exeext; then
4200 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4201 else
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_lib_dnet_stub_dnet_ntoa=no
4208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4209 conftest$ac_exeext conftest.$ac_ext
4210 LIBS=$ac_check_lib_save_LIBS
4212 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4213 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4214 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4215 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4222 conftest$ac_exeext conftest.$ac_ext
4223 LIBS="$ac_xsave_LIBS"
4225 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4226 # to get the SysV transport functions.
4227 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4228 # needs -lnsl.
4229 # The nsl library prevents programs from opening the X display
4230 # on Irix 5.2, according to T.E. Dickey.
4231 # The functions gethostbyname, getservbyname, and inet_addr are
4232 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4233 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4234 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4235 if test "${ac_cv_func_gethostbyname+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h. */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4246 #define gethostbyname innocuous_gethostbyname
4248 /* System header to define __stub macros and hopefully few prototypes,
4249 which can conflict with char gethostbyname (); below.
4250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4251 <limits.h> exists even on freestanding compilers. */
4253 #ifdef __STDC__
4254 # include <limits.h>
4255 #else
4256 # include <assert.h>
4257 #endif
4259 #undef gethostbyname
4261 /* Override any GCC internal prototype to avoid an error.
4262 Use char because int might match the return type of a GCC
4263 builtin and then its argument prototype would still apply. */
4264 #ifdef __cplusplus
4265 extern "C"
4266 #endif
4267 char gethostbyname ();
4268 /* The GNU C library defines this for functions which it implements
4269 to always fail with ENOSYS. Some functions are actually named
4270 something starting with __ and the normal name is an alias. */
4271 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4272 choke me
4273 #endif
4276 main ()
4278 return gethostbyname ();
4280 return 0;
4282 _ACEOF
4283 rm -f conftest.$ac_objext conftest$ac_exeext
4284 if { (ac_try="$ac_link"
4285 case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_link") 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && {
4297 test -z "$ac_c_werror_flag" ||
4298 test ! -s conftest.err
4299 } && test -s conftest$ac_exeext &&
4300 $as_test_x conftest$ac_exeext; then
4301 ac_cv_func_gethostbyname=yes
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 ac_cv_func_gethostbyname=no
4309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4310 conftest$ac_exeext conftest.$ac_ext
4312 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4313 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4315 if test $ac_cv_func_gethostbyname = no; then
4316 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4317 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4318 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 ac_check_lib_save_LIBS=$LIBS
4322 LIBS="-lnsl $LIBS"
4323 cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h. */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4330 /* Override any GCC internal prototype to avoid an error.
4331 Use char because int might match the return type of a GCC
4332 builtin and then its argument prototype would still apply. */
4333 #ifdef __cplusplus
4334 extern "C"
4335 #endif
4336 char gethostbyname ();
4338 main ()
4340 return gethostbyname ();
4342 return 0;
4344 _ACEOF
4345 rm -f conftest.$ac_objext conftest$ac_exeext
4346 if { (ac_try="$ac_link"
4347 case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350 esac
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_link") 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } && {
4359 test -z "$ac_c_werror_flag" ||
4360 test ! -s conftest.err
4361 } && test -s conftest$ac_exeext &&
4362 $as_test_x conftest$ac_exeext; then
4363 ac_cv_lib_nsl_gethostbyname=yes
4364 else
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 ac_cv_lib_nsl_gethostbyname=no
4371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4372 conftest$ac_exeext conftest.$ac_ext
4373 LIBS=$ac_check_lib_save_LIBS
4375 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4376 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4377 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4378 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4381 if test $ac_cv_lib_nsl_gethostbyname = no; then
4382 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4383 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4384 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 ac_check_lib_save_LIBS=$LIBS
4388 LIBS="-lbsd $LIBS"
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h. */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4396 /* Override any GCC internal prototype to avoid an error.
4397 Use char because int might match the return type of a GCC
4398 builtin and then its argument prototype would still apply. */
4399 #ifdef __cplusplus
4400 extern "C"
4401 #endif
4402 char gethostbyname ();
4404 main ()
4406 return gethostbyname ();
4408 return 0;
4410 _ACEOF
4411 rm -f conftest.$ac_objext conftest$ac_exeext
4412 if { (ac_try="$ac_link"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_link") 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest$ac_exeext &&
4428 $as_test_x conftest$ac_exeext; then
4429 ac_cv_lib_bsd_gethostbyname=yes
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 ac_cv_lib_bsd_gethostbyname=no
4437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4438 conftest$ac_exeext conftest.$ac_ext
4439 LIBS=$ac_check_lib_save_LIBS
4441 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4442 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4443 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4444 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4450 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4451 # socket/setsockopt and other routines are undefined under SCO ODT
4452 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4453 # on later versions), says Simon Leinen: it contains gethostby*
4454 # variants that don't use the name server (or something). -lsocket
4455 # must be given before -lnsl if both are needed. We assume that
4456 # if connect needs -lnsl, so does gethostbyname.
4457 { echo "$as_me:$LINENO: checking for connect" >&5
4458 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4459 if test "${ac_cv_func_connect+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h. */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4470 #define connect innocuous_connect
4472 /* System header to define __stub macros and hopefully few prototypes,
4473 which can conflict with char connect (); below.
4474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475 <limits.h> exists even on freestanding compilers. */
4477 #ifdef __STDC__
4478 # include <limits.h>
4479 #else
4480 # include <assert.h>
4481 #endif
4483 #undef connect
4485 /* Override any GCC internal prototype to avoid an error.
4486 Use char because int might match the return type of a GCC
4487 builtin and then its argument prototype would still apply. */
4488 #ifdef __cplusplus
4489 extern "C"
4490 #endif
4491 char connect ();
4492 /* The GNU C library defines this for functions which it implements
4493 to always fail with ENOSYS. Some functions are actually named
4494 something starting with __ and the normal name is an alias. */
4495 #if defined __stub_connect || defined __stub___connect
4496 choke me
4497 #endif
4500 main ()
4502 return connect ();
4504 return 0;
4506 _ACEOF
4507 rm -f conftest.$ac_objext conftest$ac_exeext
4508 if { (ac_try="$ac_link"
4509 case "(($ac_try" in
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4512 esac
4513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4514 (eval "$ac_link") 2>conftest.er1
4515 ac_status=$?
4516 grep -v '^ *+' conftest.er1 >conftest.err
4517 rm -f conftest.er1
4518 cat conftest.err >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } && {
4521 test -z "$ac_c_werror_flag" ||
4522 test ! -s conftest.err
4523 } && test -s conftest$ac_exeext &&
4524 $as_test_x conftest$ac_exeext; then
4525 ac_cv_func_connect=yes
4526 else
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4530 ac_cv_func_connect=no
4533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4534 conftest$ac_exeext conftest.$ac_ext
4536 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4537 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4539 if test $ac_cv_func_connect = no; then
4540 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4541 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4542 if test "${ac_cv_lib_socket_connect+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 ac_check_lib_save_LIBS=$LIBS
4546 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4554 /* Override any GCC internal prototype to avoid an error.
4555 Use char because int might match the return type of a GCC
4556 builtin and then its argument prototype would still apply. */
4557 #ifdef __cplusplus
4558 extern "C"
4559 #endif
4560 char connect ();
4562 main ()
4564 return connect ();
4566 return 0;
4568 _ACEOF
4569 rm -f conftest.$ac_objext conftest$ac_exeext
4570 if { (ac_try="$ac_link"
4571 case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574 esac
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_link") 2>conftest.er1
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } && {
4583 test -z "$ac_c_werror_flag" ||
4584 test ! -s conftest.err
4585 } && test -s conftest$ac_exeext &&
4586 $as_test_x conftest$ac_exeext; then
4587 ac_cv_lib_socket_connect=yes
4588 else
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4592 ac_cv_lib_socket_connect=no
4595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4596 conftest$ac_exeext conftest.$ac_ext
4597 LIBS=$ac_check_lib_save_LIBS
4599 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4600 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4601 if test $ac_cv_lib_socket_connect = yes; then
4602 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4607 # Guillermo Gomez says -lposix is necessary on A/UX.
4608 { echo "$as_me:$LINENO: checking for remove" >&5
4609 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4610 if test "${ac_cv_func_remove+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4621 #define remove innocuous_remove
4623 /* System header to define __stub macros and hopefully few prototypes,
4624 which can conflict with char remove (); below.
4625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4626 <limits.h> exists even on freestanding compilers. */
4628 #ifdef __STDC__
4629 # include <limits.h>
4630 #else
4631 # include <assert.h>
4632 #endif
4634 #undef remove
4636 /* Override any GCC internal prototype to avoid an error.
4637 Use char because int might match the return type of a GCC
4638 builtin and then its argument prototype would still apply. */
4639 #ifdef __cplusplus
4640 extern "C"
4641 #endif
4642 char remove ();
4643 /* The GNU C library defines this for functions which it implements
4644 to always fail with ENOSYS. Some functions are actually named
4645 something starting with __ and the normal name is an alias. */
4646 #if defined __stub_remove || defined __stub___remove
4647 choke me
4648 #endif
4651 main ()
4653 return remove ();
4655 return 0;
4657 _ACEOF
4658 rm -f conftest.$ac_objext conftest$ac_exeext
4659 if { (ac_try="$ac_link"
4660 case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663 esac
4664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665 (eval "$ac_link") 2>conftest.er1
4666 ac_status=$?
4667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } && {
4672 test -z "$ac_c_werror_flag" ||
4673 test ! -s conftest.err
4674 } && test -s conftest$ac_exeext &&
4675 $as_test_x conftest$ac_exeext; then
4676 ac_cv_func_remove=yes
4677 else
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 ac_cv_func_remove=no
4684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4685 conftest$ac_exeext conftest.$ac_ext
4687 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4688 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4690 if test $ac_cv_func_remove = no; then
4691 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4692 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4693 if test "${ac_cv_lib_posix_remove+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 ac_check_lib_save_LIBS=$LIBS
4697 LIBS="-lposix $LIBS"
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4705 /* Override any GCC internal prototype to avoid an error.
4706 Use char because int might match the return type of a GCC
4707 builtin and then its argument prototype would still apply. */
4708 #ifdef __cplusplus
4709 extern "C"
4710 #endif
4711 char remove ();
4713 main ()
4715 return remove ();
4717 return 0;
4719 _ACEOF
4720 rm -f conftest.$ac_objext conftest$ac_exeext
4721 if { (ac_try="$ac_link"
4722 case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_link") 2>conftest.er1
4728 ac_status=$?
4729 grep -v '^ *+' conftest.er1 >conftest.err
4730 rm -f conftest.er1
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } && {
4734 test -z "$ac_c_werror_flag" ||
4735 test ! -s conftest.err
4736 } && test -s conftest$ac_exeext &&
4737 $as_test_x conftest$ac_exeext; then
4738 ac_cv_lib_posix_remove=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ac_cv_lib_posix_remove=no
4746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4747 conftest$ac_exeext conftest.$ac_ext
4748 LIBS=$ac_check_lib_save_LIBS
4750 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4751 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4752 if test $ac_cv_lib_posix_remove = yes; then
4753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4758 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4759 { echo "$as_me:$LINENO: checking for shmat" >&5
4760 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4761 if test "${ac_cv_func_shmat+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h. */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4772 #define shmat innocuous_shmat
4774 /* System header to define __stub macros and hopefully few prototypes,
4775 which can conflict with char shmat (); below.
4776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4777 <limits.h> exists even on freestanding compilers. */
4779 #ifdef __STDC__
4780 # include <limits.h>
4781 #else
4782 # include <assert.h>
4783 #endif
4785 #undef shmat
4787 /* Override any GCC internal prototype to avoid an error.
4788 Use char because int might match the return type of a GCC
4789 builtin and then its argument prototype would still apply. */
4790 #ifdef __cplusplus
4791 extern "C"
4792 #endif
4793 char shmat ();
4794 /* The GNU C library defines this for functions which it implements
4795 to always fail with ENOSYS. Some functions are actually named
4796 something starting with __ and the normal name is an alias. */
4797 #if defined __stub_shmat || defined __stub___shmat
4798 choke me
4799 #endif
4802 main ()
4804 return shmat ();
4806 return 0;
4808 _ACEOF
4809 rm -f conftest.$ac_objext conftest$ac_exeext
4810 if { (ac_try="$ac_link"
4811 case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814 esac
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_link") 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && {
4823 test -z "$ac_c_werror_flag" ||
4824 test ! -s conftest.err
4825 } && test -s conftest$ac_exeext &&
4826 $as_test_x conftest$ac_exeext; then
4827 ac_cv_func_shmat=yes
4828 else
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4832 ac_cv_func_shmat=no
4835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4836 conftest$ac_exeext conftest.$ac_ext
4838 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4839 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4841 if test $ac_cv_func_shmat = no; then
4842 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4843 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4844 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 ac_check_lib_save_LIBS=$LIBS
4848 LIBS="-lipc $LIBS"
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4856 /* Override any GCC internal prototype to avoid an error.
4857 Use char because int might match the return type of a GCC
4858 builtin and then its argument prototype would still apply. */
4859 #ifdef __cplusplus
4860 extern "C"
4861 #endif
4862 char shmat ();
4864 main ()
4866 return shmat ();
4868 return 0;
4870 _ACEOF
4871 rm -f conftest.$ac_objext conftest$ac_exeext
4872 if { (ac_try="$ac_link"
4873 case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4876 esac
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_link") 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } && {
4885 test -z "$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4887 } && test -s conftest$ac_exeext &&
4888 $as_test_x conftest$ac_exeext; then
4889 ac_cv_lib_ipc_shmat=yes
4890 else
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4894 ac_cv_lib_ipc_shmat=no
4897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4898 conftest$ac_exeext conftest.$ac_ext
4899 LIBS=$ac_check_lib_save_LIBS
4901 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4902 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4903 if test $ac_cv_lib_ipc_shmat = yes; then
4904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4910 # Check for libraries that X11R6 Xt/Xaw programs need.
4911 ac_save_LDFLAGS=$LDFLAGS
4912 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4913 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4914 # check for ICE first), but we must link in the order -lSM -lICE or
4915 # we get undefined symbols. So assume we have SM if we have ICE.
4916 # These have to be linked with before -lX11, unlike the other
4917 # libraries we check for below, so use a different variable.
4918 # John Interrante, Karl Berry
4919 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4920 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4921 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 ac_check_lib_save_LIBS=$LIBS
4925 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4933 /* Override any GCC internal prototype to avoid an error.
4934 Use char because int might match the return type of a GCC
4935 builtin and then its argument prototype would still apply. */
4936 #ifdef __cplusplus
4937 extern "C"
4938 #endif
4939 char IceConnectionNumber ();
4941 main ()
4943 return IceConnectionNumber ();
4945 return 0;
4947 _ACEOF
4948 rm -f conftest.$ac_objext conftest$ac_exeext
4949 if { (ac_try="$ac_link"
4950 case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_link") 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest$ac_exeext &&
4965 $as_test_x conftest$ac_exeext; then
4966 ac_cv_lib_ICE_IceConnectionNumber=yes
4967 else
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 ac_cv_lib_ICE_IceConnectionNumber=no
4974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4975 conftest$ac_exeext conftest.$ac_ext
4976 LIBS=$ac_check_lib_save_LIBS
4978 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4979 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4980 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4981 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4984 LDFLAGS=$ac_save_LDFLAGS
4988 for ac_prog in flex lex
4990 # Extract the first word of "$ac_prog", so it can be a program name with args.
4991 set dummy $ac_prog; ac_word=$2
4992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4994 if test "${ac_cv_prog_LEX+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 if test -n "$LEX"; then
4998 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_prog_LEX="$ac_prog"
5008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5011 done
5012 done
5013 IFS=$as_save_IFS
5017 LEX=$ac_cv_prog_LEX
5018 if test -n "$LEX"; then
5019 { echo "$as_me:$LINENO: result: $LEX" >&5
5020 echo "${ECHO_T}$LEX" >&6; }
5021 else
5022 { echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6; }
5027 test -n "$LEX" && break
5028 done
5029 test -n "$LEX" || LEX=":"
5031 if test "x$LEX" != "x:"; then
5032 cat >conftest.l <<_ACEOF
5034 a { ECHO; }
5035 b { REJECT; }
5036 c { yymore (); }
5037 d { yyless (1); }
5038 e { yyless (input () != 0); }
5039 f { unput (yytext[0]); }
5040 . { BEGIN INITIAL; }
5042 #ifdef YYTEXT_POINTER
5043 extern char *yytext;
5044 #endif
5046 main (void)
5048 return ! yylex () + ! yywrap ();
5050 _ACEOF
5051 { (ac_try="$LEX conftest.l"
5052 case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055 esac
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$LEX conftest.l") 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }
5061 { echo "$as_me:$LINENO: checking lex output file root" >&5
5062 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5063 if test "${ac_cv_prog_lex_root+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5067 if test -f lex.yy.c; then
5068 ac_cv_prog_lex_root=lex.yy
5069 elif test -f lexyy.c; then
5070 ac_cv_prog_lex_root=lexyy
5071 else
5072 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5073 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5074 { (exit 1); exit 1; }; }
5077 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5078 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5079 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5081 if test -z "${LEXLIB+set}"; then
5082 { echo "$as_me:$LINENO: checking lex library" >&5
5083 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5084 if test "${ac_cv_lib_lex+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5088 ac_save_LIBS=$LIBS
5089 ac_cv_lib_lex='none needed'
5090 for ac_lib in '' -lfl -ll; do
5091 LIBS="$ac_lib $ac_save_LIBS"
5092 cat >conftest.$ac_ext <<_ACEOF
5093 `cat $LEX_OUTPUT_ROOT.c`
5094 _ACEOF
5095 rm -f conftest.$ac_objext conftest$ac_exeext
5096 if { (ac_try="$ac_link"
5097 case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100 esac
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_link") 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } && {
5109 test -z "$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5111 } && test -s conftest$ac_exeext &&
5112 $as_test_x conftest$ac_exeext; then
5113 ac_cv_lib_lex=$ac_lib
5114 else
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5122 conftest$ac_exeext conftest.$ac_ext
5123 test "$ac_cv_lib_lex" != 'none needed' && break
5124 done
5125 LIBS=$ac_save_LIBS
5128 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5129 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5130 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5134 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5135 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5136 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139 # POSIX says lex can declare yytext either as a pointer or an array; the
5140 # default is implementation-dependent. Figure out which it is, since
5141 # not all implementations provide the %pointer and %array declarations.
5142 ac_cv_prog_lex_yytext_pointer=no
5143 ac_save_LIBS=$LIBS
5144 LIBS="$LEXLIB $ac_save_LIBS"
5145 cat >conftest.$ac_ext <<_ACEOF
5146 #define YYTEXT_POINTER 1
5147 `cat $LEX_OUTPUT_ROOT.c`
5148 _ACEOF
5149 rm -f conftest.$ac_objext conftest$ac_exeext
5150 if { (ac_try="$ac_link"
5151 case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154 esac
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_link") 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } && {
5163 test -z "$ac_c_werror_flag" ||
5164 test ! -s conftest.err
5165 } && test -s conftest$ac_exeext &&
5166 $as_test_x conftest$ac_exeext; then
5167 ac_cv_prog_lex_yytext_pointer=yes
5168 else
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5176 conftest$ac_exeext conftest.$ac_ext
5177 LIBS=$ac_save_LIBS
5180 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5181 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5182 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5184 cat >>confdefs.h <<\_ACEOF
5185 #define YYTEXT_POINTER 1
5186 _ACEOF
5189 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5193 for ac_prog in $LEX flex lex
5195 # Extract the first word of "$ac_prog", so it can be a program name with args.
5196 set dummy $ac_prog; ac_word=$2
5197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5199 if test "${ac_cv_prog_XLEX+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202 if test -n "$XLEX"; then
5203 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_prog_XLEX="$ac_prog"
5213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5216 done
5217 done
5218 IFS=$as_save_IFS
5222 XLEX=$ac_cv_prog_XLEX
5223 if test -n "$XLEX"; then
5224 { echo "$as_me:$LINENO: result: $XLEX" >&5
5225 echo "${ECHO_T}$XLEX" >&6; }
5226 else
5227 { echo "$as_me:$LINENO: result: no" >&5
5228 echo "${ECHO_T}no" >&6; }
5232 test -n "$XLEX" && break
5233 done
5234 test -n "$XLEX" || XLEX="none"
5236 if test "$XLEX" = "none"
5237 then
5238 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5239 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5240 { (exit 1); exit 1; }; }
5243 for ac_prog in bison
5245 # Extract the first word of "$ac_prog", so it can be a program name with args.
5246 set dummy $ac_prog; ac_word=$2
5247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5249 if test "${ac_cv_prog_BISON+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 if test -n "$BISON"; then
5253 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_BISON="$ac_prog"
5263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 BISON=$ac_cv_prog_BISON
5273 if test -n "$BISON"; then
5274 { echo "$as_me:$LINENO: result: $BISON" >&5
5275 echo "${ECHO_T}$BISON" >&6; }
5276 else
5277 { echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6; }
5282 test -n "$BISON" && break
5283 done
5284 test -n "$BISON" || BISON="none"
5286 if test "$BISON" = "none"
5287 then
5288 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5289 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5290 { (exit 1); exit 1; }; }
5293 if test -n "$ac_tool_prefix"; then
5294 for ac_prog in gas as
5296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5300 if test "${ac_cv_prog_AS+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303 if test -n "$AS"; then
5304 ac_cv_prog_AS="$AS" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5317 done
5318 done
5319 IFS=$as_save_IFS
5323 AS=$ac_cv_prog_AS
5324 if test -n "$AS"; then
5325 { echo "$as_me:$LINENO: result: $AS" >&5
5326 echo "${ECHO_T}$AS" >&6; }
5327 else
5328 { echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6; }
5333 test -n "$AS" && break
5334 done
5336 if test -z "$AS"; then
5337 ac_ct_AS=$AS
5338 for ac_prog in gas as
5340 # Extract the first word of "$ac_prog", so it can be a program name with args.
5341 set dummy $ac_prog; ac_word=$2
5342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5344 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347 if test -n "$ac_ct_AS"; then
5348 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_prog_ac_ct_AS="$ac_prog"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5361 done
5362 done
5363 IFS=$as_save_IFS
5367 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5368 if test -n "$ac_ct_AS"; then
5369 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5370 echo "${ECHO_T}$ac_ct_AS" >&6; }
5371 else
5372 { echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6; }
5377 test -n "$ac_ct_AS" && break
5378 done
5380 if test "x$ac_ct_AS" = x; then
5381 AS="as"
5382 else
5383 case $cross_compiling:$ac_tool_warned in
5384 yes:)
5385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5386 whose name does not start with the host triplet. If you think this
5387 configuration is useful to you, please write to autoconf@gnu.org." >&5
5388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5389 whose name does not start with the host triplet. If you think this
5390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5391 ac_tool_warned=yes ;;
5392 esac
5393 AS=$ac_ct_AS
5397 if test -n "$ac_tool_prefix"; then
5398 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5399 set dummy ${ac_tool_prefix}ld; ac_word=$2
5400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5402 if test "${ac_cv_prog_LD+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 if test -n "$LD"; then
5406 ac_cv_prog_LD="$LD" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415 ac_cv_prog_LD="${ac_tool_prefix}ld"
5416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5419 done
5420 done
5421 IFS=$as_save_IFS
5425 LD=$ac_cv_prog_LD
5426 if test -n "$LD"; then
5427 { echo "$as_me:$LINENO: result: $LD" >&5
5428 echo "${ECHO_T}$LD" >&6; }
5429 else
5430 { echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6; }
5436 if test -z "$ac_cv_prog_LD"; then
5437 ac_ct_LD=$LD
5438 # Extract the first word of "ld", so it can be a program name with args.
5439 set dummy ld; ac_word=$2
5440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5442 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445 if test -n "$ac_ct_LD"; then
5446 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455 ac_cv_prog_ac_ct_LD="ld"
5456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5459 done
5460 done
5461 IFS=$as_save_IFS
5465 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5466 if test -n "$ac_ct_LD"; then
5467 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5468 echo "${ECHO_T}$ac_ct_LD" >&6; }
5469 else
5470 { echo "$as_me:$LINENO: result: no" >&5
5471 echo "${ECHO_T}no" >&6; }
5474 if test "x$ac_ct_LD" = x; then
5475 LD="ld"
5476 else
5477 case $cross_compiling:$ac_tool_warned in
5478 yes:)
5479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5480 whose name does not start with the host triplet. If you think this
5481 configuration is useful to you, please write to autoconf@gnu.org." >&5
5482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5483 whose name does not start with the host triplet. If you think this
5484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5485 ac_tool_warned=yes ;;
5486 esac
5487 LD=$ac_ct_LD
5489 else
5490 LD="$ac_cv_prog_LD"
5493 if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}ar; ac_word=$2
5496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5498 if test "${ac_cv_prog_AR+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501 if test -n "$AR"; then
5502 ac_cv_prog_AR="$AR" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_AR="${ac_tool_prefix}ar"
5512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5515 done
5516 done
5517 IFS=$as_save_IFS
5521 AR=$ac_cv_prog_AR
5522 if test -n "$AR"; then
5523 { echo "$as_me:$LINENO: result: $AR" >&5
5524 echo "${ECHO_T}$AR" >&6; }
5525 else
5526 { echo "$as_me:$LINENO: result: no" >&5
5527 echo "${ECHO_T}no" >&6; }
5532 if test -z "$ac_cv_prog_AR"; then
5533 ac_ct_AR=$AR
5534 # Extract the first word of "ar", so it can be a program name with args.
5535 set dummy ar; ac_word=$2
5536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5538 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 if test -n "$ac_ct_AR"; then
5542 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_ac_ct_AR="ar"
5552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5561 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5562 if test -n "$ac_ct_AR"; then
5563 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5564 echo "${ECHO_T}$ac_ct_AR" >&6; }
5565 else
5566 { echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6; }
5570 if test "x$ac_ct_AR" = x; then
5571 AR="ar"
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5576 whose name does not start with the host triplet. If you think this
5577 configuration is useful to you, please write to autoconf@gnu.org." >&5
5578 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5579 whose name does not start with the host triplet. If you think this
5580 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5581 ac_tool_warned=yes ;;
5582 esac
5583 AR=$ac_ct_AR
5585 else
5586 AR="$ac_cv_prog_AR"
5589 if test -n "$ac_tool_prefix"; then
5590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5591 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5594 if test "${ac_cv_prog_RANLIB+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597 if test -n "$RANLIB"; then
5598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5611 done
5612 done
5613 IFS=$as_save_IFS
5617 RANLIB=$ac_cv_prog_RANLIB
5618 if test -n "$RANLIB"; then
5619 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5620 echo "${ECHO_T}$RANLIB" >&6; }
5621 else
5622 { echo "$as_me:$LINENO: result: no" >&5
5623 echo "${ECHO_T}no" >&6; }
5628 if test -z "$ac_cv_prog_RANLIB"; then
5629 ac_ct_RANLIB=$RANLIB
5630 # Extract the first word of "ranlib", so it can be a program name with args.
5631 set dummy ranlib; ac_word=$2
5632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5634 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637 if test -n "$ac_ct_RANLIB"; then
5638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_ac_ct_RANLIB="ranlib"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5651 done
5652 done
5653 IFS=$as_save_IFS
5657 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5658 if test -n "$ac_ct_RANLIB"; then
5659 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5660 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5661 else
5662 { echo "$as_me:$LINENO: result: no" >&5
5663 echo "${ECHO_T}no" >&6; }
5666 if test "x$ac_ct_RANLIB" = x; then
5667 RANLIB=":"
5668 else
5669 case $cross_compiling:$ac_tool_warned in
5670 yes:)
5671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5672 whose name does not start with the host triplet. If you think this
5673 configuration is useful to you, please write to autoconf@gnu.org." >&5
5674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5675 whose name does not start with the host triplet. If you think this
5676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5677 ac_tool_warned=yes ;;
5678 esac
5679 RANLIB=$ac_ct_RANLIB
5681 else
5682 RANLIB="$ac_cv_prog_RANLIB"
5685 if test -n "$ac_tool_prefix"; then
5686 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5687 set dummy ${ac_tool_prefix}strip; ac_word=$2
5688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5690 if test "${ac_cv_prog_STRIP+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693 if test -n "$STRIP"; then
5694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5707 done
5708 done
5709 IFS=$as_save_IFS
5713 STRIP=$ac_cv_prog_STRIP
5714 if test -n "$STRIP"; then
5715 { echo "$as_me:$LINENO: result: $STRIP" >&5
5716 echo "${ECHO_T}$STRIP" >&6; }
5717 else
5718 { echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6; }
5724 if test -z "$ac_cv_prog_STRIP"; then
5725 ac_ct_STRIP=$STRIP
5726 # Extract the first word of "strip", so it can be a program name with args.
5727 set dummy strip; ac_word=$2
5728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5730 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 if test -n "$ac_ct_STRIP"; then
5734 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_ac_ct_STRIP="strip"
5744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5747 done
5748 done
5749 IFS=$as_save_IFS
5753 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5754 if test -n "$ac_ct_STRIP"; then
5755 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5756 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5757 else
5758 { echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6; }
5762 if test "x$ac_ct_STRIP" = x; then
5763 STRIP="strip"
5764 else
5765 case $cross_compiling:$ac_tool_warned in
5766 yes:)
5767 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5768 whose name does not start with the host triplet. If you think this
5769 configuration is useful to you, please write to autoconf@gnu.org." >&5
5770 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5771 whose name does not start with the host triplet. If you think this
5772 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5773 ac_tool_warned=yes ;;
5774 esac
5775 STRIP=$ac_ct_STRIP
5777 else
5778 STRIP="$ac_cv_prog_STRIP"
5781 if test -n "$ac_tool_prefix"; then
5782 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}windres; ac_word=$2
5784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5786 if test "${ac_cv_prog_WINDRES+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789 if test -n "$WINDRES"; then
5790 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5791 else
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5795 IFS=$as_save_IFS
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5799 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 break 2
5803 done
5804 done
5805 IFS=$as_save_IFS
5809 WINDRES=$ac_cv_prog_WINDRES
5810 if test -n "$WINDRES"; then
5811 { echo "$as_me:$LINENO: result: $WINDRES" >&5
5812 echo "${ECHO_T}$WINDRES" >&6; }
5813 else
5814 { echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6; }
5820 if test -z "$ac_cv_prog_WINDRES"; then
5821 ac_ct_WINDRES=$WINDRES
5822 # Extract the first word of "windres", so it can be a program name with args.
5823 set dummy windres; ac_word=$2
5824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829 if test -n "$ac_ct_WINDRES"; then
5830 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_ac_ct_WINDRES="windres"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5843 done
5844 done
5845 IFS=$as_save_IFS
5849 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5850 if test -n "$ac_ct_WINDRES"; then
5851 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5852 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
5853 else
5854 { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5858 if test "x$ac_ct_WINDRES" = x; then
5859 WINDRES="false"
5860 else
5861 case $cross_compiling:$ac_tool_warned in
5862 yes:)
5863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5864 whose name does not start with the host triplet. If you think this
5865 configuration is useful to you, please write to autoconf@gnu.org." >&5
5866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5867 whose name does not start with the host triplet. If you think this
5868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871 WINDRES=$ac_ct_WINDRES
5873 else
5874 WINDRES="$ac_cv_prog_WINDRES"
5877 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5878 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5879 LN_S=$as_ln_s
5880 if test "$LN_S" = "ln -s"; then
5881 { echo "$as_me:$LINENO: result: yes" >&5
5882 echo "${ECHO_T}yes" >&6; }
5883 else
5884 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5885 echo "${ECHO_T}no, using $LN_S" >&6; }
5888 { echo "$as_me:$LINENO: checking whether ln works" >&5
5889 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
5890 rm -f conf$$ conf$$.file
5891 echo >conf$$.file
5892 if ln conf$$.file conf$$ 2>/dev/null; then
5893 LN=ln
5895 { echo "$as_me:$LINENO: result: yes" >&5
5896 echo "${ECHO_T}yes" >&6; }
5897 else
5898 LN="cp -p"
5900 { echo "$as_me:$LINENO: result: no, using $LN" >&5
5901 echo "${ECHO_T}no, using $LN" >&6; }
5903 rm -f conf$$ conf$$.file
5904 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5905 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5906 if test "${ac_cv_path_GREP+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 # Extract the first word of "grep ggrep" to use in msg output
5910 if test -z "$GREP"; then
5911 set dummy grep ggrep; ac_prog_name=$2
5912 if test "${ac_cv_path_GREP+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915 ac_path_GREP_found=false
5916 # Loop through the user's path and test for each of PROGNAME-LIST
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_prog in grep ggrep; do
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5925 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5926 # Check for GNU ac_path_GREP and select it if it is found.
5927 # Check for GNU $ac_path_GREP
5928 case `"$ac_path_GREP" --version 2>&1` in
5929 *GNU*)
5930 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5932 ac_count=0
5933 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5934 while :
5936 cat "conftest.in" "conftest.in" >"conftest.tmp"
5937 mv "conftest.tmp" "conftest.in"
5938 cp "conftest.in" "conftest.nl"
5939 echo 'GREP' >> "conftest.nl"
5940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5942 ac_count=`expr $ac_count + 1`
5943 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5944 # Best one so far, save it but keep looking for a better one
5945 ac_cv_path_GREP="$ac_path_GREP"
5946 ac_path_GREP_max=$ac_count
5948 # 10*(2^10) chars as input seems more than enough
5949 test $ac_count -gt 10 && break
5950 done
5951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5952 esac
5955 $ac_path_GREP_found && break 3
5956 done
5957 done
5959 done
5960 IFS=$as_save_IFS
5965 GREP="$ac_cv_path_GREP"
5966 if test -z "$GREP"; then
5967 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5968 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5969 { (exit 1); exit 1; }; }
5972 else
5973 ac_cv_path_GREP=$GREP
5978 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5979 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5980 GREP="$ac_cv_path_GREP"
5983 { echo "$as_me:$LINENO: checking for egrep" >&5
5984 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5985 if test "${ac_cv_path_EGREP+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5989 then ac_cv_path_EGREP="$GREP -E"
5990 else
5991 # Extract the first word of "egrep" to use in msg output
5992 if test -z "$EGREP"; then
5993 set dummy egrep; ac_prog_name=$2
5994 if test "${ac_cv_path_EGREP+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997 ac_path_EGREP_found=false
5998 # Loop through the user's path and test for each of PROGNAME-LIST
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_prog in egrep; do
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6007 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6008 # Check for GNU ac_path_EGREP and select it if it is found.
6009 # Check for GNU $ac_path_EGREP
6010 case `"$ac_path_EGREP" --version 2>&1` in
6011 *GNU*)
6012 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6014 ac_count=0
6015 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6016 while :
6018 cat "conftest.in" "conftest.in" >"conftest.tmp"
6019 mv "conftest.tmp" "conftest.in"
6020 cp "conftest.in" "conftest.nl"
6021 echo 'EGREP' >> "conftest.nl"
6022 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6024 ac_count=`expr $ac_count + 1`
6025 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6026 # Best one so far, save it but keep looking for a better one
6027 ac_cv_path_EGREP="$ac_path_EGREP"
6028 ac_path_EGREP_max=$ac_count
6030 # 10*(2^10) chars as input seems more than enough
6031 test $ac_count -gt 10 && break
6032 done
6033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6034 esac
6037 $ac_path_EGREP_found && break 3
6038 done
6039 done
6041 done
6042 IFS=$as_save_IFS
6047 EGREP="$ac_cv_path_EGREP"
6048 if test -z "$EGREP"; then
6049 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6050 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6051 { (exit 1); exit 1; }; }
6054 else
6055 ac_cv_path_EGREP=$EGREP
6061 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6062 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6063 EGREP="$ac_cv_path_EGREP"
6066 # Extract the first word of "ldconfig", so it can be a program name with args.
6067 set dummy ldconfig; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 case $LDCONFIG in
6074 [\\/]* | ?:[\\/]*)
6075 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in /sbin /usr/sbin $PATH
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6089 done
6090 done
6091 IFS=$as_save_IFS
6093 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6095 esac
6097 LDCONFIG=$ac_cv_path_LDCONFIG
6098 if test -n "$LDCONFIG"; then
6099 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6100 echo "${ECHO_T}$LDCONFIG" >&6; }
6101 else
6102 { echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6; }
6107 # Find a good install program. We prefer a C program (faster),
6108 # so one script is as good as another. But avoid the broken or
6109 # incompatible versions:
6110 # SysV /etc/install, /usr/sbin/install
6111 # SunOS /usr/etc/install
6112 # IRIX /sbin/install
6113 # AIX /bin/install
6114 # AmigaOS /C/install, which installs bootblocks on floppy discs
6115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6118 # OS/2's system install, which has a completely different semantic
6119 # ./install, which can be erroneously created by make from ./install.sh.
6120 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6122 if test -z "$INSTALL"; then
6123 if test "${ac_cv_path_install+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 # Account for people who put trailing slashes in PATH elements.
6132 case $as_dir/ in
6133 ./ | .// | /cC/* | \
6134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6135 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6136 /usr/ucb/* ) ;;
6138 # OSF1 and SCO ODT 3.0 have their own names for install.
6139 # Don't use installbsd from OSF since it installs stuff as root
6140 # by default.
6141 for ac_prog in ginstall scoinst install; do
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6144 if test $ac_prog = install &&
6145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6146 # AIX install. It has an incompatible calling convention.
6148 elif test $ac_prog = install &&
6149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6150 # program-specific install script used by HP pwplus--don't use.
6152 else
6153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6154 break 3
6157 done
6158 done
6160 esac
6161 done
6162 IFS=$as_save_IFS
6166 if test "${ac_cv_path_install+set}" = set; then
6167 INSTALL=$ac_cv_path_install
6168 else
6169 # As a last resort, use the slow shell script. Don't cache a
6170 # value for INSTALL within a source directory, because that will
6171 # break other packages using the cache if that directory is
6172 # removed, or if the value is a relative name.
6173 INSTALL=$ac_install_sh
6176 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6177 echo "${ECHO_T}$INSTALL" >&6; }
6179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6180 # It thinks the first close brace ends the variable substitution.
6181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6187 case "$INSTALL" in
6188 [\\/$]* | ?:[\\/]* ) ;;
6189 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6190 esac
6192 for ac_prog in lclint lint
6194 # Extract the first word of "$ac_prog", so it can be a program name with args.
6195 set dummy $ac_prog; ac_word=$2
6196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6198 if test "${ac_cv_prog_LINT+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 if test -n "$LINT"; then
6202 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_LINT="$ac_prog"
6212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6215 done
6216 done
6217 IFS=$as_save_IFS
6221 LINT=$ac_cv_prog_LINT
6222 if test -n "$LINT"; then
6223 { echo "$as_me:$LINENO: result: $LINT" >&5
6224 echo "${ECHO_T}$LINT" >&6; }
6225 else
6226 { echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6; }
6231 test -n "$LINT" && break
6232 done
6234 if test "$LINT" = "lint"
6235 then
6236 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6241 for ac_prog in fontforge
6243 # Extract the first word of "$ac_prog", so it can be a program name with args.
6244 set dummy $ac_prog; ac_word=$2
6245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 if test -n "$FONTFORGE"; then
6251 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_FONTFORGE="$ac_prog"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6264 done
6265 done
6266 IFS=$as_save_IFS
6270 FONTFORGE=$ac_cv_prog_FONTFORGE
6271 if test -n "$FONTFORGE"; then
6272 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6273 echo "${ECHO_T}$FONTFORGE" >&6; }
6274 else
6275 { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6280 test -n "$FONTFORGE" && break
6281 done
6282 test -n "$FONTFORGE" || FONTFORGE="false"
6284 for ac_prog in pkg-config
6286 # Extract the first word of "$ac_prog", so it can be a program name with args.
6287 set dummy $ac_prog; ac_word=$2
6288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6290 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 if test -n "$PKG_CONFIG"; then
6294 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303 ac_cv_prog_PKG_CONFIG="$ac_prog"
6304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6307 done
6308 done
6309 IFS=$as_save_IFS
6313 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6314 if test -n "$PKG_CONFIG"; then
6315 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6316 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6317 else
6318 { echo "$as_me:$LINENO: result: no" >&5
6319 echo "${ECHO_T}no" >&6; }
6323 test -n "$PKG_CONFIG" && break
6324 done
6325 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6328 case $host_cpu in
6329 *i[3456789]86*)
6330 # Extract the first word of "prelink", so it can be a program name with args.
6331 set dummy prelink; ac_word=$2
6332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334 if test "${ac_cv_path_PRELINK+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337 case $PRELINK in
6338 [\\/]* | ?:[\\/]*)
6339 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in /sbin /usr/sbin $PATH
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6353 done
6354 done
6355 IFS=$as_save_IFS
6357 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6359 esac
6361 PRELINK=$ac_cv_path_PRELINK
6362 if test -n "$PRELINK"; then
6363 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6364 echo "${ECHO_T}$PRELINK" >&6; }
6365 else
6366 { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6372 esac
6376 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6377 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6378 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 ac_check_lib_save_LIBS=$LIBS
6382 LIBS="-li386 $LIBS"
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6390 /* Override any GCC internal prototype to avoid an error.
6391 Use char because int might match the return type of a GCC
6392 builtin and then its argument prototype would still apply. */
6393 #ifdef __cplusplus
6394 extern "C"
6395 #endif
6396 char i386_set_ldt ();
6398 main ()
6400 return i386_set_ldt ();
6402 return 0;
6404 _ACEOF
6405 rm -f conftest.$ac_objext conftest$ac_exeext
6406 if { (ac_try="$ac_link"
6407 case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_link") 2>conftest.er1
6413 ac_status=$?
6414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } && {
6419 test -z "$ac_c_werror_flag" ||
6420 test ! -s conftest.err
6421 } && test -s conftest$ac_exeext &&
6422 $as_test_x conftest$ac_exeext; then
6423 ac_cv_lib_i386_i386_set_ldt=yes
6424 else
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 ac_cv_lib_i386_i386_set_ldt=no
6431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6432 conftest$ac_exeext conftest.$ac_ext
6433 LIBS=$ac_check_lib_save_LIBS
6435 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6436 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
6437 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
6438 cat >>confdefs.h <<_ACEOF
6439 #define HAVE_LIBI386 1
6440 _ACEOF
6442 LIBS="-li386 $LIBS"
6447 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6448 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6449 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 ac_check_lib_save_LIBS=$LIBS
6453 LIBS="-lossaudio $LIBS"
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6461 /* Override any GCC internal prototype to avoid an error.
6462 Use char because int might match the return type of a GCC
6463 builtin and then its argument prototype would still apply. */
6464 #ifdef __cplusplus
6465 extern "C"
6466 #endif
6467 char _oss_ioctl ();
6469 main ()
6471 return _oss_ioctl ();
6473 return 0;
6475 _ACEOF
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (ac_try="$ac_link"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_link") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest$ac_exeext &&
6493 $as_test_x conftest$ac_exeext; then
6494 ac_cv_lib_ossaudio__oss_ioctl=yes
6495 else
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6499 ac_cv_lib_ossaudio__oss_ioctl=no
6502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6503 conftest$ac_exeext conftest.$ac_ext
6504 LIBS=$ac_check_lib_save_LIBS
6506 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6507 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6508 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6509 cat >>confdefs.h <<_ACEOF
6510 #define HAVE_LIBOSSAUDIO 1
6511 _ACEOF
6513 LIBS="-lossaudio $LIBS"
6518 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6519 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
6520 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 ac_check_lib_save_LIBS=$LIBS
6524 LIBS="-lxpg4 $LIBS"
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6532 /* Override any GCC internal prototype to avoid an error.
6533 Use char because int might match the return type of a GCC
6534 builtin and then its argument prototype would still apply. */
6535 #ifdef __cplusplus
6536 extern "C"
6537 #endif
6538 char _xpg4_setrunelocale ();
6540 main ()
6542 return _xpg4_setrunelocale ();
6544 return 0;
6546 _ACEOF
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (ac_try="$ac_link"
6549 case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_link") 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } && {
6561 test -z "$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6563 } && test -s conftest$ac_exeext &&
6564 $as_test_x conftest$ac_exeext; then
6565 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6566 else
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6574 conftest$ac_exeext conftest.$ac_ext
6575 LIBS=$ac_check_lib_save_LIBS
6577 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6578 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
6579 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6580 cat >>confdefs.h <<_ACEOF
6581 #define HAVE_LIBXPG4 1
6582 _ACEOF
6584 LIBS="-lxpg4 $LIBS"
6588 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6589 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
6590 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 ac_check_lib_save_LIBS=$LIBS
6594 LIBS="-lpthread $LIBS"
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6602 /* Override any GCC internal prototype to avoid an error.
6603 Use char because int might match the return type of a GCC
6604 builtin and then its argument prototype would still apply. */
6605 #ifdef __cplusplus
6606 extern "C"
6607 #endif
6608 char pthread_create ();
6610 main ()
6612 return pthread_create ();
6614 return 0;
6616 _ACEOF
6617 rm -f conftest.$ac_objext conftest$ac_exeext
6618 if { (ac_try="$ac_link"
6619 case "(($ac_try" in
6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6622 esac
6623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624 (eval "$ac_link") 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && {
6631 test -z "$ac_c_werror_flag" ||
6632 test ! -s conftest.err
6633 } && test -s conftest$ac_exeext &&
6634 $as_test_x conftest$ac_exeext; then
6635 ac_cv_lib_pthread_pthread_create=yes
6636 else
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6640 ac_cv_lib_pthread_pthread_create=no
6643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6644 conftest$ac_exeext conftest.$ac_ext
6645 LIBS=$ac_check_lib_save_LIBS
6647 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6648 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
6649 if test $ac_cv_lib_pthread_pthread_create = yes; then
6650 LIBPTHREAD="-lpthread"
6655 XLIB=""
6657 XFILES=""
6659 OPENGLFILES=""
6661 GLU32FILES=""
6663 OPENGL_LIBS=""
6665 QUARTZFILES=""
6669 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6670 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6671 if test "${ac_cv_header_stdc+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 #include <stdlib.h>
6681 #include <stdarg.h>
6682 #include <string.h>
6683 #include <float.h>
6686 main ()
6690 return 0;
6692 _ACEOF
6693 rm -f conftest.$ac_objext
6694 if { (ac_try="$ac_compile"
6695 case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_compile") 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest.$ac_objext; then
6710 ac_cv_header_stdc=yes
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 ac_cv_header_stdc=no
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 if test $ac_cv_header_stdc = yes; then
6721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6722 cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h. */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 #include <string.h>
6730 _ACEOF
6731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6732 $EGREP "memchr" >/dev/null 2>&1; then
6734 else
6735 ac_cv_header_stdc=no
6737 rm -f conftest*
6741 if test $ac_cv_header_stdc = yes; then
6742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6743 cat >conftest.$ac_ext <<_ACEOF
6744 /* confdefs.h. */
6745 _ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6749 #include <stdlib.h>
6751 _ACEOF
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753 $EGREP "free" >/dev/null 2>&1; then
6755 else
6756 ac_cv_header_stdc=no
6758 rm -f conftest*
6762 if test $ac_cv_header_stdc = yes; then
6763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6764 if test "$cross_compiling" = yes; then
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 #include <ctype.h>
6774 #include <stdlib.h>
6775 #if ((' ' & 0x0FF) == 0x020)
6776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6778 #else
6779 # define ISLOWER(c) \
6780 (('a' <= (c) && (c) <= 'i') \
6781 || ('j' <= (c) && (c) <= 'r') \
6782 || ('s' <= (c) && (c) <= 'z'))
6783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6784 #endif
6786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6788 main ()
6790 int i;
6791 for (i = 0; i < 256; i++)
6792 if (XOR (islower (i), ISLOWER (i))
6793 || toupper (i) != TOUPPER (i))
6794 return 2;
6795 return 0;
6797 _ACEOF
6798 rm -f conftest$ac_exeext
6799 if { (ac_try="$ac_link"
6800 case "(($ac_try" in
6801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802 *) ac_try_echo=$ac_try;;
6803 esac
6804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6805 (eval "$ac_link") 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6809 { (case "(($ac_try" in
6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6812 esac
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814 (eval "$ac_try") 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6819 else
6820 echo "$as_me: program exited with status $ac_status" >&5
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6824 ( exit $ac_status )
6825 ac_cv_header_stdc=no
6827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6833 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6834 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6835 if test $ac_cv_header_stdc = yes; then
6837 cat >>confdefs.h <<\_ACEOF
6838 #define STDC_HEADERS 1
6839 _ACEOF
6843 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6853 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6854 inttypes.h stdint.h unistd.h
6856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 $ac_includes_default
6870 #include <$ac_header>
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (ac_try="$ac_compile"
6874 case "(($ac_try" in
6875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6877 esac
6878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 eval "$as_ac_Header=yes"
6890 else
6891 echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 eval "$as_ac_Header=no"
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 ac_res=`eval echo '${'$as_ac_Header'}'`
6900 { echo "$as_me:$LINENO: result: $ac_res" >&5
6901 echo "${ECHO_T}$ac_res" >&6; }
6902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6903 cat >>confdefs.h <<_ACEOF
6904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6905 _ACEOF
6909 done
7020 for ac_header in \
7021 AudioUnit/AudioUnit.h \
7022 Carbon/Carbon.h \
7023 CoreAudio/CoreAudio.h \
7024 DiskArbitration/DiskArbitration.h \
7025 IOKit/IOKitLib.h \
7026 alsa/asoundlib.h \
7027 arpa/inet.h \
7028 arpa/nameser.h \
7029 asm/types.h \
7030 capi20.h \
7031 cups/cups.h \
7032 curses.h \
7033 direct.h \
7034 dlfcn.h \
7035 elf.h \
7036 float.h \
7037 fontconfig/fontconfig.h \
7038 getopt.h \
7039 ieeefp.h \
7040 io.h \
7041 jack/jack.h \
7042 jpeglib.h \
7043 lber.h \
7044 lcms.h \
7045 lcms/lcms.h \
7046 ldap.h \
7047 libaudioio.h \
7048 link.h \
7049 linux/cdrom.h \
7050 linux/compiler.h \
7051 linux/hdreg.h \
7052 linux/input.h \
7053 linux/ioctl.h \
7054 linux/joystick.h \
7055 linux/major.h \
7056 linux/param.h \
7057 linux/serial.h \
7058 linux/ucdrom.h \
7059 mach/machine.h \
7060 machine/cpu.h \
7061 machine/limits.h \
7062 machine/soundcard.h \
7063 mntent.h \
7064 ncurses.h \
7065 netdb.h \
7066 netinet/in.h \
7067 netinet/in_systm.h \
7068 netinet/tcp.h \
7069 netinet/tcp_fsm.h \
7070 openssl/err.h \
7071 openssl/ssl.h \
7072 poll.h \
7073 process.h \
7074 pthread.h \
7075 pwd.h \
7076 regex.h \
7077 sched.h \
7078 scsi/scsi.h \
7079 scsi/scsi_ioctl.h \
7080 scsi/sg.h \
7081 soundcard.h \
7082 stdint.h \
7083 strings.h \
7084 sys/asoundlib.h \
7085 sys/cdio.h \
7086 sys/elf32.h \
7087 sys/epoll.h \
7088 sys/errno.h \
7089 sys/event.h \
7090 sys/exec_elf.h \
7091 sys/filio.h \
7092 sys/ioctl.h \
7093 sys/ipc.h \
7094 sys/limits.h \
7095 sys/link.h \
7096 sys/lwp.h \
7097 sys/mman.h \
7098 sys/modem.h \
7099 sys/msg.h \
7100 sys/mtio.h \
7101 sys/param.h \
7102 sys/poll.h \
7103 sys/prctl.h \
7104 sys/ptrace.h \
7105 sys/reg.h \
7106 sys/resource.h \
7107 sys/scsiio.h \
7108 sys/shm.h \
7109 sys/signal.h \
7110 sys/socket.h \
7111 sys/sockio.h \
7112 sys/soundcard.h \
7113 sys/statvfs.h \
7114 sys/strtio.h \
7115 sys/syscall.h \
7116 sys/sysctl.h \
7117 sys/time.h \
7118 sys/times.h \
7119 sys/uio.h \
7120 sys/un.h \
7121 sys/vm86.h \
7122 sys/wait.h \
7123 syscall.h \
7124 termios.h \
7125 unicode/ubidi.h \
7126 unistd.h \
7127 utime.h \
7128 valgrind/memcheck.h
7131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 ac_res=`eval echo '${'$as_ac_Header'}'`
7139 { echo "$as_me:$LINENO: result: $ac_res" >&5
7140 echo "${ECHO_T}$ac_res" >&6; }
7141 else
7142 # Is the header compilable?
7143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 $ac_includes_default
7152 #include <$ac_header>
7153 _ACEOF
7154 rm -f conftest.$ac_objext
7155 if { (ac_try="$ac_compile"
7156 case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159 esac
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_compile") 2>conftest.er1
7162 ac_status=$?
7163 grep -v '^ *+' conftest.er1 >conftest.err
7164 rm -f conftest.er1
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } && {
7168 test -z "$ac_c_werror_flag" ||
7169 test ! -s conftest.err
7170 } && test -s conftest.$ac_objext; then
7171 ac_header_compiler=yes
7172 else
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7176 ac_header_compiler=no
7179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7181 echo "${ECHO_T}$ac_header_compiler" >&6; }
7183 # Is the header present?
7184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7186 cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 #include <$ac_header>
7193 _ACEOF
7194 if { (ac_try="$ac_cpp conftest.$ac_ext"
7195 case "(($ac_try" in
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7198 esac
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } >/dev/null && {
7207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 }; then
7210 ac_header_preproc=yes
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7215 ac_header_preproc=no
7218 rm -f conftest.err conftest.$ac_ext
7219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7220 echo "${ECHO_T}$ac_header_preproc" >&6; }
7222 # So? What about this header?
7223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7224 yes:no: )
7225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7229 ac_header_preproc=yes
7231 no:yes:* )
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7244 ( cat <<\_ASBOX
7245 ## ------------------------------------ ##
7246 ## Report this to wine-devel@winehq.org ##
7247 ## ------------------------------------ ##
7248 _ASBOX
7249 ) | sed "s/^/$as_me: WARNING: /" >&2
7251 esac
7252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 eval "$as_ac_Header=\$ac_header_preproc"
7259 ac_res=`eval echo '${'$as_ac_Header'}'`
7260 { echo "$as_me:$LINENO: result: $ac_res" >&5
7261 echo "${ECHO_T}$ac_res" >&6; }
7264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7265 cat >>confdefs.h <<_ACEOF
7266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7267 _ACEOF
7271 done
7273 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7274 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7275 if test "${ac_cv_header_stat_broken+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <sys/types.h>
7285 #include <sys/stat.h>
7287 #if defined S_ISBLK && defined S_IFDIR
7288 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7289 #endif
7291 #if defined S_ISBLK && defined S_IFCHR
7292 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7293 #endif
7295 #if defined S_ISLNK && defined S_IFREG
7296 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7297 #endif
7299 #if defined S_ISSOCK && defined S_IFREG
7300 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7301 #endif
7303 _ACEOF
7304 rm -f conftest.$ac_objext
7305 if { (ac_try="$ac_compile"
7306 case "(($ac_try" in
7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7309 esac
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311 (eval "$ac_compile") 2>conftest.er1
7312 ac_status=$?
7313 grep -v '^ *+' conftest.er1 >conftest.err
7314 rm -f conftest.er1
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.$ac_objext; then
7321 ac_cv_header_stat_broken=no
7322 else
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 ac_cv_header_stat_broken=yes
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7332 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7333 if test $ac_cv_header_stat_broken = yes; then
7335 cat >>confdefs.h <<\_ACEOF
7336 #define STAT_MACROS_BROKEN 1
7337 _ACEOF
7347 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355 cat >conftest.$ac_ext <<_ACEOF
7356 /* confdefs.h. */
7357 _ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 #include <sys/types.h>
7362 #if HAVE_SYS_PARAM_H
7363 # include <sys/param.h>
7364 #endif
7366 #include <$ac_header>
7367 _ACEOF
7368 rm -f conftest.$ac_objext
7369 if { (ac_try="$ac_compile"
7370 case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7373 esac
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375 (eval "$ac_compile") 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && {
7382 test -z "$ac_c_werror_flag" ||
7383 test ! -s conftest.err
7384 } && test -s conftest.$ac_objext; then
7385 eval "$as_ac_Header=yes"
7386 else
7387 echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7390 eval "$as_ac_Header=no"
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 ac_res=`eval echo '${'$as_ac_Header'}'`
7396 { echo "$as_me:$LINENO: result: $ac_res" >&5
7397 echo "${ECHO_T}$ac_res" >&6; }
7398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7399 cat >>confdefs.h <<_ACEOF
7400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7401 _ACEOF
7405 done
7414 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
7416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 #include <sys/types.h>
7429 #if HAVE_SYS_SOCKET_H
7430 # include <sys/socket.h>
7431 #endif
7433 #include <$ac_header>
7434 _ACEOF
7435 rm -f conftest.$ac_objext
7436 if { (ac_try="$ac_compile"
7437 case "(($ac_try" in
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7440 esac
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_compile") 2>conftest.er1
7443 ac_status=$?
7444 grep -v '^ *+' conftest.er1 >conftest.err
7445 rm -f conftest.er1
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest.$ac_objext; then
7452 eval "$as_ac_Header=yes"
7453 else
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7457 eval "$as_ac_Header=no"
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 ac_res=`eval echo '${'$as_ac_Header'}'`
7463 { echo "$as_me:$LINENO: result: $ac_res" >&5
7464 echo "${ECHO_T}$ac_res" >&6; }
7465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466 cat >>confdefs.h <<_ACEOF
7467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468 _ACEOF
7472 done
7476 for ac_header in linux/ipx.h
7478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 #include <sys/types.h>
7491 #ifdef HAVE_ASM_TYPES_H
7492 # include <asm/types.h>
7493 #endif
7494 #if HAVE_SYS_SOCKET_H
7495 # include <sys/socket.h>
7496 #endif
7498 #include <$ac_header>
7499 _ACEOF
7500 rm -f conftest.$ac_objext
7501 if { (ac_try="$ac_compile"
7502 case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505 esac
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.$ac_objext; then
7517 eval "$as_ac_Header=yes"
7518 else
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7522 eval "$as_ac_Header=no"
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 ac_res=`eval echo '${'$as_ac_Header'}'`
7528 { echo "$as_me:$LINENO: result: $ac_res" >&5
7529 echo "${ECHO_T}$ac_res" >&6; }
7530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7531 cat >>confdefs.h <<_ACEOF
7532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7533 _ACEOF
7537 done
7541 for ac_header in resolv.h
7543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549 cat >conftest.$ac_ext <<_ACEOF
7550 /* confdefs.h. */
7551 _ACEOF
7552 cat confdefs.h >>conftest.$ac_ext
7553 cat >>conftest.$ac_ext <<_ACEOF
7554 /* end confdefs.h. */
7555 #include <sys/types.h>
7556 #if HAVE_SYS_SOCKET_H
7557 # include <sys/socket.h>
7558 #endif
7559 #if HAVE_NETINET_IN_H
7560 # include <netinet/in.h>
7561 #endif
7562 #if HAVE_ARPA_NAMESER_H
7563 # include <arpa/nameser.h>
7564 #endif
7566 #include <$ac_header>
7567 _ACEOF
7568 rm -f conftest.$ac_objext
7569 if { (ac_try="$ac_compile"
7570 case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7573 esac
7574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7575 (eval "$ac_compile") 2>conftest.er1
7576 ac_status=$?
7577 grep -v '^ *+' conftest.er1 >conftest.err
7578 rm -f conftest.er1
7579 cat conftest.err >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } && {
7582 test -z "$ac_c_werror_flag" ||
7583 test ! -s conftest.err
7584 } && test -s conftest.$ac_objext; then
7585 eval "$as_ac_Header=yes"
7586 else
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 eval "$as_ac_Header=no"
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 ac_res=`eval echo '${'$as_ac_Header'}'`
7596 { echo "$as_me:$LINENO: result: $ac_res" >&5
7597 echo "${ECHO_T}$ac_res" >&6; }
7598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7599 cat >>confdefs.h <<_ACEOF
7600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7601 _ACEOF
7605 done
7609 for ac_header in ucontext.h
7611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617 cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h. */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 #include <signal.h>
7625 #include <$ac_header>
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (ac_try="$ac_compile"
7629 case "(($ac_try" in
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7632 esac
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634 (eval "$ac_compile") 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_c_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest.$ac_objext; then
7644 eval "$as_ac_Header=yes"
7645 else
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7649 eval "$as_ac_Header=no"
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 ac_res=`eval echo '${'$as_ac_Header'}'`
7655 { echo "$as_me:$LINENO: result: $ac_res" >&5
7656 echo "${ECHO_T}$ac_res" >&6; }
7657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7658 cat >>confdefs.h <<_ACEOF
7659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7660 _ACEOF
7664 done
7668 for ac_header in pthread_np.h
7670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676 cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h. */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 #ifdef HAVE_PTHREAD_H
7683 #include <pthread.h>
7684 #endif
7686 #include <$ac_header>
7687 _ACEOF
7688 rm -f conftest.$ac_objext
7689 if { (ac_try="$ac_compile"
7690 case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693 esac
7694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_compile") 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } && {
7702 test -z "$ac_c_werror_flag" ||
7703 test ! -s conftest.err
7704 } && test -s conftest.$ac_objext; then
7705 eval "$as_ac_Header=yes"
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 eval "$as_ac_Header=no"
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 ac_res=`eval echo '${'$as_ac_Header'}'`
7716 { echo "$as_me:$LINENO: result: $ac_res" >&5
7717 echo "${ECHO_T}$ac_res" >&6; }
7718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7719 cat >>confdefs.h <<_ACEOF
7720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7721 _ACEOF
7725 done
7729 for ac_header in linux/videodev.h
7731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737 cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 #ifdef HAVE_SYS_TIME_H
7744 #include <sys/time.h>
7745 #endif
7746 #include <sys/types.h>
7747 #ifdef HAVE_ASM_TYPES_H
7748 #include <asm/types.h>
7749 #endif
7751 #include <$ac_header>
7752 _ACEOF
7753 rm -f conftest.$ac_objext
7754 if { (ac_try="$ac_compile"
7755 case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758 esac
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_compile") 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest.$ac_objext; then
7770 eval "$as_ac_Header=yes"
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7775 eval "$as_ac_Header=no"
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 ac_res=`eval echo '${'$as_ac_Header'}'`
7781 { echo "$as_me:$LINENO: result: $ac_res" >&5
7782 echo "${ECHO_T}$ac_res" >&6; }
7783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7784 cat >>confdefs.h <<_ACEOF
7785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7786 _ACEOF
7790 done
7794 for ac_header in linux/capi.h
7796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #define __user
7810 #include <$ac_header>
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (ac_try="$ac_compile"
7814 case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7817 esac
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819 (eval "$ac_compile") 2>conftest.er1
7820 ac_status=$?
7821 grep -v '^ *+' conftest.er1 >conftest.err
7822 rm -f conftest.er1
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && {
7826 test -z "$ac_c_werror_flag" ||
7827 test ! -s conftest.err
7828 } && test -s conftest.$ac_objext; then
7829 eval "$as_ac_Header=yes"
7830 else
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7834 eval "$as_ac_Header=no"
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 ac_res=`eval echo '${'$as_ac_Header'}'`
7840 { echo "$as_me:$LINENO: result: $ac_res" >&5
7841 echo "${ECHO_T}$ac_res" >&6; }
7842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7843 cat >>confdefs.h <<_ACEOF
7844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7845 _ACEOF
7849 done
7853 if test "$have_x" = "yes"
7854 then
7855 XLIB="-lXext -lX11"
7856 ac_save_CPPFLAGS="$CPPFLAGS"
7857 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7869 for ac_header in X11/Xlib.h \
7870 X11/XKBlib.h \
7871 X11/Xutil.h \
7872 X11/extensions/shape.h \
7873 X11/extensions/XInput.h \
7874 X11/extensions/XShm.h \
7875 X11/extensions/Xinerama.h \
7876 X11/extensions/Xrandr.h \
7877 X11/extensions/Xrender.h \
7878 X11/extensions/xf86vmode.h
7880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886 cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h. */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 #ifdef HAVE_X11_XLIB_H
7893 # include <X11/Xlib.h>
7894 #endif
7895 #ifdef HAVE_X11_XUTIL_H
7896 # include <X11/Xutil.h>
7897 #endif
7899 #include <$ac_header>
7900 _ACEOF
7901 rm -f conftest.$ac_objext
7902 if { (ac_try="$ac_compile"
7903 case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906 esac
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_compile") 2>conftest.er1
7909 ac_status=$?
7910 grep -v '^ *+' conftest.er1 >conftest.err
7911 rm -f conftest.er1
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest.$ac_objext; then
7918 eval "$as_ac_Header=yes"
7919 else
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 eval "$as_ac_Header=no"
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928 ac_res=`eval echo '${'$as_ac_Header'}'`
7929 { echo "$as_me:$LINENO: result: $ac_res" >&5
7930 echo "${ECHO_T}$ac_res" >&6; }
7931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7932 cat >>confdefs.h <<_ACEOF
7933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7934 _ACEOF
7938 done
7941 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7942 then
7943 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7944 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
7945 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948 ac_check_lib_save_LIBS=$LIBS
7949 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7957 /* Override any GCC internal prototype to avoid an error.
7958 Use char because int might match the return type of a GCC
7959 builtin and then its argument prototype would still apply. */
7960 #ifdef __cplusplus
7961 extern "C"
7962 #endif
7963 char XkbQueryExtension ();
7965 main ()
7967 return XkbQueryExtension ();
7969 return 0;
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (ac_try="$ac_link"
7974 case "(($ac_try" in
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7977 esac
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979 (eval "$ac_link") 2>conftest.er1
7980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && {
7986 test -z "$ac_c_werror_flag" ||
7987 test ! -s conftest.err
7988 } && test -s conftest$ac_exeext &&
7989 $as_test_x conftest$ac_exeext; then
7990 ac_cv_lib_X11_XkbQueryExtension=yes
7991 else
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_cv_lib_X11_XkbQueryExtension=no
7998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7999 conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8002 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8003 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8004 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_XKB 1
8008 _ACEOF
8014 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8015 then
8016 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
8017 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
8018 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021 ac_check_lib_save_LIBS=$LIBS
8022 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8023 cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h. */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8030 /* Override any GCC internal prototype to avoid an error.
8031 Use char because int might match the return type of a GCC
8032 builtin and then its argument prototype would still apply. */
8033 #ifdef __cplusplus
8034 extern "C"
8035 #endif
8036 char XShmQueryExtension ();
8038 main ()
8040 return XShmQueryExtension ();
8042 return 0;
8044 _ACEOF
8045 rm -f conftest.$ac_objext conftest$ac_exeext
8046 if { (ac_try="$ac_link"
8047 case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_link") 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && {
8059 test -z "$ac_c_werror_flag" ||
8060 test ! -s conftest.err
8061 } && test -s conftest$ac_exeext &&
8062 $as_test_x conftest$ac_exeext; then
8063 ac_cv_lib_Xext_XShmQueryExtension=yes
8064 else
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8068 ac_cv_lib_Xext_XShmQueryExtension=no
8071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8072 conftest$ac_exeext conftest.$ac_ext
8073 LIBS=$ac_check_lib_save_LIBS
8075 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8076 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8077 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8079 cat >>confdefs.h <<\_ACEOF
8080 #define HAVE_LIBXXSHM 1
8081 _ACEOF
8087 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8088 then
8089 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8090 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
8091 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094 ac_check_lib_save_LIBS=$LIBS
8095 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8096 cat >conftest.$ac_ext <<_ACEOF
8097 /* confdefs.h. */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8103 /* Override any GCC internal prototype to avoid an error.
8104 Use char because int might match the return type of a GCC
8105 builtin and then its argument prototype would still apply. */
8106 #ifdef __cplusplus
8107 extern "C"
8108 #endif
8109 char XShapeQueryExtension ();
8111 main ()
8113 return XShapeQueryExtension ();
8115 return 0;
8117 _ACEOF
8118 rm -f conftest.$ac_objext conftest$ac_exeext
8119 if { (ac_try="$ac_link"
8120 case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8123 esac
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_link") 2>conftest.er1
8126 ac_status=$?
8127 grep -v '^ *+' conftest.er1 >conftest.err
8128 rm -f conftest.er1
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } && {
8132 test -z "$ac_c_werror_flag" ||
8133 test ! -s conftest.err
8134 } && test -s conftest$ac_exeext &&
8135 $as_test_x conftest$ac_exeext; then
8136 ac_cv_lib_Xext_XShapeQueryExtension=yes
8137 else
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8141 ac_cv_lib_Xext_XShapeQueryExtension=no
8144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8145 conftest$ac_exeext conftest.$ac_ext
8146 LIBS=$ac_check_lib_save_LIBS
8148 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8149 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8150 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8152 cat >>confdefs.h <<\_ACEOF
8153 #define HAVE_LIBXSHAPE 1
8154 _ACEOF
8160 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8161 then
8162 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8163 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
8164 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167 ac_check_lib_save_LIBS=$LIBS
8168 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h. */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8176 /* Override any GCC internal prototype to avoid an error.
8177 Use char because int might match the return type of a GCC
8178 builtin and then its argument prototype would still apply. */
8179 #ifdef __cplusplus
8180 extern "C"
8181 #endif
8182 char XF86VidModeQueryExtension ();
8184 main ()
8186 return XF86VidModeQueryExtension ();
8188 return 0;
8190 _ACEOF
8191 rm -f conftest.$ac_objext conftest$ac_exeext
8192 if { (ac_try="$ac_link"
8193 case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_link") 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest$ac_exeext &&
8208 $as_test_x conftest$ac_exeext; then
8209 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8210 else
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8214 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8218 conftest$ac_exeext conftest.$ac_ext
8219 LIBS=$ac_check_lib_save_LIBS
8221 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8222 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
8223 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8225 cat >>confdefs.h <<\_ACEOF
8226 #define HAVE_LIBXXF86VM 1
8227 _ACEOF
8229 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8235 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8236 then
8237 cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h. */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 #include <X11/Xlib.h>
8244 #include <X11/extensions/Xrandr.h>
8246 main ()
8248 static typeof(XRRSetScreenConfigAndRate) * func;
8250 return 0;
8252 _ACEOF
8253 rm -f conftest.$ac_objext
8254 if { (ac_try="$ac_compile"
8255 case "(($ac_try" in
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8258 esac
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_compile") 2>conftest.er1
8261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && {
8267 test -z "$ac_c_werror_flag" ||
8268 test ! -s conftest.err
8269 } && test -s conftest.$ac_objext; then
8271 cat >>confdefs.h <<\_ACEOF
8272 #define HAVE_LIBXRANDR 1
8273 _ACEOF
8275 else
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8286 then
8287 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8288 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
8289 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292 ac_check_lib_save_LIBS=$LIBS
8293 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h. */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8301 /* Override any GCC internal prototype to avoid an error.
8302 Use char because int might match the return type of a GCC
8303 builtin and then its argument prototype would still apply. */
8304 #ifdef __cplusplus
8305 extern "C"
8306 #endif
8307 char XRenderSetPictureTransform ();
8309 main ()
8311 return XRenderSetPictureTransform ();
8313 return 0;
8315 _ACEOF
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (ac_try="$ac_link"
8318 case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_link") 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest$ac_exeext &&
8333 $as_test_x conftest$ac_exeext; then
8334 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8335 else
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8339 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8343 conftest$ac_exeext conftest.$ac_ext
8344 LIBS=$ac_check_lib_save_LIBS
8346 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8347 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8348 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8350 cat >>confdefs.h <<\_ACEOF
8351 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8352 _ACEOF
8358 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8359 then
8360 cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h. */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8366 #include <X11/Xlib.h>
8367 #include <X11/extensions/Xinerama.h>
8369 main ()
8371 static typeof(XineramaQueryScreens) * func;
8373 return 0;
8375 _ACEOF
8376 rm -f conftest.$ac_objext
8377 if { (ac_try="$ac_compile"
8378 case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest.$ac_objext; then
8394 cat >>confdefs.h <<\_ACEOF
8395 #define HAVE_LIBXINERAMA 1
8396 _ACEOF
8398 else
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 if test "x$with_opengl" != "xno"
8410 then
8415 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
8417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 #ifdef HAVE_GL_GLX_H
8430 # include <GL/glx.h>
8431 #endif
8433 #include <$ac_header>
8434 _ACEOF
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.$ac_objext; then
8452 eval "$as_ac_Header=yes"
8453 else
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 eval "$as_ac_Header=no"
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 ac_res=`eval echo '${'$as_ac_Header'}'`
8463 { echo "$as_me:$LINENO: result: $ac_res" >&5
8464 echo "${ECHO_T}$ac_res" >&6; }
8465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8466 cat >>confdefs.h <<_ACEOF
8467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8468 _ACEOF
8472 done
8474 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8475 then
8476 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8477 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
8478 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 #include <GL/gl.h>
8489 main ()
8491 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8493 return 0;
8495 _ACEOF
8496 rm -f conftest.$ac_objext
8497 if { (ac_try="$ac_compile"
8498 case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501 esac
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_compile") 2>conftest.er1
8504 ac_status=$?
8505 grep -v '^ *+' conftest.er1 >conftest.err
8506 rm -f conftest.er1
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } && {
8510 test -z "$ac_c_werror_flag" ||
8511 test ! -s conftest.err
8512 } && test -s conftest.$ac_objext; then
8513 wine_cv_opengl_header_version_OK="yes"
8514 else
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 wine_cv_opengl_header_version_OK="no"
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
8526 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
8528 if test "$wine_cv_opengl_header_version_OK" = "yes"
8529 then
8530 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8531 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
8532 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535 ac_check_lib_save_LIBS=$LIBS
8536 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8544 /* Override any GCC internal prototype to avoid an error.
8545 Use char because int might match the return type of a GCC
8546 builtin and then its argument prototype would still apply. */
8547 #ifdef __cplusplus
8548 extern "C"
8549 #endif
8550 char glXCreateContext ();
8552 main ()
8554 return glXCreateContext ();
8556 return 0;
8558 _ACEOF
8559 rm -f conftest.$ac_objext conftest$ac_exeext
8560 if { (ac_try="$ac_link"
8561 case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564 esac
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_link") 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest$ac_exeext &&
8576 $as_test_x conftest$ac_exeext; then
8577 ac_cv_lib_GL_glXCreateContext=yes
8578 else
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8582 ac_cv_lib_GL_glXCreateContext=no
8585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8586 conftest$ac_exeext conftest.$ac_ext
8587 LIBS=$ac_check_lib_save_LIBS
8589 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8590 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
8591 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8592 OPENGL_LIBS="-lGL"
8593 OPENGLFILES='$(OPENGLFILES)'
8595 cat >>confdefs.h <<\_ACEOF
8596 #define HAVE_OPENGL 1
8597 _ACEOF
8603 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8604 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
8605 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608 ac_check_lib_save_LIBS=$LIBS
8609 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8610 $LIBS"
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h. */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8618 /* Override any GCC internal prototype to avoid an error.
8619 Use char because int might match the return type of a GCC
8620 builtin and then its argument prototype would still apply. */
8621 #ifdef __cplusplus
8622 extern "C"
8623 #endif
8624 char gluLookAt ();
8626 main ()
8628 return gluLookAt ();
8630 return 0;
8632 _ACEOF
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8635 case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638 esac
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_link") 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } && {
8647 test -z "$ac_c_werror_flag" ||
8648 test ! -s conftest.err
8649 } && test -s conftest$ac_exeext &&
8650 $as_test_x conftest$ac_exeext; then
8651 ac_cv_lib_GLU_gluLookAt=yes
8652 else
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 ac_cv_lib_GLU_gluLookAt=no
8659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8660 conftest$ac_exeext conftest.$ac_ext
8661 LIBS=$ac_check_lib_save_LIBS
8663 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8664 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
8665 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8666 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8667 GLU32FILES='$(GLU32FILES)'
8672 else
8673 wine_cv_opengl_headers_found="no"
8676 NASLIBS=""
8679 for ac_header in audio/audiolib.h
8681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
8692 # Is the header compilable?
8693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8695 cat >conftest.$ac_ext <<_ACEOF
8696 /* confdefs.h. */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h. */
8701 $ac_includes_default
8702 #include <$ac_header>
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8706 case "(($ac_try" in
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8709 esac
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_compile") 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } && {
8718 test -z "$ac_c_werror_flag" ||
8719 test ! -s conftest.err
8720 } && test -s conftest.$ac_objext; then
8721 ac_header_compiler=yes
8722 else
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 ac_header_compiler=no
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8731 echo "${ECHO_T}$ac_header_compiler" >&6; }
8733 # Is the header present?
8734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 #include <$ac_header>
8743 _ACEOF
8744 if { (ac_try="$ac_cpp conftest.$ac_ext"
8745 case "(($ac_try" in
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8748 esac
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8751 ac_status=$?
8752 grep -v '^ *+' conftest.er1 >conftest.err
8753 rm -f conftest.er1
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } >/dev/null && {
8757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8758 test ! -s conftest.err
8759 }; then
8760 ac_header_preproc=yes
8761 else
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 ac_header_preproc=no
8768 rm -f conftest.err conftest.$ac_ext
8769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8770 echo "${ECHO_T}$ac_header_preproc" >&6; }
8772 # So? What about this header?
8773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8774 yes:no: )
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8779 ac_header_preproc=yes
8781 no:yes:* )
8782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8794 ( cat <<\_ASBOX
8795 ## ------------------------------------ ##
8796 ## Report this to wine-devel@winehq.org ##
8797 ## ------------------------------------ ##
8798 _ASBOX
8799 ) | sed "s/^/$as_me: WARNING: /" >&2
8801 esac
8802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807 eval "$as_ac_Header=\$ac_header_preproc"
8809 ac_res=`eval echo '${'$as_ac_Header'}'`
8810 { echo "$as_me:$LINENO: result: $ac_res" >&5
8811 echo "${ECHO_T}$ac_res" >&6; }
8814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8815 cat >>confdefs.h <<_ACEOF
8816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8817 _ACEOF
8819 for ac_header in audio/soundlib.h
8821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827 cat >conftest.$ac_ext <<_ACEOF
8828 /* confdefs.h. */
8829 _ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8833 #include <audio/audiolib.h>
8835 #include <$ac_header>
8836 _ACEOF
8837 rm -f conftest.$ac_objext
8838 if { (ac_try="$ac_compile"
8839 case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8842 esac
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_compile") 2>conftest.er1
8845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && {
8851 test -z "$ac_c_werror_flag" ||
8852 test ! -s conftest.err
8853 } && test -s conftest.$ac_objext; then
8854 eval "$as_ac_Header=yes"
8855 else
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8859 eval "$as_ac_Header=no"
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864 ac_res=`eval echo '${'$as_ac_Header'}'`
8865 { echo "$as_me:$LINENO: result: $ac_res" >&5
8866 echo "${ECHO_T}$ac_res" >&6; }
8867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8868 cat >>confdefs.h <<_ACEOF
8869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8870 _ACEOF
8874 done
8876 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8877 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
8878 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881 ac_check_lib_save_LIBS=$LIBS
8882 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8883 cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h. */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8890 /* Override any GCC internal prototype to avoid an error.
8891 Use char because int might match the return type of a GCC
8892 builtin and then its argument prototype would still apply. */
8893 #ifdef __cplusplus
8894 extern "C"
8895 #endif
8896 char AuCreateFlow ();
8898 main ()
8900 return AuCreateFlow ();
8902 return 0;
8904 _ACEOF
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (ac_try="$ac_link"
8907 case "(($ac_try" in
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8910 esac
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912 (eval "$ac_link") 2>conftest.er1
8913 ac_status=$?
8914 grep -v '^ *+' conftest.er1 >conftest.err
8915 rm -f conftest.er1
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } && {
8919 test -z "$ac_c_werror_flag" ||
8920 test ! -s conftest.err
8921 } && test -s conftest$ac_exeext &&
8922 $as_test_x conftest$ac_exeext; then
8923 ac_cv_lib_audio_AuCreateFlow=yes
8924 else
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 ac_cv_lib_audio_AuCreateFlow=no
8931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8932 conftest$ac_exeext conftest.$ac_ext
8933 LIBS=$ac_check_lib_save_LIBS
8935 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8936 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
8937 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8939 cat >>confdefs.h <<\_ACEOF
8940 #define HAVE_NAS 1
8941 _ACEOF
8943 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8948 done
8951 CPPFLAGS="$ac_save_CPPFLAGS"
8952 XFILES='$(XFILES)'
8953 else
8954 XLIB=""
8955 X_CFLAGS=""
8956 X_LIBS=""
8960 XML2LIBS=""
8962 XML2INCL=""
8964 XSLTLIBS=""
8966 XSLTINCL=""
8968 if test "$PKG_CONFIG" != "false"
8969 then
8970 ac_save_CPPFLAGS="$CPPFLAGS"
8971 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8972 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8973 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8975 for ac_header in libxml/parser.h
8977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 ac_res=`eval echo '${'$as_ac_Header'}'`
8985 { echo "$as_me:$LINENO: result: $ac_res" >&5
8986 echo "${ECHO_T}$ac_res" >&6; }
8987 else
8988 # Is the header compilable?
8989 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8991 cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h. */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8997 $ac_includes_default
8998 #include <$ac_header>
8999 _ACEOF
9000 rm -f conftest.$ac_objext
9001 if { (ac_try="$ac_compile"
9002 case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005 esac
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_compile") 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } && {
9014 test -z "$ac_c_werror_flag" ||
9015 test ! -s conftest.err
9016 } && test -s conftest.$ac_objext; then
9017 ac_header_compiler=yes
9018 else
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_header_compiler=no
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9027 echo "${ECHO_T}$ac_header_compiler" >&6; }
9029 # Is the header present?
9030 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9032 cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h. */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9038 #include <$ac_header>
9039 _ACEOF
9040 if { (ac_try="$ac_cpp conftest.$ac_ext"
9041 case "(($ac_try" in
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9044 esac
9045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } >/dev/null && {
9053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9054 test ! -s conftest.err
9055 }; then
9056 ac_header_preproc=yes
9057 else
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9061 ac_header_preproc=no
9064 rm -f conftest.err conftest.$ac_ext
9065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9066 echo "${ECHO_T}$ac_header_preproc" >&6; }
9068 # So? What about this header?
9069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9070 yes:no: )
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9075 ac_header_preproc=yes
9077 no:yes:* )
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9090 ( cat <<\_ASBOX
9091 ## ------------------------------------ ##
9092 ## Report this to wine-devel@winehq.org ##
9093 ## ------------------------------------ ##
9094 _ASBOX
9095 ) | sed "s/^/$as_me: WARNING: /" >&2
9097 esac
9098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103 eval "$as_ac_Header=\$ac_header_preproc"
9105 ac_res=`eval echo '${'$as_ac_Header'}'`
9106 { echo "$as_me:$LINENO: result: $ac_res" >&5
9107 echo "${ECHO_T}$ac_res" >&6; }
9110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9111 cat >>confdefs.h <<_ACEOF
9112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9113 _ACEOF
9114 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
9115 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
9116 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119 ac_check_lib_save_LIBS=$LIBS
9120 LIBS="-lxml2 $ac_xml_libs $LIBS"
9121 cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h. */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9128 /* Override any GCC internal prototype to avoid an error.
9129 Use char because int might match the return type of a GCC
9130 builtin and then its argument prototype would still apply. */
9131 #ifdef __cplusplus
9132 extern "C"
9133 #endif
9134 char xmlParseMemory ();
9136 main ()
9138 return xmlParseMemory ();
9140 return 0;
9142 _ACEOF
9143 rm -f conftest.$ac_objext conftest$ac_exeext
9144 if { (ac_try="$ac_link"
9145 case "(($ac_try" in
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9148 esac
9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_link") 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest$ac_exeext &&
9160 $as_test_x conftest$ac_exeext; then
9161 ac_cv_lib_xml2_xmlParseMemory=yes
9162 else
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 ac_cv_lib_xml2_xmlParseMemory=no
9169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9170 conftest$ac_exeext conftest.$ac_ext
9171 LIBS=$ac_check_lib_save_LIBS
9173 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9174 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9175 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
9177 cat >>confdefs.h <<\_ACEOF
9178 #define HAVE_LIBXML2 1
9179 _ACEOF
9181 XML2LIBS="$ac_xml_libs"
9182 XML2INCL="$ac_xml_cflags"
9185 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
9186 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
9187 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190 ac_check_lib_save_LIBS=$LIBS
9191 LIBS="-lxml2 $ac_xml_libs $LIBS"
9192 cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h. */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9199 /* Override any GCC internal prototype to avoid an error.
9200 Use char because int might match the return type of a GCC
9201 builtin and then its argument prototype would still apply. */
9202 #ifdef __cplusplus
9203 extern "C"
9204 #endif
9205 char xmlReadMemory ();
9207 main ()
9209 return xmlReadMemory ();
9211 return 0;
9213 _ACEOF
9214 rm -f conftest.$ac_objext conftest$ac_exeext
9215 if { (ac_try="$ac_link"
9216 case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219 esac
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_link") 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest$ac_exeext &&
9231 $as_test_x conftest$ac_exeext; then
9232 ac_cv_lib_xml2_xmlReadMemory=yes
9233 else
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ac_cv_lib_xml2_xmlReadMemory=no
9240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9241 conftest$ac_exeext conftest.$ac_ext
9242 LIBS=$ac_check_lib_save_LIBS
9244 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9245 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9246 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
9248 cat >>confdefs.h <<\_ACEOF
9249 #define HAVE_XMLREADMEMORY 1
9250 _ACEOF
9254 { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
9255 echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
9256 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259 ac_check_lib_save_LIBS=$LIBS
9260 LIBS="-lxml2 $ac_xml_libs $LIBS"
9261 cat >conftest.$ac_ext <<_ACEOF
9262 /* confdefs.h. */
9263 _ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9268 /* Override any GCC internal prototype to avoid an error.
9269 Use char because int might match the return type of a GCC
9270 builtin and then its argument prototype would still apply. */
9271 #ifdef __cplusplus
9272 extern "C"
9273 #endif
9274 char xmlNewDocPI ();
9276 main ()
9278 return xmlNewDocPI ();
9280 return 0;
9282 _ACEOF
9283 rm -f conftest.$ac_objext conftest$ac_exeext
9284 if { (ac_try="$ac_link"
9285 case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9288 esac
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_link") 2>conftest.er1
9291 ac_status=$?
9292 grep -v '^ *+' conftest.er1 >conftest.err
9293 rm -f conftest.er1
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } && {
9297 test -z "$ac_c_werror_flag" ||
9298 test ! -s conftest.err
9299 } && test -s conftest$ac_exeext &&
9300 $as_test_x conftest$ac_exeext; then
9301 ac_cv_lib_xml2_xmlNewDocPI=yes
9302 else
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9306 ac_cv_lib_xml2_xmlNewDocPI=no
9309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9313 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9314 echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9315 if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_XMLNEWDOCPI 1
9319 _ACEOF
9326 done
9328 CPPFLAGS="$ac_save_CPPFLAGS"
9329 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9330 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9331 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9334 for ac_header in libxslt/pattern.h libxslt/transform.h
9336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 #ifdef HAVE_LIBXSLT_PATTERN_H
9349 # include <libxslt/pattern.h>
9350 #endif
9352 #include <$ac_header>
9353 _ACEOF
9354 rm -f conftest.$ac_objext
9355 if { (ac_try="$ac_compile"
9356 case "(($ac_try" in
9357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9358 *) ac_try_echo=$ac_try;;
9359 esac
9360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9361 (eval "$ac_compile") 2>conftest.er1
9362 ac_status=$?
9363 grep -v '^ *+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } && {
9368 test -z "$ac_c_werror_flag" ||
9369 test ! -s conftest.err
9370 } && test -s conftest.$ac_objext; then
9371 eval "$as_ac_Header=yes"
9372 else
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9376 eval "$as_ac_Header=no"
9379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9381 ac_res=`eval echo '${'$as_ac_Header'}'`
9382 { echo "$as_me:$LINENO: result: $ac_res" >&5
9383 echo "${ECHO_T}$ac_res" >&6; }
9384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9387 _ACEOF
9388 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
9389 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
9390 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393 ac_check_lib_save_LIBS=$LIBS
9394 LIBS="-lxslt $ac_xslt_libs $LIBS"
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h. */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9402 /* Override any GCC internal prototype to avoid an error.
9403 Use char because int might match the return type of a GCC
9404 builtin and then its argument prototype would still apply. */
9405 #ifdef __cplusplus
9406 extern "C"
9407 #endif
9408 char xsltCompilePattern ();
9410 main ()
9412 return xsltCompilePattern ();
9414 return 0;
9416 _ACEOF
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (ac_try="$ac_link"
9419 case "(($ac_try" in
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9422 esac
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_link") 2>conftest.er1
9425 ac_status=$?
9426 grep -v '^ *+' conftest.er1 >conftest.err
9427 rm -f conftest.er1
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest$ac_exeext &&
9434 $as_test_x conftest$ac_exeext; then
9435 ac_cv_lib_xslt_xsltCompilePattern=yes
9436 else
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 ac_cv_lib_xslt_xsltCompilePattern=no
9443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9444 conftest$ac_exeext conftest.$ac_ext
9445 LIBS=$ac_check_lib_save_LIBS
9447 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
9448 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
9449 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
9451 cat >>confdefs.h <<\_ACEOF
9452 #define HAVE_LIBXSLT 1
9453 _ACEOF
9455 XSLTLIBS="$ac_xslt_libs"
9456 XSLTINCL="$ac_xslt_cflags"
9462 done
9464 CPPFLAGS="$ac_save_CPPFLAGS"
9467 HALINCL=""
9469 if test "$PKG_CONFIG" != "false"
9470 then
9471 ac_save_CPPFLAGS="$CPPFLAGS"
9472 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9473 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9474 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9477 for ac_header in dbus/dbus.h hal/libhal.h
9479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 ac_res=`eval echo '${'$as_ac_Header'}'`
9487 { echo "$as_me:$LINENO: result: $ac_res" >&5
9488 echo "${ECHO_T}$ac_res" >&6; }
9489 else
9490 # Is the header compilable?
9491 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9493 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h. */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9499 $ac_includes_default
9500 #include <$ac_header>
9501 _ACEOF
9502 rm -f conftest.$ac_objext
9503 if { (ac_try="$ac_compile"
9504 case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507 esac
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_compile") 2>conftest.er1
9510 ac_status=$?
9511 grep -v '^ *+' conftest.er1 >conftest.err
9512 rm -f conftest.er1
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } && {
9516 test -z "$ac_c_werror_flag" ||
9517 test ! -s conftest.err
9518 } && test -s conftest.$ac_objext; then
9519 ac_header_compiler=yes
9520 else
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9524 ac_header_compiler=no
9527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9529 echo "${ECHO_T}$ac_header_compiler" >&6; }
9531 # Is the header present?
9532 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9534 cat >conftest.$ac_ext <<_ACEOF
9535 /* confdefs.h. */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 #include <$ac_header>
9541 _ACEOF
9542 if { (ac_try="$ac_cpp conftest.$ac_ext"
9543 case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546 esac
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } >/dev/null && {
9555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9556 test ! -s conftest.err
9557 }; then
9558 ac_header_preproc=yes
9559 else
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 ac_header_preproc=no
9566 rm -f conftest.err conftest.$ac_ext
9567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9568 echo "${ECHO_T}$ac_header_preproc" >&6; }
9570 # So? What about this header?
9571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9572 yes:no: )
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9577 ac_header_preproc=yes
9579 no:yes:* )
9580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9592 ( cat <<\_ASBOX
9593 ## ------------------------------------ ##
9594 ## Report this to wine-devel@winehq.org ##
9595 ## ------------------------------------ ##
9596 _ASBOX
9597 ) | sed "s/^/$as_me: WARNING: /" >&2
9599 esac
9600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605 eval "$as_ac_Header=\$ac_header_preproc"
9607 ac_res=`eval echo '${'$as_ac_Header'}'`
9608 { echo "$as_me:$LINENO: result: $ac_res" >&5
9609 echo "${ECHO_T}$ac_res" >&6; }
9612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9613 cat >>confdefs.h <<_ACEOF
9614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9615 _ACEOF
9619 done
9621 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9622 then
9623 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
9624 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
9625 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628 ac_check_lib_save_LIBS=$LIBS
9629 LIBS="-lhal $LIBS"
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h. */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9637 /* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
9640 #ifdef __cplusplus
9641 extern "C"
9642 #endif
9643 char libhal_ctx_new ();
9645 main ()
9647 return libhal_ctx_new ();
9649 return 0;
9651 _ACEOF
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (ac_try="$ac_link"
9654 case "(($ac_try" in
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9657 esac
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_link") 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest$ac_exeext &&
9669 $as_test_x conftest$ac_exeext; then
9670 ac_cv_lib_hal_libhal_ctx_new=yes
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 ac_cv_lib_hal_libhal_ctx_new=no
9678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9679 conftest$ac_exeext conftest.$ac_ext
9680 LIBS=$ac_check_lib_save_LIBS
9682 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
9683 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
9684 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
9685 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
9686 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
9687 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690 ac_check_lib_save_LIBS=$LIBS
9691 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9692 cat >conftest.$ac_ext <<_ACEOF
9693 /* confdefs.h. */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9699 /* Override any GCC internal prototype to avoid an error.
9700 Use char because int might match the return type of a GCC
9701 builtin and then its argument prototype would still apply. */
9702 #ifdef __cplusplus
9703 extern "C"
9704 #endif
9705 char dbus_connection_close ();
9707 main ()
9709 return dbus_connection_close ();
9711 return 0;
9713 _ACEOF
9714 rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (ac_try="$ac_link"
9716 case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9719 esac
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_link") 2>conftest.er1
9722 ac_status=$?
9723 grep -v '^ *+' conftest.er1 >conftest.err
9724 rm -f conftest.er1
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } && {
9728 test -z "$ac_c_werror_flag" ||
9729 test ! -s conftest.err
9730 } && test -s conftest$ac_exeext &&
9731 $as_test_x conftest$ac_exeext; then
9732 ac_cv_lib_dbus_1_dbus_connection_close=yes
9733 else
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9737 ac_cv_lib_dbus_1_dbus_connection_close=no
9740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9741 conftest$ac_exeext conftest.$ac_ext
9742 LIBS=$ac_check_lib_save_LIBS
9744 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9745 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9746 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
9748 cat >>confdefs.h <<\_ACEOF
9749 #define HAVE_LIBHAL 1
9750 _ACEOF
9752 HALINCL="$ac_hal_cflags"
9758 CPPFLAGS="$ac_save_CPPFLAGS"
9761 CURSESLIBS=""
9762 if test "$ac_cv_header_ncurses_h" = "yes"
9763 then
9764 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9765 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
9766 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769 ac_check_lib_save_LIBS=$LIBS
9770 LIBS="-lncurses $LIBS"
9771 cat >conftest.$ac_ext <<_ACEOF
9772 /* confdefs.h. */
9773 _ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9778 /* Override any GCC internal prototype to avoid an error.
9779 Use char because int might match the return type of a GCC
9780 builtin and then its argument prototype would still apply. */
9781 #ifdef __cplusplus
9782 extern "C"
9783 #endif
9784 char waddch ();
9786 main ()
9788 return waddch ();
9790 return 0;
9792 _ACEOF
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (ac_try="$ac_link"
9795 case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_link") 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && {
9807 test -z "$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9809 } && test -s conftest$ac_exeext &&
9810 $as_test_x conftest$ac_exeext; then
9811 ac_cv_lib_ncurses_waddch=yes
9812 else
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_cv_lib_ncurses_waddch=no
9819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9823 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9824 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
9825 if test $ac_cv_lib_ncurses_waddch = yes; then
9826 CURSESLIBS="-lncurses"
9829 elif test "$ac_cv_header_curses_h" = "yes"
9830 then
9831 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9832 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
9833 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836 ac_check_lib_save_LIBS=$LIBS
9837 LIBS="-lcurses $LIBS"
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h. */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9845 /* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9848 #ifdef __cplusplus
9849 extern "C"
9850 #endif
9851 char waddch ();
9853 main ()
9855 return waddch ();
9857 return 0;
9859 _ACEOF
9860 rm -f conftest.$ac_objext conftest$ac_exeext
9861 if { (ac_try="$ac_link"
9862 case "(($ac_try" in
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_link") 2>conftest.er1
9868 ac_status=$?
9869 grep -v '^ *+' conftest.er1 >conftest.err
9870 rm -f conftest.er1
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } && {
9874 test -z "$ac_c_werror_flag" ||
9875 test ! -s conftest.err
9876 } && test -s conftest$ac_exeext &&
9877 $as_test_x conftest$ac_exeext; then
9878 ac_cv_lib_curses_waddch=yes
9879 else
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_cv_lib_curses_waddch=no
9886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9891 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
9892 if test $ac_cv_lib_curses_waddch = yes; then
9893 CURSESLIBS="-lcurses"
9897 ac_save_LIBS="$LIBS"
9898 LIBS="$LIBS $CURSESLIBS"
9900 for ac_func in mousemask
9902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9916 #define $ac_func innocuous_$ac_func
9918 /* System header to define __stub macros and hopefully few prototypes,
9919 which can conflict with char $ac_func (); below.
9920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9921 <limits.h> exists even on freestanding compilers. */
9923 #ifdef __STDC__
9924 # include <limits.h>
9925 #else
9926 # include <assert.h>
9927 #endif
9929 #undef $ac_func
9931 /* Override any GCC internal prototype to avoid an error.
9932 Use char because int might match the return type of a GCC
9933 builtin and then its argument prototype would still apply. */
9934 #ifdef __cplusplus
9935 extern "C"
9936 #endif
9937 char $ac_func ();
9938 /* The GNU C library defines this for functions which it implements
9939 to always fail with ENOSYS. Some functions are actually named
9940 something starting with __ and the normal name is an alias. */
9941 #if defined __stub_$ac_func || defined __stub___$ac_func
9942 choke me
9943 #endif
9946 main ()
9948 return $ac_func ();
9950 return 0;
9952 _ACEOF
9953 rm -f conftest.$ac_objext conftest$ac_exeext
9954 if { (ac_try="$ac_link"
9955 case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9958 esac
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_link") 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } && {
9967 test -z "$ac_c_werror_flag" ||
9968 test ! -s conftest.err
9969 } && test -s conftest$ac_exeext &&
9970 $as_test_x conftest$ac_exeext; then
9971 eval "$as_ac_var=yes"
9972 else
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9976 eval "$as_ac_var=no"
9979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9980 conftest$ac_exeext conftest.$ac_ext
9982 ac_res=`eval echo '${'$as_ac_var'}'`
9983 { echo "$as_me:$LINENO: result: $ac_res" >&5
9984 echo "${ECHO_T}$ac_res" >&6; }
9985 if test `eval echo '${'$as_ac_var'}'` = yes; then
9986 cat >>confdefs.h <<_ACEOF
9987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9988 _ACEOF
9991 done
9993 LIBS="$ac_save_LIBS"
9995 # Extract the first word of "sane-config", so it can be a program name with args.
9996 set dummy sane-config; ac_word=$2
9997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9999 if test "${ac_cv_prog_sane_devel+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002 if test -n "$sane_devel"; then
10003 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10004 else
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10012 ac_cv_prog_sane_devel="sane-config"
10013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 break 2
10016 done
10017 done
10018 IFS=$as_save_IFS
10020 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10023 sane_devel=$ac_cv_prog_sane_devel
10024 if test -n "$sane_devel"; then
10025 { echo "$as_me:$LINENO: result: $sane_devel" >&5
10026 echo "${ECHO_T}$sane_devel" >&6; }
10027 else
10028 { echo "$as_me:$LINENO: result: no" >&5
10029 echo "${ECHO_T}no" >&6; }
10033 SANELIBS=""
10035 SANEINCL=""
10037 if test "$sane_devel" != "no"
10038 then
10039 SANELIBS="`$sane_devel --libs`"
10040 SANEINCL="`$sane_devel --cflags`"
10041 ac_save_CPPFLAGS="$CPPFLAGS"
10042 ac_save_LIBS="$LIBS"
10043 CPPFLAGS="$CPPFLAGS $SANEINCL"
10044 LIBS="$LIBS $SANELIBS"
10045 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10046 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10047 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10048 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10052 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10053 else
10054 # Is the header compilable?
10055 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10056 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
10057 cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h. */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 $ac_includes_default
10064 #include <sane/sane.h>
10065 _ACEOF
10066 rm -f conftest.$ac_objext
10067 if { (ac_try="$ac_compile"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_compile") 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest.$ac_objext; then
10083 ac_header_compiler=yes
10084 else
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_header_compiler=no
10091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10093 echo "${ECHO_T}$ac_header_compiler" >&6; }
10095 # Is the header present?
10096 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10097 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 #include <sane/sane.h>
10105 _ACEOF
10106 if { (ac_try="$ac_cpp conftest.$ac_ext"
10107 case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } >/dev/null && {
10119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 }; then
10122 ac_header_preproc=yes
10123 else
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10127 ac_header_preproc=no
10130 rm -f conftest.err conftest.$ac_ext
10131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10132 echo "${ECHO_T}$ac_header_preproc" >&6; }
10134 # So? What about this header?
10135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10136 yes:no: )
10137 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10138 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10139 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10140 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10141 ac_header_preproc=yes
10143 no:yes:* )
10144 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10145 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10146 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10147 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10149 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10150 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10151 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10152 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10153 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10155 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10156 ( cat <<\_ASBOX
10157 ## ------------------------------------ ##
10158 ## Report this to wine-devel@winehq.org ##
10159 ## ------------------------------------ ##
10160 _ASBOX
10161 ) | sed "s/^/$as_me: WARNING: /" >&2
10163 esac
10164 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10165 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10166 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 ac_cv_header_sane_sane_h=$ac_header_preproc
10171 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10172 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10175 if test $ac_cv_header_sane_sane_h = yes; then
10176 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10177 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
10178 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181 ac_check_lib_save_LIBS=$LIBS
10182 LIBS="-lsane $LIBS"
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10190 /* Override any GCC internal prototype to avoid an error.
10191 Use char because int might match the return type of a GCC
10192 builtin and then its argument prototype would still apply. */
10193 #ifdef __cplusplus
10194 extern "C"
10195 #endif
10196 char sane_open ();
10198 main ()
10200 return sane_open ();
10202 return 0;
10204 _ACEOF
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>conftest.er1
10213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest$ac_exeext &&
10222 $as_test_x conftest$ac_exeext; then
10223 ac_cv_lib_sane_sane_open=yes
10224 else
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 ac_cv_lib_sane_sane_open=no
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LIBS=$ac_check_lib_save_LIBS
10235 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10236 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
10237 if test $ac_cv_lib_sane_sane_open = yes; then
10239 cat >>confdefs.h <<\_ACEOF
10240 #define HAVE_SANE 1
10241 _ACEOF
10243 else
10244 SANELIBS=""
10245 SANEINCL=""
10248 else
10249 SANELIBS=""
10250 SANEINCL=""
10254 LIBS="$ac_save_LIBS"
10255 CPPFLAGS="$ac_save_CPPFLAGS"
10258 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10259 set dummy gphoto2-config; ac_word=$2
10260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10262 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265 if test -n "$gphoto2_devel"; then
10266 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10267 else
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10275 ac_cv_prog_gphoto2_devel="gphoto2-config"
10276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10279 done
10280 done
10281 IFS=$as_save_IFS
10283 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10286 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10287 if test -n "$gphoto2_devel"; then
10288 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
10289 echo "${ECHO_T}$gphoto2_devel" >&6; }
10290 else
10291 { echo "$as_me:$LINENO: result: no" >&5
10292 echo "${ECHO_T}no" >&6; }
10296 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10297 set dummy gphoto2-port-config; ac_word=$2
10298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10300 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303 if test -n "$gphoto2port_devel"; then
10304 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10305 else
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10313 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10317 done
10318 done
10319 IFS=$as_save_IFS
10321 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10324 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10325 if test -n "$gphoto2port_devel"; then
10326 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
10327 echo "${ECHO_T}$gphoto2port_devel" >&6; }
10328 else
10329 { echo "$as_me:$LINENO: result: no" >&5
10330 echo "${ECHO_T}no" >&6; }
10334 GPHOTO2LIBS=""
10336 GPHOTO2INCL=""
10338 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10339 then
10340 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10341 GPHOTO2LIBS=""
10342 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10344 case "$i" in
10345 -L/usr/lib|-L/usr/lib64) ;;
10346 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
10347 esac
10348 done
10349 ac_save_CPPFLAGS="$CPPFLAGS"
10350 ac_save_LIBS="$LIBS"
10351 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
10352 LIBS="$LIBS $GPHOTO2LIBS"
10353 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10354 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10355 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10356 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10360 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10361 else
10362 # Is the header compilable?
10363 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
10364 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h. */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 $ac_includes_default
10372 #include <gphoto2-camera.h>
10373 _ACEOF
10374 rm -f conftest.$ac_objext
10375 if { (ac_try="$ac_compile"
10376 case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10379 esac
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_compile") 2>conftest.er1
10382 ac_status=$?
10383 grep -v '^ *+' conftest.er1 >conftest.err
10384 rm -f conftest.er1
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && {
10388 test -z "$ac_c_werror_flag" ||
10389 test ! -s conftest.err
10390 } && test -s conftest.$ac_objext; then
10391 ac_header_compiler=yes
10392 else
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10396 ac_header_compiler=no
10399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10401 echo "${ECHO_T}$ac_header_compiler" >&6; }
10403 # Is the header present?
10404 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
10405 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
10406 cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h. */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 #include <gphoto2-camera.h>
10413 _ACEOF
10414 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
10421 ac_status=$?
10422 grep -v '^ *+' conftest.er1 >conftest.err
10423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } >/dev/null && {
10427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10428 test ! -s conftest.err
10429 }; then
10430 ac_header_preproc=yes
10431 else
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10435 ac_header_preproc=no
10438 rm -f conftest.err conftest.$ac_ext
10439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10440 echo "${ECHO_T}$ac_header_preproc" >&6; }
10442 # So? What about this header?
10443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10444 yes:no: )
10445 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
10446 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10447 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
10448 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
10449 ac_header_preproc=yes
10451 no:yes:* )
10452 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
10453 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
10454 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
10455 echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
10457 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
10459 echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
10460 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
10461 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
10462 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
10463 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
10464 ( cat <<\_ASBOX
10465 ## ------------------------------------ ##
10466 ## Report this to wine-devel@winehq.org ##
10467 ## ------------------------------------ ##
10468 _ASBOX
10469 ) | sed "s/^/$as_me: WARNING: /" >&2
10471 esac
10472 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10473 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10474 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 else
10477 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
10479 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10480 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10483 if test $ac_cv_header_gphoto2_camera_h = yes; then
10484 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
10485 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
10486 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489 ac_check_lib_save_LIBS=$LIBS
10490 LIBS="-lgphoto2 $LIBS"
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h. */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10498 /* Override any GCC internal prototype to avoid an error.
10499 Use char because int might match the return type of a GCC
10500 builtin and then its argument prototype would still apply. */
10501 #ifdef __cplusplus
10502 extern "C"
10503 #endif
10504 char gp_camera_new ();
10506 main ()
10508 return gp_camera_new ();
10510 return 0;
10512 _ACEOF
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518 esac
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest$ac_exeext &&
10530 $as_test_x conftest$ac_exeext; then
10531 ac_cv_lib_gphoto2_gp_camera_new=yes
10532 else
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 ac_cv_lib_gphoto2_gp_camera_new=no
10539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10540 conftest$ac_exeext conftest.$ac_ext
10541 LIBS=$ac_check_lib_save_LIBS
10543 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10544 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10545 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
10547 cat >>confdefs.h <<\_ACEOF
10548 #define HAVE_GPHOTO2 1
10549 _ACEOF
10551 else
10552 GPHOTO2LIBS=""
10553 GPHOTO2INCL=""
10556 else
10557 GPHOTO2LIBS=""
10558 GPHOTO2INCL=""
10562 LIBS="$ac_save_LIBS"
10563 CPPFLAGS="$ac_save_CPPFLAGS"
10566 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10567 then
10568 saved_libs="$LIBS"
10569 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
10571 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
10572 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
10573 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
10574 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
10575 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <unicode/ubidi.h>
10584 main ()
10586 ubidi_open()
10588 return 0;
10590 _ACEOF
10591 rm -f conftest.$ac_objext conftest$ac_exeext
10592 if { (ac_try="$ac_link"
10593 case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_link") 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest$ac_exeext &&
10608 $as_test_x conftest$ac_exeext; then
10610 cat >>confdefs.h <<\_ACEOF
10611 #define HAVE_ICU 1
10612 _ACEOF
10614 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10616 { echo "$as_me:$LINENO: result: yes" >&5
10617 echo "${ECHO_T}yes" >&6; }
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 { echo "$as_me:$LINENO: result: no" >&5
10623 echo "${ECHO_T}no" >&6; }
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10628 done
10629 LIBS="$saved_libs"
10632 RESOLVLIBS=""
10634 if test "$ac_cv_header_resolv_h" = "yes"
10635 then
10636 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
10637 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
10638 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-lresolv $LIBS"
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10650 /* Override any GCC internal prototype to avoid an error.
10651 Use char because int might match the return type of a GCC
10652 builtin and then its argument prototype would still apply. */
10653 #ifdef __cplusplus
10654 extern "C"
10655 #endif
10656 char res_query ();
10658 main ()
10660 return res_query ();
10662 return 0;
10664 _ACEOF
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (ac_try="$ac_link"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670 esac
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_link") 2>conftest.er1
10673 ac_status=$?
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } && {
10679 test -z "$ac_c_werror_flag" ||
10680 test ! -s conftest.err
10681 } && test -s conftest$ac_exeext &&
10682 $as_test_x conftest$ac_exeext; then
10683 ac_cv_lib_resolv_res_query=yes
10684 else
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 ac_cv_lib_resolv_res_query=no
10691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10695 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
10696 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
10697 if test $ac_cv_lib_resolv_res_query = yes; then
10699 cat >>confdefs.h <<\_ACEOF
10700 #define HAVE_RESOLV 1
10701 _ACEOF
10703 RESOLVLIBS="-lresolv"
10708 LCMSLIBS=""
10710 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10711 then
10712 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
10713 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
10714 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717 ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-llcms $LIBS"
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10729 #ifdef __cplusplus
10730 extern "C"
10731 #endif
10732 char cmsOpenProfileFromFile ();
10734 main ()
10736 return cmsOpenProfileFromFile ();
10738 return 0;
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746 esac
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10749 ac_status=$?
10750 grep -v '^ *+' conftest.er1 >conftest.err
10751 rm -f conftest.er1
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } && {
10755 test -z "$ac_c_werror_flag" ||
10756 test ! -s conftest.err
10757 } && test -s conftest$ac_exeext &&
10758 $as_test_x conftest$ac_exeext; then
10759 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10760 else
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10771 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10772 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10773 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
10775 cat >>confdefs.h <<\_ACEOF
10776 #define HAVE_LCMS 1
10777 _ACEOF
10779 LCMSLIBS="-llcms"
10784 LDAPLIBS=""
10786 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
10787 then
10788 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
10789 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
10790 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793 ac_check_lib_save_LIBS=$LIBS
10794 LIBS="-lldap_r $LIBPTHREAD $LIBS"
10795 cat >conftest.$ac_ext <<_ACEOF
10796 /* confdefs.h. */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 char ldap_initialize ();
10810 main ()
10812 return ldap_initialize ();
10814 return 0;
10816 _ACEOF
10817 rm -f conftest.$ac_objext conftest$ac_exeext
10818 if { (ac_try="$ac_link"
10819 case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10822 esac
10823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824 (eval "$ac_link") 2>conftest.er1
10825 ac_status=$?
10826 grep -v '^ *+' conftest.er1 >conftest.err
10827 rm -f conftest.er1
10828 cat conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } && {
10831 test -z "$ac_c_werror_flag" ||
10832 test ! -s conftest.err
10833 } && test -s conftest$ac_exeext &&
10834 $as_test_x conftest$ac_exeext; then
10835 ac_cv_lib_ldap_r_ldap_initialize=yes
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 ac_cv_lib_ldap_r_ldap_initialize=no
10843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LIBS=$ac_check_lib_save_LIBS
10847 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
10848 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
10849 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
10850 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
10851 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
10852 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855 ac_check_lib_save_LIBS=$LIBS
10856 LIBS="-llber $LIBPTHREAD $LIBS"
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10864 /* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10867 #ifdef __cplusplus
10868 extern "C"
10869 #endif
10870 char ber_init ();
10872 main ()
10874 return ber_init ();
10876 return 0;
10878 _ACEOF
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (ac_try="$ac_link"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_link") 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } && {
10893 test -z "$ac_c_werror_flag" ||
10894 test ! -s conftest.err
10895 } && test -s conftest$ac_exeext &&
10896 $as_test_x conftest$ac_exeext; then
10897 ac_cv_lib_lber_ber_init=yes
10898 else
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10902 ac_cv_lib_lber_ber_init=no
10905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10906 conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_check_lib_save_LIBS
10909 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
10910 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
10911 if test $ac_cv_lib_lber_ber_init = yes; then
10913 cat >>confdefs.h <<\_ACEOF
10914 #define HAVE_LDAP 1
10915 _ACEOF
10917 LDAPLIBS="-lldap_r -llber"
10922 ac_wine_check_funcs_save_LIBS="$LIBS"
10923 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
10928 for ac_func in \
10929 ldap_count_references \
10930 ldap_first_reference \
10931 ldap_next_reference \
10932 ldap_parse_reference
10934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940 cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h. */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10948 #define $ac_func innocuous_$ac_func
10950 /* System header to define __stub macros and hopefully few prototypes,
10951 which can conflict with char $ac_func (); below.
10952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10953 <limits.h> exists even on freestanding compilers. */
10955 #ifdef __STDC__
10956 # include <limits.h>
10957 #else
10958 # include <assert.h>
10959 #endif
10961 #undef $ac_func
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10966 #ifdef __cplusplus
10967 extern "C"
10968 #endif
10969 char $ac_func ();
10970 /* The GNU C library defines this for functions which it implements
10971 to always fail with ENOSYS. Some functions are actually named
10972 something starting with __ and the normal name is an alias. */
10973 #if defined __stub_$ac_func || defined __stub___$ac_func
10974 choke me
10975 #endif
10978 main ()
10980 return $ac_func ();
10982 return 0;
10984 _ACEOF
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (ac_try="$ac_link"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_link") 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } && {
10999 test -z "$ac_c_werror_flag" ||
11000 test ! -s conftest.err
11001 } && test -s conftest$ac_exeext &&
11002 $as_test_x conftest$ac_exeext; then
11003 eval "$as_ac_var=yes"
11004 else
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11008 eval "$as_ac_var=no"
11011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11012 conftest$ac_exeext conftest.$ac_ext
11014 ac_res=`eval echo '${'$as_ac_var'}'`
11015 { echo "$as_me:$LINENO: result: $ac_res" >&5
11016 echo "${ECHO_T}$ac_res" >&6; }
11017 if test `eval echo '${'$as_ac_var'}'` = yes; then
11018 cat >>confdefs.h <<_ACEOF
11019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11020 _ACEOF
11023 done
11025 LIBS="$ac_wine_check_funcs_save_LIBS"
11028 FREETYPELIBS=""
11030 FREETYPEINCL=""
11032 # Extract the first word of "freetype-config", so it can be a program name with args.
11033 set dummy freetype-config; ac_word=$2
11034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11036 if test "${ac_cv_prog_ft_devel+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039 if test -n "$ft_devel"; then
11040 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
11041 else
11042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11049 ac_cv_prog_ft_devel="freetype-config"
11050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 break 2
11053 done
11054 done
11055 IFS=$as_save_IFS
11057 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
11060 ft_devel=$ac_cv_prog_ft_devel
11061 if test -n "$ft_devel"; then
11062 { echo "$as_me:$LINENO: result: $ft_devel" >&5
11063 echo "${ECHO_T}$ft_devel" >&6; }
11064 else
11065 { echo "$as_me:$LINENO: result: no" >&5
11066 echo "${ECHO_T}no" >&6; }
11070 if test "$ft_devel" = "no"
11071 then
11072 # Extract the first word of "freetype2-config", so it can be a program name with args.
11073 set dummy freetype2-config; ac_word=$2
11074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11076 if test "${ac_cv_prog_ft_devel2+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 if test -n "$ft_devel2"; then
11080 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
11081 else
11082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11085 IFS=$as_save_IFS
11086 test -z "$as_dir" && as_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
11088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089 ac_cv_prog_ft_devel2="freetype2-config"
11090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11091 break 2
11093 done
11094 done
11095 IFS=$as_save_IFS
11097 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
11100 ft_devel2=$ac_cv_prog_ft_devel2
11101 if test -n "$ft_devel2"; then
11102 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
11103 echo "${ECHO_T}$ft_devel2" >&6; }
11104 else
11105 { echo "$as_me:$LINENO: result: no" >&5
11106 echo "${ECHO_T}no" >&6; }
11110 if test "$ft_devel2" = "freetype2-config"
11111 then
11112 ft_devel=$ft_devel2
11116 if test "$ft_devel" = "no"
11117 then
11118 wine_cv_msg_freetype=yes
11119 else
11120 FREETYPELIBS=`$ft_devel --libs`
11121 FREETYPEINCL=`$ft_devel --cflags`
11122 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
11123 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
11124 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127 ac_check_lib_save_LIBS=$LIBS
11128 LIBS="-lfreetype $FREETYPELIBS $LIBS"
11129 cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h. */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11139 #ifdef __cplusplus
11140 extern "C"
11141 #endif
11142 char FT_Init_FreeType ();
11144 main ()
11146 return FT_Init_FreeType ();
11148 return 0;
11150 _ACEOF
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (ac_try="$ac_link"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_link") 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } && {
11165 test -z "$ac_c_werror_flag" ||
11166 test ! -s conftest.err
11167 } && test -s conftest$ac_exeext &&
11168 $as_test_x conftest$ac_exeext; then
11169 ac_cv_lib_freetype_FT_Init_FreeType=yes
11170 else
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ac_cv_lib_freetype_FT_Init_FreeType=no
11177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11178 conftest$ac_exeext conftest.$ac_ext
11179 LIBS=$ac_check_lib_save_LIBS
11181 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
11182 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
11183 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
11184 ft_lib=yes
11185 else
11186 ft_lib=no
11189 if test "$ft_lib" = "no"
11190 then
11191 wine_cv_msg_freetype=yes
11192 FREETYPELIBS=""
11193 FREETYPEINCL=""
11194 else
11195 ac_save_CPPFLAGS="$CPPFLAGS"
11196 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
11208 for ac_header in ft2build.h \
11209 freetype/freetype.h \
11210 freetype/ftglyph.h \
11211 freetype/tttables.h \
11212 freetype/ftnames.h \
11213 freetype/ftsnames.h \
11214 freetype/ttnameid.h \
11215 freetype/ftoutln.h \
11216 freetype/ftwinfnt.h \
11217 freetype/ftmodapi.h \
11218 freetype/internal/sfnt.h
11220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h. */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 #if HAVE_FT2BUILD_H
11233 #include <ft2build.h>
11234 #endif
11236 #include <$ac_header>
11237 _ACEOF
11238 rm -f conftest.$ac_objext
11239 if { (ac_try="$ac_compile"
11240 case "(($ac_try" in
11241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11243 esac
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245 (eval "$ac_compile") 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } && {
11252 test -z "$ac_c_werror_flag" ||
11253 test ! -s conftest.err
11254 } && test -s conftest.$ac_objext; then
11255 eval "$as_ac_Header=yes"
11256 else
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 eval "$as_ac_Header=no"
11263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 ac_res=`eval echo '${'$as_ac_Header'}'`
11266 { echo "$as_me:$LINENO: result: $ac_res" >&5
11267 echo "${ECHO_T}$ac_res" >&6; }
11268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11269 cat >>confdefs.h <<_ACEOF
11270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11271 _ACEOF
11275 done
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h. */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 #include <ft2build.h>
11284 #include <freetype/fttrigon.h>
11285 _ACEOF
11286 if { (ac_try="$ac_cpp conftest.$ac_ext"
11287 case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290 esac
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } >/dev/null && {
11299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 }; then
11303 cat >>confdefs.h <<\_ACEOF
11304 #define HAVE_FREETYPE_FTTRIGON_H 1
11305 _ACEOF
11307 wine_cv_fttrigon=yes
11308 else
11309 echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11312 wine_cv_fttrigon=no
11315 rm -f conftest.err conftest.$ac_ext
11316 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
11317 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
11318 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h. */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 #include <freetype/ftmodapi.h>
11329 typedef FT_TrueTypeEngineType ac__type_new_;
11331 main ()
11333 if ((ac__type_new_ *) 0)
11334 return 0;
11335 if (sizeof (ac__type_new_))
11336 return 0;
11338 return 0;
11340 _ACEOF
11341 rm -f conftest.$ac_objext
11342 if { (ac_try="$ac_compile"
11343 case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11346 esac
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_compile") 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } && {
11355 test -z "$ac_c_werror_flag" ||
11356 test ! -s conftest.err
11357 } && test -s conftest.$ac_objext; then
11358 ac_cv_type_FT_TrueTypeEngineType=yes
11359 else
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 ac_cv_type_FT_TrueTypeEngineType=no
11366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
11369 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
11370 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
11372 cat >>confdefs.h <<_ACEOF
11373 #define HAVE_FT_TRUETYPEENGINETYPE 1
11374 _ACEOF
11379 ac_save_CFLAGS="$CFLAGS"
11380 CFLAGS="$CFLAGS $FREETYPELIBS"
11382 for ac_func in FT_Load_Sfnt_Table
11384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h. */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11398 #define $ac_func innocuous_$ac_func
11400 /* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func (); below.
11402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11403 <limits.h> exists even on freestanding compilers. */
11405 #ifdef __STDC__
11406 # include <limits.h>
11407 #else
11408 # include <assert.h>
11409 #endif
11411 #undef $ac_func
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char $ac_func ();
11420 /* The GNU C library defines this for functions which it implements
11421 to always fail with ENOSYS. Some functions are actually named
11422 something starting with __ and the normal name is an alias. */
11423 #if defined __stub_$ac_func || defined __stub___$ac_func
11424 choke me
11425 #endif
11428 main ()
11430 return $ac_func ();
11432 return 0;
11434 _ACEOF
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (ac_try="$ac_link"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_link") 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest$ac_exeext &&
11452 $as_test_x conftest$ac_exeext; then
11453 eval "$as_ac_var=yes"
11454 else
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 eval "$as_ac_var=no"
11461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11462 conftest$ac_exeext conftest.$ac_ext
11464 ac_res=`eval echo '${'$as_ac_var'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11467 if test `eval echo '${'$as_ac_var'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11470 _ACEOF
11473 done
11475 CFLAGS="$ac_save_CFLAGS"
11476 CPPFLAGS="$ac_save_CPPFLAGS"
11477 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11478 then
11480 cat >>confdefs.h <<\_ACEOF
11481 #define HAVE_FREETYPE 1
11482 _ACEOF
11484 wine_cv_msg_freetype=no
11485 else
11486 FREETYPELIBS=""
11487 FREETYPEINCL=""
11488 wine_cv_msg_freetype=yes
11493 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
11494 then
11495 FONTSSUBDIRS="fonts"
11499 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
11500 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
11501 if test "${ac_cv_c_ppdev+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <linux/ppdev.h>
11512 main ()
11514 ioctl (1,PPCLAIM,0)
11516 return 0;
11518 _ACEOF
11519 rm -f conftest.$ac_objext
11520 if { (ac_try="$ac_compile"
11521 case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11524 esac
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_compile") 2>conftest.er1
11527 ac_status=$?
11528 grep -v '^ *+' conftest.er1 >conftest.err
11529 rm -f conftest.er1
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } && {
11533 test -z "$ac_c_werror_flag" ||
11534 test ! -s conftest.err
11535 } && test -s conftest.$ac_objext; then
11536 ac_cv_c_ppdev="yes"
11537 else
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 ac_cv_c_ppdev="no"
11544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
11548 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
11549 if test "$ac_cv_c_ppdev" = "yes"
11550 then
11552 cat >>confdefs.h <<\_ACEOF
11553 #define HAVE_PPDEV 1
11554 _ACEOF
11558 { echo "$as_me:$LINENO: checking for va_copy" >&5
11559 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
11560 if test "${ac_cv_c_va_copy+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include <stdarg.h>
11571 main ()
11573 va_list ap1, ap2;
11574 va_copy(ap1,ap2);
11577 return 0;
11579 _ACEOF
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (ac_try="$ac_link"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585 esac
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_link") 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } && {
11594 test -z "$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 } && test -s conftest$ac_exeext &&
11597 $as_test_x conftest$ac_exeext; then
11598 ac_cv_c_va_copy="yes"
11599 else
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_cv_c_va_copy="no"
11606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11607 conftest$ac_exeext conftest.$ac_ext
11610 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
11611 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
11612 if test "$ac_cv_c_va_copy" = "yes"
11613 then
11615 cat >>confdefs.h <<\_ACEOF
11616 #define HAVE_VA_COPY 1
11617 _ACEOF
11620 { echo "$as_me:$LINENO: checking for __va_copy" >&5
11621 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
11622 if test "${ac_cv_c___va_copy+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h. */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 #include <stdarg.h>
11633 main ()
11635 va_list ap1, ap2;
11636 __va_copy(ap1,ap2);
11639 return 0;
11641 _ACEOF
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (ac_try="$ac_link"
11644 case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11647 esac
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_link") 2>conftest.er1
11650 ac_status=$?
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } && {
11656 test -z "$ac_c_werror_flag" ||
11657 test ! -s conftest.err
11658 } && test -s conftest$ac_exeext &&
11659 $as_test_x conftest$ac_exeext; then
11660 ac_cv_c___va_copy="yes"
11661 else
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11665 ac_cv_c___va_copy="no"
11668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11669 conftest$ac_exeext conftest.$ac_ext
11672 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
11673 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
11674 if test "$ac_cv_c___va_copy" = "yes"
11675 then
11677 cat >>confdefs.h <<\_ACEOF
11678 #define HAVE___VA_COPY 1
11679 _ACEOF
11683 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11684 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
11685 if test "${ac_cv_c_sigsetjmp+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 else
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h. */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 #include <setjmp.h>
11696 main ()
11698 sigjmp_buf buf;
11699 sigsetjmp( buf, 1 );
11700 siglongjmp( buf, 1 );
11702 return 0;
11704 _ACEOF
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (ac_try="$ac_link"
11707 case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11710 esac
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_link") 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } && {
11719 test -z "$ac_c_werror_flag" ||
11720 test ! -s conftest.err
11721 } && test -s conftest$ac_exeext &&
11722 $as_test_x conftest$ac_exeext; then
11723 ac_cv_c_sigsetjmp="yes"
11724 else
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11728 ac_cv_c_sigsetjmp="no"
11731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11732 conftest$ac_exeext conftest.$ac_ext
11735 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11736 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
11737 if test "$ac_cv_c_sigsetjmp" = "yes"
11738 then
11740 cat >>confdefs.h <<\_ACEOF
11741 #define HAVE_SIGSETJMP 1
11742 _ACEOF
11746 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11747 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
11748 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751 cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h. */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 #define _GNU_SOURCE
11758 #include <pthread.h>
11760 typedef pthread_rwlock_t ac__type_new_;
11762 main ()
11764 if ((ac__type_new_ *) 0)
11765 return 0;
11766 if (sizeof (ac__type_new_))
11767 return 0;
11769 return 0;
11771 _ACEOF
11772 rm -f conftest.$ac_objext
11773 if { (ac_try="$ac_compile"
11774 case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777 esac
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_compile") 2>conftest.er1
11780 ac_status=$?
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest.$ac_objext; then
11789 ac_cv_type_pthread_rwlock_t=yes
11790 else
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 ac_cv_type_pthread_rwlock_t=no
11797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11800 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
11801 if test $ac_cv_type_pthread_rwlock_t = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804 #define HAVE_PTHREAD_RWLOCK_T 1
11805 _ACEOF
11809 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11810 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
11811 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 #define _GNU_SOURCE
11821 #include <pthread.h>
11823 typedef pthread_rwlockattr_t ac__type_new_;
11825 main ()
11827 if ((ac__type_new_ *) 0)
11828 return 0;
11829 if (sizeof (ac__type_new_))
11830 return 0;
11832 return 0;
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11840 esac
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_compile") 2>conftest.er1
11843 ac_status=$?
11844 grep -v '^ *+' conftest.er1 >conftest.err
11845 rm -f conftest.er1
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && {
11849 test -z "$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11851 } && test -s conftest.$ac_objext; then
11852 ac_cv_type_pthread_rwlockattr_t=yes
11853 else
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_cv_type_pthread_rwlockattr_t=no
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11863 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
11864 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11866 cat >>confdefs.h <<_ACEOF
11867 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11868 _ACEOF
11874 ac_wine_check_funcs_save_LIBS="$LIBS"
11875 LIBS="$LIBS $LIBPTHREAD"
11880 for ac_func in \
11881 pthread_attr_get_np \
11882 pthread_getattr_np \
11883 pthread_get_stackaddr_np \
11884 pthread_get_stacksize_np
11886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11900 #define $ac_func innocuous_$ac_func
11902 /* System header to define __stub macros and hopefully few prototypes,
11903 which can conflict with char $ac_func (); below.
11904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11905 <limits.h> exists even on freestanding compilers. */
11907 #ifdef __STDC__
11908 # include <limits.h>
11909 #else
11910 # include <assert.h>
11911 #endif
11913 #undef $ac_func
11915 /* Override any GCC internal prototype to avoid an error.
11916 Use char because int might match the return type of a GCC
11917 builtin and then its argument prototype would still apply. */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 char $ac_func ();
11922 /* The GNU C library defines this for functions which it implements
11923 to always fail with ENOSYS. Some functions are actually named
11924 something starting with __ and the normal name is an alias. */
11925 #if defined __stub_$ac_func || defined __stub___$ac_func
11926 choke me
11927 #endif
11930 main ()
11932 return $ac_func ();
11934 return 0;
11936 _ACEOF
11937 rm -f conftest.$ac_objext conftest$ac_exeext
11938 if { (ac_try="$ac_link"
11939 case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11942 esac
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944 (eval "$ac_link") 2>conftest.er1
11945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } && {
11951 test -z "$ac_c_werror_flag" ||
11952 test ! -s conftest.err
11953 } && test -s conftest$ac_exeext &&
11954 $as_test_x conftest$ac_exeext; then
11955 eval "$as_ac_var=yes"
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11960 eval "$as_ac_var=no"
11963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11964 conftest$ac_exeext conftest.$ac_ext
11966 ac_res=`eval echo '${'$as_ac_var'}'`
11967 { echo "$as_me:$LINENO: result: $ac_res" >&5
11968 echo "${ECHO_T}$ac_res" >&6; }
11969 if test `eval echo '${'$as_ac_var'}'` = yes; then
11970 cat >>confdefs.h <<_ACEOF
11971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11972 _ACEOF
11975 done
11977 LIBS="$ac_wine_check_funcs_save_LIBS"
11979 # Extract the first word of "artsc-config", so it can be a program name with args.
11980 set dummy artsc-config; ac_word=$2
11981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11983 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986 case $ARTSCCONFIG in
11987 [\\/]* | ?:[\\/]*)
11988 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992 for as_dir in $PATH
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
11996 for ac_exec_ext in '' $ac_executable_extensions; do
11997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11998 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 break 2
12002 done
12003 done
12004 IFS=$as_save_IFS
12007 esac
12009 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
12010 if test -n "$ARTSCCONFIG"; then
12011 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
12012 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
12013 else
12014 { echo "$as_me:$LINENO: result: no" >&5
12015 echo "${ECHO_T}no" >&6; }
12019 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
12020 then
12021 ARTSC_CFLAGS=""
12022 for i in `$ARTSCCONFIG --cflags`
12024 case "$i" in
12025 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
12026 esac
12027 done
12028 ARTSC_LIBS=""
12029 for i in `$ARTSCCONFIG --libs`
12031 case "$i" in
12032 -L/usr/lib|-L/usr/lib64) ;;
12033 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
12034 esac
12035 done
12036 save_CFLAGS="$CFLAGS"
12037 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
12038 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
12039 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
12040 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043 ac_check_lib_save_LIBS=$LIBS
12044 LIBS="-lartsc $ARTSC_LIBS $LIBS"
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h. */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char arts_init ();
12060 main ()
12062 return arts_init ();
12064 return 0;
12066 _ACEOF
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest$ac_exeext &&
12084 $as_test_x conftest$ac_exeext; then
12085 ac_cv_lib_artsc_arts_init=yes
12086 else
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 ac_cv_lib_artsc_arts_init=no
12093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12094 conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12097 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
12098 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
12099 if test $ac_cv_lib_artsc_arts_init = yes; then
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <artsc.h>
12108 main ()
12110 arts_stream_t stream;
12112 return 0;
12114 _ACEOF
12115 rm -f conftest.$ac_objext
12116 if { (ac_try="$ac_compile"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.$ac_objext; then
12132 ARTSLIBS=$ARTSC_LIBS
12134 ARTSINCL=$ARTSC_CFLAGS
12137 cat >>confdefs.h <<\_ACEOF
12138 #define HAVE_ARTS 1
12139 _ACEOF
12141 else
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12151 CFLAGS="$save_CFLAGS"
12154 # Extract the first word of "esd-config", so it can be a program name with args.
12155 set dummy esd-config; ac_word=$2
12156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12158 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 else
12161 case $ESDCONFIG in
12162 [\\/]* | ?:[\\/]*)
12163 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
12166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167 for as_dir in $PATH
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12173 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 break 2
12177 done
12178 done
12179 IFS=$as_save_IFS
12182 esac
12184 ESDCONFIG=$ac_cv_path_ESDCONFIG
12185 if test -n "$ESDCONFIG"; then
12186 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
12187 echo "${ECHO_T}$ESDCONFIG" >&6; }
12188 else
12189 { echo "$as_me:$LINENO: result: no" >&5
12190 echo "${ECHO_T}no" >&6; }
12194 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
12195 then
12196 ESD_CFLAGS=""
12197 for i in `$ESDCONFIG --cflags`
12199 case "$i" in
12200 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
12201 esac
12202 done
12203 ESD_LIBS=`$ESDCONFIG --libs`
12204 save_CFLAGS="$CFLAGS"
12205 CFLAGS="$CFLAGS $ESD_CFLAGS"
12206 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
12207 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
12208 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 ac_check_lib_save_LIBS=$LIBS
12212 LIBS="-lesd $LIBS"
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h. */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12220 /* Override any GCC internal prototype to avoid an error.
12221 Use char because int might match the return type of a GCC
12222 builtin and then its argument prototype would still apply. */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 char esd_open_sound ();
12228 main ()
12230 return esd_open_sound ();
12232 return 0;
12234 _ACEOF
12235 rm -f conftest.$ac_objext 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>conftest.er1
12243 ac_status=$?
12244 grep -v '^ *+' conftest.er1 >conftest.err
12245 rm -f conftest.er1
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } && {
12249 test -z "$ac_c_werror_flag" ||
12250 test ! -s conftest.err
12251 } && test -s conftest$ac_exeext &&
12252 $as_test_x conftest$ac_exeext; then
12253 ac_cv_lib_esd_esd_open_sound=yes
12254 else
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 ac_cv_lib_esd_esd_open_sound=no
12261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12262 conftest$ac_exeext conftest.$ac_ext
12263 LIBS=$ac_check_lib_save_LIBS
12265 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
12266 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
12267 if test $ac_cv_lib_esd_esd_open_sound = yes; then
12268 ESDLIBS=$ESD_LIBS
12270 ESDINCL=$ESD_CFLAGS
12273 cat >>confdefs.h <<\_ACEOF
12274 #define HAVE_ESD 1
12275 _ACEOF
12279 CFLAGS="$save_CFLAGS"
12282 ALSALIBS=""
12284 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12285 then
12286 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
12287 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
12288 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-lasound $LIBS"
12293 cat >conftest.$ac_ext <<_ACEOF
12294 /* confdefs.h. */
12295 _ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 char snd_pcm_hw_params_get_access ();
12308 main ()
12310 return snd_pcm_hw_params_get_access ();
12312 return 0;
12314 _ACEOF
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (ac_try="$ac_link"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_link") 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && {
12329 test -z "$ac_c_werror_flag" ||
12330 test ! -s conftest.err
12331 } && test -s conftest$ac_exeext &&
12332 $as_test_x conftest$ac_exeext; then
12333 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
12334 else
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
12341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
12346 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
12347 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 #ifdef HAVE_ALSA_ASOUNDLIB_H
12355 #include <alsa/asoundlib.h>
12356 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12357 #include <sys/asoundlib.h>
12358 #endif
12360 main ()
12362 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
12364 return 0;
12366 _ACEOF
12367 rm -f conftest.$ac_objext
12368 if { (ac_try="$ac_compile"
12369 case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372 esac
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_compile") 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } && {
12381 test -z "$ac_c_werror_flag" ||
12382 test ! -s conftest.err
12383 } && test -s conftest.$ac_objext; then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define HAVE_ALSA 1
12387 _ACEOF
12389 ALSALIBS="-lasound"
12390 else
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 AUDIOIOLIBS=""
12405 if test "$ac_cv_header_libaudioio_h" = "yes"
12406 then
12407 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12408 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
12409 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412 ac_check_lib_save_LIBS=$LIBS
12413 LIBS="-laudioio $LIBS"
12414 cat >conftest.$ac_ext <<_ACEOF
12415 /* confdefs.h. */
12416 _ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12421 /* Override any GCC internal prototype to avoid an error.
12422 Use char because int might match the return type of a GCC
12423 builtin and then its argument prototype would still apply. */
12424 #ifdef __cplusplus
12425 extern "C"
12426 #endif
12427 char AudioIOGetVersion ();
12429 main ()
12431 return AudioIOGetVersion ();
12433 return 0;
12435 _ACEOF
12436 rm -f conftest.$ac_objext conftest$ac_exeext
12437 if { (ac_try="$ac_link"
12438 case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12441 esac
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_link") 2>conftest.er1
12444 ac_status=$?
12445 grep -v '^ *+' conftest.er1 >conftest.err
12446 rm -f conftest.er1
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } && {
12450 test -z "$ac_c_werror_flag" ||
12451 test ! -s conftest.err
12452 } && test -s conftest$ac_exeext &&
12453 $as_test_x conftest$ac_exeext; then
12454 ac_cv_lib_audioio_AudioIOGetVersion=yes
12455 else
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12459 ac_cv_lib_audioio_AudioIOGetVersion=no
12462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12463 conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12466 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12467 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
12468 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12469 AUDIOIOLIBS="-laudioio"
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_LIBAUDIOIO 1
12473 _ACEOF
12480 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12481 then
12482 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12483 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
12484 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487 ac_check_lib_save_LIBS=$LIBS
12488 LIBS="-lcapi20 $LIBS"
12489 cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h. */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12496 /* Override any GCC internal prototype to avoid an error.
12497 Use char because int might match the return type of a GCC
12498 builtin and then its argument prototype would still apply. */
12499 #ifdef __cplusplus
12500 extern "C"
12501 #endif
12502 char capi20_register ();
12504 main ()
12506 return capi20_register ();
12508 return 0;
12510 _ACEOF
12511 rm -f conftest.$ac_objext conftest$ac_exeext
12512 if { (ac_try="$ac_link"
12513 case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12516 esac
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_link") 2>conftest.er1
12519 ac_status=$?
12520 grep -v '^ *+' conftest.er1 >conftest.err
12521 rm -f conftest.er1
12522 cat conftest.err >&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } && {
12525 test -z "$ac_c_werror_flag" ||
12526 test ! -s conftest.err
12527 } && test -s conftest$ac_exeext &&
12528 $as_test_x conftest$ac_exeext; then
12529 ac_cv_lib_capi20_capi20_register=yes
12530 else
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12534 ac_cv_lib_capi20_capi20_register=no
12537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12538 conftest$ac_exeext conftest.$ac_ext
12539 LIBS=$ac_check_lib_save_LIBS
12541 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12542 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
12543 if test $ac_cv_lib_capi20_capi20_register = yes; then
12545 cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_CAPI4LINUX 1
12547 _ACEOF
12554 EXTRACFLAGS=""
12556 if test "x${GCC}" = "xyes"
12557 then
12558 EXTRACFLAGS="-Wall -pipe"
12560 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12561 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
12562 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565 if test "$cross_compiling" = yes; then
12566 ac_cv_c_gcc_strength_bug="yes"
12567 else
12568 cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h. */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12575 int L[4] = {0,1,2,3};
12576 int main(void) {
12577 static int Array[3];
12578 unsigned int B = 3;
12579 int i;
12580 for(i=0; i<B; i++) Array[i] = i - 3;
12581 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12582 L[i] = 4;
12584 exit( Array[1] != -2 || L[2] != 3);
12586 _ACEOF
12587 rm -f conftest$ac_exeext
12588 if { (ac_try="$ac_link"
12589 case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12592 esac
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_link") 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12598 { (case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601 esac
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_try") 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 ac_cv_c_gcc_strength_bug="no"
12608 else
12609 echo "$as_me: program exited with status $ac_status" >&5
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12613 ( exit $ac_status )
12614 ac_cv_c_gcc_strength_bug="yes"
12616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12621 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12622 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
12623 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12624 then
12625 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12629 { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
12630 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
12631 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634 ac_wine_try_cflags_saved=$CFLAGS
12635 CFLAGS="$CFLAGS -fshort-wchar"
12636 cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h. */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12644 main ()
12648 return 0;
12650 _ACEOF
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (ac_try="$ac_link"
12653 case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12656 esac
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_link") 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } && {
12665 test -z "$ac_c_werror_flag" ||
12666 test ! -s conftest.err
12667 } && test -s conftest$ac_exeext &&
12668 $as_test_x conftest$ac_exeext; then
12669 ac_cv_cflags__fshort_wchar=yes
12670 else
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ac_cv_cflags__fshort_wchar=no
12677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12678 conftest$ac_exeext conftest.$ac_ext
12679 CFLAGS=$ac_wine_try_cflags_saved
12681 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
12682 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
12683 if test $ac_cv_cflags__fshort_wchar = yes; then
12685 cat >>confdefs.h <<\_ACEOF
12686 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12687 _ACEOF
12691 { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
12692 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
12693 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696 ac_wine_try_cflags_saved=$CFLAGS
12697 CFLAGS="$CFLAGS -fno-strict-aliasing"
12698 cat >conftest.$ac_ext <<_ACEOF
12699 /* confdefs.h. */
12700 _ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12706 main ()
12710 return 0;
12712 _ACEOF
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (ac_try="$ac_link"
12715 case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12718 esac
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720 (eval "$ac_link") 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && {
12727 test -z "$ac_c_werror_flag" ||
12728 test ! -s conftest.err
12729 } && test -s conftest$ac_exeext &&
12730 $as_test_x conftest$ac_exeext; then
12731 ac_cv_cflags__fno_strict_aliasing=yes
12732 else
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12736 ac_cv_cflags__fno_strict_aliasing=no
12739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12740 conftest$ac_exeext conftest.$ac_ext
12741 CFLAGS=$ac_wine_try_cflags_saved
12743 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12744 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
12745 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
12746 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12749 { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12750 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
12751 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754 ac_wine_try_cflags_saved=$CFLAGS
12755 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h. */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12764 main ()
12768 return 0;
12770 _ACEOF
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (ac_try="$ac_link"
12773 case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_link") 2>conftest.er1
12779 ac_status=$?
12780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && {
12785 test -z "$ac_c_werror_flag" ||
12786 test ! -s conftest.err
12787 } && test -s conftest$ac_exeext &&
12788 $as_test_x conftest$ac_exeext; then
12789 ac_cv_cflags__Wdeclaration_after_statement=yes
12790 else
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12794 ac_cv_cflags__Wdeclaration_after_statement=no
12797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12798 conftest$ac_exeext conftest.$ac_ext
12799 CFLAGS=$ac_wine_try_cflags_saved
12801 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12802 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12803 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
12804 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12807 { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
12808 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
12809 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812 ac_wine_try_cflags_saved=$CFLAGS
12813 CFLAGS="$CFLAGS -Wwrite-strings"
12814 cat >conftest.$ac_ext <<_ACEOF
12815 /* confdefs.h. */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12822 main ()
12826 return 0;
12828 _ACEOF
12829 rm -f conftest.$ac_objext conftest$ac_exeext
12830 if { (ac_try="$ac_link"
12831 case "(($ac_try" in
12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12834 esac
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836 (eval "$ac_link") 2>conftest.er1
12837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } && {
12843 test -z "$ac_c_werror_flag" ||
12844 test ! -s conftest.err
12845 } && test -s conftest$ac_exeext &&
12846 $as_test_x conftest$ac_exeext; then
12847 ac_cv_cflags__Wwrite_strings=yes
12848 else
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12852 ac_cv_cflags__Wwrite_strings=no
12855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12856 conftest$ac_exeext conftest.$ac_ext
12857 CFLAGS=$ac_wine_try_cflags_saved
12859 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
12860 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
12861 if test $ac_cv_cflags__Wwrite_strings = yes; then
12862 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12866 saved_CFLAGS="$CFLAGS"
12867 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12868 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12869 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
12870 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873 cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h. */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879 #include <string.h>
12881 main ()
12885 return 0;
12887 _ACEOF
12888 rm -f conftest.$ac_objext
12889 if { (ac_try="$ac_compile"
12890 case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_compile") 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } && {
12902 test -z "$ac_c_werror_flag" ||
12903 test ! -s conftest.err
12904 } && test -s conftest.$ac_objext; then
12905 ac_cv_c_string_h_warnings=no
12906 else
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12910 ac_cv_c_string_h_warnings=yes
12913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12916 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
12917 CFLAGS="$saved_CFLAGS"
12918 if test "$ac_cv_c_string_h_warnings" = "no"
12919 then
12920 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12923 BUILTINFLAG=""
12925 saved_CFLAGS="$CFLAGS"
12926 CFLAGS="$CFLAGS -Werror"
12927 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
12928 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
12929 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 else
12932 cat >conftest.$ac_ext <<_ACEOF
12933 /* confdefs.h. */
12934 _ACEOF
12935 cat confdefs.h >>conftest.$ac_ext
12936 cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h. */
12940 main ()
12942 int iswlower(unsigned short);
12944 return 0;
12946 _ACEOF
12947 rm -f conftest.$ac_objext
12948 if { (ac_try="$ac_compile"
12949 case "(($ac_try" in
12950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951 *) ac_try_echo=$ac_try;;
12952 esac
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954 (eval "$ac_compile") 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } && {
12961 test -z "$ac_c_werror_flag" ||
12962 test ! -s conftest.err
12963 } && test -s conftest.$ac_objext; then
12964 ac_cv_c_builtin_wchar_ctype=no
12965 else
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 ac_cv_c_builtin_wchar_ctype=yes
12972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12974 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
12975 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
12976 CFLAGS="$saved_CFLAGS"
12977 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
12978 then
12979 BUILTINFLAG="-fno-builtin"
12984 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12985 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
12986 if test "${ac_cv_asm_func_def+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989 cat >conftest.$ac_ext <<_ACEOF
12990 /* confdefs.h. */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12995 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
12998 main ()
13002 return 0;
13004 _ACEOF
13005 rm -f conftest.$ac_objext conftest$ac_exeext
13006 if { (ac_try="$ac_link"
13007 case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13010 esac
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_link") 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } && {
13019 test -z "$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13021 } && test -s conftest$ac_exeext &&
13022 $as_test_x conftest$ac_exeext; then
13023 ac_cv_asm_func_def=".def"
13024 else
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 cat >conftest.$ac_ext <<_ACEOF
13029 /* confdefs.h. */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13034 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
13037 main ()
13041 return 0;
13043 _ACEOF
13044 rm -f conftest.$ac_objext conftest$ac_exeext
13045 if { (ac_try="$ac_link"
13046 case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049 esac
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_link") 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } && {
13058 test -z "$ac_c_werror_flag" ||
13059 test ! -s conftest.err
13060 } && test -s conftest$ac_exeext &&
13061 $as_test_x conftest$ac_exeext; then
13062 ac_cv_asm_func_def=".type @function"
13063 else
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h. */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
13076 main ()
13080 return 0;
13082 _ACEOF
13083 rm -f conftest.$ac_objext conftest$ac_exeext
13084 if { (ac_try="$ac_link"
13085 case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088 esac
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_link") 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && {
13097 test -z "$ac_c_werror_flag" ||
13098 test ! -s conftest.err
13099 } && test -s conftest$ac_exeext &&
13100 $as_test_x conftest$ac_exeext; then
13101 ac_cv_asm_func_def=".type 2"
13102 else
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13106 ac_cv_asm_func_def="unknown"
13109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13110 conftest$ac_exeext conftest.$ac_ext
13113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13114 conftest$ac_exeext conftest.$ac_ext
13117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13118 conftest$ac_exeext conftest.$ac_ext
13120 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13121 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
13125 case "$ac_cv_asm_func_def" in
13126 ".def")
13127 cat >>confdefs.h <<\_ACEOF
13128 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13129 _ACEOF
13131 ".type @function")
13132 cat >>confdefs.h <<\_ACEOF
13133 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13134 _ACEOF
13136 ".type 2")
13137 cat >>confdefs.h <<\_ACEOF
13138 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13139 _ACEOF
13142 cat >>confdefs.h <<\_ACEOF
13143 #define __ASM_FUNC(name) ""
13144 _ACEOF
13146 esac
13149 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13150 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
13151 if test "${ac_cv_c_extern_prefix+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13153 else
13154 cat >conftest.$ac_ext <<_ACEOF
13155 /* confdefs.h. */
13156 _ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13160 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13161 extern int ac_test;
13163 main ()
13165 if (ac_test) return 1
13167 return 0;
13169 _ACEOF
13170 rm -f conftest.$ac_objext conftest$ac_exeext
13171 if { (ac_try="$ac_link"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_link") 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 } && test -s conftest$ac_exeext &&
13187 $as_test_x conftest$ac_exeext; then
13188 ac_cv_c_extern_prefix="yes"
13189 else
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_cv_c_extern_prefix="no"
13196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13197 conftest$ac_exeext conftest.$ac_ext
13199 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13200 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
13204 if test "$ac_cv_c_extern_prefix" = "yes"
13205 then
13206 cat >>confdefs.h <<\_ACEOF
13207 #define __ASM_NAME(name) "_" name
13208 _ACEOF
13210 else
13211 cat >>confdefs.h <<\_ACEOF
13212 #define __ASM_NAME(name) name
13213 _ACEOF
13218 DLLEXT=""
13220 DLLFLAGS="-D_REENTRANT"
13222 LDSHARED=""
13224 LDDLLFLAGS=""
13226 LIBEXT="so"
13228 IMPLIBEXT="def"
13230 LIBWINE_LDFLAGS=""
13233 case $host_os in
13234 cygwin*|mingw32*)
13235 if test -n "$ac_tool_prefix"; then
13236 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13237 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13240 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243 if test -n "$DLLTOOL"; then
13244 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13245 else
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13253 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13255 break 2
13257 done
13258 done
13259 IFS=$as_save_IFS
13263 DLLTOOL=$ac_cv_prog_DLLTOOL
13264 if test -n "$DLLTOOL"; then
13265 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13266 echo "${ECHO_T}$DLLTOOL" >&6; }
13267 else
13268 { echo "$as_me:$LINENO: result: no" >&5
13269 echo "${ECHO_T}no" >&6; }
13274 if test -z "$ac_cv_prog_DLLTOOL"; then
13275 ac_ct_DLLTOOL=$DLLTOOL
13276 # Extract the first word of "dlltool", so it can be a program name with args.
13277 set dummy dlltool; ac_word=$2
13278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13280 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283 if test -n "$ac_ct_DLLTOOL"; then
13284 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13285 else
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13293 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13295 break 2
13297 done
13298 done
13299 IFS=$as_save_IFS
13303 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13304 if test -n "$ac_ct_DLLTOOL"; then
13305 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13306 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
13307 else
13308 { echo "$as_me:$LINENO: result: no" >&5
13309 echo "${ECHO_T}no" >&6; }
13312 if test "x$ac_ct_DLLTOOL" = x; then
13313 DLLTOOL="false"
13314 else
13315 case $cross_compiling:$ac_tool_warned in
13316 yes:)
13317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13318 whose name does not start with the host triplet. If you think this
13319 configuration is useful to you, please write to autoconf@gnu.org." >&5
13320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13321 whose name does not start with the host triplet. If you think this
13322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13323 ac_tool_warned=yes ;;
13324 esac
13325 DLLTOOL=$ac_ct_DLLTOOL
13327 else
13328 DLLTOOL="$ac_cv_prog_DLLTOOL"
13331 if test -n "$ac_tool_prefix"; then
13332 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13333 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13336 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339 if test -n "$DLLWRAP"; then
13340 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13341 else
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13345 IFS=$as_save_IFS
13346 test -z "$as_dir" && as_dir=.
13347 for ac_exec_ext in '' $ac_executable_extensions; do
13348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13349 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13351 break 2
13353 done
13354 done
13355 IFS=$as_save_IFS
13359 DLLWRAP=$ac_cv_prog_DLLWRAP
13360 if test -n "$DLLWRAP"; then
13361 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13362 echo "${ECHO_T}$DLLWRAP" >&6; }
13363 else
13364 { echo "$as_me:$LINENO: result: no" >&5
13365 echo "${ECHO_T}no" >&6; }
13370 if test -z "$ac_cv_prog_DLLWRAP"; then
13371 ac_ct_DLLWRAP=$DLLWRAP
13372 # Extract the first word of "dllwrap", so it can be a program name with args.
13373 set dummy dllwrap; ac_word=$2
13374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13376 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 else
13379 if test -n "$ac_ct_DLLWRAP"; then
13380 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13381 else
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13389 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13391 break 2
13393 done
13394 done
13395 IFS=$as_save_IFS
13399 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13400 if test -n "$ac_ct_DLLWRAP"; then
13401 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13402 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
13403 else
13404 { echo "$as_me:$LINENO: result: no" >&5
13405 echo "${ECHO_T}no" >&6; }
13408 if test "x$ac_ct_DLLWRAP" = x; then
13409 DLLWRAP="false"
13410 else
13411 case $cross_compiling:$ac_tool_warned in
13412 yes:)
13413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13414 whose name does not start with the host triplet. If you think this
13415 configuration is useful to you, please write to autoconf@gnu.org." >&5
13416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13417 whose name does not start with the host triplet. If you think this
13418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13419 ac_tool_warned=yes ;;
13420 esac
13421 DLLWRAP=$ac_ct_DLLWRAP
13423 else
13424 DLLWRAP="$ac_cv_prog_DLLWRAP"
13427 if test "$DLLWRAP" = "false"; then
13428 LIBEXT="a"
13429 else
13430 LIBEXT="dll"
13432 IMPLIBEXT="a"
13433 WIN16_FILES=""
13434 WIN16_INSTALL=""
13436 darwin*|macosx*)
13437 DLLEXT=".so"
13438 LIBEXT="dylib"
13439 DLLFLAGS="$DLLFLAGS -fPIC"
13440 LDDLLFLAGS="-bundle -multiply_defined suppress"
13441 LIBWINE_LDFLAGS="-multiply_defined suppress"
13442 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
13443 STRIP="$STRIP -u -r"
13444 COREFOUNDATIONLIB="-framework CoreFoundation"
13446 IOKITLIB="-framework IOKit -framework CoreFoundation"
13448 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
13450 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
13451 then
13452 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
13455 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
13456 then
13457 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
13460 case $host_cpu in
13461 *powerpc*)
13462 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
13463 esac
13464 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
13465 then
13466 CARBONLIB="-framework Carbon"
13468 QUARTZFILES='$(QUARTZFILES)'
13472 DLLFLAGS="$DLLFLAGS -fPIC"
13473 DLLEXT=".so"
13474 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13475 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
13476 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479 ac_wine_try_cflags_saved=$CFLAGS
13480 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
13481 cat >conftest.$ac_ext <<_ACEOF
13482 void myfunc() {}
13483 _ACEOF
13484 rm -f conftest.$ac_objext conftest$ac_exeext
13485 if { (ac_try="$ac_link"
13486 case "(($ac_try" in
13487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13489 esac
13490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491 (eval "$ac_link") 2>conftest.er1
13492 ac_status=$?
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } && {
13498 test -z "$ac_c_werror_flag" ||
13499 test ! -s conftest.err
13500 } && test -s conftest$ac_exeext &&
13501 $as_test_x conftest$ac_exeext; then
13502 ac_cv_c_dll_gnuelf="yes"
13503 else
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13507 ac_cv_c_dll_gnuelf="no"
13510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13511 conftest$ac_exeext conftest.$ac_ext
13512 CFLAGS=$ac_wine_try_cflags_saved
13514 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13515 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
13516 if test "$ac_cv_c_dll_gnuelf" = "yes"
13517 then
13518 LDSHARED="\$(CC) -shared"
13519 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13520 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
13521 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
13522 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525 ac_wine_try_cflags_saved=$CFLAGS
13526 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
13527 cat >conftest.$ac_ext <<_ACEOF
13528 /* confdefs.h. */
13529 _ACEOF
13530 cat confdefs.h >>conftest.$ac_ext
13531 cat >>conftest.$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13535 main ()
13539 return 0;
13541 _ACEOF
13542 rm -f conftest.$ac_objext conftest$ac_exeext
13543 if { (ac_try="$ac_link"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13547 esac
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_link") 2>conftest.er1
13550 ac_status=$?
13551 grep -v '^ *+' conftest.er1 >conftest.err
13552 rm -f conftest.er1
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } && {
13556 test -z "$ac_c_werror_flag" ||
13557 test ! -s conftest.err
13558 } && test -s conftest$ac_exeext &&
13559 $as_test_x conftest$ac_exeext; then
13560 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
13561 else
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13565 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
13568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13569 conftest$ac_exeext conftest.$ac_ext
13570 CFLAGS=$ac_wine_try_cflags_saved
13572 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
13573 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
13574 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
13575 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13576 else
13577 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
13578 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
13579 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582 ac_wine_try_cflags_saved=$CFLAGS
13583 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
13584 cat >conftest.$ac_ext <<_ACEOF
13585 /* confdefs.h. */
13586 _ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13592 main ()
13596 return 0;
13598 _ACEOF
13599 rm -f conftest.$ac_objext conftest$ac_exeext
13600 if { (ac_try="$ac_link"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13604 esac
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_link") 2>conftest.er1
13607 ac_status=$?
13608 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } && {
13613 test -z "$ac_c_werror_flag" ||
13614 test ! -s conftest.err
13615 } && test -s conftest$ac_exeext &&
13616 $as_test_x conftest$ac_exeext; then
13617 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
13618 else
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
13625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626 conftest$ac_exeext conftest.$ac_ext
13627 CFLAGS=$ac_wine_try_cflags_saved
13629 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
13630 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
13631 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
13632 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
13638 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
13639 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
13640 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643 ac_wine_try_cflags_saved=$CFLAGS
13644 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h. */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13653 main ()
13657 return 0;
13659 _ACEOF
13660 rm -f conftest.$ac_objext conftest$ac_exeext
13661 if { (ac_try="$ac_link"
13662 case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_link") 2>conftest.er1
13668 ac_status=$?
13669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } && {
13674 test -z "$ac_c_werror_flag" ||
13675 test ! -s conftest.err
13676 } && test -s conftest$ac_exeext &&
13677 $as_test_x conftest$ac_exeext; then
13678 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
13679 else
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
13686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13687 conftest$ac_exeext conftest.$ac_ext
13688 CFLAGS=$ac_wine_try_cflags_saved
13690 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
13691 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
13692 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
13693 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13697 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
13698 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
13699 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702 ac_wine_try_cflags_saved=$CFLAGS
13703 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13712 main ()
13716 return 0;
13718 _ACEOF
13719 rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (ac_try="$ac_link"
13721 case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_link") 2>conftest.er1
13727 ac_status=$?
13728 grep -v '^ *+' conftest.er1 >conftest.err
13729 rm -f conftest.er1
13730 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } && {
13733 test -z "$ac_c_werror_flag" ||
13734 test ! -s conftest.err
13735 } && test -s conftest$ac_exeext &&
13736 $as_test_x conftest$ac_exeext; then
13737 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
13738 else
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
13745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13746 conftest$ac_exeext conftest.$ac_ext
13747 CFLAGS=$ac_wine_try_cflags_saved
13749 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
13750 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
13751 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
13752 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13756 echo '{ global: *; };' >conftest.map
13757 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
13758 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
13759 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 else
13762 ac_wine_try_cflags_saved=$CFLAGS
13763 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13764 cat >conftest.$ac_ext <<_ACEOF
13765 /* confdefs.h. */
13766 _ACEOF
13767 cat confdefs.h >>conftest.$ac_ext
13768 cat >>conftest.$ac_ext <<_ACEOF
13769 /* end confdefs.h. */
13772 main ()
13776 return 0;
13778 _ACEOF
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (ac_try="$ac_link"
13781 case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13784 esac
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_link") 2>conftest.er1
13787 ac_status=$?
13788 grep -v '^ *+' conftest.er1 >conftest.err
13789 rm -f conftest.er1
13790 cat conftest.err >&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } && {
13793 test -z "$ac_c_werror_flag" ||
13794 test ! -s conftest.err
13795 } && test -s conftest$ac_exeext &&
13796 $as_test_x conftest$ac_exeext; then
13797 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
13798 else
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
13805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13806 conftest$ac_exeext conftest.$ac_ext
13807 CFLAGS=$ac_wine_try_cflags_saved
13809 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
13810 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
13811 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
13812 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13815 rm -f conftest.map
13817 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
13818 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
13819 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 else
13822 ac_wine_try_cflags_saved=$CFLAGS
13823 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13824 cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h. */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13832 main ()
13836 return 0;
13838 _ACEOF
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (ac_try="$ac_link"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_link") 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && {
13853 test -z "$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 } && test -s conftest$ac_exeext &&
13856 $as_test_x conftest$ac_exeext; then
13857 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
13858 else
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 ac_cv_cflags__fPIC__Wl___export_dynamic=no
13865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13866 conftest$ac_exeext conftest.$ac_ext
13867 CFLAGS=$ac_wine_try_cflags_saved
13869 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
13870 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
13871 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
13872 LDEXECFLAGS="-Wl,--export-dynamic"
13877 as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
13878 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
13879 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
13880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 else
13883 ac_wine_try_cflags_saved=$CFLAGS
13884 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
13885 cat >conftest.$ac_ext <<_ACEOF
13886 /* confdefs.h. */
13887 _ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13893 main ()
13897 return 0;
13899 _ACEOF
13900 rm -f conftest.$ac_objext conftest$ac_exeext
13901 if { (ac_try="$ac_link"
13902 case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_link") 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } && {
13914 test -z "$ac_c_werror_flag" ||
13915 test ! -s conftest.err
13916 } && test -s conftest$ac_exeext &&
13917 $as_test_x conftest$ac_exeext; then
13918 eval "$as_ac_var=yes"
13919 else
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 eval "$as_ac_var=no"
13926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13927 conftest$ac_exeext conftest.$ac_ext
13928 CFLAGS=$ac_wine_try_cflags_saved
13930 ac_res=`eval echo '${'$as_ac_var'}'`
13931 { echo "$as_me:$LINENO: result: $ac_res" >&5
13932 echo "${ECHO_T}$ac_res" >&6; }
13933 if test `eval echo '${'$as_ac_var'}'` = yes; then
13934 LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
13938 case $host_cpu in
13939 *i[3456789]86* | x86_64)
13940 { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
13941 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
13942 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 else
13945 ac_wine_try_cflags_saved=$CFLAGS
13946 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
13947 cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h. */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13955 main ()
13959 return 0;
13961 _ACEOF
13962 rm -f conftest.$ac_objext conftest$ac_exeext
13963 if { (ac_try="$ac_link"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13967 esac
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_link") 2>conftest.er1
13970 ac_status=$?
13971 grep -v '^ *+' conftest.er1 >conftest.err
13972 rm -f conftest.er1
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } && {
13976 test -z "$ac_c_werror_flag" ||
13977 test ! -s conftest.err
13978 } && test -s conftest$ac_exeext &&
13979 $as_test_x conftest$ac_exeext; then
13980 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
13981 else
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13985 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
13988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13989 conftest$ac_exeext conftest.$ac_ext
13990 CFLAGS=$ac_wine_try_cflags_saved
13992 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
13993 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
13994 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
13995 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
13999 esac
14001 else
14002 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14003 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
14004 if test "${ac_cv_c_dll_unixware+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007 ac_wine_try_cflags_saved=$CFLAGS
14008 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14009 cat >conftest.$ac_ext <<_ACEOF
14010 void myfunc() {}
14011 _ACEOF
14012 rm -f conftest.$ac_objext conftest$ac_exeext
14013 if { (ac_try="$ac_link"
14014 case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14017 esac
14018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_link") 2>conftest.er1
14020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } && {
14026 test -z "$ac_c_werror_flag" ||
14027 test ! -s conftest.err
14028 } && test -s conftest$ac_exeext &&
14029 $as_test_x conftest$ac_exeext; then
14030 ac_cv_c_dll_unixware="yes"
14031 else
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14035 ac_cv_c_dll_unixware="no"
14038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14039 conftest$ac_exeext conftest.$ac_ext
14040 CFLAGS=$ac_wine_try_cflags_saved
14042 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14043 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
14044 if test "$ac_cv_c_dll_unixware" = "yes"
14045 then
14046 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14047 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14049 else
14050 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14051 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
14052 if test "${ac_cv_c_dll_hpux+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055 ac_wine_try_cflags_saved=$CFLAGS
14056 CFLAGS="$CFLAGS -shared"
14057 cat >conftest.$ac_ext <<_ACEOF
14058 void myfunc() {}
14059 _ACEOF
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (ac_try="$ac_link"
14062 case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14065 esac
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_link") 2>conftest.er1
14068 ac_status=$?
14069 grep -v '^ *+' conftest.er1 >conftest.err
14070 rm -f conftest.er1
14071 cat conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } && {
14074 test -z "$ac_c_werror_flag" ||
14075 test ! -s conftest.err
14076 } && test -s conftest$ac_exeext &&
14077 $as_test_x conftest$ac_exeext; then
14078 ac_cv_c_dll_hpux="yes"
14079 else
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 ac_cv_c_dll_hpux="no"
14086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14087 conftest$ac_exeext conftest.$ac_ext
14088 CFLAGS=$ac_wine_try_cflags_saved
14090 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14091 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
14092 if test "$ac_cv_c_dll_hpux" = "yes"
14093 then
14094 LIBEXT="sl"
14095 DLLEXT=".sl"
14096 LDDLLFLAGS="-shared -fPIC"
14097 LDSHARED="\$(CC) -shared"
14102 CROSSTEST=""
14104 if test "$cross_compiling" = "no"
14105 then
14106 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
14108 # Extract the first word of "$ac_prog", so it can be a program name with args.
14109 set dummy $ac_prog; ac_word=$2
14110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14112 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115 if test -n "$CROSSCC"; then
14116 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14117 else
14118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119 for as_dir in $PATH
14121 IFS=$as_save_IFS
14122 test -z "$as_dir" && as_dir=.
14123 for ac_exec_ext in '' $ac_executable_extensions; do
14124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14125 ac_cv_prog_CROSSCC="$ac_prog"
14126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14127 break 2
14129 done
14130 done
14131 IFS=$as_save_IFS
14135 CROSSCC=$ac_cv_prog_CROSSCC
14136 if test -n "$CROSSCC"; then
14137 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
14138 echo "${ECHO_T}$CROSSCC" >&6; }
14139 else
14140 { echo "$as_me:$LINENO: result: no" >&5
14141 echo "${ECHO_T}no" >&6; }
14145 test -n "$CROSSCC" && break
14146 done
14147 test -n "$CROSSCC" || CROSSCC="false"
14149 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
14151 # Extract the first word of "$ac_prog", so it can be a program name with args.
14152 set dummy $ac_prog; ac_word=$2
14153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14155 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 else
14158 if test -n "$DLLTOOL"; then
14159 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14160 else
14161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14162 for as_dir in $PATH
14164 IFS=$as_save_IFS
14165 test -z "$as_dir" && as_dir=.
14166 for ac_exec_ext in '' $ac_executable_extensions; do
14167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14168 ac_cv_prog_DLLTOOL="$ac_prog"
14169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14170 break 2
14172 done
14173 done
14174 IFS=$as_save_IFS
14178 DLLTOOL=$ac_cv_prog_DLLTOOL
14179 if test -n "$DLLTOOL"; then
14180 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14181 echo "${ECHO_T}$DLLTOOL" >&6; }
14182 else
14183 { echo "$as_me:$LINENO: result: no" >&5
14184 echo "${ECHO_T}no" >&6; }
14188 test -n "$DLLTOOL" && break
14189 done
14190 test -n "$DLLTOOL" || DLLTOOL="false"
14192 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
14194 # Extract the first word of "$ac_prog", so it can be a program name with args.
14195 set dummy $ac_prog; ac_word=$2
14196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14198 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201 if test -n "$CROSSWINDRES"; then
14202 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14203 else
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14207 IFS=$as_save_IFS
14208 test -z "$as_dir" && as_dir=.
14209 for ac_exec_ext in '' $ac_executable_extensions; do
14210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14211 ac_cv_prog_CROSSWINDRES="$ac_prog"
14212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14213 break 2
14215 done
14216 done
14217 IFS=$as_save_IFS
14221 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14222 if test -n "$CROSSWINDRES"; then
14223 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14224 echo "${ECHO_T}$CROSSWINDRES" >&6; }
14225 else
14226 { echo "$as_me:$LINENO: result: no" >&5
14227 echo "${ECHO_T}no" >&6; }
14231 test -n "$CROSSWINDRES" && break
14232 done
14233 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14235 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14238 esac
14240 if test "$LIBEXT" = "a"; then
14241 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14242 It is currently not possible to build Wine without shared library
14243 (.so) support to allow transparent switch between .so and .dll files.
14244 If you are using Linux, you will need a newer binutils.
14245 " >&5
14246 echo "$as_me: error: could not find a way to build shared libraries.
14247 It is currently not possible to build Wine without shared library
14248 (.so) support to allow transparent switch between .so and .dll files.
14249 If you are using Linux, you will need a newer binutils.
14250 " >&2;}
14251 { (exit 1); exit 1; }; }
14254 case $build_os in
14255 cygwin*|mingw32*)
14256 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
14258 darwin*|macosx*)
14259 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
14262 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
14264 esac
14266 case $host_os in
14267 mingw32*)
14268 CRTLIBS="-lmsvcrt"
14270 SOCKETLIBS="-lws2_32"
14273 esac
14275 MAIN_BINARY="wine-pthread"
14276 case $host_cpu in
14277 *i[3456789]86*)
14278 case $host_os in
14279 linux* | k*bsd*-gnu)
14280 MAIN_BINARY="wine-glibc"
14282 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
14284 esac
14286 esac
14289 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14290 then
14291 # Extract the first word of "ldd", so it can be a program name with args.
14292 set dummy ldd; ac_word=$2
14293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14295 if test "${ac_cv_path_LDD+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 else
14298 case $LDD in
14299 [\\/]* | ?:[\\/]*)
14300 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14304 as_dummy="/sbin:/usr/sbin:$PATH"
14305 for as_dir in $as_dummy
14307 IFS=$as_save_IFS
14308 test -z "$as_dir" && as_dir=.
14309 for ac_exec_ext in '' $ac_executable_extensions; do
14310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14311 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14313 break 2
14315 done
14316 done
14317 IFS=$as_save_IFS
14319 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14321 esac
14323 LDD=$ac_cv_path_LDD
14324 if test -n "$LDD"; then
14325 { echo "$as_me:$LINENO: result: $LDD" >&5
14326 echo "${ECHO_T}$LDD" >&6; }
14327 else
14328 { echo "$as_me:$LINENO: result: no" >&5
14329 echo "${ECHO_T}no" >&6; }
14333 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14334 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
14335 if test "${ac_cv_lib_soname_X11+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338 ac_get_soname_save_LIBS=$LIBS
14339 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14340 cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h. */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14347 /* Override any GCC internal prototype to avoid an error.
14348 Use char because int might match the return type of a GCC
14349 builtin and then its argument prototype would still apply. */
14350 #ifdef __cplusplus
14351 extern "C"
14352 #endif
14353 char XCreateWindow ();
14355 main ()
14357 return XCreateWindow ();
14359 return 0;
14361 _ACEOF
14362 rm -f conftest.$ac_objext conftest$ac_exeext
14363 if { (ac_try="$ac_link"
14364 case "(($ac_try" in
14365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366 *) ac_try_echo=$ac_try;;
14367 esac
14368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369 (eval "$ac_link") 2>conftest.er1
14370 ac_status=$?
14371 grep -v '^ *+' conftest.er1 >conftest.err
14372 rm -f conftest.er1
14373 cat conftest.err >&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } && {
14376 test -z "$ac_c_werror_flag" ||
14377 test ! -s conftest.err
14378 } && test -s conftest$ac_exeext &&
14379 $as_test_x conftest$ac_exeext; then
14380 case "$LIBEXT" in
14381 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'` ;;
14382 so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14383 esac
14384 if test "x$ac_cv_lib_soname_X11" = "x"
14385 then
14386 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14388 else
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14396 conftest$ac_exeext conftest.$ac_ext
14397 LIBS=$ac_get_soname_save_LIBS
14399 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14400 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
14401 if test "${ac_cv_lib_soname_X11+set}" = set; then
14403 cat >>confdefs.h <<_ACEOF
14404 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14405 _ACEOF
14409 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
14410 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
14411 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 else
14414 ac_get_soname_save_LIBS=$LIBS
14415 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14416 cat >conftest.$ac_ext <<_ACEOF
14417 /* confdefs.h. */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14423 /* Override any GCC internal prototype to avoid an error.
14424 Use char because int might match the return type of a GCC
14425 builtin and then its argument prototype would still apply. */
14426 #ifdef __cplusplus
14427 extern "C"
14428 #endif
14429 char XextCreateExtension ();
14431 main ()
14433 return XextCreateExtension ();
14435 return 0;
14437 _ACEOF
14438 rm -f conftest.$ac_objext conftest$ac_exeext
14439 if { (ac_try="$ac_link"
14440 case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14443 esac
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_link") 2>conftest.er1
14446 ac_status=$?
14447 grep -v '^ *+' conftest.er1 >conftest.err
14448 rm -f conftest.er1
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } && {
14452 test -z "$ac_c_werror_flag" ||
14453 test ! -s conftest.err
14454 } && test -s conftest$ac_exeext &&
14455 $as_test_x conftest$ac_exeext; then
14456 case "$LIBEXT" in
14457 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'` ;;
14458 so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14459 esac
14460 if test "x$ac_cv_lib_soname_Xext" = "x"
14461 then
14462 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14464 else
14465 echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14468 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14472 conftest$ac_exeext conftest.$ac_ext
14473 LIBS=$ac_get_soname_save_LIBS
14475 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14476 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
14477 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14479 cat >>confdefs.h <<_ACEOF
14480 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14481 _ACEOF
14485 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
14486 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
14487 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490 ac_get_soname_save_LIBS=$LIBS
14491 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14492 cat >conftest.$ac_ext <<_ACEOF
14493 /* confdefs.h. */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14499 /* Override any GCC internal prototype to avoid an error.
14500 Use char because int might match the return type of a GCC
14501 builtin and then its argument prototype would still apply. */
14502 #ifdef __cplusplus
14503 extern "C"
14504 #endif
14505 char XOpenDevice ();
14507 main ()
14509 return XOpenDevice ();
14511 return 0;
14513 _ACEOF
14514 rm -f conftest.$ac_objext conftest$ac_exeext
14515 if { (ac_try="$ac_link"
14516 case "(($ac_try" in
14517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518 *) ac_try_echo=$ac_try;;
14519 esac
14520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521 (eval "$ac_link") 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } && {
14528 test -z "$ac_c_werror_flag" ||
14529 test ! -s conftest.err
14530 } && test -s conftest$ac_exeext &&
14531 $as_test_x conftest$ac_exeext; then
14532 case "$LIBEXT" in
14533 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'` ;;
14534 so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14535 esac
14536 if test "x$ac_cv_lib_soname_Xi" = "x"
14537 then
14538 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14540 else
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14544 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14548 conftest$ac_exeext conftest.$ac_ext
14549 LIBS=$ac_get_soname_save_LIBS
14551 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14552 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
14553 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14557 _ACEOF
14561 { echo "$as_me:$LINENO: checking for -lXinerama soname" >&5
14562 echo $ECHO_N "checking for -lXinerama soname... $ECHO_C" >&6; }
14563 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 else
14566 ac_get_soname_save_LIBS=$LIBS
14567 LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14568 cat >conftest.$ac_ext <<_ACEOF
14569 /* confdefs.h. */
14570 _ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h. */
14575 /* Override any GCC internal prototype to avoid an error.
14576 Use char because int might match the return type of a GCC
14577 builtin and then its argument prototype would still apply. */
14578 #ifdef __cplusplus
14579 extern "C"
14580 #endif
14581 char XineramaQueryScreens ();
14583 main ()
14585 return XineramaQueryScreens ();
14587 return 0;
14589 _ACEOF
14590 rm -f conftest.$ac_objext conftest$ac_exeext
14591 if { (ac_try="$ac_link"
14592 case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14595 esac
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_link") 2>conftest.er1
14598 ac_status=$?
14599 grep -v '^ *+' conftest.er1 >conftest.err
14600 rm -f conftest.er1
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } && {
14604 test -z "$ac_c_werror_flag" ||
14605 test ! -s conftest.err
14606 } && test -s conftest$ac_exeext &&
14607 $as_test_x conftest$ac_exeext; then
14608 case "$LIBEXT" in
14609 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'` ;;
14610 so) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep libXinerama\\.so | sed -e "s/^.*\(libXinerama\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14611 esac
14612 if test "x$ac_cv_lib_soname_Xinerama" = "x"
14613 then
14614 ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14616 else
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14620 ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14624 conftest$ac_exeext conftest.$ac_ext
14625 LIBS=$ac_get_soname_save_LIBS
14627 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
14628 echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
14629 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14631 cat >>confdefs.h <<_ACEOF
14632 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
14633 _ACEOF
14637 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14638 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
14639 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642 ac_get_soname_save_LIBS=$LIBS
14643 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14644 cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h. */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14651 /* Override any GCC internal prototype to avoid an error.
14652 Use char because int might match the return type of a GCC
14653 builtin and then its argument prototype would still apply. */
14654 #ifdef __cplusplus
14655 extern "C"
14656 #endif
14657 char XRenderQueryExtension ();
14659 main ()
14661 return XRenderQueryExtension ();
14663 return 0;
14665 _ACEOF
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (ac_try="$ac_link"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_link") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest$ac_exeext &&
14683 $as_test_x conftest$ac_exeext; then
14684 case "$LIBEXT" in
14685 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'` ;;
14686 so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14687 esac
14688 if test "x$ac_cv_lib_soname_Xrender" = "x"
14689 then
14690 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14692 else
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14700 conftest$ac_exeext conftest.$ac_ext
14701 LIBS=$ac_get_soname_save_LIBS
14703 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14704 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
14705 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14707 cat >>confdefs.h <<_ACEOF
14708 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14709 _ACEOF
14713 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14714 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
14715 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718 ac_get_soname_save_LIBS=$LIBS
14719 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14720 cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h. */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14727 /* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
14730 #ifdef __cplusplus
14731 extern "C"
14732 #endif
14733 char XRRQueryExtension ();
14735 main ()
14737 return XRRQueryExtension ();
14739 return 0;
14741 _ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (ac_try="$ac_link"
14744 case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14747 esac
14748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749 (eval "$ac_link") 2>conftest.er1
14750 ac_status=$?
14751 grep -v '^ *+' conftest.er1 >conftest.err
14752 rm -f conftest.er1
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } && {
14756 test -z "$ac_c_werror_flag" ||
14757 test ! -s conftest.err
14758 } && test -s conftest$ac_exeext &&
14759 $as_test_x conftest$ac_exeext; then
14760 case "$LIBEXT" in
14761 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'` ;;
14762 so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14763 esac
14764 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14765 then
14766 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14776 conftest$ac_exeext conftest.$ac_ext
14777 LIBS=$ac_get_soname_save_LIBS
14779 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14780 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
14781 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14783 cat >>confdefs.h <<_ACEOF
14784 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14785 _ACEOF
14789 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14790 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
14791 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794 ac_get_soname_save_LIBS=$LIBS
14795 LIBS="-lfreetype $X_LIBS $LIBS"
14796 cat >conftest.$ac_ext <<_ACEOF
14797 /* confdefs.h. */
14798 _ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14803 /* Override any GCC internal prototype to avoid an error.
14804 Use char because int might match the return type of a GCC
14805 builtin and then its argument prototype would still apply. */
14806 #ifdef __cplusplus
14807 extern "C"
14808 #endif
14809 char FT_Init_FreeType ();
14811 main ()
14813 return FT_Init_FreeType ();
14815 return 0;
14817 _ACEOF
14818 rm -f conftest.$ac_objext conftest$ac_exeext
14819 if { (ac_try="$ac_link"
14820 case "(($ac_try" in
14821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14822 *) ac_try_echo=$ac_try;;
14823 esac
14824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14825 (eval "$ac_link") 2>conftest.er1
14826 ac_status=$?
14827 grep -v '^ *+' conftest.er1 >conftest.err
14828 rm -f conftest.er1
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } && {
14832 test -z "$ac_c_werror_flag" ||
14833 test ! -s conftest.err
14834 } && test -s conftest$ac_exeext &&
14835 $as_test_x conftest$ac_exeext; then
14836 case "$LIBEXT" in
14837 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'` ;;
14838 so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14839 esac
14840 if test "x$ac_cv_lib_soname_freetype" = "x"
14841 then
14842 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14844 else
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14852 conftest$ac_exeext conftest.$ac_ext
14853 LIBS=$ac_get_soname_save_LIBS
14855 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14856 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
14857 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14859 cat >>confdefs.h <<_ACEOF
14860 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14861 _ACEOF
14865 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
14866 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
14867 if test "${ac_cv_lib_soname_GL+set}" = set; then
14868 echo $ECHO_N "(cached) $ECHO_C" >&6
14869 else
14870 ac_get_soname_save_LIBS=$LIBS
14871 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14872 cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h. */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14879 /* Override any GCC internal prototype to avoid an error.
14880 Use char because int might match the return type of a GCC
14881 builtin and then its argument prototype would still apply. */
14882 #ifdef __cplusplus
14883 extern "C"
14884 #endif
14885 char glXQueryExtension ();
14887 main ()
14889 return glXQueryExtension ();
14891 return 0;
14893 _ACEOF
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (ac_try="$ac_link"
14896 case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14899 esac
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901 (eval "$ac_link") 2>conftest.er1
14902 ac_status=$?
14903 grep -v '^ *+' conftest.er1 >conftest.err
14904 rm -f conftest.er1
14905 cat conftest.err >&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } && {
14908 test -z "$ac_c_werror_flag" ||
14909 test ! -s conftest.err
14910 } && test -s conftest$ac_exeext &&
14911 $as_test_x conftest$ac_exeext; then
14912 case "$LIBEXT" in
14913 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'` ;;
14914 so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14915 esac
14916 if test "x$ac_cv_lib_soname_GL" = "x"
14917 then
14918 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14920 else
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14924 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14928 conftest$ac_exeext conftest.$ac_ext
14929 LIBS=$ac_get_soname_save_LIBS
14931 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14932 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
14933 if test "${ac_cv_lib_soname_GL+set}" = set; then
14935 cat >>confdefs.h <<_ACEOF
14936 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14937 _ACEOF
14941 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
14942 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
14943 if test "${ac_cv_lib_soname_hal+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 else
14946 ac_get_soname_save_LIBS=$LIBS
14947 LIBS="-lhal $LIBS"
14948 cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h. */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14955 /* Override any GCC internal prototype to avoid an error.
14956 Use char because int might match the return type of a GCC
14957 builtin and then its argument prototype would still apply. */
14958 #ifdef __cplusplus
14959 extern "C"
14960 #endif
14961 char libhal_ctx_new ();
14963 main ()
14965 return libhal_ctx_new ();
14967 return 0;
14969 _ACEOF
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (ac_try="$ac_link"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_link") 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest$ac_exeext &&
14987 $as_test_x conftest$ac_exeext; then
14988 case "$LIBEXT" in
14989 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'` ;;
14990 so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14991 esac
14992 if test "x$ac_cv_lib_soname_hal" = "x"
14993 then
14994 ac_cv_lib_soname_hal="libhal.$LIBEXT"
14996 else
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 ac_cv_lib_soname_hal="libhal.$LIBEXT"
15003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15004 conftest$ac_exeext conftest.$ac_ext
15005 LIBS=$ac_get_soname_save_LIBS
15007 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
15008 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
15009 if test "${ac_cv_lib_soname_hal+set}" = set; then
15011 cat >>confdefs.h <<_ACEOF
15012 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
15013 _ACEOF
15017 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
15018 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
15019 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022 ac_get_soname_save_LIBS=$LIBS
15023 LIBS="-ltxc_dxtn $LIBS"
15024 cat >conftest.$ac_ext <<_ACEOF
15025 /* confdefs.h. */
15026 _ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15031 /* Override any GCC internal prototype to avoid an error.
15032 Use char because int might match the return type of a GCC
15033 builtin and then its argument prototype would still apply. */
15034 #ifdef __cplusplus
15035 extern "C"
15036 #endif
15037 char fetch_2d_texel_rgba_dxt1 ();
15039 main ()
15041 return fetch_2d_texel_rgba_dxt1 ();
15043 return 0;
15045 _ACEOF
15046 rm -f conftest.$ac_objext conftest$ac_exeext
15047 if { (ac_try="$ac_link"
15048 case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15051 esac
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_link") 2>conftest.er1
15054 ac_status=$?
15055 grep -v '^ *+' conftest.er1 >conftest.err
15056 rm -f conftest.er1
15057 cat conftest.err >&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } && {
15060 test -z "$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 } && test -s conftest$ac_exeext &&
15063 $as_test_x conftest$ac_exeext; then
15064 case "$LIBEXT" in
15065 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'` ;;
15066 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'` ;;
15067 esac
15068 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15069 then
15070 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15072 else
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15080 conftest$ac_exeext conftest.$ac_ext
15081 LIBS=$ac_get_soname_save_LIBS
15083 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15084 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
15085 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15087 cat >>confdefs.h <<_ACEOF
15088 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15089 _ACEOF
15093 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
15094 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
15095 if test "${ac_cv_lib_soname_cups+set}" = set; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15097 else
15098 ac_get_soname_save_LIBS=$LIBS
15099 LIBS="-lcups $LIBS"
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h. */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15107 /* Override any GCC internal prototype to avoid an error.
15108 Use char because int might match the return type of a GCC
15109 builtin and then its argument prototype would still apply. */
15110 #ifdef __cplusplus
15111 extern "C"
15112 #endif
15113 char cupsGetDefault ();
15115 main ()
15117 return cupsGetDefault ();
15119 return 0;
15121 _ACEOF
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (ac_try="$ac_link"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127 esac
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_link") 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && {
15136 test -z "$ac_c_werror_flag" ||
15137 test ! -s conftest.err
15138 } && test -s conftest$ac_exeext &&
15139 $as_test_x conftest$ac_exeext; then
15140 case "$LIBEXT" in
15141 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'` ;;
15142 so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15143 esac
15144 if test "x$ac_cv_lib_soname_cups" = "x"
15145 then
15146 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15148 else
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15156 conftest$ac_exeext conftest.$ac_ext
15157 LIBS=$ac_get_soname_save_LIBS
15159 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15160 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
15161 if test "${ac_cv_lib_soname_cups+set}" = set; then
15163 cat >>confdefs.h <<_ACEOF
15164 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15165 _ACEOF
15169 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
15170 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
15171 if test "${ac_cv_lib_soname_jack+set}" = set; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 else
15174 ac_get_soname_save_LIBS=$LIBS
15175 LIBS="-ljack $LIBS"
15176 cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h. */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15183 /* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 char jack_client_new ();
15191 main ()
15193 return jack_client_new ();
15195 return 0;
15197 _ACEOF
15198 rm -f conftest.$ac_objext conftest$ac_exeext
15199 if { (ac_try="$ac_link"
15200 case "(($ac_try" in
15201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202 *) ac_try_echo=$ac_try;;
15203 esac
15204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205 (eval "$ac_link") 2>conftest.er1
15206 ac_status=$?
15207 grep -v '^ *+' conftest.er1 >conftest.err
15208 rm -f conftest.er1
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } && {
15212 test -z "$ac_c_werror_flag" ||
15213 test ! -s conftest.err
15214 } && test -s conftest$ac_exeext &&
15215 $as_test_x conftest$ac_exeext; then
15216 case "$LIBEXT" in
15217 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'` ;;
15218 so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15219 esac
15220 if test "x$ac_cv_lib_soname_jack" = "x"
15221 then
15222 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15224 else
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15228 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15232 conftest$ac_exeext conftest.$ac_ext
15233 LIBS=$ac_get_soname_save_LIBS
15235 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15236 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
15237 if test "${ac_cv_lib_soname_jack+set}" = set; then
15239 cat >>confdefs.h <<_ACEOF
15240 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15241 _ACEOF
15245 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15246 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
15247 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250 ac_get_soname_save_LIBS=$LIBS
15251 LIBS="-lfontconfig $LIBS"
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h. */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15259 /* Override any GCC internal prototype to avoid an error.
15260 Use char because int might match the return type of a GCC
15261 builtin and then its argument prototype would still apply. */
15262 #ifdef __cplusplus
15263 extern "C"
15264 #endif
15265 char FcInit ();
15267 main ()
15269 return FcInit ();
15271 return 0;
15273 _ACEOF
15274 rm -f conftest.$ac_objext conftest$ac_exeext
15275 if { (ac_try="$ac_link"
15276 case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15279 esac
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_link") 2>conftest.er1
15282 ac_status=$?
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } && {
15288 test -z "$ac_c_werror_flag" ||
15289 test ! -s conftest.err
15290 } && test -s conftest$ac_exeext &&
15291 $as_test_x conftest$ac_exeext; then
15292 case "$LIBEXT" in
15293 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'` ;;
15294 so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15295 esac
15296 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15297 then
15298 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15300 else
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15308 conftest$ac_exeext conftest.$ac_ext
15309 LIBS=$ac_get_soname_save_LIBS
15311 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15312 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
15313 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15315 cat >>confdefs.h <<_ACEOF
15316 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15317 _ACEOF
15321 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
15322 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
15323 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326 ac_get_soname_save_LIBS=$LIBS
15327 LIBS="-lssl $LIBS"
15328 cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h. */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15335 /* Override any GCC internal prototype to avoid an error.
15336 Use char because int might match the return type of a GCC
15337 builtin and then its argument prototype would still apply. */
15338 #ifdef __cplusplus
15339 extern "C"
15340 #endif
15341 char SSL_library_init ();
15343 main ()
15345 return SSL_library_init ();
15347 return 0;
15349 _ACEOF
15350 rm -f conftest.$ac_objext conftest$ac_exeext
15351 if { (ac_try="$ac_link"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>conftest.er1
15358 ac_status=$?
15359 grep -v '^ *+' conftest.er1 >conftest.err
15360 rm -f conftest.er1
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } && {
15364 test -z "$ac_c_werror_flag" ||
15365 test ! -s conftest.err
15366 } && test -s conftest$ac_exeext &&
15367 $as_test_x conftest$ac_exeext; then
15368 case "$LIBEXT" in
15369 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'` ;;
15370 so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15371 esac
15372 if test "x$ac_cv_lib_soname_ssl" = "x"
15373 then
15374 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15376 else
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15380 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15384 conftest$ac_exeext conftest.$ac_ext
15385 LIBS=$ac_get_soname_save_LIBS
15387 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15388 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
15389 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15391 cat >>confdefs.h <<_ACEOF
15392 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15393 _ACEOF
15397 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15398 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
15399 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402 ac_get_soname_save_LIBS=$LIBS
15403 LIBS="-lcrypto $LIBS"
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h. */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15411 /* Override any GCC internal prototype to avoid an error.
15412 Use char because int might match the return type of a GCC
15413 builtin and then its argument prototype would still apply. */
15414 #ifdef __cplusplus
15415 extern "C"
15416 #endif
15417 char BIO_new_socket ();
15419 main ()
15421 return BIO_new_socket ();
15423 return 0;
15425 _ACEOF
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (ac_try="$ac_link"
15428 case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_link") 2>conftest.er1
15434 ac_status=$?
15435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } && {
15440 test -z "$ac_c_werror_flag" ||
15441 test ! -s conftest.err
15442 } && test -s conftest$ac_exeext &&
15443 $as_test_x conftest$ac_exeext; then
15444 case "$LIBEXT" in
15445 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'` ;;
15446 so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15447 esac
15448 if test "x$ac_cv_lib_soname_crypto" = "x"
15449 then
15450 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15452 else
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15460 conftest$ac_exeext conftest.$ac_ext
15461 LIBS=$ac_get_soname_save_LIBS
15463 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15464 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
15465 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15467 cat >>confdefs.h <<_ACEOF
15468 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15469 _ACEOF
15473 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15474 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
15475 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 else
15478 ac_get_soname_save_LIBS=$LIBS
15479 LIBS="-lncurses $LIBS"
15480 cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h. */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15487 /* Override any GCC internal prototype to avoid an error.
15488 Use char because int might match the return type of a GCC
15489 builtin and then its argument prototype would still apply. */
15490 #ifdef __cplusplus
15491 extern "C"
15492 #endif
15493 char waddch ();
15495 main ()
15497 return waddch ();
15499 return 0;
15501 _ACEOF
15502 rm -f conftest.$ac_objext conftest$ac_exeext
15503 if { (ac_try="$ac_link"
15504 case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15507 esac
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_link") 2>conftest.er1
15510 ac_status=$?
15511 grep -v '^ *+' conftest.er1 >conftest.err
15512 rm -f conftest.er1
15513 cat conftest.err >&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } && {
15516 test -z "$ac_c_werror_flag" ||
15517 test ! -s conftest.err
15518 } && test -s conftest$ac_exeext &&
15519 $as_test_x conftest$ac_exeext; then
15520 case "$LIBEXT" in
15521 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'` ;;
15522 so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15523 esac
15524 if test "x$ac_cv_lib_soname_ncurses" = "x"
15525 then
15526 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15528 else
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15536 conftest$ac_exeext conftest.$ac_ext
15537 LIBS=$ac_get_soname_save_LIBS
15539 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15540 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
15541 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15543 cat >>confdefs.h <<_ACEOF
15544 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15545 _ACEOF
15549 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15550 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
15551 if test "${ac_cv_lib_soname_curses+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554 ac_get_soname_save_LIBS=$LIBS
15555 LIBS="-lcurses $LIBS"
15556 cat >conftest.$ac_ext <<_ACEOF
15557 /* confdefs.h. */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15563 /* Override any GCC internal prototype to avoid an error.
15564 Use char because int might match the return type of a GCC
15565 builtin and then its argument prototype would still apply. */
15566 #ifdef __cplusplus
15567 extern "C"
15568 #endif
15569 char waddch ();
15571 main ()
15573 return waddch ();
15575 return 0;
15577 _ACEOF
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (ac_try="$ac_link"
15580 case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_link") 2>conftest.er1
15586 ac_status=$?
15587 grep -v '^ *+' conftest.er1 >conftest.err
15588 rm -f conftest.er1
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } && {
15592 test -z "$ac_c_werror_flag" ||
15593 test ! -s conftest.err
15594 } && test -s conftest$ac_exeext &&
15595 $as_test_x conftest$ac_exeext; then
15596 case "$LIBEXT" in
15597 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'` ;;
15598 so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15599 esac
15600 if test "x$ac_cv_lib_soname_curses" = "x"
15601 then
15602 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15604 else
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15612 conftest$ac_exeext conftest.$ac_ext
15613 LIBS=$ac_get_soname_save_LIBS
15615 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15616 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
15617 if test "${ac_cv_lib_soname_curses+set}" = set; then
15619 cat >>confdefs.h <<_ACEOF
15620 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15621 _ACEOF
15625 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15626 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
15627 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630 ac_get_soname_save_LIBS=$LIBS
15631 LIBS="-ljpeg $LIBS"
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h. */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15639 /* Override any GCC internal prototype to avoid an error.
15640 Use char because int might match the return type of a GCC
15641 builtin and then its argument prototype would still apply. */
15642 #ifdef __cplusplus
15643 extern "C"
15644 #endif
15645 char jpeg_start_decompress ();
15647 main ()
15649 return jpeg_start_decompress ();
15651 return 0;
15653 _ACEOF
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_link") 2>conftest.er1
15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && {
15668 test -z "$ac_c_werror_flag" ||
15669 test ! -s conftest.err
15670 } && test -s conftest$ac_exeext &&
15671 $as_test_x conftest$ac_exeext; then
15672 case "$LIBEXT" in
15673 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'` ;;
15674 so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15675 esac
15676 if test "x$ac_cv_lib_soname_jpeg" = "x"
15677 then
15678 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15680 else
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15688 conftest$ac_exeext conftest.$ac_ext
15689 LIBS=$ac_get_soname_save_LIBS
15691 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15692 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
15693 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15695 cat >>confdefs.h <<_ACEOF
15696 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15697 _ACEOF
15701 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15702 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
15703 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706 ac_get_soname_save_LIBS=$LIBS
15707 LIBS="-lcapi20 $LIBS"
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h. */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15715 /* Override any GCC internal prototype to avoid an error.
15716 Use char because int might match the return type of a GCC
15717 builtin and then its argument prototype would still apply. */
15718 #ifdef __cplusplus
15719 extern "C"
15720 #endif
15721 char capi20_isinstalled ();
15723 main ()
15725 return capi20_isinstalled ();
15727 return 0;
15729 _ACEOF
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (ac_try="$ac_link"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_link") 2>conftest.er1
15738 ac_status=$?
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest$ac_exeext &&
15747 $as_test_x conftest$ac_exeext; then
15748 case "$LIBEXT" in
15749 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'` ;;
15750 so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15751 esac
15752 if test "x$ac_cv_lib_soname_capi20" = "x"
15753 then
15754 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15756 else
15757 echo "$as_me: failed program was:" >&5
15758 sed 's/^/| /' conftest.$ac_ext >&5
15760 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15764 conftest$ac_exeext conftest.$ac_ext
15765 LIBS=$ac_get_soname_save_LIBS
15767 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15768 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
15769 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15771 cat >>confdefs.h <<_ACEOF
15772 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15773 _ACEOF
15852 for ac_func in \
15853 _pclose \
15854 _popen \
15855 _snprintf \
15856 _spawnvp \
15857 _stricmp \
15858 _strnicmp \
15859 _vsnprintf \
15860 asctime_r \
15861 chsize \
15862 clone \
15863 connect \
15864 dlopen \
15865 epoll_create \
15866 ffs \
15867 finite \
15868 fork \
15869 fpclass \
15870 fstatfs \
15871 fstatvfs \
15872 ftruncate \
15873 futimes \
15874 futimesat \
15875 getaddrinfo \
15876 getdirentries \
15877 gethostbyname \
15878 getnameinfo \
15879 getnetbyname \
15880 getopt_long \
15881 getpagesize \
15882 getprotobyname \
15883 getprotobynumber \
15884 getpwuid \
15885 getservbyport \
15886 gettid \
15887 gettimeofday \
15888 getuid \
15889 inet_aton \
15890 inet_network \
15891 kqueue \
15892 lstat \
15893 memmove \
15894 mmap \
15895 pclose \
15896 poll \
15897 popen \
15898 prctl \
15899 pread \
15900 pwrite \
15901 readlink \
15902 rfork \
15903 sched_yield \
15904 select \
15905 sendmsg \
15906 setrlimit \
15907 settimeofday \
15908 sigaltstack \
15909 sigprocmask \
15910 snprintf \
15911 spawnvp \
15912 statfs \
15913 statvfs \
15914 strcasecmp \
15915 strerror \
15916 strncasecmp \
15917 strtold \
15918 tcgetattr \
15919 timegm \
15920 usleep \
15921 vsnprintf \
15922 wait4 \
15923 waitpid \
15926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932 cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h. */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15940 #define $ac_func innocuous_$ac_func
15942 /* System header to define __stub macros and hopefully few prototypes,
15943 which can conflict with char $ac_func (); below.
15944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15945 <limits.h> exists even on freestanding compilers. */
15947 #ifdef __STDC__
15948 # include <limits.h>
15949 #else
15950 # include <assert.h>
15951 #endif
15953 #undef $ac_func
15955 /* Override any GCC internal prototype to avoid an error.
15956 Use char because int might match the return type of a GCC
15957 builtin and then its argument prototype would still apply. */
15958 #ifdef __cplusplus
15959 extern "C"
15960 #endif
15961 char $ac_func ();
15962 /* The GNU C library defines this for functions which it implements
15963 to always fail with ENOSYS. Some functions are actually named
15964 something starting with __ and the normal name is an alias. */
15965 #if defined __stub_$ac_func || defined __stub___$ac_func
15966 choke me
15967 #endif
15970 main ()
15972 return $ac_func ();
15974 return 0;
15976 _ACEOF
15977 rm -f conftest.$ac_objext conftest$ac_exeext
15978 if { (ac_try="$ac_link"
15979 case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15982 esac
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_link") 2>conftest.er1
15985 ac_status=$?
15986 grep -v '^ *+' conftest.er1 >conftest.err
15987 rm -f conftest.er1
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } && {
15991 test -z "$ac_c_werror_flag" ||
15992 test ! -s conftest.err
15993 } && test -s conftest$ac_exeext &&
15994 $as_test_x conftest$ac_exeext; then
15995 eval "$as_ac_var=yes"
15996 else
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16000 eval "$as_ac_var=no"
16003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16004 conftest$ac_exeext conftest.$ac_ext
16006 ac_res=`eval echo '${'$as_ac_var'}'`
16007 { echo "$as_me:$LINENO: result: $ac_res" >&5
16008 echo "${ECHO_T}$ac_res" >&6; }
16009 if test `eval echo '${'$as_ac_var'}'` = yes; then
16010 cat >>confdefs.h <<_ACEOF
16011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16012 _ACEOF
16015 done
16018 if test "$ac_cv_func_dlopen" = no
16019 then
16020 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16021 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16022 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025 ac_check_lib_save_LIBS=$LIBS
16026 LIBS="-ldl $LIBS"
16027 cat >conftest.$ac_ext <<_ACEOF
16028 /* confdefs.h. */
16029 _ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h. */
16034 /* Override any GCC internal prototype to avoid an error.
16035 Use char because int might match the return type of a GCC
16036 builtin and then its argument prototype would still apply. */
16037 #ifdef __cplusplus
16038 extern "C"
16039 #endif
16040 char dlopen ();
16042 main ()
16044 return dlopen ();
16046 return 0;
16048 _ACEOF
16049 rm -f conftest.$ac_objext conftest$ac_exeext
16050 if { (ac_try="$ac_link"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_link") 2>conftest.er1
16057 ac_status=$?
16058 grep -v '^ *+' conftest.er1 >conftest.err
16059 rm -f conftest.er1
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest$ac_exeext &&
16066 $as_test_x conftest$ac_exeext; then
16067 ac_cv_lib_dl_dlopen=yes
16068 else
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_cv_lib_dl_dlopen=no
16075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16076 conftest$ac_exeext conftest.$ac_ext
16077 LIBS=$ac_check_lib_save_LIBS
16079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16080 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16081 if test $ac_cv_lib_dl_dlopen = yes; then
16082 cat >>confdefs.h <<\_ACEOF
16083 #define HAVE_DLOPEN 1
16084 _ACEOF
16085 LIBDL="-ldl"
16090 ac_wine_check_funcs_save_LIBS="$LIBS"
16091 LIBS="$LIBS $LIBDL"
16093 for ac_func in dladdr
16095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101 cat >conftest.$ac_ext <<_ACEOF
16102 /* confdefs.h. */
16103 _ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h. */
16107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16109 #define $ac_func innocuous_$ac_func
16111 /* System header to define __stub macros and hopefully few prototypes,
16112 which can conflict with char $ac_func (); below.
16113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16114 <limits.h> exists even on freestanding compilers. */
16116 #ifdef __STDC__
16117 # include <limits.h>
16118 #else
16119 # include <assert.h>
16120 #endif
16122 #undef $ac_func
16124 /* Override any GCC internal prototype to avoid an error.
16125 Use char because int might match the return type of a GCC
16126 builtin and then its argument prototype would still apply. */
16127 #ifdef __cplusplus
16128 extern "C"
16129 #endif
16130 char $ac_func ();
16131 /* The GNU C library defines this for functions which it implements
16132 to always fail with ENOSYS. Some functions are actually named
16133 something starting with __ and the normal name is an alias. */
16134 #if defined __stub_$ac_func || defined __stub___$ac_func
16135 choke me
16136 #endif
16139 main ()
16141 return $ac_func ();
16143 return 0;
16145 _ACEOF
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (ac_try="$ac_link"
16148 case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_link") 2>conftest.er1
16154 ac_status=$?
16155 grep -v '^ *+' conftest.er1 >conftest.err
16156 rm -f conftest.er1
16157 cat conftest.err >&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } && {
16160 test -z "$ac_c_werror_flag" ||
16161 test ! -s conftest.err
16162 } && test -s conftest$ac_exeext &&
16163 $as_test_x conftest$ac_exeext; then
16164 eval "$as_ac_var=yes"
16165 else
16166 echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16169 eval "$as_ac_var=no"
16172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16173 conftest$ac_exeext conftest.$ac_ext
16175 ac_res=`eval echo '${'$as_ac_var'}'`
16176 { echo "$as_me:$LINENO: result: $ac_res" >&5
16177 echo "${ECHO_T}$ac_res" >&6; }
16178 if test `eval echo '${'$as_ac_var'}'` = yes; then
16179 cat >>confdefs.h <<_ACEOF
16180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16181 _ACEOF
16184 done
16186 LIBS="$ac_wine_check_funcs_save_LIBS"
16188 if test "$ac_cv_func_poll" = no
16189 then
16190 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
16191 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
16192 if test "${ac_cv_lib_poll_poll+set}" = set; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 else
16195 ac_check_lib_save_LIBS=$LIBS
16196 LIBS="-lpoll $LIBS"
16197 cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h. */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16204 /* Override any GCC internal prototype to avoid an error.
16205 Use char because int might match the return type of a GCC
16206 builtin and then its argument prototype would still apply. */
16207 #ifdef __cplusplus
16208 extern "C"
16209 #endif
16210 char poll ();
16212 main ()
16214 return poll ();
16216 return 0;
16218 _ACEOF
16219 rm -f conftest.$ac_objext conftest$ac_exeext
16220 if { (ac_try="$ac_link"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_link") 2>conftest.er1
16227 ac_status=$?
16228 grep -v '^ *+' conftest.er1 >conftest.err
16229 rm -f conftest.er1
16230 cat conftest.err >&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } && {
16233 test -z "$ac_c_werror_flag" ||
16234 test ! -s conftest.err
16235 } && test -s conftest$ac_exeext &&
16236 $as_test_x conftest$ac_exeext; then
16237 ac_cv_lib_poll_poll=yes
16238 else
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ac_cv_lib_poll_poll=no
16245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16246 conftest$ac_exeext conftest.$ac_ext
16247 LIBS=$ac_check_lib_save_LIBS
16249 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
16250 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
16251 if test $ac_cv_lib_poll_poll = yes; then
16252 cat >>confdefs.h <<\_ACEOF
16253 #define HAVE_POLL 1
16254 _ACEOF
16255 LIBPOLL="-lpoll"
16261 if test "$ac_cv_func_gethostbyname" = no
16262 then
16264 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
16265 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
16266 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16268 else
16269 ac_check_lib_save_LIBS=$LIBS
16270 LIBS="-lnsl $LIBS"
16271 cat >conftest.$ac_ext <<_ACEOF
16272 /* confdefs.h. */
16273 _ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h. */
16278 /* Override any GCC internal prototype to avoid an error.
16279 Use char because int might match the return type of a GCC
16280 builtin and then its argument prototype would still apply. */
16281 #ifdef __cplusplus
16282 extern "C"
16283 #endif
16284 char gethostbyname ();
16286 main ()
16288 return gethostbyname ();
16290 return 0;
16292 _ACEOF
16293 rm -f conftest.$ac_objext conftest$ac_exeext
16294 if { (ac_try="$ac_link"
16295 case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16298 esac
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_link") 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } && {
16307 test -z "$ac_c_werror_flag" ||
16308 test ! -s conftest.err
16309 } && test -s conftest$ac_exeext &&
16310 $as_test_x conftest$ac_exeext; then
16311 ac_cv_lib_nsl_gethostbyname=yes
16312 else
16313 echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16316 ac_cv_lib_nsl_gethostbyname=no
16319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16320 conftest$ac_exeext conftest.$ac_ext
16321 LIBS=$ac_check_lib_save_LIBS
16323 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
16324 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
16325 if test $ac_cv_lib_nsl_gethostbyname = yes; then
16326 cat >>confdefs.h <<_ACEOF
16327 #define HAVE_LIBNSL 1
16328 _ACEOF
16330 LIBS="-lnsl $LIBS"
16336 if test "$ac_cv_func_connect" = no
16337 then
16339 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
16340 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
16341 if test "${ac_cv_lib_socket_connect+set}" = set; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 else
16344 ac_check_lib_save_LIBS=$LIBS
16345 LIBS="-lsocket $LIBS"
16346 cat >conftest.$ac_ext <<_ACEOF
16347 /* confdefs.h. */
16348 _ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h. */
16353 /* Override any GCC internal prototype to avoid an error.
16354 Use char because int might match the return type of a GCC
16355 builtin and then its argument prototype would still apply. */
16356 #ifdef __cplusplus
16357 extern "C"
16358 #endif
16359 char connect ();
16361 main ()
16363 return connect ();
16365 return 0;
16367 _ACEOF
16368 rm -f conftest.$ac_objext conftest$ac_exeext
16369 if { (ac_try="$ac_link"
16370 case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16373 esac
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_link") 2>conftest.er1
16376 ac_status=$?
16377 grep -v '^ *+' conftest.er1 >conftest.err
16378 rm -f conftest.er1
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } && {
16382 test -z "$ac_c_werror_flag" ||
16383 test ! -s conftest.err
16384 } && test -s conftest$ac_exeext &&
16385 $as_test_x conftest$ac_exeext; then
16386 ac_cv_lib_socket_connect=yes
16387 else
16388 echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16391 ac_cv_lib_socket_connect=no
16394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16395 conftest$ac_exeext conftest.$ac_ext
16396 LIBS=$ac_check_lib_save_LIBS
16398 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
16399 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
16400 if test $ac_cv_lib_socket_connect = yes; then
16401 cat >>confdefs.h <<_ACEOF
16402 #define HAVE_LIBSOCKET 1
16403 _ACEOF
16405 LIBS="-lsocket $LIBS"
16411 if test "$ac_cv_func_inet_aton" = no
16412 then
16414 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16415 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16416 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16418 else
16419 ac_check_lib_save_LIBS=$LIBS
16420 LIBS="-lresolv $LIBS"
16421 cat >conftest.$ac_ext <<_ACEOF
16422 /* confdefs.h. */
16423 _ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16428 /* Override any GCC internal prototype to avoid an error.
16429 Use char because int might match the return type of a GCC
16430 builtin and then its argument prototype would still apply. */
16431 #ifdef __cplusplus
16432 extern "C"
16433 #endif
16434 char inet_aton ();
16436 main ()
16438 return inet_aton ();
16440 return 0;
16442 _ACEOF
16443 rm -f conftest.$ac_objext conftest$ac_exeext
16444 if { (ac_try="$ac_link"
16445 case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16448 esac
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_link") 2>conftest.er1
16451 ac_status=$?
16452 grep -v '^ *+' conftest.er1 >conftest.err
16453 rm -f conftest.er1
16454 cat conftest.err >&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } && {
16457 test -z "$ac_c_werror_flag" ||
16458 test ! -s conftest.err
16459 } && test -s conftest$ac_exeext &&
16460 $as_test_x conftest$ac_exeext; then
16461 ac_cv_lib_resolv_inet_aton=yes
16462 else
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 ac_cv_lib_resolv_inet_aton=no
16469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16470 conftest$ac_exeext conftest.$ac_ext
16471 LIBS=$ac_check_lib_save_LIBS
16473 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16474 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16475 if test $ac_cv_lib_resolv_inet_aton = yes; then
16476 cat >>confdefs.h <<_ACEOF
16477 #define HAVE_LIBRESOLV 1
16478 _ACEOF
16480 LIBS="-lresolv $LIBS"
16487 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16488 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
16489 if test "${ac_cv_c_const+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 else
16492 cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h. */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16500 main ()
16502 /* FIXME: Include the comments suggested by Paul. */
16503 #ifndef __cplusplus
16504 /* Ultrix mips cc rejects this. */
16505 typedef int charset[2];
16506 const charset cs;
16507 /* SunOS 4.1.1 cc rejects this. */
16508 char const *const *pcpcc;
16509 char **ppc;
16510 /* NEC SVR4.0.2 mips cc rejects this. */
16511 struct point {int x, y;};
16512 static struct point const zero = {0,0};
16513 /* AIX XL C 1.02.0.0 rejects this.
16514 It does not let you subtract one const X* pointer from another in
16515 an arm of an if-expression whose if-part is not a constant
16516 expression */
16517 const char *g = "string";
16518 pcpcc = &g + (g ? g-g : 0);
16519 /* HPUX 7.0 cc rejects these. */
16520 ++pcpcc;
16521 ppc = (char**) pcpcc;
16522 pcpcc = (char const *const *) ppc;
16523 { /* SCO 3.2v4 cc rejects this. */
16524 char *t;
16525 char const *s = 0 ? (char *) 0 : (char const *) 0;
16527 *t++ = 0;
16528 if (s) return 0;
16530 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16531 int x[] = {25, 17};
16532 const int *foo = &x[0];
16533 ++foo;
16535 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16536 typedef const int *iptr;
16537 iptr p = 0;
16538 ++p;
16540 { /* AIX XL C 1.02.0.0 rejects this saying
16541 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16542 struct s { int j; const int *ap[3]; };
16543 struct s *b; b->j = 5;
16545 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16546 const int foo = 10;
16547 if (!foo) return 0;
16549 return !cs[0] && !zero.x;
16550 #endif
16553 return 0;
16555 _ACEOF
16556 rm -f conftest.$ac_objext
16557 if { (ac_try="$ac_compile"
16558 case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16561 esac
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_compile") 2>conftest.er1
16564 ac_status=$?
16565 grep -v '^ *+' conftest.er1 >conftest.err
16566 rm -f conftest.er1
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } && {
16570 test -z "$ac_c_werror_flag" ||
16571 test ! -s conftest.err
16572 } && test -s conftest.$ac_objext; then
16573 ac_cv_c_const=yes
16574 else
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_c_const=no
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16584 echo "${ECHO_T}$ac_cv_c_const" >&6; }
16585 if test $ac_cv_c_const = no; then
16587 cat >>confdefs.h <<\_ACEOF
16588 #define const
16589 _ACEOF
16593 { echo "$as_me:$LINENO: checking for inline" >&5
16594 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
16595 if test "${ac_cv_c_inline+set}" = set; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 else
16598 ac_cv_c_inline=no
16599 for ac_kw in inline __inline__ __inline; do
16600 cat >conftest.$ac_ext <<_ACEOF
16601 /* confdefs.h. */
16602 _ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16606 #ifndef __cplusplus
16607 typedef int foo_t;
16608 static $ac_kw foo_t static_foo () {return 0; }
16609 $ac_kw foo_t foo () {return 0; }
16610 #endif
16612 _ACEOF
16613 rm -f conftest.$ac_objext
16614 if { (ac_try="$ac_compile"
16615 case "(($ac_try" in
16616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16617 *) ac_try_echo=$ac_try;;
16618 esac
16619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16620 (eval "$ac_compile") 2>conftest.er1
16621 ac_status=$?
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } && {
16627 test -z "$ac_c_werror_flag" ||
16628 test ! -s conftest.err
16629 } && test -s conftest.$ac_objext; then
16630 ac_cv_c_inline=$ac_kw
16631 else
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639 test "$ac_cv_c_inline" != no && break
16640 done
16643 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16644 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16647 case $ac_cv_c_inline in
16648 inline | yes) ;;
16650 case $ac_cv_c_inline in
16651 no) ac_val=;;
16652 *) ac_val=$ac_cv_c_inline;;
16653 esac
16654 cat >>confdefs.h <<_ACEOF
16655 #ifndef __cplusplus
16656 #define inline $ac_val
16657 #endif
16658 _ACEOF
16660 esac
16662 { echo "$as_me:$LINENO: checking for mode_t" >&5
16663 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
16664 if test "${ac_cv_type_mode_t+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667 cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h. */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673 $ac_includes_default
16674 typedef mode_t ac__type_new_;
16676 main ()
16678 if ((ac__type_new_ *) 0)
16679 return 0;
16680 if (sizeof (ac__type_new_))
16681 return 0;
16683 return 0;
16685 _ACEOF
16686 rm -f conftest.$ac_objext
16687 if { (ac_try="$ac_compile"
16688 case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_compile") 2>conftest.er1
16694 ac_status=$?
16695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } && {
16700 test -z "$ac_c_werror_flag" ||
16701 test ! -s conftest.err
16702 } && test -s conftest.$ac_objext; then
16703 ac_cv_type_mode_t=yes
16704 else
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 ac_cv_type_mode_t=no
16711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16714 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
16715 if test $ac_cv_type_mode_t = yes; then
16717 cat >>confdefs.h <<_ACEOF
16718 #define HAVE_MODE_T 1
16719 _ACEOF
16723 { echo "$as_me:$LINENO: checking for off_t" >&5
16724 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
16725 if test "${ac_cv_type_off_t+set}" = set; then
16726 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 else
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 $ac_includes_default
16735 typedef off_t ac__type_new_;
16737 main ()
16739 if ((ac__type_new_ *) 0)
16740 return 0;
16741 if (sizeof (ac__type_new_))
16742 return 0;
16744 return 0;
16746 _ACEOF
16747 rm -f conftest.$ac_objext
16748 if { (ac_try="$ac_compile"
16749 case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16752 esac
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_compile") 2>conftest.er1
16755 ac_status=$?
16756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } && {
16761 test -z "$ac_c_werror_flag" ||
16762 test ! -s conftest.err
16763 } && test -s conftest.$ac_objext; then
16764 ac_cv_type_off_t=yes
16765 else
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 ac_cv_type_off_t=no
16772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16774 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16775 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
16776 if test $ac_cv_type_off_t = yes; then
16778 cat >>confdefs.h <<_ACEOF
16779 #define HAVE_OFF_T 1
16780 _ACEOF
16784 { echo "$as_me:$LINENO: checking for pid_t" >&5
16785 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16786 if test "${ac_cv_type_pid_t+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 else
16789 cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h. */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 $ac_includes_default
16796 typedef pid_t ac__type_new_;
16798 main ()
16800 if ((ac__type_new_ *) 0)
16801 return 0;
16802 if (sizeof (ac__type_new_))
16803 return 0;
16805 return 0;
16807 _ACEOF
16808 rm -f conftest.$ac_objext
16809 if { (ac_try="$ac_compile"
16810 case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16813 esac
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_compile") 2>conftest.er1
16816 ac_status=$?
16817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } && {
16822 test -z "$ac_c_werror_flag" ||
16823 test ! -s conftest.err
16824 } && test -s conftest.$ac_objext; then
16825 ac_cv_type_pid_t=yes
16826 else
16827 echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16830 ac_cv_type_pid_t=no
16833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16835 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16836 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16837 if test $ac_cv_type_pid_t = yes; then
16839 cat >>confdefs.h <<_ACEOF
16840 #define HAVE_PID_T 1
16841 _ACEOF
16845 { echo "$as_me:$LINENO: checking for size_t" >&5
16846 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16847 if test "${ac_cv_type_size_t+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h. */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 $ac_includes_default
16857 typedef size_t ac__type_new_;
16859 main ()
16861 if ((ac__type_new_ *) 0)
16862 return 0;
16863 if (sizeof (ac__type_new_))
16864 return 0;
16866 return 0;
16868 _ACEOF
16869 rm -f conftest.$ac_objext
16870 if { (ac_try="$ac_compile"
16871 case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16874 esac
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_compile") 2>conftest.er1
16877 ac_status=$?
16878 grep -v '^ *+' conftest.er1 >conftest.err
16879 rm -f conftest.er1
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } && {
16883 test -z "$ac_c_werror_flag" ||
16884 test ! -s conftest.err
16885 } && test -s conftest.$ac_objext; then
16886 ac_cv_type_size_t=yes
16887 else
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 ac_cv_type_size_t=no
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16897 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16898 if test $ac_cv_type_size_t = yes; then
16900 cat >>confdefs.h <<_ACEOF
16901 #define HAVE_SIZE_T 1
16902 _ACEOF
16906 { echo "$as_me:$LINENO: checking for ssize_t" >&5
16907 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
16908 if test "${ac_cv_type_ssize_t+set}" = set; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911 cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h. */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16917 $ac_includes_default
16918 typedef ssize_t ac__type_new_;
16920 main ()
16922 if ((ac__type_new_ *) 0)
16923 return 0;
16924 if (sizeof (ac__type_new_))
16925 return 0;
16927 return 0;
16929 _ACEOF
16930 rm -f conftest.$ac_objext
16931 if { (ac_try="$ac_compile"
16932 case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935 esac
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_compile") 2>conftest.er1
16938 ac_status=$?
16939 grep -v '^ *+' conftest.er1 >conftest.err
16940 rm -f conftest.er1
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } && {
16944 test -z "$ac_c_werror_flag" ||
16945 test ! -s conftest.err
16946 } && test -s conftest.$ac_objext; then
16947 ac_cv_type_ssize_t=yes
16948 else
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16952 ac_cv_type_ssize_t=no
16955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16957 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16958 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
16959 if test $ac_cv_type_ssize_t = yes; then
16961 cat >>confdefs.h <<_ACEOF
16962 #define HAVE_SSIZE_T 1
16963 _ACEOF
16967 { echo "$as_me:$LINENO: checking for long long" >&5
16968 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
16969 if test "${ac_cv_type_long_long+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972 cat >conftest.$ac_ext <<_ACEOF
16973 /* confdefs.h. */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 $ac_includes_default
16979 typedef long long ac__type_new_;
16981 main ()
16983 if ((ac__type_new_ *) 0)
16984 return 0;
16985 if (sizeof (ac__type_new_))
16986 return 0;
16988 return 0;
16990 _ACEOF
16991 rm -f conftest.$ac_objext
16992 if { (ac_try="$ac_compile"
16993 case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996 esac
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_compile") 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } && {
17005 test -z "$ac_c_werror_flag" ||
17006 test ! -s conftest.err
17007 } && test -s conftest.$ac_objext; then
17008 ac_cv_type_long_long=yes
17009 else
17010 echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17013 ac_cv_type_long_long=no
17016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17018 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17019 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
17020 if test $ac_cv_type_long_long = yes; then
17022 cat >>confdefs.h <<_ACEOF
17023 #define HAVE_LONG_LONG 1
17024 _ACEOF
17028 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17029 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
17030 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033 cat >conftest.$ac_ext <<_ACEOF
17034 /* confdefs.h. */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 $ac_includes_default
17040 typedef fsblkcnt_t ac__type_new_;
17042 main ()
17044 if ((ac__type_new_ *) 0)
17045 return 0;
17046 if (sizeof (ac__type_new_))
17047 return 0;
17049 return 0;
17051 _ACEOF
17052 rm -f conftest.$ac_objext
17053 if { (ac_try="$ac_compile"
17054 case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057 esac
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_compile") 2>conftest.er1
17060 ac_status=$?
17061 grep -v '^ *+' conftest.er1 >conftest.err
17062 rm -f conftest.er1
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } && {
17066 test -z "$ac_c_werror_flag" ||
17067 test ! -s conftest.err
17068 } && test -s conftest.$ac_objext; then
17069 ac_cv_type_fsblkcnt_t=yes
17070 else
17071 echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17074 ac_cv_type_fsblkcnt_t=no
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17079 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17080 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
17081 if test $ac_cv_type_fsblkcnt_t = yes; then
17083 cat >>confdefs.h <<_ACEOF
17084 #define HAVE_FSBLKCNT_T 1
17085 _ACEOF
17089 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17090 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
17091 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 else
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h. */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100 $ac_includes_default
17101 typedef fsfilcnt_t ac__type_new_;
17103 main ()
17105 if ((ac__type_new_ *) 0)
17106 return 0;
17107 if (sizeof (ac__type_new_))
17108 return 0;
17110 return 0;
17112 _ACEOF
17113 rm -f conftest.$ac_objext
17114 if { (ac_try="$ac_compile"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_compile") 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } && {
17127 test -z "$ac_c_werror_flag" ||
17128 test ! -s conftest.err
17129 } && test -s conftest.$ac_objext; then
17130 ac_cv_type_fsfilcnt_t=yes
17131 else
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17135 ac_cv_type_fsfilcnt_t=no
17138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17140 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17141 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
17142 if test $ac_cv_type_fsfilcnt_t = yes; then
17144 cat >>confdefs.h <<_ACEOF
17145 #define HAVE_FSFILCNT_T 1
17146 _ACEOF
17151 { echo "$as_me:$LINENO: checking for sigset_t" >&5
17152 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
17153 if test "${ac_cv_type_sigset_t+set}" = set; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156 cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h. */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 #include <signal.h>
17164 typedef sigset_t ac__type_new_;
17166 main ()
17168 if ((ac__type_new_ *) 0)
17169 return 0;
17170 if (sizeof (ac__type_new_))
17171 return 0;
17173 return 0;
17175 _ACEOF
17176 rm -f conftest.$ac_objext
17177 if { (ac_try="$ac_compile"
17178 case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17181 esac
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_compile") 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } && {
17190 test -z "$ac_c_werror_flag" ||
17191 test ! -s conftest.err
17192 } && test -s conftest.$ac_objext; then
17193 ac_cv_type_sigset_t=yes
17194 else
17195 echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 ac_cv_type_sigset_t=no
17201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17203 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17204 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
17205 if test $ac_cv_type_sigset_t = yes; then
17207 cat >>confdefs.h <<_ACEOF
17208 #define HAVE_SIGSET_T 1
17209 _ACEOF
17214 { echo "$as_me:$LINENO: checking for request_sense" >&5
17215 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
17216 if test "${ac_cv_type_request_sense+set}" = set; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 else
17219 cat >conftest.$ac_ext <<_ACEOF
17220 /* confdefs.h. */
17221 _ACEOF
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h. */
17225 #include <linux/cdrom.h>
17227 typedef request_sense ac__type_new_;
17229 main ()
17231 if ((ac__type_new_ *) 0)
17232 return 0;
17233 if (sizeof (ac__type_new_))
17234 return 0;
17236 return 0;
17238 _ACEOF
17239 rm -f conftest.$ac_objext
17240 if { (ac_try="$ac_compile"
17241 case "(($ac_try" in
17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17244 esac
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_compile") 2>conftest.er1
17247 ac_status=$?
17248 grep -v '^ *+' conftest.er1 >conftest.err
17249 rm -f conftest.er1
17250 cat conftest.err >&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } && {
17253 test -z "$ac_c_werror_flag" ||
17254 test ! -s conftest.err
17255 } && test -s conftest.$ac_objext; then
17256 ac_cv_type_request_sense=yes
17257 else
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17261 ac_cv_type_request_sense=no
17264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17266 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17267 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
17268 if test $ac_cv_type_request_sense = yes; then
17270 cat >>confdefs.h <<_ACEOF
17271 #define HAVE_REQUEST_SENSE 1
17272 _ACEOF
17278 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
17279 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
17280 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283 cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h. */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 #ifdef HAVE_LINUX_INPUT_H
17290 #include <linux/input.h>
17291 #endif
17294 main ()
17296 static struct ff_effect ac_aggr;
17297 if (ac_aggr.direction)
17298 return 0;
17300 return 0;
17302 _ACEOF
17303 rm -f conftest.$ac_objext
17304 if { (ac_try="$ac_compile"
17305 case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_compile") 2>conftest.er1
17311 ac_status=$?
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } && {
17317 test -z "$ac_c_werror_flag" ||
17318 test ! -s conftest.err
17319 } && test -s conftest.$ac_objext; then
17320 ac_cv_member_struct_ff_effect_direction=yes
17321 else
17322 echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17325 cat >conftest.$ac_ext <<_ACEOF
17326 /* confdefs.h. */
17327 _ACEOF
17328 cat confdefs.h >>conftest.$ac_ext
17329 cat >>conftest.$ac_ext <<_ACEOF
17330 /* end confdefs.h. */
17331 #ifdef HAVE_LINUX_INPUT_H
17332 #include <linux/input.h>
17333 #endif
17336 main ()
17338 static struct ff_effect ac_aggr;
17339 if (sizeof ac_aggr.direction)
17340 return 0;
17342 return 0;
17344 _ACEOF
17345 rm -f conftest.$ac_objext
17346 if { (ac_try="$ac_compile"
17347 case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17350 esac
17351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352 (eval "$ac_compile") 2>conftest.er1
17353 ac_status=$?
17354 grep -v '^ *+' conftest.er1 >conftest.err
17355 rm -f conftest.er1
17356 cat conftest.err >&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } && {
17359 test -z "$ac_c_werror_flag" ||
17360 test ! -s conftest.err
17361 } && test -s conftest.$ac_objext; then
17362 ac_cv_member_struct_ff_effect_direction=yes
17363 else
17364 echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17367 ac_cv_member_struct_ff_effect_direction=no
17370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
17376 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
17377 if test $ac_cv_member_struct_ff_effect_direction = yes; then
17379 cat >>confdefs.h <<_ACEOF
17380 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
17381 _ACEOF
17387 { echo "$as_me:$LINENO: checking for sigaddset" >&5
17388 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
17389 if test "${wine_cv_have_sigaddset+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392 cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h. */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17398 #include <signal.h>
17400 main ()
17402 sigset_t set; sigaddset(&set,SIGTERM);
17404 return 0;
17406 _ACEOF
17407 rm -f conftest.$ac_objext conftest$ac_exeext
17408 if { (ac_try="$ac_link"
17409 case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17412 esac
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_link") 2>conftest.er1
17415 ac_status=$?
17416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } && {
17421 test -z "$ac_c_werror_flag" ||
17422 test ! -s conftest.err
17423 } && test -s conftest$ac_exeext &&
17424 $as_test_x conftest$ac_exeext; then
17425 wine_cv_have_sigaddset=yes
17426 else
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17430 wine_cv_have_sigaddset=no
17433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17434 conftest$ac_exeext conftest.$ac_ext
17436 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17437 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
17438 if test "$wine_cv_have_sigaddset" = "yes"
17439 then
17441 cat >>confdefs.h <<\_ACEOF
17442 #define HAVE_SIGADDSET 1
17443 _ACEOF
17448 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17449 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
17450 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17460 #include <netdb.h>
17463 main ()
17466 char *name=NULL;
17467 struct hostent he;
17468 struct hostent *result;
17469 char *buf=NULL;
17470 int bufsize=0;
17471 int res,errnr;
17472 char *addr=NULL;
17473 int addrlen=0;
17474 int addrtype=0;
17475 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17476 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17479 return 0;
17481 _ACEOF
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (ac_try="$ac_link"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487 esac
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_link") 2>conftest.er1
17490 ac_status=$?
17491 grep -v '^ *+' conftest.er1 >conftest.err
17492 rm -f conftest.er1
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } && {
17496 test -z "$ac_c_werror_flag" ||
17497 test ! -s conftest.err
17498 } && test -s conftest$ac_exeext &&
17499 $as_test_x conftest$ac_exeext; then
17500 wine_cv_linux_gethostbyname_r_6=yes
17501 else
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17505 wine_cv_linux_gethostbyname_r_6=no
17509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17510 conftest$ac_exeext conftest.$ac_ext
17513 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17514 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
17515 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17516 then
17518 cat >>confdefs.h <<\_ACEOF
17519 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17520 _ACEOF
17524 if test "$ac_cv_header_linux_joystick_h" = "yes"
17525 then
17526 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17527 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
17528 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 else
17531 cat >conftest.$ac_ext <<_ACEOF
17532 /* confdefs.h. */
17533 _ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17538 #include <sys/ioctl.h>
17539 #include <linux/joystick.h>
17541 struct js_event blub;
17542 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17543 #error "no 2.2 header"
17544 #endif
17547 main ()
17549 /*empty*/
17551 return 0;
17553 _ACEOF
17554 rm -f conftest.$ac_objext
17555 if { (ac_try="$ac_compile"
17556 case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_compile") 2>conftest.er1
17562 ac_status=$?
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } && {
17568 test -z "$ac_c_werror_flag" ||
17569 test ! -s conftest.err
17570 } && test -s conftest.$ac_objext; then
17571 wine_cv_linux_joystick_22_api=yes
17572 else
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 wine_cv_linux_joystick_22_api=no
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17582 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17583 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
17584 if test "$wine_cv_linux_joystick_22_api" = "yes"
17585 then
17587 cat >>confdefs.h <<\_ACEOF
17588 #define HAVE_LINUX_22_JOYSTICK_API 1
17589 _ACEOF
17595 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17596 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
17597 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17598 echo $ECHO_N "(cached) $ECHO_C" >&6
17599 else
17600 cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h. */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 #include <sys/types.h>
17607 #ifdef HAVE_SYS_PARAM_H
17608 # include <sys/param.h>
17609 #endif
17610 #ifdef HAVE_SYS_MOUNT_H
17611 # include <sys/mount.h>
17612 #endif
17613 #ifdef HAVE_SYS_VFS_H
17614 # include <sys/vfs.h>
17615 #endif
17616 #ifdef HAVE_SYS_STATFS_H
17617 # include <sys/statfs.h>
17618 #endif
17621 main ()
17623 static struct statfs ac_aggr;
17624 if (ac_aggr.f_bfree)
17625 return 0;
17627 return 0;
17629 _ACEOF
17630 rm -f conftest.$ac_objext
17631 if { (ac_try="$ac_compile"
17632 case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_compile") 2>conftest.er1
17638 ac_status=$?
17639 grep -v '^ *+' conftest.er1 >conftest.err
17640 rm -f conftest.er1
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } && {
17644 test -z "$ac_c_werror_flag" ||
17645 test ! -s conftest.err
17646 } && test -s conftest.$ac_objext; then
17647 ac_cv_member_struct_statfs_f_bfree=yes
17648 else
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h. */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 #include <sys/types.h>
17659 #ifdef HAVE_SYS_PARAM_H
17660 # include <sys/param.h>
17661 #endif
17662 #ifdef HAVE_SYS_MOUNT_H
17663 # include <sys/mount.h>
17664 #endif
17665 #ifdef HAVE_SYS_VFS_H
17666 # include <sys/vfs.h>
17667 #endif
17668 #ifdef HAVE_SYS_STATFS_H
17669 # include <sys/statfs.h>
17670 #endif
17673 main ()
17675 static struct statfs ac_aggr;
17676 if (sizeof ac_aggr.f_bfree)
17677 return 0;
17679 return 0;
17681 _ACEOF
17682 rm -f conftest.$ac_objext
17683 if { (ac_try="$ac_compile"
17684 case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_compile") 2>conftest.er1
17690 ac_status=$?
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } && {
17696 test -z "$ac_c_werror_flag" ||
17697 test ! -s conftest.err
17698 } && test -s conftest.$ac_objext; then
17699 ac_cv_member_struct_statfs_f_bfree=yes
17700 else
17701 echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17704 ac_cv_member_struct_statfs_f_bfree=no
17707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17712 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17713 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
17714 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17716 cat >>confdefs.h <<_ACEOF
17717 #define HAVE_STRUCT_STATFS_F_BFREE 1
17718 _ACEOF
17722 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17723 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
17724 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727 cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h. */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733 #include <sys/types.h>
17734 #ifdef HAVE_SYS_PARAM_H
17735 # include <sys/param.h>
17736 #endif
17737 #ifdef HAVE_SYS_MOUNT_H
17738 # include <sys/mount.h>
17739 #endif
17740 #ifdef HAVE_SYS_VFS_H
17741 # include <sys/vfs.h>
17742 #endif
17743 #ifdef HAVE_SYS_STATFS_H
17744 # include <sys/statfs.h>
17745 #endif
17748 main ()
17750 static struct statfs ac_aggr;
17751 if (ac_aggr.f_bavail)
17752 return 0;
17754 return 0;
17756 _ACEOF
17757 rm -f conftest.$ac_objext
17758 if { (ac_try="$ac_compile"
17759 case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17762 esac
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_compile") 2>conftest.er1
17765 ac_status=$?
17766 grep -v '^ *+' conftest.er1 >conftest.err
17767 rm -f conftest.er1
17768 cat conftest.err >&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } && {
17771 test -z "$ac_c_werror_flag" ||
17772 test ! -s conftest.err
17773 } && test -s conftest.$ac_objext; then
17774 ac_cv_member_struct_statfs_f_bavail=yes
17775 else
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17779 cat >conftest.$ac_ext <<_ACEOF
17780 /* confdefs.h. */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17785 #include <sys/types.h>
17786 #ifdef HAVE_SYS_PARAM_H
17787 # include <sys/param.h>
17788 #endif
17789 #ifdef HAVE_SYS_MOUNT_H
17790 # include <sys/mount.h>
17791 #endif
17792 #ifdef HAVE_SYS_VFS_H
17793 # include <sys/vfs.h>
17794 #endif
17795 #ifdef HAVE_SYS_STATFS_H
17796 # include <sys/statfs.h>
17797 #endif
17800 main ()
17802 static struct statfs ac_aggr;
17803 if (sizeof ac_aggr.f_bavail)
17804 return 0;
17806 return 0;
17808 _ACEOF
17809 rm -f conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17814 esac
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_compile") 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } && {
17823 test -z "$ac_c_werror_flag" ||
17824 test ! -s conftest.err
17825 } && test -s conftest.$ac_objext; then
17826 ac_cv_member_struct_statfs_f_bavail=yes
17827 else
17828 echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17831 ac_cv_member_struct_statfs_f_bavail=no
17834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17839 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17840 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
17841 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17843 cat >>confdefs.h <<_ACEOF
17844 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17845 _ACEOF
17849 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17850 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
17851 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h. */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 #include <sys/types.h>
17861 #ifdef HAVE_SYS_PARAM_H
17862 # include <sys/param.h>
17863 #endif
17864 #ifdef HAVE_SYS_MOUNT_H
17865 # include <sys/mount.h>
17866 #endif
17867 #ifdef HAVE_SYS_VFS_H
17868 # include <sys/vfs.h>
17869 #endif
17870 #ifdef HAVE_SYS_STATFS_H
17871 # include <sys/statfs.h>
17872 #endif
17875 main ()
17877 static struct statfs ac_aggr;
17878 if (ac_aggr.f_frsize)
17879 return 0;
17881 return 0;
17883 _ACEOF
17884 rm -f conftest.$ac_objext
17885 if { (ac_try="$ac_compile"
17886 case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17889 esac
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_compile") 2>conftest.er1
17892 ac_status=$?
17893 grep -v '^ *+' conftest.er1 >conftest.err
17894 rm -f conftest.er1
17895 cat conftest.err >&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } && {
17898 test -z "$ac_c_werror_flag" ||
17899 test ! -s conftest.err
17900 } && test -s conftest.$ac_objext; then
17901 ac_cv_member_struct_statfs_f_frsize=yes
17902 else
17903 echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17906 cat >conftest.$ac_ext <<_ACEOF
17907 /* confdefs.h. */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17912 #include <sys/types.h>
17913 #ifdef HAVE_SYS_PARAM_H
17914 # include <sys/param.h>
17915 #endif
17916 #ifdef HAVE_SYS_MOUNT_H
17917 # include <sys/mount.h>
17918 #endif
17919 #ifdef HAVE_SYS_VFS_H
17920 # include <sys/vfs.h>
17921 #endif
17922 #ifdef HAVE_SYS_STATFS_H
17923 # include <sys/statfs.h>
17924 #endif
17927 main ()
17929 static struct statfs ac_aggr;
17930 if (sizeof ac_aggr.f_frsize)
17931 return 0;
17933 return 0;
17935 _ACEOF
17936 rm -f conftest.$ac_objext
17937 if { (ac_try="$ac_compile"
17938 case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17941 esac
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_compile") 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } && {
17950 test -z "$ac_c_werror_flag" ||
17951 test ! -s conftest.err
17952 } && test -s conftest.$ac_objext; then
17953 ac_cv_member_struct_statfs_f_frsize=yes
17954 else
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17958 ac_cv_member_struct_statfs_f_frsize=no
17961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17966 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
17967 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
17968 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
17970 cat >>confdefs.h <<_ACEOF
17971 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
17972 _ACEOF
17976 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
17977 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
17978 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 else
17981 cat >conftest.$ac_ext <<_ACEOF
17982 /* confdefs.h. */
17983 _ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h. */
17987 #include <sys/types.h>
17988 #ifdef HAVE_SYS_PARAM_H
17989 # include <sys/param.h>
17990 #endif
17991 #ifdef HAVE_SYS_MOUNT_H
17992 # include <sys/mount.h>
17993 #endif
17994 #ifdef HAVE_SYS_VFS_H
17995 # include <sys/vfs.h>
17996 #endif
17997 #ifdef HAVE_SYS_STATFS_H
17998 # include <sys/statfs.h>
17999 #endif
18002 main ()
18004 static struct statfs ac_aggr;
18005 if (ac_aggr.f_ffree)
18006 return 0;
18008 return 0;
18010 _ACEOF
18011 rm -f conftest.$ac_objext
18012 if { (ac_try="$ac_compile"
18013 case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18016 esac
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_compile") 2>conftest.er1
18019 ac_status=$?
18020 grep -v '^ *+' conftest.er1 >conftest.err
18021 rm -f conftest.er1
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && {
18025 test -z "$ac_c_werror_flag" ||
18026 test ! -s conftest.err
18027 } && test -s conftest.$ac_objext; then
18028 ac_cv_member_struct_statfs_f_ffree=yes
18029 else
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h. */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <sys/types.h>
18040 #ifdef HAVE_SYS_PARAM_H
18041 # include <sys/param.h>
18042 #endif
18043 #ifdef HAVE_SYS_MOUNT_H
18044 # include <sys/mount.h>
18045 #endif
18046 #ifdef HAVE_SYS_VFS_H
18047 # include <sys/vfs.h>
18048 #endif
18049 #ifdef HAVE_SYS_STATFS_H
18050 # include <sys/statfs.h>
18051 #endif
18054 main ()
18056 static struct statfs ac_aggr;
18057 if (sizeof ac_aggr.f_ffree)
18058 return 0;
18060 return 0;
18062 _ACEOF
18063 rm -f conftest.$ac_objext
18064 if { (ac_try="$ac_compile"
18065 case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18068 esac
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_compile") 2>conftest.er1
18071 ac_status=$?
18072 grep -v '^ *+' conftest.er1 >conftest.err
18073 rm -f conftest.er1
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } && {
18077 test -z "$ac_c_werror_flag" ||
18078 test ! -s conftest.err
18079 } && test -s conftest.$ac_objext; then
18080 ac_cv_member_struct_statfs_f_ffree=yes
18081 else
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 ac_cv_member_struct_statfs_f_ffree=no
18088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18093 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18094 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
18095 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18097 cat >>confdefs.h <<_ACEOF
18098 #define HAVE_STRUCT_STATFS_F_FFREE 1
18099 _ACEOF
18103 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18104 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
18105 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108 cat >conftest.$ac_ext <<_ACEOF
18109 /* confdefs.h. */
18110 _ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18114 #include <sys/types.h>
18115 #ifdef HAVE_SYS_PARAM_H
18116 # include <sys/param.h>
18117 #endif
18118 #ifdef HAVE_SYS_MOUNT_H
18119 # include <sys/mount.h>
18120 #endif
18121 #ifdef HAVE_SYS_VFS_H
18122 # include <sys/vfs.h>
18123 #endif
18124 #ifdef HAVE_SYS_STATFS_H
18125 # include <sys/statfs.h>
18126 #endif
18129 main ()
18131 static struct statfs ac_aggr;
18132 if (ac_aggr.f_favail)
18133 return 0;
18135 return 0;
18137 _ACEOF
18138 rm -f conftest.$ac_objext
18139 if { (ac_try="$ac_compile"
18140 case "(($ac_try" in
18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18143 esac
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_compile") 2>conftest.er1
18146 ac_status=$?
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest.$ac_objext; then
18155 ac_cv_member_struct_statfs_f_favail=yes
18156 else
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h. */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18166 #include <sys/types.h>
18167 #ifdef HAVE_SYS_PARAM_H
18168 # include <sys/param.h>
18169 #endif
18170 #ifdef HAVE_SYS_MOUNT_H
18171 # include <sys/mount.h>
18172 #endif
18173 #ifdef HAVE_SYS_VFS_H
18174 # include <sys/vfs.h>
18175 #endif
18176 #ifdef HAVE_SYS_STATFS_H
18177 # include <sys/statfs.h>
18178 #endif
18181 main ()
18183 static struct statfs ac_aggr;
18184 if (sizeof ac_aggr.f_favail)
18185 return 0;
18187 return 0;
18189 _ACEOF
18190 rm -f conftest.$ac_objext
18191 if { (ac_try="$ac_compile"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_compile") 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } && {
18204 test -z "$ac_c_werror_flag" ||
18205 test ! -s conftest.err
18206 } && test -s conftest.$ac_objext; then
18207 ac_cv_member_struct_statfs_f_favail=yes
18208 else
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18212 ac_cv_member_struct_statfs_f_favail=no
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18220 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18221 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
18222 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18224 cat >>confdefs.h <<_ACEOF
18225 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18226 _ACEOF
18230 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18231 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
18232 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 else
18235 cat >conftest.$ac_ext <<_ACEOF
18236 /* confdefs.h. */
18237 _ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18241 #include <sys/types.h>
18242 #ifdef HAVE_SYS_PARAM_H
18243 # include <sys/param.h>
18244 #endif
18245 #ifdef HAVE_SYS_MOUNT_H
18246 # include <sys/mount.h>
18247 #endif
18248 #ifdef HAVE_SYS_VFS_H
18249 # include <sys/vfs.h>
18250 #endif
18251 #ifdef HAVE_SYS_STATFS_H
18252 # include <sys/statfs.h>
18253 #endif
18256 main ()
18258 static struct statfs ac_aggr;
18259 if (ac_aggr.f_namelen)
18260 return 0;
18262 return 0;
18264 _ACEOF
18265 rm -f conftest.$ac_objext
18266 if { (ac_try="$ac_compile"
18267 case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18270 esac
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_compile") 2>conftest.er1
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } && {
18279 test -z "$ac_c_werror_flag" ||
18280 test ! -s conftest.err
18281 } && test -s conftest.$ac_objext; then
18282 ac_cv_member_struct_statfs_f_namelen=yes
18283 else
18284 echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18287 cat >conftest.$ac_ext <<_ACEOF
18288 /* confdefs.h. */
18289 _ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293 #include <sys/types.h>
18294 #ifdef HAVE_SYS_PARAM_H
18295 # include <sys/param.h>
18296 #endif
18297 #ifdef HAVE_SYS_MOUNT_H
18298 # include <sys/mount.h>
18299 #endif
18300 #ifdef HAVE_SYS_VFS_H
18301 # include <sys/vfs.h>
18302 #endif
18303 #ifdef HAVE_SYS_STATFS_H
18304 # include <sys/statfs.h>
18305 #endif
18308 main ()
18310 static struct statfs ac_aggr;
18311 if (sizeof ac_aggr.f_namelen)
18312 return 0;
18314 return 0;
18316 _ACEOF
18317 rm -f conftest.$ac_objext
18318 if { (ac_try="$ac_compile"
18319 case "(($ac_try" in
18320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321 *) ac_try_echo=$ac_try;;
18322 esac
18323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324 (eval "$ac_compile") 2>conftest.er1
18325 ac_status=$?
18326 grep -v '^ *+' conftest.er1 >conftest.err
18327 rm -f conftest.er1
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } && {
18331 test -z "$ac_c_werror_flag" ||
18332 test ! -s conftest.err
18333 } && test -s conftest.$ac_objext; then
18334 ac_cv_member_struct_statfs_f_namelen=yes
18335 else
18336 echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18339 ac_cv_member_struct_statfs_f_namelen=no
18342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18347 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18348 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
18349 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18351 cat >>confdefs.h <<_ACEOF
18352 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18353 _ACEOF
18359 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18360 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
18361 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18362 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 else
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h. */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18370 #ifdef HAVE_SYS_STATVFS_H
18371 #include <sys/statvfs.h>
18372 #endif
18375 main ()
18377 static struct statvfs ac_aggr;
18378 if (ac_aggr.f_blocks)
18379 return 0;
18381 return 0;
18383 _ACEOF
18384 rm -f conftest.$ac_objext
18385 if { (ac_try="$ac_compile"
18386 case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18389 esac
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_compile") 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } && {
18398 test -z "$ac_c_werror_flag" ||
18399 test ! -s conftest.err
18400 } && test -s conftest.$ac_objext; then
18401 ac_cv_member_struct_statvfs_f_blocks=yes
18402 else
18403 echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18406 cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h. */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18412 #ifdef HAVE_SYS_STATVFS_H
18413 #include <sys/statvfs.h>
18414 #endif
18417 main ()
18419 static struct statvfs ac_aggr;
18420 if (sizeof ac_aggr.f_blocks)
18421 return 0;
18423 return 0;
18425 _ACEOF
18426 rm -f conftest.$ac_objext
18427 if { (ac_try="$ac_compile"
18428 case "(($ac_try" in
18429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430 *) ac_try_echo=$ac_try;;
18431 esac
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_compile") 2>conftest.er1
18434 ac_status=$?
18435 grep -v '^ *+' conftest.er1 >conftest.err
18436 rm -f conftest.er1
18437 cat conftest.err >&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); } && {
18440 test -z "$ac_c_werror_flag" ||
18441 test ! -s conftest.err
18442 } && test -s conftest.$ac_objext; then
18443 ac_cv_member_struct_statvfs_f_blocks=yes
18444 else
18445 echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18448 ac_cv_member_struct_statvfs_f_blocks=no
18451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18456 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18457 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
18458 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18460 cat >>confdefs.h <<_ACEOF
18461 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18462 _ACEOF
18468 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18469 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
18470 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473 cat >conftest.$ac_ext <<_ACEOF
18474 /* confdefs.h. */
18475 _ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18479 #include <sys/types.h>
18480 #ifdef HAVE_SYS_SOCKET_H
18481 # include <sys/socket.h>
18482 #endif
18483 #ifdef HAVE_SYS_UN_H
18484 # include <sys/un.h>
18485 #endif
18488 main ()
18490 static struct msghdr ac_aggr;
18491 if (ac_aggr.msg_accrights)
18492 return 0;
18494 return 0;
18496 _ACEOF
18497 rm -f conftest.$ac_objext
18498 if { (ac_try="$ac_compile"
18499 case "(($ac_try" in
18500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501 *) ac_try_echo=$ac_try;;
18502 esac
18503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18504 (eval "$ac_compile") 2>conftest.er1
18505 ac_status=$?
18506 grep -v '^ *+' conftest.er1 >conftest.err
18507 rm -f conftest.er1
18508 cat conftest.err >&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } && {
18511 test -z "$ac_c_werror_flag" ||
18512 test ! -s conftest.err
18513 } && test -s conftest.$ac_objext; then
18514 ac_cv_member_struct_msghdr_msg_accrights=yes
18515 else
18516 echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18519 cat >conftest.$ac_ext <<_ACEOF
18520 /* confdefs.h. */
18521 _ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18525 #include <sys/types.h>
18526 #ifdef HAVE_SYS_SOCKET_H
18527 # include <sys/socket.h>
18528 #endif
18529 #ifdef HAVE_SYS_UN_H
18530 # include <sys/un.h>
18531 #endif
18534 main ()
18536 static struct msghdr ac_aggr;
18537 if (sizeof ac_aggr.msg_accrights)
18538 return 0;
18540 return 0;
18542 _ACEOF
18543 rm -f conftest.$ac_objext
18544 if { (ac_try="$ac_compile"
18545 case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18548 esac
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_compile") 2>conftest.er1
18551 ac_status=$?
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } && {
18557 test -z "$ac_c_werror_flag" ||
18558 test ! -s conftest.err
18559 } && test -s conftest.$ac_objext; then
18560 ac_cv_member_struct_msghdr_msg_accrights=yes
18561 else
18562 echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18565 ac_cv_member_struct_msghdr_msg_accrights=no
18568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18573 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18574 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
18575 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18577 cat >>confdefs.h <<_ACEOF
18578 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18579 _ACEOF
18583 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18584 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
18585 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h. */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 #include <sys/types.h>
18595 #ifdef HAVE_SYS_SOCKET_H
18596 # include <sys/socket.h>
18597 #endif
18598 #ifdef HAVE_SYS_UN_H
18599 # include <sys/un.h>
18600 #endif
18603 main ()
18605 static struct sockaddr ac_aggr;
18606 if (ac_aggr.sa_len)
18607 return 0;
18609 return 0;
18611 _ACEOF
18612 rm -f conftest.$ac_objext
18613 if { (ac_try="$ac_compile"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18617 esac
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_compile") 2>conftest.er1
18620 ac_status=$?
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } && {
18626 test -z "$ac_c_werror_flag" ||
18627 test ! -s conftest.err
18628 } && test -s conftest.$ac_objext; then
18629 ac_cv_member_struct_sockaddr_sa_len=yes
18630 else
18631 echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18634 cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h. */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18640 #include <sys/types.h>
18641 #ifdef HAVE_SYS_SOCKET_H
18642 # include <sys/socket.h>
18643 #endif
18644 #ifdef HAVE_SYS_UN_H
18645 # include <sys/un.h>
18646 #endif
18649 main ()
18651 static struct sockaddr ac_aggr;
18652 if (sizeof ac_aggr.sa_len)
18653 return 0;
18655 return 0;
18657 _ACEOF
18658 rm -f conftest.$ac_objext
18659 if { (ac_try="$ac_compile"
18660 case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18663 esac
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_compile") 2>conftest.er1
18666 ac_status=$?
18667 grep -v '^ *+' conftest.er1 >conftest.err
18668 rm -f conftest.er1
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } && {
18672 test -z "$ac_c_werror_flag" ||
18673 test ! -s conftest.err
18674 } && test -s conftest.$ac_objext; then
18675 ac_cv_member_struct_sockaddr_sa_len=yes
18676 else
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 ac_cv_member_struct_sockaddr_sa_len=no
18683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18688 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18689 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
18690 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18692 cat >>confdefs.h <<_ACEOF
18693 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18694 _ACEOF
18698 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18699 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
18700 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703 cat >conftest.$ac_ext <<_ACEOF
18704 /* confdefs.h. */
18705 _ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18709 #include <sys/types.h>
18710 #ifdef HAVE_SYS_SOCKET_H
18711 # include <sys/socket.h>
18712 #endif
18713 #ifdef HAVE_SYS_UN_H
18714 # include <sys/un.h>
18715 #endif
18718 main ()
18720 static struct sockaddr_un ac_aggr;
18721 if (ac_aggr.sun_len)
18722 return 0;
18724 return 0;
18726 _ACEOF
18727 rm -f conftest.$ac_objext
18728 if { (ac_try="$ac_compile"
18729 case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18732 esac
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_compile") 2>conftest.er1
18735 ac_status=$?
18736 grep -v '^ *+' conftest.er1 >conftest.err
18737 rm -f conftest.er1
18738 cat conftest.err >&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } && {
18741 test -z "$ac_c_werror_flag" ||
18742 test ! -s conftest.err
18743 } && test -s conftest.$ac_objext; then
18744 ac_cv_member_struct_sockaddr_un_sun_len=yes
18745 else
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18749 cat >conftest.$ac_ext <<_ACEOF
18750 /* confdefs.h. */
18751 _ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18755 #include <sys/types.h>
18756 #ifdef HAVE_SYS_SOCKET_H
18757 # include <sys/socket.h>
18758 #endif
18759 #ifdef HAVE_SYS_UN_H
18760 # include <sys/un.h>
18761 #endif
18764 main ()
18766 static struct sockaddr_un ac_aggr;
18767 if (sizeof ac_aggr.sun_len)
18768 return 0;
18770 return 0;
18772 _ACEOF
18773 rm -f conftest.$ac_objext
18774 if { (ac_try="$ac_compile"
18775 case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18778 esac
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_compile") 2>conftest.er1
18781 ac_status=$?
18782 grep -v '^ *+' conftest.er1 >conftest.err
18783 rm -f conftest.er1
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } && {
18787 test -z "$ac_c_werror_flag" ||
18788 test ! -s conftest.err
18789 } && test -s conftest.$ac_objext; then
18790 ac_cv_member_struct_sockaddr_un_sun_len=yes
18791 else
18792 echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18795 ac_cv_member_struct_sockaddr_un_sun_len=no
18798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18804 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
18805 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18807 cat >>confdefs.h <<_ACEOF
18808 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18809 _ACEOF
18815 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18816 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
18817 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18818 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 else
18820 cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h. */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 #include <sys/types.h>
18827 #ifdef HAVE_SCSI_SG_H
18828 #include <scsi/sg.h>
18829 #endif
18832 main ()
18834 static scsireq_t ac_aggr;
18835 if (ac_aggr.cmd)
18836 return 0;
18838 return 0;
18840 _ACEOF
18841 rm -f conftest.$ac_objext
18842 if { (ac_try="$ac_compile"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_compile") 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } && {
18855 test -z "$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18857 } && test -s conftest.$ac_objext; then
18858 ac_cv_member_scsireq_t_cmd=yes
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18863 cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h. */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18869 #include <sys/types.h>
18870 #ifdef HAVE_SCSI_SG_H
18871 #include <scsi/sg.h>
18872 #endif
18875 main ()
18877 static scsireq_t ac_aggr;
18878 if (sizeof ac_aggr.cmd)
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_scsireq_t_cmd=yes
18902 else
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18906 ac_cv_member_scsireq_t_cmd=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_scsireq_t_cmd" >&5
18915 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
18916 if test $ac_cv_member_scsireq_t_cmd = yes; then
18918 cat >>confdefs.h <<_ACEOF
18919 #define HAVE_SCSIREQ_T_CMD 1
18920 _ACEOF
18924 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
18925 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
18926 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 else
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 #include <sys/types.h>
18936 #ifdef HAVE_SCSI_SG_H
18937 #include <scsi/sg.h>
18938 #endif
18941 main ()
18943 static sg_io_hdr_t ac_aggr;
18944 if (ac_aggr.interface_id)
18945 return 0;
18947 return 0;
18949 _ACEOF
18950 rm -f conftest.$ac_objext
18951 if { (ac_try="$ac_compile"
18952 case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_compile") 2>conftest.er1
18958 ac_status=$?
18959 grep -v '^ *+' conftest.er1 >conftest.err
18960 rm -f conftest.er1
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } && {
18964 test -z "$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 } && test -s conftest.$ac_objext; then
18967 ac_cv_member_sg_io_hdr_t_interface_id=yes
18968 else
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h. */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 #include <sys/types.h>
18979 #ifdef HAVE_SCSI_SG_H
18980 #include <scsi/sg.h>
18981 #endif
18984 main ()
18986 static sg_io_hdr_t ac_aggr;
18987 if (sizeof ac_aggr.interface_id)
18988 return 0;
18990 return 0;
18992 _ACEOF
18993 rm -f conftest.$ac_objext
18994 if { (ac_try="$ac_compile"
18995 case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18998 esac
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_compile") 2>conftest.er1
19001 ac_status=$?
19002 grep -v '^ *+' conftest.er1 >conftest.err
19003 rm -f conftest.er1
19004 cat conftest.err >&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } && {
19007 test -z "$ac_c_werror_flag" ||
19008 test ! -s conftest.err
19009 } && test -s conftest.$ac_objext; then
19010 ac_cv_member_sg_io_hdr_t_interface_id=yes
19011 else
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19015 ac_cv_member_sg_io_hdr_t_interface_id=no
19018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19024 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
19025 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19027 cat >>confdefs.h <<_ACEOF
19028 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19029 _ACEOF
19035 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19036 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
19037 if test "${ac_cv_member_siginfo_t_si_fd+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 <signal.h>
19049 main ()
19051 static siginfo_t ac_aggr;
19052 if (ac_aggr.si_fd)
19053 return 0;
19055 return 0;
19057 _ACEOF
19058 rm -f conftest.$ac_objext
19059 if { (ac_try="$ac_compile"
19060 case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_compile") 2>conftest.er1
19066 ac_status=$?
19067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && {
19072 test -z "$ac_c_werror_flag" ||
19073 test ! -s conftest.err
19074 } && test -s conftest.$ac_objext; then
19075 ac_cv_member_siginfo_t_si_fd=yes
19076 else
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h. */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 #include <signal.h>
19089 main ()
19091 static siginfo_t ac_aggr;
19092 if (sizeof ac_aggr.si_fd)
19093 return 0;
19095 return 0;
19097 _ACEOF
19098 rm -f conftest.$ac_objext
19099 if { (ac_try="$ac_compile"
19100 case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_compile") 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } && {
19112 test -z "$ac_c_werror_flag" ||
19113 test ! -s conftest.err
19114 } && test -s conftest.$ac_objext; then
19115 ac_cv_member_siginfo_t_si_fd=yes
19116 else
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19120 ac_cv_member_siginfo_t_si_fd=no
19123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19128 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19129 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
19130 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19132 cat >>confdefs.h <<_ACEOF
19133 #define HAVE_SIGINFO_T_SI_FD 1
19134 _ACEOF
19140 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
19141 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
19142 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145 cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h. */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 #include <sys/types.h>
19152 #ifdef HAVE_SYS_MTIO_H
19153 #include <sys/mtio.h>
19154 #endif
19157 main ()
19159 static struct mtget ac_aggr;
19160 if (ac_aggr.mt_blksiz)
19161 return 0;
19163 return 0;
19165 _ACEOF
19166 rm -f conftest.$ac_objext
19167 if { (ac_try="$ac_compile"
19168 case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19171 esac
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_compile") 2>conftest.er1
19174 ac_status=$?
19175 grep -v '^ *+' conftest.er1 >conftest.err
19176 rm -f conftest.er1
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } && {
19180 test -z "$ac_c_werror_flag" ||
19181 test ! -s conftest.err
19182 } && test -s conftest.$ac_objext; then
19183 ac_cv_member_struct_mtget_mt_blksiz=yes
19184 else
19185 echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19188 cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h. */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19194 #include <sys/types.h>
19195 #ifdef HAVE_SYS_MTIO_H
19196 #include <sys/mtio.h>
19197 #endif
19200 main ()
19202 static struct mtget ac_aggr;
19203 if (sizeof ac_aggr.mt_blksiz)
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_struct_mtget_mt_blksiz=yes
19227 else
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19231 ac_cv_member_struct_mtget_mt_blksiz=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_struct_mtget_mt_blksiz" >&5
19240 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
19241 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
19243 cat >>confdefs.h <<_ACEOF
19244 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
19245 _ACEOF
19249 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
19250 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
19251 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254 cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h. */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 #include <sys/types.h>
19261 #ifdef HAVE_SYS_MTIO_H
19262 #include <sys/mtio.h>
19263 #endif
19266 main ()
19268 static struct mtget ac_aggr;
19269 if (ac_aggr.mt_gstat)
19270 return 0;
19272 return 0;
19274 _ACEOF
19275 rm -f conftest.$ac_objext
19276 if { (ac_try="$ac_compile"
19277 case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280 esac
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_compile") 2>conftest.er1
19283 ac_status=$?
19284 grep -v '^ *+' conftest.er1 >conftest.err
19285 rm -f conftest.er1
19286 cat conftest.err >&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } && {
19289 test -z "$ac_c_werror_flag" ||
19290 test ! -s conftest.err
19291 } && test -s conftest.$ac_objext; then
19292 ac_cv_member_struct_mtget_mt_gstat=yes
19293 else
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19297 cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h. */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19303 #include <sys/types.h>
19304 #ifdef HAVE_SYS_MTIO_H
19305 #include <sys/mtio.h>
19306 #endif
19309 main ()
19311 static struct mtget ac_aggr;
19312 if (sizeof ac_aggr.mt_gstat)
19313 return 0;
19315 return 0;
19317 _ACEOF
19318 rm -f conftest.$ac_objext
19319 if { (ac_try="$ac_compile"
19320 case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19323 esac
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_compile") 2>conftest.er1
19326 ac_status=$?
19327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } && {
19332 test -z "$ac_c_werror_flag" ||
19333 test ! -s conftest.err
19334 } && test -s conftest.$ac_objext; then
19335 ac_cv_member_struct_mtget_mt_gstat=yes
19336 else
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_cv_member_struct_mtget_mt_gstat=no
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
19349 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
19350 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
19352 cat >>confdefs.h <<_ACEOF
19353 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
19354 _ACEOF
19358 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
19359 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
19360 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 else
19363 cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h. */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19369 #include <sys/types.h>
19370 #ifdef HAVE_SYS_MTIO_H
19371 #include <sys/mtio.h>
19372 #endif
19375 main ()
19377 static struct mtget ac_aggr;
19378 if (ac_aggr.mt_blkno)
19379 return 0;
19381 return 0;
19383 _ACEOF
19384 rm -f conftest.$ac_objext
19385 if { (ac_try="$ac_compile"
19386 case "(($ac_try" in
19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388 *) ac_try_echo=$ac_try;;
19389 esac
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391 (eval "$ac_compile") 2>conftest.er1
19392 ac_status=$?
19393 grep -v '^ *+' conftest.er1 >conftest.err
19394 rm -f conftest.er1
19395 cat conftest.err >&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); } && {
19398 test -z "$ac_c_werror_flag" ||
19399 test ! -s conftest.err
19400 } && test -s conftest.$ac_objext; then
19401 ac_cv_member_struct_mtget_mt_blkno=yes
19402 else
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19406 cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h. */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 #include <sys/types.h>
19413 #ifdef HAVE_SYS_MTIO_H
19414 #include <sys/mtio.h>
19415 #endif
19418 main ()
19420 static struct mtget ac_aggr;
19421 if (sizeof ac_aggr.mt_blkno)
19422 return 0;
19424 return 0;
19426 _ACEOF
19427 rm -f conftest.$ac_objext
19428 if { (ac_try="$ac_compile"
19429 case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_compile") 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } && {
19441 test -z "$ac_c_werror_flag" ||
19442 test ! -s conftest.err
19443 } && test -s conftest.$ac_objext; then
19444 ac_cv_member_struct_mtget_mt_blkno=yes
19445 else
19446 echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 ac_cv_member_struct_mtget_mt_blkno=no
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19457 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19458 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
19459 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19461 cat >>confdefs.h <<_ACEOF
19462 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
19463 _ACEOF
19469 { echo "$as_me:$LINENO: checking for struct option.name" >&5
19470 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
19471 if test "${ac_cv_member_struct_option_name+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 #ifdef HAVE_GETOPT_H
19481 #include <getopt.h>
19482 #endif
19485 main ()
19487 static struct option ac_aggr;
19488 if (ac_aggr.name)
19489 return 0;
19491 return 0;
19493 _ACEOF
19494 rm -f conftest.$ac_objext
19495 if { (ac_try="$ac_compile"
19496 case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_compile") 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } && {
19508 test -z "$ac_c_werror_flag" ||
19509 test ! -s conftest.err
19510 } && test -s conftest.$ac_objext; then
19511 ac_cv_member_struct_option_name=yes
19512 else
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 #ifdef HAVE_GETOPT_H
19523 #include <getopt.h>
19524 #endif
19527 main ()
19529 static struct option ac_aggr;
19530 if (sizeof ac_aggr.name)
19531 return 0;
19533 return 0;
19535 _ACEOF
19536 rm -f conftest.$ac_objext
19537 if { (ac_try="$ac_compile"
19538 case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19541 esac
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_compile") 2>conftest.er1
19544 ac_status=$?
19545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } && {
19550 test -z "$ac_c_werror_flag" ||
19551 test ! -s conftest.err
19552 } && test -s conftest.$ac_objext; then
19553 ac_cv_member_struct_option_name=yes
19554 else
19555 echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19558 ac_cv_member_struct_option_name=no
19561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19566 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19567 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
19568 if test $ac_cv_member_struct_option_name = yes; then
19570 cat >>confdefs.h <<_ACEOF
19571 #define HAVE_STRUCT_OPTION_NAME 1
19572 _ACEOF
19578 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19579 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19580 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19581 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 else
19583 cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h. */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 $ac_includes_default
19591 main ()
19593 static struct stat ac_aggr;
19594 if (ac_aggr.st_blocks)
19595 return 0;
19597 return 0;
19599 _ACEOF
19600 rm -f conftest.$ac_objext
19601 if { (ac_try="$ac_compile"
19602 case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605 esac
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_compile") 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } && {
19614 test -z "$ac_c_werror_flag" ||
19615 test ! -s conftest.err
19616 } && test -s conftest.$ac_objext; then
19617 ac_cv_member_struct_stat_st_blocks=yes
19618 else
19619 echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19622 cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h. */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628 $ac_includes_default
19630 main ()
19632 static struct stat ac_aggr;
19633 if (sizeof ac_aggr.st_blocks)
19634 return 0;
19636 return 0;
19638 _ACEOF
19639 rm -f conftest.$ac_objext
19640 if { (ac_try="$ac_compile"
19641 case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_compile") 2>conftest.er1
19647 ac_status=$?
19648 grep -v '^ *+' conftest.er1 >conftest.err
19649 rm -f conftest.er1
19650 cat conftest.err >&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); } && {
19653 test -z "$ac_c_werror_flag" ||
19654 test ! -s conftest.err
19655 } && test -s conftest.$ac_objext; then
19656 ac_cv_member_struct_stat_st_blocks=yes
19657 else
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19661 ac_cv_member_struct_stat_st_blocks=no
19664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19669 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19670 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19671 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19673 cat >>confdefs.h <<_ACEOF
19674 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19675 _ACEOF
19681 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19682 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
19683 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h. */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 #ifdef HAVE_SYS_TYPES_H
19693 #include <sys/types.h>
19694 #endif
19695 #ifdef HAVE_NETINET_IN_H
19696 #include <netinet/in.h>
19697 #endif
19700 main ()
19702 static struct sockaddr_in6 ac_aggr;
19703 if (ac_aggr.sin6_scope_id)
19704 return 0;
19706 return 0;
19708 _ACEOF
19709 rm -f conftest.$ac_objext
19710 if { (ac_try="$ac_compile"
19711 case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714 esac
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_compile") 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } && {
19723 test -z "$ac_c_werror_flag" ||
19724 test ! -s conftest.err
19725 } && test -s conftest.$ac_objext; then
19726 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19727 else
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h. */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 #ifdef HAVE_SYS_TYPES_H
19738 #include <sys/types.h>
19739 #endif
19740 #ifdef HAVE_NETINET_IN_H
19741 #include <netinet/in.h>
19742 #endif
19745 main ()
19747 static struct sockaddr_in6 ac_aggr;
19748 if (sizeof ac_aggr.sin6_scope_id)
19749 return 0;
19751 return 0;
19753 _ACEOF
19754 rm -f conftest.$ac_objext
19755 if { (ac_try="$ac_compile"
19756 case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19759 esac
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_compile") 2>conftest.er1
19762 ac_status=$?
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } && {
19768 test -z "$ac_c_werror_flag" ||
19769 test ! -s conftest.err
19770 } && test -s conftest.$ac_objext; then
19771 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19772 else
19773 echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19776 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
19779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19785 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
19786 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19788 cat >>confdefs.h <<_ACEOF
19789 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19790 _ACEOF
19796 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
19797 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
19798 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801 cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h. */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 #ifdef HAVE_SYS_TYPES_H
19808 #include <sys/types.h>
19809 #endif
19810 #ifdef HAVE_NETINET_IN_H
19811 # include <netinet/in.h>
19812 #endif
19813 #ifdef HAVE_ARPA_NAMESER_H
19814 # include <arpa/nameser.h>
19815 #endif
19818 main ()
19820 static ns_msg ac_aggr;
19821 if (ac_aggr._msg_ptr)
19822 return 0;
19824 return 0;
19826 _ACEOF
19827 rm -f conftest.$ac_objext
19828 if { (ac_try="$ac_compile"
19829 case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19832 esac
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_compile") 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest.$ac_objext; then
19844 ac_cv_member_ns_msg__msg_ptr=yes
19845 else
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h. */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 #ifdef HAVE_SYS_TYPES_H
19856 #include <sys/types.h>
19857 #endif
19858 #ifdef HAVE_NETINET_IN_H
19859 # include <netinet/in.h>
19860 #endif
19861 #ifdef HAVE_ARPA_NAMESER_H
19862 # include <arpa/nameser.h>
19863 #endif
19866 main ()
19868 static ns_msg ac_aggr;
19869 if (sizeof ac_aggr._msg_ptr)
19870 return 0;
19872 return 0;
19874 _ACEOF
19875 rm -f conftest.$ac_objext
19876 if { (ac_try="$ac_compile"
19877 case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_compile") 2>conftest.er1
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } && {
19889 test -z "$ac_c_werror_flag" ||
19890 test ! -s conftest.err
19891 } && test -s conftest.$ac_objext; then
19892 ac_cv_member_ns_msg__msg_ptr=yes
19893 else
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 ac_cv_member_ns_msg__msg_ptr=no
19900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19905 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
19906 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
19907 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
19909 cat >>confdefs.h <<_ACEOF
19910 #define HAVE_NS_MSG__MSG_PTR 1
19911 _ACEOF
19917 { echo "$as_me:$LINENO: checking for timezone variable" >&5
19918 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
19919 if test "${ac_cv_have_timezone+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 else
19922 cat >conftest.$ac_ext <<_ACEOF
19923 /* confdefs.h. */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19928 #include <time.h>
19930 main ()
19932 timezone = 1
19934 return 0;
19936 _ACEOF
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (ac_try="$ac_link"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_link") 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } && {
19951 test -z "$ac_c_werror_flag" ||
19952 test ! -s conftest.err
19953 } && test -s conftest$ac_exeext &&
19954 $as_test_x conftest$ac_exeext; then
19955 ac_cv_have_timezone="yes"
19956 else
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 ac_cv_have_timezone="no"
19963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19964 conftest$ac_exeext conftest.$ac_ext
19966 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19967 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
19968 if test "$ac_cv_have_timezone" = "yes"
19969 then
19971 cat >>confdefs.h <<\_ACEOF
19972 #define HAVE_TIMEZONE 1
19973 _ACEOF
19976 { echo "$as_me:$LINENO: checking for daylight variable" >&5
19977 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
19978 if test "${ac_cv_have_daylight+set}" = set; then
19979 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 else
19981 cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h. */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 #include <time.h>
19989 main ()
19991 daylight = 1
19993 return 0;
19995 _ACEOF
19996 rm -f conftest.$ac_objext conftest$ac_exeext
19997 if { (ac_try="$ac_link"
19998 case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20001 esac
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_link") 2>conftest.er1
20004 ac_status=$?
20005 grep -v '^ *+' conftest.er1 >conftest.err
20006 rm -f conftest.er1
20007 cat conftest.err >&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } && {
20010 test -z "$ac_c_werror_flag" ||
20011 test ! -s conftest.err
20012 } && test -s conftest$ac_exeext &&
20013 $as_test_x conftest$ac_exeext; then
20014 ac_cv_have_daylight="yes"
20015 else
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 ac_cv_have_daylight="no"
20022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20023 conftest$ac_exeext conftest.$ac_ext
20025 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20026 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
20027 if test "$ac_cv_have_daylight" = "yes"
20028 then
20030 cat >>confdefs.h <<\_ACEOF
20031 #define HAVE_DAYLIGHT 1
20032 _ACEOF
20037 case $host_cpu in
20038 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20039 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
20040 if test "${ac_cv_cpp_def___i386__+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043 cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h. */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 #ifndef __i386__
20051 #endif
20052 _ACEOF
20053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20054 $EGREP "yes" >/dev/null 2>&1; then
20055 ac_cv_cpp_def___i386__=yes
20056 else
20057 ac_cv_cpp_def___i386__=no
20059 rm -f conftest*
20062 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20063 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
20064 if test $ac_cv_cpp_def___i386__ = yes; then
20065 CFLAGS="$CFLAGS -D__i386__"
20066 LINTFLAGS="$LINTFLAGS -D__i386__"
20069 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
20070 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
20071 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 else
20074 cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h. */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20080 #ifndef __x86_64__
20082 #endif
20083 _ACEOF
20084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20085 $EGREP "yes" >/dev/null 2>&1; then
20086 ac_cv_cpp_def___x86_64__=yes
20087 else
20088 ac_cv_cpp_def___x86_64__=no
20090 rm -f conftest*
20093 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
20094 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
20095 if test $ac_cv_cpp_def___x86_64__ = yes; then
20096 CFLAGS="$CFLAGS -D__x86_64__"
20097 LINTFLAGS="$LINTFLAGS -D__x86_64__"
20100 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20101 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
20102 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105 cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h. */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20111 #ifndef __ALPHA__
20113 #endif
20114 _ACEOF
20115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20116 $EGREP "yes" >/dev/null 2>&1; then
20117 ac_cv_cpp_def___ALPHA__=yes
20118 else
20119 ac_cv_cpp_def___ALPHA__=no
20121 rm -f conftest*
20124 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20125 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
20126 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20127 CFLAGS="$CFLAGS -D__ALPHA__"
20128 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20131 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20132 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
20133 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20135 else
20136 cat >conftest.$ac_ext <<_ACEOF
20137 /* confdefs.h. */
20138 _ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20142 #ifndef __sparc__
20144 #endif
20145 _ACEOF
20146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20147 $EGREP "yes" >/dev/null 2>&1; then
20148 ac_cv_cpp_def___sparc__=yes
20149 else
20150 ac_cv_cpp_def___sparc__=no
20152 rm -f conftest*
20155 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20156 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
20157 if test $ac_cv_cpp_def___sparc__ = yes; then
20158 CFLAGS="$CFLAGS -D__sparc__"
20159 LINTFLAGS="$LINTFLAGS -D__sparc__"
20162 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20163 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
20164 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20166 else
20167 cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h. */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 #ifndef __powerpc__
20175 #endif
20176 _ACEOF
20177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20178 $EGREP "yes" >/dev/null 2>&1; then
20179 ac_cv_cpp_def___powerpc__=yes
20180 else
20181 ac_cv_cpp_def___powerpc__=no
20183 rm -f conftest*
20186 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20187 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
20188 if test $ac_cv_cpp_def___powerpc__ = yes; then
20189 CFLAGS="$CFLAGS -D__powerpc__"
20190 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20193 esac
20195 case $host_vendor in
20196 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20197 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
20198 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201 cat >conftest.$ac_ext <<_ACEOF
20202 /* confdefs.h. */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20207 #ifndef __sun__
20209 #endif
20210 _ACEOF
20211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20212 $EGREP "yes" >/dev/null 2>&1; then
20213 ac_cv_cpp_def___sun__=yes
20214 else
20215 ac_cv_cpp_def___sun__=no
20217 rm -f conftest*
20220 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20221 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
20222 if test $ac_cv_cpp_def___sun__ = yes; then
20223 CFLAGS="$CFLAGS -D__sun__"
20224 LINTFLAGS="$LINTFLAGS -D__sun__"
20227 esac
20230 DEPENDENCIES="### Dependencies:
20232 .INIT: Makefile
20233 .BEGIN: Makefile
20234 Makefile: dummy
20235 -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
20237 \$(ALL_OBJS): \$(IDL_H_SRCS:.idl=.h)
20238 \$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
20239 \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
20240 \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
20246 ac_config_commands="$ac_config_commands include/stamp-h"
20249 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
20251 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
20253 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
20255 ac_config_commands="$ac_config_commands dlls/user32/resources"
20257 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
20259 ac_config_commands="$ac_config_commands include/wine"
20262 MAKE_RULES=Make.rules
20265 MAKE_DLL_RULES=dlls/Makedll.rules
20268 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
20271 MAKE_TEST_RULES=dlls/Maketest.rules
20274 MAKE_PROG_RULES=programs/Makeprog.rules
20277 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/clusapi/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/ddrawex/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi32/Makefile dlls/gdi32/tests/Makefile dlls/glu32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hid/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/infosoft/tests/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/itss/tests/Makefile dlls/kernel32/Makefile dlls/kernel32/tests/Makefile dlls/localspl/Makefile dlls/localspl/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/mscoree/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/nddeapi/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/pstorec/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/resutils/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdoclc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/svrapi/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user32/Makefile dlls/user32/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winequartz.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wintrust/tests/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmd/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
20280 cat >confcache <<\_ACEOF
20281 # This file is a shell script that caches the results of configure
20282 # tests run on this system so they can be shared between configure
20283 # scripts and configure runs, see configure's option --config-cache.
20284 # It is not useful on other systems. If it contains results you don't
20285 # want to keep, you may remove or edit it.
20287 # config.status only pays attention to the cache file if you give it
20288 # the --recheck option to rerun configure.
20290 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20291 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20292 # following values.
20294 _ACEOF
20296 # The following way of writing the cache mishandles newlines in values,
20297 # but we know of no workaround that is simple, portable, and efficient.
20298 # So, we kill variables containing newlines.
20299 # Ultrix sh set writes to stderr and can't be redirected directly,
20300 # and sets the high bit in the cache file unless we assign to the vars.
20302 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20303 eval ac_val=\$$ac_var
20304 case $ac_val in #(
20305 *${as_nl}*)
20306 case $ac_var in #(
20307 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20308 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20309 esac
20310 case $ac_var in #(
20311 _ | IFS | as_nl) ;; #(
20312 *) $as_unset $ac_var ;;
20313 esac ;;
20314 esac
20315 done
20317 (set) 2>&1 |
20318 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20319 *${as_nl}ac_space=\ *)
20320 # `set' does not quote correctly, so add quotes (double-quote
20321 # substitution turns \\\\ into \\, and sed turns \\ into \).
20322 sed -n \
20323 "s/'/'\\\\''/g;
20324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20325 ;; #(
20327 # `set' quotes correctly as required by POSIX, so do not add quotes.
20328 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20330 esac |
20331 sort
20333 sed '
20334 /^ac_cv_env_/b end
20335 t clear
20336 :clear
20337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20338 t end
20339 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20340 :end' >>confcache
20341 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20342 if test -w "$cache_file"; then
20343 test "x$cache_file" != "x/dev/null" &&
20344 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20345 echo "$as_me: updating cache $cache_file" >&6;}
20346 cat confcache >$cache_file
20347 else
20348 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20349 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20352 rm -f confcache
20354 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20355 # Let make expand exec_prefix.
20356 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20358 DEFS=-DHAVE_CONFIG_H
20360 ac_libobjs=
20361 ac_ltlibobjs=
20362 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20363 # 1. Remove the extension, and $U if already installed.
20364 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20365 ac_i=`echo "$ac_i" | sed "$ac_script"`
20366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20367 # will be set to the directory where LIBOBJS objects are built.
20368 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20369 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20370 done
20371 LIBOBJS=$ac_libobjs
20373 LTLIBOBJS=$ac_ltlibobjs
20377 : ${CONFIG_STATUS=./config.status}
20378 ac_clean_files_save=$ac_clean_files
20379 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20380 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20381 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20382 cat >$CONFIG_STATUS <<_ACEOF
20383 #! $SHELL
20384 # Generated by $as_me.
20385 # Run this file to recreate the current configuration.
20386 # Compiler output produced by configure, useful for debugging
20387 # configure, is in config.log if it exists.
20389 debug=false
20390 ac_cs_recheck=false
20391 ac_cs_silent=false
20392 SHELL=\${CONFIG_SHELL-$SHELL}
20393 _ACEOF
20395 cat >>$CONFIG_STATUS <<\_ACEOF
20396 ## --------------------- ##
20397 ## M4sh Initialization. ##
20398 ## --------------------- ##
20400 # Be more Bourne compatible
20401 DUALCASE=1; export DUALCASE # for MKS sh
20402 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20403 emulate sh
20404 NULLCMD=:
20405 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20406 # is contrary to our usage. Disable this feature.
20407 alias -g '${1+"$@"}'='"$@"'
20408 setopt NO_GLOB_SUBST
20409 else
20410 case `(set -o) 2>/dev/null` in
20411 *posix*) set -o posix ;;
20412 esac
20419 # PATH needs CR
20420 # Avoid depending upon Character Ranges.
20421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20424 as_cr_digits='0123456789'
20425 as_cr_alnum=$as_cr_Letters$as_cr_digits
20427 # The user is always right.
20428 if test "${PATH_SEPARATOR+set}" != set; then
20429 echo "#! /bin/sh" >conf$$.sh
20430 echo "exit 0" >>conf$$.sh
20431 chmod +x conf$$.sh
20432 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20433 PATH_SEPARATOR=';'
20434 else
20435 PATH_SEPARATOR=:
20437 rm -f conf$$.sh
20440 # Support unset when possible.
20441 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20442 as_unset=unset
20443 else
20444 as_unset=false
20448 # IFS
20449 # We need space, tab and new line, in precisely that order. Quoting is
20450 # there to prevent editors from complaining about space-tab.
20451 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20452 # splitting by setting IFS to empty value.)
20453 as_nl='
20455 IFS=" "" $as_nl"
20457 # Find who we are. Look in the path if we contain no directory separator.
20458 case $0 in
20459 *[\\/]* ) as_myself=$0 ;;
20460 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20461 for as_dir in $PATH
20463 IFS=$as_save_IFS
20464 test -z "$as_dir" && as_dir=.
20465 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20466 done
20467 IFS=$as_save_IFS
20470 esac
20471 # We did not find ourselves, most probably we were run as `sh COMMAND'
20472 # in which case we are not to be found in the path.
20473 if test "x$as_myself" = x; then
20474 as_myself=$0
20476 if test ! -f "$as_myself"; then
20477 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20478 { (exit 1); exit 1; }
20481 # Work around bugs in pre-3.0 UWIN ksh.
20482 for as_var in ENV MAIL MAILPATH
20483 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20484 done
20485 PS1='$ '
20486 PS2='> '
20487 PS4='+ '
20489 # NLS nuisances.
20490 for as_var in \
20491 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20492 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20493 LC_TELEPHONE LC_TIME
20495 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20496 eval $as_var=C; export $as_var
20497 else
20498 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20500 done
20502 # Required to use basename.
20503 if expr a : '\(a\)' >/dev/null 2>&1 &&
20504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20505 as_expr=expr
20506 else
20507 as_expr=false
20510 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20511 as_basename=basename
20512 else
20513 as_basename=false
20517 # Name of the executable.
20518 as_me=`$as_basename -- "$0" ||
20519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20520 X"$0" : 'X\(//\)$' \| \
20521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20522 echo X/"$0" |
20523 sed '/^.*\/\([^/][^/]*\)\/*$/{
20524 s//\1/
20527 /^X\/\(\/\/\)$/{
20528 s//\1/
20531 /^X\/\(\/\).*/{
20532 s//\1/
20535 s/.*/./; q'`
20537 # CDPATH.
20538 $as_unset CDPATH
20542 as_lineno_1=$LINENO
20543 as_lineno_2=$LINENO
20544 test "x$as_lineno_1" != "x$as_lineno_2" &&
20545 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20547 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20548 # uniformly replaced by the line number. The first 'sed' inserts a
20549 # line-number line after each line using $LINENO; the second 'sed'
20550 # does the real work. The second script uses 'N' to pair each
20551 # line-number line with the line containing $LINENO, and appends
20552 # trailing '-' during substitution so that $LINENO is not a special
20553 # case at line end.
20554 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20555 # scripts with optimization help from Paolo Bonzini. Blame Lee
20556 # E. McMahon (1931-1989) for sed's syntax. :-)
20557 sed -n '
20559 /[$]LINENO/=
20560 ' <$as_myself |
20561 sed '
20562 s/[$]LINENO.*/&-/
20563 t lineno
20565 :lineno
20567 :loop
20568 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20569 t loop
20570 s/-\n.*//
20571 ' >$as_me.lineno &&
20572 chmod +x "$as_me.lineno" ||
20573 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20574 { (exit 1); exit 1; }; }
20576 # Don't try to exec as it changes $[0], causing all sort of problems
20577 # (the dirname of $[0] is not the place where we might find the
20578 # original and so on. Autoconf is especially sensitive to this).
20579 . "./$as_me.lineno"
20580 # Exit status is that of the last command.
20581 exit
20585 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20586 as_dirname=dirname
20587 else
20588 as_dirname=false
20591 ECHO_C= ECHO_N= ECHO_T=
20592 case `echo -n x` in
20593 -n*)
20594 case `echo 'x\c'` in
20595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20596 *) ECHO_C='\c';;
20597 esac;;
20599 ECHO_N='-n';;
20600 esac
20602 if expr a : '\(a\)' >/dev/null 2>&1 &&
20603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20604 as_expr=expr
20605 else
20606 as_expr=false
20609 rm -f conf$$ conf$$.exe conf$$.file
20610 if test -d conf$$.dir; then
20611 rm -f conf$$.dir/conf$$.file
20612 else
20613 rm -f conf$$.dir
20614 mkdir conf$$.dir
20616 echo >conf$$.file
20617 if ln -s conf$$.file conf$$ 2>/dev/null; then
20618 as_ln_s='ln -s'
20619 # ... but there are two gotchas:
20620 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20621 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20622 # In both cases, we have to default to `cp -p'.
20623 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20624 as_ln_s='cp -p'
20625 elif ln conf$$.file conf$$ 2>/dev/null; then
20626 as_ln_s=ln
20627 else
20628 as_ln_s='cp -p'
20630 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20631 rmdir conf$$.dir 2>/dev/null
20633 if mkdir -p . 2>/dev/null; then
20634 as_mkdir_p=:
20635 else
20636 test -d ./-p && rmdir ./-p
20637 as_mkdir_p=false
20640 if test -x / >/dev/null 2>&1; then
20641 as_test_x='test -x'
20642 else
20643 if ls -dL / >/dev/null 2>&1; then
20644 as_ls_L_option=L
20645 else
20646 as_ls_L_option=
20648 as_test_x='
20649 eval sh -c '\''
20650 if test -d "$1"; then
20651 test -d "$1/.";
20652 else
20653 case $1 in
20654 -*)set "./$1";;
20655 esac;
20656 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20657 ???[sx]*):;;*)false;;esac;fi
20658 '\'' sh
20661 as_executable_p=$as_test_x
20663 # Sed expression to map a string onto a valid CPP name.
20664 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20666 # Sed expression to map a string onto a valid variable name.
20667 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20670 exec 6>&1
20672 # Save the log message, to keep $[0] and so on meaningful, and to
20673 # report actual input values of CONFIG_FILES etc. instead of their
20674 # values after options handling.
20675 ac_log="
20676 This file was extended by Wine $as_me 0.9.28, which was
20677 generated by GNU Autoconf 2.61. Invocation command line was
20679 CONFIG_FILES = $CONFIG_FILES
20680 CONFIG_HEADERS = $CONFIG_HEADERS
20681 CONFIG_LINKS = $CONFIG_LINKS
20682 CONFIG_COMMANDS = $CONFIG_COMMANDS
20683 $ $0 $@
20685 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20688 _ACEOF
20690 cat >>$CONFIG_STATUS <<_ACEOF
20691 # Files that config.status was made for.
20692 config_files="$ac_config_files"
20693 config_headers="$ac_config_headers"
20694 config_commands="$ac_config_commands"
20696 _ACEOF
20698 cat >>$CONFIG_STATUS <<\_ACEOF
20699 ac_cs_usage="\
20700 \`$as_me' instantiates files from templates according to the
20701 current configuration.
20703 Usage: $0 [OPTIONS] [FILE]...
20705 -h, --help print this help, then exit
20706 -V, --version print version number and configuration settings, then exit
20707 -q, --quiet do not print progress messages
20708 -d, --debug don't remove temporary files
20709 --recheck update $as_me by reconfiguring in the same conditions
20710 --file=FILE[:TEMPLATE]
20711 instantiate the configuration file FILE
20712 --header=FILE[:TEMPLATE]
20713 instantiate the configuration header FILE
20715 Configuration files:
20716 $config_files
20718 Configuration headers:
20719 $config_headers
20721 Configuration commands:
20722 $config_commands
20724 Report bugs to <bug-autoconf@gnu.org>."
20726 _ACEOF
20727 cat >>$CONFIG_STATUS <<_ACEOF
20728 ac_cs_version="\\
20729 Wine config.status 0.9.28
20730 configured by $0, generated by GNU Autoconf 2.61,
20731 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20733 Copyright (C) 2006 Free Software Foundation, Inc.
20734 This config.status script is free software; the Free Software Foundation
20735 gives unlimited permission to copy, distribute and modify it."
20737 ac_pwd='$ac_pwd'
20738 srcdir='$srcdir'
20739 INSTALL='$INSTALL'
20740 _ACEOF
20742 cat >>$CONFIG_STATUS <<\_ACEOF
20743 # If no file are specified by the user, then we need to provide default
20744 # value. By we need to know if files were specified by the user.
20745 ac_need_defaults=:
20746 while test $# != 0
20748 case $1 in
20749 --*=*)
20750 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20751 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20752 ac_shift=:
20755 ac_option=$1
20756 ac_optarg=$2
20757 ac_shift=shift
20759 esac
20761 case $ac_option in
20762 # Handling of the options.
20763 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20764 ac_cs_recheck=: ;;
20765 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20766 echo "$ac_cs_version"; exit ;;
20767 --debug | --debu | --deb | --de | --d | -d )
20768 debug=: ;;
20769 --file | --fil | --fi | --f )
20770 $ac_shift
20771 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20772 ac_need_defaults=false;;
20773 --header | --heade | --head | --hea )
20774 $ac_shift
20775 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20776 ac_need_defaults=false;;
20777 --he | --h)
20778 # Conflict between --help and --header
20779 { echo "$as_me: error: ambiguous option: $1
20780 Try \`$0 --help' for more information." >&2
20781 { (exit 1); exit 1; }; };;
20782 --help | --hel | -h )
20783 echo "$ac_cs_usage"; exit ;;
20784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20785 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20786 ac_cs_silent=: ;;
20788 # This is an error.
20789 -*) { echo "$as_me: error: unrecognized option: $1
20790 Try \`$0 --help' for more information." >&2
20791 { (exit 1); exit 1; }; } ;;
20793 *) ac_config_targets="$ac_config_targets $1"
20794 ac_need_defaults=false ;;
20796 esac
20797 shift
20798 done
20800 ac_configure_extra_args=
20802 if $ac_cs_silent; then
20803 exec 6>/dev/null
20804 ac_configure_extra_args="$ac_configure_extra_args --silent"
20807 _ACEOF
20808 cat >>$CONFIG_STATUS <<_ACEOF
20809 if \$ac_cs_recheck; then
20810 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20811 CONFIG_SHELL=$SHELL
20812 export CONFIG_SHELL
20813 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20816 _ACEOF
20817 cat >>$CONFIG_STATUS <<\_ACEOF
20818 exec 5>>config.log
20820 echo
20821 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20822 ## Running $as_me. ##
20823 _ASBOX
20824 echo "$ac_log"
20825 } >&5
20827 _ACEOF
20828 cat >>$CONFIG_STATUS <<_ACEOF
20829 _ACEOF
20831 cat >>$CONFIG_STATUS <<\_ACEOF
20833 # Handling of arguments.
20834 for ac_config_target in $ac_config_targets
20836 case $ac_config_target in
20837 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20838 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
20839 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
20840 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
20841 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
20842 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
20843 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
20844 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20845 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20846 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20847 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
20848 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20849 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20850 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20851 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20852 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
20853 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20854 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20855 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20856 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
20857 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20858 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20859 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20860 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20861 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20862 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
20863 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20864 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20865 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20866 "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
20867 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20868 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
20869 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20870 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20871 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
20872 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
20873 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
20874 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20875 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20876 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
20877 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
20878 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
20879 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
20880 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20881 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
20882 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20883 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
20884 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20885 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20886 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20887 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20888 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20889 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20890 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20891 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20892 "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
20893 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20894 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20895 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
20896 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20897 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20898 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20899 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20900 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20901 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20902 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20903 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20904 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20905 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20906 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
20907 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
20908 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20909 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20910 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20911 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20912 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20913 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20914 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20915 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20916 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20917 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20918 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20919 "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
20920 "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
20921 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20922 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
20923 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20924 "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
20925 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
20926 "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
20927 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20928 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20929 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20930 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
20931 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20932 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20933 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
20934 "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
20935 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
20936 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20937 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20938 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20939 "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
20940 "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
20941 "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
20942 "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
20943 "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
20944 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
20945 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
20946 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20947 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20948 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
20949 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
20950 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
20951 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
20952 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
20953 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20954 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20955 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20956 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20957 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20958 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
20959 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
20960 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
20961 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
20962 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
20963 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20964 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20965 "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
20966 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20967 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
20968 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
20969 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20970 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
20971 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20972 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
20973 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20974 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
20975 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20976 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20977 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20978 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20979 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20980 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20981 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20982 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20983 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
20984 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20985 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20986 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
20987 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
20988 "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
20989 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20990 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20991 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20992 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20993 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20994 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
20995 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
20996 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20997 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
20998 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20999 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21000 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21001 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21002 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21003 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21004 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21005 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21006 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
21007 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
21008 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
21009 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21010 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
21011 "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
21012 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21013 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21014 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
21015 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
21016 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
21017 "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
21018 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21019 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21020 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21021 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21022 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21023 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21024 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21025 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21026 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21027 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
21028 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21029 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21030 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21031 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21032 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
21033 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21034 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21035 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
21036 "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
21037 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21038 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21039 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21040 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21041 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21042 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21043 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21044 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
21045 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21046 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21047 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21048 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21049 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
21050 "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
21051 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21052 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21053 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21054 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21055 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21056 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
21057 "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
21058 "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
21059 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
21060 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21061 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21062 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21063 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
21064 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
21065 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21066 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21067 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21068 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21069 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21070 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21071 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21072 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21073 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21074 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
21075 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21076 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21077 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
21078 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
21079 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
21080 "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
21081 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
21082 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21083 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21084 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
21085 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
21086 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
21087 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
21088 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
21089 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
21090 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
21091 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
21092 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
21093 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
21094 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
21095 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
21096 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
21097 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
21098 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
21099 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
21100 "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
21101 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
21102 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
21103 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21104 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
21105 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
21106 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21107 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
21108 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
21109 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21110 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21111 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21112 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
21113 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21114 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21115 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21116 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21117 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
21118 "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
21119 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21120 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21121 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
21122 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21123 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
21124 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
21125 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
21126 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
21127 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
21128 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
21129 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
21130 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21131 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21132 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21133 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21134 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
21135 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21136 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21137 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21138 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
21139 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21140 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21141 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21142 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21143 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21144 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21145 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21146 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21147 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21148 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21149 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21150 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21151 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21152 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
21153 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21154 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21155 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21156 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21157 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21158 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21159 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21160 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21162 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21163 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21164 { (exit 1); exit 1; }; };;
21165 esac
21166 done
21169 # If the user did not use the arguments to specify the items to instantiate,
21170 # then the envvar interface is used. Set only those that are not.
21171 # We use the long form for the default assignment because of an extremely
21172 # bizarre bug on SunOS 4.1.3.
21173 if $ac_need_defaults; then
21174 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21175 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21176 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21179 # Have a temporary directory for convenience. Make it in the build tree
21180 # simply because there is no reason against having it here, and in addition,
21181 # creating and moving files from /tmp can sometimes cause problems.
21182 # Hook for its removal unless debugging.
21183 # Note that there is a small window in which the directory will not be cleaned:
21184 # after its creation but before its name has been assigned to `$tmp'.
21185 $debug ||
21187 tmp=
21188 trap 'exit_status=$?
21189 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21191 trap '{ (exit 1); exit 1; }' 1 2 13 15
21193 # Create a (secure) tmp directory for tmp files.
21196 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21197 test -n "$tmp" && test -d "$tmp"
21198 } ||
21200 tmp=./conf$$-$RANDOM
21201 (umask 077 && mkdir "$tmp")
21202 } ||
21204 echo "$me: cannot create a temporary directory in ." >&2
21205 { (exit 1); exit 1; }
21209 # Set up the sed scripts for CONFIG_FILES section.
21212 # No need to generate the scripts if there are no CONFIG_FILES.
21213 # This happens for instance when ./config.status config.h
21214 if test -n "$CONFIG_FILES"; then
21216 _ACEOF
21218 # Create sed commands to just substitute file output variables.
21220 # Remaining file output variables are in a fragment that also has non-file
21221 # output varibles.
21225 ac_delim='%!_!# '
21226 for ac_last_try in false false false false false :; do
21227 cat >conf$$subs.sed <<_ACEOF
21228 SHELL!$SHELL$ac_delim
21229 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21230 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21231 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21232 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21233 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21234 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21235 exec_prefix!$exec_prefix$ac_delim
21236 prefix!$prefix$ac_delim
21237 program_transform_name!$program_transform_name$ac_delim
21238 bindir!$bindir$ac_delim
21239 sbindir!$sbindir$ac_delim
21240 libexecdir!$libexecdir$ac_delim
21241 datarootdir!$datarootdir$ac_delim
21242 datadir!$datadir$ac_delim
21243 sysconfdir!$sysconfdir$ac_delim
21244 sharedstatedir!$sharedstatedir$ac_delim
21245 localstatedir!$localstatedir$ac_delim
21246 includedir!$includedir$ac_delim
21247 oldincludedir!$oldincludedir$ac_delim
21248 docdir!$docdir$ac_delim
21249 infodir!$infodir$ac_delim
21250 htmldir!$htmldir$ac_delim
21251 dvidir!$dvidir$ac_delim
21252 pdfdir!$pdfdir$ac_delim
21253 psdir!$psdir$ac_delim
21254 libdir!$libdir$ac_delim
21255 localedir!$localedir$ac_delim
21256 mandir!$mandir$ac_delim
21257 DEFS!$DEFS$ac_delim
21258 ECHO_C!$ECHO_C$ac_delim
21259 ECHO_N!$ECHO_N$ac_delim
21260 ECHO_T!$ECHO_T$ac_delim
21261 LIBS!$LIBS$ac_delim
21262 build_alias!$build_alias$ac_delim
21263 host_alias!$host_alias$ac_delim
21264 target_alias!$target_alias$ac_delim
21265 build!$build$ac_delim
21266 build_cpu!$build_cpu$ac_delim
21267 build_vendor!$build_vendor$ac_delim
21268 build_os!$build_os$ac_delim
21269 host!$host$ac_delim
21270 host_cpu!$host_cpu$ac_delim
21271 host_vendor!$host_vendor$ac_delim
21272 host_os!$host_os$ac_delim
21273 WIN16_FILES!$WIN16_FILES$ac_delim
21274 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
21275 SET_MAKE!$SET_MAKE$ac_delim
21276 CC!$CC$ac_delim
21277 CFLAGS!$CFLAGS$ac_delim
21278 LDFLAGS!$LDFLAGS$ac_delim
21279 CPPFLAGS!$CPPFLAGS$ac_delim
21280 ac_ct_CC!$ac_ct_CC$ac_delim
21281 EXEEXT!$EXEEXT$ac_delim
21282 OBJEXT!$OBJEXT$ac_delim
21283 CXX!$CXX$ac_delim
21284 CXXFLAGS!$CXXFLAGS$ac_delim
21285 ac_ct_CXX!$ac_ct_CXX$ac_delim
21286 CPPBIN!$CPPBIN$ac_delim
21287 TOOLSDIR!$TOOLSDIR$ac_delim
21288 XMKMF!$XMKMF$ac_delim
21289 CPP!$CPP$ac_delim
21290 X_CFLAGS!$X_CFLAGS$ac_delim
21291 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21292 X_LIBS!$X_LIBS$ac_delim
21293 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21294 LEX!$LEX$ac_delim
21295 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
21296 LEXLIB!$LEXLIB$ac_delim
21297 XLEX!$XLEX$ac_delim
21298 BISON!$BISON$ac_delim
21299 AS!$AS$ac_delim
21300 ac_ct_AS!$ac_ct_AS$ac_delim
21301 LD!$LD$ac_delim
21302 AR!$AR$ac_delim
21303 RANLIB!$RANLIB$ac_delim
21304 STRIP!$STRIP$ac_delim
21305 WINDRES!$WINDRES$ac_delim
21306 LN_S!$LN_S$ac_delim
21307 LN!$LN$ac_delim
21308 GREP!$GREP$ac_delim
21309 EGREP!$EGREP$ac_delim
21310 _ACEOF
21312 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
21313 break
21314 elif $ac_last_try; then
21315 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21316 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21317 { (exit 1); exit 1; }; }
21318 else
21319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21321 done
21323 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21324 if test -n "$ac_eof"; then
21325 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21326 ac_eof=`expr $ac_eof + 1`
21329 cat >>$CONFIG_STATUS <<_ACEOF
21330 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21332 /^[ ]*@MAKE_RULES@[ ]*$/{
21333 r $MAKE_RULES
21336 /^[ ]*@MAKE_DLL_RULES@[ ]*$/{
21337 r $MAKE_DLL_RULES
21340 /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
21341 r $MAKE_IMPLIB_RULES
21344 /^[ ]*@MAKE_TEST_RULES@[ ]*$/{
21345 r $MAKE_TEST_RULES
21348 /^[ ]*@MAKE_PROG_RULES@[ ]*$/{
21349 r $MAKE_PROG_RULES
21352 _ACEOF
21353 sed '
21354 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21355 s/^/s,@/; s/!/@,|#_!!_#|/
21358 s/'"$ac_delim"'$/,g/; t
21359 s/$/\\/; p
21360 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21361 ' >>$CONFIG_STATUS <conf$$subs.sed
21362 rm -f conf$$subs.sed
21363 cat >>$CONFIG_STATUS <<_ACEOF
21364 CEOF$ac_eof
21365 _ACEOF
21368 ac_delim='%!_!# '
21369 for ac_last_try in false false false false false :; do
21370 cat >conf$$subs.sed <<_ACEOF
21371 LDCONFIG!$LDCONFIG$ac_delim
21372 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21373 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21374 INSTALL_DATA!$INSTALL_DATA$ac_delim
21375 LINT!$LINT$ac_delim
21376 LINTFLAGS!$LINTFLAGS$ac_delim
21377 FONTFORGE!$FONTFORGE$ac_delim
21378 PKG_CONFIG!$PKG_CONFIG$ac_delim
21379 PRELINK!$PRELINK$ac_delim
21380 LIBPTHREAD!$LIBPTHREAD$ac_delim
21381 XLIB!$XLIB$ac_delim
21382 XFILES!$XFILES$ac_delim
21383 OPENGLFILES!$OPENGLFILES$ac_delim
21384 GLU32FILES!$GLU32FILES$ac_delim
21385 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
21386 QUARTZFILES!$QUARTZFILES$ac_delim
21387 NASLIBS!$NASLIBS$ac_delim
21388 XML2LIBS!$XML2LIBS$ac_delim
21389 XML2INCL!$XML2INCL$ac_delim
21390 XSLTLIBS!$XSLTLIBS$ac_delim
21391 XSLTINCL!$XSLTINCL$ac_delim
21392 HALINCL!$HALINCL$ac_delim
21393 sane_devel!$sane_devel$ac_delim
21394 SANELIBS!$SANELIBS$ac_delim
21395 SANEINCL!$SANEINCL$ac_delim
21396 gphoto2_devel!$gphoto2_devel$ac_delim
21397 gphoto2port_devel!$gphoto2port_devel$ac_delim
21398 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
21399 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
21400 ICULIBS!$ICULIBS$ac_delim
21401 RESOLVLIBS!$RESOLVLIBS$ac_delim
21402 LCMSLIBS!$LCMSLIBS$ac_delim
21403 LDAPLIBS!$LDAPLIBS$ac_delim
21404 FREETYPELIBS!$FREETYPELIBS$ac_delim
21405 FREETYPEINCL!$FREETYPEINCL$ac_delim
21406 ft_devel!$ft_devel$ac_delim
21407 ft_devel2!$ft_devel2$ac_delim
21408 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
21409 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
21410 ARTSLIBS!$ARTSLIBS$ac_delim
21411 ARTSINCL!$ARTSINCL$ac_delim
21412 ESDCONFIG!$ESDCONFIG$ac_delim
21413 ESDLIBS!$ESDLIBS$ac_delim
21414 ESDINCL!$ESDINCL$ac_delim
21415 ALSALIBS!$ALSALIBS$ac_delim
21416 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
21417 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
21418 BUILTINFLAG!$BUILTINFLAG$ac_delim
21419 DLLEXT!$DLLEXT$ac_delim
21420 DLLFLAGS!$DLLFLAGS$ac_delim
21421 LDSHARED!$LDSHARED$ac_delim
21422 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
21423 LIBEXT!$LIBEXT$ac_delim
21424 IMPLIBEXT!$IMPLIBEXT$ac_delim
21425 LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim
21426 DLLTOOL!$DLLTOOL$ac_delim
21427 DLLWRAP!$DLLWRAP$ac_delim
21428 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
21429 IOKITLIB!$IOKITLIB$ac_delim
21430 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
21431 DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
21432 COREAUDIO!$COREAUDIO$ac_delim
21433 CARBONLIB!$CARBONLIB$ac_delim
21434 CROSSTEST!$CROSSTEST$ac_delim
21435 CROSSCC!$CROSSCC$ac_delim
21436 CROSSWINDRES!$CROSSWINDRES$ac_delim
21437 LDPATH!$LDPATH$ac_delim
21438 CRTLIBS!$CRTLIBS$ac_delim
21439 SOCKETLIBS!$SOCKETLIBS$ac_delim
21440 MAIN_BINARY!$MAIN_BINARY$ac_delim
21441 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
21442 LDD!$LDD$ac_delim
21443 LIBDL!$LIBDL$ac_delim
21444 LIBPOLL!$LIBPOLL$ac_delim
21445 DEPENDENCIES!$DEPENDENCIES$ac_delim
21446 LIBOBJS!$LIBOBJS$ac_delim
21447 LTLIBOBJS!$LTLIBOBJS$ac_delim
21448 _ACEOF
21450 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
21451 break
21452 elif $ac_last_try; then
21453 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21454 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21455 { (exit 1); exit 1; }; }
21456 else
21457 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21459 done
21461 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21462 if test -n "$ac_eof"; then
21463 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21464 ac_eof=`expr $ac_eof + 1`
21467 cat >>$CONFIG_STATUS <<_ACEOF
21468 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21470 _ACEOF
21471 sed '
21472 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21473 s/^/s,@/; s/!/@,|#_!!_#|/
21476 s/'"$ac_delim"'$/,g/; t
21477 s/$/\\/; p
21478 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21479 ' >>$CONFIG_STATUS <conf$$subs.sed
21480 rm -f conf$$subs.sed
21481 cat >>$CONFIG_STATUS <<_ACEOF
21482 :end
21483 s/|#_!!_#|//g
21484 CEOF$ac_eof
21485 _ACEOF
21488 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21489 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21490 # trailing colons and then remove the whole line if VPATH becomes empty
21491 # (actually we leave an empty line to preserve line numbers).
21492 if test "x$srcdir" = x.; then
21493 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21494 s/:*\$(srcdir):*/:/
21495 s/:*\${srcdir}:*/:/
21496 s/:*@srcdir@:*/:/
21497 s/^\([^=]*=[ ]*\):*/\1/
21498 s/:*$//
21499 s/^[^=]*=[ ]*$//
21503 cat >>$CONFIG_STATUS <<\_ACEOF
21504 fi # test -n "$CONFIG_FILES"
21507 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21509 case $ac_tag in
21510 :[FHLC]) ac_mode=$ac_tag; continue;;
21511 esac
21512 case $ac_mode$ac_tag in
21513 :[FHL]*:*);;
21514 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21515 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21516 { (exit 1); exit 1; }; };;
21517 :[FH]-) ac_tag=-:-;;
21518 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21519 esac
21520 ac_save_IFS=$IFS
21521 IFS=:
21522 set x $ac_tag
21523 IFS=$ac_save_IFS
21524 shift
21525 ac_file=$1
21526 shift
21528 case $ac_mode in
21529 :L) ac_source=$1;;
21530 :[FH])
21531 ac_file_inputs=
21532 for ac_f
21534 case $ac_f in
21535 -) ac_f="$tmp/stdin";;
21536 *) # Look for the file first in the build tree, then in the source tree
21537 # (if the path is not absolute). The absolute path cannot be DOS-style,
21538 # because $ac_f cannot contain `:'.
21539 test -f "$ac_f" ||
21540 case $ac_f in
21541 [\\/$]*) false;;
21542 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21543 esac ||
21544 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21545 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21546 { (exit 1); exit 1; }; };;
21547 esac
21548 ac_file_inputs="$ac_file_inputs $ac_f"
21549 done
21551 # Let's still pretend it is `configure' which instantiates (i.e., don't
21552 # use $as_me), people would be surprised to read:
21553 # /* config.h. Generated by config.status. */
21554 configure_input="Generated from "`IFS=:
21555 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21556 if test x"$ac_file" != x-; then
21557 configure_input="$ac_file. $configure_input"
21558 { echo "$as_me:$LINENO: creating $ac_file" >&5
21559 echo "$as_me: creating $ac_file" >&6;}
21562 case $ac_tag in
21563 *:-:* | *:-) cat >"$tmp/stdin";;
21564 esac
21566 esac
21568 ac_dir=`$as_dirname -- "$ac_file" ||
21569 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21570 X"$ac_file" : 'X\(//\)[^/]' \| \
21571 X"$ac_file" : 'X\(//\)$' \| \
21572 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21573 echo X"$ac_file" |
21574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21575 s//\1/
21578 /^X\(\/\/\)[^/].*/{
21579 s//\1/
21582 /^X\(\/\/\)$/{
21583 s//\1/
21586 /^X\(\/\).*/{
21587 s//\1/
21590 s/.*/./; q'`
21591 { as_dir="$ac_dir"
21592 case $as_dir in #(
21593 -*) as_dir=./$as_dir;;
21594 esac
21595 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21596 as_dirs=
21597 while :; do
21598 case $as_dir in #(
21599 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21600 *) as_qdir=$as_dir;;
21601 esac
21602 as_dirs="'$as_qdir' $as_dirs"
21603 as_dir=`$as_dirname -- "$as_dir" ||
21604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21605 X"$as_dir" : 'X\(//\)[^/]' \| \
21606 X"$as_dir" : 'X\(//\)$' \| \
21607 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21608 echo X"$as_dir" |
21609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21610 s//\1/
21613 /^X\(\/\/\)[^/].*/{
21614 s//\1/
21617 /^X\(\/\/\)$/{
21618 s//\1/
21621 /^X\(\/\).*/{
21622 s//\1/
21625 s/.*/./; q'`
21626 test -d "$as_dir" && break
21627 done
21628 test -z "$as_dirs" || eval "mkdir $as_dirs"
21629 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21630 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21631 { (exit 1); exit 1; }; }; }
21632 ac_builddir=.
21634 case "$ac_dir" in
21635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21638 # A ".." for each directory in $ac_dir_suffix.
21639 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21640 case $ac_top_builddir_sub in
21641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21643 esac ;;
21644 esac
21645 ac_abs_top_builddir=$ac_pwd
21646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21647 # for backward compatibility:
21648 ac_top_builddir=$ac_top_build_prefix
21650 case $srcdir in
21651 .) # We are building in place.
21652 ac_srcdir=.
21653 ac_top_srcdir=$ac_top_builddir_sub
21654 ac_abs_top_srcdir=$ac_pwd ;;
21655 [\\/]* | ?:[\\/]* ) # Absolute name.
21656 ac_srcdir=$srcdir$ac_dir_suffix;
21657 ac_top_srcdir=$srcdir
21658 ac_abs_top_srcdir=$srcdir ;;
21659 *) # Relative name.
21660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21661 ac_top_srcdir=$ac_top_build_prefix$srcdir
21662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21663 esac
21664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21667 case $ac_mode in
21670 # CONFIG_FILE
21673 case $INSTALL in
21674 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21675 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21676 esac
21677 _ACEOF
21679 cat >>$CONFIG_STATUS <<\_ACEOF
21680 # If the template does not know about datarootdir, expand it.
21681 # FIXME: This hack should be removed a few years after 2.60.
21682 ac_datarootdir_hack=; ac_datarootdir_seen=
21684 case `sed -n '/datarootdir/ {
21688 /@datadir@/p
21689 /@docdir@/p
21690 /@infodir@/p
21691 /@localedir@/p
21692 /@mandir@/p
21693 ' $ac_file_inputs` in
21694 *datarootdir*) ac_datarootdir_seen=yes;;
21695 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21696 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21697 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21698 _ACEOF
21699 cat >>$CONFIG_STATUS <<_ACEOF
21700 ac_datarootdir_hack='
21701 s&@datadir@&$datadir&g
21702 s&@docdir@&$docdir&g
21703 s&@infodir@&$infodir&g
21704 s&@localedir@&$localedir&g
21705 s&@mandir@&$mandir&g
21706 s&\\\${datarootdir}&$datarootdir&g' ;;
21707 esac
21708 _ACEOF
21710 # Neutralize VPATH when `$srcdir' = `.'.
21711 # Shell code in configure.ac might set extrasub.
21712 # FIXME: do we really want to maintain this feature?
21713 cat >>$CONFIG_STATUS <<_ACEOF
21714 sed "$ac_vpsub
21715 $extrasub
21716 _ACEOF
21717 cat >>$CONFIG_STATUS <<\_ACEOF
21719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21720 s&@configure_input@&$configure_input&;t t
21721 s&@top_builddir@&$ac_top_builddir_sub&;t t
21722 s&@srcdir@&$ac_srcdir&;t t
21723 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21724 s&@top_srcdir@&$ac_top_srcdir&;t t
21725 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21726 s&@builddir@&$ac_builddir&;t t
21727 s&@abs_builddir@&$ac_abs_builddir&;t t
21728 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21729 s&@INSTALL@&$ac_INSTALL&;t t
21730 $ac_datarootdir_hack
21731 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21733 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21734 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21735 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21736 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21737 which seems to be undefined. Please make sure it is defined." >&5
21738 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21739 which seems to be undefined. Please make sure it is defined." >&2;}
21741 rm -f "$tmp/stdin"
21742 case $ac_file in
21743 -) cat "$tmp/out"; rm -f "$tmp/out";;
21744 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21745 esac
21749 # CONFIG_HEADER
21751 _ACEOF
21753 # Transform confdefs.h into a sed script `conftest.defines', that
21754 # substitutes the proper values into config.h.in to produce config.h.
21755 rm -f conftest.defines conftest.tail
21756 # First, append a space to every undef/define line, to ease matching.
21757 echo 's/$/ /' >conftest.defines
21758 # Then, protect against being on the right side of a sed subst, or in
21759 # an unquoted here document, in config.status. If some macros were
21760 # called several times there might be several #defines for the same
21761 # symbol, which is useless. But do not sort them, since the last
21762 # AC_DEFINE must be honored.
21763 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21764 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21765 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21766 # PARAMS is the parameter list in the macro definition--in most cases, it's
21767 # just an empty string.
21768 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21769 ac_dB='\\)[ (].*,\\1define\\2'
21770 ac_dC=' '
21771 ac_dD=' ,'
21773 uniq confdefs.h |
21774 sed -n '
21775 t rset
21776 :rset
21777 s/^[ ]*#[ ]*define[ ][ ]*//
21778 t ok
21781 s/[\\&,]/\\&/g
21782 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21783 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21784 ' >>conftest.defines
21786 # Remove the space that was appended to ease matching.
21787 # Then replace #undef with comments. This is necessary, for
21788 # example, in the case of _POSIX_SOURCE, which is predefined and required
21789 # on some systems where configure will not decide to define it.
21790 # (The regexp can be short, since the line contains either #define or #undef.)
21791 echo 's/ $//
21792 s,^[ #]*u.*,/* & */,' >>conftest.defines
21794 # Break up conftest.defines:
21795 ac_max_sed_lines=50
21797 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21798 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21799 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21800 # et cetera.
21801 ac_in='$ac_file_inputs'
21802 ac_out='"$tmp/out1"'
21803 ac_nxt='"$tmp/out2"'
21805 while :
21807 # Write a here document:
21808 cat >>$CONFIG_STATUS <<_ACEOF
21809 # First, check the format of the line:
21810 cat >"\$tmp/defines.sed" <<\\CEOF
21811 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21812 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21814 :def
21815 _ACEOF
21816 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21817 echo 'CEOF
21818 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21819 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21820 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21821 grep . conftest.tail >/dev/null || break
21822 rm -f conftest.defines
21823 mv conftest.tail conftest.defines
21824 done
21825 rm -f conftest.defines conftest.tail
21827 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21828 cat >>$CONFIG_STATUS <<\_ACEOF
21829 if test x"$ac_file" != x-; then
21830 echo "/* $configure_input */" >"$tmp/config.h"
21831 cat "$ac_result" >>"$tmp/config.h"
21832 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21833 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21834 echo "$as_me: $ac_file is unchanged" >&6;}
21835 else
21836 rm -f $ac_file
21837 mv "$tmp/config.h" $ac_file
21839 else
21840 echo "/* $configure_input */"
21841 cat "$ac_result"
21843 rm -f "$tmp/out12"
21846 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21847 echo "$as_me: executing $ac_file commands" >&6;}
21849 esac
21852 case $ac_file$ac_mode in
21853 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
21854 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
21855 echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
21856 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
21857 echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
21858 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
21859 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
21860 "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
21861 echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
21862 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
21863 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
21864 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21865 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21867 esac
21868 done # for ac_tag
21871 { (exit 0); exit 0; }
21872 _ACEOF
21873 chmod +x $CONFIG_STATUS
21874 ac_clean_files=$ac_clean_files_save
21877 # configure is writing to config.log, and then calls config.status.
21878 # config.status does its own redirection, appending to config.log.
21879 # Unfortunately, on DOS this fails, as config.log is still kept open
21880 # by configure, so config.status won't be able to write to it; its
21881 # output is simply discarded. So we exec the FD to /dev/null,
21882 # effectively closing config.log, so it can be properly (re)opened and
21883 # appended to by config.status. When coming back to configure, we
21884 # need to make the FD available again.
21885 if test "$no_create" != yes; then
21886 ac_cs_success=:
21887 ac_config_status_args=
21888 test "$silent" = yes &&
21889 ac_config_status_args="$ac_config_status_args --quiet"
21890 exec 5>/dev/null
21891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21892 exec 5>>config.log
21893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21894 # would make configure fail if this is the last instruction.
21895 $ac_cs_success || { (exit 1); exit 1; }
21900 if test "$no_create" = "yes"
21901 then
21902 exit 0
21905 if test "$verbose" = "yes"
21906 then
21907 if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes"
21908 then
21909 echo >&2
21910 { echo "$as_me:$LINENO: libcapi20 development files not found." >&5
21911 echo "$as_me: libcapi20 development files not found." >&6;}
21912 { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5
21913 echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;}
21916 if test "$ac_cv_header_cups_cups_h" != "yes"
21917 then
21918 echo >&2
21919 { echo "$as_me:$LINENO: libcups development files not found." >&5
21920 echo "$as_me: libcups development files not found." >&6;}
21921 { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
21922 echo "$as_me: Wine will be built without CUPS support." >&6;}
21926 if test "$ac_cv_header_gphoto2_camera_h" != "yes"
21927 then
21928 echo >&2
21929 { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
21930 echo "$as_me: libgphoto2 development files not found." >&6;}
21931 if test "$ac_cv_header_sane_sane_h" = "yes"
21932 then
21933 { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
21934 echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
21935 else
21936 { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
21937 echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
21941 if test "$ac_cv_header_hal_libhal_h" != "yes"
21942 then
21943 echo >&2
21944 { echo "$as_me:$LINENO: libhal development files not found." >&5
21945 echo "$as_me: libhal development files not found." >&6;}
21946 { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
21947 echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
21950 if test "$ac_cv_header_unicode_ubidi_h" != "yes"
21951 then
21952 echo >&2
21953 { echo "$as_me:$LINENO: libicu development files not found." >&5
21954 echo "$as_me: libicu development files not found." >&6;}
21955 { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
21956 echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
21959 if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
21960 then
21961 echo >&2
21962 { echo "$as_me:$LINENO: liblcms development files not found." >&5
21963 echo "$as_me: liblcms development files not found." >&6;}
21964 { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
21965 echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
21968 if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
21969 then
21970 echo >&2
21971 { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
21972 echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
21973 { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
21974 echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
21977 if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
21978 then
21979 echo >&2
21980 { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
21981 echo "$as_me: lib(n)curses development files not found." >&6;}
21982 { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
21983 echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
21986 if test "$ac_cv_header_sane_sane_h" != "yes"
21987 then
21988 echo >&2
21989 { echo "$as_me:$LINENO: libsane development files not found." >&5
21990 echo "$as_me: libsane development files not found." >&6;}
21991 { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
21992 echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
21995 if test "$have_x" = "yes"
21996 then
21997 if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
21998 then
21999 echo >&2
22000 { echo "$as_me:$LINENO: libxext development files not found." >&5
22001 echo "$as_me: libxext development files not found." >&6;}
22002 { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
22003 echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
22006 if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
22007 then
22008 echo >&2
22009 { echo "$as_me:$LINENO: libXrandr development files not found." >&5
22010 echo "$as_me: libXrandr development files not found." >&6;}
22011 { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
22012 echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
22015 if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
22016 then
22017 echo >&2
22018 { echo "$as_me:$LINENO: libXrender development files not found." >&5
22019 echo "$as_me: libXrender development files not found." >&6;}
22020 { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
22021 echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
22024 if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
22025 then
22026 echo >&2
22027 { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
22028 echo "$as_me: libXxf86vm development files not found." >&6;}
22029 { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
22030 echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
22034 if test "$ac_cv_header_libxml_parser_h" != "yes"
22035 then
22036 echo >&2
22037 { echo "$as_me:$LINENO: libxml2 development files not found." >&5
22038 echo "$as_me: libxml2 development files not found." >&6;}
22039 { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
22040 echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
22043 if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
22044 then
22045 echo >&2
22046 { echo "$as_me:$LINENO: libxslt development files not found." >&5
22047 echo "$as_me: libxslt development files not found." >&6;}
22048 { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
22049 echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
22054 if test "$have_x" = "no"
22055 then
22056 echo >&2
22057 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
22058 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
22059 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
22060 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
22061 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
22062 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
22064 echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
22067 if test -z "$OPENGLFILES"
22068 then
22069 echo >&2
22070 { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
22071 echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
22072 { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
22073 echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
22074 if test "$wine_cv_opengl_headers_found" = "no"
22075 then
22076 { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
22077 echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
22079 if test "$wine_cv_opengl_header_version_OK" = "no"
22080 then
22081 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
22082 echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
22083 elif test "$ac_cv_lib_GL_glXCreateContext" = "no"
22084 then
22085 if test -f /usr/X11R6/lib/libGL.a
22086 then
22087 { echo "$as_me:$LINENO: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22088 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&5
22089 echo "$as_me: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22090 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&2;}
22091 else
22092 { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
22093 echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
22098 if test "$wine_cv_msg_freetype" = "yes"
22099 then
22100 echo >&2
22101 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
22102 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
22103 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
22104 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
22105 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
22106 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
22107 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
22108 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
22111 if test -z "$FONTSSUBDIRS"
22112 then
22113 echo >&2
22114 if test "$FONTFORGE" = "false"
22115 then
22116 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
22117 echo "$as_me: WARNING: FontForge is missing." >&2;}
22118 else
22119 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
22120 echo "$as_me: WARNING: FreeType is missing." >&2;}
22122 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
22123 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
22126 if test -z "$ALSALIBS" -a \
22127 -z "$ARTSC_LIBS" -a \
22128 -z "$AUDIOIOLIBS" -a \
22129 -z "$NASLIBS" -a \
22130 -z "$ESD_LIBS" -a \
22131 -z "$ac_cv_lib_soname_jack" -a \
22132 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
22133 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
22134 "$ac_cv_header_soundcard_h" != "yes"
22135 then
22136 echo >&2
22137 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
22138 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
22139 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
22140 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
22141 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
22142 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
22145 echo
22146 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
22147 echo