libwine: Add a configure check for setrlimit.
[wine/multimedia.git] / configure
bloba03a85c0549019412bec43e407ae84cf1a2eab40
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a for Wine 0.9.17.
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 Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
48 rm -f conf$$.sh
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
66 IFS=" "" $as_nl"
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 done
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
138 /^X\/\(\/\/\)$/{
139 s//\1/
142 /^X\/\(\/\).*/{
143 s//\1/
146 s/.*/./; q'`
148 # CDPATH.
149 $as_unset CDPATH
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
163 as_func_success () {
164 as_func_return 0
166 as_func_failure () {
167 as_func_return 1
169 as_func_ret_success () {
170 return 0
172 as_func_ret_failure () {
173 return 1
176 exitcode=0
177 if as_func_success; then
179 else
180 exitcode=1
181 echo as_func_success failed.
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 else
204 exitcode=1
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
273 (as_func_return () {
274 (exit $1)
276 as_func_success () {
277 as_func_return 0
279 as_func_failure () {
280 as_func_return 1
282 as_func_ret_success () {
283 return 0
285 as_func_ret_failure () {
286 return 1
289 exitcode=0
290 if as_func_success; then
292 else
293 exitcode=1
294 echo as_func_success failed.
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 else
317 exitcode=1
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329 _ASEOF
330 }; then
331 break
336 done
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
363 (exit \$1)
365 as_func_success () {
366 as_func_return 0
368 as_func_failure () {
369 as_func_return 1
371 as_func_ret_success () {
372 return 0
374 as_func_ret_failure () {
375 return 1
378 exitcode=0
379 if as_func_success; then
381 else
382 exitcode=1
383 echo as_func_success failed.
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 else
406 exitcode=1
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
476 ECHO_N='-n';;
477 esac
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
529 rm -f conf$$.file
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 # Initializations.
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='Wine'
561 PACKAGE_TARNAME='wine'
562 PACKAGE_VERSION='0.9.17'
563 PACKAGE_STRING='Wine 0.9.17'
564 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 ac_unique_file="server/atom.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 build
641 build_cpu
642 build_vendor
643 build_os
644 host
645 host_cpu
646 host_vendor
647 host_os
648 WIN16_FILES
649 WIN16_INSTALL
650 SET_MAKE
652 CFLAGS
653 LDFLAGS
654 CPPFLAGS
655 ac_ct_CC
656 EXEEXT
657 OBJEXT
659 CXXFLAGS
660 ac_ct_CXX
661 CPPBIN
662 TOOLSDIR
663 XMKMF
665 X_CFLAGS
666 X_PRE_LIBS
667 X_LIBS
668 X_EXTRA_LIBS
670 LEXLIB
671 LEX_OUTPUT_ROOT
672 XLEX
673 BISON
675 ac_ct_AS
678 RANLIB
679 STRIP
680 WINDRES
681 LN_S
683 GREP
684 EGREP
685 LDCONFIG
686 INSTALL_PROGRAM
687 INSTALL_SCRIPT
688 INSTALL_DATA
689 LINT
690 LINTFLAGS
691 FONTFORGE
692 PKG_CONFIG
693 PRELINK
694 LIBPTHREAD
695 XLIB
696 XFILES
697 OPENGLFILES
698 GLU32FILES
699 OPENGL_LIBS
700 GLUT_LIBS
701 GLUT32FILES
702 NASLIBS
703 XML2LIBS
704 XML2INCL
705 XSLTLIBS
706 XSLTINCL
707 HALINCL
708 CURSESLIBS
709 sane_devel
710 SANELIBS
711 SANEINCL
712 gphoto2_devel
713 gphoto2port_devel
714 GPHOTO2LIBS
715 GPHOTO2INCL
716 ICULIBS
717 RESOLVLIBS
718 LCMSLIBS
719 LDAPLIBS
720 FREETYPELIBS
721 FREETYPEINCL
722 ft_devel
723 ft_devel2
724 FONTSSUBDIRS
725 ARTSCCONFIG
726 ARTSLIBS
727 ARTSINCL
728 ESDCONFIG
729 ESDLIBS
730 ESDINCL
731 ALSALIBS
732 AUDIOIOLIBS
733 EXTRACFLAGS
734 BUILTINFLAG
735 DLLEXT
736 DLLFLAGS
737 DLLIBS
738 LDSHARED
739 LDDLLFLAGS
740 LIBEXT
741 IMPLIBEXT
742 DLLTOOL
743 DLLWRAP
744 LDEXECFLAGS
745 LDEXERPATH
746 LDDLLRPATH
747 COREFOUNDATIONLIB
748 IOKITLIB
749 COREAUDIO
750 CROSSTEST
751 CROSSCC
752 CROSSWINDRES
753 LDPATH
754 CRTLIBS
755 SOCKETLIBS
756 MAIN_BINARY
757 EXTRA_BINARIES
759 LIBOBJS
760 LTLIBOBJS'
761 ac_subst_files='MAKE_RULES
762 MAKE_DLL_RULES
763 MAKE_IMPLIB_RULES
764 MAKE_TEST_RULES
765 MAKE_LIB_RULES
766 MAKE_PROG_RULES'
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
771 CFLAGS
772 LDFLAGS
773 CPPFLAGS
775 CXXFLAGS
777 XMKMF
778 CPP'
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
827 ac_prev=
828 ac_dashdash=
829 for ac_option
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
838 case $ac_option in
839 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *) ac_optarg=yes ;;
841 esac
843 # Accept the important Cygnus configure options, so we can diagnose typos.
845 case $ac_dashdash$ac_option in
847 ac_dashdash=yes ;;
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
866 --config-cache | -C)
867 cache_file=config.cache ;;
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
881 -disable-* | --disable-*)
882 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
885 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
886 { (exit 1); exit 1; }; }
887 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
888 eval enable_$ac_feature=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
900 -enable-* | --enable-*)
901 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
904 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905 { (exit 1); exit 1; }; }
906 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
907 eval enable_$ac_feature=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1097 -with-* | --with-*)
1098 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid package name: $ac_package" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_package=`echo $ac_package| sed 's/-/_/g'`
1104 eval with_$ac_package=\$ac_optarg ;;
1106 -without-* | --without-*)
1107 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/-/_/g'`
1113 eval with_$ac_package=no ;;
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1133 -*) { echo "$as_me: error: unrecognized option: $ac_option
1134 Try \`$0 --help' for more information." >&2
1135 { (exit 1); exit 1; }; }
1138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1143 { (exit 1); exit 1; }; }
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1148 # FIXME: should be removed in autoconf 3.0.
1149 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1155 esac
1156 done
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 { echo "$as_me: error: missing argument to $ac_option" >&2
1161 { (exit 1); exit 1; }; }
1164 # Be sure to have absolute directory names.
1165 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir
1170 eval ac_val=\$$ac_var
1171 case $ac_val in
1172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 esac
1175 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1176 { (exit 1); exit 1; }; }
1177 done
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191 If a cross compiler is detected then cross compile mode will be used." >&2
1192 elif test "x$build_alias" != "x$host_alias"; then
1193 cross_compiling=yes
1197 ac_tool_prefix=
1198 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1200 test "$silent" = yes && exec 6>/dev/null
1203 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di=`ls -di .` &&
1205 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 { echo "$as_me: error: Working directory cannot be determined" >&2
1207 { (exit 1); exit 1; }; }
1208 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209 { echo "$as_me: error: pwd does not report name of working directory" >&2
1210 { (exit 1); exit 1; }; }
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$0" ||
1218 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$0" : 'X\(//\)[^/]' \| \
1220 X"$0" : 'X\(//\)$' \| \
1221 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 echo X"$0" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1231 /^X\(\/\/\)$/{
1232 s//\1/
1235 /^X\(\/\).*/{
1236 s//\1/
1239 s/.*/./; q'`
1240 srcdir=$ac_confdir
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 srcdir=..
1244 else
1245 ac_srcdir_defaulted=no
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1250 { (exit 1); exit 1; }; }
1252 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 ac_abs_confdir=`(
1254 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1255 { (exit 1); exit 1; }; }
1256 pwd)`
1257 # When building in place, set srcdir=.
1258 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 srcdir=.
1261 # Remove unnecessary trailing slashes from srcdir.
1262 # Double slashes in file names in object file debugging info
1263 # mess up M-x gdb in Emacs.
1264 case $srcdir in
1265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 esac
1267 for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272 done
1275 # Report the --help message.
1277 if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
1280 cat <<_ACEOF
1281 \`configure' configures Wine 0.9.17 to adapt to many kinds of systems.
1283 Usage: $0 [OPTION]... [VAR=VALUE]...
1285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286 VAR=VALUE. See below for descriptions of some of the useful variables.
1288 Defaults for the options are specified in brackets.
1290 Configuration:
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
1295 -q, --quiet, --silent do not print \`checking...' messages
1296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1301 Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
1303 [$ac_default_prefix]
1304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 [PREFIX]
1307 By default, \`make install' will install all the files in
1308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310 for instance \`--prefix=\$HOME'.
1312 For better control, use the options below.
1314 Fine tuning of the installation directories:
1315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
1334 _ACEOF
1336 cat <<\_ACEOF
1338 X features:
1339 --x-includes=DIR X include files are in DIR
1340 --x-libraries=DIR X library files are in DIR
1342 System types:
1343 --build=BUILD configure for building on BUILD [guessed]
1344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of Wine 0.9.17:";;
1351 esac
1352 cat <<\_ACEOF
1354 Optional Features:
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --disable-win16 do not include Win16 support
1358 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1359 binaries)
1361 Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1364 --without-opengl do not use OpenGL
1365 --without-curses do not use curses
1366 --with-wine-tools=<dir> use Wine tools from directory <dir>
1367 --with-x use the X Window System
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375 you have headers in a nonstandard directory <include dir>
1376 CXX C++ compiler command
1377 CXXFLAGS C++ compiler flags
1378 XMKMF Path to xmkmf, Makefile generator for X Window System
1379 CPP C preprocessor
1381 Use these variables to override the choices made by `configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1384 Report bugs to <wine-devel@winehq.org>.
1385 _ACEOF
1386 ac_status=$?
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d "$ac_dir" || continue
1393 ac_builddir=.
1395 case "$ac_dir" in
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405 esac
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1411 case $srcdir in
1412 .) # We are building in place.
1413 ac_srcdir=.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 esac
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1435 else
1436 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1439 done
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1444 cat <<\_ACEOF
1445 Wine configure 0.9.17
1446 generated by GNU Autoconf 2.60a
1448 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1449 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1452 _ACEOF
1453 exit
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1459 It was created by Wine $as_me 0.9.17, which was
1460 generated by GNU Autoconf 2.60a. Invocation command line was
1462 $ $0 $@
1464 _ACEOF
1465 exec 5>>config.log
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1489 _ASUNAME
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1500 } >&5
1502 cat >&5 <<_ACEOF
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1509 _ACEOF
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_must_keep_next=false
1521 for ac_pass in 1 2
1523 for ac_arg
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
1530 *\'*)
1531 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 esac
1533 case $ac_pass in
1534 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1536 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
1538 ac_must_keep_next=false # Got value, back to normal.
1539 else
1540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1549 -* ) ac_must_keep_next=true ;;
1550 esac
1552 ac_configure_args="$ac_configure_args '$ac_arg'"
1554 esac
1555 done
1556 done
1557 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1558 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log. We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
1568 echo
1570 cat <<\_ASBOX
1571 ## ---------------- ##
1572 ## Cache variables. ##
1573 ## ---------------- ##
1574 _ASBOX
1575 echo
1576 # The following way of writing the cache mishandles newlines in values,
1578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1579 eval ac_val=\$$ac_var
1580 case $ac_val in #(
1581 *${as_nl}*)
1582 case $ac_var in #(
1583 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1584 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585 esac
1586 case $ac_var in #(
1587 _ | IFS | as_nl) ;; #(
1588 *) $as_unset $ac_var ;;
1589 esac ;;
1590 esac
1591 done
1592 (set) 2>&1 |
1593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1594 *${as_nl}ac_space=\ *)
1595 sed -n \
1596 "s/'\''/'\''\\\\'\'''\''/g;
1597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 ;; #(
1600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1602 esac |
1603 sort
1605 echo
1607 cat <<\_ASBOX
1608 ## ----------------- ##
1609 ## Output variables. ##
1610 ## ----------------- ##
1611 _ASBOX
1612 echo
1613 for ac_var in $ac_subst_vars
1615 eval ac_val=\$$ac_var
1616 case $ac_val in
1617 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 esac
1619 echo "$ac_var='\''$ac_val'\''"
1620 done | sort
1621 echo
1623 if test -n "$ac_subst_files"; then
1624 cat <<\_ASBOX
1625 ## ------------------- ##
1626 ## File substitutions. ##
1627 ## ------------------- ##
1628 _ASBOX
1629 echo
1630 for ac_var in $ac_subst_files
1632 eval ac_val=\$$ac_var
1633 case $ac_val in
1634 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 esac
1636 echo "$ac_var='\''$ac_val'\''"
1637 done | sort
1638 echo
1641 if test -s confdefs.h; then
1642 cat <<\_ASBOX
1643 ## ----------- ##
1644 ## confdefs.h. ##
1645 ## ----------- ##
1646 _ASBOX
1647 echo
1648 cat confdefs.h
1649 echo
1651 test "$ac_signal" != 0 &&
1652 echo "$as_me: caught signal $ac_signal"
1653 echo "$as_me: exit $exit_status"
1654 } >&5
1655 rm -f core *.core core.conftest.* &&
1656 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657 exit $exit_status
1659 for ac_signal in 1 2 13 15; do
1660 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1661 done
1662 ac_signal=0
1664 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1665 rm -f -r conftest* confdefs.h
1667 # Predefined preprocessor variables.
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_NAME "$PACKAGE_NAME"
1671 _ACEOF
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1681 _ACEOF
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_STRING "$PACKAGE_STRING"
1686 _ACEOF
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691 _ACEOF
1694 # Let the site file select an alternate cache file if it wants to.
1695 # Prefer explicitly selected file to automatically selected ones.
1696 if test -n "$CONFIG_SITE"; then
1697 set x "$CONFIG_SITE"
1698 elif test "x$prefix" != xNONE; then
1699 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1700 else
1701 set x "$ac_default_prefix/share/config.site" \
1702 "$ac_default_prefix/etc/config.site"
1704 shift
1705 for ac_site_file
1707 if test -r "$ac_site_file"; then
1708 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1709 echo "$as_me: loading site script $ac_site_file" >&6;}
1710 sed 's/^/| /' "$ac_site_file" >&5
1711 . "$ac_site_file"
1713 done
1715 if test -r "$cache_file"; then
1716 # Some versions of bash will fail to source /dev/null (special
1717 # files actually), so we avoid doing that.
1718 if test -f "$cache_file"; then
1719 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1720 echo "$as_me: loading cache $cache_file" >&6;}
1721 case $cache_file in
1722 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1723 *) . "./$cache_file";;
1724 esac
1726 else
1727 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1728 echo "$as_me: creating cache $cache_file" >&6;}
1729 >$cache_file
1732 # Check that the precious variables saved in the cache have kept the same
1733 # value.
1734 ac_cache_corrupted=false
1735 for ac_var in $ac_precious_vars; do
1736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1737 eval ac_new_set=\$ac_env_${ac_var}_set
1738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1739 eval ac_new_val=\$ac_env_${ac_var}_value
1740 case $ac_old_set,$ac_new_set in
1741 set,)
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,set)
1746 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1747 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1748 ac_cache_corrupted=: ;;
1749 ,);;
1751 if test "x$ac_old_val" != "x$ac_new_val"; then
1752 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1753 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1754 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1755 echo "$as_me: former value: $ac_old_val" >&2;}
1756 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1757 echo "$as_me: current value: $ac_new_val" >&2;}
1758 ac_cache_corrupted=:
1759 fi;;
1760 esac
1761 # Pass precious variables to config.status.
1762 if test "$ac_new_set" = set; then
1763 case $ac_new_val in
1764 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1765 *) ac_arg=$ac_var=$ac_new_val ;;
1766 esac
1767 case " $ac_configure_args " in
1768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1769 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1770 esac
1772 done
1773 if $ac_cache_corrupted; then
1774 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1775 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1776 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1777 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1778 { (exit 1); exit 1; }; }
1805 ac_ext=c
1806 ac_cpp='$CPP $CPPFLAGS'
1807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813 ac_config_headers="$ac_config_headers include/config.h"
1815 ac_aux_dir=
1816 for ac_dir in tools "$srcdir"/tools; do
1817 if test -f "$ac_dir/install-sh"; then
1818 ac_aux_dir=$ac_dir
1819 ac_install_sh="$ac_aux_dir/install-sh -c"
1820 break
1821 elif test -f "$ac_dir/install.sh"; then
1822 ac_aux_dir=$ac_dir
1823 ac_install_sh="$ac_aux_dir/install.sh -c"
1824 break
1825 elif test -f "$ac_dir/shtool"; then
1826 ac_aux_dir=$ac_dir
1827 ac_install_sh="$ac_aux_dir/shtool install -c"
1828 break
1830 done
1831 if test -z "$ac_aux_dir"; then
1832 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1833 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1834 { (exit 1); exit 1; }; }
1837 # These three variables are undocumented and unsupported,
1838 # and are intended to be withdrawn in a future Autoconf release.
1839 # They can cause serious problems if a builder's source tree is in a directory
1840 # whose full name contains unusual characters.
1841 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1842 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1843 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1848 # Check whether --enable-win16 was given.
1849 if test "${enable_win16+set}" = set; then
1850 enableval=$enable_win16;
1853 # Check whether --enable-win64 was given.
1854 if test "${enable_win64+set}" = set; then
1855 enableval=$enable_win64;
1860 # Check whether --with-opengl was given.
1861 if test "${with_opengl+set}" = set; then
1862 withval=$with_opengl;
1866 # Check whether --with-curses was given.
1867 if test "${with_curses+set}" = set; then
1868 withval=$with_curses;
1872 # Check whether --with-wine-tools was given.
1873 if test "${with_wine_tools+set}" = set; then
1874 withval=$with_wine_tools;
1878 # Make sure we can run config.sub.
1879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1880 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1881 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1882 { (exit 1); exit 1; }; }
1884 { echo "$as_me:$LINENO: checking build system type" >&5
1885 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1886 if test "${ac_cv_build+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 ac_build_alias=$build_alias
1890 test "x$ac_build_alias" = x &&
1891 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1892 test "x$ac_build_alias" = x &&
1893 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1894 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1895 { (exit 1); exit 1; }; }
1896 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1897 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1898 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1899 { (exit 1); exit 1; }; }
1902 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1903 echo "${ECHO_T}$ac_cv_build" >&6; }
1904 case $ac_cv_build in
1905 *-*-*) ;;
1906 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1907 echo "$as_me: error: invalid value of canonical build" >&2;}
1908 { (exit 1); exit 1; }; };;
1909 esac
1910 build=$ac_cv_build
1911 ac_save_IFS=$IFS; IFS='-'
1912 set x $ac_cv_build
1913 shift
1914 build_cpu=$1
1915 build_vendor=$2
1916 shift; shift
1917 # Remember, the first character of IFS is used to create $*,
1918 # except with old shells:
1919 build_os=$*
1920 IFS=$ac_save_IFS
1921 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1924 { echo "$as_me:$LINENO: checking host system type" >&5
1925 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1926 if test "${ac_cv_host+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 if test "x$host_alias" = x; then
1930 ac_cv_host=$ac_cv_build
1931 else
1932 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1933 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1935 { (exit 1); exit 1; }; }
1939 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1940 echo "${ECHO_T}$ac_cv_host" >&6; }
1941 case $ac_cv_host in
1942 *-*-*) ;;
1943 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1944 echo "$as_me: error: invalid value of canonical host" >&2;}
1945 { (exit 1); exit 1; }; };;
1946 esac
1947 host=$ac_cv_host
1948 ac_save_IFS=$IFS; IFS='-'
1949 set x $ac_cv_host
1950 shift
1951 host_cpu=$1
1952 host_vendor=$2
1953 shift; shift
1954 # Remember, the first character of IFS is used to create $*,
1955 # except with old shells:
1956 host_os=$*
1957 IFS=$ac_save_IFS
1958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1961 case $host in
1962 x86_64*linux*)
1963 if test "x$enable_win64" != "xyes"
1964 then
1965 test -n "$CC" || CC="gcc -m32"
1966 test -n "$LD" || LD="ld -m elf_i386"
1967 test -n "$AS" || AS="as --32"
1968 host_cpu="i386"
1971 esac
1973 case $host_cpu in
1974 *i[3456789]86*)
1975 if test "x$enable_win16" != "xno"
1976 then
1977 enable_win16="yes"
1980 esac
1982 WIN16_FILES="\$(WIN16_FILES)"
1984 WIN16_INSTALL="\$(WIN16_INSTALL)"
1986 if test "x$enable_win16" != "xyes"
1987 then
1988 WIN16_FILES=""
1989 WIN16_INSTALL=""
1993 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1994 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1995 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1996 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 cat >conftest.make <<\_ACEOF
2000 SHELL = /bin/sh
2001 all:
2002 @echo '@@@%%%=$(MAKE)=@@@%%%'
2003 _ACEOF
2004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2005 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2006 *@@@%%%=?*=@@@%%%*)
2007 eval ac_cv_prog_make_${ac_make}_set=yes;;
2009 eval ac_cv_prog_make_${ac_make}_set=no;;
2010 esac
2011 rm -f conftest.make
2013 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2014 { echo "$as_me:$LINENO: result: yes" >&5
2015 echo "${ECHO_T}yes" >&6; }
2016 SET_MAKE=
2017 else
2018 { echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6; }
2020 SET_MAKE="MAKE=${MAKE-make}"
2023 ac_ext=c
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2046 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2050 done
2051 done
2052 IFS=$as_save_IFS
2056 CC=$ac_cv_prog_CC
2057 if test -n "$CC"; then
2058 { echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6; }
2060 else
2061 { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2067 if test -z "$ac_cv_prog_CC"; then
2068 ac_ct_CC=$CC
2069 # Extract the first word of "gcc", so it can be a program name with args.
2070 set dummy gcc; ac_word=$2
2071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2086 ac_cv_prog_ac_ct_CC="gcc"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2090 done
2091 done
2092 IFS=$as_save_IFS
2096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097 if test -n "$ac_ct_CC"; then
2098 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099 echo "${ECHO_T}$ac_ct_CC" >&6; }
2100 else
2101 { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2105 if test "x$ac_ct_CC" = x; then
2106 CC=""
2107 else
2108 case $cross_compiling:$ac_tool_warned in
2109 yes:)
2110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111 whose name does not start with the host triplet. If you think this
2112 configuration is useful to you, please write to autoconf@gnu.org." >&5
2113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet. If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116 ac_tool_warned=yes ;;
2117 esac
2118 CC=$ac_ct_CC
2120 else
2121 CC="$ac_cv_prog_CC"
2124 if test -z "$CC"; then
2125 if test -n "$ac_tool_prefix"; then
2126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2127 set dummy ${ac_tool_prefix}cc; ac_word=$2
2128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2130 if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2143 ac_cv_prog_CC="${ac_tool_prefix}cc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2147 done
2148 done
2149 IFS=$as_save_IFS
2153 CC=$ac_cv_prog_CC
2154 if test -n "$CC"; then
2155 { echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6; }
2157 else
2158 { echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6; }
2165 if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 ac_prog_rejected=no
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2192 done
2193 done
2194 IFS=$as_save_IFS
2196 if test $ac_prog_rejected = yes; then
2197 # We found a bogon in the path, so make sure we never use it.
2198 set dummy $ac_cv_prog_CC
2199 shift
2200 if test $# != 0; then
2201 # We chose a different compiler from the bogus one.
2202 # However, it has the same basename, so the bogon will be chosen
2203 # first if we set CC to just the basename; use the full file name.
2204 shift
2205 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2210 CC=$ac_cv_prog_CC
2211 if test -n "$CC"; then
2212 { echo "$as_me:$LINENO: result: $CC" >&5
2213 echo "${ECHO_T}$CC" >&6; }
2214 else
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2221 if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
2223 for ac_prog in cl.exe
2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2246 done
2247 done
2248 IFS=$as_save_IFS
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 { echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6; }
2256 else
2257 { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2262 test -n "$CC" && break
2263 done
2265 if test -z "$CC"; then
2266 ac_ct_CC=$CC
2267 for ac_prog in cl.exe
2269 # Extract the first word of "$ac_prog", so it can be a program name with args.
2270 set dummy $ac_prog; ac_word=$2
2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_ac_ct_CC="$ac_prog"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2290 done
2291 done
2292 IFS=$as_save_IFS
2296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297 if test -n "$ac_ct_CC"; then
2298 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299 echo "${ECHO_T}$ac_ct_CC" >&6; }
2300 else
2301 { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2306 test -n "$ac_ct_CC" && break
2307 done
2309 if test "x$ac_ct_CC" = x; then
2310 CC=""
2311 else
2312 case $cross_compiling:$ac_tool_warned in
2313 yes:)
2314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet. If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&5
2317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320 ac_tool_warned=yes ;;
2321 esac
2322 CC=$ac_ct_CC
2329 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: no acceptable C compiler found in \$PATH
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2335 # Provide some information about the compiler.
2336 echo "$as_me:$LINENO: checking for C compiler version" >&5
2337 ac_compiler=`set X $ac_compile; echo $2`
2338 { (ac_try="$ac_compiler --version >&5"
2339 case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342 esac
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_compiler --version >&5") 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
2348 { (ac_try="$ac_compiler -v >&5"
2349 case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352 esac
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compiler -v >&5") 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
2358 { (ac_try="$ac_compiler -V >&5"
2359 case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362 esac
2363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364 (eval "$ac_compiler -V >&5") 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2377 main ()
2381 return 0;
2383 _ACEOF
2384 ac_clean_files_save=$ac_clean_files
2385 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2386 # Try to create an executable without -o first, disregard a.out.
2387 # It will help us diagnose broken compilers, and finding out an intuition
2388 # of exeext.
2389 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2390 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2391 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2393 # List of possible output files, starting from the most likely.
2394 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2395 # only as a last resort. b.out is created by i960 compilers.
2396 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2398 # The IRIX 6 linker writes into existing files which may not be
2399 # executable, retaining their permissions. Remove them first so a
2400 # subsequent execution test works.
2401 ac_rmfiles=
2402 for ac_file in $ac_files
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2407 esac
2408 done
2409 rm -f $ac_rmfiles
2411 if { (ac_try="$ac_link_default"
2412 case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_link_default") 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
2421 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2422 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2423 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2424 # so that the user can short-circuit this test for compilers unknown to
2425 # Autoconf.
2426 for ac_file in $ac_files
2428 test -f "$ac_file" || continue
2429 case $ac_file in
2430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2432 [ab].out )
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
2436 *.* )
2437 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438 then :; else
2439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441 # We set ac_cv_exeext here because the later test for it is not
2442 # safe: cross compilers may not add the suffix if given an `-o'
2443 # argument, so we may need to know it at that point already.
2444 # Even if this section looks crufty: it has the advantage of
2445 # actually working.
2446 break;;
2448 break;;
2449 esac
2450 done
2451 test "$ac_cv_exeext" = no && ac_cv_exeext=
2453 else
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2457 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: C compiler cannot create executables
2460 See \`config.log' for more details." >&2;}
2461 { (exit 77); exit 77; }; }
2464 ac_exeext=$ac_cv_exeext
2465 { echo "$as_me:$LINENO: result: $ac_file" >&5
2466 echo "${ECHO_T}$ac_file" >&6; }
2468 # Check that the compiler produces executables we can run. If not, either
2469 # the compiler is broken, or we cross compile.
2470 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2471 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2473 # If not cross compiling, check that we can run a simple program.
2474 if test "$cross_compiling" != yes; then
2475 if { ac_try='./$ac_file'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479 esac
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2485 cross_compiling=no
2486 else
2487 if test "$cross_compiling" = maybe; then
2488 cross_compiling=yes
2489 else
2490 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2491 If you meant to cross compile, use \`--host'.
2492 See \`config.log' for more details." >&5
2493 echo "$as_me: error: cannot run C compiled programs.
2494 If you meant to cross compile, use \`--host'.
2495 See \`config.log' for more details." >&2;}
2496 { (exit 1); exit 1; }; }
2500 { echo "$as_me:$LINENO: result: yes" >&5
2501 echo "${ECHO_T}yes" >&6; }
2503 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2504 ac_clean_files=$ac_clean_files_save
2505 # Check that the compiler produces executables we can run. If not, either
2506 # the compiler is broken, or we cross compile.
2507 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2508 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2509 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2510 echo "${ECHO_T}$cross_compiling" >&6; }
2512 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2513 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2514 if { (ac_try="$ac_link"
2515 case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_link") 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; then
2524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2525 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2526 # work properly (i.e., refer to `conftest.exe'), while it won't with
2527 # `rm'.
2528 for ac_file in conftest.exe conftest conftest.*; do
2529 test -f "$ac_file" || continue
2530 case $ac_file in
2531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2533 break;;
2534 * ) break;;
2535 esac
2536 done
2537 else
2538 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2541 See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2545 rm -f conftest$ac_cv_exeext
2546 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2547 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2549 rm -f conftest.$ac_ext
2550 EXEEXT=$ac_cv_exeext
2551 ac_exeext=$EXEEXT
2552 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2553 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2554 if test "${ac_cv_objext+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2565 main ()
2569 return 0;
2571 _ACEOF
2572 rm -f conftest.o conftest.obj
2573 if { (ac_try="$ac_compile"
2574 case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; then
2583 for ac_file in conftest.o conftest.obj conftest.*; do
2584 test -f "$ac_file" || continue;
2585 case $ac_file in
2586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2587 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2588 break;;
2589 esac
2590 done
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2595 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2596 See \`config.log' for more details." >&5
2597 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2598 See \`config.log' for more details." >&2;}
2599 { (exit 1); exit 1; }; }
2602 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2604 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2605 echo "${ECHO_T}$ac_cv_objext" >&6; }
2606 OBJEXT=$ac_cv_objext
2607 ac_objext=$OBJEXT
2608 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2609 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2610 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2621 main ()
2623 #ifndef __GNUC__
2624 choke me
2625 #endif
2628 return 0;
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (ac_try="$ac_compile"
2633 case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636 esac
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_compile") 2>conftest.er1
2639 ac_status=$?
2640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2646 { (case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_try") 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_try") 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 ac_compiler_gnu=yes
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 ac_compiler_gnu=no
2673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2677 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2678 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2679 GCC=`test $ac_compiler_gnu = yes && echo yes`
2680 ac_test_CFLAGS=${CFLAGS+set}
2681 ac_save_CFLAGS=$CFLAGS
2682 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_cc_g+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 ac_save_c_werror_flag=$ac_c_werror_flag
2688 ac_c_werror_flag=yes
2689 ac_cv_prog_cc_g=no
2690 CFLAGS="-g"
2691 cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h. */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2699 main ()
2703 return 0;
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (ac_try="$ac_compile"
2708 case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compile") 2>conftest.er1
2714 ac_status=$?
2715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_try") 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 ac_cv_prog_cc_g=yes
2741 else
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 CFLAGS=""
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h. */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2754 main ()
2758 return 0;
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (ac_try="$ac_compile"
2763 case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766 esac
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compile") 2>conftest.er1
2769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2776 { (case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_try") 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_try") 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2796 else
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 ac_c_werror_flag=$ac_save_c_werror_flag
2801 CFLAGS="-g"
2802 cat >conftest.$ac_ext <<_ACEOF
2803 /* confdefs.h. */
2804 _ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h. */
2810 main ()
2814 return 0;
2816 _ACEOF
2817 rm -f conftest.$ac_objext
2818 if { (ac_try="$ac_compile"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compile") 2>conftest.er1
2825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2832 { (case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_try") 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 ac_cv_prog_cc_g=yes
2852 else
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_c_werror_flag=$ac_save_c_werror_flag
2868 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2870 if test "$ac_test_CFLAGS" = set; then
2871 CFLAGS=$ac_save_CFLAGS
2872 elif test $ac_cv_prog_cc_g = yes; then
2873 if test "$GCC" = yes; then
2874 CFLAGS="-g -O2"
2875 else
2876 CFLAGS="-g"
2878 else
2879 if test "$GCC" = yes; then
2880 CFLAGS="-O2"
2881 else
2882 CFLAGS=
2885 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2886 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_cc_c89+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 ac_cv_prog_cc_c89=no
2891 ac_save_CC=$CC
2892 cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h. */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2898 #include <stdarg.h>
2899 #include <stdio.h>
2900 #include <sys/types.h>
2901 #include <sys/stat.h>
2902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2903 struct buf { int x; };
2904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2905 static char *e (p, i)
2906 char **p;
2907 int i;
2909 return p[i];
2911 static char *f (char * (*g) (char **, int), char **p, ...)
2913 char *s;
2914 va_list v;
2915 va_start (v,p);
2916 s = g (p, va_arg (v,int));
2917 va_end (v);
2918 return s;
2921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2922 function prototypes and stuff, but not '\xHH' hex character constants.
2923 These don't provoke an error unfortunately, instead are silently treated
2924 as 'x'. The following induces an error, until -std is added to get
2925 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2926 array size at least. It's necessary to write '\x00'==0 to get something
2927 that's true only with -std. */
2928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2931 inside strings and character constants. */
2932 #define FOO(x) 'x'
2933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2935 int test (int i, double x);
2936 struct s1 {int (*f) (int a);};
2937 struct s2 {int (*f) (double a);};
2938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2939 int argc;
2940 char **argv;
2942 main ()
2944 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2946 return 0;
2948 _ACEOF
2949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2950 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2952 CC="$ac_save_CC $ac_arg"
2953 rm -f conftest.$ac_objext
2954 if { (ac_try="$ac_compile"
2955 case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
2967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2968 { (case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_try") 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; } &&
2977 { ac_try='test -s conftest.$ac_objext'
2978 { (case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_try") 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 ac_cv_prog_cc_c89=$ac_arg
2988 else
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2995 rm -f core conftest.err conftest.$ac_objext
2996 test "x$ac_cv_prog_cc_c89" != "xno" && break
2997 done
2998 rm -f conftest.$ac_ext
2999 CC=$ac_save_CC
3002 # AC_CACHE_VAL
3003 case "x$ac_cv_prog_cc_c89" in
3005 { echo "$as_me:$LINENO: result: none needed" >&5
3006 echo "${ECHO_T}none needed" >&6; } ;;
3007 xno)
3008 { echo "$as_me:$LINENO: result: unsupported" >&5
3009 echo "${ECHO_T}unsupported" >&6; } ;;
3011 CC="$CC $ac_cv_prog_cc_c89"
3012 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3013 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3014 esac
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_ext=cpp
3024 ac_cpp='$CXXCPP $CPPFLAGS'
3025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3028 if test -z "$CXX"; then
3029 if test -n "$CCC"; then
3030 CXX=$CCC
3031 else
3032 if test -n "$ac_tool_prefix"; then
3033 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_CXX+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042 if test -n "$CXX"; then
3043 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3056 done
3057 done
3058 IFS=$as_save_IFS
3062 CXX=$ac_cv_prog_CXX
3063 if test -n "$CXX"; then
3064 { echo "$as_me:$LINENO: result: $CXX" >&5
3065 echo "${ECHO_T}$CXX" >&6; }
3066 else
3067 { echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6; }
3072 test -n "$CXX" && break
3073 done
3075 if test -z "$CXX"; then
3076 ac_ct_CXX=$CXX
3077 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080 set dummy $ac_prog; ac_word=$2
3081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 if test -n "$ac_ct_CXX"; then
3087 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_ac_ct_CXX="$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3102 IFS=$as_save_IFS
3106 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3107 if test -n "$ac_ct_CXX"; then
3108 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3109 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3110 else
3111 { echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6; }
3116 test -n "$ac_ct_CXX" && break
3117 done
3119 if test "x$ac_ct_CXX" = x; then
3120 CXX="g++"
3121 else
3122 case $cross_compiling:$ac_tool_warned in
3123 yes:)
3124 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3125 whose name does not start with the host triplet. If you think this
3126 configuration is useful to you, please write to autoconf@gnu.org." >&5
3127 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3128 whose name does not start with the host triplet. If you think this
3129 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3130 ac_tool_warned=yes ;;
3131 esac
3132 CXX=$ac_ct_CXX
3138 # Provide some information about the compiler.
3139 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3140 ac_compiler=`set X $ac_compile; echo $2`
3141 { (ac_try="$ac_compiler --version >&5"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compiler --version >&5") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }
3151 { (ac_try="$ac_compiler -v >&5"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compiler -v >&5") 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }
3161 { (ac_try="$ac_compiler -V >&5"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compiler -V >&5") 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3172 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3173 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3174 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3185 main ()
3187 #ifndef __GNUC__
3188 choke me
3189 #endif
3192 return 0;
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
3209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; } &&
3219 { ac_try='test -s conftest.$ac_objext'
3220 { (case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_try") 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_compiler_gnu=yes
3230 else
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 ac_compiler_gnu=no
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3241 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3242 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3243 GXX=`test $ac_compiler_gnu = yes && echo yes`
3244 ac_test_CXXFLAGS=${CXXFLAGS+set}
3245 ac_save_CXXFLAGS=$CXXFLAGS
3246 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3247 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_cxx_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3252 ac_cxx_werror_flag=yes
3253 ac_cv_prog_cxx_g=no
3254 CXXFLAGS="-g"
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3263 main ()
3267 return 0;
3269 _ACEOF
3270 rm -f conftest.$ac_objext
3271 if { (ac_try="$ac_compile"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } &&
3284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3285 { (case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_try") 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; } &&
3294 { ac_try='test -s conftest.$ac_objext'
3295 { (case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_try") 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_prog_cxx_g=yes
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 CXXFLAGS=""
3310 cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h. */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_compile") 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_try") 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3360 else
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3365 CXXFLAGS="-g"
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3374 main ()
3378 return 0;
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (ac_try="$ac_compile"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_compile") 2>conftest.er1
3389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } &&
3395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3396 { (case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_try") 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_try") 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 ac_cv_prog_cxx_g=yes
3416 else
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3432 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3433 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3434 if test "$ac_test_CXXFLAGS" = set; then
3435 CXXFLAGS=$ac_save_CXXFLAGS
3436 elif test $ac_cv_prog_cxx_g = yes; then
3437 if test "$GXX" = yes; then
3438 CXXFLAGS="-g -O2"
3439 else
3440 CXXFLAGS="-g"
3442 else
3443 if test "$GXX" = yes; then
3444 CXXFLAGS="-O2"
3445 else
3446 CXXFLAGS=
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3460 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 if test -n "$CPPBIN"; then
3464 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3477 done
3478 done
3479 IFS=$as_save_IFS
3483 CPPBIN=$ac_cv_prog_CPPBIN
3484 if test -n "$CPPBIN"; then
3485 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3486 echo "${ECHO_T}$CPPBIN" >&6; }
3487 else
3488 { echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6; }
3494 if test -z "$ac_cv_prog_CPPBIN"; then
3495 ac_ct_CPPBIN=$CPPBIN
3496 # Extract the first word of "cpp", so it can be a program name with args.
3497 set dummy cpp; ac_word=$2
3498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3500 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -n "$ac_ct_CPPBIN"; then
3504 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_ac_ct_CPPBIN="cpp"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3519 IFS=$as_save_IFS
3523 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3524 if test -n "$ac_ct_CPPBIN"; then
3525 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3526 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3527 else
3528 { echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6; }
3532 if test "x$ac_ct_CPPBIN" = x; then
3533 CPPBIN="cpp"
3534 else
3535 case $cross_compiling:$ac_tool_warned in
3536 yes:)
3537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3538 whose name does not start with the host triplet. If you think this
3539 configuration is useful to you, please write to autoconf@gnu.org." >&5
3540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3541 whose name does not start with the host triplet. If you think this
3542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3543 ac_tool_warned=yes ;;
3544 esac
3545 CPPBIN=$ac_ct_CPPBIN
3547 else
3548 CPPBIN="$ac_cv_prog_CPPBIN"
3552 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3553 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3554 if test "${wine_cv_toolsdir+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 if test -z "$with_wine_tools"; then
3558 if test "$cross_compiling" = "yes"; then
3559 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3560 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3561 { (exit 1); exit 1; }; }
3562 else
3563 wine_cv_toolsdir="\$(TOPOBJDIR)"
3565 elif test -d "$with_wine_tools/tools/winebuild"; then
3566 case $with_wine_tools in
3567 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3568 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3569 esac
3570 else
3571 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3572 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3573 { (exit 1); exit 1; }; }
3576 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3577 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3578 TOOLSDIR=$wine_cv_toolsdir
3582 ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3588 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3589 # On Suns, sometimes $CPP names a directory.
3590 if test -n "$CPP" && test -d "$CPP"; then
3591 CPP=
3593 if test -z "$CPP"; then
3594 if test "${ac_cv_prog_CPP+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 # Double quotes because CPP needs to be expanded
3598 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3600 ac_preproc_ok=false
3601 for ac_c_preproc_warn_flag in '' yes
3603 # Use a header file that comes with gcc, so configuring glibc
3604 # with a fresh cross-compiler works.
3605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3606 # <limits.h> exists even on freestanding compilers.
3607 # On the NeXT, cc -E runs the code through the compiler's parser,
3608 # not just through cpp. "Syntax error" is here to catch this case.
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615 #ifdef __STDC__
3616 # include <limits.h>
3617 #else
3618 # include <assert.h>
3619 #endif
3620 Syntax error
3621 _ACEOF
3622 if { (ac_try="$ac_cpp conftest.$ac_ext"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } >/dev/null; then
3635 if test -s conftest.err; then
3636 ac_cpp_err=$ac_c_preproc_warn_flag
3637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3638 else
3639 ac_cpp_err=
3641 else
3642 ac_cpp_err=yes
3644 if test -z "$ac_cpp_err"; then
3646 else
3647 echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3650 # Broken: fails on valid input.
3651 continue
3654 rm -f conftest.err conftest.$ac_ext
3656 # OK, works on sane cases. Now check whether nonexistent headers
3657 # can be detected and how.
3658 cat >conftest.$ac_ext <<_ACEOF
3659 /* confdefs.h. */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3664 #include <ac_nonexistent.h>
3665 _ACEOF
3666 if { (ac_try="$ac_cpp conftest.$ac_ext"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } >/dev/null; then
3679 if test -s conftest.err; then
3680 ac_cpp_err=$ac_c_preproc_warn_flag
3681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3682 else
3683 ac_cpp_err=
3685 else
3686 ac_cpp_err=yes
3688 if test -z "$ac_cpp_err"; then
3689 # Broken: success on invalid input.
3690 continue
3691 else
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 # Passes both tests.
3696 ac_preproc_ok=:
3697 break
3700 rm -f conftest.err conftest.$ac_ext
3702 done
3703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3704 rm -f conftest.err conftest.$ac_ext
3705 if $ac_preproc_ok; then
3706 break
3709 done
3710 ac_cv_prog_CPP=$CPP
3713 CPP=$ac_cv_prog_CPP
3714 else
3715 ac_cv_prog_CPP=$CPP
3717 { echo "$as_me:$LINENO: result: $CPP" >&5
3718 echo "${ECHO_T}$CPP" >&6; }
3719 ac_preproc_ok=false
3720 for ac_c_preproc_warn_flag in '' yes
3722 # Use a header file that comes with gcc, so configuring glibc
3723 # with a fresh cross-compiler works.
3724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3725 # <limits.h> exists even on freestanding compilers.
3726 # On the NeXT, cc -E runs the code through the compiler's parser,
3727 # not just through cpp. "Syntax error" is here to catch this case.
3728 cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h. */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3734 #ifdef __STDC__
3735 # include <limits.h>
3736 #else
3737 # include <assert.h>
3738 #endif
3739 Syntax error
3740 _ACEOF
3741 if { (ac_try="$ac_cpp conftest.$ac_ext"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3748 ac_status=$?
3749 grep -v '^ *+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } >/dev/null; then
3754 if test -s conftest.err; then
3755 ac_cpp_err=$ac_c_preproc_warn_flag
3756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3757 else
3758 ac_cpp_err=
3760 else
3761 ac_cpp_err=yes
3763 if test -z "$ac_cpp_err"; then
3765 else
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3769 # Broken: fails on valid input.
3770 continue
3773 rm -f conftest.err conftest.$ac_ext
3775 # OK, works on sane cases. Now check whether nonexistent headers
3776 # can be detected and how.
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 #include <ac_nonexistent.h>
3784 _ACEOF
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3786 case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3792 ac_status=$?
3793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } >/dev/null; then
3798 if test -s conftest.err; then
3799 ac_cpp_err=$ac_c_preproc_warn_flag
3800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3801 else
3802 ac_cpp_err=
3804 else
3805 ac_cpp_err=yes
3807 if test -z "$ac_cpp_err"; then
3808 # Broken: success on invalid input.
3809 continue
3810 else
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 # Passes both tests.
3815 ac_preproc_ok=:
3816 break
3819 rm -f conftest.err conftest.$ac_ext
3821 done
3822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823 rm -f conftest.err conftest.$ac_ext
3824 if $ac_preproc_ok; then
3826 else
3827 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3828 See \`config.log' for more details." >&5
3829 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3830 See \`config.log' for more details." >&2;}
3831 { (exit 1); exit 1; }; }
3834 ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 { echo "$as_me:$LINENO: checking for X" >&5
3842 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3845 # Check whether --with-x was given.
3846 if test "${with_x+set}" = set; then
3847 withval=$with_x;
3850 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3851 if test "x$with_x" = xno; then
3852 # The user explicitly disabled X.
3853 have_x=disabled
3854 else
3855 case $x_includes,$x_libraries in #(
3856 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3857 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3858 { (exit 1); exit 1; }; };; #(
3859 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862 # One or both of the vars are not set, and there is no cached value.
3863 ac_x_includes=no ac_x_libraries=no
3864 rm -f -r conftest.dir
3865 if mkdir conftest.dir; then
3866 cd conftest.dir
3867 cat >Imakefile <<'_ACEOF'
3868 incroot:
3869 @echo incroot='${INCROOT}'
3870 usrlibdir:
3871 @echo usrlibdir='${USRLIBDIR}'
3872 libdir:
3873 @echo libdir='${LIBDIR}'
3874 _ACEOF
3875 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3877 for ac_var in incroot usrlibdir libdir; do
3878 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3879 done
3880 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3881 for ac_extension in a so sl; do
3882 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3883 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3884 ac_im_usrlibdir=$ac_im_libdir; break
3886 done
3887 # Screen out bogus values from the imake configuration. They are
3888 # bogus both because they are the default anyway, and because
3889 # using them would break gcc on systems where it needs fixed includes.
3890 case $ac_im_incroot in
3891 /usr/include) ac_x_includes= ;;
3892 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3893 esac
3894 case $ac_im_usrlibdir in
3895 /usr/lib | /lib) ;;
3896 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3897 esac
3899 cd ..
3900 rm -f -r conftest.dir
3903 # Standard set of common directories for X headers.
3904 # Check X11 before X11Rn because it is often a symlink to the current release.
3905 ac_x_header_dirs='
3906 /usr/X11/include
3907 /usr/X11R6/include
3908 /usr/X11R5/include
3909 /usr/X11R4/include
3911 /usr/include/X11
3912 /usr/include/X11R6
3913 /usr/include/X11R5
3914 /usr/include/X11R4
3916 /usr/local/X11/include
3917 /usr/local/X11R6/include
3918 /usr/local/X11R5/include
3919 /usr/local/X11R4/include
3921 /usr/local/include/X11
3922 /usr/local/include/X11R6
3923 /usr/local/include/X11R5
3924 /usr/local/include/X11R4
3926 /usr/X386/include
3927 /usr/x386/include
3928 /usr/XFree86/include/X11
3930 /usr/include
3931 /usr/local/include
3932 /usr/unsupported/include
3933 /usr/athena/include
3934 /usr/local/x11r5/include
3935 /usr/lpp/Xamples/include
3937 /usr/openwin/include
3938 /usr/openwin/share/include'
3940 if test "$ac_x_includes" = no; then
3941 # Guess where to find include files, by looking for Xlib.h.
3942 # First, try using that file with no special directory specified.
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <X11/Xlib.h>
3950 _ACEOF
3951 if { (ac_try="$ac_cpp conftest.$ac_ext"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null; then
3964 if test -s conftest.err; then
3965 ac_cpp_err=$ac_c_preproc_warn_flag
3966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3967 else
3968 ac_cpp_err=
3970 else
3971 ac_cpp_err=yes
3973 if test -z "$ac_cpp_err"; then
3974 # We can compile using X headers with no special include directory.
3975 ac_x_includes=
3976 else
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 for ac_dir in $ac_x_header_dirs; do
3981 if test -r "$ac_dir/X11/Xlib.h"; then
3982 ac_x_includes=$ac_dir
3983 break
3985 done
3988 rm -f conftest.err conftest.$ac_ext
3989 fi # $ac_x_includes = no
3991 if test "$ac_x_libraries" = no; then
3992 # Check for the libraries.
3993 # See if we find them without any special options.
3994 # Don't add to $LIBS permanently.
3995 ac_save_LIBS=$LIBS
3996 LIBS="-lX11 $LIBS"
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 #include <X11/Xlib.h>
4005 main ()
4007 XrmInitialize ()
4009 return 0;
4011 _ACEOF
4012 rm -f conftest.$ac_objext conftest$ac_exeext
4013 if { (ac_try="$ac_link"
4014 case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_link") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest$ac_exeext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 LIBS=$ac_save_LIBS
4047 # We can link X programs with no special library path.
4048 ac_x_libraries=
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 LIBS=$ac_save_LIBS
4054 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4056 # Don't even attempt the hair of trying to link an X program!
4057 for ac_extension in a so sl; do
4058 if test -r "$ac_dir/libX11.$ac_extension"; then
4059 ac_x_libraries=$ac_dir
4060 break 2
4062 done
4063 done
4066 rm -f core conftest.err conftest.$ac_objext \
4067 conftest$ac_exeext conftest.$ac_ext
4068 fi # $ac_x_libraries = no
4070 case $ac_x_includes,$ac_x_libraries in #(
4071 no,* | *,no | *\'*)
4072 # Didn't find X, or a directory has "'" in its name.
4073 ac_cv_have_x="have_x=no";; #(
4075 # Record where we found X for the cache.
4076 ac_cv_have_x="have_x=yes\
4077 ac_x_includes='$ac_x_includes'\
4078 ac_x_libraries='$ac_x_libraries'"
4079 esac
4081 ;; #(
4082 *) have_x=yes;;
4083 esac
4084 eval "$ac_cv_have_x"
4085 fi # $with_x != no
4087 if test "$have_x" != yes; then
4088 { echo "$as_me:$LINENO: result: $have_x" >&5
4089 echo "${ECHO_T}$have_x" >&6; }
4090 no_x=yes
4091 else
4092 # If each of the values was on the command line, it overrides each guess.
4093 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4094 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4095 # Update the cache value to reflect the command line values.
4096 ac_cv_have_x="have_x=yes\
4097 ac_x_includes='$x_includes'\
4098 ac_x_libraries='$x_libraries'"
4099 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4100 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4103 if test "$no_x" = yes; then
4104 # Not all programs may use this symbol, but it does not hurt to define it.
4106 cat >>confdefs.h <<\_ACEOF
4107 #define X_DISPLAY_MISSING 1
4108 _ACEOF
4110 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4111 else
4112 if test -n "$x_includes"; then
4113 X_CFLAGS="$X_CFLAGS -I$x_includes"
4116 # It would also be nice to do this for all -L options, not just this one.
4117 if test -n "$x_libraries"; then
4118 X_LIBS="$X_LIBS -L$x_libraries"
4119 # For Solaris; some versions of Sun CC require a space after -R and
4120 # others require no space. Words are not sufficient . . . .
4121 case `(uname -sr) 2>/dev/null` in
4122 "SunOS 5"*)
4123 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4124 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4125 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4126 cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h. */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4134 main ()
4138 return 0;
4140 _ACEOF
4141 rm -f conftest.$ac_objext conftest$ac_exeext
4142 if { (ac_try="$ac_link"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_link") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest$ac_exeext'
4166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169 esac
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 ac_R_nospace=yes
4176 else
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 ac_R_nospace=no
4183 rm -f core conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4185 if test $ac_R_nospace = yes; then
4186 { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4188 X_LIBS="$X_LIBS -R$x_libraries"
4189 else
4190 LIBS="$ac_xsave_LIBS -R $x_libraries"
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h. */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4199 main ()
4203 return 0;
4205 _ACEOF
4206 rm -f conftest.$ac_objext conftest$ac_exeext
4207 if { (ac_try="$ac_link"
4208 case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_link") 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224 esac
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest$ac_exeext'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_R_space=yes
4241 else
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 ac_R_space=no
4248 rm -f core conftest.err conftest.$ac_objext \
4249 conftest$ac_exeext conftest.$ac_ext
4250 if test $ac_R_space = yes; then
4251 { echo "$as_me:$LINENO: result: yes" >&5
4252 echo "${ECHO_T}yes" >&6; }
4253 X_LIBS="$X_LIBS -R $x_libraries"
4254 else
4255 { echo "$as_me:$LINENO: result: neither works" >&5
4256 echo "${ECHO_T}neither works" >&6; }
4259 LIBS=$ac_xsave_LIBS
4260 esac
4263 # Check for system-dependent libraries X programs must link with.
4264 # Do this before checking for the system-independent R6 libraries
4265 # (-lICE), since we may need -lsocket or whatever for X linking.
4267 if test "$ISC" = yes; then
4268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4269 else
4270 # Martyn Johnson says this is needed for Ultrix, if the X
4271 # libraries were built with DECnet support. And Karl Berry says
4272 # the Alpha needs dnet_stub (dnet does not exist).
4273 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h. */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4281 /* Override any GCC internal prototype to avoid an error.
4282 Use char because int might match the return type of a GCC
4283 builtin and then its argument prototype would still apply. */
4284 #ifdef __cplusplus
4285 extern "C"
4286 #endif
4287 char XOpenDisplay ();
4289 main ()
4291 return XOpenDisplay ();
4293 return 0;
4295 _ACEOF
4296 rm -f conftest.$ac_objext conftest$ac_exeext
4297 if { (ac_try="$ac_link"
4298 case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_link") 2>conftest.er1
4304 ac_status=$?
4305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4311 { (case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_try") 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest$ac_exeext'
4321 { (case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_try") 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4331 else
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4335 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4336 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4337 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340 ac_check_lib_save_LIBS=$LIBS
4341 LIBS="-ldnet $LIBS"
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h. */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4349 /* Override any GCC internal prototype to avoid an error.
4350 Use char because int might match the return type of a GCC
4351 builtin and then its argument prototype would still apply. */
4352 #ifdef __cplusplus
4353 extern "C"
4354 #endif
4355 char dnet_ntoa ();
4357 main ()
4359 return dnet_ntoa ();
4361 return 0;
4363 _ACEOF
4364 rm -f conftest.$ac_objext conftest$ac_exeext
4365 if { (ac_try="$ac_link"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_link") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } &&
4378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4379 { (case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_try") 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try='test -s conftest$ac_exeext'
4389 { (case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_try") 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 ac_cv_lib_dnet_dnet_ntoa=yes
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 ac_cv_lib_dnet_dnet_ntoa=no
4406 rm -f core conftest.err conftest.$ac_objext \
4407 conftest$ac_exeext conftest.$ac_ext
4408 LIBS=$ac_check_lib_save_LIBS
4410 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4411 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4412 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4413 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4416 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4417 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4418 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4419 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422 ac_check_lib_save_LIBS=$LIBS
4423 LIBS="-ldnet_stub $LIBS"
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h. */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4431 /* Override any GCC internal prototype to avoid an error.
4432 Use char because int might match the return type of a GCC
4433 builtin and then its argument prototype would still apply. */
4434 #ifdef __cplusplus
4435 extern "C"
4436 #endif
4437 char dnet_ntoa ();
4439 main ()
4441 return dnet_ntoa ();
4443 return 0;
4445 _ACEOF
4446 rm -f conftest.$ac_objext conftest$ac_exeext
4447 if { (ac_try="$ac_link"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_link") 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4461 { (case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_try") 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest$ac_exeext'
4471 { (case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_try") 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4480 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4481 else
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 ac_cv_lib_dnet_stub_dnet_ntoa=no
4488 rm -f core conftest.err conftest.$ac_objext \
4489 conftest$ac_exeext conftest.$ac_ext
4490 LIBS=$ac_check_lib_save_LIBS
4492 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4493 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4494 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4495 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4501 rm -f core conftest.err conftest.$ac_objext \
4502 conftest$ac_exeext conftest.$ac_ext
4503 LIBS="$ac_xsave_LIBS"
4505 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4506 # to get the SysV transport functions.
4507 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4508 # needs -lnsl.
4509 # The nsl library prevents programs from opening the X display
4510 # on Irix 5.2, according to T.E. Dickey.
4511 # The functions gethostbyname, getservbyname, and inet_addr are
4512 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4513 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4514 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4515 if test "${ac_cv_func_gethostbyname+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4526 #define gethostbyname innocuous_gethostbyname
4528 /* System header to define __stub macros and hopefully few prototypes,
4529 which can conflict with char gethostbyname (); below.
4530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 <limits.h> exists even on freestanding compilers. */
4533 #ifdef __STDC__
4534 # include <limits.h>
4535 #else
4536 # include <assert.h>
4537 #endif
4539 #undef gethostbyname
4541 /* Override any GCC internal prototype to avoid an error.
4542 Use char because int might match the return type of a GCC
4543 builtin and then its argument prototype would still apply. */
4544 #ifdef __cplusplus
4545 extern "C"
4546 #endif
4547 char gethostbyname ();
4548 /* The GNU C library defines this for functions which it implements
4549 to always fail with ENOSYS. Some functions are actually named
4550 something starting with __ and the normal name is an alias. */
4551 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4552 choke me
4553 #endif
4556 main ()
4558 return gethostbyname ();
4560 return 0;
4562 _ACEOF
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (ac_try="$ac_link"
4565 case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568 esac
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_link") 2>conftest.er1
4571 ac_status=$?
4572 grep -v '^ *+' conftest.er1 >conftest.err
4573 rm -f conftest.er1
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4578 { (case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581 esac
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_try") 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; } &&
4587 { ac_try='test -s conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_func_gethostbyname=yes
4598 else
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 ac_cv_func_gethostbyname=no
4605 rm -f core conftest.err conftest.$ac_objext \
4606 conftest$ac_exeext conftest.$ac_ext
4608 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4609 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4611 if test $ac_cv_func_gethostbyname = no; then
4612 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4613 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4614 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 ac_check_lib_save_LIBS=$LIBS
4618 LIBS="-lnsl $LIBS"
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4626 /* Override any GCC internal prototype to avoid an error.
4627 Use char because int might match the return type of a GCC
4628 builtin and then its argument prototype would still apply. */
4629 #ifdef __cplusplus
4630 extern "C"
4631 #endif
4632 char gethostbyname ();
4634 main ()
4636 return gethostbyname ();
4638 return 0;
4640 _ACEOF
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (ac_try="$ac_link"
4643 case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_link") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4656 { (case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_try") 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest$ac_exeext'
4666 { (case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_try") 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_lib_nsl_gethostbyname=yes
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_cv_lib_nsl_gethostbyname=no
4683 rm -f core conftest.err conftest.$ac_objext \
4684 conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4687 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4688 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4689 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4693 if test $ac_cv_lib_nsl_gethostbyname = no; then
4694 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4695 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4696 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 ac_check_lib_save_LIBS=$LIBS
4700 LIBS="-lbsd $LIBS"
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h. */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4708 /* Override any GCC internal prototype to avoid an error.
4709 Use char because int might match the return type of a GCC
4710 builtin and then its argument prototype would still apply. */
4711 #ifdef __cplusplus
4712 extern "C"
4713 #endif
4714 char gethostbyname ();
4716 main ()
4718 return gethostbyname ();
4720 return 0;
4722 _ACEOF
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (ac_try="$ac_link"
4725 case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_link") 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4738 { (case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_try") 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest$ac_exeext'
4748 { (case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_try") 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 ac_cv_lib_bsd_gethostbyname=yes
4758 else
4759 echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 ac_cv_lib_bsd_gethostbyname=no
4765 rm -f core conftest.err conftest.$ac_objext \
4766 conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_check_lib_save_LIBS
4769 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4770 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4771 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4772 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4778 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4779 # socket/setsockopt and other routines are undefined under SCO ODT
4780 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4781 # on later versions), says Simon Leinen: it contains gethostby*
4782 # variants that don't use the name server (or something). -lsocket
4783 # must be given before -lnsl if both are needed. We assume that
4784 # if connect needs -lnsl, so does gethostbyname.
4785 { echo "$as_me:$LINENO: checking for connect" >&5
4786 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4787 if test "${ac_cv_func_connect+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4798 #define connect innocuous_connect
4800 /* System header to define __stub macros and hopefully few prototypes,
4801 which can conflict with char connect (); below.
4802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803 <limits.h> exists even on freestanding compilers. */
4805 #ifdef __STDC__
4806 # include <limits.h>
4807 #else
4808 # include <assert.h>
4809 #endif
4811 #undef connect
4813 /* Override any GCC internal prototype to avoid an error.
4814 Use char because int might match the return type of a GCC
4815 builtin and then its argument prototype would still apply. */
4816 #ifdef __cplusplus
4817 extern "C"
4818 #endif
4819 char connect ();
4820 /* The GNU C library defines this for functions which it implements
4821 to always fail with ENOSYS. Some functions are actually named
4822 something starting with __ and the normal name is an alias. */
4823 #if defined __stub_connect || defined __stub___connect
4824 choke me
4825 #endif
4828 main ()
4830 return connect ();
4832 return 0;
4834 _ACEOF
4835 rm -f conftest.$ac_objext conftest$ac_exeext
4836 if { (ac_try="$ac_link"
4837 case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840 esac
4841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_link") 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4850 { (case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_try") 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest$ac_exeext'
4860 { (case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863 esac
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_try") 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_cv_func_connect=yes
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4874 ac_cv_func_connect=no
4877 rm -f core conftest.err conftest.$ac_objext \
4878 conftest$ac_exeext conftest.$ac_ext
4880 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4881 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4883 if test $ac_cv_func_connect = no; then
4884 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4885 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4886 if test "${ac_cv_lib_socket_connect+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 ac_check_lib_save_LIBS=$LIBS
4890 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4898 /* Override any GCC internal prototype to avoid an error.
4899 Use char because int might match the return type of a GCC
4900 builtin and then its argument prototype would still apply. */
4901 #ifdef __cplusplus
4902 extern "C"
4903 #endif
4904 char connect ();
4906 main ()
4908 return connect ();
4910 return 0;
4912 _ACEOF
4913 rm -f conftest.$ac_objext conftest$ac_exeext
4914 if { (ac_try="$ac_link"
4915 case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_link") 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4928 { (case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931 esac
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_try") 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest$ac_exeext'
4938 { (case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_try") 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 ac_cv_lib_socket_connect=yes
4948 else
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 ac_cv_lib_socket_connect=no
4955 rm -f core conftest.err conftest.$ac_objext \
4956 conftest$ac_exeext conftest.$ac_ext
4957 LIBS=$ac_check_lib_save_LIBS
4959 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4960 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4961 if test $ac_cv_lib_socket_connect = yes; then
4962 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4967 # Guillermo Gomez says -lposix is necessary on A/UX.
4968 { echo "$as_me:$LINENO: checking for remove" >&5
4969 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4970 if test "${ac_cv_func_remove+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4981 #define remove innocuous_remove
4983 /* System header to define __stub macros and hopefully few prototypes,
4984 which can conflict with char remove (); below.
4985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 <limits.h> exists even on freestanding compilers. */
4988 #ifdef __STDC__
4989 # include <limits.h>
4990 #else
4991 # include <assert.h>
4992 #endif
4994 #undef remove
4996 /* Override any GCC internal prototype to avoid an error.
4997 Use char because int might match the return type of a GCC
4998 builtin and then its argument prototype would still apply. */
4999 #ifdef __cplusplus
5000 extern "C"
5001 #endif
5002 char remove ();
5003 /* The GNU C library defines this for functions which it implements
5004 to always fail with ENOSYS. Some functions are actually named
5005 something starting with __ and the normal name is an alias. */
5006 #if defined __stub_remove || defined __stub___remove
5007 choke me
5008 #endif
5011 main ()
5013 return remove ();
5015 return 0;
5017 _ACEOF
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (ac_try="$ac_link"
5020 case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023 esac
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_link") 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5033 { (case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_try") 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; } &&
5042 { ac_try='test -s conftest$ac_exeext'
5043 { (case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_try") 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_func_remove=yes
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 ac_cv_func_remove=no
5060 rm -f core conftest.err conftest.$ac_objext \
5061 conftest$ac_exeext conftest.$ac_ext
5063 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5064 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5066 if test $ac_cv_func_remove = no; then
5067 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5068 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5069 if test "${ac_cv_lib_posix_remove+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 ac_check_lib_save_LIBS=$LIBS
5073 LIBS="-lposix $LIBS"
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 /* Override any GCC internal prototype to avoid an error.
5082 Use char because int might match the return type of a GCC
5083 builtin and then its argument prototype would still apply. */
5084 #ifdef __cplusplus
5085 extern "C"
5086 #endif
5087 char remove ();
5089 main ()
5091 return remove ();
5093 return 0;
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (ac_try="$ac_link"
5098 case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_link") 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5111 { (case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_try") 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; } &&
5120 { ac_try='test -s conftest$ac_exeext'
5121 { (case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_try") 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_lib_posix_remove=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 ac_cv_lib_posix_remove=no
5138 rm -f core conftest.err conftest.$ac_objext \
5139 conftest$ac_exeext conftest.$ac_ext
5140 LIBS=$ac_check_lib_save_LIBS
5142 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5143 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5144 if test $ac_cv_lib_posix_remove = yes; then
5145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5150 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5151 { echo "$as_me:$LINENO: checking for shmat" >&5
5152 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5153 if test "${ac_cv_func_shmat+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5164 #define shmat innocuous_shmat
5166 /* System header to define __stub macros and hopefully few prototypes,
5167 which can conflict with char shmat (); below.
5168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 <limits.h> exists even on freestanding compilers. */
5171 #ifdef __STDC__
5172 # include <limits.h>
5173 #else
5174 # include <assert.h>
5175 #endif
5177 #undef shmat
5179 /* Override any GCC internal prototype to avoid an error.
5180 Use char because int might match the return type of a GCC
5181 builtin and then its argument prototype would still apply. */
5182 #ifdef __cplusplus
5183 extern "C"
5184 #endif
5185 char shmat ();
5186 /* The GNU C library defines this for functions which it implements
5187 to always fail with ENOSYS. Some functions are actually named
5188 something starting with __ and the normal name is an alias. */
5189 #if defined __stub_shmat || defined __stub___shmat
5190 choke me
5191 #endif
5194 main ()
5196 return shmat ();
5198 return 0;
5200 _ACEOF
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (ac_try="$ac_link"
5203 case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5206 esac
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_link") 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
5215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5216 { (case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219 esac
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_try") 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; } &&
5225 { ac_try='test -s conftest$ac_exeext'
5226 { (case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_try") 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 ac_cv_func_shmat=yes
5236 else
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 ac_cv_func_shmat=no
5243 rm -f core conftest.err conftest.$ac_objext \
5244 conftest$ac_exeext conftest.$ac_ext
5246 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5247 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5249 if test $ac_cv_func_shmat = no; then
5250 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5251 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5252 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 ac_check_lib_save_LIBS=$LIBS
5256 LIBS="-lipc $LIBS"
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h. */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5264 /* Override any GCC internal prototype to avoid an error.
5265 Use char because int might match the return type of a GCC
5266 builtin and then its argument prototype would still apply. */
5267 #ifdef __cplusplus
5268 extern "C"
5269 #endif
5270 char shmat ();
5272 main ()
5274 return shmat ();
5276 return 0;
5278 _ACEOF
5279 rm -f conftest.$ac_objext conftest$ac_exeext
5280 if { (ac_try="$ac_link"
5281 case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284 esac
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_link") 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294 { (case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_try") 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; } &&
5303 { ac_try='test -s conftest$ac_exeext'
5304 { (case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307 esac
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_try") 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_lib_ipc_shmat=yes
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_cv_lib_ipc_shmat=no
5321 rm -f core conftest.err conftest.$ac_objext \
5322 conftest$ac_exeext conftest.$ac_ext
5323 LIBS=$ac_check_lib_save_LIBS
5325 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5326 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5327 if test $ac_cv_lib_ipc_shmat = yes; then
5328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5334 # Check for libraries that X11R6 Xt/Xaw programs need.
5335 ac_save_LDFLAGS=$LDFLAGS
5336 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5337 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5338 # check for ICE first), but we must link in the order -lSM -lICE or
5339 # we get undefined symbols. So assume we have SM if we have ICE.
5340 # These have to be linked with before -lX11, unlike the other
5341 # libraries we check for below, so use a different variable.
5342 # John Interrante, Karl Berry
5343 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5344 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5345 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348 ac_check_lib_save_LIBS=$LIBS
5349 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5357 /* Override any GCC internal prototype to avoid an error.
5358 Use char because int might match the return type of a GCC
5359 builtin and then its argument prototype would still apply. */
5360 #ifdef __cplusplus
5361 extern "C"
5362 #endif
5363 char IceConnectionNumber ();
5365 main ()
5367 return IceConnectionNumber ();
5369 return 0;
5371 _ACEOF
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (ac_try="$ac_link"
5374 case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_link") 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5387 { (case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_try") 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; } &&
5396 { ac_try='test -s conftest$ac_exeext'
5397 { (case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_try") 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_cv_lib_ICE_IceConnectionNumber=yes
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 ac_cv_lib_ICE_IceConnectionNumber=no
5414 rm -f core conftest.err conftest.$ac_objext \
5415 conftest$ac_exeext conftest.$ac_ext
5416 LIBS=$ac_check_lib_save_LIBS
5418 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5419 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5420 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5421 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5424 LDFLAGS=$ac_save_LDFLAGS
5428 for ac_prog in flex lex
5430 # Extract the first word of "$ac_prog", so it can be a program name with args.
5431 set dummy $ac_prog; ac_word=$2
5432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5434 if test "${ac_cv_prog_LEX+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 if test -n "$LEX"; then
5438 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5447 ac_cv_prog_LEX="$ac_prog"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5451 done
5452 done
5453 IFS=$as_save_IFS
5457 LEX=$ac_cv_prog_LEX
5458 if test -n "$LEX"; then
5459 { echo "$as_me:$LINENO: result: $LEX" >&5
5460 echo "${ECHO_T}$LEX" >&6; }
5461 else
5462 { echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6; }
5467 test -n "$LEX" && break
5468 done
5469 test -n "$LEX" || LEX=":"
5471 if test -z "$LEXLIB"
5472 then
5473 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5474 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
5475 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478 ac_check_lib_save_LIBS=$LIBS
5479 LIBS="-lfl $LIBS"
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5487 /* Override any GCC internal prototype to avoid an error.
5488 Use char because int might match the return type of a GCC
5489 builtin and then its argument prototype would still apply. */
5490 #ifdef __cplusplus
5491 extern "C"
5492 #endif
5493 char yywrap ();
5495 main ()
5497 return yywrap ();
5499 return 0;
5501 _ACEOF
5502 rm -f conftest.$ac_objext conftest$ac_exeext
5503 if { (ac_try="$ac_link"
5504 case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_link") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } &&
5516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5517 { (case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520 esac
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_try") 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; } &&
5526 { ac_try='test -s conftest$ac_exeext'
5527 { (case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_try") 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_cv_lib_fl_yywrap=yes
5537 else
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5541 ac_cv_lib_fl_yywrap=no
5544 rm -f core conftest.err conftest.$ac_objext \
5545 conftest$ac_exeext conftest.$ac_ext
5546 LIBS=$ac_check_lib_save_LIBS
5548 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5549 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
5550 if test $ac_cv_lib_fl_yywrap = yes; then
5551 LEXLIB="-lfl"
5552 else
5553 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5554 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
5555 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558 ac_check_lib_save_LIBS=$LIBS
5559 LIBS="-ll $LIBS"
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5567 /* Override any GCC internal prototype to avoid an error.
5568 Use char because int might match the return type of a GCC
5569 builtin and then its argument prototype would still apply. */
5570 #ifdef __cplusplus
5571 extern "C"
5572 #endif
5573 char yywrap ();
5575 main ()
5577 return yywrap ();
5579 return 0;
5581 _ACEOF
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (ac_try="$ac_link"
5584 case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_link") 2>conftest.er1
5590 ac_status=$?
5591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5597 { (case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest$ac_exeext'
5607 { (case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_try") 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_lib_l_yywrap=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 ac_cv_lib_l_yywrap=no
5624 rm -f core conftest.err conftest.$ac_objext \
5625 conftest$ac_exeext conftest.$ac_ext
5626 LIBS=$ac_check_lib_save_LIBS
5628 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5629 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
5630 if test $ac_cv_lib_l_yywrap = yes; then
5631 LEXLIB="-ll"
5638 if test "x$LEX" != "x:"; then
5639 { echo "$as_me:$LINENO: checking lex output file root" >&5
5640 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5641 if test "${ac_cv_prog_lex_root+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644 # The minimal lex program is just a single line: %%. But some broken lexes
5645 # (Solaris, I think it was) want two %% lines, so accommodate them.
5646 cat >conftest.l <<_ACEOF
5649 _ACEOF
5650 { (ac_try="$LEX conftest.l"
5651 case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654 esac
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$LEX conftest.l") 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }
5660 if test -f lex.yy.c; then
5661 ac_cv_prog_lex_root=lex.yy
5662 elif test -f lexyy.c; then
5663 ac_cv_prog_lex_root=lexyy
5664 else
5665 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5666 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5667 { (exit 1); exit 1; }; }
5670 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5671 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5672 rm -f conftest.l
5673 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5675 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5676 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5677 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680 # POSIX says lex can declare yytext either as a pointer or an array; the
5681 # default is implementation-dependent. Figure out which it is, since
5682 # not all implementations provide the %pointer and %array declarations.
5683 ac_cv_prog_lex_yytext_pointer=no
5684 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5685 ac_save_LIBS=$LIBS
5686 LIBS="$LIBS $LEXLIB"
5687 cat >conftest.$ac_ext <<_ACEOF
5688 `cat $LEX_OUTPUT_ROOT.c`
5689 _ACEOF
5690 rm -f conftest.$ac_objext conftest$ac_exeext
5691 if { (ac_try="$ac_link"
5692 case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_link") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5705 { (case "(($ac_try" in
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5708 esac
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_try") 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest$ac_exeext'
5715 { (case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 ac_cv_prog_lex_yytext_pointer=yes
5725 else
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5732 rm -f core conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
5734 LIBS=$ac_save_LIBS
5735 rm -f "${LEX_OUTPUT_ROOT}.c"
5738 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5739 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5740 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5742 cat >>confdefs.h <<\_ACEOF
5743 #define YYTEXT_POINTER 1
5744 _ACEOF
5750 for ac_prog in $LEX flex lex
5752 # Extract the first word of "$ac_prog", so it can be a program name with args.
5753 set dummy $ac_prog; ac_word=$2
5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756 if test "${ac_cv_prog_XLEX+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759 if test -n "$XLEX"; then
5760 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_XLEX="$ac_prog"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5773 done
5774 done
5775 IFS=$as_save_IFS
5779 XLEX=$ac_cv_prog_XLEX
5780 if test -n "$XLEX"; then
5781 { echo "$as_me:$LINENO: result: $XLEX" >&5
5782 echo "${ECHO_T}$XLEX" >&6; }
5783 else
5784 { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5789 test -n "$XLEX" && break
5790 done
5791 test -n "$XLEX" || XLEX="none"
5793 if test "$XLEX" = "none"
5794 then
5795 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5796 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5797 { (exit 1); exit 1; }; }
5800 for ac_prog in bison
5802 # Extract the first word of "$ac_prog", so it can be a program name with args.
5803 set dummy $ac_prog; ac_word=$2
5804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5806 if test "${ac_cv_prog_BISON+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 if test -n "$BISON"; then
5810 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_prog_BISON="$ac_prog"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5823 done
5824 done
5825 IFS=$as_save_IFS
5829 BISON=$ac_cv_prog_BISON
5830 if test -n "$BISON"; then
5831 { echo "$as_me:$LINENO: result: $BISON" >&5
5832 echo "${ECHO_T}$BISON" >&6; }
5833 else
5834 { echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6; }
5839 test -n "$BISON" && break
5840 done
5841 test -n "$BISON" || BISON="none"
5843 if test "$BISON" = "none"
5844 then
5845 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5846 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5847 { (exit 1); exit 1; }; }
5850 if test -n "$ac_tool_prefix"; then
5851 for ac_prog in gas as
5853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5857 if test "${ac_cv_prog_AS+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 if test -n "$AS"; then
5861 ac_cv_prog_AS="$AS" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5874 done
5875 done
5876 IFS=$as_save_IFS
5880 AS=$ac_cv_prog_AS
5881 if test -n "$AS"; then
5882 { echo "$as_me:$LINENO: result: $AS" >&5
5883 echo "${ECHO_T}$AS" >&6; }
5884 else
5885 { echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6; }
5890 test -n "$AS" && break
5891 done
5893 if test -z "$AS"; then
5894 ac_ct_AS=$AS
5895 for ac_prog in gas as
5897 # Extract the first word of "$ac_prog", so it can be a program name with args.
5898 set dummy $ac_prog; ac_word=$2
5899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5901 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 if test -n "$ac_ct_AS"; then
5905 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_ac_ct_AS="$ac_prog"
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5918 done
5919 done
5920 IFS=$as_save_IFS
5924 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5925 if test -n "$ac_ct_AS"; then
5926 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5927 echo "${ECHO_T}$ac_ct_AS" >&6; }
5928 else
5929 { echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6; }
5934 test -n "$ac_ct_AS" && break
5935 done
5937 if test "x$ac_ct_AS" = x; then
5938 AS="as"
5939 else
5940 case $cross_compiling:$ac_tool_warned in
5941 yes:)
5942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5943 whose name does not start with the host triplet. If you think this
5944 configuration is useful to you, please write to autoconf@gnu.org." >&5
5945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5946 whose name does not start with the host triplet. If you think this
5947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5948 ac_tool_warned=yes ;;
5949 esac
5950 AS=$ac_ct_AS
5954 if test -n "$ac_tool_prefix"; then
5955 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}ld; ac_word=$2
5957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5959 if test "${ac_cv_prog_LD+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 if test -n "$LD"; then
5963 ac_cv_prog_LD="$LD" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_LD="${ac_tool_prefix}ld"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5976 done
5977 done
5978 IFS=$as_save_IFS
5982 LD=$ac_cv_prog_LD
5983 if test -n "$LD"; then
5984 { echo "$as_me:$LINENO: result: $LD" >&5
5985 echo "${ECHO_T}$LD" >&6; }
5986 else
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5993 if test -z "$ac_cv_prog_LD"; then
5994 ac_ct_LD=$LD
5995 # Extract the first word of "ld", so it can be a program name with args.
5996 set dummy ld; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 if test -n "$ac_ct_LD"; then
6003 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6012 ac_cv_prog_ac_ct_LD="ld"
6013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 break 2
6016 done
6017 done
6018 IFS=$as_save_IFS
6022 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6023 if test -n "$ac_ct_LD"; then
6024 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6025 echo "${ECHO_T}$ac_ct_LD" >&6; }
6026 else
6027 { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6031 if test "x$ac_ct_LD" = x; then
6032 LD="ld"
6033 else
6034 case $cross_compiling:$ac_tool_warned in
6035 yes:)
6036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6037 whose name does not start with the host triplet. If you think this
6038 configuration is useful to you, please write to autoconf@gnu.org." >&5
6039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6040 whose name does not start with the host triplet. If you think this
6041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6042 ac_tool_warned=yes ;;
6043 esac
6044 LD=$ac_ct_LD
6046 else
6047 LD="$ac_cv_prog_LD"
6050 if test -n "$ac_tool_prefix"; then
6051 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}ar; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_AR+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058 if test -n "$AR"; then
6059 ac_cv_prog_AR="$AR" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_AR="${ac_tool_prefix}ar"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6072 done
6073 done
6074 IFS=$as_save_IFS
6078 AR=$ac_cv_prog_AR
6079 if test -n "$AR"; then
6080 { echo "$as_me:$LINENO: result: $AR" >&5
6081 echo "${ECHO_T}$AR" >&6; }
6082 else
6083 { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6089 if test -z "$ac_cv_prog_AR"; then
6090 ac_ct_AR=$AR
6091 # Extract the first word of "ar", so it can be a program name with args.
6092 set dummy ar; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 if test -n "$ac_ct_AR"; then
6099 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_ac_ct_AR="ar"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6112 done
6113 done
6114 IFS=$as_save_IFS
6118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6119 if test -n "$ac_ct_AR"; then
6120 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6121 echo "${ECHO_T}$ac_ct_AR" >&6; }
6122 else
6123 { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6127 if test "x$ac_ct_AR" = x; then
6128 AR="ar"
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133 whose name does not start with the host triplet. If you think this
6134 configuration is useful to you, please write to autoconf@gnu.org." >&5
6135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet. If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140 AR=$ac_ct_AR
6142 else
6143 AR="$ac_cv_prog_AR"
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_RANLIB+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 if test -n "$RANLIB"; then
6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6168 done
6169 done
6170 IFS=$as_save_IFS
6174 RANLIB=$ac_cv_prog_RANLIB
6175 if test -n "$RANLIB"; then
6176 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6177 echo "${ECHO_T}$RANLIB" >&6; }
6178 else
6179 { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6185 if test -z "$ac_cv_prog_RANLIB"; then
6186 ac_ct_RANLIB=$RANLIB
6187 # Extract the first word of "ranlib", so it can be a program name with args.
6188 set dummy ranlib; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194 if test -n "$ac_ct_RANLIB"; then
6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_ac_ct_RANLIB="ranlib"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6208 done
6209 done
6210 IFS=$as_save_IFS
6214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215 if test -n "$ac_ct_RANLIB"; then
6216 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6217 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6218 else
6219 { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6223 if test "x$ac_ct_RANLIB" = x; then
6224 RANLIB=":"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet. If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&5
6231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet. If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236 RANLIB=$ac_ct_RANLIB
6238 else
6239 RANLIB="$ac_cv_prog_RANLIB"
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 if test -n "$STRIP"; then
6251 ac_cv_prog_STRIP="$STRIP" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
6271 if test -n "$STRIP"; then
6272 { echo "$as_me:$LINENO: result: $STRIP" >&5
6273 echo "${ECHO_T}$STRIP" >&6; }
6274 else
6275 { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6281 if test -z "$ac_cv_prog_STRIP"; then
6282 ac_ct_STRIP=$STRIP
6283 # Extract the first word of "strip", so it can be a program name with args.
6284 set dummy strip; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 if test -n "$ac_ct_STRIP"; then
6291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_ac_ct_STRIP="strip"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6304 done
6305 done
6306 IFS=$as_save_IFS
6310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6311 if test -n "$ac_ct_STRIP"; then
6312 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6313 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6314 else
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6319 if test "x$ac_ct_STRIP" = x; then
6320 STRIP="strip"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323 yes:)
6324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet. If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&5
6327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328 whose name does not start with the host triplet. If you think this
6329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6330 ac_tool_warned=yes ;;
6331 esac
6332 STRIP=$ac_ct_STRIP
6334 else
6335 STRIP="$ac_cv_prog_STRIP"
6338 if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6340 set dummy ${ac_tool_prefix}windres; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_prog_WINDRES+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346 if test -n "$WINDRES"; then
6347 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6360 done
6361 done
6362 IFS=$as_save_IFS
6366 WINDRES=$ac_cv_prog_WINDRES
6367 if test -n "$WINDRES"; then
6368 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6369 echo "${ECHO_T}$WINDRES" >&6; }
6370 else
6371 { echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6; }
6377 if test -z "$ac_cv_prog_WINDRES"; then
6378 ac_ct_WINDRES=$WINDRES
6379 # Extract the first word of "windres", so it can be a program name with args.
6380 set dummy windres; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 if test -n "$ac_ct_WINDRES"; then
6387 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_ac_ct_WINDRES="windres"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6402 IFS=$as_save_IFS
6406 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6407 if test -n "$ac_ct_WINDRES"; then
6408 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6409 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6410 else
6411 { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6415 if test "x$ac_ct_WINDRES" = x; then
6416 WINDRES="false"
6417 else
6418 case $cross_compiling:$ac_tool_warned in
6419 yes:)
6420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6421 whose name does not start with the host triplet. If you think this
6422 configuration is useful to you, please write to autoconf@gnu.org." >&5
6423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6424 whose name does not start with the host triplet. If you think this
6425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6426 ac_tool_warned=yes ;;
6427 esac
6428 WINDRES=$ac_ct_WINDRES
6430 else
6431 WINDRES="$ac_cv_prog_WINDRES"
6434 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6435 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6436 LN_S=$as_ln_s
6437 if test "$LN_S" = "ln -s"; then
6438 { echo "$as_me:$LINENO: result: yes" >&5
6439 echo "${ECHO_T}yes" >&6; }
6440 else
6441 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6442 echo "${ECHO_T}no, using $LN_S" >&6; }
6445 { echo "$as_me:$LINENO: checking whether ln works" >&5
6446 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
6447 rm -f conf$$ conf$$.file
6448 echo >conf$$.file
6449 if ln conf$$.file conf$$ 2>/dev/null; then
6450 LN=ln
6452 { echo "$as_me:$LINENO: result: yes" >&5
6453 echo "${ECHO_T}yes" >&6; }
6454 else
6455 LN="cp -p"
6457 { echo "$as_me:$LINENO: result: no, using $LN" >&5
6458 echo "${ECHO_T}no, using $LN" >&6; }
6460 rm -f conf$$ conf$$.file
6461 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6462 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6463 if test "${ac_cv_path_GREP+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 # Extract the first word of "grep ggrep" to use in msg output
6467 if test -z "$GREP"; then
6468 set dummy grep ggrep; ac_prog_name=$2
6469 if test "${ac_cv_path_GREP+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 ac_path_GREP_found=false
6473 # Loop through the user's path and test for each of PROGNAME-LIST
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_prog in grep ggrep; do
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6482 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6483 # Check for GNU ac_path_GREP and select it if it is found.
6484 # Check for GNU $ac_path_GREP
6485 case `"$ac_path_GREP" --version 2>&1` in
6486 *GNU*)
6487 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6489 ac_count=0
6490 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6491 while :
6493 cat "conftest.in" "conftest.in" >"conftest.tmp"
6494 mv "conftest.tmp" "conftest.in"
6495 cp "conftest.in" "conftest.nl"
6496 echo 'GREP' >> "conftest.nl"
6497 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6499 ac_count=`expr $ac_count + 1`
6500 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6501 # Best one so far, save it but keep looking for a better one
6502 ac_cv_path_GREP="$ac_path_GREP"
6503 ac_path_GREP_max=$ac_count
6505 # 10*(2^10) chars as input seems more than enough
6506 test $ac_count -gt 10 && break
6507 done
6508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6509 esac
6512 $ac_path_GREP_found && break 3
6513 done
6514 done
6516 done
6517 IFS=$as_save_IFS
6522 GREP="$ac_cv_path_GREP"
6523 if test -z "$GREP"; then
6524 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6525 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6526 { (exit 1); exit 1; }; }
6529 else
6530 ac_cv_path_GREP=$GREP
6535 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6536 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6537 GREP="$ac_cv_path_GREP"
6540 { echo "$as_me:$LINENO: checking for egrep" >&5
6541 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_EGREP+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6546 then ac_cv_path_EGREP="$GREP -E"
6547 else
6548 # Extract the first word of "egrep" to use in msg output
6549 if test -z "$EGREP"; then
6550 set dummy egrep; ac_prog_name=$2
6551 if test "${ac_cv_path_EGREP+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 ac_path_EGREP_found=false
6555 # Loop through the user's path and test for each of PROGNAME-LIST
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_prog in egrep; do
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6564 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6565 # Check for GNU ac_path_EGREP and select it if it is found.
6566 # Check for GNU $ac_path_EGREP
6567 case `"$ac_path_EGREP" --version 2>&1` in
6568 *GNU*)
6569 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6571 ac_count=0
6572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6573 while :
6575 cat "conftest.in" "conftest.in" >"conftest.tmp"
6576 mv "conftest.tmp" "conftest.in"
6577 cp "conftest.in" "conftest.nl"
6578 echo 'EGREP' >> "conftest.nl"
6579 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6581 ac_count=`expr $ac_count + 1`
6582 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6583 # Best one so far, save it but keep looking for a better one
6584 ac_cv_path_EGREP="$ac_path_EGREP"
6585 ac_path_EGREP_max=$ac_count
6587 # 10*(2^10) chars as input seems more than enough
6588 test $ac_count -gt 10 && break
6589 done
6590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6591 esac
6594 $ac_path_EGREP_found && break 3
6595 done
6596 done
6598 done
6599 IFS=$as_save_IFS
6604 EGREP="$ac_cv_path_EGREP"
6605 if test -z "$EGREP"; then
6606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6608 { (exit 1); exit 1; }; }
6611 else
6612 ac_cv_path_EGREP=$EGREP
6618 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6619 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6620 EGREP="$ac_cv_path_EGREP"
6623 # Extract the first word of "ldconfig", so it can be a program name with args.
6624 set dummy ldconfig; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630 case $LDCONFIG in
6631 [\\/]* | ?:[\\/]*)
6632 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in /sbin /usr/sbin $PATH
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6646 done
6647 done
6648 IFS=$as_save_IFS
6650 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6652 esac
6654 LDCONFIG=$ac_cv_path_LDCONFIG
6655 if test -n "$LDCONFIG"; then
6656 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6657 echo "${ECHO_T}$LDCONFIG" >&6; }
6658 else
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6664 # Find a good install program. We prefer a C program (faster),
6665 # so one script is as good as another. But avoid the broken or
6666 # incompatible versions:
6667 # SysV /etc/install, /usr/sbin/install
6668 # SunOS /usr/etc/install
6669 # IRIX /sbin/install
6670 # AIX /bin/install
6671 # AmigaOS /C/install, which installs bootblocks on floppy discs
6672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6675 # OS/2's system install, which has a completely different semantic
6676 # ./install, which can be erroneously created by make from ./install.sh.
6677 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6678 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6679 if test -z "$INSTALL"; then
6680 if test "${ac_cv_path_install+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 # Account for people who put trailing slashes in PATH elements.
6689 case $as_dir/ in
6690 ./ | .// | /cC/* | \
6691 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6692 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6693 /usr/ucb/* ) ;;
6695 # OSF1 and SCO ODT 3.0 have their own names for install.
6696 # Don't use installbsd from OSF since it installs stuff as root
6697 # by default.
6698 for ac_prog in ginstall scoinst install; do
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6701 if test $ac_prog = install &&
6702 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6703 # AIX install. It has an incompatible calling convention.
6705 elif test $ac_prog = install &&
6706 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6707 # program-specific install script used by HP pwplus--don't use.
6709 else
6710 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6711 break 3
6714 done
6715 done
6717 esac
6718 done
6719 IFS=$as_save_IFS
6723 if test "${ac_cv_path_install+set}" = set; then
6724 INSTALL=$ac_cv_path_install
6725 else
6726 # As a last resort, use the slow shell script. Don't cache a
6727 # value for INSTALL within a source directory, because that will
6728 # break other packages using the cache if that directory is
6729 # removed, or if the value is a relative name.
6730 INSTALL=$ac_install_sh
6733 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6734 echo "${ECHO_T}$INSTALL" >&6; }
6736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6737 # It thinks the first close brace ends the variable substitution.
6738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6744 case "$INSTALL" in
6745 [\\/$]* | ?:[\\/]* ) ;;
6746 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6747 esac
6749 for ac_prog in lclint lint
6751 # Extract the first word of "$ac_prog", so it can be a program name with args.
6752 set dummy $ac_prog; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_prog_LINT+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 if test -n "$LINT"; then
6759 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_prog_LINT="$ac_prog"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6778 LINT=$ac_cv_prog_LINT
6779 if test -n "$LINT"; then
6780 { echo "$as_me:$LINENO: result: $LINT" >&5
6781 echo "${ECHO_T}$LINT" >&6; }
6782 else
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 test -n "$LINT" && break
6789 done
6791 if test "$LINT" = "lint"
6792 then
6793 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6798 for ac_prog in fontforge
6800 # Extract the first word of "$ac_prog", so it can be a program name with args.
6801 set dummy $ac_prog; ac_word=$2
6802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 if test -n "$FONTFORGE"; then
6808 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_FONTFORGE="$ac_prog"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6821 done
6822 done
6823 IFS=$as_save_IFS
6827 FONTFORGE=$ac_cv_prog_FONTFORGE
6828 if test -n "$FONTFORGE"; then
6829 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6830 echo "${ECHO_T}$FONTFORGE" >&6; }
6831 else
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6837 test -n "$FONTFORGE" && break
6838 done
6839 test -n "$FONTFORGE" || FONTFORGE="false"
6841 for ac_prog in pkg-config
6843 # Extract the first word of "$ac_prog", so it can be a program name with args.
6844 set dummy $ac_prog; ac_word=$2
6845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6847 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850 if test -n "$PKG_CONFIG"; then
6851 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_prog_PKG_CONFIG="$ac_prog"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6864 done
6865 done
6866 IFS=$as_save_IFS
6870 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6871 if test -n "$PKG_CONFIG"; then
6872 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6873 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6874 else
6875 { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6880 test -n "$PKG_CONFIG" && break
6881 done
6882 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6885 case $host_cpu in
6886 *i[3456789]86*)
6887 for ac_prog in prelink
6889 # Extract the first word of "$ac_prog", so it can be a program name with args.
6890 set dummy $ac_prog; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_prog_PRELINK+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 if test -n "$PRELINK"; then
6897 ac_cv_prog_PRELINK="$PRELINK" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in /sbin /usr/sbin $PATH
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_PRELINK="$ac_prog"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6910 done
6911 done
6912 IFS=$as_save_IFS
6916 PRELINK=$ac_cv_prog_PRELINK
6917 if test -n "$PRELINK"; then
6918 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6919 echo "${ECHO_T}$PRELINK" >&6; }
6920 else
6921 { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6926 test -n "$PRELINK" && break
6927 done
6928 test -n "$PRELINK" || PRELINK="false"
6931 esac
6935 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6936 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6937 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940 ac_check_lib_save_LIBS=$LIBS
6941 LIBS="-li386 $LIBS"
6942 cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6949 /* Override any GCC internal prototype to avoid an error.
6950 Use char because int might match the return type of a GCC
6951 builtin and then its argument prototype would still apply. */
6952 #ifdef __cplusplus
6953 extern "C"
6954 #endif
6955 char i386_set_ldt ();
6957 main ()
6959 return i386_set_ldt ();
6961 return 0;
6963 _ACEOF
6964 rm -f conftest.$ac_objext conftest$ac_exeext
6965 if { (ac_try="$ac_link"
6966 case "(($ac_try" in
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6969 esac
6970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971 (eval "$ac_link") 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6979 { (case "(($ac_try" in
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6982 esac
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 (eval "$ac_try") 2>&5
6985 ac_status=$?
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; } &&
6988 { ac_try='test -s conftest$ac_exeext'
6989 { (case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992 esac
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_try") 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 ac_cv_lib_i386_i386_set_ldt=yes
6999 else
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 ac_cv_lib_i386_i386_set_ldt=no
7006 rm -f core conftest.err conftest.$ac_objext \
7007 conftest$ac_exeext conftest.$ac_ext
7008 LIBS=$ac_check_lib_save_LIBS
7010 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7011 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
7012 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
7013 cat >>confdefs.h <<_ACEOF
7014 #define HAVE_LIBI386 1
7015 _ACEOF
7017 LIBS="-li386 $LIBS"
7022 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7023 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
7024 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 ac_check_lib_save_LIBS=$LIBS
7028 LIBS="-lossaudio $LIBS"
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7036 /* Override any GCC internal prototype to avoid an error.
7037 Use char because int might match the return type of a GCC
7038 builtin and then its argument prototype would still apply. */
7039 #ifdef __cplusplus
7040 extern "C"
7041 #endif
7042 char _oss_ioctl ();
7044 main ()
7046 return _oss_ioctl ();
7048 return 0;
7050 _ACEOF
7051 rm -f conftest.$ac_objext conftest$ac_exeext
7052 if { (ac_try="$ac_link"
7053 case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056 esac
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_link") 2>conftest.er1
7059 ac_status=$?
7060 grep -v '^ *+' conftest.er1 >conftest.err
7061 rm -f conftest.er1
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } &&
7065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7066 { (case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069 esac
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_try") 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; } &&
7075 { ac_try='test -s conftest$ac_exeext'
7076 { (case "(($ac_try" in
7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7079 esac
7080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081 (eval "$ac_try") 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 ac_cv_lib_ossaudio__oss_ioctl=yes
7086 else
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_lib_ossaudio__oss_ioctl=no
7093 rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7095 LIBS=$ac_check_lib_save_LIBS
7097 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7098 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7099 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
7100 cat >>confdefs.h <<_ACEOF
7101 #define HAVE_LIBOSSAUDIO 1
7102 _ACEOF
7104 LIBS="-lossaudio $LIBS"
7109 for ac_func in gethostbyname
7111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h. */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7125 #define $ac_func innocuous_$ac_func
7127 /* System header to define __stub macros and hopefully few prototypes,
7128 which can conflict with char $ac_func (); below.
7129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130 <limits.h> exists even on freestanding compilers. */
7132 #ifdef __STDC__
7133 # include <limits.h>
7134 #else
7135 # include <assert.h>
7136 #endif
7138 #undef $ac_func
7140 /* Override any GCC internal prototype to avoid an error.
7141 Use char because int might match the return type of a GCC
7142 builtin and then its argument prototype would still apply. */
7143 #ifdef __cplusplus
7144 extern "C"
7145 #endif
7146 char $ac_func ();
7147 /* The GNU C library defines this for functions which it implements
7148 to always fail with ENOSYS. Some functions are actually named
7149 something starting with __ and the normal name is an alias. */
7150 #if defined __stub_$ac_func || defined __stub___$ac_func
7151 choke me
7152 #endif
7155 main ()
7157 return $ac_func ();
7159 return 0;
7161 _ACEOF
7162 rm -f conftest.$ac_objext conftest$ac_exeext
7163 if { (ac_try="$ac_link"
7164 case "(($ac_try" in
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7167 esac
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169 (eval "$ac_link") 2>conftest.er1
7170 ac_status=$?
7171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } &&
7176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7177 { (case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180 esac
7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_try") 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest$ac_exeext'
7187 { (case "(($ac_try" in
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7190 esac
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_try") 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 eval "$as_ac_var=yes"
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 eval "$as_ac_var=no"
7204 rm -f core conftest.err conftest.$ac_objext \
7205 conftest$ac_exeext conftest.$ac_ext
7207 ac_res=`eval echo '${'$as_ac_var'}'`
7208 { echo "$as_me:$LINENO: result: $ac_res" >&5
7209 echo "${ECHO_T}$ac_res" >&6; }
7210 if test `eval echo '${'$as_ac_var'}'` = yes; then
7211 cat >>confdefs.h <<_ACEOF
7212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7213 _ACEOF
7215 else
7217 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7218 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
7219 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222 ac_check_lib_save_LIBS=$LIBS
7223 LIBS="-lnsl $LIBS"
7224 cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h. */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7231 /* Override any GCC internal prototype to avoid an error.
7232 Use char because int might match the return type of a GCC
7233 builtin and then its argument prototype would still apply. */
7234 #ifdef __cplusplus
7235 extern "C"
7236 #endif
7237 char gethostbyname ();
7239 main ()
7241 return gethostbyname ();
7243 return 0;
7245 _ACEOF
7246 rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (ac_try="$ac_link"
7248 case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251 esac
7252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_link") 2>conftest.er1
7254 ac_status=$?
7255 grep -v '^ *+' conftest.er1 >conftest.err
7256 rm -f conftest.er1
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7261 { (case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_try") 2>&5
7267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; } &&
7270 { ac_try='test -s conftest$ac_exeext'
7271 { (case "(($ac_try" in
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7274 esac
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_try") 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_cv_lib_nsl_gethostbyname=yes
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 ac_cv_lib_nsl_gethostbyname=no
7288 rm -f core conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7290 LIBS=$ac_check_lib_save_LIBS
7292 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7293 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
7294 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7295 cat >>confdefs.h <<_ACEOF
7296 #define HAVE_LIBNSL 1
7297 _ACEOF
7299 LIBS="-lnsl $LIBS"
7304 done
7307 for ac_func in connect
7309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7323 #define $ac_func innocuous_$ac_func
7325 /* System header to define __stub macros and hopefully few prototypes,
7326 which can conflict with char $ac_func (); below.
7327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7328 <limits.h> exists even on freestanding compilers. */
7330 #ifdef __STDC__
7331 # include <limits.h>
7332 #else
7333 # include <assert.h>
7334 #endif
7336 #undef $ac_func
7338 /* Override any GCC internal prototype to avoid an error.
7339 Use char because int might match the return type of a GCC
7340 builtin and then its argument prototype would still apply. */
7341 #ifdef __cplusplus
7342 extern "C"
7343 #endif
7344 char $ac_func ();
7345 /* The GNU C library defines this for functions which it implements
7346 to always fail with ENOSYS. Some functions are actually named
7347 something starting with __ and the normal name is an alias. */
7348 #if defined __stub_$ac_func || defined __stub___$ac_func
7349 choke me
7350 #endif
7353 main ()
7355 return $ac_func ();
7357 return 0;
7359 _ACEOF
7360 rm -f conftest.$ac_objext conftest$ac_exeext
7361 if { (ac_try="$ac_link"
7362 case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365 esac
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_link") 2>conftest.er1
7368 ac_status=$?
7369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } &&
7374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7375 { (case "(($ac_try" in
7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377 *) ac_try_echo=$ac_try;;
7378 esac
7379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380 (eval "$ac_try") 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest$ac_exeext'
7385 { (case "(($ac_try" in
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7388 esac
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_try") 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 eval "$as_ac_var=yes"
7395 else
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7399 eval "$as_ac_var=no"
7402 rm -f core conftest.err conftest.$ac_objext \
7403 conftest$ac_exeext conftest.$ac_ext
7405 ac_res=`eval echo '${'$as_ac_var'}'`
7406 { echo "$as_me:$LINENO: result: $ac_res" >&5
7407 echo "${ECHO_T}$ac_res" >&6; }
7408 if test `eval echo '${'$as_ac_var'}'` = yes; then
7409 cat >>confdefs.h <<_ACEOF
7410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7411 _ACEOF
7413 else
7415 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7416 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7417 if test "${ac_cv_lib_socket_connect+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 ac_check_lib_save_LIBS=$LIBS
7421 LIBS="-lsocket $LIBS"
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. */
7429 /* Override any GCC internal prototype to avoid an error.
7430 Use char because int might match the return type of a GCC
7431 builtin and then its argument prototype would still apply. */
7432 #ifdef __cplusplus
7433 extern "C"
7434 #endif
7435 char connect ();
7437 main ()
7439 return connect ();
7441 return 0;
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (ac_try="$ac_link"
7446 case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449 esac
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_link") 2>conftest.er1
7452 ac_status=$?
7453 grep -v '^ *+' conftest.er1 >conftest.err
7454 rm -f conftest.er1
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } &&
7458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7459 { (case "(($ac_try" in
7460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7462 esac
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464 (eval "$ac_try") 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; } &&
7468 { ac_try='test -s conftest$ac_exeext'
7469 { (case "(($ac_try" in
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7472 esac
7473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474 (eval "$ac_try") 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 ac_cv_lib_socket_connect=yes
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 ac_cv_lib_socket_connect=no
7486 rm -f core conftest.err conftest.$ac_objext \
7487 conftest$ac_exeext conftest.$ac_ext
7488 LIBS=$ac_check_lib_save_LIBS
7490 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7491 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7492 if test $ac_cv_lib_socket_connect = yes; then
7493 cat >>confdefs.h <<_ACEOF
7494 #define HAVE_LIBSOCKET 1
7495 _ACEOF
7497 LIBS="-lsocket $LIBS"
7502 done
7505 for ac_func in inet_aton
7507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7521 #define $ac_func innocuous_$ac_func
7523 /* System header to define __stub macros and hopefully few prototypes,
7524 which can conflict with char $ac_func (); below.
7525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7526 <limits.h> exists even on freestanding compilers. */
7528 #ifdef __STDC__
7529 # include <limits.h>
7530 #else
7531 # include <assert.h>
7532 #endif
7534 #undef $ac_func
7536 /* Override any GCC internal prototype to avoid an error.
7537 Use char because int might match the return type of a GCC
7538 builtin and then its argument prototype would still apply. */
7539 #ifdef __cplusplus
7540 extern "C"
7541 #endif
7542 char $ac_func ();
7543 /* The GNU C library defines this for functions which it implements
7544 to always fail with ENOSYS. Some functions are actually named
7545 something starting with __ and the normal name is an alias. */
7546 #if defined __stub_$ac_func || defined __stub___$ac_func
7547 choke me
7548 #endif
7551 main ()
7553 return $ac_func ();
7555 return 0;
7557 _ACEOF
7558 rm -f conftest.$ac_objext conftest$ac_exeext
7559 if { (ac_try="$ac_link"
7560 case "(($ac_try" in
7561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7562 *) ac_try_echo=$ac_try;;
7563 esac
7564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7565 (eval "$ac_link") 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7573 { (case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576 esac
7577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_try") 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest$ac_exeext'
7583 { (case "(($ac_try" in
7584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7585 *) ac_try_echo=$ac_try;;
7586 esac
7587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_try") 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 eval "$as_ac_var=yes"
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 eval "$as_ac_var=no"
7600 rm -f core conftest.err conftest.$ac_objext \
7601 conftest$ac_exeext conftest.$ac_ext
7603 ac_res=`eval echo '${'$as_ac_var'}'`
7604 { echo "$as_me:$LINENO: result: $ac_res" >&5
7605 echo "${ECHO_T}$ac_res" >&6; }
7606 if test `eval echo '${'$as_ac_var'}'` = yes; then
7607 cat >>confdefs.h <<_ACEOF
7608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7609 _ACEOF
7611 else
7613 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
7614 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
7615 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618 ac_check_lib_save_LIBS=$LIBS
7619 LIBS="-lresolv $LIBS"
7620 cat >conftest.$ac_ext <<_ACEOF
7621 /* confdefs.h. */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7627 /* Override any GCC internal prototype to avoid an error.
7628 Use char because int might match the return type of a GCC
7629 builtin and then its argument prototype would still apply. */
7630 #ifdef __cplusplus
7631 extern "C"
7632 #endif
7633 char inet_aton ();
7635 main ()
7637 return inet_aton ();
7639 return 0;
7641 _ACEOF
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7644 case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647 esac
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_link") 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7657 { (case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7660 esac
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_try") 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; } &&
7666 { ac_try='test -s conftest$ac_exeext'
7667 { (case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7670 esac
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_try") 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_cv_lib_resolv_inet_aton=yes
7677 else
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 ac_cv_lib_resolv_inet_aton=no
7684 rm -f core conftest.err conftest.$ac_objext \
7685 conftest$ac_exeext conftest.$ac_ext
7686 LIBS=$ac_check_lib_save_LIBS
7688 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
7689 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
7690 if test $ac_cv_lib_resolv_inet_aton = yes; then
7691 cat >>confdefs.h <<_ACEOF
7692 #define HAVE_LIBRESOLV 1
7693 _ACEOF
7695 LIBS="-lresolv $LIBS"
7700 done
7703 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7704 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
7705 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708 ac_check_lib_save_LIBS=$LIBS
7709 LIBS="-lxpg4 $LIBS"
7710 cat >conftest.$ac_ext <<_ACEOF
7711 /* confdefs.h. */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7717 /* Override any GCC internal prototype to avoid an error.
7718 Use char because int might match the return type of a GCC
7719 builtin and then its argument prototype would still apply. */
7720 #ifdef __cplusplus
7721 extern "C"
7722 #endif
7723 char _xpg4_setrunelocale ();
7725 main ()
7727 return _xpg4_setrunelocale ();
7729 return 0;
7731 _ACEOF
7732 rm -f conftest.$ac_objext conftest$ac_exeext
7733 if { (ac_try="$ac_link"
7734 case "(($ac_try" in
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7737 esac
7738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739 (eval "$ac_link") 2>conftest.er1
7740 ac_status=$?
7741 grep -v '^ *+' conftest.er1 >conftest.err
7742 rm -f conftest.er1
7743 cat conftest.err >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } &&
7746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7747 { (case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7750 esac
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_try") 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest$ac_exeext'
7757 { (case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_try") 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
7767 else
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_cv_lib_xpg4__xpg4_setrunelocale=no
7774 rm -f core conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7776 LIBS=$ac_check_lib_save_LIBS
7778 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7779 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
7780 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
7781 cat >>confdefs.h <<_ACEOF
7782 #define HAVE_LIBXPG4 1
7783 _ACEOF
7785 LIBS="-lxpg4 $LIBS"
7790 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
7791 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
7792 if test "${ac_cv_lib_poll_poll+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795 ac_check_lib_save_LIBS=$LIBS
7796 LIBS="-lpoll $LIBS"
7797 cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h. */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7804 /* Override any GCC internal prototype to avoid an error.
7805 Use char because int might match the return type of a GCC
7806 builtin and then its argument prototype would still apply. */
7807 #ifdef __cplusplus
7808 extern "C"
7809 #endif
7810 char poll ();
7812 main ()
7814 return poll ();
7816 return 0;
7818 _ACEOF
7819 rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (ac_try="$ac_link"
7821 case "(($ac_try" in
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7824 esac
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_link") 2>conftest.er1
7827 ac_status=$?
7828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7834 { (case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837 esac
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_try") 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest$ac_exeext'
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847 esac
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 ac_cv_lib_poll_poll=yes
7854 else
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7858 ac_cv_lib_poll_poll=no
7861 rm -f core conftest.err conftest.$ac_objext \
7862 conftest$ac_exeext conftest.$ac_ext
7863 LIBS=$ac_check_lib_save_LIBS
7865 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
7866 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
7867 if test $ac_cv_lib_poll_poll = yes; then
7868 cat >>confdefs.h <<_ACEOF
7869 #define HAVE_LIBPOLL 1
7870 _ACEOF
7872 LIBS="-lpoll $LIBS"
7877 { echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
7878 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6; }
7879 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882 ac_check_lib_save_LIBS=$LIBS
7883 LIBS="-lresolv $LIBS"
7884 cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h. */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7891 /* Override any GCC internal prototype to avoid an error.
7892 Use char because int might match the return type of a GCC
7893 builtin and then its argument prototype would still apply. */
7894 #ifdef __cplusplus
7895 extern "C"
7896 #endif
7897 char res_9_init ();
7899 main ()
7901 return res_9_init ();
7903 return 0;
7905 _ACEOF
7906 rm -f conftest.$ac_objext conftest$ac_exeext
7907 if { (ac_try="$ac_link"
7908 case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_link") 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7921 { (case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_try") 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try='test -s conftest$ac_exeext'
7931 { (case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_try") 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 ac_cv_lib_resolv_res_9_init=yes
7941 else
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7945 ac_cv_lib_resolv_res_9_init=no
7948 rm -f core conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7950 LIBS=$ac_check_lib_save_LIBS
7952 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
7953 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6; }
7954 if test $ac_cv_lib_resolv_res_9_init = yes; then
7955 cat >>confdefs.h <<_ACEOF
7956 #define HAVE_LIBRESOLV 1
7957 _ACEOF
7959 LIBS="-lresolv $LIBS"
7963 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7964 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
7965 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968 ac_check_lib_save_LIBS=$LIBS
7969 LIBS="-lpthread $LIBS"
7970 cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h. */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7977 /* Override any GCC internal prototype to avoid an error.
7978 Use char because int might match the return type of a GCC
7979 builtin and then its argument prototype would still apply. */
7980 #ifdef __cplusplus
7981 extern "C"
7982 #endif
7983 char pthread_create ();
7985 main ()
7987 return pthread_create ();
7989 return 0;
7991 _ACEOF
7992 rm -f conftest.$ac_objext conftest$ac_exeext
7993 if { (ac_try="$ac_link"
7994 case "(($ac_try" in
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_link") 2>conftest.er1
8000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007 { (case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_try") 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try='test -s conftest$ac_exeext'
8017 { (case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_try") 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_lib_pthread_pthread_create=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_lib_pthread_pthread_create=no
8034 rm -f core conftest.err conftest.$ac_objext \
8035 conftest$ac_exeext conftest.$ac_ext
8036 LIBS=$ac_check_lib_save_LIBS
8038 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
8039 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
8040 if test $ac_cv_lib_pthread_pthread_create = yes; then
8041 LIBPTHREAD="-lpthread"
8046 XLIB=""
8048 XFILES=""
8050 OPENGLFILES=""
8052 GLU32FILES=""
8054 OPENGL_LIBS=""
8058 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8059 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8060 if test "${ac_cv_header_stdc+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063 cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h. */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 #include <stdlib.h>
8070 #include <stdarg.h>
8071 #include <string.h>
8072 #include <float.h>
8075 main ()
8079 return 0;
8081 _ACEOF
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8084 case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
8090 ac_status=$?
8091 grep -v '^ *+' conftest.er1 >conftest.err
8092 rm -f conftest.er1
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } &&
8096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8097 { (case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8100 esac
8101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_try") 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; } &&
8106 { ac_try='test -s conftest.$ac_objext'
8107 { (case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_try") 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8116 ac_cv_header_stdc=yes
8117 else
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8121 ac_cv_header_stdc=no
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 if test $ac_cv_header_stdc = yes; then
8127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8128 cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h. */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8134 #include <string.h>
8136 _ACEOF
8137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8138 $EGREP "memchr" >/dev/null 2>&1; then
8140 else
8141 ac_cv_header_stdc=no
8143 rm -f conftest*
8147 if test $ac_cv_header_stdc = yes; then
8148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8149 cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h. */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155 #include <stdlib.h>
8157 _ACEOF
8158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8159 $EGREP "free" >/dev/null 2>&1; then
8161 else
8162 ac_cv_header_stdc=no
8164 rm -f conftest*
8168 if test $ac_cv_header_stdc = yes; then
8169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8170 if test "$cross_compiling" = yes; then
8172 else
8173 cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h. */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 #include <ctype.h>
8180 #include <stdlib.h>
8181 #if ((' ' & 0x0FF) == 0x020)
8182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8184 #else
8185 # define ISLOWER(c) \
8186 (('a' <= (c) && (c) <= 'i') \
8187 || ('j' <= (c) && (c) <= 'r') \
8188 || ('s' <= (c) && (c) <= 'z'))
8189 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8190 #endif
8192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8194 main ()
8196 int i;
8197 for (i = 0; i < 256; i++)
8198 if (XOR (islower (i), ISLOWER (i))
8199 || toupper (i) != TOUPPER (i))
8200 return 2;
8201 return 0;
8203 _ACEOF
8204 rm -f conftest$ac_exeext
8205 if { (ac_try="$ac_link"
8206 case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_link") 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8225 else
8226 echo "$as_me: program exited with status $ac_status" >&5
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 ( exit $ac_status )
8231 ac_cv_header_stdc=no
8233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8239 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8240 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8241 if test $ac_cv_header_stdc = yes; then
8243 cat >>confdefs.h <<\_ACEOF
8244 #define STDC_HEADERS 1
8245 _ACEOF
8249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8259 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8260 inttypes.h stdint.h unistd.h
8262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h. */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 $ac_includes_default
8276 #include <$ac_header>
8277 _ACEOF
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8280 case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_compile") 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8293 { (case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8296 esac
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_try") 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try='test -s conftest.$ac_objext'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8312 eval "$as_ac_Header=yes"
8313 else
8314 echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8317 eval "$as_ac_Header=no"
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 ac_res=`eval echo '${'$as_ac_Header'}'`
8323 { echo "$as_me:$LINENO: result: $ac_res" >&5
8324 echo "${ECHO_T}$ac_res" >&6; }
8325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8326 cat >>confdefs.h <<_ACEOF
8327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8328 _ACEOF
8332 done
8441 for ac_header in \
8442 AudioUnit/AudioUnit.h \
8443 CoreAudio/CoreAudio.h \
8444 IOKit/IOKitLib.h \
8445 alsa/asoundlib.h \
8446 arpa/inet.h \
8447 arpa/nameser.h \
8448 asm/types.h \
8449 capi20.h \
8450 cups/cups.h \
8451 curses.h \
8452 direct.h \
8453 dlfcn.h \
8454 elf.h \
8455 float.h \
8456 fontconfig/fontconfig.h \
8457 getopt.h \
8458 gif_lib.h \
8459 ieeefp.h \
8460 io.h \
8461 jack/jack.h \
8462 jpeglib.h \
8463 lber.h \
8464 lcms.h \
8465 lcms/lcms.h \
8466 ldap.h \
8467 libaudioio.h \
8468 link.h \
8469 linux/cdrom.h \
8470 linux/compiler.h \
8471 linux/hdreg.h \
8472 linux/input.h \
8473 linux/ioctl.h \
8474 linux/joystick.h \
8475 linux/major.h \
8476 linux/param.h \
8477 linux/serial.h \
8478 linux/ucdrom.h \
8479 mach/machine.h \
8480 machine/cpu.h \
8481 machine/limits.h \
8482 machine/soundcard.h \
8483 mntent.h \
8484 ncurses.h \
8485 netdb.h \
8486 netinet/in.h \
8487 netinet/in_systm.h \
8488 netinet/tcp.h \
8489 netinet/tcp_fsm.h \
8490 openssl/err.h \
8491 openssl/ssl.h \
8492 poll.h \
8493 process.h \
8494 pthread.h \
8495 pwd.h \
8496 regex.h \
8497 sched.h \
8498 scsi/scsi.h \
8499 scsi/scsi_ioctl.h \
8500 scsi/sg.h \
8501 soundcard.h \
8502 stdint.h \
8503 strings.h \
8504 sys/asoundlib.h \
8505 sys/cdio.h \
8506 sys/elf32.h \
8507 sys/epoll.h \
8508 sys/errno.h \
8509 sys/exec_elf.h \
8510 sys/filio.h \
8511 sys/ioctl.h \
8512 sys/ipc.h \
8513 sys/limits.h \
8514 sys/link.h \
8515 sys/lwp.h \
8516 sys/mman.h \
8517 sys/modem.h \
8518 sys/msg.h \
8519 sys/mtio.h \
8520 sys/param.h \
8521 sys/poll.h \
8522 sys/prctl.h \
8523 sys/ptrace.h \
8524 sys/reg.h \
8525 sys/resource.h \
8526 sys/scsiio.h \
8527 sys/shm.h \
8528 sys/signal.h \
8529 sys/socket.h \
8530 sys/sockio.h \
8531 sys/soundcard.h \
8532 sys/statvfs.h \
8533 sys/strtio.h \
8534 sys/syscall.h \
8535 sys/sysctl.h \
8536 sys/time.h \
8537 sys/times.h \
8538 sys/uio.h \
8539 sys/un.h \
8540 sys/vm86.h \
8541 sys/wait.h \
8542 syscall.h \
8543 termios.h \
8544 unicode/ubidi.h \
8545 unistd.h \
8546 utime.h \
8547 valgrind/memcheck.h
8550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 ac_res=`eval echo '${'$as_ac_Header'}'`
8558 { echo "$as_me:$LINENO: result: $ac_res" >&5
8559 echo "${ECHO_T}$ac_res" >&6; }
8560 else
8561 # Is the header compilable?
8562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h. */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 $ac_includes_default
8571 #include <$ac_header>
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8575 case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8588 { (case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591 esac
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_try") 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest.$ac_objext'
8598 { (case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601 esac
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_try") 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_header_compiler=yes
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ac_header_compiler=no
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8617 echo "${ECHO_T}$ac_header_compiler" >&6; }
8619 # Is the header present?
8620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 #include <$ac_header>
8629 _ACEOF
8630 if { (ac_try="$ac_cpp conftest.$ac_ext"
8631 case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634 esac
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } >/dev/null; then
8643 if test -s conftest.err; then
8644 ac_cpp_err=$ac_c_preproc_warn_flag
8645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8646 else
8647 ac_cpp_err=
8649 else
8650 ac_cpp_err=yes
8652 if test -z "$ac_cpp_err"; then
8653 ac_header_preproc=yes
8654 else
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_header_preproc=no
8661 rm -f conftest.err conftest.$ac_ext
8662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8663 echo "${ECHO_T}$ac_header_preproc" >&6; }
8665 # So? What about this header?
8666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8667 yes:no: )
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8672 ac_header_preproc=yes
8674 no:yes:* )
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8687 ( cat <<\_ASBOX
8688 ## ------------------------------------ ##
8689 ## Report this to wine-devel@winehq.org ##
8690 ## ------------------------------------ ##
8691 _ASBOX
8692 ) | sed "s/^/$as_me: WARNING: /" >&2
8694 esac
8695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700 eval "$as_ac_Header=\$ac_header_preproc"
8702 ac_res=`eval echo '${'$as_ac_Header'}'`
8703 { echo "$as_me:$LINENO: result: $ac_res" >&5
8704 echo "${ECHO_T}$ac_res" >&6; }
8707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8708 cat >>confdefs.h <<_ACEOF
8709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8710 _ACEOF
8714 done
8716 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8717 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
8718 if test "${ac_cv_header_stat_broken+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721 cat >conftest.$ac_ext <<_ACEOF
8722 /* confdefs.h. */
8723 _ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8727 #include <sys/types.h>
8728 #include <sys/stat.h>
8730 #if defined S_ISBLK && defined S_IFDIR
8731 # if S_ISBLK (S_IFDIR)
8732 You lose.
8733 # endif
8734 #endif
8736 #if defined S_ISBLK && defined S_IFCHR
8737 # if S_ISBLK (S_IFCHR)
8738 You lose.
8739 # endif
8740 #endif
8742 #if defined S_ISLNK && defined S_IFREG
8743 # if S_ISLNK (S_IFREG)
8744 You lose.
8745 # endif
8746 #endif
8748 #if defined S_ISSOCK && defined S_IFREG
8749 # if S_ISSOCK (S_IFREG)
8750 You lose.
8751 # endif
8752 #endif
8754 _ACEOF
8755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8756 $EGREP "You lose" >/dev/null 2>&1; then
8757 ac_cv_header_stat_broken=yes
8758 else
8759 ac_cv_header_stat_broken=no
8761 rm -f conftest*
8764 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8765 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
8766 if test $ac_cv_header_stat_broken = yes; then
8768 cat >>confdefs.h <<\_ACEOF
8769 #define STAT_MACROS_BROKEN 1
8770 _ACEOF
8780 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 #include <sys/types.h>
8795 #if HAVE_SYS_PARAM_H
8796 # include <sys/param.h>
8797 #endif
8799 #include <$ac_header>
8800 _ACEOF
8801 rm -f conftest.$ac_objext
8802 if { (ac_try="$ac_compile"
8803 case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806 esac
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_compile") 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8816 { (case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8819 esac
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_try") 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; } &&
8825 { ac_try='test -s conftest.$ac_objext'
8826 { (case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829 esac
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_try") 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 eval "$as_ac_Header=yes"
8836 else
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 eval "$as_ac_Header=no"
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 ac_res=`eval echo '${'$as_ac_Header'}'`
8846 { echo "$as_me:$LINENO: result: $ac_res" >&5
8847 echo "${ECHO_T}$ac_res" >&6; }
8848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8849 cat >>confdefs.h <<_ACEOF
8850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8851 _ACEOF
8855 done
8864 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
8866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872 cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h. */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8878 #include <sys/types.h>
8879 #if HAVE_SYS_SOCKET_H
8880 # include <sys/socket.h>
8881 #endif
8883 #include <$ac_header>
8884 _ACEOF
8885 rm -f conftest.$ac_objext
8886 if { (ac_try="$ac_compile"
8887 case "(($ac_try" in
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8890 esac
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_compile") 2>conftest.er1
8893 ac_status=$?
8894 grep -v '^ *+' conftest.er1 >conftest.err
8895 rm -f conftest.er1
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8900 { (case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8903 esac
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_try") 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest.$ac_objext'
8910 { (case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913 esac
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 eval "$as_ac_Header=yes"
8920 else
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 eval "$as_ac_Header=no"
8927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929 ac_res=`eval echo '${'$as_ac_Header'}'`
8930 { echo "$as_me:$LINENO: result: $ac_res" >&5
8931 echo "${ECHO_T}$ac_res" >&6; }
8932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8933 cat >>confdefs.h <<_ACEOF
8934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8935 _ACEOF
8939 done
8943 for ac_header in resolv.h
8945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h. */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 #include <sys/types.h>
8958 #if HAVE_SYS_SOCKET_H
8959 # include <sys/socket.h>
8960 #endif
8961 #if HAVE_NETINET_IN_H
8962 # include <netinet/in.h>
8963 #endif
8964 #if HAVE_ARPA_NAMESER_H
8965 # include <arpa/nameser.h>
8966 #endif
8968 #include <$ac_header>
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (ac_try="$ac_compile"
8972 case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975 esac
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_compile") 2>conftest.er1
8978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } &&
8984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8985 { (case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_try") 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try='test -s conftest.$ac_objext'
8995 { (case "(($ac_try" in
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8998 esac
8999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_try") 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 eval "$as_ac_Header=yes"
9005 else
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 eval "$as_ac_Header=no"
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014 ac_res=`eval echo '${'$as_ac_Header'}'`
9015 { echo "$as_me:$LINENO: result: $ac_res" >&5
9016 echo "${ECHO_T}$ac_res" >&6; }
9017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9018 cat >>confdefs.h <<_ACEOF
9019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9020 _ACEOF
9024 done
9028 for ac_header in ucontext.h
9030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036 cat >conftest.$ac_ext <<_ACEOF
9037 /* confdefs.h. */
9038 _ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9042 #include <signal.h>
9044 #include <$ac_header>
9045 _ACEOF
9046 rm -f conftest.$ac_objext
9047 if { (ac_try="$ac_compile"
9048 case "(($ac_try" in
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9051 esac
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_compile") 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9061 { (case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064 esac
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_try") 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest.$ac_objext'
9071 { (case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074 esac
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_try") 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
9080 eval "$as_ac_Header=yes"
9081 else
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9085 eval "$as_ac_Header=no"
9088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090 ac_res=`eval echo '${'$as_ac_Header'}'`
9091 { echo "$as_me:$LINENO: result: $ac_res" >&5
9092 echo "${ECHO_T}$ac_res" >&6; }
9093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9094 cat >>confdefs.h <<_ACEOF
9095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9096 _ACEOF
9100 done
9105 for ac_header in linux/ipx.h linux/videodev.h
9107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113 cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h. */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9119 #ifdef HAVE_SYS_TIME_H
9120 #include <sys/time.h>
9121 #endif
9122 #include <sys/types.h>
9123 #ifdef HAVE_ASM_TYPES_H
9124 #include <asm/types.h>
9125 #endif
9127 #include <$ac_header>
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (ac_try="$ac_compile"
9131 case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9134 esac
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_compile") 2>conftest.er1
9137 ac_status=$?
9138 grep -v '^ *+' conftest.er1 >conftest.err
9139 rm -f conftest.er1
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9144 { (case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147 esac
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_try") 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; } &&
9153 { ac_try='test -s conftest.$ac_objext'
9154 { (case "(($ac_try" in
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9157 esac
9158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_try") 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; }; then
9163 eval "$as_ac_Header=yes"
9164 else
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 eval "$as_ac_Header=no"
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9173 ac_res=`eval echo '${'$as_ac_Header'}'`
9174 { echo "$as_me:$LINENO: result: $ac_res" >&5
9175 echo "${ECHO_T}$ac_res" >&6; }
9176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9177 cat >>confdefs.h <<_ACEOF
9178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9179 _ACEOF
9183 done
9187 for ac_header in linux/capi.h
9189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195 cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h. */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 #define __user
9203 #include <$ac_header>
9204 _ACEOF
9205 rm -f conftest.$ac_objext
9206 if { (ac_try="$ac_compile"
9207 case "(($ac_try" in
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9210 esac
9211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_compile") 2>conftest.er1
9213 ac_status=$?
9214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9220 { (case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223 esac
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_try") 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; } &&
9229 { ac_try='test -s conftest.$ac_objext'
9230 { (case "(($ac_try" in
9231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232 *) ac_try_echo=$ac_try;;
9233 esac
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235 (eval "$ac_try") 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 eval "$as_ac_Header=yes"
9240 else
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 eval "$as_ac_Header=no"
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 ac_res=`eval echo '${'$as_ac_Header'}'`
9250 { echo "$as_me:$LINENO: result: $ac_res" >&5
9251 echo "${ECHO_T}$ac_res" >&6; }
9252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9253 cat >>confdefs.h <<_ACEOF
9254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9255 _ACEOF
9259 done
9263 if test "$have_x" = "yes"
9264 then
9265 XLIB="-lXext -lX11"
9266 ac_save_CPPFLAGS="$CPPFLAGS"
9267 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9279 for ac_header in X11/Xlib.h \
9280 X11/XKBlib.h \
9281 X11/Xutil.h \
9282 X11/extensions/shape.h \
9283 X11/extensions/XInput.h \
9284 X11/extensions/XShm.h \
9285 X11/extensions/Xrandr.h \
9286 X11/extensions/Xrender.h \
9287 X11/extensions/xf86dga.h \
9288 X11/extensions/xf86vmode.h
9290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 #ifdef HAVE_X11_XLIB_H
9303 # include <X11/Xlib.h>
9304 #endif
9305 #ifdef HAVE_X11_XUTIL_H
9306 # include <X11/Xutil.h>
9307 #endif
9309 #include <$ac_header>
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (ac_try="$ac_compile"
9313 case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_compile") 2>conftest.er1
9319 ac_status=$?
9320 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -f conftest.er1
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9326 { (case "(($ac_try" in
9327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9329 esac
9330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331 (eval "$ac_try") 2>&5
9332 ac_status=$?
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; } &&
9335 { ac_try='test -s conftest.$ac_objext'
9336 { (case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_try") 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 eval "$as_ac_Header=yes"
9346 else
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9350 eval "$as_ac_Header=no"
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 ac_res=`eval echo '${'$as_ac_Header'}'`
9356 { echo "$as_me:$LINENO: result: $ac_res" >&5
9357 echo "${ECHO_T}$ac_res" >&6; }
9358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9359 cat >>confdefs.h <<_ACEOF
9360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9361 _ACEOF
9365 done
9368 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9369 then
9370 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9371 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9372 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375 ac_check_lib_save_LIBS=$LIBS
9376 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h. */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9384 /* Override any GCC internal prototype to avoid an error.
9385 Use char because int might match the return type of a GCC
9386 builtin and then its argument prototype would still apply. */
9387 #ifdef __cplusplus
9388 extern "C"
9389 #endif
9390 char XkbQueryExtension ();
9392 main ()
9394 return XkbQueryExtension ();
9396 return 0;
9398 _ACEOF
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (ac_try="$ac_link"
9401 case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404 esac
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_link") 2>conftest.er1
9407 ac_status=$?
9408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9414 { (case "(($ac_try" in
9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9417 esac
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_try") 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; } &&
9423 { ac_try='test -s conftest$ac_exeext'
9424 { (case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_try") 2>&5
9430 ac_status=$?
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 ac_cv_lib_X11_XkbQueryExtension=yes
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9438 ac_cv_lib_X11_XkbQueryExtension=no
9441 rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443 LIBS=$ac_check_lib_save_LIBS
9445 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9446 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9447 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
9449 cat >>confdefs.h <<\_ACEOF
9450 #define HAVE_XKB 1
9451 _ACEOF
9457 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9458 then
9459 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9460 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
9461 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464 ac_check_lib_save_LIBS=$LIBS
9465 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h. */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9473 /* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9476 #ifdef __cplusplus
9477 extern "C"
9478 #endif
9479 char XShmQueryExtension ();
9481 main ()
9483 return XShmQueryExtension ();
9485 return 0;
9487 _ACEOF
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9490 case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9503 { (case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_try") 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
9513 { (case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516 esac
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_try") 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_lib_Xext_XShmQueryExtension=yes
9523 else
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 ac_cv_lib_Xext_XShmQueryExtension=no
9530 rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9534 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9535 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9536 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
9538 cat >>confdefs.h <<\_ACEOF
9539 #define HAVE_LIBXXSHM 1
9540 _ACEOF
9546 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9547 then
9548 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9549 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9550 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 ac_check_lib_save_LIBS=$LIBS
9554 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9555 cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h. */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 char XShapeQueryExtension ();
9570 main ()
9572 return XShapeQueryExtension ();
9574 return 0;
9576 _ACEOF
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (ac_try="$ac_link"
9579 case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582 esac
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_link") 2>conftest.er1
9585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9592 { (case "(($ac_try" in
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9595 esac
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597 (eval "$ac_try") 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest$ac_exeext'
9602 { (case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605 esac
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_try") 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_cv_lib_Xext_XShapeQueryExtension=yes
9612 else
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_cv_lib_Xext_XShapeQueryExtension=no
9619 rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9621 LIBS=$ac_check_lib_save_LIBS
9623 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9624 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9625 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9627 cat >>confdefs.h <<\_ACEOF
9628 #define HAVE_LIBXSHAPE 1
9629 _ACEOF
9635 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
9636 then
9637 { echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
9638 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6; }
9639 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642 ac_check_lib_save_LIBS=$LIBS
9643 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h. */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 char XDGAQueryExtension ();
9659 main ()
9661 return XDGAQueryExtension ();
9663 return 0;
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9668 case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9681 { (case "(($ac_try" in
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9684 esac
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_try") 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try='test -s conftest$ac_exeext'
9691 { (case "(($ac_try" in
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9694 esac
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_try") 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
9701 else
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9705 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
9708 rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710 LIBS=$ac_check_lib_save_LIBS
9712 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
9713 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6; }
9714 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
9716 cat >>confdefs.h <<\_ACEOF
9717 #define HAVE_LIBXXF86DGA2 1
9718 _ACEOF
9720 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
9726 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9727 then
9728 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9729 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9730 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9733 ac_check_lib_save_LIBS=$LIBS
9734 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9742 /* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
9745 #ifdef __cplusplus
9746 extern "C"
9747 #endif
9748 char XF86VidModeQueryExtension ();
9750 main ()
9752 return XF86VidModeQueryExtension ();
9754 return 0;
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9759 case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_link") 2>conftest.er1
9765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9772 { (case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_try") 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; } &&
9781 { ac_try='test -s conftest$ac_exeext'
9782 { (case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_try") 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9799 rm -f core conftest.err conftest.$ac_objext \
9800 conftest$ac_exeext conftest.$ac_ext
9801 LIBS=$ac_check_lib_save_LIBS
9803 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9804 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9805 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9807 cat >>confdefs.h <<\_ACEOF
9808 #define HAVE_LIBXXF86VM 1
9809 _ACEOF
9811 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9817 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9818 then
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h. */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 #include <X11/Xlib.h>
9826 #include <X11/extensions/Xrandr.h>
9828 main ()
9830 static typeof(XRRSetScreenConfigAndRate) * func;
9832 return 0;
9834 _ACEOF
9835 rm -f conftest.$ac_objext
9836 if { (ac_try="$ac_compile"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_compile") 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } &&
9849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9850 { (case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_try") 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest.$ac_objext'
9860 { (case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9863 esac
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_try") 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_LIBXRANDR 1
9872 _ACEOF
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9885 then
9886 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9887 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9888 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 ac_check_lib_save_LIBS=$LIBS
9892 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9900 /* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9903 #ifdef __cplusplus
9904 extern "C"
9905 #endif
9906 char XRenderSetPictureTransform ();
9908 main ()
9910 return XRenderSetPictureTransform ();
9912 return 0;
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
9923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930 { (case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_try") 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try='test -s conftest$ac_exeext'
9940 { (case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_try") 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9957 rm -f core conftest.err conftest.$ac_objext \
9958 conftest$ac_exeext conftest.$ac_ext
9959 LIBS=$ac_check_lib_save_LIBS
9961 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9962 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9963 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9965 cat >>confdefs.h <<\_ACEOF
9966 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9967 _ACEOF
9973 if test "x$with_opengl" != "xno"
9974 then
9979 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 #ifdef HAVE_GL_GLX_H
9994 # include <GL/glx.h>
9995 #endif
9997 #include <$ac_header>
9998 _ACEOF
9999 rm -f conftest.$ac_objext
10000 if { (ac_try="$ac_compile"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_compile") 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest.$ac_objext'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 eval "$as_ac_Header=yes"
10034 else
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 eval "$as_ac_Header=no"
10041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043 ac_res=`eval echo '${'$as_ac_Header'}'`
10044 { echo "$as_me:$LINENO: result: $ac_res" >&5
10045 echo "${ECHO_T}$ac_res" >&6; }
10046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10047 cat >>confdefs.h <<_ACEOF
10048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10049 _ACEOF
10053 done
10055 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
10056 then
10057 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
10058 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
10059 if test "${wine_cv_opengl_version_OK+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062 cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h. */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10068 #include <GL/gl.h>
10070 main ()
10072 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
10074 return 0;
10076 _ACEOF
10077 rm -f conftest.$ac_objext
10078 if { (ac_try="$ac_compile"
10079 case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10082 esac
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_compile") 2>conftest.er1
10085 ac_status=$?
10086 grep -v '^ *+' conftest.er1 >conftest.err
10087 rm -f conftest.er1
10088 cat conftest.err >&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
10091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10092 { (case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10095 esac
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_try") 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; } &&
10101 { ac_try='test -s conftest.$ac_objext'
10102 { (case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105 esac
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_try") 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 wine_cv_opengl_version_OK="yes"
10112 else
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 wine_cv_opengl_version_OK="no"
10120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10123 { echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
10124 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
10126 if test "$wine_cv_opengl_version_OK" = "yes"
10127 then
10128 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
10129 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
10130 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133 ac_check_lib_save_LIBS=$LIBS
10134 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
10135 cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h. */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10142 /* Override any GCC internal prototype to avoid an error.
10143 Use char because int might match the return type of a GCC
10144 builtin and then its argument prototype would still apply. */
10145 #ifdef __cplusplus
10146 extern "C"
10147 #endif
10148 char glXCreateContext ();
10150 main ()
10152 return glXCreateContext ();
10154 return 0;
10156 _ACEOF
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (ac_try="$ac_link"
10159 case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162 esac
10163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_link") 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } &&
10171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10172 { (case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_try") 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try='test -s conftest$ac_exeext'
10182 { (case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10185 esac
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_try") 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_cv_lib_GL_glXCreateContext=yes
10192 else
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ac_cv_lib_GL_glXCreateContext=no
10199 rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10201 LIBS=$ac_check_lib_save_LIBS
10203 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
10204 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
10205 if test $ac_cv_lib_GL_glXCreateContext = yes; then
10206 OPENGL_LIBS="-lGL"
10211 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
10212 then
10213 OPENGLFILES='$(OPENGLFILES)'
10215 cat >>confdefs.h <<\_ACEOF
10216 #define HAVE_OPENGL 1
10217 _ACEOF
10219 else
10220 if test -f /usr/X11R6/lib/libGL.a
10221 then
10222 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
10223 This prevents linking to OpenGL. Delete the file and restart configure." >&5
10224 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
10225 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
10226 { (exit 1); exit 1; }; }
10230 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10231 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
10232 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235 ac_check_lib_save_LIBS=$LIBS
10236 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
10237 $LIBS"
10238 cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h. */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char gluLookAt ();
10253 main ()
10255 return gluLookAt ();
10257 return 0;
10259 _ACEOF
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (ac_try="$ac_link"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_link") 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10275 { (case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10278 esac
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_try") 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; } &&
10284 { ac_try='test -s conftest$ac_exeext'
10285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; }; then
10294 ac_cv_lib_GLU_gluLookAt=yes
10295 else
10296 echo "$as_me: failed program was:" >&5
10297 sed 's/^/| /' conftest.$ac_ext >&5
10299 ac_cv_lib_GLU_gluLookAt=no
10302 rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10304 LIBS=$ac_check_lib_save_LIBS
10306 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10307 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
10308 if test $ac_cv_lib_GLU_gluLookAt = yes; then
10309 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
10310 GLU32FILES='$(GLU32FILES)'
10316 { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
10317 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
10318 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321 ac_check_lib_save_LIBS=$LIBS
10322 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10330 /* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10333 #ifdef __cplusplus
10334 extern "C"
10335 #endif
10336 char glutMainLoop ();
10338 main ()
10340 return glutMainLoop ();
10342 return 0;
10344 _ACEOF
10345 rm -f conftest.$ac_objext conftest$ac_exeext
10346 if { (ac_try="$ac_link"
10347 case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350 esac
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_link") 2>conftest.er1
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest$ac_exeext'
10370 { (case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373 esac
10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_try") 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 ac_cv_lib_glut_glutMainLoop=yes
10380 else
10381 echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.$ac_ext >&5
10384 ac_cv_lib_glut_glutMainLoop=no
10387 rm -f core conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10389 LIBS=$ac_check_lib_save_LIBS
10391 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
10392 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
10393 if test $ac_cv_lib_glut_glutMainLoop = yes; then
10394 GLUT_LIBS="-lglut -lXmu -lXi"
10396 GLUT32FILES='$(GLUT32FILES)'
10403 NASLIBS=""
10406 for ac_header in audio/audiolib.h
10408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 ac_res=`eval echo '${'$as_ac_Header'}'`
10416 { echo "$as_me:$LINENO: result: $ac_res" >&5
10417 echo "${ECHO_T}$ac_res" >&6; }
10418 else
10419 # Is the header compilable?
10420 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428 $ac_includes_default
10429 #include <$ac_header>
10430 _ACEOF
10431 rm -f conftest.$ac_objext
10432 if { (ac_try="$ac_compile"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_compile") 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10446 { (case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449 esac
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_try") 2>&5
10452 ac_status=$?
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; } &&
10455 { ac_try='test -s conftest.$ac_objext'
10456 { (case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_try") 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_header_compiler=yes
10466 else
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10470 ac_header_compiler=no
10473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10475 echo "${ECHO_T}$ac_header_compiler" >&6; }
10477 # Is the header present?
10478 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10480 cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h. */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 #include <$ac_header>
10487 _ACEOF
10488 if { (ac_try="$ac_cpp conftest.$ac_ext"
10489 case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } >/dev/null; then
10501 if test -s conftest.err; then
10502 ac_cpp_err=$ac_c_preproc_warn_flag
10503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10504 else
10505 ac_cpp_err=
10507 else
10508 ac_cpp_err=yes
10510 if test -z "$ac_cpp_err"; then
10511 ac_header_preproc=yes
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 ac_header_preproc=no
10519 rm -f conftest.err conftest.$ac_ext
10520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10521 echo "${ECHO_T}$ac_header_preproc" >&6; }
10523 # So? What about this header?
10524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10525 yes:no: )
10526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10530 ac_header_preproc=yes
10532 no:yes:* )
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10545 ( cat <<\_ASBOX
10546 ## ------------------------------------ ##
10547 ## Report this to wine-devel@winehq.org ##
10548 ## ------------------------------------ ##
10549 _ASBOX
10550 ) | sed "s/^/$as_me: WARNING: /" >&2
10552 esac
10553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558 eval "$as_ac_Header=\$ac_header_preproc"
10560 ac_res=`eval echo '${'$as_ac_Header'}'`
10561 { echo "$as_me:$LINENO: result: $ac_res" >&5
10562 echo "${ECHO_T}$ac_res" >&6; }
10565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10566 cat >>confdefs.h <<_ACEOF
10567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10568 _ACEOF
10570 for ac_header in audio/soundlib.h
10572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h. */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 #include <audio/audiolib.h>
10586 #include <$ac_header>
10587 _ACEOF
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593 esac
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_compile") 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10603 { (case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_try") 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest.$ac_objext'
10613 { (case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616 esac
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618 (eval "$ac_try") 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 eval "$as_ac_Header=yes"
10623 else
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10627 eval "$as_ac_Header=no"
10630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 ac_res=`eval echo '${'$as_ac_Header'}'`
10633 { echo "$as_me:$LINENO: result: $ac_res" >&5
10634 echo "${ECHO_T}$ac_res" >&6; }
10635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10636 cat >>confdefs.h <<_ACEOF
10637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10638 _ACEOF
10642 done
10644 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10645 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
10646 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649 ac_check_lib_save_LIBS=$LIBS
10650 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10651 cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h. */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10658 /* Override any GCC internal prototype to avoid an error.
10659 Use char because int might match the return type of a GCC
10660 builtin and then its argument prototype would still apply. */
10661 #ifdef __cplusplus
10662 extern "C"
10663 #endif
10664 char AuCreateFlow ();
10666 main ()
10668 return AuCreateFlow ();
10670 return 0;
10672 _ACEOF
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (ac_try="$ac_link"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10678 esac
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_link") 2>conftest.er1
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } &&
10687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10688 { (case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_try") 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest$ac_exeext'
10698 { (case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701 esac
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_try") 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10707 ac_cv_lib_audio_AuCreateFlow=yes
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ac_cv_lib_audio_AuCreateFlow=no
10715 rm -f core conftest.err conftest.$ac_objext \
10716 conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10719 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10720 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10721 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10723 cat >>confdefs.h <<\_ACEOF
10724 #define HAVE_NAS 1
10725 _ACEOF
10727 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10732 done
10735 CPPFLAGS="$ac_save_CPPFLAGS"
10736 XFILES='$(XFILES)'
10737 else
10738 XLIB=""
10739 X_CFLAGS=""
10740 X_LIBS=""
10744 XML2LIBS=""
10746 XML2INCL=""
10748 XSLTLIBS=""
10750 XSLTINCL=""
10752 if test "$PKG_CONFIG" != "false"
10753 then
10754 ac_save_CPPFLAGS="$CPPFLAGS"
10755 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10756 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10757 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10759 for ac_header in libxml/parser.h
10761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 ac_res=`eval echo '${'$as_ac_Header'}'`
10769 { echo "$as_me:$LINENO: result: $ac_res" >&5
10770 echo "${ECHO_T}$ac_res" >&6; }
10771 else
10772 # Is the header compilable?
10773 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 $ac_includes_default
10782 #include <$ac_header>
10783 _ACEOF
10784 rm -f conftest.$ac_objext
10785 if { (ac_try="$ac_compile"
10786 case "(($ac_try" in
10787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788 *) ac_try_echo=$ac_try;;
10789 esac
10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791 (eval "$ac_compile") 2>conftest.er1
10792 ac_status=$?
10793 grep -v '^ *+' conftest.er1 >conftest.err
10794 rm -f conftest.er1
10795 cat conftest.err >&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
10798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10799 { (case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_try") 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest.$ac_objext'
10809 { (case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812 esac
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_try") 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 ac_header_compiler=yes
10819 else
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 ac_header_compiler=no
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10828 echo "${ECHO_T}$ac_header_compiler" >&6; }
10830 # Is the header present?
10831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10833 cat >conftest.$ac_ext <<_ACEOF
10834 /* confdefs.h. */
10835 _ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10839 #include <$ac_header>
10840 _ACEOF
10841 if { (ac_try="$ac_cpp conftest.$ac_ext"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } >/dev/null; then
10854 if test -s conftest.err; then
10855 ac_cpp_err=$ac_c_preproc_warn_flag
10856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10857 else
10858 ac_cpp_err=
10860 else
10861 ac_cpp_err=yes
10863 if test -z "$ac_cpp_err"; then
10864 ac_header_preproc=yes
10865 else
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_header_preproc=no
10872 rm -f conftest.err conftest.$ac_ext
10873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10874 echo "${ECHO_T}$ac_header_preproc" >&6; }
10876 # So? What about this header?
10877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10878 yes:no: )
10879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10883 ac_header_preproc=yes
10885 no:yes:* )
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10898 ( cat <<\_ASBOX
10899 ## ------------------------------------ ##
10900 ## Report this to wine-devel@winehq.org ##
10901 ## ------------------------------------ ##
10902 _ASBOX
10903 ) | sed "s/^/$as_me: WARNING: /" >&2
10905 esac
10906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 else
10911 eval "$as_ac_Header=\$ac_header_preproc"
10913 ac_res=`eval echo '${'$as_ac_Header'}'`
10914 { echo "$as_me:$LINENO: result: $ac_res" >&5
10915 echo "${ECHO_T}$ac_res" >&6; }
10918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10919 cat >>confdefs.h <<_ACEOF
10920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10921 _ACEOF
10922 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10923 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
10924 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927 ac_check_lib_save_LIBS=$LIBS
10928 LIBS="-lxml2 $ac_xml_libs $LIBS"
10929 cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h. */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10936 /* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
10939 #ifdef __cplusplus
10940 extern "C"
10941 #endif
10942 char xmlParseMemory ();
10944 main ()
10946 return xmlParseMemory ();
10948 return 0;
10950 _ACEOF
10951 rm -f conftest.$ac_objext conftest$ac_exeext
10952 if { (ac_try="$ac_link"
10953 case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_link") 2>conftest.er1
10959 ac_status=$?
10960 grep -v '^ *+' conftest.er1 >conftest.err
10961 rm -f conftest.er1
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10966 { (case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10969 esac
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_try") 2>&5
10972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; } &&
10975 { ac_try='test -s conftest$ac_exeext'
10976 { (case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_try") 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_lib_xml2_xmlParseMemory=yes
10986 else
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10990 ac_cv_lib_xml2_xmlParseMemory=no
10993 rm -f core conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
10995 LIBS=$ac_check_lib_save_LIBS
10997 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10998 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10999 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
11001 cat >>confdefs.h <<\_ACEOF
11002 #define HAVE_LIBXML2 1
11003 _ACEOF
11005 XML2LIBS="$ac_xml_libs"
11006 XML2INCL="$ac_xml_cflags"
11009 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
11010 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
11011 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014 ac_check_lib_save_LIBS=$LIBS
11015 LIBS="-lxml2 $ac_xml_libs $LIBS"
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h. */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 char xmlReadMemory ();
11031 main ()
11033 return xmlReadMemory ();
11035 return 0;
11037 _ACEOF
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (ac_try="$ac_link"
11040 case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_link") 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try='test -s conftest$ac_exeext'
11063 { (case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_try") 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11072 ac_cv_lib_xml2_xmlReadMemory=yes
11073 else
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 ac_cv_lib_xml2_xmlReadMemory=no
11080 rm -f core conftest.err conftest.$ac_objext \
11081 conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11084 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
11085 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
11086 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
11088 cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_XMLREADMEMORY 1
11090 _ACEOF
11097 done
11099 CPPFLAGS="$ac_save_CPPFLAGS"
11100 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
11101 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
11102 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
11105 for ac_header in libxslt/pattern.h libxslt/transform.h
11107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h. */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119 #ifdef HAVE_LIBXSLT_PATTERN_H
11120 # include <libxslt/pattern.h>
11121 #endif
11123 #include <$ac_header>
11124 _ACEOF
11125 rm -f conftest.$ac_objext
11126 if { (ac_try="$ac_compile"
11127 case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130 esac
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_compile") 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11140 { (case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11143 esac
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_try") 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest.$ac_objext'
11150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 eval "$as_ac_Header=yes"
11160 else
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11164 eval "$as_ac_Header=no"
11167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11169 ac_res=`eval echo '${'$as_ac_Header'}'`
11170 { echo "$as_me:$LINENO: result: $ac_res" >&5
11171 echo "${ECHO_T}$ac_res" >&6; }
11172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11173 cat >>confdefs.h <<_ACEOF
11174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11175 _ACEOF
11176 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
11177 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
11178 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181 ac_check_lib_save_LIBS=$LIBS
11182 LIBS="-lxslt $ac_xslt_libs $LIBS"
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11190 /* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
11193 #ifdef __cplusplus
11194 extern "C"
11195 #endif
11196 char xsltCompilePattern ();
11198 main ()
11200 return xsltCompilePattern ();
11202 return 0;
11204 _ACEOF
11205 rm -f conftest.$ac_objext conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest$ac_exeext'
11230 { (case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_try") 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_cv_lib_xslt_xsltCompilePattern=yes
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 ac_cv_lib_xslt_xsltCompilePattern=no
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11249 LIBS=$ac_check_lib_save_LIBS
11251 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11252 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
11253 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11255 cat >>confdefs.h <<\_ACEOF
11256 #define HAVE_LIBXSLT 1
11257 _ACEOF
11259 XSLTLIBS="$ac_xslt_libs"
11260 XSLTINCL="$ac_xslt_cflags"
11266 done
11268 CPPFLAGS="$ac_save_CPPFLAGS"
11271 HALINCL=""
11273 if test "$PKG_CONFIG" != "false"
11274 then
11275 ac_save_CPPFLAGS="$CPPFLAGS"
11276 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11277 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
11278 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11281 for ac_header in dbus/dbus.h hal/libhal.h
11283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 ac_res=`eval echo '${'$as_ac_Header'}'`
11291 { echo "$as_me:$LINENO: result: $ac_res" >&5
11292 echo "${ECHO_T}$ac_res" >&6; }
11293 else
11294 # Is the header compilable?
11295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11297 cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h. */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 $ac_includes_default
11304 #include <$ac_header>
11305 _ACEOF
11306 rm -f conftest.$ac_objext
11307 if { (ac_try="$ac_compile"
11308 case "(($ac_try" in
11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310 *) ac_try_echo=$ac_try;;
11311 esac
11312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313 (eval "$ac_compile") 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11321 { (case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11324 esac
11325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_try") 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try='test -s conftest.$ac_objext'
11331 { (case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_try") 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_header_compiler=yes
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_header_compiler=no
11348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11350 echo "${ECHO_T}$ac_header_compiler" >&6; }
11352 # Is the header present?
11353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11355 cat >conftest.$ac_ext <<_ACEOF
11356 /* confdefs.h. */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 #include <$ac_header>
11362 _ACEOF
11363 if { (ac_try="$ac_cpp conftest.$ac_ext"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } >/dev/null; then
11376 if test -s conftest.err; then
11377 ac_cpp_err=$ac_c_preproc_warn_flag
11378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11379 else
11380 ac_cpp_err=
11382 else
11383 ac_cpp_err=yes
11385 if test -z "$ac_cpp_err"; then
11386 ac_header_preproc=yes
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 ac_header_preproc=no
11394 rm -f conftest.err conftest.$ac_ext
11395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11396 echo "${ECHO_T}$ac_header_preproc" >&6; }
11398 # So? What about this header?
11399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11400 yes:no: )
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11405 ac_header_preproc=yes
11407 no:yes:* )
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11420 ( cat <<\_ASBOX
11421 ## ------------------------------------ ##
11422 ## Report this to wine-devel@winehq.org ##
11423 ## ------------------------------------ ##
11424 _ASBOX
11425 ) | sed "s/^/$as_me: WARNING: /" >&2
11427 esac
11428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 else
11433 eval "$as_ac_Header=\$ac_header_preproc"
11435 ac_res=`eval echo '${'$as_ac_Header'}'`
11436 { echo "$as_me:$LINENO: result: $ac_res" >&5
11437 echo "${ECHO_T}$ac_res" >&6; }
11440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11441 cat >>confdefs.h <<_ACEOF
11442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11443 _ACEOF
11447 done
11449 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11450 then
11451 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
11452 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
11453 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456 ac_check_lib_save_LIBS=$LIBS
11457 LIBS="-lhal $LIBS"
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h. */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 char libhal_ctx_new ();
11473 main ()
11475 return libhal_ctx_new ();
11477 return 0;
11479 _ACEOF
11480 rm -f conftest.$ac_objext conftest$ac_exeext
11481 if { (ac_try="$ac_link"
11482 case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485 esac
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_link") 2>conftest.er1
11488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11495 { (case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_try") 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_try") 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_cv_lib_hal_libhal_ctx_new=yes
11515 else
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_lib_hal_libhal_ctx_new=no
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
11527 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
11528 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
11529 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11530 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
11531 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534 ac_check_lib_save_LIBS=$LIBS
11535 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h. */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 char dbus_connection_close ();
11551 main ()
11553 return dbus_connection_close ();
11555 return 0;
11557 _ACEOF
11558 rm -f conftest.$ac_objext conftest$ac_exeext
11559 if { (ac_try="$ac_link"
11560 case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11563 esac
11564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565 (eval "$ac_link") 2>conftest.er1
11566 ac_status=$?
11567 grep -v '^ *+' conftest.er1 >conftest.err
11568 rm -f conftest.er1
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } &&
11572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11573 { (case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11576 esac
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_try") 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; } &&
11582 { ac_try='test -s conftest$ac_exeext'
11583 { (case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586 esac
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_try") 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592 ac_cv_lib_dbus_1_dbus_connection_close=yes
11593 else
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11597 ac_cv_lib_dbus_1_dbus_connection_close=no
11600 rm -f core conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11602 LIBS=$ac_check_lib_save_LIBS
11604 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11605 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
11606 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
11608 cat >>confdefs.h <<\_ACEOF
11609 #define HAVE_LIBHAL 1
11610 _ACEOF
11612 HALINCL="$ac_hal_cflags"
11618 CPPFLAGS="$ac_save_CPPFLAGS"
11621 CURSESLIBS=""
11622 if test "x$with_curses" != "xno"
11623 then
11624 if test "$ac_cv_header_ncurses_h" = "yes"
11625 then
11626 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
11627 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
11628 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631 ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-lncurses $LIBS"
11633 cat >conftest.$ac_ext <<_ACEOF
11634 /* confdefs.h. */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11640 /* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 char waddch ();
11648 main ()
11650 return waddch ();
11652 return 0;
11654 _ACEOF
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (ac_try="$ac_link"
11657 case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_link") 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673 esac
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; } &&
11679 { ac_try='test -s conftest$ac_exeext'
11680 { (case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11683 esac
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_try") 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 ac_cv_lib_ncurses_waddch=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 ac_cv_lib_ncurses_waddch=no
11697 rm -f core conftest.err conftest.$ac_objext \
11698 conftest$ac_exeext conftest.$ac_ext
11699 LIBS=$ac_check_lib_save_LIBS
11701 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
11702 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
11703 if test $ac_cv_lib_ncurses_waddch = yes; then
11705 cat >>confdefs.h <<\_ACEOF
11706 #define HAVE_LIBNCURSES 1
11707 _ACEOF
11709 CURSESLIBS="-lncurses"
11712 elif test "$ac_cv_header_curses_h" = "yes"
11713 then
11714 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11715 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
11716 if test "${ac_cv_lib_curses_waddch+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719 ac_check_lib_save_LIBS=$LIBS
11720 LIBS="-lcurses $LIBS"
11721 cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h. */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11728 /* Override any GCC internal prototype to avoid an error.
11729 Use char because int might match the return type of a GCC
11730 builtin and then its argument prototype would still apply. */
11731 #ifdef __cplusplus
11732 extern "C"
11733 #endif
11734 char waddch ();
11736 main ()
11738 return waddch ();
11740 return 0;
11742 _ACEOF
11743 rm -f conftest.$ac_objext conftest$ac_exeext
11744 if { (ac_try="$ac_link"
11745 case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748 esac
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_link") 2>conftest.er1
11751 ac_status=$?
11752 grep -v '^ *+' conftest.er1 >conftest.err
11753 rm -f conftest.er1
11754 cat conftest.err >&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } &&
11757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11758 { (case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11761 esac
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_try") 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; } &&
11767 { ac_try='test -s conftest$ac_exeext'
11768 { (case "(($ac_try" in
11769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770 *) ac_try_echo=$ac_try;;
11771 esac
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773 (eval "$ac_try") 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; }; then
11777 ac_cv_lib_curses_waddch=yes
11778 else
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 ac_cv_lib_curses_waddch=no
11785 rm -f core conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11789 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11790 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
11791 if test $ac_cv_lib_curses_waddch = yes; then
11793 cat >>confdefs.h <<\_ACEOF
11794 #define HAVE_LIBCURSES 1
11795 _ACEOF
11797 CURSESLIBS="-lcurses"
11801 ac_save_LIBS="$LIBS"
11802 LIBS="$LIBS $CURSESLIBS"
11804 for ac_func in mousemask
11806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 else
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h. */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11820 #define $ac_func innocuous_$ac_func
11822 /* System header to define __stub macros and hopefully few prototypes,
11823 which can conflict with char $ac_func (); below.
11824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11825 <limits.h> exists even on freestanding compilers. */
11827 #ifdef __STDC__
11828 # include <limits.h>
11829 #else
11830 # include <assert.h>
11831 #endif
11833 #undef $ac_func
11835 /* Override any GCC internal prototype to avoid an error.
11836 Use char because int might match the return type of a GCC
11837 builtin and then its argument prototype would still apply. */
11838 #ifdef __cplusplus
11839 extern "C"
11840 #endif
11841 char $ac_func ();
11842 /* The GNU C library defines this for functions which it implements
11843 to always fail with ENOSYS. Some functions are actually named
11844 something starting with __ and the normal name is an alias. */
11845 #if defined __stub_$ac_func || defined __stub___$ac_func
11846 choke me
11847 #endif
11850 main ()
11852 return $ac_func ();
11854 return 0;
11856 _ACEOF
11857 rm -f conftest.$ac_objext conftest$ac_exeext
11858 if { (ac_try="$ac_link"
11859 case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11862 esac
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_link") 2>conftest.er1
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11872 { (case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_try") 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; } &&
11881 { ac_try='test -s conftest$ac_exeext'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 eval "$as_ac_var=yes"
11892 else
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 eval "$as_ac_var=no"
11899 rm -f core conftest.err conftest.$ac_objext \
11900 conftest$ac_exeext conftest.$ac_ext
11902 ac_res=`eval echo '${'$as_ac_var'}'`
11903 { echo "$as_me:$LINENO: result: $ac_res" >&5
11904 echo "${ECHO_T}$ac_res" >&6; }
11905 if test `eval echo '${'$as_ac_var'}'` = yes; then
11906 cat >>confdefs.h <<_ACEOF
11907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11908 _ACEOF
11911 done
11913 LIBS="$ac_save_LIBS"
11917 # Extract the first word of "sane-config", so it can be a program name with args.
11918 set dummy sane-config; ac_word=$2
11919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11921 if test "${ac_cv_prog_sane_devel+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924 if test -n "$sane_devel"; then
11925 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11926 else
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11934 ac_cv_prog_sane_devel="sane-config"
11935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11936 break 2
11938 done
11939 done
11940 IFS=$as_save_IFS
11942 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11945 sane_devel=$ac_cv_prog_sane_devel
11946 if test -n "$sane_devel"; then
11947 { echo "$as_me:$LINENO: result: $sane_devel" >&5
11948 echo "${ECHO_T}$sane_devel" >&6; }
11949 else
11950 { echo "$as_me:$LINENO: result: no" >&5
11951 echo "${ECHO_T}no" >&6; }
11955 SANELIBS=""
11957 SANEINCL=""
11959 if test "$sane_devel" != "no"
11960 then
11961 SANELIBS="`$sane_devel --libs`"
11962 SANEINCL="`$sane_devel --cflags`"
11963 ac_save_CPPFLAGS="$CPPFLAGS"
11964 ac_save_LIBS="$LIBS"
11965 CPPFLAGS="$CPPFLAGS $SANEINCL"
11966 LIBS="$LIBS $SANELIBS"
11967 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11968 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11969 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11970 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11974 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11975 else
11976 # Is the header compilable?
11977 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11978 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
11979 cat >conftest.$ac_ext <<_ACEOF
11980 /* confdefs.h. */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11985 $ac_includes_default
11986 #include <sane/sane.h>
11987 _ACEOF
11988 rm -f conftest.$ac_objext
11989 if { (ac_try="$ac_compile"
11990 case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11993 esac
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_compile") 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12003 { (case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006 esac
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; } &&
12012 { ac_try='test -s conftest.$ac_objext'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_header_compiler=yes
12023 else
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ac_header_compiler=no
12030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12032 echo "${ECHO_T}$ac_header_compiler" >&6; }
12034 # Is the header present?
12035 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
12036 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 #include <sane/sane.h>
12044 _ACEOF
12045 if { (ac_try="$ac_cpp conftest.$ac_ext"
12046 case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049 esac
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12052 ac_status=$?
12053 grep -v '^ *+' conftest.er1 >conftest.err
12054 rm -f conftest.er1
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } >/dev/null; then
12058 if test -s conftest.err; then
12059 ac_cpp_err=$ac_c_preproc_warn_flag
12060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12061 else
12062 ac_cpp_err=
12064 else
12065 ac_cpp_err=yes
12067 if test -z "$ac_cpp_err"; then
12068 ac_header_preproc=yes
12069 else
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12073 ac_header_preproc=no
12076 rm -f conftest.err conftest.$ac_ext
12077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12078 echo "${ECHO_T}$ac_header_preproc" >&6; }
12080 # So? What about this header?
12081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12082 yes:no: )
12083 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
12084 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
12086 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
12087 ac_header_preproc=yes
12089 no:yes:* )
12090 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
12091 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
12093 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
12095 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
12096 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
12097 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
12098 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
12099 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
12101 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
12102 ( cat <<\_ASBOX
12103 ## ------------------------------------ ##
12104 ## Report this to wine-devel@winehq.org ##
12105 ## ------------------------------------ ##
12106 _ASBOX
12107 ) | sed "s/^/$as_me: WARNING: /" >&2
12109 esac
12110 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
12111 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
12112 if test "${ac_cv_header_sane_sane_h+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115 ac_cv_header_sane_sane_h=$ac_header_preproc
12117 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12118 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
12121 if test $ac_cv_header_sane_sane_h = yes; then
12122 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
12123 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
12124 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127 ac_check_lib_save_LIBS=$LIBS
12128 LIBS="-lsane $LIBS"
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h. */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char sane_open ();
12144 main ()
12146 return sane_open ();
12148 return 0;
12150 _ACEOF
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12156 esac
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_link") 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest$ac_exeext'
12176 { (case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_try") 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; }; then
12185 ac_cv_lib_sane_sane_open=yes
12186 else
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_cv_lib_sane_sane_open=no
12193 rm -f core conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
12195 LIBS=$ac_check_lib_save_LIBS
12197 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
12198 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
12199 if test $ac_cv_lib_sane_sane_open = yes; then
12201 cat >>confdefs.h <<\_ACEOF
12202 #define HAVE_SANE 1
12203 _ACEOF
12205 else
12206 SANELIBS=""
12207 SANEINCL=""
12210 else
12211 SANELIBS=""
12212 SANEINCL=""
12216 LIBS="$ac_save_LIBS"
12217 CPPFLAGS="$ac_save_CPPFLAGS"
12220 # Extract the first word of "gphoto2-config", so it can be a program name with args.
12221 set dummy gphoto2-config; ac_word=$2
12222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12224 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227 if test -n "$gphoto2_devel"; then
12228 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12229 else
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_prog_gphoto2_devel="gphoto2-config"
12238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12241 done
12242 done
12243 IFS=$as_save_IFS
12245 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12248 gphoto2_devel=$ac_cv_prog_gphoto2_devel
12249 if test -n "$gphoto2_devel"; then
12250 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12251 echo "${ECHO_T}$gphoto2_devel" >&6; }
12252 else
12253 { echo "$as_me:$LINENO: result: no" >&5
12254 echo "${ECHO_T}no" >&6; }
12258 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12259 set dummy gphoto2-port-config; ac_word=$2
12260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12262 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265 if test -n "$gphoto2port_devel"; then
12266 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12267 else
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269 for as_dir in $PATH
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12275 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 break 2
12279 done
12280 done
12281 IFS=$as_save_IFS
12283 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
12286 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12287 if test -n "$gphoto2port_devel"; then
12288 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12289 echo "${ECHO_T}$gphoto2port_devel" >&6; }
12290 else
12291 { echo "$as_me:$LINENO: result: no" >&5
12292 echo "${ECHO_T}no" >&6; }
12296 GPHOTO2LIBS=""
12298 GPHOTO2INCL=""
12300 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12301 then
12302 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12303 GPHOTO2LIBS=""
12304 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12306 case "$i" in
12307 -L/usr/lib|-L/usr/lib64) ;;
12308 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
12309 esac
12310 done
12311 ac_save_CPPFLAGS="$CPPFLAGS"
12312 ac_save_LIBS="$LIBS"
12313 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
12314 LIBS="$LIBS $GPHOTO2LIBS"
12315 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12316 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12317 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12318 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12322 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12323 else
12324 # Is the header compilable?
12325 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12326 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 $ac_includes_default
12334 #include <gphoto2-camera.h>
12335 _ACEOF
12336 rm -f conftest.$ac_objext
12337 if { (ac_try="$ac_compile"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_compile") 2>conftest.er1
12344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12351 { (case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12354 esac
12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356 (eval "$ac_try") 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; } &&
12360 { ac_try='test -s conftest.$ac_objext'
12361 { (case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_try") 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_header_compiler=yes
12371 else
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ac_header_compiler=no
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12380 echo "${ECHO_T}$ac_header_compiler" >&6; }
12382 # Is the header present?
12383 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12384 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h. */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391 #include <gphoto2-camera.h>
12392 _ACEOF
12393 if { (ac_try="$ac_cpp conftest.$ac_ext"
12394 case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12400 ac_status=$?
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } >/dev/null; then
12406 if test -s conftest.err; then
12407 ac_cpp_err=$ac_c_preproc_warn_flag
12408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12409 else
12410 ac_cpp_err=
12412 else
12413 ac_cpp_err=yes
12415 if test -z "$ac_cpp_err"; then
12416 ac_header_preproc=yes
12417 else
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12421 ac_header_preproc=no
12424 rm -f conftest.err conftest.$ac_ext
12425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12426 echo "${ECHO_T}$ac_header_preproc" >&6; }
12428 # So? What about this header?
12429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12430 yes:no: )
12431 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12432 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12433 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12434 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12435 ac_header_preproc=yes
12437 no:yes:* )
12438 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12439 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
12441 echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12443 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
12445 echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12447 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12449 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
12450 ( cat <<\_ASBOX
12451 ## ------------------------------------ ##
12452 ## Report this to wine-devel@winehq.org ##
12453 ## ------------------------------------ ##
12454 _ASBOX
12455 ) | sed "s/^/$as_me: WARNING: /" >&2
12457 esac
12458 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12459 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12460 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
12465 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12466 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12469 if test $ac_cv_header_gphoto2_camera_h = yes; then
12470 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12471 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
12472 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475 ac_check_lib_save_LIBS=$LIBS
12476 LIBS="-lgphoto2 $LIBS"
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h. */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char gp_camera_new ();
12492 main ()
12494 return gp_camera_new ();
12496 return 0;
12498 _ACEOF
12499 rm -f conftest.$ac_objext conftest$ac_exeext
12500 if { (ac_try="$ac_link"
12501 case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12504 esac
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_link") 2>conftest.er1
12507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
12513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12514 { (case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_try") 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; } &&
12523 { ac_try='test -s conftest$ac_exeext'
12524 { (case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12527 esac
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_try") 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; }; then
12533 ac_cv_lib_gphoto2_gp_camera_new=yes
12534 else
12535 echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 ac_cv_lib_gphoto2_gp_camera_new=no
12541 rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 LIBS=$ac_check_lib_save_LIBS
12545 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12546 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
12547 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
12549 cat >>confdefs.h <<\_ACEOF
12550 #define HAVE_GPHOTO2 1
12551 _ACEOF
12553 else
12554 GPHOTO2LIBS=""
12555 GPHOTO2INCL=""
12558 else
12559 GPHOTO2LIBS=""
12560 GPHOTO2INCL=""
12564 LIBS="$ac_save_LIBS"
12565 CPPFLAGS="$ac_save_CPPFLAGS"
12568 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
12569 then
12570 saved_libs="$LIBS"
12571 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
12573 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
12574 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
12575 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
12576 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
12577 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12578 cat >conftest.$ac_ext <<_ACEOF
12579 /* confdefs.h. */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 #include <unicode/ubidi.h>
12586 main ()
12588 ubidi_open()
12590 return 0;
12592 _ACEOF
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (ac_try="$ac_link"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598 esac
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_link") 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12608 { (case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_try") 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest$ac_exeext'
12618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12628 cat >>confdefs.h <<\_ACEOF
12629 #define HAVE_ICU 1
12630 _ACEOF
12632 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12634 { echo "$as_me:$LINENO: result: yes" >&5
12635 echo "${ECHO_T}yes" >&6; }
12636 else
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12640 { echo "$as_me:$LINENO: result: no" >&5
12641 echo "${ECHO_T}no" >&6; }
12644 rm -f core conftest.err conftest.$ac_objext \
12645 conftest$ac_exeext conftest.$ac_ext
12646 done
12647 LIBS="$saved_libs"
12650 RESOLVLIBS=""
12652 if test "$ac_cv_header_resolv_h" = "yes"
12653 then
12654 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12655 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
12656 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659 ac_check_lib_save_LIBS=$LIBS
12660 LIBS="-lresolv $LIBS"
12661 cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h. */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12668 /* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
12671 #ifdef __cplusplus
12672 extern "C"
12673 #endif
12674 char res_query ();
12676 main ()
12678 return res_query ();
12680 return 0;
12682 _ACEOF
12683 rm -f conftest.$ac_objext conftest$ac_exeext
12684 if { (ac_try="$ac_link"
12685 case "(($ac_try" in
12686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687 *) ac_try_echo=$ac_try;;
12688 esac
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_link") 2>conftest.er1
12691 ac_status=$?
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12698 { (case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12701 esac
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_try") 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try='test -s conftest$ac_exeext'
12708 { (case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12711 esac
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_try") 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_cv_lib_resolv_res_query=yes
12718 else
12719 echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_cv_lib_resolv_res_query=no
12725 rm -f core conftest.err conftest.$ac_objext \
12726 conftest$ac_exeext conftest.$ac_ext
12727 LIBS=$ac_check_lib_save_LIBS
12729 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12730 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12731 if test $ac_cv_lib_resolv_res_query = yes; then
12733 cat >>confdefs.h <<\_ACEOF
12734 #define HAVE_RESOLV 1
12735 _ACEOF
12737 RESOLVLIBS="-lresolv"
12742 LCMSLIBS=""
12744 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12745 then
12746 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12747 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12748 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 else
12751 ac_check_lib_save_LIBS=$LIBS
12752 LIBS="-llcms $LIBS"
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h. */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 char cmsOpenProfileFromFile ();
12768 main ()
12770 return cmsOpenProfileFromFile ();
12772 return 0;
12774 _ACEOF
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12780 esac
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_link") 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12790 { (case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12793 esac
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_try") 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; } &&
12799 { ac_try='test -s conftest$ac_exeext'
12800 { (case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_try") 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
12817 rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12819 LIBS=$ac_check_lib_save_LIBS
12821 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12822 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12823 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12825 cat >>confdefs.h <<\_ACEOF
12826 #define HAVE_LCMS 1
12827 _ACEOF
12829 LCMSLIBS="-llcms"
12834 LDAPLIBS=""
12836 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12837 then
12838 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12839 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12840 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843 ac_check_lib_save_LIBS=$LIBS
12844 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h. */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12852 /* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
12855 #ifdef __cplusplus
12856 extern "C"
12857 #endif
12858 char ldap_initialize ();
12860 main ()
12862 return ldap_initialize ();
12864 return 0;
12866 _ACEOF
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_cv_lib_ldap_r_ldap_initialize=yes
12902 else
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 ac_cv_lib_ldap_r_ldap_initialize=no
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12911 LIBS=$ac_check_lib_save_LIBS
12913 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12914 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12915 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12916 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12917 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12918 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921 ac_check_lib_save_LIBS=$LIBS
12922 LIBS="-llber $LIBPTHREAD $LIBS"
12923 cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h. */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12930 /* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
12933 #ifdef __cplusplus
12934 extern "C"
12935 #endif
12936 char ber_init ();
12938 main ()
12940 return ber_init ();
12942 return 0;
12944 _ACEOF
12945 rm -f conftest.$ac_objext conftest$ac_exeext
12946 if { (ac_try="$ac_link"
12947 case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12950 esac
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_link") 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
12959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12960 { (case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12963 esac
12964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965 (eval "$ac_try") 2>&5
12966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; } &&
12969 { ac_try='test -s conftest$ac_exeext'
12970 { (case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12973 esac
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_try") 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12979 ac_cv_lib_lber_ber_init=yes
12980 else
12981 echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12984 ac_cv_lib_lber_ber_init=no
12987 rm -f core conftest.err conftest.$ac_objext \
12988 conftest$ac_exeext conftest.$ac_ext
12989 LIBS=$ac_check_lib_save_LIBS
12991 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12992 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12993 if test $ac_cv_lib_lber_ber_init = yes; then
12995 cat >>confdefs.h <<\_ACEOF
12996 #define HAVE_LDAP 1
12997 _ACEOF
12999 LDAPLIBS="-lldap_r -llber"
13004 ac_wine_check_funcs_save_LIBS="$LIBS"
13005 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13010 for ac_func in \
13011 ldap_count_references \
13012 ldap_first_reference \
13013 ldap_next_reference \
13014 ldap_parse_reference
13016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022 cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h. */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13030 #define $ac_func innocuous_$ac_func
13032 /* System header to define __stub macros and hopefully few prototypes,
13033 which can conflict with char $ac_func (); below.
13034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13035 <limits.h> exists even on freestanding compilers. */
13037 #ifdef __STDC__
13038 # include <limits.h>
13039 #else
13040 # include <assert.h>
13041 #endif
13043 #undef $ac_func
13045 /* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
13048 #ifdef __cplusplus
13049 extern "C"
13050 #endif
13051 char $ac_func ();
13052 /* The GNU C library defines this for functions which it implements
13053 to always fail with ENOSYS. Some functions are actually named
13054 something starting with __ and the normal name is an alias. */
13055 #if defined __stub_$ac_func || defined __stub___$ac_func
13056 choke me
13057 #endif
13060 main ()
13062 return $ac_func ();
13064 return 0;
13066 _ACEOF
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (ac_try="$ac_link"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_link") 2>conftest.er1
13075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } &&
13081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13082 { (case "(($ac_try" in
13083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13084 *) ac_try_echo=$ac_try;;
13085 esac
13086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13087 (eval "$ac_try") 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; } &&
13091 { ac_try='test -s conftest$ac_exeext'
13092 { (case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095 esac
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_try") 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 eval "$as_ac_var=yes"
13102 else
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13106 eval "$as_ac_var=no"
13109 rm -f core conftest.err conftest.$ac_objext \
13110 conftest$ac_exeext conftest.$ac_ext
13112 ac_res=`eval echo '${'$as_ac_var'}'`
13113 { echo "$as_me:$LINENO: result: $ac_res" >&5
13114 echo "${ECHO_T}$ac_res" >&6; }
13115 if test `eval echo '${'$as_ac_var'}'` = yes; then
13116 cat >>confdefs.h <<_ACEOF
13117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13118 _ACEOF
13121 done
13123 LIBS="$ac_wine_check_funcs_save_LIBS"
13126 FREETYPELIBS=""
13128 FREETYPEINCL=""
13130 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
13131 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
13132 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135 ac_check_lib_save_LIBS=$LIBS
13136 LIBS="-lfreetype $X_LIBS $LIBS"
13137 cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h. */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13144 /* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
13147 #ifdef __cplusplus
13148 extern "C"
13149 #endif
13150 char FT_Init_FreeType ();
13152 main ()
13154 return FT_Init_FreeType ();
13156 return 0;
13158 _ACEOF
13159 rm -f conftest.$ac_objext conftest$ac_exeext
13160 if { (ac_try="$ac_link"
13161 case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13164 esac
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_link") 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
13173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13174 { (case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13177 esac
13178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179 (eval "$ac_try") 2>&5
13180 ac_status=$?
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; } &&
13183 { ac_try='test -s conftest$ac_exeext'
13184 { (case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_try") 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 ac_cv_lib_freetype_FT_Init_FreeType=yes
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 ac_cv_lib_freetype_FT_Init_FreeType=no
13201 rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13205 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
13206 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
13207 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
13208 ft_lib=yes
13209 else
13210 ft_lib=no
13213 if test "$ft_lib" = "no"
13214 then
13215 wine_cv_msg_freetype=no
13216 else
13217 # Extract the first word of "freetype-config", so it can be a program name with args.
13218 set dummy freetype-config; ac_word=$2
13219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13221 if test "${ac_cv_prog_ft_devel+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224 if test -n "$ft_devel"; then
13225 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
13226 else
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13234 ac_cv_prog_ft_devel="freetype-config"
13235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 break 2
13238 done
13239 done
13240 IFS=$as_save_IFS
13242 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
13245 ft_devel=$ac_cv_prog_ft_devel
13246 if test -n "$ft_devel"; then
13247 { echo "$as_me:$LINENO: result: $ft_devel" >&5
13248 echo "${ECHO_T}$ft_devel" >&6; }
13249 else
13250 { echo "$as_me:$LINENO: result: no" >&5
13251 echo "${ECHO_T}no" >&6; }
13255 if test "$ft_devel" = "no"
13256 then
13257 # Extract the first word of "freetype2-config", so it can be a program name with args.
13258 set dummy freetype2-config; ac_word=$2
13259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13261 if test "${ac_cv_prog_ft_devel2+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 else
13264 if test -n "$ft_devel2"; then
13265 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
13266 else
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13270 IFS=$as_save_IFS
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13274 ac_cv_prog_ft_devel2="freetype2-config"
13275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13276 break 2
13278 done
13279 done
13280 IFS=$as_save_IFS
13282 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
13285 ft_devel2=$ac_cv_prog_ft_devel2
13286 if test -n "$ft_devel2"; then
13287 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
13288 echo "${ECHO_T}$ft_devel2" >&6; }
13289 else
13290 { echo "$as_me:$LINENO: result: no" >&5
13291 echo "${ECHO_T}no" >&6; }
13295 if test "$ft_devel2" = "freetype2-config"
13296 then
13297 ft_devel=$ft_devel2
13300 if test "$ft_devel" = "no"
13301 then
13302 wine_cv_msg_freetype=yes
13303 else
13304 FREETYPELIBS=`$ft_devel --libs`
13305 FREETYPEINCL=`$ft_devel --cflags`
13306 ac_save_CPPFLAGS="$CPPFLAGS"
13307 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
13319 for ac_header in ft2build.h \
13320 freetype/freetype.h \
13321 freetype/ftglyph.h \
13322 freetype/tttables.h \
13323 freetype/ftnames.h \
13324 freetype/ftsnames.h \
13325 freetype/ttnameid.h \
13326 freetype/ftoutln.h \
13327 freetype/ftwinfnt.h \
13328 freetype/ftmodapi.h \
13329 freetype/internal/sfnt.h
13331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337 cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h. */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13343 #if HAVE_FT2BUILD_H
13344 #include <ft2build.h>
13345 #endif
13347 #include <$ac_header>
13348 _ACEOF
13349 rm -f conftest.$ac_objext
13350 if { (ac_try="$ac_compile"
13351 case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354 esac
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_compile") 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest.$ac_objext'
13374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 eval "$as_ac_Header=yes"
13384 else
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13388 eval "$as_ac_Header=no"
13391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393 ac_res=`eval echo '${'$as_ac_Header'}'`
13394 { echo "$as_me:$LINENO: result: $ac_res" >&5
13395 echo "${ECHO_T}$ac_res" >&6; }
13396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13397 cat >>confdefs.h <<_ACEOF
13398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13399 _ACEOF
13403 done
13405 cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h. */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 #include <ft2build.h>
13412 #include <freetype/fttrigon.h>
13413 _ACEOF
13414 if { (ac_try="$ac_cpp conftest.$ac_ext"
13415 case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } >/dev/null; then
13427 if test -s conftest.err; then
13428 ac_cpp_err=$ac_c_preproc_warn_flag
13429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13430 else
13431 ac_cpp_err=
13433 else
13434 ac_cpp_err=yes
13436 if test -z "$ac_cpp_err"; then
13438 cat >>confdefs.h <<\_ACEOF
13439 #define HAVE_FREETYPE_FTTRIGON_H 1
13440 _ACEOF
13442 wine_cv_fttrigon=yes
13443 else
13444 echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13447 wine_cv_fttrigon=no
13450 rm -f conftest.err conftest.$ac_ext
13451 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13452 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
13453 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 #include <freetype/ftmodapi.h>
13464 typedef FT_TrueTypeEngineType ac__type_new_;
13466 main ()
13468 if ((ac__type_new_ *) 0)
13469 return 0;
13470 if (sizeof (ac__type_new_))
13471 return 0;
13473 return 0;
13475 _ACEOF
13476 rm -f conftest.$ac_objext
13477 if { (ac_try="$ac_compile"
13478 case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13481 esac
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_compile") 2>conftest.er1
13484 ac_status=$?
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13491 { (case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_try") 2>&5
13497 ac_status=$?
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; } &&
13500 { ac_try='test -s conftest.$ac_objext'
13501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504 esac
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_type_FT_TrueTypeEngineType=yes
13511 else
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13515 ac_cv_type_FT_TrueTypeEngineType=no
13518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13521 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
13522 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_FT_TRUETYPEENGINETYPE 1
13526 _ACEOF
13531 ac_save_CFLAGS="$CFLAGS"
13532 CFLAGS="$CFLAGS $FREETYPELIBS"
13534 for ac_func in FT_Load_Sfnt_Table
13536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 else
13542 cat >conftest.$ac_ext <<_ACEOF
13543 /* confdefs.h. */
13544 _ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h. */
13548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13550 #define $ac_func innocuous_$ac_func
13552 /* System header to define __stub macros and hopefully few prototypes,
13553 which can conflict with char $ac_func (); below.
13554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13555 <limits.h> exists even on freestanding compilers. */
13557 #ifdef __STDC__
13558 # include <limits.h>
13559 #else
13560 # include <assert.h>
13561 #endif
13563 #undef $ac_func
13565 /* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
13568 #ifdef __cplusplus
13569 extern "C"
13570 #endif
13571 char $ac_func ();
13572 /* The GNU C library defines this for functions which it implements
13573 to always fail with ENOSYS. Some functions are actually named
13574 something starting with __ and the normal name is an alias. */
13575 #if defined __stub_$ac_func || defined __stub___$ac_func
13576 choke me
13577 #endif
13580 main ()
13582 return $ac_func ();
13584 return 0;
13586 _ACEOF
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (ac_try="$ac_link"
13589 case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592 esac
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_link") 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13602 { (case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_try") 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest$ac_exeext'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615 esac
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
13621 eval "$as_ac_var=yes"
13622 else
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 eval "$as_ac_var=no"
13629 rm -f core conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext conftest.$ac_ext
13632 ac_res=`eval echo '${'$as_ac_var'}'`
13633 { echo "$as_me:$LINENO: result: $ac_res" >&5
13634 echo "${ECHO_T}$ac_res" >&6; }
13635 if test `eval echo '${'$as_ac_var'}'` = yes; then
13636 cat >>confdefs.h <<_ACEOF
13637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13638 _ACEOF
13641 done
13643 CFLAGS="$ac_save_CFLAGS"
13644 CPPFLAGS="$ac_save_CPPFLAGS"
13645 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
13646 then
13648 cat >>confdefs.h <<\_ACEOF
13649 #define HAVE_FREETYPE 1
13650 _ACEOF
13652 wine_cv_msg_freetype=no
13653 else
13654 FREETYPELIBS=""
13655 FREETYPEINCL=""
13656 wine_cv_msg_freetype=yes
13661 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
13662 then
13663 FONTSSUBDIRS="fonts"
13667 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13668 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
13669 if test "${ac_cv_c_ppdev+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h. */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 #include <linux/ppdev.h>
13680 main ()
13682 ioctl (1,PPCLAIM,0)
13684 return 0;
13686 _ACEOF
13687 rm -f conftest.$ac_objext
13688 if { (ac_try="$ac_compile"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13705 esac
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest.$ac_objext'
13712 { (case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13715 esac
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_cv_c_ppdev="yes"
13722 else
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 ac_cv_c_ppdev="no"
13729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13733 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13734 if test "$ac_cv_c_ppdev" = "yes"
13735 then
13737 cat >>confdefs.h <<\_ACEOF
13738 #define HAVE_PPDEV 1
13739 _ACEOF
13743 { echo "$as_me:$LINENO: checking for va_copy" >&5
13744 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13745 if test "${ac_cv_c_va_copy+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 else
13748 cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h. */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13754 #include <stdarg.h>
13756 main ()
13758 va_list ap1, ap2;
13759 va_copy(ap1,ap2);
13762 return 0;
13764 _ACEOF
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (ac_try="$ac_link"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783 esac
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
13790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793 esac
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_c_va_copy="yes"
13800 else
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_cv_c_va_copy="no"
13807 rm -f core conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
13811 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13812 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13813 if test "$ac_cv_c_va_copy" = "yes"
13814 then
13816 cat >>confdefs.h <<\_ACEOF
13817 #define HAVE_VA_COPY 1
13818 _ACEOF
13821 { echo "$as_me:$LINENO: checking for __va_copy" >&5
13822 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13823 if test "${ac_cv_c___va_copy+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826 cat >conftest.$ac_ext <<_ACEOF
13827 /* confdefs.h. */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13832 #include <stdarg.h>
13834 main ()
13836 va_list ap1, ap2;
13837 __va_copy(ap1,ap2);
13840 return 0;
13842 _ACEOF
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (ac_try="$ac_link"
13845 case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_link") 2>conftest.er1
13851 ac_status=$?
13852 grep -v '^ *+' conftest.er1 >conftest.err
13853 rm -f conftest.er1
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
13857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13858 { (case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13861 esac
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863 (eval "$ac_try") 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; } &&
13867 { ac_try='test -s conftest$ac_exeext'
13868 { (case "(($ac_try" in
13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870 *) ac_try_echo=$ac_try;;
13871 esac
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873 (eval "$ac_try") 2>&5
13874 ac_status=$?
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; }; then
13877 ac_cv_c___va_copy="yes"
13878 else
13879 echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13882 ac_cv_c___va_copy="no"
13885 rm -f core conftest.err conftest.$ac_objext \
13886 conftest$ac_exeext conftest.$ac_ext
13889 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13890 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13891 if test "$ac_cv_c___va_copy" = "yes"
13892 then
13894 cat >>confdefs.h <<\_ACEOF
13895 #define HAVE___VA_COPY 1
13896 _ACEOF
13900 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13901 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13902 if test "${ac_cv_c_sigsetjmp+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 #include <setjmp.h>
13913 main ()
13915 sigjmp_buf buf;
13916 sigsetjmp( buf, 1 );
13917 siglongjmp( buf, 1 );
13919 return 0;
13921 _ACEOF
13922 rm -f conftest.$ac_objext conftest$ac_exeext
13923 if { (ac_try="$ac_link"
13924 case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13927 esac
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_link") 2>conftest.er1
13930 ac_status=$?
13931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13937 { (case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13940 esac
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_try") 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } &&
13946 { ac_try='test -s conftest$ac_exeext'
13947 { (case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_try") 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_cv_c_sigsetjmp="yes"
13957 else
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13961 ac_cv_c_sigsetjmp="no"
13964 rm -f core conftest.err conftest.$ac_objext \
13965 conftest$ac_exeext conftest.$ac_ext
13968 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13969 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13970 if test "$ac_cv_c_sigsetjmp" = "yes"
13971 then
13973 cat >>confdefs.h <<\_ACEOF
13974 #define HAVE_SIGSETJMP 1
13975 _ACEOF
13979 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13980 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13981 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984 cat >conftest.$ac_ext <<_ACEOF
13985 /* confdefs.h. */
13986 _ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13990 #define _GNU_SOURCE
13991 #include <pthread.h>
13993 typedef pthread_rwlock_t ac__type_new_;
13995 main ()
13997 if ((ac__type_new_ *) 0)
13998 return 0;
13999 if (sizeof (ac__type_new_))
14000 return 0;
14002 return 0;
14004 _ACEOF
14005 rm -f conftest.$ac_objext
14006 if { (ac_try="$ac_compile"
14007 case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14010 esac
14011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012 (eval "$ac_compile") 2>conftest.er1
14013 ac_status=$?
14014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
14019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14020 { (case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14023 esac
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_try") 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; } &&
14029 { ac_try='test -s conftest.$ac_objext'
14030 { (case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14033 esac
14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_try") 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_cv_type_pthread_rwlock_t=yes
14040 else
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 ac_cv_type_pthread_rwlock_t=no
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
14050 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
14051 if test $ac_cv_type_pthread_rwlock_t = yes; then
14053 cat >>confdefs.h <<_ACEOF
14054 #define HAVE_PTHREAD_RWLOCK_T 1
14055 _ACEOF
14059 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
14060 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
14061 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064 cat >conftest.$ac_ext <<_ACEOF
14065 /* confdefs.h. */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14070 #define _GNU_SOURCE
14071 #include <pthread.h>
14073 typedef pthread_rwlockattr_t ac__type_new_;
14075 main ()
14077 if ((ac__type_new_ *) 0)
14078 return 0;
14079 if (sizeof (ac__type_new_))
14080 return 0;
14082 return 0;
14084 _ACEOF
14085 rm -f conftest.$ac_objext
14086 if { (ac_try="$ac_compile"
14087 case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14090 esac
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_compile") 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
14099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14100 { (case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14103 esac
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_try") 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; } &&
14109 { ac_try='test -s conftest.$ac_objext'
14110 { (case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_try") 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_cv_type_pthread_rwlockattr_t=yes
14120 else
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 ac_cv_type_pthread_rwlockattr_t=no
14127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14129 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
14130 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
14131 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
14133 cat >>confdefs.h <<_ACEOF
14134 #define HAVE_PTHREAD_RWLOCKATTR_T 1
14135 _ACEOF
14141 ac_wine_check_funcs_save_LIBS="$LIBS"
14142 LIBS="$LIBS $LIBPTHREAD"
14146 for ac_func in \
14147 pthread_getattr_np \
14148 pthread_get_stackaddr_np \
14149 pthread_get_stacksize_np
14151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157 cat >conftest.$ac_ext <<_ACEOF
14158 /* confdefs.h. */
14159 _ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h. */
14163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14165 #define $ac_func innocuous_$ac_func
14167 /* System header to define __stub macros and hopefully few prototypes,
14168 which can conflict with char $ac_func (); below.
14169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14170 <limits.h> exists even on freestanding compilers. */
14172 #ifdef __STDC__
14173 # include <limits.h>
14174 #else
14175 # include <assert.h>
14176 #endif
14178 #undef $ac_func
14180 /* Override any GCC internal prototype to avoid an error.
14181 Use char because int might match the return type of a GCC
14182 builtin and then its argument prototype would still apply. */
14183 #ifdef __cplusplus
14184 extern "C"
14185 #endif
14186 char $ac_func ();
14187 /* The GNU C library defines this for functions which it implements
14188 to always fail with ENOSYS. Some functions are actually named
14189 something starting with __ and the normal name is an alias. */
14190 #if defined __stub_$ac_func || defined __stub___$ac_func
14191 choke me
14192 #endif
14195 main ()
14197 return $ac_func ();
14199 return 0;
14201 _ACEOF
14202 rm -f conftest.$ac_objext conftest$ac_exeext
14203 if { (ac_try="$ac_link"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_link") 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; } &&
14226 { ac_try='test -s conftest$ac_exeext'
14227 { (case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14230 esac
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232 (eval "$ac_try") 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }; then
14236 eval "$as_ac_var=yes"
14237 else
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14241 eval "$as_ac_var=no"
14244 rm -f core conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14247 ac_res=`eval echo '${'$as_ac_var'}'`
14248 { echo "$as_me:$LINENO: result: $ac_res" >&5
14249 echo "${ECHO_T}$ac_res" >&6; }
14250 if test `eval echo '${'$as_ac_var'}'` = yes; then
14251 cat >>confdefs.h <<_ACEOF
14252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14253 _ACEOF
14256 done
14258 LIBS="$ac_wine_check_funcs_save_LIBS"
14260 # Extract the first word of "artsc-config", so it can be a program name with args.
14261 set dummy artsc-config; ac_word=$2
14262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14264 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267 case $ARTSCCONFIG in
14268 [\\/]* | ?:[\\/]*)
14269 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
14272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14273 for as_dir in $PATH
14275 IFS=$as_save_IFS
14276 test -z "$as_dir" && as_dir=.
14277 for ac_exec_ext in '' $ac_executable_extensions; do
14278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14279 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
14280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14281 break 2
14283 done
14284 done
14285 IFS=$as_save_IFS
14288 esac
14290 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
14291 if test -n "$ARTSCCONFIG"; then
14292 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
14293 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
14294 else
14295 { echo "$as_me:$LINENO: result: no" >&5
14296 echo "${ECHO_T}no" >&6; }
14300 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
14301 then
14302 ARTSC_CFLAGS=""
14303 for i in `$ARTSCCONFIG --cflags`
14305 case "$i" in
14306 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
14307 esac
14308 done
14309 ARTSC_LIBS=""
14310 for i in `$ARTSCCONFIG --libs`
14312 case "$i" in
14313 -L/usr/lib|-L/usr/lib64) ;;
14314 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
14315 esac
14316 done
14317 save_CFLAGS="$CFLAGS"
14318 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
14319 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
14320 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
14321 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 else
14324 ac_check_lib_save_LIBS=$LIBS
14325 LIBS="-lartsc $ARTSC_LIBS $LIBS"
14326 cat >conftest.$ac_ext <<_ACEOF
14327 /* confdefs.h. */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14333 /* Override any GCC internal prototype to avoid an error.
14334 Use char because int might match the return type of a GCC
14335 builtin and then its argument prototype would still apply. */
14336 #ifdef __cplusplus
14337 extern "C"
14338 #endif
14339 char arts_init ();
14341 main ()
14343 return arts_init ();
14345 return 0;
14347 _ACEOF
14348 rm -f conftest.$ac_objext conftest$ac_exeext
14349 if { (ac_try="$ac_link"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_link") 2>conftest.er1
14356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14363 { (case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14366 esac
14367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_try") 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest$ac_exeext'
14373 { (case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_try") 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_cv_lib_artsc_arts_init=yes
14383 else
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_cv_lib_artsc_arts_init=no
14390 rm -f core conftest.err conftest.$ac_objext \
14391 conftest$ac_exeext conftest.$ac_ext
14392 LIBS=$ac_check_lib_save_LIBS
14394 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
14395 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
14396 if test $ac_cv_lib_artsc_arts_init = yes; then
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h. */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14403 #include <artsc.h>
14405 main ()
14407 arts_stream_t stream;
14409 return 0;
14411 _ACEOF
14412 rm -f conftest.$ac_objext
14413 if { (ac_try="$ac_compile"
14414 case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_compile") 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
14426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14427 { (case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_try") 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; } &&
14436 { ac_try='test -s conftest.$ac_objext'
14437 { (case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14440 esac
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_try") 2>&5
14443 ac_status=$?
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14446 ARTSLIBS=$ARTSC_LIBS
14448 ARTSINCL=$ARTSC_CFLAGS
14451 cat >>confdefs.h <<\_ACEOF
14452 #define HAVE_ARTS 1
14453 _ACEOF
14455 else
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465 CFLAGS="$save_CFLAGS"
14468 # Extract the first word of "esd-config", so it can be a program name with args.
14469 set dummy esd-config; ac_word=$2
14470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14472 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 else
14475 case $ESDCONFIG in
14476 [\\/]* | ?:[\\/]*)
14477 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14483 IFS=$as_save_IFS
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14487 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14489 break 2
14491 done
14492 done
14493 IFS=$as_save_IFS
14496 esac
14498 ESDCONFIG=$ac_cv_path_ESDCONFIG
14499 if test -n "$ESDCONFIG"; then
14500 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
14501 echo "${ECHO_T}$ESDCONFIG" >&6; }
14502 else
14503 { echo "$as_me:$LINENO: result: no" >&5
14504 echo "${ECHO_T}no" >&6; }
14508 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
14509 then
14510 ESD_CFLAGS=""
14511 for i in `$ESDCONFIG --cflags`
14513 case "$i" in
14514 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
14515 esac
14516 done
14517 ESD_LIBS=`$ESDCONFIG --libs`
14518 save_CFLAGS="$CFLAGS"
14519 CFLAGS="$CFLAGS $ESD_CFLAGS"
14520 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
14521 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
14522 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 else
14525 ac_check_lib_save_LIBS=$LIBS
14526 LIBS="-lesd $LIBS"
14527 cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h. */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14534 /* Override any GCC internal prototype to avoid an error.
14535 Use char because int might match the return type of a GCC
14536 builtin and then its argument prototype would still apply. */
14537 #ifdef __cplusplus
14538 extern "C"
14539 #endif
14540 char esd_open_sound ();
14542 main ()
14544 return esd_open_sound ();
14546 return 0;
14548 _ACEOF
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (ac_try="$ac_link"
14551 case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_link") 2>conftest.er1
14557 ac_status=$?
14558 grep -v '^ *+' conftest.er1 >conftest.err
14559 rm -f conftest.er1
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
14563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14564 { (case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_try") 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest$ac_exeext'
14574 { (case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14577 esac
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_try") 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583 ac_cv_lib_esd_esd_open_sound=yes
14584 else
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 ac_cv_lib_esd_esd_open_sound=no
14591 rm -f core conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
14593 LIBS=$ac_check_lib_save_LIBS
14595 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14596 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
14597 if test $ac_cv_lib_esd_esd_open_sound = yes; then
14598 ESDLIBS=$ESD_LIBS
14600 ESDINCL=$ESD_CFLAGS
14603 cat >>confdefs.h <<\_ACEOF
14604 #define HAVE_ESD 1
14605 _ACEOF
14609 CFLAGS="$save_CFLAGS"
14612 ALSALIBS=""
14614 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
14615 then
14616 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14617 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
14618 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621 ac_check_lib_save_LIBS=$LIBS
14622 LIBS="-lasound $LIBS"
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14630 /* Override any GCC internal prototype to avoid an error.
14631 Use char because int might match the return type of a GCC
14632 builtin and then its argument prototype would still apply. */
14633 #ifdef __cplusplus
14634 extern "C"
14635 #endif
14636 char snd_pcm_hw_params_get_access ();
14638 main ()
14640 return snd_pcm_hw_params_get_access ();
14642 return 0;
14644 _ACEOF
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_link") 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14660 { (case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663 esac
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_try") 2>&5
14666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; } &&
14669 { ac_try='test -s conftest$ac_exeext'
14670 { (case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_try") 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
14680 else
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14684 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
14687 rm -f core conftest.err conftest.$ac_objext \
14688 conftest$ac_exeext conftest.$ac_ext
14689 LIBS=$ac_check_lib_save_LIBS
14691 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14692 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
14693 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14694 cat >conftest.$ac_ext <<_ACEOF
14695 /* confdefs.h. */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14700 #ifdef HAVE_ALSA_ASOUNDLIB_H
14701 #include <alsa/asoundlib.h>
14702 #elif defined(HAVE_SYS_ASOUNDLIB_H)
14703 #include <sys/asoundlib.h>
14704 #endif
14706 main ()
14708 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14710 return 0;
14712 _ACEOF
14713 rm -f conftest.$ac_objext
14714 if { (ac_try="$ac_compile"
14715 case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_compile") 2>conftest.er1
14721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
14727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14728 { (case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_try") 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
14738 { (case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_try") 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14748 cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_ALSA 1
14750 _ACEOF
14752 ALSALIBS="-lasound"
14753 else
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 AUDIOIOLIBS=""
14768 if test "$ac_cv_header_libaudioio_h" = "yes"
14769 then
14770 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14771 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14772 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775 ac_check_lib_save_LIBS=$LIBS
14776 LIBS="-laudioio $LIBS"
14777 cat >conftest.$ac_ext <<_ACEOF
14778 /* confdefs.h. */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14784 /* Override any GCC internal prototype to avoid an error.
14785 Use char because int might match the return type of a GCC
14786 builtin and then its argument prototype would still apply. */
14787 #ifdef __cplusplus
14788 extern "C"
14789 #endif
14790 char AudioIOGetVersion ();
14792 main ()
14794 return AudioIOGetVersion ();
14796 return 0;
14798 _ACEOF
14799 rm -f conftest.$ac_objext conftest$ac_exeext
14800 if { (ac_try="$ac_link"
14801 case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14804 esac
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_link") 2>conftest.er1
14807 ac_status=$?
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14814 { (case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_try") 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; } &&
14823 { ac_try='test -s conftest$ac_exeext'
14824 { (case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14827 esac
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_try") 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 ac_cv_lib_audioio_AudioIOGetVersion=yes
14834 else
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 ac_cv_lib_audioio_AudioIOGetVersion=no
14841 rm -f core conftest.err conftest.$ac_objext \
14842 conftest$ac_exeext conftest.$ac_ext
14843 LIBS=$ac_check_lib_save_LIBS
14845 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14846 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14847 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14848 AUDIOIOLIBS="-laudioio"
14850 cat >>confdefs.h <<\_ACEOF
14851 #define HAVE_LIBAUDIOIO 1
14852 _ACEOF
14859 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14860 then
14861 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14862 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
14863 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 else
14866 ac_check_lib_save_LIBS=$LIBS
14867 LIBS="-lcapi20 $LIBS"
14868 cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h. */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14875 /* Override any GCC internal prototype to avoid an error.
14876 Use char because int might match the return type of a GCC
14877 builtin and then its argument prototype would still apply. */
14878 #ifdef __cplusplus
14879 extern "C"
14880 #endif
14881 char capi20_register ();
14883 main ()
14885 return capi20_register ();
14887 return 0;
14889 _ACEOF
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (ac_try="$ac_link"
14892 case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14895 esac
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_link") 2>conftest.er1
14898 ac_status=$?
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14905 { (case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908 esac
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_try") 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest$ac_exeext'
14915 { (case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14918 esac
14919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14920 (eval "$ac_try") 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_cv_lib_capi20_capi20_register=yes
14925 else
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14929 ac_cv_lib_capi20_capi20_register=no
14932 rm -f core conftest.err conftest.$ac_objext \
14933 conftest$ac_exeext conftest.$ac_ext
14934 LIBS=$ac_check_lib_save_LIBS
14936 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14937 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
14938 if test $ac_cv_lib_capi20_capi20_register = yes; then
14940 cat >>confdefs.h <<\_ACEOF
14941 #define HAVE_CAPI4LINUX 1
14942 _ACEOF
14949 EXTRACFLAGS=""
14951 if test "x${GCC}" = "xyes"
14952 then
14953 EXTRACFLAGS="-Wall -pipe"
14955 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14956 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14957 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 else
14960 if test "$cross_compiling" = yes; then
14961 ac_cv_c_gcc_strength_bug="yes"
14962 else
14963 cat >conftest.$ac_ext <<_ACEOF
14964 /* confdefs.h. */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14970 int L[4] = {0,1,2,3};
14971 int main(void) {
14972 static int Array[3];
14973 unsigned int B = 3;
14974 int i;
14975 for(i=0; i<B; i++) Array[i] = i - 3;
14976 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14977 L[i] = 4;
14979 exit( Array[1] != -2 || L[2] != 3);
14981 _ACEOF
14982 rm -f conftest$ac_exeext
14983 if { (ac_try="$ac_link"
14984 case "(($ac_try" in
14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14987 esac
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_link") 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14993 { (case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14996 esac
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_try") 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 ac_cv_c_gcc_strength_bug="no"
15003 else
15004 echo "$as_me: program exited with status $ac_status" >&5
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15008 ( exit $ac_status )
15009 ac_cv_c_gcc_strength_bug="yes"
15011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15016 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
15017 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
15018 if test "$ac_cv_c_gcc_strength_bug" = "yes"
15019 then
15020 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
15023 { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
15024 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
15025 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028 ac_wine_try_cflags_saved=$CFLAGS
15029 CFLAGS="$CFLAGS -fshort-wchar"
15030 cat >conftest.$ac_ext <<_ACEOF
15031 /* confdefs.h. */
15032 _ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15038 main ()
15042 return 0;
15044 _ACEOF
15045 rm -f conftest.$ac_objext conftest$ac_exeext
15046 if { (ac_try="$ac_link"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050 esac
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_link") 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
15059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15060 { (case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15063 esac
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_try") 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; } &&
15069 { ac_try='test -s conftest$ac_exeext'
15070 { (case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_try") 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15079 ac_cv_c_gcc_fshort_wchar="yes"
15080 else
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15084 ac_cv_c_gcc_fshort_wchar="no"
15087 rm -f core conftest.err conftest.$ac_objext \
15088 conftest$ac_exeext conftest.$ac_ext
15089 CFLAGS=$ac_wine_try_cflags_saved
15091 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
15092 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
15093 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
15094 then
15096 cat >>confdefs.h <<\_ACEOF
15097 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
15098 _ACEOF
15102 { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
15103 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
15104 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107 ac_wine_try_cflags_saved=$CFLAGS
15108 CFLAGS="$CFLAGS -fno-strict-aliasing"
15109 cat >conftest.$ac_ext <<_ACEOF
15110 /* confdefs.h. */
15111 _ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15117 main ()
15121 return 0;
15123 _ACEOF
15124 rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (ac_try="$ac_link"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_link") 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
15138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15139 { (case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_try") 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest$ac_exeext'
15149 { (case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152 esac
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_try") 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_cv_c_gcc_no_strict_aliasing="yes"
15159 else
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_cv_c_gcc_no_strict_aliasing="no"
15166 rm -f core conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext conftest.$ac_ext
15168 CFLAGS=$ac_wine_try_cflags_saved
15170 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
15171 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
15172 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
15173 then
15174 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
15177 { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
15178 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
15179 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 else
15182 ac_wine_try_cflags_saved=$CFLAGS
15183 CFLAGS="$CFLAGS -gstabs+"
15184 cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h. */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15192 main ()
15196 return 0;
15198 _ACEOF
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (ac_try="$ac_link"
15201 case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
15207 ac_status=$?
15208 grep -v '^ *+' conftest.er1 >conftest.err
15209 rm -f conftest.er1
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15214 { (case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15217 esac
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_try") 2>&5
15220 ac_status=$?
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; } &&
15223 { ac_try='test -s conftest$ac_exeext'
15224 { (case "(($ac_try" in
15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15227 esac
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_try") 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 ac_cv_c_gcc_gstabs="yes"
15234 else
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 ac_cv_c_gcc_gstabs="no"
15241 rm -f core conftest.err conftest.$ac_objext \
15242 conftest$ac_exeext conftest.$ac_ext
15243 CFLAGS=$ac_wine_try_cflags_saved
15245 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
15246 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
15247 if test "$ac_cv_c_gcc_gstabs" = "yes"
15248 then
15249 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
15252 { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
15253 echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15254 if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257 ac_wine_try_cflags_saved=$CFLAGS
15258 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15259 cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h. */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15267 main ()
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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15289 { (case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292 esac
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_try") 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try='test -s conftest$ac_exeext'
15299 { (case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_cv_c_gcc_decl_after_statement="yes"
15309 else
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ac_cv_c_gcc_decl_after_statement="no"
15316 rm -f core conftest.err conftest.$ac_objext \
15317 conftest$ac_exeext conftest.$ac_ext
15318 CFLAGS=$ac_wine_try_cflags_saved
15320 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
15321 echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
15322 if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
15323 then
15324 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
15327 saved_CFLAGS="$CFLAGS"
15328 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
15329 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15330 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
15331 if test "${ac_cv_c_string_h_warnings+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h. */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 #include <string.h>
15342 main ()
15346 return 0;
15348 _ACEOF
15349 rm -f conftest.$ac_objext
15350 if { (ac_try="$ac_compile"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_compile") 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364 { (case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367 esac
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_try") 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest.$ac_objext'
15374 { (case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15377 esac
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_try") 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15383 ac_cv_c_string_h_warnings=no
15384 else
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 ac_cv_c_string_h_warnings=yes
15391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15394 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
15395 CFLAGS="$saved_CFLAGS"
15396 if test "$ac_cv_c_string_h_warnings" = "no"
15397 then
15398 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
15401 BUILTINFLAG=""
15403 saved_CFLAGS="$CFLAGS"
15404 CFLAGS="$CFLAGS -Werror"
15405 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15406 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
15407 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410 cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h. */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15418 main ()
15420 int iswlower(unsigned short);
15422 return 0;
15424 _ACEOF
15425 rm -f conftest.$ac_objext
15426 if { (ac_try="$ac_compile"
15427 case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_compile") 2>conftest.er1
15433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } &&
15439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15440 { (case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443 esac
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_try") 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; } &&
15449 { ac_try='test -s conftest.$ac_objext'
15450 { (case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15453 esac
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_try") 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15459 ac_cv_c_builtin_wchar_ctype=no
15460 else
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15464 ac_cv_c_builtin_wchar_ctype=yes
15467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15470 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
15471 CFLAGS="$saved_CFLAGS"
15472 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15473 then
15474 BUILTINFLAG=""
15475 for builtin in \
15476 iswalnum iswalpha iswcntrl iswdigit iswgraph iswlower \
15477 iswprint iswpunct iswspace iswupper iswxdigit towlower towupper
15479 BUILTINFLAG="$BUILTINFLAG -fno-builtin-$builtin"
15480 done
15485 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15486 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
15487 if test "${ac_cv_asm_func_def+set}" = set; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 else
15490 cat >conftest.$ac_ext <<_ACEOF
15491 /* confdefs.h. */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 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"); }
15499 main ()
15503 return 0;
15505 _ACEOF
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (ac_try="$ac_link"
15508 case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15511 esac
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_link") 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
15520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15521 { (case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15524 esac
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_try") 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; } &&
15530 { ac_try='test -s conftest$ac_exeext'
15531 { (case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15534 esac
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_try") 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15540 ac_cv_asm_func_def=".def"
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h. */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
15554 main ()
15558 return 0;
15560 _ACEOF
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (ac_try="$ac_link"
15563 case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_link") 2>conftest.er1
15569 ac_status=$?
15570 grep -v '^ *+' conftest.er1 >conftest.err
15571 rm -f conftest.er1
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15576 { (case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_try") 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest$ac_exeext'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589 esac
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_asm_func_def=".type @function"
15596 else
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 cat >conftest.$ac_ext <<_ACEOF
15601 /* confdefs.h. */
15602 _ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
15609 main ()
15613 return 0;
15615 _ACEOF
15616 rm -f conftest.$ac_objext conftest$ac_exeext
15617 if { (ac_try="$ac_link"
15618 case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_link") 2>conftest.er1
15624 ac_status=$?
15625 grep -v '^ *+' conftest.er1 >conftest.err
15626 rm -f conftest.er1
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } &&
15630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15631 { (case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15634 esac
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_try") 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest$ac_exeext'
15641 { (case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15644 esac
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_try") 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_cv_asm_func_def=".type 2"
15651 else
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15655 ac_cv_asm_func_def="unknown"
15658 rm -f core conftest.err conftest.$ac_objext \
15659 conftest$ac_exeext conftest.$ac_ext
15662 rm -f core conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15666 rm -f core conftest.err conftest.$ac_objext \
15667 conftest$ac_exeext conftest.$ac_ext
15669 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15670 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
15674 case "$ac_cv_asm_func_def" in
15675 ".def")
15676 cat >>confdefs.h <<\_ACEOF
15677 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15678 _ACEOF
15680 ".type @function")
15681 cat >>confdefs.h <<\_ACEOF
15682 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15683 _ACEOF
15685 ".type 2")
15686 cat >>confdefs.h <<\_ACEOF
15687 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15688 _ACEOF
15691 cat >>confdefs.h <<\_ACEOF
15692 #define __ASM_FUNC(name) ""
15693 _ACEOF
15695 esac
15698 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15699 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15700 if test "${ac_cv_c_extern_prefix+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h. */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15709 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
15710 extern int ac_test;
15712 main ()
15714 if (ac_test) return 1
15716 return 0;
15718 _ACEOF
15719 rm -f conftest.$ac_objext conftest$ac_exeext
15720 if { (ac_try="$ac_link"
15721 case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15724 esac
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_link") 2>conftest.er1
15727 ac_status=$?
15728 grep -v '^ *+' conftest.er1 >conftest.err
15729 rm -f conftest.er1
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15734 { (case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737 esac
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_try") 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; } &&
15743 { ac_try='test -s conftest$ac_exeext'
15744 { (case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_try") 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 ac_cv_c_extern_prefix="yes"
15754 else
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 ac_cv_c_extern_prefix="no"
15761 rm -f core conftest.err conftest.$ac_objext \
15762 conftest$ac_exeext conftest.$ac_ext
15764 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15765 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
15769 if test "$ac_cv_c_extern_prefix" = "yes"
15770 then
15771 cat >>confdefs.h <<\_ACEOF
15772 #define __ASM_NAME(name) "_" name
15773 _ACEOF
15775 else
15776 cat >>confdefs.h <<\_ACEOF
15777 #define __ASM_NAME(name) name
15778 _ACEOF
15783 DLLEXT=""
15785 DLLFLAGS="-D_REENTRANT"
15787 DLLIBS=""
15789 LDSHARED=""
15791 LDDLLFLAGS=""
15793 LIBEXT="so"
15795 IMPLIBEXT="def"
15798 case $host_os in
15799 cygwin*|mingw32*)
15800 if test -n "$ac_tool_prefix"; then
15801 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15802 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15805 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 else
15808 if test -n "$DLLTOOL"; then
15809 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15810 else
15811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15812 for as_dir in $PATH
15814 IFS=$as_save_IFS
15815 test -z "$as_dir" && as_dir=.
15816 for ac_exec_ext in '' $ac_executable_extensions; do
15817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15818 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15820 break 2
15822 done
15823 done
15824 IFS=$as_save_IFS
15828 DLLTOOL=$ac_cv_prog_DLLTOOL
15829 if test -n "$DLLTOOL"; then
15830 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15831 echo "${ECHO_T}$DLLTOOL" >&6; }
15832 else
15833 { echo "$as_me:$LINENO: result: no" >&5
15834 echo "${ECHO_T}no" >&6; }
15839 if test -z "$ac_cv_prog_DLLTOOL"; then
15840 ac_ct_DLLTOOL=$DLLTOOL
15841 # Extract the first word of "dlltool", so it can be a program name with args.
15842 set dummy dlltool; ac_word=$2
15843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15845 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 else
15848 if test -n "$ac_ct_DLLTOOL"; then
15849 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15850 else
15851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15852 for as_dir in $PATH
15854 IFS=$as_save_IFS
15855 test -z "$as_dir" && as_dir=.
15856 for ac_exec_ext in '' $ac_executable_extensions; do
15857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15858 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15860 break 2
15862 done
15863 done
15864 IFS=$as_save_IFS
15868 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15869 if test -n "$ac_ct_DLLTOOL"; then
15870 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15871 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
15872 else
15873 { echo "$as_me:$LINENO: result: no" >&5
15874 echo "${ECHO_T}no" >&6; }
15877 if test "x$ac_ct_DLLTOOL" = x; then
15878 DLLTOOL="false"
15879 else
15880 case $cross_compiling:$ac_tool_warned in
15881 yes:)
15882 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15883 whose name does not start with the host triplet. If you think this
15884 configuration is useful to you, please write to autoconf@gnu.org." >&5
15885 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15886 whose name does not start with the host triplet. If you think this
15887 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15888 ac_tool_warned=yes ;;
15889 esac
15890 DLLTOOL=$ac_ct_DLLTOOL
15892 else
15893 DLLTOOL="$ac_cv_prog_DLLTOOL"
15896 if test -n "$ac_tool_prefix"; then
15897 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15898 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
15899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15901 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15902 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 else
15904 if test -n "$DLLWRAP"; then
15905 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15906 else
15907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15908 for as_dir in $PATH
15910 IFS=$as_save_IFS
15911 test -z "$as_dir" && as_dir=.
15912 for ac_exec_ext in '' $ac_executable_extensions; do
15913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15914 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
15915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15916 break 2
15918 done
15919 done
15920 IFS=$as_save_IFS
15924 DLLWRAP=$ac_cv_prog_DLLWRAP
15925 if test -n "$DLLWRAP"; then
15926 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15927 echo "${ECHO_T}$DLLWRAP" >&6; }
15928 else
15929 { echo "$as_me:$LINENO: result: no" >&5
15930 echo "${ECHO_T}no" >&6; }
15935 if test -z "$ac_cv_prog_DLLWRAP"; then
15936 ac_ct_DLLWRAP=$DLLWRAP
15937 # Extract the first word of "dllwrap", so it can be a program name with args.
15938 set dummy dllwrap; ac_word=$2
15939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15941 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 else
15944 if test -n "$ac_ct_DLLWRAP"; then
15945 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15946 else
15947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15948 for as_dir in $PATH
15950 IFS=$as_save_IFS
15951 test -z "$as_dir" && as_dir=.
15952 for ac_exec_ext in '' $ac_executable_extensions; do
15953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15954 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15956 break 2
15958 done
15959 done
15960 IFS=$as_save_IFS
15964 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15965 if test -n "$ac_ct_DLLWRAP"; then
15966 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15967 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
15968 else
15969 { echo "$as_me:$LINENO: result: no" >&5
15970 echo "${ECHO_T}no" >&6; }
15973 if test "x$ac_ct_DLLWRAP" = x; then
15974 DLLWRAP="false"
15975 else
15976 case $cross_compiling:$ac_tool_warned in
15977 yes:)
15978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15979 whose name does not start with the host triplet. If you think this
15980 configuration is useful to you, please write to autoconf@gnu.org." >&5
15981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15982 whose name does not start with the host triplet. If you think this
15983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15984 ac_tool_warned=yes ;;
15985 esac
15986 DLLWRAP=$ac_ct_DLLWRAP
15988 else
15989 DLLWRAP="$ac_cv_prog_DLLWRAP"
15992 if test "$DLLWRAP" = "false"; then
15993 LIBEXT="a"
15994 else
15995 LIBEXT="dll"
15997 IMPLIBEXT="a"
15998 WIN16_FILES=""
15999 WIN16_INSTALL=""
16002 if test "$ac_cv_header_dlfcn_h" = "yes"
16003 then
16005 for ac_func in dlopen
16007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16012 else
16013 cat >conftest.$ac_ext <<_ACEOF
16014 /* confdefs.h. */
16015 _ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16021 #define $ac_func innocuous_$ac_func
16023 /* System header to define __stub macros and hopefully few prototypes,
16024 which can conflict with char $ac_func (); below.
16025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16026 <limits.h> exists even on freestanding compilers. */
16028 #ifdef __STDC__
16029 # include <limits.h>
16030 #else
16031 # include <assert.h>
16032 #endif
16034 #undef $ac_func
16036 /* Override any GCC internal prototype to avoid an error.
16037 Use char because int might match the return type of a GCC
16038 builtin and then its argument prototype would still apply. */
16039 #ifdef __cplusplus
16040 extern "C"
16041 #endif
16042 char $ac_func ();
16043 /* The GNU C library defines this for functions which it implements
16044 to always fail with ENOSYS. Some functions are actually named
16045 something starting with __ and the normal name is an alias. */
16046 #if defined __stub_$ac_func || defined __stub___$ac_func
16047 choke me
16048 #endif
16051 main ()
16053 return $ac_func ();
16055 return 0;
16057 _ACEOF
16058 rm -f conftest.$ac_objext conftest$ac_exeext
16059 if { (ac_try="$ac_link"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_link") 2>conftest.er1
16066 ac_status=$?
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
16072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16073 { (case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_try") 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest$ac_exeext'
16083 { (case "(($ac_try" in
16084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085 *) ac_try_echo=$ac_try;;
16086 esac
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088 (eval "$ac_try") 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 eval "$as_ac_var=yes"
16093 else
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 eval "$as_ac_var=no"
16100 rm -f core conftest.err conftest.$ac_objext \
16101 conftest$ac_exeext conftest.$ac_ext
16103 ac_res=`eval echo '${'$as_ac_var'}'`
16104 { echo "$as_me:$LINENO: result: $ac_res" >&5
16105 echo "${ECHO_T}$ac_res" >&6; }
16106 if test `eval echo '${'$as_ac_var'}'` = yes; then
16107 cat >>confdefs.h <<_ACEOF
16108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16109 _ACEOF
16111 else
16112 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16113 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16114 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
16117 ac_check_lib_save_LIBS=$LIBS
16118 LIBS="-ldl $LIBS"
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h. */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16126 /* Override any GCC internal prototype to avoid an error.
16127 Use char because int might match the return type of a GCC
16128 builtin and then its argument prototype would still apply. */
16129 #ifdef __cplusplus
16130 extern "C"
16131 #endif
16132 char dlopen ();
16134 main ()
16136 return dlopen ();
16138 return 0;
16140 _ACEOF
16141 rm -f conftest.$ac_objext conftest$ac_exeext
16142 if { (ac_try="$ac_link"
16143 case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146 esac
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_link") 2>conftest.er1
16149 ac_status=$?
16150 grep -v '^ *+' conftest.er1 >conftest.err
16151 rm -f conftest.er1
16152 cat conftest.err >&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
16155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16156 { (case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_try") 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; } &&
16165 { ac_try='test -s conftest$ac_exeext'
16166 { (case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16169 esac
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_try") 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 ac_cv_lib_dl_dlopen=yes
16176 else
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16180 ac_cv_lib_dl_dlopen=no
16183 rm -f core conftest.err conftest.$ac_objext \
16184 conftest$ac_exeext conftest.$ac_ext
16185 LIBS=$ac_check_lib_save_LIBS
16187 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16188 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16189 if test $ac_cv_lib_dl_dlopen = yes; then
16191 cat >>confdefs.h <<\_ACEOF
16192 #define HAVE_DLOPEN 1
16193 _ACEOF
16195 DLLIBS="-ldl"
16196 else
16197 LIBEXT="a"
16201 done
16203 ac_wine_check_funcs_save_LIBS="$LIBS"
16204 LIBS="$LIBS $DLLIBS"
16206 for ac_func in dladdr
16208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 else
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h. */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16222 #define $ac_func innocuous_$ac_func
16224 /* System header to define __stub macros and hopefully few prototypes,
16225 which can conflict with char $ac_func (); below.
16226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16227 <limits.h> exists even on freestanding compilers. */
16229 #ifdef __STDC__
16230 # include <limits.h>
16231 #else
16232 # include <assert.h>
16233 #endif
16235 #undef $ac_func
16237 /* Override any GCC internal prototype to avoid an error.
16238 Use char because int might match the return type of a GCC
16239 builtin and then its argument prototype would still apply. */
16240 #ifdef __cplusplus
16241 extern "C"
16242 #endif
16243 char $ac_func ();
16244 /* The GNU C library defines this for functions which it implements
16245 to always fail with ENOSYS. Some functions are actually named
16246 something starting with __ and the normal name is an alias. */
16247 #if defined __stub_$ac_func || defined __stub___$ac_func
16248 choke me
16249 #endif
16252 main ()
16254 return $ac_func ();
16256 return 0;
16258 _ACEOF
16259 rm -f conftest.$ac_objext conftest$ac_exeext
16260 if { (ac_try="$ac_link"
16261 case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_link") 2>conftest.er1
16267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
16273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; } &&
16283 { ac_try='test -s conftest$ac_exeext'
16284 { (case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_try") 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 eval "$as_ac_var=yes"
16294 else
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 eval "$as_ac_var=no"
16301 rm -f core conftest.err conftest.$ac_objext \
16302 conftest$ac_exeext conftest.$ac_ext
16304 ac_res=`eval echo '${'$as_ac_var'}'`
16305 { echo "$as_me:$LINENO: result: $ac_res" >&5
16306 echo "${ECHO_T}$ac_res" >&6; }
16307 if test `eval echo '${'$as_ac_var'}'` = yes; then
16308 cat >>confdefs.h <<_ACEOF
16309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16310 _ACEOF
16313 done
16315 LIBS="$ac_wine_check_funcs_save_LIBS"
16316 else
16317 LIBEXT="a"
16320 if test "$LIBEXT" = "so"
16321 then
16322 DLLFLAGS="$DLLFLAGS -fPIC"
16323 DLLEXT=".so"
16324 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
16325 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
16326 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16328 else
16329 ac_wine_try_cflags_saved=$CFLAGS
16330 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
16331 cat >conftest.$ac_ext <<_ACEOF
16332 void myfunc() {}
16333 _ACEOF
16334 rm -f conftest.$ac_objext conftest$ac_exeext
16335 if { (ac_try="$ac_link"
16336 case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_link") 2>conftest.er1
16342 ac_status=$?
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16349 { (case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16352 esac
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_try") 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest$ac_exeext'
16359 { (case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16362 esac
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_try") 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 ac_cv_c_dll_gnuelf="yes"
16369 else
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 ac_cv_c_dll_gnuelf="no"
16376 rm -f core conftest.err conftest.$ac_objext \
16377 conftest$ac_exeext conftest.$ac_ext
16378 CFLAGS=$ac_wine_try_cflags_saved
16380 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
16381 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
16382 if test "$ac_cv_c_dll_gnuelf" = "yes"
16383 then
16384 LDSHARED="\$(CC) -shared"
16385 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
16386 { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5
16387 echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; }
16388 if test "${ac_cv_c_sonames+set}" = set; then
16389 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391 ac_wine_try_cflags_saved=$CFLAGS
16392 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16401 main ()
16405 return 0;
16407 _ACEOF
16408 rm -f conftest.$ac_objext conftest$ac_exeext
16409 if { (ac_try="$ac_link"
16410 case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_link") 2>conftest.er1
16416 ac_status=$?
16417 grep -v '^ *+' conftest.er1 >conftest.err
16418 rm -f conftest.er1
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } &&
16422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest$ac_exeext'
16433 { (case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16436 esac
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_try") 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442 ac_cv_c_sonames="yes"
16443 else
16444 echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16447 ac_cv_c_sonames="no"
16450 rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16452 CFLAGS=$ac_wine_try_cflags_saved
16454 { echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5
16455 echo "${ECHO_T}$ac_cv_c_sonames" >&6; }
16456 if test "$ac_cv_c_sonames" = "yes"
16457 then
16458 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
16459 else
16460 { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5
16461 echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; }
16462 if test "${ac_cv_c_h_sonames+set}" = set; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 else
16465 ac_wine_try_cflags_saved=$CFLAGS
16466 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
16467 cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h. */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16475 main ()
16479 return 0;
16481 _ACEOF
16482 rm -f conftest.$ac_objext conftest$ac_exeext
16483 if { (ac_try="$ac_link"
16484 case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16487 esac
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_link") 2>conftest.er1
16490 ac_status=$?
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16497 { (case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16500 esac
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_try") 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest$ac_exeext'
16507 { (case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16510 esac
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_try") 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16516 ac_cv_c_h_sonames="yes"
16517 else
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16521 ac_cv_c_h_sonames="no"
16524 rm -f core conftest.err conftest.$ac_objext \
16525 conftest$ac_exeext conftest.$ac_ext
16526 CFLAGS=$ac_wine_try_cflags_saved
16528 { echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5
16529 echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; }
16530 if test "$ac_cv_c_h_sonames" = "yes"
16531 then
16532 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
16536 { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
16537 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
16538 if test "${ac_cv_c_dll_zdefs+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 else
16541 ac_wine_try_cflags_saved=$CFLAGS
16542 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16551 main ()
16555 return 0;
16557 _ACEOF
16558 rm -f conftest.$ac_objext conftest$ac_exeext
16559 if { (ac_try="$ac_link"
16560 case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16563 esac
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_link") 2>conftest.er1
16566 ac_status=$?
16567 grep -v '^ *+' conftest.er1 >conftest.err
16568 rm -f conftest.er1
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } &&
16572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16573 { (case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_try") 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; } &&
16582 { ac_try='test -s conftest$ac_exeext'
16583 { (case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16586 esac
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_try") 2>&5
16589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 ac_cv_c_dll_zdefs="yes"
16593 else
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16597 ac_cv_c_dll_zdefs="no"
16600 rm -f core conftest.err conftest.$ac_objext \
16601 conftest$ac_exeext conftest.$ac_ext
16602 CFLAGS=$ac_wine_try_cflags_saved
16604 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
16605 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
16606 if test "$ac_cv_c_dll_zdefs" = "yes"
16607 then
16608 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
16611 { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
16612 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
16613 if test "${ac_cv_c_dll_init_fini+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616 ac_wine_try_cflags_saved=$CFLAGS
16617 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
16618 cat >conftest.$ac_ext <<_ACEOF
16619 /* confdefs.h. */
16620 _ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16626 main ()
16630 return 0;
16632 _ACEOF
16633 rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (ac_try="$ac_link"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_link") 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest$ac_exeext'
16658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661 esac
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 ac_cv_c_dll_init_fini="yes"
16668 else
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_cv_c_dll_init_fini="no"
16675 rm -f core conftest.err conftest.$ac_objext \
16676 conftest$ac_exeext conftest.$ac_ext
16677 CFLAGS=$ac_wine_try_cflags_saved
16679 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
16680 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
16681 if test "$ac_cv_c_dll_init_fini" = "yes"
16682 then
16683 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
16686 { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
16687 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
16688 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
16689 echo $ECHO_N "(cached) $ECHO_C" >&6
16690 else
16691 echo '{ global: *; };' >conftest.map
16692 ac_wine_try_cflags_saved=$CFLAGS
16693 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
16694 cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h. */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16702 main ()
16706 return 0;
16708 _ACEOF
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (ac_try="$ac_link"
16711 case "(($ac_try" in
16712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16714 esac
16715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716 (eval "$ac_link") 2>conftest.er1
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
16723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16724 { (case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16727 esac
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_try") 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest$ac_exeext'
16734 { (case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_try") 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_cv_c_ld_version_scripts="yes"
16744 else
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 ac_cv_c_ld_version_scripts="no"
16751 rm -f core conftest.err conftest.$ac_objext \
16752 conftest$ac_exeext conftest.$ac_ext
16753 CFLAGS=$ac_wine_try_cflags_saved
16754 rm -f conftest.map
16756 { echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
16757 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
16758 if test "$ac_cv_c_ld_version_scripts" = "yes"
16759 then
16760 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
16763 { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
16764 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
16765 if test "${ac_cv_c_export_dynamic+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768 ac_wine_try_cflags_saved=$CFLAGS
16769 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
16770 cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h. */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16778 main ()
16782 return 0;
16784 _ACEOF
16785 rm -f conftest.$ac_objext conftest$ac_exeext
16786 if { (ac_try="$ac_link"
16787 case "(($ac_try" in
16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16790 esac
16791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16792 (eval "$ac_link") 2>conftest.er1
16793 ac_status=$?
16794 grep -v '^ *+' conftest.er1 >conftest.err
16795 rm -f conftest.er1
16796 cat conftest.err >&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } &&
16799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16800 { (case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_try") 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 ac_cv_c_export_dynamic="yes"
16820 else
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16824 ac_cv_c_export_dynamic="no"
16827 rm -f core conftest.err conftest.$ac_objext \
16828 conftest$ac_exeext conftest.$ac_ext
16829 CFLAGS=$ac_wine_try_cflags_saved
16831 { echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
16832 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
16833 if test "$ac_cv_c_export_dynamic" = "yes"
16834 then
16835 LDEXECFLAGS="-Wl,--export-dynamic"
16839 { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
16840 echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
16841 if test "${ac_cv_ld_rpath+set}" = set; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16843 else
16844 ac_wine_try_cflags_saved=$CFLAGS
16845 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
16846 cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h. */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16854 main ()
16858 return 0;
16860 _ACEOF
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (ac_try="$ac_link"
16863 case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866 esac
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_link") 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; } &&
16885 { ac_try='test -s conftest$ac_exeext'
16886 { (case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889 esac
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_try") 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 ac_cv_ld_rpath="yes"
16896 else
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ac_cv_ld_rpath="no"
16903 rm -f core conftest.err conftest.$ac_objext \
16904 conftest$ac_exeext conftest.$ac_ext
16905 CFLAGS=$ac_wine_try_cflags_saved
16907 { echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
16908 echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
16909 if test "$ac_cv_ld_rpath" = "yes"
16910 then
16911 LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
16913 LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
16917 case $host_cpu in
16918 *i[3456789]86* | x86_64)
16919 { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
16920 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
16921 if test "${ac_cv_ld_reloc_exec+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 else
16924 ac_wine_try_cflags_saved=$CFLAGS
16925 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
16926 cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h. */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16934 main ()
16938 return 0;
16940 _ACEOF
16941 rm -f conftest.$ac_objext conftest$ac_exeext
16942 if { (ac_try="$ac_link"
16943 case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_link") 2>conftest.er1
16949 ac_status=$?
16950 grep -v '^ *+' conftest.er1 >conftest.err
16951 rm -f conftest.er1
16952 cat conftest.err >&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
16955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; } &&
16965 { ac_try='test -s conftest$ac_exeext'
16966 { (case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16969 esac
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_try") 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_cv_ld_reloc_exec="yes"
16976 else
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_cv_ld_reloc_exec="no"
16983 rm -f core conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16985 CFLAGS=$ac_wine_try_cflags_saved
16987 { echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
16988 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
16989 if test "$ac_cv_ld_reloc_exec" = "yes"
16990 then
16991 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
16994 esac
16996 else
16997 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16998 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
16999 if test "${ac_cv_c_dll_unixware+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002 ac_wine_try_cflags_saved=$CFLAGS
17003 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
17004 cat >conftest.$ac_ext <<_ACEOF
17005 void myfunc() {}
17006 _ACEOF
17007 rm -f conftest.$ac_objext conftest$ac_exeext
17008 if { (ac_try="$ac_link"
17009 case "(($ac_try" in
17010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011 *) ac_try_echo=$ac_try;;
17012 esac
17013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014 (eval "$ac_link") 2>conftest.er1
17015 ac_status=$?
17016 grep -v '^ *+' conftest.er1 >conftest.err
17017 rm -f conftest.er1
17018 cat conftest.err >&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } &&
17021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17022 { (case "(($ac_try" in
17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024 *) ac_try_echo=$ac_try;;
17025 esac
17026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027 (eval "$ac_try") 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest$ac_exeext'
17032 { (case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17035 esac
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_try") 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 ac_cv_c_dll_unixware="yes"
17042 else
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17046 ac_cv_c_dll_unixware="no"
17049 rm -f core conftest.err conftest.$ac_objext \
17050 conftest$ac_exeext conftest.$ac_ext
17051 CFLAGS=$ac_wine_try_cflags_saved
17053 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
17054 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
17055 if test "$ac_cv_c_dll_unixware" = "yes"
17056 then
17057 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
17058 LDDLLFLAGS="-Wl,-G,-B,symbolic"
17060 else
17061 { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
17062 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; }
17063 if test "${ac_cv_c_dll_macho+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17065 else
17066 ac_wine_try_cflags_saved=$CFLAGS
17067 CFLAGS="$CFLAGS -bundle"
17068 cat >conftest.$ac_ext <<_ACEOF
17069 void myfunc() {}
17070 _ACEOF
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (ac_try="$ac_link"
17073 case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17076 esac
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
17079 ac_status=$?
17080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest$ac_exeext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_c_dll_macho="yes"
17106 else
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 ac_cv_c_dll_macho="no"
17113 rm -f core conftest.err conftest.$ac_objext \
17114 conftest$ac_exeext conftest.$ac_ext
17115 CFLAGS=$ac_wine_try_cflags_saved
17117 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
17118 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
17119 if test "$ac_cv_c_dll_macho" = "yes"
17120 then
17121 LIBEXT="dylib"
17122 LDDLLFLAGS="-bundle"
17123 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)"
17124 STRIP="$STRIP -u -r"
17125 COREFOUNDATIONLIB="-framework CoreFoundation"
17127 IOKITLIB="-framework IOKit -framework CoreFoundation"
17129 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7ffe0000"
17131 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
17132 then
17133 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
17136 case $host_cpu in
17137 *powerpc*)
17138 CFLAGS="$CFLAGS -ffixed-r13"
17139 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
17141 esac
17143 else
17144 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
17145 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
17146 if test "${ac_cv_c_dll_hpux+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 else
17149 ac_wine_try_cflags_saved=$CFLAGS
17150 CFLAGS="$CFLAGS -shared"
17151 cat >conftest.$ac_ext <<_ACEOF
17152 void myfunc() {}
17153 _ACEOF
17154 rm -f conftest.$ac_objext conftest$ac_exeext
17155 if { (ac_try="$ac_link"
17156 case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17159 esac
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_link") 2>conftest.er1
17162 ac_status=$?
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
17168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172 esac
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; } &&
17178 { ac_try='test -s conftest$ac_exeext'
17179 { (case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17182 esac
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_try") 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 ac_cv_c_dll_hpux="yes"
17189 else
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_cv_c_dll_hpux="no"
17196 rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17198 CFLAGS=$ac_wine_try_cflags_saved
17200 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
17201 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
17202 if test "$ac_cv_c_dll_hpux" = "yes"
17203 then
17204 LIBEXT="sl"
17205 DLLEXT=".sl"
17206 LDDLLFLAGS="-shared -fPIC"
17207 LDSHARED="\$(CC) -shared"
17214 CROSSTEST=""
17216 if test "$cross_compiling" = "no"
17217 then
17218 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
17220 # Extract the first word of "$ac_prog", so it can be a program name with args.
17221 set dummy $ac_prog; ac_word=$2
17222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17224 if test "${ac_cv_prog_CROSSCC+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227 if test -n "$CROSSCC"; then
17228 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
17229 else
17230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17231 for as_dir in $PATH
17233 IFS=$as_save_IFS
17234 test -z "$as_dir" && as_dir=.
17235 for ac_exec_ext in '' $ac_executable_extensions; do
17236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17237 ac_cv_prog_CROSSCC="$ac_prog"
17238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17239 break 2
17241 done
17242 done
17243 IFS=$as_save_IFS
17247 CROSSCC=$ac_cv_prog_CROSSCC
17248 if test -n "$CROSSCC"; then
17249 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
17250 echo "${ECHO_T}$CROSSCC" >&6; }
17251 else
17252 { echo "$as_me:$LINENO: result: no" >&5
17253 echo "${ECHO_T}no" >&6; }
17257 test -n "$CROSSCC" && break
17258 done
17259 test -n "$CROSSCC" || CROSSCC="false"
17261 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
17263 # Extract the first word of "$ac_prog", so it can be a program name with args.
17264 set dummy $ac_prog; ac_word=$2
17265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17267 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 else
17270 if test -n "$DLLTOOL"; then
17271 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17272 else
17273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17274 for as_dir in $PATH
17276 IFS=$as_save_IFS
17277 test -z "$as_dir" && as_dir=.
17278 for ac_exec_ext in '' $ac_executable_extensions; do
17279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17280 ac_cv_prog_DLLTOOL="$ac_prog"
17281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17282 break 2
17284 done
17285 done
17286 IFS=$as_save_IFS
17290 DLLTOOL=$ac_cv_prog_DLLTOOL
17291 if test -n "$DLLTOOL"; then
17292 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17293 echo "${ECHO_T}$DLLTOOL" >&6; }
17294 else
17295 { echo "$as_me:$LINENO: result: no" >&5
17296 echo "${ECHO_T}no" >&6; }
17300 test -n "$DLLTOOL" && break
17301 done
17302 test -n "$DLLTOOL" || DLLTOOL="false"
17304 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
17306 # Extract the first word of "$ac_prog", so it can be a program name with args.
17307 set dummy $ac_prog; ac_word=$2
17308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17310 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313 if test -n "$CROSSWINDRES"; then
17314 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
17315 else
17316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17317 for as_dir in $PATH
17319 IFS=$as_save_IFS
17320 test -z "$as_dir" && as_dir=.
17321 for ac_exec_ext in '' $ac_executable_extensions; do
17322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17323 ac_cv_prog_CROSSWINDRES="$ac_prog"
17324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17325 break 2
17327 done
17328 done
17329 IFS=$as_save_IFS
17333 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
17334 if test -n "$CROSSWINDRES"; then
17335 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
17336 echo "${ECHO_T}$CROSSWINDRES" >&6; }
17337 else
17338 { echo "$as_me:$LINENO: result: no" >&5
17339 echo "${ECHO_T}no" >&6; }
17343 test -n "$CROSSWINDRES" && break
17344 done
17345 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
17347 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
17350 esac
17352 if test "$LIBEXT" = "a"; then
17353 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
17354 It is currently not possible to build Wine without shared library
17355 (.so) support to allow transparent switch between .so and .dll files.
17356 If you are using Linux, you will need a newer binutils.
17357 " >&5
17358 echo "$as_me: error: could not find a way to build shared libraries.
17359 It is currently not possible to build Wine without shared library
17360 (.so) support to allow transparent switch between .so and .dll files.
17361 If you are using Linux, you will need a newer binutils.
17362 " >&2;}
17363 { (exit 1); exit 1; }; }
17366 case $build_os in
17367 cygwin*|mingw32*)
17368 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
17370 darwin*|macosx*)
17371 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
17374 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
17376 esac
17378 case $host_os in
17379 mingw32*)
17380 CRTLIBS="-lmsvcrt"
17382 SOCKETLIBS="-lws2_32"
17385 esac
17387 MAIN_BINARY="wine-pthread"
17388 case $host_cpu in
17389 *i[3456789]86*)
17390 case $host_os in
17391 linux* | k*bsd*-gnu)
17392 MAIN_BINARY="wine-glibc"
17394 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
17396 esac
17398 esac
17401 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
17402 then
17403 # Extract the first word of "ldd", so it can be a program name with args.
17404 set dummy ldd; ac_word=$2
17405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17407 if test "${ac_cv_path_LDD+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410 case $LDD in
17411 [\\/]* | ?:[\\/]*)
17412 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17416 as_dummy="/sbin:/usr/sbin:$PATH"
17417 for as_dir in $as_dummy
17419 IFS=$as_save_IFS
17420 test -z "$as_dir" && as_dir=.
17421 for ac_exec_ext in '' $ac_executable_extensions; do
17422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17423 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17425 break 2
17427 done
17428 done
17429 IFS=$as_save_IFS
17431 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
17433 esac
17435 LDD=$ac_cv_path_LDD
17436 if test -n "$LDD"; then
17437 { echo "$as_me:$LINENO: result: $LDD" >&5
17438 echo "${ECHO_T}$LDD" >&6; }
17439 else
17440 { echo "$as_me:$LINENO: result: no" >&5
17441 echo "${ECHO_T}no" >&6; }
17445 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
17446 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
17447 if test "${ac_cv_lib_soname_X11+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 else
17450 ac_get_soname_save_LIBS=$LIBS
17451 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
17452 cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h. */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17459 /* Override any GCC internal prototype to avoid an error.
17460 Use char because int might match the return type of a GCC
17461 builtin and then its argument prototype would still apply. */
17462 #ifdef __cplusplus
17463 extern "C"
17464 #endif
17465 char XCreateWindow ();
17467 main ()
17469 return XCreateWindow ();
17471 return 0;
17473 _ACEOF
17474 rm -f conftest.$ac_objext conftest$ac_exeext
17475 if { (ac_try="$ac_link"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479 esac
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_link") 2>conftest.er1
17482 ac_status=$?
17483 grep -v '^ *+' conftest.er1 >conftest.err
17484 rm -f conftest.er1
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_try") 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17509 if test "x$ac_cv_lib_soname_X11" = "x"
17510 then
17511 ac_cv_lib_soname_X11="libX11.$LIBEXT"
17513 else
17514 echo "$as_me: failed program was:" >&5
17515 sed 's/^/| /' conftest.$ac_ext >&5
17517 ac_cv_lib_soname_X11="libX11.$LIBEXT"
17520 rm -f core conftest.err conftest.$ac_objext \
17521 conftest$ac_exeext conftest.$ac_ext
17522 LIBS=$ac_get_soname_save_LIBS
17524 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
17525 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
17526 if test "${ac_cv_lib_soname_X11+set}" = set; then
17528 cat >>confdefs.h <<_ACEOF
17529 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
17530 _ACEOF
17534 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
17535 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
17536 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539 ac_get_soname_save_LIBS=$LIBS
17540 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h. */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17551 #ifdef __cplusplus
17552 extern "C"
17553 #endif
17554 char XextCreateExtension ();
17556 main ()
17558 return XextCreateExtension ();
17560 return 0;
17562 _ACEOF
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (ac_try="$ac_link"
17565 case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568 esac
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_link") 2>conftest.er1
17571 ac_status=$?
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
17577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest$ac_exeext'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591 esac
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17598 if test "x$ac_cv_lib_soname_Xext" = "x"
17599 then
17600 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17602 else
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17609 rm -f core conftest.err conftest.$ac_objext \
17610 conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_get_soname_save_LIBS
17613 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
17614 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
17615 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17617 cat >>confdefs.h <<_ACEOF
17618 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
17619 _ACEOF
17623 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
17624 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
17625 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628 ac_get_soname_save_LIBS=$LIBS
17629 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17630 cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h. */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17637 /* Override any GCC internal prototype to avoid an error.
17638 Use char because int might match the return type of a GCC
17639 builtin and then its argument prototype would still apply. */
17640 #ifdef __cplusplus
17641 extern "C"
17642 #endif
17643 char XOpenDevice ();
17645 main ()
17647 return XOpenDevice ();
17649 return 0;
17651 _ACEOF
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (ac_try="$ac_link"
17654 case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17657 esac
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659 (eval "$ac_link") 2>conftest.er1
17660 ac_status=$?
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
17666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17667 { (case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17670 esac
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_try") 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest$ac_exeext'
17677 { (case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17680 esac
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_try") 2>&5
17683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17687 if test "x$ac_cv_lib_soname_Xi" = "x"
17688 then
17689 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17698 rm -f core conftest.err conftest.$ac_objext \
17699 conftest$ac_exeext conftest.$ac_ext
17700 LIBS=$ac_get_soname_save_LIBS
17702 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
17703 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
17704 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17706 cat >>confdefs.h <<_ACEOF
17707 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
17708 _ACEOF
17712 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
17713 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
17714 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717 ac_get_soname_save_LIBS=$LIBS
17718 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17719 cat >conftest.$ac_ext <<_ACEOF
17720 /* confdefs.h. */
17721 _ACEOF
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17726 /* Override any GCC internal prototype to avoid an error.
17727 Use char because int might match the return type of a GCC
17728 builtin and then its argument prototype would still apply. */
17729 #ifdef __cplusplus
17730 extern "C"
17731 #endif
17732 char XRenderQueryExtension ();
17734 main ()
17736 return XRenderQueryExtension ();
17738 return 0;
17740 _ACEOF
17741 rm -f conftest.$ac_objext conftest$ac_exeext
17742 if { (ac_try="$ac_link"
17743 case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_link") 2>conftest.er1
17749 ac_status=$?
17750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17759 esac
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest$ac_exeext'
17766 { (case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17769 esac
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_try") 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17776 if test "x$ac_cv_lib_soname_Xrender" = "x"
17777 then
17778 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17780 else
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17787 rm -f core conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17789 LIBS=$ac_get_soname_save_LIBS
17791 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
17792 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
17793 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17795 cat >>confdefs.h <<_ACEOF
17796 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
17797 _ACEOF
17801 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
17802 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
17803 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 else
17806 ac_get_soname_save_LIBS=$LIBS
17807 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17808 cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h. */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17815 /* Override any GCC internal prototype to avoid an error.
17816 Use char because int might match the return type of a GCC
17817 builtin and then its argument prototype would still apply. */
17818 #ifdef __cplusplus
17819 extern "C"
17820 #endif
17821 char XRRQueryExtension ();
17823 main ()
17825 return XRRQueryExtension ();
17827 return 0;
17829 _ACEOF
17830 rm -f conftest.$ac_objext conftest$ac_exeext
17831 if { (ac_try="$ac_link"
17832 case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17835 esac
17836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837 (eval "$ac_link") 2>conftest.er1
17838 ac_status=$?
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17845 { (case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_try") 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest$ac_exeext'
17855 { (case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17858 esac
17859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860 (eval "$ac_try") 2>&5
17861 ac_status=$?
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17864 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17865 if test "x$ac_cv_lib_soname_Xrandr" = "x"
17866 then
17867 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17869 else
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17873 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17876 rm -f core conftest.err conftest.$ac_objext \
17877 conftest$ac_exeext conftest.$ac_ext
17878 LIBS=$ac_get_soname_save_LIBS
17880 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
17881 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
17882 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17884 cat >>confdefs.h <<_ACEOF
17885 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
17886 _ACEOF
17890 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
17891 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
17892 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 else
17895 ac_get_soname_save_LIBS=$LIBS
17896 LIBS="-lfreetype $X_LIBS $LIBS"
17897 cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h. */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17904 /* Override any GCC internal prototype to avoid an error.
17905 Use char because int might match the return type of a GCC
17906 builtin and then its argument prototype would still apply. */
17907 #ifdef __cplusplus
17908 extern "C"
17909 #endif
17910 char FT_Init_FreeType ();
17912 main ()
17914 return FT_Init_FreeType ();
17916 return 0;
17918 _ACEOF
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (ac_try="$ac_link"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17924 esac
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_link") 2>conftest.er1
17927 ac_status=$?
17928 grep -v '^ *+' conftest.er1 >conftest.err
17929 rm -f conftest.er1
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } &&
17933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17934 { (case "(($ac_try" in
17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936 *) ac_try_echo=$ac_try;;
17937 esac
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939 (eval "$ac_try") 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest$ac_exeext'
17944 { (case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17947 esac
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_try") 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17954 if test "x$ac_cv_lib_soname_freetype" = "x"
17955 then
17956 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17958 else
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17965 rm -f core conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 LIBS=$ac_get_soname_save_LIBS
17969 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
17970 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
17971 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17973 cat >>confdefs.h <<_ACEOF
17974 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
17975 _ACEOF
17979 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17980 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
17981 if test "${ac_cv_lib_soname_GL+set}" = set; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 else
17984 ac_get_soname_save_LIBS=$LIBS
17985 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
17986 cat >conftest.$ac_ext <<_ACEOF
17987 /* confdefs.h. */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17993 /* Override any GCC internal prototype to avoid an error.
17994 Use char because int might match the return type of a GCC
17995 builtin and then its argument prototype would still apply. */
17996 #ifdef __cplusplus
17997 extern "C"
17998 #endif
17999 char glXQueryExtension ();
18001 main ()
18003 return glXQueryExtension ();
18005 return 0;
18007 _ACEOF
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (ac_try="$ac_link"
18010 case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18013 esac
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_link") 2>conftest.er1
18016 ac_status=$?
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18023 { (case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18026 esac
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_try") 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; } &&
18032 { ac_try='test -s conftest$ac_exeext'
18033 { (case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_try") 2>&5
18039 ac_status=$?
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
18042 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18043 if test "x$ac_cv_lib_soname_GL" = "x"
18044 then
18045 ac_cv_lib_soname_GL="libGL.$LIBEXT"
18047 else
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18051 ac_cv_lib_soname_GL="libGL.$LIBEXT"
18054 rm -f core conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056 LIBS=$ac_get_soname_save_LIBS
18058 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
18059 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
18060 if test "${ac_cv_lib_soname_GL+set}" = set; then
18062 cat >>confdefs.h <<_ACEOF
18063 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
18064 _ACEOF
18068 { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
18069 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
18070 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 else
18073 ac_get_soname_save_LIBS=$LIBS
18074 LIBS="-ldbus-1 $LIBS"
18075 cat >conftest.$ac_ext <<_ACEOF
18076 /* confdefs.h. */
18077 _ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h. */
18082 /* Override any GCC internal prototype to avoid an error.
18083 Use char because int might match the return type of a GCC
18084 builtin and then its argument prototype would still apply. */
18085 #ifdef __cplusplus
18086 extern "C"
18087 #endif
18088 char dbus_error_init ();
18090 main ()
18092 return dbus_error_init ();
18094 return 0;
18096 _ACEOF
18097 rm -f conftest.$ac_objext conftest$ac_exeext
18098 if { (ac_try="$ac_link"
18099 case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18102 esac
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_link") 2>conftest.er1
18105 ac_status=$?
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
18111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115 esac
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest$ac_exeext'
18122 { (case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_try") 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.$LIBEXT | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18132 if test "x$ac_cv_lib_soname_dbus_1" = "x"
18133 then
18134 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18136 else
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18143 rm -f core conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18145 LIBS=$ac_get_soname_save_LIBS
18147 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
18148 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
18149 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18151 cat >>confdefs.h <<_ACEOF
18152 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
18153 _ACEOF
18157 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
18158 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
18159 if test "${ac_cv_lib_soname_hal+set}" = set; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18161 else
18162 ac_get_soname_save_LIBS=$LIBS
18163 LIBS="-lhal $LIBS"
18164 cat >conftest.$ac_ext <<_ACEOF
18165 /* confdefs.h. */
18166 _ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18171 /* Override any GCC internal prototype to avoid an error.
18172 Use char because int might match the return type of a GCC
18173 builtin and then its argument prototype would still apply. */
18174 #ifdef __cplusplus
18175 extern "C"
18176 #endif
18177 char libhal_ctx_new ();
18179 main ()
18181 return libhal_ctx_new ();
18183 return 0;
18185 _ACEOF
18186 rm -f conftest.$ac_objext conftest$ac_exeext
18187 if { (ac_try="$ac_link"
18188 case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18191 esac
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_link") 2>conftest.er1
18194 ac_status=$?
18195 grep -v '^ *+' conftest.er1 >conftest.err
18196 rm -f conftest.er1
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } &&
18200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18201 { (case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18204 esac
18205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_try") 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest$ac_exeext'
18211 { (case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214 esac
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_try") 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18221 if test "x$ac_cv_lib_soname_hal" = "x"
18222 then
18223 ac_cv_lib_soname_hal="libhal.$LIBEXT"
18225 else
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 ac_cv_lib_soname_hal="libhal.$LIBEXT"
18232 rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_get_soname_save_LIBS
18236 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
18237 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
18238 if test "${ac_cv_lib_soname_hal+set}" = set; then
18240 cat >>confdefs.h <<_ACEOF
18241 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
18242 _ACEOF
18246 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
18247 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
18248 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251 ac_get_soname_save_LIBS=$LIBS
18252 LIBS="-ltxc_dxtn $LIBS"
18253 cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h. */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18260 /* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18263 #ifdef __cplusplus
18264 extern "C"
18265 #endif
18266 char fetch_2d_texel_rgba_dxt1 ();
18268 main ()
18270 return fetch_2d_texel_rgba_dxt1 ();
18272 return 0;
18274 _ACEOF
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_link") 2>conftest.er1
18283 ac_status=$?
18284 grep -v '^ *+' conftest.er1 >conftest.err
18285 rm -f conftest.er1
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } &&
18289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293 esac
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest$ac_exeext'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18303 esac
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18310 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
18311 then
18312 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18314 else
18315 echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18318 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18321 rm -f core conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_get_soname_save_LIBS
18325 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
18326 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
18327 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18329 cat >>confdefs.h <<_ACEOF
18330 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
18331 _ACEOF
18335 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
18336 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
18337 if test "${ac_cv_lib_soname_cups+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340 ac_get_soname_save_LIBS=$LIBS
18341 LIBS="-lcups $LIBS"
18342 cat >conftest.$ac_ext <<_ACEOF
18343 /* confdefs.h. */
18344 _ACEOF
18345 cat confdefs.h >>conftest.$ac_ext
18346 cat >>conftest.$ac_ext <<_ACEOF
18347 /* end confdefs.h. */
18349 /* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
18352 #ifdef __cplusplus
18353 extern "C"
18354 #endif
18355 char cupsGetDefault ();
18357 main ()
18359 return cupsGetDefault ();
18361 return 0;
18363 _ACEOF
18364 rm -f conftest.$ac_objext conftest$ac_exeext
18365 if { (ac_try="$ac_link"
18366 case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18369 esac
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371 (eval "$ac_link") 2>conftest.er1
18372 ac_status=$?
18373 grep -v '^ *+' conftest.er1 >conftest.err
18374 rm -f conftest.er1
18375 cat conftest.err >&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
18378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18379 { (case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18382 esac
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_try") 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; } &&
18388 { ac_try='test -s conftest$ac_exeext'
18389 { (case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392 esac
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_try") 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18399 if test "x$ac_cv_lib_soname_cups" = "x"
18400 then
18401 ac_cv_lib_soname_cups="libcups.$LIBEXT"
18403 else
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18407 ac_cv_lib_soname_cups="libcups.$LIBEXT"
18410 rm -f core conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext conftest.$ac_ext
18412 LIBS=$ac_get_soname_save_LIBS
18414 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
18415 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
18416 if test "${ac_cv_lib_soname_cups+set}" = set; then
18418 cat >>confdefs.h <<_ACEOF
18419 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
18420 _ACEOF
18424 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
18425 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
18426 if test "${ac_cv_lib_soname_jack+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18428 else
18429 ac_get_soname_save_LIBS=$LIBS
18430 LIBS="-ljack $LIBS"
18431 cat >conftest.$ac_ext <<_ACEOF
18432 /* confdefs.h. */
18433 _ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h. */
18438 /* Override any GCC internal prototype to avoid an error.
18439 Use char because int might match the return type of a GCC
18440 builtin and then its argument prototype would still apply. */
18441 #ifdef __cplusplus
18442 extern "C"
18443 #endif
18444 char jack_client_new ();
18446 main ()
18448 return jack_client_new ();
18450 return 0;
18452 _ACEOF
18453 rm -f conftest.$ac_objext conftest$ac_exeext
18454 if { (ac_try="$ac_link"
18455 case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_link") 2>conftest.er1
18461 ac_status=$?
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
18467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18468 { (case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18471 esac
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_try") 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest$ac_exeext'
18478 { (case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18481 esac
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_try") 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18488 if test "x$ac_cv_lib_soname_jack" = "x"
18489 then
18490 ac_cv_lib_soname_jack="libjack.$LIBEXT"
18492 else
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18496 ac_cv_lib_soname_jack="libjack.$LIBEXT"
18499 rm -f core conftest.err conftest.$ac_objext \
18500 conftest$ac_exeext conftest.$ac_ext
18501 LIBS=$ac_get_soname_save_LIBS
18503 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
18504 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
18505 if test "${ac_cv_lib_soname_jack+set}" = set; then
18507 cat >>confdefs.h <<_ACEOF
18508 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
18509 _ACEOF
18513 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
18514 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
18515 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518 ac_get_soname_save_LIBS=$LIBS
18519 LIBS="-lfontconfig $LIBS"
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18527 /* Override any GCC internal prototype to avoid an error.
18528 Use char because int might match the return type of a GCC
18529 builtin and then its argument prototype would still apply. */
18530 #ifdef __cplusplus
18531 extern "C"
18532 #endif
18533 char FcInit ();
18535 main ()
18537 return FcInit ();
18539 return 0;
18541 _ACEOF
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (ac_try="$ac_link"
18544 case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18547 esac
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_link") 2>conftest.er1
18550 ac_status=$?
18551 grep -v '^ *+' conftest.er1 >conftest.err
18552 rm -f conftest.er1
18553 cat conftest.err >&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } &&
18556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18557 { (case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18560 esac
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_try") 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; } &&
18566 { ac_try='test -s conftest$ac_exeext'
18567 { (case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18570 esac
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_try") 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; }; then
18576 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18577 if test "x$ac_cv_lib_soname_fontconfig" = "x"
18578 then
18579 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18581 else
18582 echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18585 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18588 rm -f core conftest.err conftest.$ac_objext \
18589 conftest$ac_exeext conftest.$ac_ext
18590 LIBS=$ac_get_soname_save_LIBS
18592 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
18593 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
18594 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18596 cat >>confdefs.h <<_ACEOF
18597 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
18598 _ACEOF
18602 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
18603 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
18604 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18605 echo $ECHO_N "(cached) $ECHO_C" >&6
18606 else
18607 ac_get_soname_save_LIBS=$LIBS
18608 LIBS="-lssl $LIBS"
18609 cat >conftest.$ac_ext <<_ACEOF
18610 /* confdefs.h. */
18611 _ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h. */
18616 /* Override any GCC internal prototype to avoid an error.
18617 Use char because int might match the return type of a GCC
18618 builtin and then its argument prototype would still apply. */
18619 #ifdef __cplusplus
18620 extern "C"
18621 #endif
18622 char SSL_library_init ();
18624 main ()
18626 return SSL_library_init ();
18628 return 0;
18630 _ACEOF
18631 rm -f conftest.$ac_objext conftest$ac_exeext
18632 if { (ac_try="$ac_link"
18633 case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18636 esac
18637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638 (eval "$ac_link") 2>conftest.er1
18639 ac_status=$?
18640 grep -v '^ *+' conftest.er1 >conftest.err
18641 rm -f conftest.er1
18642 cat conftest.err >&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } &&
18645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18646 { (case "(($ac_try" in
18647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648 *) ac_try_echo=$ac_try;;
18649 esac
18650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651 (eval "$ac_try") 2>&5
18652 ac_status=$?
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; } &&
18655 { ac_try='test -s conftest$ac_exeext'
18656 { (case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18659 esac
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_try") 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18666 if test "x$ac_cv_lib_soname_ssl" = "x"
18667 then
18668 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18670 else
18671 echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18674 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18677 rm -f core conftest.err conftest.$ac_objext \
18678 conftest$ac_exeext conftest.$ac_ext
18679 LIBS=$ac_get_soname_save_LIBS
18681 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
18682 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
18683 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18685 cat >>confdefs.h <<_ACEOF
18686 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
18687 _ACEOF
18691 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
18692 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
18693 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695 else
18696 ac_get_soname_save_LIBS=$LIBS
18697 LIBS="-lcrypto $LIBS"
18698 cat >conftest.$ac_ext <<_ACEOF
18699 /* confdefs.h. */
18700 _ACEOF
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h. */
18705 /* Override any GCC internal prototype to avoid an error.
18706 Use char because int might match the return type of a GCC
18707 builtin and then its argument prototype would still apply. */
18708 #ifdef __cplusplus
18709 extern "C"
18710 #endif
18711 char BIO_new_socket ();
18713 main ()
18715 return BIO_new_socket ();
18717 return 0;
18719 _ACEOF
18720 rm -f conftest.$ac_objext conftest$ac_exeext
18721 if { (ac_try="$ac_link"
18722 case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18725 esac
18726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727 (eval "$ac_link") 2>conftest.er1
18728 ac_status=$?
18729 grep -v '^ *+' conftest.er1 >conftest.err
18730 rm -f conftest.er1
18731 cat conftest.err >&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
18734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18735 { (case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_try") 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; } &&
18744 { ac_try='test -s conftest$ac_exeext'
18745 { (case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_try") 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
18754 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18755 if test "x$ac_cv_lib_soname_crypto" = "x"
18756 then
18757 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18759 else
18760 echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18763 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18766 rm -f core conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18768 LIBS=$ac_get_soname_save_LIBS
18770 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
18771 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
18772 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18774 cat >>confdefs.h <<_ACEOF
18775 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
18776 _ACEOF
18780 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
18781 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
18782 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 else
18785 ac_get_soname_save_LIBS=$LIBS
18786 LIBS="-lncurses $LIBS"
18787 cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h. */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18794 /* Override any GCC internal prototype to avoid an error.
18795 Use char because int might match the return type of a GCC
18796 builtin and then its argument prototype would still apply. */
18797 #ifdef __cplusplus
18798 extern "C"
18799 #endif
18800 char waddch ();
18802 main ()
18804 return waddch ();
18806 return 0;
18808 _ACEOF
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (ac_try="$ac_link"
18811 case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18814 esac
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_link") 2>conftest.er1
18817 ac_status=$?
18818 grep -v '^ *+' conftest.er1 >conftest.err
18819 rm -f conftest.er1
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } &&
18823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18824 { (case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_try") 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; } &&
18833 { ac_try='test -s conftest$ac_exeext'
18834 { (case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18837 esac
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839 (eval "$ac_try") 2>&5
18840 ac_status=$?
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; }; then
18843 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18844 if test "x$ac_cv_lib_soname_ncurses" = "x"
18845 then
18846 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18848 else
18849 echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18852 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18855 rm -f core conftest.err conftest.$ac_objext \
18856 conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_get_soname_save_LIBS
18859 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
18860 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
18861 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18863 cat >>confdefs.h <<_ACEOF
18864 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
18865 _ACEOF
18869 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
18870 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
18871 if test "${ac_cv_lib_soname_curses+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874 ac_get_soname_save_LIBS=$LIBS
18875 LIBS="-lcurses $LIBS"
18876 cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h. */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18883 /* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18886 #ifdef __cplusplus
18887 extern "C"
18888 #endif
18889 char waddch ();
18891 main ()
18893 return waddch ();
18895 return 0;
18897 _ACEOF
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18903 esac
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_link") 2>conftest.er1
18906 ac_status=$?
18907 grep -v '^ *+' conftest.er1 >conftest.err
18908 rm -f conftest.er1
18909 cat conftest.err >&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } &&
18912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18913 { (case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_try") 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest$ac_exeext'
18923 { (case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18926 esac
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_try") 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18932 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18933 if test "x$ac_cv_lib_soname_curses" = "x"
18934 then
18935 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18937 else
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18944 rm -f core conftest.err conftest.$ac_objext \
18945 conftest$ac_exeext conftest.$ac_ext
18946 LIBS=$ac_get_soname_save_LIBS
18948 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
18949 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
18950 if test "${ac_cv_lib_soname_curses+set}" = set; then
18952 cat >>confdefs.h <<_ACEOF
18953 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
18954 _ACEOF
18958 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
18959 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
18960 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963 ac_get_soname_save_LIBS=$LIBS
18964 LIBS="-ljpeg $LIBS"
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h. */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18972 /* Override any GCC internal prototype to avoid an error.
18973 Use char because int might match the return type of a GCC
18974 builtin and then its argument prototype would still apply. */
18975 #ifdef __cplusplus
18976 extern "C"
18977 #endif
18978 char jpeg_start_decompress ();
18980 main ()
18982 return jpeg_start_decompress ();
18984 return 0;
18986 _ACEOF
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if { (ac_try="$ac_link"
18989 case "(($ac_try" in
18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991 *) ac_try_echo=$ac_try;;
18992 esac
18993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994 (eval "$ac_link") 2>conftest.er1
18995 ac_status=$?
18996 grep -v '^ *+' conftest.er1 >conftest.err
18997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
19001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005 esac
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest$ac_exeext'
19012 { (case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_try") 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19022 if test "x$ac_cv_lib_soname_jpeg" = "x"
19023 then
19024 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
19026 else
19027 echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19030 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
19033 rm -f core conftest.err conftest.$ac_objext \
19034 conftest$ac_exeext conftest.$ac_ext
19035 LIBS=$ac_get_soname_save_LIBS
19037 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
19038 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
19039 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
19041 cat >>confdefs.h <<_ACEOF
19042 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
19043 _ACEOF
19047 { echo "$as_me:$LINENO: checking for -lungif soname" >&5
19048 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
19049 if test "${ac_cv_lib_soname_ungif+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052 ac_get_soname_save_LIBS=$LIBS
19053 LIBS="-lungif $LIBS"
19054 cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h. */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19061 /* Override any GCC internal prototype to avoid an error.
19062 Use char because int might match the return type of a GCC
19063 builtin and then its argument prototype would still apply. */
19064 #ifdef __cplusplus
19065 extern "C"
19066 #endif
19067 char DGifOpen ();
19069 main ()
19071 return DGifOpen ();
19073 return 0;
19075 _ACEOF
19076 rm -f conftest.$ac_objext conftest$ac_exeext
19077 if { (ac_try="$ac_link"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081 esac
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_link") 2>conftest.er1
19084 ac_status=$?
19085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
19090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19091 { (case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094 esac
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_try") 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest$ac_exeext'
19101 { (case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_try") 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; }; then
19110 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19111 if test "x$ac_cv_lib_soname_ungif" = "x"
19112 then
19113 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19115 else
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19119 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19122 rm -f core conftest.err conftest.$ac_objext \
19123 conftest$ac_exeext conftest.$ac_ext
19124 LIBS=$ac_get_soname_save_LIBS
19126 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
19127 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
19128 if test "${ac_cv_lib_soname_ungif+set}" = set; then
19130 cat >>confdefs.h <<_ACEOF
19131 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
19132 _ACEOF
19136 { echo "$as_me:$LINENO: checking for -lgif soname" >&5
19137 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
19138 if test "${ac_cv_lib_soname_gif+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 else
19141 ac_get_soname_save_LIBS=$LIBS
19142 LIBS="-lgif $LIBS"
19143 cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h. */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19150 /* Override any GCC internal prototype to avoid an error.
19151 Use char because int might match the return type of a GCC
19152 builtin and then its argument prototype would still apply. */
19153 #ifdef __cplusplus
19154 extern "C"
19155 #endif
19156 char DGifOpen ();
19158 main ()
19160 return DGifOpen ();
19162 return 0;
19164 _ACEOF
19165 rm -f conftest.$ac_objext conftest$ac_exeext
19166 if { (ac_try="$ac_link"
19167 case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19170 esac
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_link") 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19180 { (case "(($ac_try" in
19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182 *) ac_try_echo=$ac_try;;
19183 esac
19184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185 (eval "$ac_try") 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try='test -s conftest$ac_exeext'
19190 { (case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_try") 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19200 if test "x$ac_cv_lib_soname_gif" = "x"
19201 then
19202 ac_cv_lib_soname_gif="libgif.$LIBEXT"
19204 else
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 ac_cv_lib_soname_gif="libgif.$LIBEXT"
19211 rm -f core conftest.err conftest.$ac_objext \
19212 conftest$ac_exeext conftest.$ac_ext
19213 LIBS=$ac_get_soname_save_LIBS
19215 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
19216 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
19217 if test "${ac_cv_lib_soname_gif+set}" = set; then
19219 cat >>confdefs.h <<_ACEOF
19220 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
19221 _ACEOF
19225 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
19226 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
19227 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230 ac_get_soname_save_LIBS=$LIBS
19231 LIBS="-lcapi20 $LIBS"
19232 cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h. */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19239 /* Override any GCC internal prototype to avoid an error.
19240 Use char because int might match the return type of a GCC
19241 builtin and then its argument prototype would still apply. */
19242 #ifdef __cplusplus
19243 extern "C"
19244 #endif
19245 char capi20_isinstalled ();
19247 main ()
19249 return capi20_isinstalled ();
19251 return 0;
19253 _ACEOF
19254 rm -f conftest.$ac_objext conftest$ac_exeext
19255 if { (ac_try="$ac_link"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_link") 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19269 { (case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_try") 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; } &&
19278 { ac_try='test -s conftest$ac_exeext'
19279 { (case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19289 if test "x$ac_cv_lib_soname_capi20" = "x"
19290 then
19291 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19293 else
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19297 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19300 rm -f core conftest.err conftest.$ac_objext \
19301 conftest$ac_exeext conftest.$ac_ext
19302 LIBS=$ac_get_soname_save_LIBS
19304 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
19305 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
19306 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19308 cat >>confdefs.h <<_ACEOF
19309 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
19310 _ACEOF
19383 for ac_func in \
19384 _lwp_create \
19385 _lwp_self \
19386 _pclose \
19387 _popen \
19388 _snprintf \
19389 _spawnvp \
19390 _stricmp \
19391 _strnicmp \
19392 _vsnprintf \
19393 asctime_r \
19394 chsize \
19395 clone \
19396 epoll_create \
19397 ffs \
19398 finite \
19399 fork \
19400 fpclass \
19401 fstatfs \
19402 fstatvfs \
19403 ftruncate \
19404 futimes \
19405 futimesat \
19406 getaddrinfo \
19407 getnameinfo \
19408 getnetbyname \
19409 getopt_long \
19410 getpagesize \
19411 getprotobyname \
19412 getprotobynumber \
19413 getpwuid \
19414 getservbyport \
19415 gettid \
19416 gettimeofday \
19417 getuid \
19418 inet_network \
19419 lstat \
19420 memmove \
19421 mmap \
19422 pclose \
19423 popen \
19424 prctl \
19425 pread \
19426 pwrite \
19427 readlink \
19428 rfork \
19429 sched_yield \
19430 select \
19431 sendmsg \
19432 setrlimit \
19433 settimeofday \
19434 sigaltstack \
19435 sigprocmask \
19436 snprintf \
19437 spawnvp \
19438 statfs \
19439 statvfs \
19440 strcasecmp \
19441 strerror \
19442 strncasecmp \
19443 tcgetattr \
19444 timegm \
19445 usleep \
19446 vsnprintf \
19447 wait4 \
19448 waitpid \
19451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457 cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h. */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19465 #define $ac_func innocuous_$ac_func
19467 /* System header to define __stub macros and hopefully few prototypes,
19468 which can conflict with char $ac_func (); below.
19469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19470 <limits.h> exists even on freestanding compilers. */
19472 #ifdef __STDC__
19473 # include <limits.h>
19474 #else
19475 # include <assert.h>
19476 #endif
19478 #undef $ac_func
19480 /* Override any GCC internal prototype to avoid an error.
19481 Use char because int might match the return type of a GCC
19482 builtin and then its argument prototype would still apply. */
19483 #ifdef __cplusplus
19484 extern "C"
19485 #endif
19486 char $ac_func ();
19487 /* The GNU C library defines this for functions which it implements
19488 to always fail with ENOSYS. Some functions are actually named
19489 something starting with __ and the normal name is an alias. */
19490 #if defined __stub_$ac_func || defined __stub___$ac_func
19491 choke me
19492 #endif
19495 main ()
19497 return $ac_func ();
19499 return 0;
19501 _ACEOF
19502 rm -f conftest.$ac_objext conftest$ac_exeext
19503 if { (ac_try="$ac_link"
19504 case "(($ac_try" in
19505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506 *) ac_try_echo=$ac_try;;
19507 esac
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509 (eval "$ac_link") 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } &&
19516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19517 { (case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_try") 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest$ac_exeext'
19527 { (case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_try") 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; }; then
19536 eval "$as_ac_var=yes"
19537 else
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19541 eval "$as_ac_var=no"
19544 rm -f core conftest.err conftest.$ac_objext \
19545 conftest$ac_exeext conftest.$ac_ext
19547 ac_res=`eval echo '${'$as_ac_var'}'`
19548 { echo "$as_me:$LINENO: result: $ac_res" >&5
19549 echo "${ECHO_T}$ac_res" >&6; }
19550 if test `eval echo '${'$as_ac_var'}'` = yes; then
19551 cat >>confdefs.h <<_ACEOF
19552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19553 _ACEOF
19556 done
19561 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19562 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19563 if test "${ac_cv_c_const+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 else
19566 cat >conftest.$ac_ext <<_ACEOF
19567 /* confdefs.h. */
19568 _ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h. */
19574 main ()
19576 /* FIXME: Include the comments suggested by Paul. */
19577 #ifndef __cplusplus
19578 /* Ultrix mips cc rejects this. */
19579 typedef int charset[2];
19580 const charset x;
19581 /* SunOS 4.1.1 cc rejects this. */
19582 char const *const *ccp;
19583 char **p;
19584 /* NEC SVR4.0.2 mips cc rejects this. */
19585 struct point {int x, y;};
19586 static struct point const zero = {0,0};
19587 /* AIX XL C 1.02.0.0 rejects this.
19588 It does not let you subtract one const X* pointer from another in
19589 an arm of an if-expression whose if-part is not a constant
19590 expression */
19591 const char *g = "string";
19592 ccp = &g + (g ? g-g : 0);
19593 /* HPUX 7.0 cc rejects these. */
19594 ++ccp;
19595 p = (char**) ccp;
19596 ccp = (char const *const *) p;
19597 { /* SCO 3.2v4 cc rejects this. */
19598 char *t;
19599 char const *s = 0 ? (char *) 0 : (char const *) 0;
19601 *t++ = 0;
19602 if (s) return 0;
19604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19605 int x[] = {25, 17};
19606 const int *foo = &x[0];
19607 ++foo;
19609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19610 typedef const int *iptr;
19611 iptr p = 0;
19612 ++p;
19614 { /* AIX XL C 1.02.0.0 rejects this saying
19615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19616 struct s { int j; const int *ap[3]; };
19617 struct s *b; b->j = 5;
19619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19620 const int foo = 10;
19621 if (!foo) return 0;
19623 return !x[0] && !zero.x;
19624 #endif
19627 return 0;
19629 _ACEOF
19630 rm -f conftest.$ac_objext
19631 if { (ac_try="$ac_compile"
19632 case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19635 esac
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_compile") 2>conftest.er1
19638 ac_status=$?
19639 grep -v '^ *+' conftest.er1 >conftest.err
19640 rm -f conftest.er1
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
19644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19645 { (case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_try") 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest.$ac_objext'
19655 { (case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_try") 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_cv_c_const=yes
19665 else
19666 echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19669 ac_cv_c_const=no
19672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19674 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19675 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19676 if test $ac_cv_c_const = no; then
19678 cat >>confdefs.h <<\_ACEOF
19679 #define const
19680 _ACEOF
19684 { echo "$as_me:$LINENO: checking for inline" >&5
19685 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19686 if test "${ac_cv_c_inline+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 else
19689 ac_cv_c_inline=no
19690 for ac_kw in inline __inline__ __inline; do
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 #ifndef __cplusplus
19698 typedef int foo_t;
19699 static $ac_kw foo_t static_foo () {return 0; }
19700 $ac_kw foo_t foo () {return 0; }
19701 #endif
19703 _ACEOF
19704 rm -f conftest.$ac_objext
19705 if { (ac_try="$ac_compile"
19706 case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19709 esac
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_compile") 2>conftest.er1
19712 ac_status=$?
19713 grep -v '^ *+' conftest.er1 >conftest.err
19714 rm -f conftest.er1
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
19718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19719 { (case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_try") 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; } &&
19728 { ac_try='test -s conftest.$ac_objext'
19729 { (case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_try") 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 ac_cv_c_inline=$ac_kw
19739 else
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 test "$ac_cv_c_inline" != no && break
19748 done
19751 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19752 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19755 case $ac_cv_c_inline in
19756 inline | yes) ;;
19758 case $ac_cv_c_inline in
19759 no) ac_val=;;
19760 *) ac_val=$ac_cv_c_inline;;
19761 esac
19762 cat >>confdefs.h <<_ACEOF
19763 #ifndef __cplusplus
19764 #define inline $ac_val
19765 #endif
19766 _ACEOF
19768 esac
19770 { echo "$as_me:$LINENO: checking for mode_t" >&5
19771 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
19772 if test "${ac_cv_type_mode_t+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775 cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h. */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 $ac_includes_default
19782 typedef mode_t ac__type_new_;
19784 main ()
19786 if ((ac__type_new_ *) 0)
19787 return 0;
19788 if (sizeof (ac__type_new_))
19789 return 0;
19791 return 0;
19793 _ACEOF
19794 rm -f conftest.$ac_objext
19795 if { (ac_try="$ac_compile"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_compile") 2>conftest.er1
19802 ac_status=$?
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19809 { (case "(($ac_try" in
19810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811 *) ac_try_echo=$ac_try;;
19812 esac
19813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814 (eval "$ac_try") 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest.$ac_objext'
19819 { (case "(($ac_try" in
19820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821 *) ac_try_echo=$ac_try;;
19822 esac
19823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19824 (eval "$ac_try") 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
19828 ac_cv_type_mode_t=yes
19829 else
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ac_cv_type_mode_t=no
19836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19838 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19839 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
19840 if test $ac_cv_type_mode_t = yes; then
19842 cat >>confdefs.h <<_ACEOF
19843 #define HAVE_MODE_T 1
19844 _ACEOF
19848 { echo "$as_me:$LINENO: checking for off_t" >&5
19849 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
19850 if test "${ac_cv_type_off_t+set}" = set; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19852 else
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h. */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 $ac_includes_default
19860 typedef off_t ac__type_new_;
19862 main ()
19864 if ((ac__type_new_ *) 0)
19865 return 0;
19866 if (sizeof (ac__type_new_))
19867 return 0;
19869 return 0;
19871 _ACEOF
19872 rm -f conftest.$ac_objext
19873 if { (ac_try="$ac_compile"
19874 case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19877 esac
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_compile") 2>conftest.er1
19880 ac_status=$?
19881 grep -v '^ *+' conftest.er1 >conftest.err
19882 rm -f conftest.er1
19883 cat conftest.err >&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19887 { (case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19890 esac
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_try") 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try='test -s conftest.$ac_objext'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 ac_cv_type_off_t=yes
19907 else
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 ac_cv_type_off_t=no
19914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19917 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
19918 if test $ac_cv_type_off_t = yes; then
19920 cat >>confdefs.h <<_ACEOF
19921 #define HAVE_OFF_T 1
19922 _ACEOF
19926 { echo "$as_me:$LINENO: checking for pid_t" >&5
19927 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19928 if test "${ac_cv_type_pid_t+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931 cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h. */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 $ac_includes_default
19938 typedef pid_t ac__type_new_;
19940 main ()
19942 if ((ac__type_new_ *) 0)
19943 return 0;
19944 if (sizeof (ac__type_new_))
19945 return 0;
19947 return 0;
19949 _ACEOF
19950 rm -f conftest.$ac_objext
19951 if { (ac_try="$ac_compile"
19952 case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19955 esac
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_compile") 2>conftest.er1
19958 ac_status=$?
19959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
19964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19965 { (case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_try") 2>&5
19971 ac_status=$?
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; } &&
19974 { ac_try='test -s conftest.$ac_objext'
19975 { (case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19978 esac
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_try") 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 ac_cv_type_pid_t=yes
19985 else
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_cv_type_pid_t=no
19992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19994 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19995 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
19996 if test $ac_cv_type_pid_t = yes; then
19998 cat >>confdefs.h <<_ACEOF
19999 #define HAVE_PID_T 1
20000 _ACEOF
20004 { echo "$as_me:$LINENO: checking for size_t" >&5
20005 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20006 if test "${ac_cv_type_size_t+set}" = set; then
20007 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 else
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h. */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 $ac_includes_default
20016 typedef size_t ac__type_new_;
20018 main ()
20020 if ((ac__type_new_ *) 0)
20021 return 0;
20022 if (sizeof (ac__type_new_))
20023 return 0;
20025 return 0;
20027 _ACEOF
20028 rm -f conftest.$ac_objext
20029 if { (ac_try="$ac_compile"
20030 case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_compile") 2>conftest.er1
20036 ac_status=$?
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
20042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20043 { (case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_try") 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest.$ac_objext'
20053 { (case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_try") 2>&5
20059 ac_status=$?
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; }; then
20062 ac_cv_type_size_t=yes
20063 else
20064 echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20067 ac_cv_type_size_t=no
20070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20072 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20073 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20074 if test $ac_cv_type_size_t = yes; then
20076 cat >>confdefs.h <<_ACEOF
20077 #define HAVE_SIZE_T 1
20078 _ACEOF
20082 { echo "$as_me:$LINENO: checking for ssize_t" >&5
20083 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
20084 if test "${ac_cv_type_ssize_t+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087 cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h. */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20093 $ac_includes_default
20094 typedef ssize_t ac__type_new_;
20096 main ()
20098 if ((ac__type_new_ *) 0)
20099 return 0;
20100 if (sizeof (ac__type_new_))
20101 return 0;
20103 return 0;
20105 _ACEOF
20106 rm -f conftest.$ac_objext
20107 if { (ac_try="$ac_compile"
20108 case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20111 esac
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_compile") 2>conftest.er1
20114 ac_status=$?
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
20120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20121 { (case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20124 esac
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_try") 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; } &&
20130 { ac_try='test -s conftest.$ac_objext'
20131 { (case "(($ac_try" in
20132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133 *) ac_try_echo=$ac_try;;
20134 esac
20135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136 (eval "$ac_try") 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
20140 ac_cv_type_ssize_t=yes
20141 else
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20145 ac_cv_type_ssize_t=no
20148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20150 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20151 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
20152 if test $ac_cv_type_ssize_t = yes; then
20154 cat >>confdefs.h <<_ACEOF
20155 #define HAVE_SSIZE_T 1
20156 _ACEOF
20160 { echo "$as_me:$LINENO: checking for long long" >&5
20161 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20162 if test "${ac_cv_type_long_long+set}" = set; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 else
20165 cat >conftest.$ac_ext <<_ACEOF
20166 /* confdefs.h. */
20167 _ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
20170 /* end confdefs.h. */
20171 $ac_includes_default
20172 typedef long long ac__type_new_;
20174 main ()
20176 if ((ac__type_new_ *) 0)
20177 return 0;
20178 if (sizeof (ac__type_new_))
20179 return 0;
20181 return 0;
20183 _ACEOF
20184 rm -f conftest.$ac_objext
20185 if { (ac_try="$ac_compile"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189 esac
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_compile") 2>conftest.er1
20192 ac_status=$?
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } &&
20198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20199 { (case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_try") 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; } &&
20208 { ac_try='test -s conftest.$ac_objext'
20209 { (case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20212 esac
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_try") 2>&5
20215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }; }; then
20218 ac_cv_type_long_long=yes
20219 else
20220 echo "$as_me: failed program was:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20223 ac_cv_type_long_long=no
20226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20229 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20230 if test $ac_cv_type_long_long = yes; then
20232 cat >>confdefs.h <<_ACEOF
20233 #define HAVE_LONG_LONG 1
20234 _ACEOF
20238 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
20239 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
20240 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20243 cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h. */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20249 $ac_includes_default
20250 typedef fsblkcnt_t ac__type_new_;
20252 main ()
20254 if ((ac__type_new_ *) 0)
20255 return 0;
20256 if (sizeof (ac__type_new_))
20257 return 0;
20259 return 0;
20261 _ACEOF
20262 rm -f conftest.$ac_objext
20263 if { (ac_try="$ac_compile"
20264 case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_compile") 2>conftest.er1
20270 ac_status=$?
20271 grep -v '^ *+' conftest.er1 >conftest.err
20272 rm -f conftest.er1
20273 cat conftest.err >&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20277 { (case "(($ac_try" in
20278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279 *) ac_try_echo=$ac_try;;
20280 esac
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282 (eval "$ac_try") 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; } &&
20286 { ac_try='test -s conftest.$ac_objext'
20287 { (case "(($ac_try" in
20288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289 *) ac_try_echo=$ac_try;;
20290 esac
20291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292 (eval "$ac_try") 2>&5
20293 ac_status=$?
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; }; then
20296 ac_cv_type_fsblkcnt_t=yes
20297 else
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 ac_cv_type_fsblkcnt_t=no
20304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
20307 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
20308 if test $ac_cv_type_fsblkcnt_t = yes; then
20310 cat >>confdefs.h <<_ACEOF
20311 #define HAVE_FSBLKCNT_T 1
20312 _ACEOF
20316 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
20317 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
20318 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321 cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h. */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 $ac_includes_default
20328 typedef fsfilcnt_t ac__type_new_;
20330 main ()
20332 if ((ac__type_new_ *) 0)
20333 return 0;
20334 if (sizeof (ac__type_new_))
20335 return 0;
20337 return 0;
20339 _ACEOF
20340 rm -f conftest.$ac_objext
20341 if { (ac_try="$ac_compile"
20342 case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20345 esac
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347 (eval "$ac_compile") 2>conftest.er1
20348 ac_status=$?
20349 grep -v '^ *+' conftest.er1 >conftest.err
20350 rm -f conftest.er1
20351 cat conftest.err >&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } &&
20354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20355 { (case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20358 esac
20359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360 (eval "$ac_try") 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try='test -s conftest.$ac_objext'
20365 { (case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_try") 2>&5
20371 ac_status=$?
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 ac_cv_type_fsfilcnt_t=yes
20375 else
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ac_cv_type_fsfilcnt_t=no
20382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20384 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20385 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
20386 if test $ac_cv_type_fsfilcnt_t = yes; then
20388 cat >>confdefs.h <<_ACEOF
20389 #define HAVE_FSFILCNT_T 1
20390 _ACEOF
20395 { echo "$as_me:$LINENO: checking for sigset_t" >&5
20396 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
20397 if test "${ac_cv_type_sigset_t+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 else
20400 cat >conftest.$ac_ext <<_ACEOF
20401 /* confdefs.h. */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20406 #include <signal.h>
20408 typedef sigset_t ac__type_new_;
20410 main ()
20412 if ((ac__type_new_ *) 0)
20413 return 0;
20414 if (sizeof (ac__type_new_))
20415 return 0;
20417 return 0;
20419 _ACEOF
20420 rm -f conftest.$ac_objext
20421 if { (ac_try="$ac_compile"
20422 case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20425 esac
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_compile") 2>conftest.er1
20428 ac_status=$?
20429 grep -v '^ *+' conftest.er1 >conftest.err
20430 rm -f conftest.er1
20431 cat conftest.err >&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } &&
20434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20435 { (case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20438 esac
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_try") 2>&5
20441 ac_status=$?
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; } &&
20444 { ac_try='test -s conftest.$ac_objext'
20445 { (case "(($ac_try" in
20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447 *) ac_try_echo=$ac_try;;
20448 esac
20449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20450 (eval "$ac_try") 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_cv_type_sigset_t=yes
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ac_cv_type_sigset_t=no
20462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20465 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
20466 if test $ac_cv_type_sigset_t = yes; then
20468 cat >>confdefs.h <<_ACEOF
20469 #define HAVE_SIGSET_T 1
20470 _ACEOF
20475 { echo "$as_me:$LINENO: checking for request_sense" >&5
20476 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
20477 if test "${ac_cv_type_request_sense+set}" = set; then
20478 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 else
20480 cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h. */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20486 #include <linux/cdrom.h>
20488 typedef request_sense ac__type_new_;
20490 main ()
20492 if ((ac__type_new_ *) 0)
20493 return 0;
20494 if (sizeof (ac__type_new_))
20495 return 0;
20497 return 0;
20499 _ACEOF
20500 rm -f conftest.$ac_objext
20501 if { (ac_try="$ac_compile"
20502 case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_compile") 2>conftest.er1
20508 ac_status=$?
20509 grep -v '^ *+' conftest.er1 >conftest.err
20510 rm -f conftest.er1
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } &&
20514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20515 { (case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20518 esac
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_try") 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; } &&
20524 { ac_try='test -s conftest.$ac_objext'
20525 { (case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20528 esac
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_try") 2>&5
20531 ac_status=$?
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; }; then
20534 ac_cv_type_request_sense=yes
20535 else
20536 echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20539 ac_cv_type_request_sense=no
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20545 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
20546 if test $ac_cv_type_request_sense = yes; then
20548 cat >>confdefs.h <<_ACEOF
20549 #define HAVE_REQUEST_SENSE 1
20550 _ACEOF
20556 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20557 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
20558 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 else
20561 cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h. */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20567 #ifdef HAVE_LINUX_INPUT_H
20568 #include <linux/input.h>
20569 #endif
20572 main ()
20574 static struct ff_effect ac_aggr;
20575 if (ac_aggr.direction)
20576 return 0;
20578 return 0;
20580 _ACEOF
20581 rm -f conftest.$ac_objext
20582 if { (ac_try="$ac_compile"
20583 case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20586 esac
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_compile") 2>conftest.er1
20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20596 { (case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20599 esac
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_try") 2>&5
20602 ac_status=$?
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; } &&
20605 { ac_try='test -s conftest.$ac_objext'
20606 { (case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20609 esac
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_try") 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }; then
20615 ac_cv_member_struct_ff_effect_direction=yes
20616 else
20617 echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20620 cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h. */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20626 #ifdef HAVE_LINUX_INPUT_H
20627 #include <linux/input.h>
20628 #endif
20631 main ()
20633 static struct ff_effect ac_aggr;
20634 if (sizeof ac_aggr.direction)
20635 return 0;
20637 return 0;
20639 _ACEOF
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_compile") 2>conftest.er1
20648 ac_status=$?
20649 grep -v '^ *+' conftest.er1 >conftest.err
20650 rm -f conftest.er1
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } &&
20654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20655 { (case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20658 esac
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_try") 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest.$ac_objext'
20665 { (case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_try") 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ac_cv_member_struct_ff_effect_direction=yes
20675 else
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ac_cv_member_struct_ff_effect_direction=no
20682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20687 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20688 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
20689 if test $ac_cv_member_struct_ff_effect_direction = yes; then
20691 cat >>confdefs.h <<_ACEOF
20692 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20693 _ACEOF
20699 { echo "$as_me:$LINENO: checking for sigaddset" >&5
20700 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
20701 if test "${wine_cv_have_sigaddset+set}" = set; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20703 else
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h. */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 #include <signal.h>
20712 main ()
20714 sigset_t set; sigaddset(&set,SIGTERM);
20716 return 0;
20718 _ACEOF
20719 rm -f conftest.$ac_objext conftest$ac_exeext
20720 if { (ac_try="$ac_link"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_link") 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20734 { (case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_try") 2>&5
20740 ac_status=$?
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; } &&
20743 { ac_try='test -s conftest$ac_exeext'
20744 { (case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_try") 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
20753 wine_cv_have_sigaddset=yes
20754 else
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20758 wine_cv_have_sigaddset=no
20761 rm -f core conftest.err conftest.$ac_objext \
20762 conftest$ac_exeext conftest.$ac_ext
20764 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20765 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
20766 if test "$wine_cv_have_sigaddset" = "yes"
20767 then
20769 cat >>confdefs.h <<\_ACEOF
20770 #define HAVE_SIGADDSET 1
20771 _ACEOF
20776 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20777 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
20778 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20780 else
20781 cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h. */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20788 #include <netdb.h>
20791 main ()
20794 char *name=NULL;
20795 struct hostent he;
20796 struct hostent *result;
20797 char *buf=NULL;
20798 int bufsize=0;
20799 int res,errnr;
20800 char *addr=NULL;
20801 int addrlen=0;
20802 int addrtype=0;
20803 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20804 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
20807 return 0;
20809 _ACEOF
20810 rm -f conftest.$ac_objext conftest$ac_exeext
20811 if { (ac_try="$ac_link"
20812 case "(($ac_try" in
20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20815 esac
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817 (eval "$ac_link") 2>conftest.er1
20818 ac_status=$?
20819 grep -v '^ *+' conftest.er1 >conftest.err
20820 rm -f conftest.er1
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } &&
20824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20825 { (case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_try") 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; } &&
20834 { ac_try='test -s conftest$ac_exeext'
20835 { (case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20838 esac
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_try") 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; }; then
20844 wine_cv_linux_gethostbyname_r_6=yes
20845 else
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20849 wine_cv_linux_gethostbyname_r_6=no
20853 rm -f core conftest.err conftest.$ac_objext \
20854 conftest$ac_exeext conftest.$ac_ext
20857 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20858 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
20859 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20860 then
20862 cat >>confdefs.h <<\_ACEOF
20863 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
20864 _ACEOF
20868 if test "$ac_cv_header_linux_joystick_h" = "yes"
20869 then
20870 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20871 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
20872 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20873 echo $ECHO_N "(cached) $ECHO_C" >&6
20874 else
20875 cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h. */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20882 #include <sys/ioctl.h>
20883 #include <linux/joystick.h>
20885 struct js_event blub;
20886 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20887 #error "no 2.2 header"
20888 #endif
20891 main ()
20893 /*empty*/
20895 return 0;
20897 _ACEOF
20898 rm -f conftest.$ac_objext
20899 if { (ac_try="$ac_compile"
20900 case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_compile") 2>conftest.er1
20906 ac_status=$?
20907 grep -v '^ *+' conftest.er1 >conftest.err
20908 rm -f conftest.er1
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } &&
20912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20913 { (case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20916 esac
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_try") 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest.$ac_objext'
20923 { (case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20926 esac
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_try") 2>&5
20929 ac_status=$?
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; }; then
20932 wine_cv_linux_joystick_22_api=yes
20933 else
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 wine_cv_linux_joystick_22_api=no
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20944 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
20945 if test "$wine_cv_linux_joystick_22_api" = "yes"
20946 then
20948 cat >>confdefs.h <<\_ACEOF
20949 #define HAVE_LINUX_22_JOYSTICK_API 1
20950 _ACEOF
20956 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20957 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
20958 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961 cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h. */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 #include <sys/types.h>
20968 #ifdef HAVE_SYS_PARAM_H
20969 # include <sys/param.h>
20970 #endif
20971 #ifdef HAVE_SYS_MOUNT_H
20972 # include <sys/mount.h>
20973 #endif
20974 #ifdef HAVE_SYS_VFS_H
20975 # include <sys/vfs.h>
20976 #endif
20977 #ifdef HAVE_SYS_STATFS_H
20978 # include <sys/statfs.h>
20979 #endif
20982 main ()
20984 static struct statfs ac_aggr;
20985 if (ac_aggr.f_bfree)
20986 return 0;
20988 return 0;
20990 _ACEOF
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20996 esac
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_compile") 2>conftest.er1
20999 ac_status=$?
21000 grep -v '^ *+' conftest.er1 >conftest.err
21001 rm -f conftest.er1
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
21005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21006 { (case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_try") 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest.$ac_objext'
21016 { (case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_try") 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 ac_cv_member_struct_statfs_f_bfree=yes
21026 else
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 cat >conftest.$ac_ext <<_ACEOF
21031 /* confdefs.h. */
21032 _ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21036 #include <sys/types.h>
21037 #ifdef HAVE_SYS_PARAM_H
21038 # include <sys/param.h>
21039 #endif
21040 #ifdef HAVE_SYS_MOUNT_H
21041 # include <sys/mount.h>
21042 #endif
21043 #ifdef HAVE_SYS_VFS_H
21044 # include <sys/vfs.h>
21045 #endif
21046 #ifdef HAVE_SYS_STATFS_H
21047 # include <sys/statfs.h>
21048 #endif
21051 main ()
21053 static struct statfs ac_aggr;
21054 if (sizeof ac_aggr.f_bfree)
21055 return 0;
21057 return 0;
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
21074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21075 { (case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_try") 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; } &&
21084 { ac_try='test -s conftest.$ac_objext'
21085 { (case "(($ac_try" in
21086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087 *) ac_try_echo=$ac_try;;
21088 esac
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090 (eval "$ac_try") 2>&5
21091 ac_status=$?
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; }; then
21094 ac_cv_member_struct_statfs_f_bfree=yes
21095 else
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 ac_cv_member_struct_statfs_f_bfree=no
21102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
21108 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
21109 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
21111 cat >>confdefs.h <<_ACEOF
21112 #define HAVE_STRUCT_STATFS_F_BFREE 1
21113 _ACEOF
21117 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
21118 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
21119 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21121 else
21122 cat >conftest.$ac_ext <<_ACEOF
21123 /* confdefs.h. */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128 #include <sys/types.h>
21129 #ifdef HAVE_SYS_PARAM_H
21130 # include <sys/param.h>
21131 #endif
21132 #ifdef HAVE_SYS_MOUNT_H
21133 # include <sys/mount.h>
21134 #endif
21135 #ifdef HAVE_SYS_VFS_H
21136 # include <sys/vfs.h>
21137 #endif
21138 #ifdef HAVE_SYS_STATFS_H
21139 # include <sys/statfs.h>
21140 #endif
21143 main ()
21145 static struct statfs ac_aggr;
21146 if (ac_aggr.f_bavail)
21147 return 0;
21149 return 0;
21151 _ACEOF
21152 rm -f conftest.$ac_objext
21153 if { (ac_try="$ac_compile"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21157 esac
21158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159 (eval "$ac_compile") 2>conftest.er1
21160 ac_status=$?
21161 grep -v '^ *+' conftest.er1 >conftest.err
21162 rm -f conftest.er1
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } &&
21166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21167 { (case "(($ac_try" in
21168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169 *) ac_try_echo=$ac_try;;
21170 esac
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172 (eval "$ac_try") 2>&5
21173 ac_status=$?
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; } &&
21176 { ac_try='test -s conftest.$ac_objext'
21177 { (case "(($ac_try" in
21178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179 *) ac_try_echo=$ac_try;;
21180 esac
21181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21182 (eval "$ac_try") 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 ac_cv_member_struct_statfs_f_bavail=yes
21187 else
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 cat >conftest.$ac_ext <<_ACEOF
21192 /* confdefs.h. */
21193 _ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21197 #include <sys/types.h>
21198 #ifdef HAVE_SYS_PARAM_H
21199 # include <sys/param.h>
21200 #endif
21201 #ifdef HAVE_SYS_MOUNT_H
21202 # include <sys/mount.h>
21203 #endif
21204 #ifdef HAVE_SYS_VFS_H
21205 # include <sys/vfs.h>
21206 #endif
21207 #ifdef HAVE_SYS_STATFS_H
21208 # include <sys/statfs.h>
21209 #endif
21212 main ()
21214 static struct statfs ac_aggr;
21215 if (sizeof ac_aggr.f_bavail)
21216 return 0;
21218 return 0;
21220 _ACEOF
21221 rm -f conftest.$ac_objext
21222 if { (ac_try="$ac_compile"
21223 case "(($ac_try" in
21224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225 *) ac_try_echo=$ac_try;;
21226 esac
21227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228 (eval "$ac_compile") 2>conftest.er1
21229 ac_status=$?
21230 grep -v '^ *+' conftest.er1 >conftest.err
21231 rm -f conftest.er1
21232 cat conftest.err >&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } &&
21235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21236 { (case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21239 esac
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_try") 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } &&
21245 { ac_try='test -s conftest.$ac_objext'
21246 { (case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_try") 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 ac_cv_member_struct_statfs_f_bavail=yes
21256 else
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21260 ac_cv_member_struct_statfs_f_bavail=no
21263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
21269 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
21270 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
21272 cat >>confdefs.h <<_ACEOF
21273 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
21274 _ACEOF
21278 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
21279 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
21280 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 #include <sys/types.h>
21290 #ifdef HAVE_SYS_PARAM_H
21291 # include <sys/param.h>
21292 #endif
21293 #ifdef HAVE_SYS_MOUNT_H
21294 # include <sys/mount.h>
21295 #endif
21296 #ifdef HAVE_SYS_VFS_H
21297 # include <sys/vfs.h>
21298 #endif
21299 #ifdef HAVE_SYS_STATFS_H
21300 # include <sys/statfs.h>
21301 #endif
21304 main ()
21306 static struct statfs ac_aggr;
21307 if (ac_aggr.f_frsize)
21308 return 0;
21310 return 0;
21312 _ACEOF
21313 rm -f conftest.$ac_objext
21314 if { (ac_try="$ac_compile"
21315 case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_compile") 2>conftest.er1
21321 ac_status=$?
21322 grep -v '^ *+' conftest.er1 >conftest.err
21323 rm -f conftest.er1
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } &&
21327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21328 { (case "(($ac_try" in
21329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330 *) ac_try_echo=$ac_try;;
21331 esac
21332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21333 (eval "$ac_try") 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; } &&
21337 { ac_try='test -s conftest.$ac_objext'
21338 { (case "(($ac_try" in
21339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340 *) ac_try_echo=$ac_try;;
21341 esac
21342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21343 (eval "$ac_try") 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
21347 ac_cv_member_struct_statfs_f_frsize=yes
21348 else
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h. */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 #include <sys/types.h>
21359 #ifdef HAVE_SYS_PARAM_H
21360 # include <sys/param.h>
21361 #endif
21362 #ifdef HAVE_SYS_MOUNT_H
21363 # include <sys/mount.h>
21364 #endif
21365 #ifdef HAVE_SYS_VFS_H
21366 # include <sys/vfs.h>
21367 #endif
21368 #ifdef HAVE_SYS_STATFS_H
21369 # include <sys/statfs.h>
21370 #endif
21373 main ()
21375 static struct statfs ac_aggr;
21376 if (sizeof ac_aggr.f_frsize)
21377 return 0;
21379 return 0;
21381 _ACEOF
21382 rm -f conftest.$ac_objext
21383 if { (ac_try="$ac_compile"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21387 esac
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_compile") 2>conftest.er1
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } &&
21396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21397 { (case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_try") 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest.$ac_objext'
21407 { (case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_try") 2>&5
21413 ac_status=$?
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; }; then
21416 ac_cv_member_struct_statfs_f_frsize=yes
21417 else
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21421 ac_cv_member_struct_statfs_f_frsize=no
21424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21429 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21430 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
21431 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21433 cat >>confdefs.h <<_ACEOF
21434 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
21435 _ACEOF
21439 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21440 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
21441 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21443 else
21444 cat >conftest.$ac_ext <<_ACEOF
21445 /* confdefs.h. */
21446 _ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h. */
21450 #include <sys/types.h>
21451 #ifdef HAVE_SYS_PARAM_H
21452 # include <sys/param.h>
21453 #endif
21454 #ifdef HAVE_SYS_MOUNT_H
21455 # include <sys/mount.h>
21456 #endif
21457 #ifdef HAVE_SYS_VFS_H
21458 # include <sys/vfs.h>
21459 #endif
21460 #ifdef HAVE_SYS_STATFS_H
21461 # include <sys/statfs.h>
21462 #endif
21465 main ()
21467 static struct statfs ac_aggr;
21468 if (ac_aggr.f_ffree)
21469 return 0;
21471 return 0;
21473 _ACEOF
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_compile") 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
21488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21489 { (case "(($ac_try" in
21490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491 *) ac_try_echo=$ac_try;;
21492 esac
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494 (eval "$ac_try") 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest.$ac_objext'
21499 { (case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21502 esac
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_try") 2>&5
21505 ac_status=$?
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); }; }; then
21508 ac_cv_member_struct_statfs_f_ffree=yes
21509 else
21510 echo "$as_me: failed program was:" >&5
21511 sed 's/^/| /' conftest.$ac_ext >&5
21513 cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h. */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h. */
21519 #include <sys/types.h>
21520 #ifdef HAVE_SYS_PARAM_H
21521 # include <sys/param.h>
21522 #endif
21523 #ifdef HAVE_SYS_MOUNT_H
21524 # include <sys/mount.h>
21525 #endif
21526 #ifdef HAVE_SYS_VFS_H
21527 # include <sys/vfs.h>
21528 #endif
21529 #ifdef HAVE_SYS_STATFS_H
21530 # include <sys/statfs.h>
21531 #endif
21534 main ()
21536 static struct statfs ac_aggr;
21537 if (sizeof ac_aggr.f_ffree)
21538 return 0;
21540 return 0;
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (ac_try="$ac_compile"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21548 esac
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21551 ac_status=$?
21552 grep -v '^ *+' conftest.er1 >conftest.err
21553 rm -f conftest.er1
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } &&
21557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21558 { (case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21561 esac
21562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_try") 2>&5
21564 ac_status=$?
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; } &&
21567 { ac_try='test -s conftest.$ac_objext'
21568 { (case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21571 esac
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_try") 2>&5
21574 ac_status=$?
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; }; then
21577 ac_cv_member_struct_statfs_f_ffree=yes
21578 else
21579 echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21582 ac_cv_member_struct_statfs_f_ffree=no
21585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21591 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
21592 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21594 cat >>confdefs.h <<_ACEOF
21595 #define HAVE_STRUCT_STATFS_F_FFREE 1
21596 _ACEOF
21600 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21601 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
21602 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21604 else
21605 cat >conftest.$ac_ext <<_ACEOF
21606 /* confdefs.h. */
21607 _ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21611 #include <sys/types.h>
21612 #ifdef HAVE_SYS_PARAM_H
21613 # include <sys/param.h>
21614 #endif
21615 #ifdef HAVE_SYS_MOUNT_H
21616 # include <sys/mount.h>
21617 #endif
21618 #ifdef HAVE_SYS_VFS_H
21619 # include <sys/vfs.h>
21620 #endif
21621 #ifdef HAVE_SYS_STATFS_H
21622 # include <sys/statfs.h>
21623 #endif
21626 main ()
21628 static struct statfs ac_aggr;
21629 if (ac_aggr.f_favail)
21630 return 0;
21632 return 0;
21634 _ACEOF
21635 rm -f conftest.$ac_objext
21636 if { (ac_try="$ac_compile"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_compile") 2>conftest.er1
21643 ac_status=$?
21644 grep -v '^ *+' conftest.er1 >conftest.err
21645 rm -f conftest.er1
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } &&
21649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21650 { (case "(($ac_try" in
21651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652 *) ac_try_echo=$ac_try;;
21653 esac
21654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21655 (eval "$ac_try") 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; } &&
21659 { ac_try='test -s conftest.$ac_objext'
21660 { (case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_try") 2>&5
21666 ac_status=$?
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; }; then
21669 ac_cv_member_struct_statfs_f_favail=yes
21670 else
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 cat >conftest.$ac_ext <<_ACEOF
21675 /* confdefs.h. */
21676 _ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 #include <sys/types.h>
21681 #ifdef HAVE_SYS_PARAM_H
21682 # include <sys/param.h>
21683 #endif
21684 #ifdef HAVE_SYS_MOUNT_H
21685 # include <sys/mount.h>
21686 #endif
21687 #ifdef HAVE_SYS_VFS_H
21688 # include <sys/vfs.h>
21689 #endif
21690 #ifdef HAVE_SYS_STATFS_H
21691 # include <sys/statfs.h>
21692 #endif
21695 main ()
21697 static struct statfs ac_aggr;
21698 if (sizeof ac_aggr.f_favail)
21699 return 0;
21701 return 0;
21703 _ACEOF
21704 rm -f conftest.$ac_objext
21705 if { (ac_try="$ac_compile"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21709 esac
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_compile") 2>conftest.er1
21712 ac_status=$?
21713 grep -v '^ *+' conftest.er1 >conftest.err
21714 rm -f conftest.er1
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } &&
21718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21719 { (case "(($ac_try" in
21720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721 *) ac_try_echo=$ac_try;;
21722 esac
21723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724 (eval "$ac_try") 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; } &&
21728 { ac_try='test -s conftest.$ac_objext'
21729 { (case "(($ac_try" in
21730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21731 *) ac_try_echo=$ac_try;;
21732 esac
21733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21734 (eval "$ac_try") 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; }; then
21738 ac_cv_member_struct_statfs_f_favail=yes
21739 else
21740 echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21743 ac_cv_member_struct_statfs_f_favail=no
21746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21751 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21752 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
21753 if test $ac_cv_member_struct_statfs_f_favail = yes; then
21755 cat >>confdefs.h <<_ACEOF
21756 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
21757 _ACEOF
21761 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21762 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
21763 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21764 echo $ECHO_N "(cached) $ECHO_C" >&6
21765 else
21766 cat >conftest.$ac_ext <<_ACEOF
21767 /* confdefs.h. */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21772 #include <sys/types.h>
21773 #ifdef HAVE_SYS_PARAM_H
21774 # include <sys/param.h>
21775 #endif
21776 #ifdef HAVE_SYS_MOUNT_H
21777 # include <sys/mount.h>
21778 #endif
21779 #ifdef HAVE_SYS_VFS_H
21780 # include <sys/vfs.h>
21781 #endif
21782 #ifdef HAVE_SYS_STATFS_H
21783 # include <sys/statfs.h>
21784 #endif
21787 main ()
21789 static struct statfs ac_aggr;
21790 if (ac_aggr.f_namelen)
21791 return 0;
21793 return 0;
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_compile") 2>conftest.er1
21804 ac_status=$?
21805 grep -v '^ *+' conftest.er1 >conftest.err
21806 rm -f conftest.er1
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } &&
21810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21811 { (case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21814 esac
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_try") 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest.$ac_objext'
21821 { (case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_try") 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; }; then
21830 ac_cv_member_struct_statfs_f_namelen=yes
21831 else
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 cat >conftest.$ac_ext <<_ACEOF
21836 /* confdefs.h. */
21837 _ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h. */
21841 #include <sys/types.h>
21842 #ifdef HAVE_SYS_PARAM_H
21843 # include <sys/param.h>
21844 #endif
21845 #ifdef HAVE_SYS_MOUNT_H
21846 # include <sys/mount.h>
21847 #endif
21848 #ifdef HAVE_SYS_VFS_H
21849 # include <sys/vfs.h>
21850 #endif
21851 #ifdef HAVE_SYS_STATFS_H
21852 # include <sys/statfs.h>
21853 #endif
21856 main ()
21858 static struct statfs ac_aggr;
21859 if (sizeof ac_aggr.f_namelen)
21860 return 0;
21862 return 0;
21864 _ACEOF
21865 rm -f conftest.$ac_objext
21866 if { (ac_try="$ac_compile"
21867 case "(($ac_try" in
21868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869 *) ac_try_echo=$ac_try;;
21870 esac
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872 (eval "$ac_compile") 2>conftest.er1
21873 ac_status=$?
21874 grep -v '^ *+' conftest.er1 >conftest.err
21875 rm -f conftest.er1
21876 cat conftest.err >&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
21879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21880 { (case "(($ac_try" in
21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21883 esac
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885 (eval "$ac_try") 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; } &&
21889 { ac_try='test -s conftest.$ac_objext'
21890 { (case "(($ac_try" in
21891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892 *) ac_try_echo=$ac_try;;
21893 esac
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895 (eval "$ac_try") 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 ac_cv_member_struct_statfs_f_namelen=yes
21900 else
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 ac_cv_member_struct_statfs_f_namelen=no
21907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21912 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21913 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
21914 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21916 cat >>confdefs.h <<_ACEOF
21917 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
21918 _ACEOF
21924 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21925 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
21926 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 else
21929 cat >conftest.$ac_ext <<_ACEOF
21930 /* confdefs.h. */
21931 _ACEOF
21932 cat confdefs.h >>conftest.$ac_ext
21933 cat >>conftest.$ac_ext <<_ACEOF
21934 /* end confdefs.h. */
21935 #ifdef HAVE_SYS_STATVFS_H
21936 #include <sys/statvfs.h>
21937 #endif
21940 main ()
21942 static struct statvfs ac_aggr;
21943 if (ac_aggr.f_blocks)
21944 return 0;
21946 return 0;
21948 _ACEOF
21949 rm -f conftest.$ac_objext
21950 if { (ac_try="$ac_compile"
21951 case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21954 esac
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_compile") 2>conftest.er1
21957 ac_status=$?
21958 grep -v '^ *+' conftest.er1 >conftest.err
21959 rm -f conftest.er1
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } &&
21963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21964 { (case "(($ac_try" in
21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21967 esac
21968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969 (eval "$ac_try") 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; } &&
21973 { ac_try='test -s conftest.$ac_objext'
21974 { (case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21977 esac
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_try") 2>&5
21980 ac_status=$?
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
21983 ac_cv_member_struct_statvfs_f_blocks=yes
21984 else
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h. */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994 #ifdef HAVE_SYS_STATVFS_H
21995 #include <sys/statvfs.h>
21996 #endif
21999 main ()
22001 static struct statvfs ac_aggr;
22002 if (sizeof ac_aggr.f_blocks)
22003 return 0;
22005 return 0;
22007 _ACEOF
22008 rm -f conftest.$ac_objext
22009 if { (ac_try="$ac_compile"
22010 case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22013 esac
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_compile") 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } &&
22022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22023 { (case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22026 esac
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_try") 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; } &&
22032 { ac_try='test -s conftest.$ac_objext'
22033 { (case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22036 esac
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_try") 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22042 ac_cv_member_struct_statvfs_f_blocks=yes
22043 else
22044 echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22047 ac_cv_member_struct_statvfs_f_blocks=no
22050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22055 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
22056 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
22057 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
22059 cat >>confdefs.h <<_ACEOF
22060 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
22061 _ACEOF
22067 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
22068 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
22069 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
22070 echo $ECHO_N "(cached) $ECHO_C" >&6
22071 else
22072 cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h. */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22078 #include <sys/types.h>
22079 #ifdef HAVE_SYS_SOCKET_H
22080 # include <sys/socket.h>
22081 #endif
22082 #ifdef HAVE_SYS_UN_H
22083 # include <sys/un.h>
22084 #endif
22087 main ()
22089 static struct msghdr ac_aggr;
22090 if (ac_aggr.msg_accrights)
22091 return 0;
22093 return 0;
22095 _ACEOF
22096 rm -f conftest.$ac_objext
22097 if { (ac_try="$ac_compile"
22098 case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_compile") 2>conftest.er1
22104 ac_status=$?
22105 grep -v '^ *+' conftest.er1 >conftest.err
22106 rm -f conftest.er1
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } &&
22110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22111 { (case "(($ac_try" in
22112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113 *) ac_try_echo=$ac_try;;
22114 esac
22115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116 (eval "$ac_try") 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; } &&
22120 { ac_try='test -s conftest.$ac_objext'
22121 { (case "(($ac_try" in
22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22124 esac
22125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126 (eval "$ac_try") 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22130 ac_cv_member_struct_msghdr_msg_accrights=yes
22131 else
22132 echo "$as_me: failed program was:" >&5
22133 sed 's/^/| /' conftest.$ac_ext >&5
22135 cat >conftest.$ac_ext <<_ACEOF
22136 /* confdefs.h. */
22137 _ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h. */
22141 #include <sys/types.h>
22142 #ifdef HAVE_SYS_SOCKET_H
22143 # include <sys/socket.h>
22144 #endif
22145 #ifdef HAVE_SYS_UN_H
22146 # include <sys/un.h>
22147 #endif
22150 main ()
22152 static struct msghdr ac_aggr;
22153 if (sizeof ac_aggr.msg_accrights)
22154 return 0;
22156 return 0;
22158 _ACEOF
22159 rm -f conftest.$ac_objext
22160 if { (ac_try="$ac_compile"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_compile") 2>conftest.er1
22167 ac_status=$?
22168 grep -v '^ *+' conftest.er1 >conftest.err
22169 rm -f conftest.er1
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } &&
22173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22174 { (case "(($ac_try" in
22175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176 *) ac_try_echo=$ac_try;;
22177 esac
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_try") 2>&5
22180 ac_status=$?
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; } &&
22183 { ac_try='test -s conftest.$ac_objext'
22184 { (case "(($ac_try" in
22185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186 *) ac_try_echo=$ac_try;;
22187 esac
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189 (eval "$ac_try") 2>&5
22190 ac_status=$?
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); }; }; then
22193 ac_cv_member_struct_msghdr_msg_accrights=yes
22194 else
22195 echo "$as_me: failed program was:" >&5
22196 sed 's/^/| /' conftest.$ac_ext >&5
22198 ac_cv_member_struct_msghdr_msg_accrights=no
22201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22206 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
22207 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
22208 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
22210 cat >>confdefs.h <<_ACEOF
22211 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
22212 _ACEOF
22216 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22217 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
22218 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22219 echo $ECHO_N "(cached) $ECHO_C" >&6
22220 else
22221 cat >conftest.$ac_ext <<_ACEOF
22222 /* confdefs.h. */
22223 _ACEOF
22224 cat confdefs.h >>conftest.$ac_ext
22225 cat >>conftest.$ac_ext <<_ACEOF
22226 /* end confdefs.h. */
22227 #include <sys/types.h>
22228 #ifdef HAVE_SYS_SOCKET_H
22229 # include <sys/socket.h>
22230 #endif
22231 #ifdef HAVE_SYS_UN_H
22232 # include <sys/un.h>
22233 #endif
22236 main ()
22238 static struct sockaddr ac_aggr;
22239 if (ac_aggr.sa_len)
22240 return 0;
22242 return 0;
22244 _ACEOF
22245 rm -f conftest.$ac_objext
22246 if { (ac_try="$ac_compile"
22247 case "(($ac_try" in
22248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22249 *) ac_try_echo=$ac_try;;
22250 esac
22251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22252 (eval "$ac_compile") 2>conftest.er1
22253 ac_status=$?
22254 grep -v '^ *+' conftest.er1 >conftest.err
22255 rm -f conftest.er1
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } &&
22259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22260 { (case "(($ac_try" in
22261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262 *) ac_try_echo=$ac_try;;
22263 esac
22264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265 (eval "$ac_try") 2>&5
22266 ac_status=$?
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; } &&
22269 { ac_try='test -s conftest.$ac_objext'
22270 { (case "(($ac_try" in
22271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22272 *) ac_try_echo=$ac_try;;
22273 esac
22274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22275 (eval "$ac_try") 2>&5
22276 ac_status=$?
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279 ac_cv_member_struct_sockaddr_sa_len=yes
22280 else
22281 echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22284 cat >conftest.$ac_ext <<_ACEOF
22285 /* confdefs.h. */
22286 _ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h. */
22290 #include <sys/types.h>
22291 #ifdef HAVE_SYS_SOCKET_H
22292 # include <sys/socket.h>
22293 #endif
22294 #ifdef HAVE_SYS_UN_H
22295 # include <sys/un.h>
22296 #endif
22299 main ()
22301 static struct sockaddr ac_aggr;
22302 if (sizeof ac_aggr.sa_len)
22303 return 0;
22305 return 0;
22307 _ACEOF
22308 rm -f conftest.$ac_objext
22309 if { (ac_try="$ac_compile"
22310 case "(($ac_try" in
22311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312 *) ac_try_echo=$ac_try;;
22313 esac
22314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22315 (eval "$ac_compile") 2>conftest.er1
22316 ac_status=$?
22317 grep -v '^ *+' conftest.er1 >conftest.err
22318 rm -f conftest.er1
22319 cat conftest.err >&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); } &&
22322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22323 { (case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22326 esac
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_try") 2>&5
22329 ac_status=$?
22330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); }; } &&
22332 { ac_try='test -s conftest.$ac_objext'
22333 { (case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_try") 2>&5
22339 ac_status=$?
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; }; then
22342 ac_cv_member_struct_sockaddr_sa_len=yes
22343 else
22344 echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 ac_cv_member_struct_sockaddr_sa_len=no
22350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22355 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22356 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22357 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22359 cat >>confdefs.h <<_ACEOF
22360 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22361 _ACEOF
22365 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22366 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
22367 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22368 echo $ECHO_N "(cached) $ECHO_C" >&6
22369 else
22370 cat >conftest.$ac_ext <<_ACEOF
22371 /* confdefs.h. */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22376 #include <sys/types.h>
22377 #ifdef HAVE_SYS_SOCKET_H
22378 # include <sys/socket.h>
22379 #endif
22380 #ifdef HAVE_SYS_UN_H
22381 # include <sys/un.h>
22382 #endif
22385 main ()
22387 static struct sockaddr_un ac_aggr;
22388 if (ac_aggr.sun_len)
22389 return 0;
22391 return 0;
22393 _ACEOF
22394 rm -f conftest.$ac_objext
22395 if { (ac_try="$ac_compile"
22396 case "(($ac_try" in
22397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398 *) ac_try_echo=$ac_try;;
22399 esac
22400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22401 (eval "$ac_compile") 2>conftest.er1
22402 ac_status=$?
22403 grep -v '^ *+' conftest.er1 >conftest.err
22404 rm -f conftest.er1
22405 cat conftest.err >&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } &&
22408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22409 { (case "(($ac_try" in
22410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22411 *) ac_try_echo=$ac_try;;
22412 esac
22413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22414 (eval "$ac_try") 2>&5
22415 ac_status=$?
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }; } &&
22418 { ac_try='test -s conftest.$ac_objext'
22419 { (case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22422 esac
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_try") 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; }; then
22428 ac_cv_member_struct_sockaddr_un_sun_len=yes
22429 else
22430 echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22433 cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h. */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22439 #include <sys/types.h>
22440 #ifdef HAVE_SYS_SOCKET_H
22441 # include <sys/socket.h>
22442 #endif
22443 #ifdef HAVE_SYS_UN_H
22444 # include <sys/un.h>
22445 #endif
22448 main ()
22450 static struct sockaddr_un ac_aggr;
22451 if (sizeof ac_aggr.sun_len)
22452 return 0;
22454 return 0;
22456 _ACEOF
22457 rm -f conftest.$ac_objext
22458 if { (ac_try="$ac_compile"
22459 case "(($ac_try" in
22460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461 *) ac_try_echo=$ac_try;;
22462 esac
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464 (eval "$ac_compile") 2>conftest.er1
22465 ac_status=$?
22466 grep -v '^ *+' conftest.er1 >conftest.err
22467 rm -f conftest.er1
22468 cat conftest.err >&5
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } &&
22471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22472 { (case "(($ac_try" in
22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22475 esac
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477 (eval "$ac_try") 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; } &&
22481 { ac_try='test -s conftest.$ac_objext'
22482 { (case "(($ac_try" in
22483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22485 esac
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487 (eval "$ac_try") 2>&5
22488 ac_status=$?
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; }; then
22491 ac_cv_member_struct_sockaddr_un_sun_len=yes
22492 else
22493 echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22496 ac_cv_member_struct_sockaddr_un_sun_len=no
22499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22504 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22505 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
22506 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22508 cat >>confdefs.h <<_ACEOF
22509 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22510 _ACEOF
22516 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22517 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
22518 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22519 echo $ECHO_N "(cached) $ECHO_C" >&6
22520 else
22521 cat >conftest.$ac_ext <<_ACEOF
22522 /* confdefs.h. */
22523 _ACEOF
22524 cat confdefs.h >>conftest.$ac_ext
22525 cat >>conftest.$ac_ext <<_ACEOF
22526 /* end confdefs.h. */
22527 #include <sys/types.h>
22528 #ifdef HAVE_SCSI_SG_H
22529 #include <scsi/sg.h>
22530 #endif
22533 main ()
22535 static scsireq_t ac_aggr;
22536 if (ac_aggr.cmd)
22537 return 0;
22539 return 0;
22541 _ACEOF
22542 rm -f conftest.$ac_objext
22543 if { (ac_try="$ac_compile"
22544 case "(($ac_try" in
22545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546 *) ac_try_echo=$ac_try;;
22547 esac
22548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22549 (eval "$ac_compile") 2>conftest.er1
22550 ac_status=$?
22551 grep -v '^ *+' conftest.er1 >conftest.err
22552 rm -f conftest.er1
22553 cat conftest.err >&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } &&
22556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22557 { (case "(($ac_try" in
22558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559 *) ac_try_echo=$ac_try;;
22560 esac
22561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22562 (eval "$ac_try") 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; } &&
22566 { ac_try='test -s conftest.$ac_objext'
22567 { (case "(($ac_try" in
22568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569 *) ac_try_echo=$ac_try;;
22570 esac
22571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22572 (eval "$ac_try") 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 ac_cv_member_scsireq_t_cmd=yes
22577 else
22578 echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22581 cat >conftest.$ac_ext <<_ACEOF
22582 /* confdefs.h. */
22583 _ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h. */
22587 #include <sys/types.h>
22588 #ifdef HAVE_SCSI_SG_H
22589 #include <scsi/sg.h>
22590 #endif
22593 main ()
22595 static scsireq_t ac_aggr;
22596 if (sizeof ac_aggr.cmd)
22597 return 0;
22599 return 0;
22601 _ACEOF
22602 rm -f conftest.$ac_objext
22603 if { (ac_try="$ac_compile"
22604 case "(($ac_try" in
22605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606 *) ac_try_echo=$ac_try;;
22607 esac
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609 (eval "$ac_compile") 2>conftest.er1
22610 ac_status=$?
22611 grep -v '^ *+' conftest.er1 >conftest.err
22612 rm -f conftest.er1
22613 cat conftest.err >&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } &&
22616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22617 { (case "(($ac_try" in
22618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619 *) ac_try_echo=$ac_try;;
22620 esac
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622 (eval "$ac_try") 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; } &&
22626 { ac_try='test -s conftest.$ac_objext'
22627 { (case "(($ac_try" in
22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22630 esac
22631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632 (eval "$ac_try") 2>&5
22633 ac_status=$?
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; }; then
22636 ac_cv_member_scsireq_t_cmd=yes
22637 else
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22641 ac_cv_member_scsireq_t_cmd=no
22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22649 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22650 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
22651 if test $ac_cv_member_scsireq_t_cmd = yes; then
22653 cat >>confdefs.h <<_ACEOF
22654 #define HAVE_SCSIREQ_T_CMD 1
22655 _ACEOF
22659 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22660 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
22661 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22662 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 else
22664 cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h. */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 #include <sys/types.h>
22671 #ifdef HAVE_SCSI_SG_H
22672 #include <scsi/sg.h>
22673 #endif
22676 main ()
22678 static sg_io_hdr_t ac_aggr;
22679 if (ac_aggr.interface_id)
22680 return 0;
22682 return 0;
22684 _ACEOF
22685 rm -f conftest.$ac_objext
22686 if { (ac_try="$ac_compile"
22687 case "(($ac_try" in
22688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22689 *) ac_try_echo=$ac_try;;
22690 esac
22691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22692 (eval "$ac_compile") 2>conftest.er1
22693 ac_status=$?
22694 grep -v '^ *+' conftest.er1 >conftest.err
22695 rm -f conftest.er1
22696 cat conftest.err >&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } &&
22699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22700 { (case "(($ac_try" in
22701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702 *) ac_try_echo=$ac_try;;
22703 esac
22704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22705 (eval "$ac_try") 2>&5
22706 ac_status=$?
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; } &&
22709 { ac_try='test -s conftest.$ac_objext'
22710 { (case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22713 esac
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_try") 2>&5
22716 ac_status=$?
22717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718 (exit $ac_status); }; }; then
22719 ac_cv_member_sg_io_hdr_t_interface_id=yes
22720 else
22721 echo "$as_me: failed program was:" >&5
22722 sed 's/^/| /' conftest.$ac_ext >&5
22724 cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h. */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22730 #include <sys/types.h>
22731 #ifdef HAVE_SCSI_SG_H
22732 #include <scsi/sg.h>
22733 #endif
22736 main ()
22738 static sg_io_hdr_t ac_aggr;
22739 if (sizeof ac_aggr.interface_id)
22740 return 0;
22742 return 0;
22744 _ACEOF
22745 rm -f conftest.$ac_objext
22746 if { (ac_try="$ac_compile"
22747 case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22750 esac
22751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22752 (eval "$ac_compile") 2>conftest.er1
22753 ac_status=$?
22754 grep -v '^ *+' conftest.er1 >conftest.err
22755 rm -f conftest.er1
22756 cat conftest.err >&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); } &&
22759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22760 { (case "(($ac_try" in
22761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22762 *) ac_try_echo=$ac_try;;
22763 esac
22764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22765 (eval "$ac_try") 2>&5
22766 ac_status=$?
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); }; } &&
22769 { ac_try='test -s conftest.$ac_objext'
22770 { (case "(($ac_try" in
22771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772 *) ac_try_echo=$ac_try;;
22773 esac
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775 (eval "$ac_try") 2>&5
22776 ac_status=$?
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }; }; then
22779 ac_cv_member_sg_io_hdr_t_interface_id=yes
22780 else
22781 echo "$as_me: failed program was:" >&5
22782 sed 's/^/| /' conftest.$ac_ext >&5
22784 ac_cv_member_sg_io_hdr_t_interface_id=no
22787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22793 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
22794 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22796 cat >>confdefs.h <<_ACEOF
22797 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22798 _ACEOF
22804 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22805 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
22806 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22808 else
22809 cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h. */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815 #include <signal.h>
22818 main ()
22820 static siginfo_t ac_aggr;
22821 if (ac_aggr.si_fd)
22822 return 0;
22824 return 0;
22826 _ACEOF
22827 rm -f conftest.$ac_objext
22828 if { (ac_try="$ac_compile"
22829 case "(($ac_try" in
22830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22831 *) ac_try_echo=$ac_try;;
22832 esac
22833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22834 (eval "$ac_compile") 2>conftest.er1
22835 ac_status=$?
22836 grep -v '^ *+' conftest.er1 >conftest.err
22837 rm -f conftest.er1
22838 cat conftest.err >&5
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); } &&
22841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22842 { (case "(($ac_try" in
22843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844 *) ac_try_echo=$ac_try;;
22845 esac
22846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22847 (eval "$ac_try") 2>&5
22848 ac_status=$?
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); }; } &&
22851 { ac_try='test -s conftest.$ac_objext'
22852 { (case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22855 esac
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857 (eval "$ac_try") 2>&5
22858 ac_status=$?
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); }; }; then
22861 ac_cv_member_siginfo_t_si_fd=yes
22862 else
22863 echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 cat >conftest.$ac_ext <<_ACEOF
22867 /* confdefs.h. */
22868 _ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22872 #include <signal.h>
22875 main ()
22877 static siginfo_t ac_aggr;
22878 if (sizeof ac_aggr.si_fd)
22879 return 0;
22881 return 0;
22883 _ACEOF
22884 rm -f conftest.$ac_objext
22885 if { (ac_try="$ac_compile"
22886 case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22889 esac
22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_compile") 2>conftest.er1
22892 ac_status=$?
22893 grep -v '^ *+' conftest.er1 >conftest.err
22894 rm -f conftest.er1
22895 cat conftest.err >&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); } &&
22898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22899 { (case "(($ac_try" in
22900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22901 *) ac_try_echo=$ac_try;;
22902 esac
22903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22904 (eval "$ac_try") 2>&5
22905 ac_status=$?
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); }; } &&
22908 { ac_try='test -s conftest.$ac_objext'
22909 { (case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22912 esac
22913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22914 (eval "$ac_try") 2>&5
22915 ac_status=$?
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 ac_cv_member_siginfo_t_si_fd=yes
22919 else
22920 echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22923 ac_cv_member_siginfo_t_si_fd=no
22926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22932 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
22933 if test $ac_cv_member_siginfo_t_si_fd = yes; then
22935 cat >>confdefs.h <<_ACEOF
22936 #define HAVE_SIGINFO_T_SI_FD 1
22937 _ACEOF
22943 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22944 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
22945 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22946 echo $ECHO_N "(cached) $ECHO_C" >&6
22947 else
22948 cat >conftest.$ac_ext <<_ACEOF
22949 /* confdefs.h. */
22950 _ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22954 #include <sys/types.h>
22955 #ifdef HAVE_SYS_MTIO_H
22956 #include <sys/mtio.h>
22957 #endif
22960 main ()
22962 static struct mtget ac_aggr;
22963 if (ac_aggr.mt_blksiz)
22964 return 0;
22966 return 0;
22968 _ACEOF
22969 rm -f conftest.$ac_objext
22970 if { (ac_try="$ac_compile"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22974 esac
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_compile") 2>conftest.er1
22977 ac_status=$?
22978 grep -v '^ *+' conftest.er1 >conftest.err
22979 rm -f conftest.er1
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } &&
22983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22984 { (case "(($ac_try" in
22985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22986 *) ac_try_echo=$ac_try;;
22987 esac
22988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22989 (eval "$ac_try") 2>&5
22990 ac_status=$?
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; } &&
22993 { ac_try='test -s conftest.$ac_objext'
22994 { (case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22997 esac
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999 (eval "$ac_try") 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; }; then
23003 ac_cv_member_struct_mtget_mt_blksiz=yes
23004 else
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23008 cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h. */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 #include <sys/types.h>
23015 #ifdef HAVE_SYS_MTIO_H
23016 #include <sys/mtio.h>
23017 #endif
23020 main ()
23022 static struct mtget ac_aggr;
23023 if (sizeof ac_aggr.mt_blksiz)
23024 return 0;
23026 return 0;
23028 _ACEOF
23029 rm -f conftest.$ac_objext
23030 if { (ac_try="$ac_compile"
23031 case "(($ac_try" in
23032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23033 *) ac_try_echo=$ac_try;;
23034 esac
23035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23036 (eval "$ac_compile") 2>conftest.er1
23037 ac_status=$?
23038 grep -v '^ *+' conftest.er1 >conftest.err
23039 rm -f conftest.er1
23040 cat conftest.err >&5
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); } &&
23043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23044 { (case "(($ac_try" in
23045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23046 *) ac_try_echo=$ac_try;;
23047 esac
23048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23049 (eval "$ac_try") 2>&5
23050 ac_status=$?
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; } &&
23053 { ac_try='test -s conftest.$ac_objext'
23054 { (case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23057 esac
23058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23059 (eval "$ac_try") 2>&5
23060 ac_status=$?
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; }; then
23063 ac_cv_member_struct_mtget_mt_blksiz=yes
23064 else
23065 echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23068 ac_cv_member_struct_mtget_mt_blksiz=no
23071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23076 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
23077 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
23078 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
23080 cat >>confdefs.h <<_ACEOF
23081 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
23082 _ACEOF
23086 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
23087 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
23088 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
23089 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 else
23091 cat >conftest.$ac_ext <<_ACEOF
23092 /* confdefs.h. */
23093 _ACEOF
23094 cat confdefs.h >>conftest.$ac_ext
23095 cat >>conftest.$ac_ext <<_ACEOF
23096 /* end confdefs.h. */
23097 #include <sys/types.h>
23098 #ifdef HAVE_SYS_MTIO_H
23099 #include <sys/mtio.h>
23100 #endif
23103 main ()
23105 static struct mtget ac_aggr;
23106 if (ac_aggr.mt_gstat)
23107 return 0;
23109 return 0;
23111 _ACEOF
23112 rm -f conftest.$ac_objext
23113 if { (ac_try="$ac_compile"
23114 case "(($ac_try" in
23115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23116 *) ac_try_echo=$ac_try;;
23117 esac
23118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23119 (eval "$ac_compile") 2>conftest.er1
23120 ac_status=$?
23121 grep -v '^ *+' conftest.er1 >conftest.err
23122 rm -f conftest.er1
23123 cat conftest.err >&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); } &&
23126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23127 { (case "(($ac_try" in
23128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129 *) ac_try_echo=$ac_try;;
23130 esac
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132 (eval "$ac_try") 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } &&
23136 { ac_try='test -s conftest.$ac_objext'
23137 { (case "(($ac_try" in
23138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139 *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142 (eval "$ac_try") 2>&5
23143 ac_status=$?
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; }; then
23146 ac_cv_member_struct_mtget_mt_gstat=yes
23147 else
23148 echo "$as_me: failed program was:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23151 cat >conftest.$ac_ext <<_ACEOF
23152 /* confdefs.h. */
23153 _ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h. */
23157 #include <sys/types.h>
23158 #ifdef HAVE_SYS_MTIO_H
23159 #include <sys/mtio.h>
23160 #endif
23163 main ()
23165 static struct mtget ac_aggr;
23166 if (sizeof ac_aggr.mt_gstat)
23167 return 0;
23169 return 0;
23171 _ACEOF
23172 rm -f conftest.$ac_objext
23173 if { (ac_try="$ac_compile"
23174 case "(($ac_try" in
23175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176 *) ac_try_echo=$ac_try;;
23177 esac
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179 (eval "$ac_compile") 2>conftest.er1
23180 ac_status=$?
23181 grep -v '^ *+' conftest.er1 >conftest.err
23182 rm -f conftest.er1
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
23186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23187 { (case "(($ac_try" in
23188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189 *) ac_try_echo=$ac_try;;
23190 esac
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192 (eval "$ac_try") 2>&5
23193 ac_status=$?
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); }; } &&
23196 { ac_try='test -s conftest.$ac_objext'
23197 { (case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23200 esac
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202 (eval "$ac_try") 2>&5
23203 ac_status=$?
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); }; }; then
23206 ac_cv_member_struct_mtget_mt_gstat=yes
23207 else
23208 echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23211 ac_cv_member_struct_mtget_mt_gstat=no
23214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23219 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
23220 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
23221 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
23223 cat >>confdefs.h <<_ACEOF
23224 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
23225 _ACEOF
23229 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
23230 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
23231 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
23232 echo $ECHO_N "(cached) $ECHO_C" >&6
23233 else
23234 cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h. */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23240 #include <sys/types.h>
23241 #ifdef HAVE_SYS_MTIO_H
23242 #include <sys/mtio.h>
23243 #endif
23246 main ()
23248 static struct mtget ac_aggr;
23249 if (ac_aggr.mt_blkno)
23250 return 0;
23252 return 0;
23254 _ACEOF
23255 rm -f conftest.$ac_objext
23256 if { (ac_try="$ac_compile"
23257 case "(($ac_try" in
23258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23260 esac
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_compile") 2>conftest.er1
23263 ac_status=$?
23264 grep -v '^ *+' conftest.er1 >conftest.err
23265 rm -f conftest.er1
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } &&
23269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23270 { (case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23273 esac
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_try") 2>&5
23276 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } &&
23279 { ac_try='test -s conftest.$ac_objext'
23280 { (case "(($ac_try" in
23281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282 *) ac_try_echo=$ac_try;;
23283 esac
23284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23285 (eval "$ac_try") 2>&5
23286 ac_status=$?
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); }; }; then
23289 ac_cv_member_struct_mtget_mt_blkno=yes
23290 else
23291 echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.$ac_ext >&5
23294 cat >conftest.$ac_ext <<_ACEOF
23295 /* confdefs.h. */
23296 _ACEOF
23297 cat confdefs.h >>conftest.$ac_ext
23298 cat >>conftest.$ac_ext <<_ACEOF
23299 /* end confdefs.h. */
23300 #include <sys/types.h>
23301 #ifdef HAVE_SYS_MTIO_H
23302 #include <sys/mtio.h>
23303 #endif
23306 main ()
23308 static struct mtget ac_aggr;
23309 if (sizeof ac_aggr.mt_blkno)
23310 return 0;
23312 return 0;
23314 _ACEOF
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23320 esac
23321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322 (eval "$ac_compile") 2>conftest.er1
23323 ac_status=$?
23324 grep -v '^ *+' conftest.er1 >conftest.err
23325 rm -f conftest.er1
23326 cat conftest.err >&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } &&
23329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23330 { (case "(($ac_try" in
23331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332 *) ac_try_echo=$ac_try;;
23333 esac
23334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23335 (eval "$ac_try") 2>&5
23336 ac_status=$?
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; } &&
23339 { ac_try='test -s conftest.$ac_objext'
23340 { (case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23343 esac
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_try") 2>&5
23346 ac_status=$?
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; }; then
23349 ac_cv_member_struct_mtget_mt_blkno=yes
23350 else
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23354 ac_cv_member_struct_mtget_mt_blkno=no
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23363 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
23364 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23366 cat >>confdefs.h <<_ACEOF
23367 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
23368 _ACEOF
23374 { echo "$as_me:$LINENO: checking for struct option.name" >&5
23375 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
23376 if test "${ac_cv_member_struct_option_name+set}" = set; then
23377 echo $ECHO_N "(cached) $ECHO_C" >&6
23378 else
23379 cat >conftest.$ac_ext <<_ACEOF
23380 /* confdefs.h. */
23381 _ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23385 #ifdef HAVE_GETOPT_H
23386 #include <getopt.h>
23387 #endif
23390 main ()
23392 static struct option ac_aggr;
23393 if (ac_aggr.name)
23394 return 0;
23396 return 0;
23398 _ACEOF
23399 rm -f conftest.$ac_objext
23400 if { (ac_try="$ac_compile"
23401 case "(($ac_try" in
23402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23403 *) ac_try_echo=$ac_try;;
23404 esac
23405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23406 (eval "$ac_compile") 2>conftest.er1
23407 ac_status=$?
23408 grep -v '^ *+' conftest.er1 >conftest.err
23409 rm -f conftest.er1
23410 cat conftest.err >&5
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); } &&
23413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23414 { (case "(($ac_try" in
23415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23416 *) ac_try_echo=$ac_try;;
23417 esac
23418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23419 (eval "$ac_try") 2>&5
23420 ac_status=$?
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); }; } &&
23423 { ac_try='test -s conftest.$ac_objext'
23424 { (case "(($ac_try" in
23425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23426 *) ac_try_echo=$ac_try;;
23427 esac
23428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23429 (eval "$ac_try") 2>&5
23430 ac_status=$?
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); }; }; then
23433 ac_cv_member_struct_option_name=yes
23434 else
23435 echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23438 cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h. */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 #ifdef HAVE_GETOPT_H
23445 #include <getopt.h>
23446 #endif
23449 main ()
23451 static struct option ac_aggr;
23452 if (sizeof ac_aggr.name)
23453 return 0;
23455 return 0;
23457 _ACEOF
23458 rm -f conftest.$ac_objext
23459 if { (ac_try="$ac_compile"
23460 case "(($ac_try" in
23461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23462 *) ac_try_echo=$ac_try;;
23463 esac
23464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23465 (eval "$ac_compile") 2>conftest.er1
23466 ac_status=$?
23467 grep -v '^ *+' conftest.er1 >conftest.err
23468 rm -f conftest.er1
23469 cat conftest.err >&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); } &&
23472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23473 { (case "(($ac_try" in
23474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475 *) ac_try_echo=$ac_try;;
23476 esac
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478 (eval "$ac_try") 2>&5
23479 ac_status=$?
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; } &&
23482 { ac_try='test -s conftest.$ac_objext'
23483 { (case "(($ac_try" in
23484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485 *) ac_try_echo=$ac_try;;
23486 esac
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488 (eval "$ac_try") 2>&5
23489 ac_status=$?
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; }; then
23492 ac_cv_member_struct_option_name=yes
23493 else
23494 echo "$as_me: failed program was:" >&5
23495 sed 's/^/| /' conftest.$ac_ext >&5
23497 ac_cv_member_struct_option_name=no
23500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23505 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23506 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
23507 if test $ac_cv_member_struct_option_name = yes; then
23509 cat >>confdefs.h <<_ACEOF
23510 #define HAVE_STRUCT_OPTION_NAME 1
23511 _ACEOF
23517 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23518 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23519 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23520 echo $ECHO_N "(cached) $ECHO_C" >&6
23521 else
23522 cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h. */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 $ac_includes_default
23530 main ()
23532 static struct stat ac_aggr;
23533 if (ac_aggr.st_blocks)
23534 return 0;
23536 return 0;
23538 _ACEOF
23539 rm -f conftest.$ac_objext
23540 if { (ac_try="$ac_compile"
23541 case "(($ac_try" in
23542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23543 *) ac_try_echo=$ac_try;;
23544 esac
23545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23546 (eval "$ac_compile") 2>conftest.er1
23547 ac_status=$?
23548 grep -v '^ *+' conftest.er1 >conftest.err
23549 rm -f conftest.er1
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } &&
23553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23554 { (case "(($ac_try" in
23555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556 *) ac_try_echo=$ac_try;;
23557 esac
23558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23559 (eval "$ac_try") 2>&5
23560 ac_status=$?
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); }; } &&
23563 { ac_try='test -s conftest.$ac_objext'
23564 { (case "(($ac_try" in
23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566 *) ac_try_echo=$ac_try;;
23567 esac
23568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23569 (eval "$ac_try") 2>&5
23570 ac_status=$?
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; }; then
23573 ac_cv_member_struct_stat_st_blocks=yes
23574 else
23575 echo "$as_me: failed program was:" >&5
23576 sed 's/^/| /' conftest.$ac_ext >&5
23578 cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h. */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 $ac_includes_default
23586 main ()
23588 static struct stat ac_aggr;
23589 if (sizeof ac_aggr.st_blocks)
23590 return 0;
23592 return 0;
23594 _ACEOF
23595 rm -f conftest.$ac_objext
23596 if { (ac_try="$ac_compile"
23597 case "(($ac_try" in
23598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599 *) ac_try_echo=$ac_try;;
23600 esac
23601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23602 (eval "$ac_compile") 2>conftest.er1
23603 ac_status=$?
23604 grep -v '^ *+' conftest.er1 >conftest.err
23605 rm -f conftest.er1
23606 cat conftest.err >&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } &&
23609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23610 { (case "(($ac_try" in
23611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23612 *) ac_try_echo=$ac_try;;
23613 esac
23614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23615 (eval "$ac_try") 2>&5
23616 ac_status=$?
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); }; } &&
23619 { ac_try='test -s conftest.$ac_objext'
23620 { (case "(($ac_try" in
23621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23622 *) ac_try_echo=$ac_try;;
23623 esac
23624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23625 (eval "$ac_try") 2>&5
23626 ac_status=$?
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; }; then
23629 ac_cv_member_struct_stat_st_blocks=yes
23630 else
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634 ac_cv_member_struct_stat_st_blocks=no
23637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23642 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23643 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23644 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23646 cat >>confdefs.h <<_ACEOF
23647 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23648 _ACEOF
23654 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23655 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23656 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23658 else
23659 cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h. */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h. */
23665 #ifdef HAVE_SYS_TYPES_H
23666 #include <sys/types.h>
23667 #endif
23668 #ifdef HAVE_NETINET_IN_H
23669 #include <netinet/in.h>
23670 #endif
23673 main ()
23675 static struct sockaddr_in6 ac_aggr;
23676 if (ac_aggr.sin6_scope_id)
23677 return 0;
23679 return 0;
23681 _ACEOF
23682 rm -f conftest.$ac_objext
23683 if { (ac_try="$ac_compile"
23684 case "(($ac_try" in
23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686 *) ac_try_echo=$ac_try;;
23687 esac
23688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23689 (eval "$ac_compile") 2>conftest.er1
23690 ac_status=$?
23691 grep -v '^ *+' conftest.er1 >conftest.err
23692 rm -f conftest.er1
23693 cat conftest.err >&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); } &&
23696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23697 { (case "(($ac_try" in
23698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699 *) ac_try_echo=$ac_try;;
23700 esac
23701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23702 (eval "$ac_try") 2>&5
23703 ac_status=$?
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); }; } &&
23706 { ac_try='test -s conftest.$ac_objext'
23707 { (case "(($ac_try" in
23708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709 *) ac_try_echo=$ac_try;;
23710 esac
23711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23712 (eval "$ac_try") 2>&5
23713 ac_status=$?
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; }; then
23716 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23717 else
23718 echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23721 cat >conftest.$ac_ext <<_ACEOF
23722 /* confdefs.h. */
23723 _ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h. */
23727 #ifdef HAVE_SYS_TYPES_H
23728 #include <sys/types.h>
23729 #endif
23730 #ifdef HAVE_NETINET_IN_H
23731 #include <netinet/in.h>
23732 #endif
23735 main ()
23737 static struct sockaddr_in6 ac_aggr;
23738 if (sizeof ac_aggr.sin6_scope_id)
23739 return 0;
23741 return 0;
23743 _ACEOF
23744 rm -f conftest.$ac_objext
23745 if { (ac_try="$ac_compile"
23746 case "(($ac_try" in
23747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23748 *) ac_try_echo=$ac_try;;
23749 esac
23750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23751 (eval "$ac_compile") 2>conftest.er1
23752 ac_status=$?
23753 grep -v '^ *+' conftest.er1 >conftest.err
23754 rm -f conftest.er1
23755 cat conftest.err >&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } &&
23758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23759 { (case "(($ac_try" in
23760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761 *) ac_try_echo=$ac_try;;
23762 esac
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764 (eval "$ac_try") 2>&5
23765 ac_status=$?
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); }; } &&
23768 { ac_try='test -s conftest.$ac_objext'
23769 { (case "(($ac_try" in
23770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771 *) ac_try_echo=$ac_try;;
23772 esac
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774 (eval "$ac_try") 2>&5
23775 ac_status=$?
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); }; }; then
23778 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23779 else
23780 echo "$as_me: failed program was:" >&5
23781 sed 's/^/| /' conftest.$ac_ext >&5
23783 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23791 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23792 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23793 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23795 cat >>confdefs.h <<_ACEOF
23796 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23797 _ACEOF
23803 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23804 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23805 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23806 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 else
23808 cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h. */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814 #ifdef HAVE_SYS_TYPES_H
23815 #include <sys/types.h>
23816 #endif
23817 #ifdef HAVE_NETINET_IN_H
23818 # include <netinet/in.h>
23819 #endif
23820 #ifdef HAVE_ARPA_NAMESER_H
23821 # include <arpa/nameser.h>
23822 #endif
23825 main ()
23827 static ns_msg ac_aggr;
23828 if (ac_aggr._msg_ptr)
23829 return 0;
23831 return 0;
23833 _ACEOF
23834 rm -f conftest.$ac_objext
23835 if { (ac_try="$ac_compile"
23836 case "(($ac_try" in
23837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23839 esac
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_compile") 2>conftest.er1
23842 ac_status=$?
23843 grep -v '^ *+' conftest.er1 >conftest.err
23844 rm -f conftest.er1
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } &&
23848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23849 { (case "(($ac_try" in
23850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851 *) ac_try_echo=$ac_try;;
23852 esac
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854 (eval "$ac_try") 2>&5
23855 ac_status=$?
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); }; } &&
23858 { ac_try='test -s conftest.$ac_objext'
23859 { (case "(($ac_try" in
23860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23861 *) ac_try_echo=$ac_try;;
23862 esac
23863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23864 (eval "$ac_try") 2>&5
23865 ac_status=$?
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); }; }; then
23868 ac_cv_member_ns_msg__msg_ptr=yes
23869 else
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23873 cat >conftest.$ac_ext <<_ACEOF
23874 /* confdefs.h. */
23875 _ACEOF
23876 cat confdefs.h >>conftest.$ac_ext
23877 cat >>conftest.$ac_ext <<_ACEOF
23878 /* end confdefs.h. */
23879 #ifdef HAVE_SYS_TYPES_H
23880 #include <sys/types.h>
23881 #endif
23882 #ifdef HAVE_NETINET_IN_H
23883 # include <netinet/in.h>
23884 #endif
23885 #ifdef HAVE_ARPA_NAMESER_H
23886 # include <arpa/nameser.h>
23887 #endif
23890 main ()
23892 static ns_msg ac_aggr;
23893 if (sizeof ac_aggr._msg_ptr)
23894 return 0;
23896 return 0;
23898 _ACEOF
23899 rm -f conftest.$ac_objext
23900 if { (ac_try="$ac_compile"
23901 case "(($ac_try" in
23902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903 *) ac_try_echo=$ac_try;;
23904 esac
23905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23906 (eval "$ac_compile") 2>conftest.er1
23907 ac_status=$?
23908 grep -v '^ *+' conftest.er1 >conftest.err
23909 rm -f conftest.er1
23910 cat conftest.err >&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } &&
23913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23914 { (case "(($ac_try" in
23915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916 *) ac_try_echo=$ac_try;;
23917 esac
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919 (eval "$ac_try") 2>&5
23920 ac_status=$?
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); }; } &&
23923 { ac_try='test -s conftest.$ac_objext'
23924 { (case "(($ac_try" in
23925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926 *) ac_try_echo=$ac_try;;
23927 esac
23928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23929 (eval "$ac_try") 2>&5
23930 ac_status=$?
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); }; }; then
23933 ac_cv_member_ns_msg__msg_ptr=yes
23934 else
23935 echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23938 ac_cv_member_ns_msg__msg_ptr=no
23941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23946 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23947 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23948 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23950 cat >>confdefs.h <<_ACEOF
23951 #define HAVE_NS_MSG__MSG_PTR 1
23952 _ACEOF
23958 { echo "$as_me:$LINENO: checking for timezone variable" >&5
23959 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
23960 if test "${ac_cv_have_timezone+set}" = set; then
23961 echo $ECHO_N "(cached) $ECHO_C" >&6
23962 else
23963 cat >conftest.$ac_ext <<_ACEOF
23964 /* confdefs.h. */
23965 _ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23969 #include <time.h>
23971 main ()
23973 timezone;
23975 return 0;
23977 _ACEOF
23978 rm -f conftest.$ac_objext conftest$ac_exeext
23979 if { (ac_try="$ac_link"
23980 case "(($ac_try" in
23981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982 *) ac_try_echo=$ac_try;;
23983 esac
23984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23985 (eval "$ac_link") 2>conftest.er1
23986 ac_status=$?
23987 grep -v '^ *+' conftest.er1 >conftest.err
23988 rm -f conftest.er1
23989 cat conftest.err >&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } &&
23992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23993 { (case "(($ac_try" in
23994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995 *) ac_try_echo=$ac_try;;
23996 esac
23997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23998 (eval "$ac_try") 2>&5
23999 ac_status=$?
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); }; } &&
24002 { ac_try='test -s conftest$ac_exeext'
24003 { (case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_try") 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 ac_cv_have_timezone="yes"
24013 else
24014 echo "$as_me: failed program was:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24017 ac_cv_have_timezone="no"
24020 rm -f core conftest.err conftest.$ac_objext \
24021 conftest$ac_exeext conftest.$ac_ext
24023 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
24024 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
24025 if test "$ac_cv_have_timezone" = "yes"
24026 then
24028 cat >>confdefs.h <<\_ACEOF
24029 #define HAVE_TIMEZONE 1
24030 _ACEOF
24033 { echo "$as_me:$LINENO: checking for daylight variable" >&5
24034 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
24035 if test "${ac_cv_have_daylight+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24037 else
24038 cat >conftest.$ac_ext <<_ACEOF
24039 /* confdefs.h. */
24040 _ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h. */
24044 #include <time.h>
24046 main ()
24048 daylight;
24050 return 0;
24052 _ACEOF
24053 rm -f conftest.$ac_objext conftest$ac_exeext
24054 if { (ac_try="$ac_link"
24055 case "(($ac_try" in
24056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057 *) ac_try_echo=$ac_try;;
24058 esac
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060 (eval "$ac_link") 2>conftest.er1
24061 ac_status=$?
24062 grep -v '^ *+' conftest.er1 >conftest.err
24063 rm -f conftest.er1
24064 cat conftest.err >&5
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } &&
24067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24068 { (case "(($ac_try" in
24069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24070 *) ac_try_echo=$ac_try;;
24071 esac
24072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24073 (eval "$ac_try") 2>&5
24074 ac_status=$?
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); }; } &&
24077 { ac_try='test -s conftest$ac_exeext'
24078 { (case "(($ac_try" in
24079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24080 *) ac_try_echo=$ac_try;;
24081 esac
24082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24083 (eval "$ac_try") 2>&5
24084 ac_status=$?
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); }; }; then
24087 ac_cv_have_daylight="yes"
24088 else
24089 echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24092 ac_cv_have_daylight="no"
24095 rm -f core conftest.err conftest.$ac_objext \
24096 conftest$ac_exeext conftest.$ac_ext
24098 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
24099 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
24100 if test "$ac_cv_have_daylight" = "yes"
24101 then
24103 cat >>confdefs.h <<\_ACEOF
24104 #define HAVE_DAYLIGHT 1
24105 _ACEOF
24110 case $host_cpu in
24111 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
24112 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
24113 if test "${ac_cv_cpp_def___i386__+set}" = set; then
24114 echo $ECHO_N "(cached) $ECHO_C" >&6
24115 else
24116 cat >conftest.$ac_ext <<_ACEOF
24117 /* confdefs.h. */
24118 _ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h. */
24122 #ifndef __i386__
24124 #endif
24125 _ACEOF
24126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24127 $EGREP "yes" >/dev/null 2>&1; then
24128 ac_cv_cpp_def___i386__=yes
24129 else
24130 ac_cv_cpp_def___i386__=no
24132 rm -f conftest*
24135 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
24136 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
24137 if test $ac_cv_cpp_def___i386__ = yes; then
24138 CFLAGS="$CFLAGS -D__i386__"
24139 LINTFLAGS="$LINTFLAGS -D__i386__"
24142 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
24143 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
24144 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24146 else
24147 cat >conftest.$ac_ext <<_ACEOF
24148 /* confdefs.h. */
24149 _ACEOF
24150 cat confdefs.h >>conftest.$ac_ext
24151 cat >>conftest.$ac_ext <<_ACEOF
24152 /* end confdefs.h. */
24153 #ifndef __x86_64__
24155 #endif
24156 _ACEOF
24157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24158 $EGREP "yes" >/dev/null 2>&1; then
24159 ac_cv_cpp_def___x86_64__=yes
24160 else
24161 ac_cv_cpp_def___x86_64__=no
24163 rm -f conftest*
24166 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
24167 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
24168 if test $ac_cv_cpp_def___x86_64__ = yes; then
24169 CFLAGS="$CFLAGS -D__x86_64__"
24170 LINTFLAGS="$LINTFLAGS -D__x86_64__"
24173 { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
24174 echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
24175 if test "${ac_cv_cpp_def__WIN64+set}" = set; then
24176 echo $ECHO_N "(cached) $ECHO_C" >&6
24177 else
24178 cat >conftest.$ac_ext <<_ACEOF
24179 /* confdefs.h. */
24180 _ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h. */
24184 #ifndef _WIN64
24186 #endif
24187 _ACEOF
24188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24189 $EGREP "yes" >/dev/null 2>&1; then
24190 ac_cv_cpp_def__WIN64=yes
24191 else
24192 ac_cv_cpp_def__WIN64=no
24194 rm -f conftest*
24197 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
24198 echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
24199 if test $ac_cv_cpp_def__WIN64 = yes; then
24200 CFLAGS="$CFLAGS -D_WIN64"
24201 LINTFLAGS="$LINTFLAGS -D_WIN64"
24204 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
24205 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
24206 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
24207 echo $ECHO_N "(cached) $ECHO_C" >&6
24208 else
24209 cat >conftest.$ac_ext <<_ACEOF
24210 /* confdefs.h. */
24211 _ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h. */
24215 #ifndef __ALPHA__
24217 #endif
24218 _ACEOF
24219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24220 $EGREP "yes" >/dev/null 2>&1; then
24221 ac_cv_cpp_def___ALPHA__=yes
24222 else
24223 ac_cv_cpp_def___ALPHA__=no
24225 rm -f conftest*
24228 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
24229 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
24230 if test $ac_cv_cpp_def___ALPHA__ = yes; then
24231 CFLAGS="$CFLAGS -D__ALPHA__"
24232 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
24235 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
24236 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
24237 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
24238 echo $ECHO_N "(cached) $ECHO_C" >&6
24239 else
24240 cat >conftest.$ac_ext <<_ACEOF
24241 /* confdefs.h. */
24242 _ACEOF
24243 cat confdefs.h >>conftest.$ac_ext
24244 cat >>conftest.$ac_ext <<_ACEOF
24245 /* end confdefs.h. */
24246 #ifndef __sparc__
24248 #endif
24249 _ACEOF
24250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24251 $EGREP "yes" >/dev/null 2>&1; then
24252 ac_cv_cpp_def___sparc__=yes
24253 else
24254 ac_cv_cpp_def___sparc__=no
24256 rm -f conftest*
24259 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
24260 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
24261 if test $ac_cv_cpp_def___sparc__ = yes; then
24262 CFLAGS="$CFLAGS -D__sparc__"
24263 LINTFLAGS="$LINTFLAGS -D__sparc__"
24266 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
24267 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
24268 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
24269 echo $ECHO_N "(cached) $ECHO_C" >&6
24270 else
24271 cat >conftest.$ac_ext <<_ACEOF
24272 /* confdefs.h. */
24273 _ACEOF
24274 cat confdefs.h >>conftest.$ac_ext
24275 cat >>conftest.$ac_ext <<_ACEOF
24276 /* end confdefs.h. */
24277 #ifndef __powerpc__
24279 #endif
24280 _ACEOF
24281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24282 $EGREP "yes" >/dev/null 2>&1; then
24283 ac_cv_cpp_def___powerpc__=yes
24284 else
24285 ac_cv_cpp_def___powerpc__=no
24287 rm -f conftest*
24290 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
24291 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
24292 if test $ac_cv_cpp_def___powerpc__ = yes; then
24293 CFLAGS="$CFLAGS -D__powerpc__"
24294 LINTFLAGS="$LINTFLAGS -D__powerpc__"
24297 esac
24299 case $host_vendor in
24300 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
24301 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
24302 if test "${ac_cv_cpp_def___sun__+set}" = set; then
24303 echo $ECHO_N "(cached) $ECHO_C" >&6
24304 else
24305 cat >conftest.$ac_ext <<_ACEOF
24306 /* confdefs.h. */
24307 _ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h. */
24311 #ifndef __sun__
24313 #endif
24314 _ACEOF
24315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24316 $EGREP "yes" >/dev/null 2>&1; then
24317 ac_cv_cpp_def___sun__=yes
24318 else
24319 ac_cv_cpp_def___sun__=no
24321 rm -f conftest*
24324 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24325 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
24326 if test $ac_cv_cpp_def___sun__ = yes; then
24327 CFLAGS="$CFLAGS -D__sun__"
24328 LINTFLAGS="$LINTFLAGS -D__sun__"
24331 esac
24337 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
24339 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
24341 ac_config_commands="$ac_config_commands dlls/kernel/messages"
24343 ac_config_commands="$ac_config_commands dlls/user/resources"
24345 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
24347 ac_config_commands="$ac_config_commands include/wine"
24350 MAKE_RULES=Make.rules
24353 MAKE_DLL_RULES=dlls/Makedll.rules
24356 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24359 MAKE_TEST_RULES=dlls/Maketest.rules
24362 MAKE_LIB_RULES=libs/Makelib.rules
24365 MAKE_PROG_RULES=programs/Makeprog.rules
24368 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hlink/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
24371 cat >confcache <<\_ACEOF
24372 # This file is a shell script that caches the results of configure
24373 # tests run on this system so they can be shared between configure
24374 # scripts and configure runs, see configure's option --config-cache.
24375 # It is not useful on other systems. If it contains results you don't
24376 # want to keep, you may remove or edit it.
24378 # config.status only pays attention to the cache file if you give it
24379 # the --recheck option to rerun configure.
24381 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24382 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24383 # following values.
24385 _ACEOF
24387 # The following way of writing the cache mishandles newlines in values,
24388 # but we know of no workaround that is simple, portable, and efficient.
24389 # So, we kill variables containing newlines.
24390 # Ultrix sh set writes to stderr and can't be redirected directly,
24391 # and sets the high bit in the cache file unless we assign to the vars.
24393 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24394 eval ac_val=\$$ac_var
24395 case $ac_val in #(
24396 *${as_nl}*)
24397 case $ac_var in #(
24398 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24399 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24400 esac
24401 case $ac_var in #(
24402 _ | IFS | as_nl) ;; #(
24403 *) $as_unset $ac_var ;;
24404 esac ;;
24405 esac
24406 done
24408 (set) 2>&1 |
24409 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24410 *${as_nl}ac_space=\ *)
24411 # `set' does not quote correctly, so add quotes (double-quote
24412 # substitution turns \\\\ into \\, and sed turns \\ into \).
24413 sed -n \
24414 "s/'/'\\\\''/g;
24415 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24416 ;; #(
24418 # `set' quotes correctly as required by POSIX, so do not add quotes.
24419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24421 esac |
24422 sort
24424 sed '
24425 /^ac_cv_env_/b end
24426 t clear
24427 :clear
24428 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24429 t end
24430 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24431 :end' >>confcache
24432 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24433 if test -w "$cache_file"; then
24434 test "x$cache_file" != "x/dev/null" &&
24435 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24436 echo "$as_me: updating cache $cache_file" >&6;}
24437 cat confcache >$cache_file
24438 else
24439 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24440 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24443 rm -f confcache
24445 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24446 # Let make expand exec_prefix.
24447 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24449 DEFS=-DHAVE_CONFIG_H
24451 ac_libobjs=
24452 ac_ltlibobjs=
24453 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24454 # 1. Remove the extension, and $U if already installed.
24455 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24456 ac_i=`echo "$ac_i" | sed "$ac_script"`
24457 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24458 # will be set to the directory where LIBOBJS objects are built.
24459 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24460 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24461 done
24462 LIBOBJS=$ac_libobjs
24464 LTLIBOBJS=$ac_ltlibobjs
24468 : ${CONFIG_STATUS=./config.status}
24469 ac_clean_files_save=$ac_clean_files
24470 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24471 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24472 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24473 cat >$CONFIG_STATUS <<_ACEOF
24474 #! $SHELL
24475 # Generated by $as_me.
24476 # Run this file to recreate the current configuration.
24477 # Compiler output produced by configure, useful for debugging
24478 # configure, is in config.log if it exists.
24480 debug=false
24481 ac_cs_recheck=false
24482 ac_cs_silent=false
24483 SHELL=\${CONFIG_SHELL-$SHELL}
24484 _ACEOF
24486 cat >>$CONFIG_STATUS <<\_ACEOF
24487 ## --------------------- ##
24488 ## M4sh Initialization. ##
24489 ## --------------------- ##
24491 # Be Bourne compatible
24492 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24493 emulate sh
24494 NULLCMD=:
24495 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24496 # is contrary to our usage. Disable this feature.
24497 alias -g '${1+"$@"}'='"$@"'
24498 setopt NO_GLOB_SUBST
24499 else
24500 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24502 BIN_SH=xpg4; export BIN_SH # for Tru64
24503 DUALCASE=1; export DUALCASE # for MKS sh
24506 # PATH needs CR
24507 # Avoid depending upon Character Ranges.
24508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24511 as_cr_digits='0123456789'
24512 as_cr_alnum=$as_cr_Letters$as_cr_digits
24514 # The user is always right.
24515 if test "${PATH_SEPARATOR+set}" != set; then
24516 echo "#! /bin/sh" >conf$$.sh
24517 echo "exit 0" >>conf$$.sh
24518 chmod +x conf$$.sh
24519 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24520 PATH_SEPARATOR=';'
24521 else
24522 PATH_SEPARATOR=:
24524 rm -f conf$$.sh
24527 # Support unset when possible.
24528 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24529 as_unset=unset
24530 else
24531 as_unset=false
24535 # IFS
24536 # We need space, tab and new line, in precisely that order. Quoting is
24537 # there to prevent editors from complaining about space-tab.
24538 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24539 # splitting by setting IFS to empty value.)
24540 as_nl='
24542 IFS=" "" $as_nl"
24544 # Find who we are. Look in the path if we contain no directory separator.
24545 case $0 in
24546 *[\\/]* ) as_myself=$0 ;;
24547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24548 for as_dir in $PATH
24550 IFS=$as_save_IFS
24551 test -z "$as_dir" && as_dir=.
24552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24553 done
24554 IFS=$as_save_IFS
24557 esac
24558 # We did not find ourselves, most probably we were run as `sh COMMAND'
24559 # in which case we are not to be found in the path.
24560 if test "x$as_myself" = x; then
24561 as_myself=$0
24563 if test ! -f "$as_myself"; then
24564 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24565 { (exit 1); exit 1; }
24568 # Work around bugs in pre-3.0 UWIN ksh.
24569 for as_var in ENV MAIL MAILPATH
24570 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24571 done
24572 PS1='$ '
24573 PS2='> '
24574 PS4='+ '
24576 # NLS nuisances.
24577 for as_var in \
24578 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24579 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24580 LC_TELEPHONE LC_TIME
24582 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24583 eval $as_var=C; export $as_var
24584 else
24585 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24587 done
24589 # Required to use basename.
24590 if expr a : '\(a\)' >/dev/null 2>&1 &&
24591 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24592 as_expr=expr
24593 else
24594 as_expr=false
24597 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24598 as_basename=basename
24599 else
24600 as_basename=false
24604 # Name of the executable.
24605 as_me=`$as_basename -- "$0" ||
24606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24607 X"$0" : 'X\(//\)$' \| \
24608 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24609 echo X/"$0" |
24610 sed '/^.*\/\([^/][^/]*\)\/*$/{
24611 s//\1/
24614 /^X\/\(\/\/\)$/{
24615 s//\1/
24618 /^X\/\(\/\).*/{
24619 s//\1/
24622 s/.*/./; q'`
24624 # CDPATH.
24625 $as_unset CDPATH
24629 as_lineno_1=$LINENO
24630 as_lineno_2=$LINENO
24631 test "x$as_lineno_1" != "x$as_lineno_2" &&
24632 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24634 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24635 # uniformly replaced by the line number. The first 'sed' inserts a
24636 # line-number line after each line using $LINENO; the second 'sed'
24637 # does the real work. The second script uses 'N' to pair each
24638 # line-number line with the line containing $LINENO, and appends
24639 # trailing '-' during substitution so that $LINENO is not a special
24640 # case at line end.
24641 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24642 # scripts with optimization help from Paolo Bonzini. Blame Lee
24643 # E. McMahon (1931-1989) for sed's syntax. :-)
24644 sed -n '
24646 /[$]LINENO/=
24647 ' <$as_myself |
24648 sed '
24649 s/[$]LINENO.*/&-/
24650 t lineno
24652 :lineno
24654 :loop
24655 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24656 t loop
24657 s/-\n.*//
24658 ' >$as_me.lineno &&
24659 chmod +x "$as_me.lineno" ||
24660 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24661 { (exit 1); exit 1; }; }
24663 # Don't try to exec as it changes $[0], causing all sort of problems
24664 # (the dirname of $[0] is not the place where we might find the
24665 # original and so on. Autoconf is especially sensitive to this).
24666 . "./$as_me.lineno"
24667 # Exit status is that of the last command.
24668 exit
24672 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24673 as_dirname=dirname
24674 else
24675 as_dirname=false
24678 ECHO_C= ECHO_N= ECHO_T=
24679 case `echo -n x` in
24680 -n*)
24681 case `echo 'x\c'` in
24682 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24683 *) ECHO_C='\c';;
24684 esac;;
24686 ECHO_N='-n';;
24687 esac
24689 if expr a : '\(a\)' >/dev/null 2>&1 &&
24690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24691 as_expr=expr
24692 else
24693 as_expr=false
24696 rm -f conf$$ conf$$.exe conf$$.file
24697 if test -d conf$$.dir; then
24698 rm -f conf$$.dir/conf$$.file
24699 else
24700 rm -f conf$$.dir
24701 mkdir conf$$.dir
24703 echo >conf$$.file
24704 if ln -s conf$$.file conf$$ 2>/dev/null; then
24705 as_ln_s='ln -s'
24706 # ... but there are two gotchas:
24707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24709 # In both cases, we have to default to `cp -p'.
24710 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24711 as_ln_s='cp -p'
24712 elif ln conf$$.file conf$$ 2>/dev/null; then
24713 as_ln_s=ln
24714 else
24715 as_ln_s='cp -p'
24717 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24718 rmdir conf$$.dir 2>/dev/null
24720 if mkdir -p . 2>/dev/null; then
24721 as_mkdir_p=:
24722 else
24723 test -d ./-p && rmdir ./-p
24724 as_mkdir_p=false
24727 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
24728 # systems may use methods other than mode bits to determine executability.
24729 cat >conf$$.file <<_ASEOF
24730 #! /bin/sh
24731 exit 0
24732 _ASEOF
24733 chmod +x conf$$.file
24734 if test -x conf$$.file >/dev/null 2>&1; then
24735 as_executable_p="test -x"
24736 else
24737 as_executable_p=:
24739 rm -f conf$$.file
24741 # Sed expression to map a string onto a valid CPP name.
24742 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24744 # Sed expression to map a string onto a valid variable name.
24745 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24748 exec 6>&1
24750 # Save the log message, to keep $[0] and so on meaningful, and to
24751 # report actual input values of CONFIG_FILES etc. instead of their
24752 # values after options handling.
24753 ac_log="
24754 This file was extended by Wine $as_me 0.9.17, which was
24755 generated by GNU Autoconf 2.60a. Invocation command line was
24757 CONFIG_FILES = $CONFIG_FILES
24758 CONFIG_HEADERS = $CONFIG_HEADERS
24759 CONFIG_LINKS = $CONFIG_LINKS
24760 CONFIG_COMMANDS = $CONFIG_COMMANDS
24761 $ $0 $@
24763 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24766 _ACEOF
24768 cat >>$CONFIG_STATUS <<_ACEOF
24769 # Files that config.status was made for.
24770 config_files="$ac_config_files"
24771 config_headers="$ac_config_headers"
24772 config_commands="$ac_config_commands"
24774 _ACEOF
24776 cat >>$CONFIG_STATUS <<\_ACEOF
24777 ac_cs_usage="\
24778 \`$as_me' instantiates files from templates according to the
24779 current configuration.
24781 Usage: $0 [OPTIONS] [FILE]...
24783 -h, --help print this help, then exit
24784 -V, --version print version number, then exit
24785 -q, --quiet do not print progress messages
24786 -d, --debug don't remove temporary files
24787 --recheck update $as_me by reconfiguring in the same conditions
24788 --file=FILE[:TEMPLATE]
24789 instantiate the configuration file FILE
24790 --header=FILE[:TEMPLATE]
24791 instantiate the configuration header FILE
24793 Configuration files:
24794 $config_files
24796 Configuration headers:
24797 $config_headers
24799 Configuration commands:
24800 $config_commands
24802 Report bugs to <bug-autoconf@gnu.org>."
24804 _ACEOF
24805 cat >>$CONFIG_STATUS <<_ACEOF
24806 ac_cs_version="\\
24807 Wine config.status 0.9.17
24808 configured by $0, generated by GNU Autoconf 2.60a,
24809 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24811 Copyright (C) 2006 Free Software Foundation, Inc.
24812 This config.status script is free software; the Free Software Foundation
24813 gives unlimited permission to copy, distribute and modify it."
24815 ac_pwd='$ac_pwd'
24816 srcdir='$srcdir'
24817 INSTALL='$INSTALL'
24818 _ACEOF
24820 cat >>$CONFIG_STATUS <<\_ACEOF
24821 # If no file are specified by the user, then we need to provide default
24822 # value. By we need to know if files were specified by the user.
24823 ac_need_defaults=:
24824 while test $# != 0
24826 case $1 in
24827 --*=*)
24828 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24829 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24830 ac_shift=:
24833 ac_option=$1
24834 ac_optarg=$2
24835 ac_shift=shift
24837 esac
24839 case $ac_option in
24840 # Handling of the options.
24841 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24842 ac_cs_recheck=: ;;
24843 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24844 echo "$ac_cs_version"; exit ;;
24845 --debug | --debu | --deb | --de | --d | -d )
24846 debug=: ;;
24847 --file | --fil | --fi | --f )
24848 $ac_shift
24849 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24850 ac_need_defaults=false;;
24851 --header | --heade | --head | --hea )
24852 $ac_shift
24853 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24854 ac_need_defaults=false;;
24855 --he | --h)
24856 # Conflict between --help and --header
24857 { echo "$as_me: error: ambiguous option: $1
24858 Try \`$0 --help' for more information." >&2
24859 { (exit 1); exit 1; }; };;
24860 --help | --hel | -h )
24861 echo "$ac_cs_usage"; exit ;;
24862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24863 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24864 ac_cs_silent=: ;;
24866 # This is an error.
24867 -*) { echo "$as_me: error: unrecognized option: $1
24868 Try \`$0 --help' for more information." >&2
24869 { (exit 1); exit 1; }; } ;;
24871 *) ac_config_targets="$ac_config_targets $1"
24872 ac_need_defaults=false ;;
24874 esac
24875 shift
24876 done
24878 ac_configure_extra_args=
24880 if $ac_cs_silent; then
24881 exec 6>/dev/null
24882 ac_configure_extra_args="$ac_configure_extra_args --silent"
24885 _ACEOF
24886 cat >>$CONFIG_STATUS <<_ACEOF
24887 if \$ac_cs_recheck; then
24888 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24889 CONFIG_SHELL=$SHELL
24890 export CONFIG_SHELL
24891 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24894 _ACEOF
24895 cat >>$CONFIG_STATUS <<\_ACEOF
24896 exec 5>>config.log
24898 echo
24899 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24900 ## Running $as_me. ##
24901 _ASBOX
24902 echo "$ac_log"
24903 } >&5
24905 _ACEOF
24906 cat >>$CONFIG_STATUS <<_ACEOF
24907 _ACEOF
24909 cat >>$CONFIG_STATUS <<\_ACEOF
24911 # Handling of arguments.
24912 for ac_config_target in $ac_config_targets
24914 case $ac_config_target in
24915 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24916 "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24917 "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24918 "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24919 "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24920 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24921 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24922 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24923 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24924 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24925 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24926 "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
24927 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24928 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24929 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24930 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24931 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24932 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24933 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24934 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24935 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24936 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24937 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24938 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24939 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24940 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24941 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24942 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24943 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24944 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
24945 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
24946 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24947 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24948 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
24949 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
24950 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
24951 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24952 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24953 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24954 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
24955 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
24956 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24957 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24958 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24959 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24960 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24961 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24962 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24963 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24964 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24965 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24966 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24967 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24968 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24969 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24970 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24971 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24972 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24973 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24974 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24975 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24976 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24977 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24978 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24979 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24980 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24981 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24982 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24983 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24984 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24985 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24986 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24987 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24988 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24989 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24990 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24991 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24992 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24993 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24994 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24995 "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24996 "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24997 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24998 "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24999 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
25000 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
25001 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
25002 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
25003 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
25004 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
25005 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
25006 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
25007 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
25008 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
25009 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
25010 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
25011 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
25012 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
25013 "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
25014 "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
25015 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
25016 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
25017 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
25018 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
25019 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
25020 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
25021 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
25022 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
25023 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
25024 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
25025 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
25026 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
25027 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
25028 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
25029 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
25030 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
25031 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
25032 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
25033 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
25034 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
25035 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
25036 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
25037 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
25038 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
25039 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
25040 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
25041 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
25042 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
25043 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
25044 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
25045 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
25046 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
25047 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
25048 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
25049 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
25050 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
25051 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
25052 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
25053 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
25054 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
25055 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
25056 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
25057 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
25058 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
25059 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
25060 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
25061 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
25062 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
25063 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
25064 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
25065 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
25066 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
25067 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
25068 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
25069 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
25070 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
25071 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
25072 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
25073 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
25074 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
25075 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
25076 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
25077 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
25078 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
25079 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
25080 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
25081 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
25082 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
25083 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
25084 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
25085 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
25086 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
25087 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
25088 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
25089 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
25090 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
25091 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
25092 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
25093 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
25094 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
25095 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
25096 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
25097 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
25098 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
25099 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
25100 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
25101 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
25102 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
25103 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
25104 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
25105 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
25106 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
25107 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
25108 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
25109 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
25110 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
25111 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
25112 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
25113 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
25114 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
25115 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
25116 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
25117 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
25118 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
25119 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
25120 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
25121 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
25122 "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
25123 "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
25124 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
25125 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
25126 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
25127 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
25128 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
25129 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
25130 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
25131 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
25132 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
25133 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
25134 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
25135 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
25136 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
25137 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
25138 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
25139 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
25140 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
25141 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
25142 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
25143 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
25144 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
25145 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
25146 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
25147 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
25148 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
25149 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
25150 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
25151 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
25152 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
25153 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
25154 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
25155 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
25156 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
25157 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
25158 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
25159 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
25160 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
25161 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
25162 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
25163 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
25164 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
25165 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
25166 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
25167 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
25168 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
25169 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
25170 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
25171 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
25172 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
25173 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25174 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
25175 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
25176 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
25177 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
25178 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
25179 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
25180 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
25181 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
25182 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
25183 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
25184 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
25185 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
25186 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
25187 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
25188 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
25189 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
25190 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
25191 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
25192 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
25193 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
25194 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
25195 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
25196 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
25197 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
25198 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
25199 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
25200 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
25201 "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
25202 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
25203 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
25204 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
25205 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
25206 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
25207 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
25208 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
25209 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
25210 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
25211 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
25212 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
25213 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
25214 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
25215 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
25216 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
25217 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25218 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
25219 "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
25220 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
25221 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
25222 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
25223 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
25224 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
25226 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25227 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25228 { (exit 1); exit 1; }; };;
25229 esac
25230 done
25233 # If the user did not use the arguments to specify the items to instantiate,
25234 # then the envvar interface is used. Set only those that are not.
25235 # We use the long form for the default assignment because of an extremely
25236 # bizarre bug on SunOS 4.1.3.
25237 if $ac_need_defaults; then
25238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25239 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25240 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25243 # Have a temporary directory for convenience. Make it in the build tree
25244 # simply because there is no reason against having it here, and in addition,
25245 # creating and moving files from /tmp can sometimes cause problems.
25246 # Hook for its removal unless debugging.
25247 # Note that there is a small window in which the directory will not be cleaned:
25248 # after its creation but before its name has been assigned to `$tmp'.
25249 $debug ||
25251 tmp=
25252 trap 'exit_status=$?
25253 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25255 trap '{ (exit 1); exit 1; }' 1 2 13 15
25257 # Create a (secure) tmp directory for tmp files.
25260 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25261 test -n "$tmp" && test -d "$tmp"
25262 } ||
25264 tmp=./conf$$-$RANDOM
25265 (umask 077 && mkdir "$tmp")
25266 } ||
25268 echo "$me: cannot create a temporary directory in ." >&2
25269 { (exit 1); exit 1; }
25273 # Set up the sed scripts for CONFIG_FILES section.
25276 # No need to generate the scripts if there are no CONFIG_FILES.
25277 # This happens for instance when ./config.status config.h
25278 if test -n "$CONFIG_FILES"; then
25280 _ACEOF
25282 # Create sed commands to just substitute file output variables.
25284 # Remaining file output variables are in a fragment that also has non-file
25285 # output varibles.
25289 ac_delim='%!_!# '
25290 for ac_last_try in false false false false false :; do
25291 cat >conf$$subs.sed <<_ACEOF
25292 SHELL!$SHELL$ac_delim
25293 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25294 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25295 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25296 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25297 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25298 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25299 exec_prefix!$exec_prefix$ac_delim
25300 prefix!$prefix$ac_delim
25301 program_transform_name!$program_transform_name$ac_delim
25302 bindir!$bindir$ac_delim
25303 sbindir!$sbindir$ac_delim
25304 libexecdir!$libexecdir$ac_delim
25305 datarootdir!$datarootdir$ac_delim
25306 datadir!$datadir$ac_delim
25307 sysconfdir!$sysconfdir$ac_delim
25308 sharedstatedir!$sharedstatedir$ac_delim
25309 localstatedir!$localstatedir$ac_delim
25310 includedir!$includedir$ac_delim
25311 oldincludedir!$oldincludedir$ac_delim
25312 docdir!$docdir$ac_delim
25313 infodir!$infodir$ac_delim
25314 htmldir!$htmldir$ac_delim
25315 dvidir!$dvidir$ac_delim
25316 pdfdir!$pdfdir$ac_delim
25317 psdir!$psdir$ac_delim
25318 libdir!$libdir$ac_delim
25319 localedir!$localedir$ac_delim
25320 mandir!$mandir$ac_delim
25321 DEFS!$DEFS$ac_delim
25322 ECHO_C!$ECHO_C$ac_delim
25323 ECHO_N!$ECHO_N$ac_delim
25324 ECHO_T!$ECHO_T$ac_delim
25325 LIBS!$LIBS$ac_delim
25326 build_alias!$build_alias$ac_delim
25327 host_alias!$host_alias$ac_delim
25328 target_alias!$target_alias$ac_delim
25329 build!$build$ac_delim
25330 build_cpu!$build_cpu$ac_delim
25331 build_vendor!$build_vendor$ac_delim
25332 build_os!$build_os$ac_delim
25333 host!$host$ac_delim
25334 host_cpu!$host_cpu$ac_delim
25335 host_vendor!$host_vendor$ac_delim
25336 host_os!$host_os$ac_delim
25337 WIN16_FILES!$WIN16_FILES$ac_delim
25338 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25339 SET_MAKE!$SET_MAKE$ac_delim
25340 CC!$CC$ac_delim
25341 CFLAGS!$CFLAGS$ac_delim
25342 LDFLAGS!$LDFLAGS$ac_delim
25343 CPPFLAGS!$CPPFLAGS$ac_delim
25344 ac_ct_CC!$ac_ct_CC$ac_delim
25345 EXEEXT!$EXEEXT$ac_delim
25346 OBJEXT!$OBJEXT$ac_delim
25347 CXX!$CXX$ac_delim
25348 CXXFLAGS!$CXXFLAGS$ac_delim
25349 ac_ct_CXX!$ac_ct_CXX$ac_delim
25350 CPPBIN!$CPPBIN$ac_delim
25351 TOOLSDIR!$TOOLSDIR$ac_delim
25352 XMKMF!$XMKMF$ac_delim
25353 CPP!$CPP$ac_delim
25354 X_CFLAGS!$X_CFLAGS$ac_delim
25355 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25356 X_LIBS!$X_LIBS$ac_delim
25357 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25358 LEX!$LEX$ac_delim
25359 LEXLIB!$LEXLIB$ac_delim
25360 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25361 XLEX!$XLEX$ac_delim
25362 BISON!$BISON$ac_delim
25363 AS!$AS$ac_delim
25364 ac_ct_AS!$ac_ct_AS$ac_delim
25365 LD!$LD$ac_delim
25366 AR!$AR$ac_delim
25367 RANLIB!$RANLIB$ac_delim
25368 STRIP!$STRIP$ac_delim
25369 WINDRES!$WINDRES$ac_delim
25370 LN_S!$LN_S$ac_delim
25371 _ACEOF
25373 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25374 break
25375 elif $ac_last_try; then
25376 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25377 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25378 { (exit 1); exit 1; }; }
25379 else
25380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25382 done
25384 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25385 if test -n "$ac_eof"; then
25386 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25387 ac_eof=`expr $ac_eof + 1`
25390 cat >>$CONFIG_STATUS <<_ACEOF
25391 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25393 /^[ ]*@MAKE_RULES@[ ]*$/{
25394 r $MAKE_RULES
25397 /^[ ]*@MAKE_DLL_RULES@[ ]*$/{
25398 r $MAKE_DLL_RULES
25401 /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
25402 r $MAKE_IMPLIB_RULES
25405 /^[ ]*@MAKE_TEST_RULES@[ ]*$/{
25406 r $MAKE_TEST_RULES
25409 /^[ ]*@MAKE_LIB_RULES@[ ]*$/{
25410 r $MAKE_LIB_RULES
25413 /^[ ]*@MAKE_PROG_RULES@[ ]*$/{
25414 r $MAKE_PROG_RULES
25417 _ACEOF
25418 sed '
25419 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25420 s/^/s,@/; s/!/@,|#_!!_#|/
25423 s/'"$ac_delim"'$/,g/; t
25424 s/$/\\/; p
25425 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25426 ' >>$CONFIG_STATUS <conf$$subs.sed
25427 rm -f conf$$subs.sed
25428 cat >>$CONFIG_STATUS <<_ACEOF
25429 CEOF$ac_eof
25430 _ACEOF
25433 ac_delim='%!_!# '
25434 for ac_last_try in false false false false false :; do
25435 cat >conf$$subs.sed <<_ACEOF
25436 LN!$LN$ac_delim
25437 GREP!$GREP$ac_delim
25438 EGREP!$EGREP$ac_delim
25439 LDCONFIG!$LDCONFIG$ac_delim
25440 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25441 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25442 INSTALL_DATA!$INSTALL_DATA$ac_delim
25443 LINT!$LINT$ac_delim
25444 LINTFLAGS!$LINTFLAGS$ac_delim
25445 FONTFORGE!$FONTFORGE$ac_delim
25446 PKG_CONFIG!$PKG_CONFIG$ac_delim
25447 PRELINK!$PRELINK$ac_delim
25448 LIBPTHREAD!$LIBPTHREAD$ac_delim
25449 XLIB!$XLIB$ac_delim
25450 XFILES!$XFILES$ac_delim
25451 OPENGLFILES!$OPENGLFILES$ac_delim
25452 GLU32FILES!$GLU32FILES$ac_delim
25453 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25454 GLUT_LIBS!$GLUT_LIBS$ac_delim
25455 GLUT32FILES!$GLUT32FILES$ac_delim
25456 NASLIBS!$NASLIBS$ac_delim
25457 XML2LIBS!$XML2LIBS$ac_delim
25458 XML2INCL!$XML2INCL$ac_delim
25459 XSLTLIBS!$XSLTLIBS$ac_delim
25460 XSLTINCL!$XSLTINCL$ac_delim
25461 HALINCL!$HALINCL$ac_delim
25462 CURSESLIBS!$CURSESLIBS$ac_delim
25463 sane_devel!$sane_devel$ac_delim
25464 SANELIBS!$SANELIBS$ac_delim
25465 SANEINCL!$SANEINCL$ac_delim
25466 gphoto2_devel!$gphoto2_devel$ac_delim
25467 gphoto2port_devel!$gphoto2port_devel$ac_delim
25468 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25469 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25470 ICULIBS!$ICULIBS$ac_delim
25471 RESOLVLIBS!$RESOLVLIBS$ac_delim
25472 LCMSLIBS!$LCMSLIBS$ac_delim
25473 LDAPLIBS!$LDAPLIBS$ac_delim
25474 FREETYPELIBS!$FREETYPELIBS$ac_delim
25475 FREETYPEINCL!$FREETYPEINCL$ac_delim
25476 ft_devel!$ft_devel$ac_delim
25477 ft_devel2!$ft_devel2$ac_delim
25478 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25479 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25480 ARTSLIBS!$ARTSLIBS$ac_delim
25481 ARTSINCL!$ARTSINCL$ac_delim
25482 ESDCONFIG!$ESDCONFIG$ac_delim
25483 ESDLIBS!$ESDLIBS$ac_delim
25484 ESDINCL!$ESDINCL$ac_delim
25485 ALSALIBS!$ALSALIBS$ac_delim
25486 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25487 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25488 BUILTINFLAG!$BUILTINFLAG$ac_delim
25489 DLLEXT!$DLLEXT$ac_delim
25490 DLLFLAGS!$DLLFLAGS$ac_delim
25491 DLLIBS!$DLLIBS$ac_delim
25492 LDSHARED!$LDSHARED$ac_delim
25493 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25494 LIBEXT!$LIBEXT$ac_delim
25495 IMPLIBEXT!$IMPLIBEXT$ac_delim
25496 DLLTOOL!$DLLTOOL$ac_delim
25497 DLLWRAP!$DLLWRAP$ac_delim
25498 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
25499 LDEXERPATH!$LDEXERPATH$ac_delim
25500 LDDLLRPATH!$LDDLLRPATH$ac_delim
25501 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25502 IOKITLIB!$IOKITLIB$ac_delim
25503 COREAUDIO!$COREAUDIO$ac_delim
25504 CROSSTEST!$CROSSTEST$ac_delim
25505 CROSSCC!$CROSSCC$ac_delim
25506 CROSSWINDRES!$CROSSWINDRES$ac_delim
25507 LDPATH!$LDPATH$ac_delim
25508 CRTLIBS!$CRTLIBS$ac_delim
25509 SOCKETLIBS!$SOCKETLIBS$ac_delim
25510 MAIN_BINARY!$MAIN_BINARY$ac_delim
25511 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25512 LDD!$LDD$ac_delim
25513 LIBOBJS!$LIBOBJS$ac_delim
25514 LTLIBOBJS!$LTLIBOBJS$ac_delim
25515 _ACEOF
25517 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25518 break
25519 elif $ac_last_try; then
25520 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25521 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25522 { (exit 1); exit 1; }; }
25523 else
25524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25526 done
25528 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25529 if test -n "$ac_eof"; then
25530 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25531 ac_eof=`expr $ac_eof + 1`
25534 cat >>$CONFIG_STATUS <<_ACEOF
25535 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25537 _ACEOF
25538 sed '
25539 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25540 s/^/s,@/; s/!/@,|#_!!_#|/
25543 s/'"$ac_delim"'$/,g/; t
25544 s/$/\\/; p
25545 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25546 ' >>$CONFIG_STATUS <conf$$subs.sed
25547 rm -f conf$$subs.sed
25548 cat >>$CONFIG_STATUS <<_ACEOF
25549 :end
25550 s/|#_!!_#|//g
25551 CEOF$ac_eof
25552 _ACEOF
25555 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25556 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25557 # trailing colons and then remove the whole line if VPATH becomes empty
25558 # (actually we leave an empty line to preserve line numbers).
25559 if test "x$srcdir" = x.; then
25560 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25561 s/:*\$(srcdir):*/:/
25562 s/:*\${srcdir}:*/:/
25563 s/:*@srcdir@:*/:/
25564 s/^\([^=]*=[ ]*\):*/\1/
25565 s/:*$//
25566 s/^[^=]*=[ ]*$//
25570 cat >>$CONFIG_STATUS <<\_ACEOF
25571 fi # test -n "$CONFIG_FILES"
25574 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25576 case $ac_tag in
25577 :[FHLC]) ac_mode=$ac_tag; continue;;
25578 esac
25579 case $ac_mode$ac_tag in
25580 :[FHL]*:*);;
25581 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25582 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25583 { (exit 1); exit 1; }; };;
25584 :[FH]-) ac_tag=-:-;;
25585 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25586 esac
25587 ac_save_IFS=$IFS
25588 IFS=:
25589 set x $ac_tag
25590 IFS=$ac_save_IFS
25591 shift
25592 ac_file=$1
25593 shift
25595 case $ac_mode in
25596 :L) ac_source=$1;;
25597 :[FH])
25598 ac_file_inputs=
25599 for ac_f
25601 case $ac_f in
25602 -) ac_f="$tmp/stdin";;
25603 *) # Look for the file first in the build tree, then in the source tree
25604 # (if the path is not absolute). The absolute path cannot be DOS-style,
25605 # because $ac_f cannot contain `:'.
25606 test -f "$ac_f" ||
25607 case $ac_f in
25608 [\\/$]*) false;;
25609 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25610 esac ||
25611 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25612 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25613 { (exit 1); exit 1; }; };;
25614 esac
25615 ac_file_inputs="$ac_file_inputs $ac_f"
25616 done
25618 # Let's still pretend it is `configure' which instantiates (i.e., don't
25619 # use $as_me), people would be surprised to read:
25620 # /* config.h. Generated by config.status. */
25621 configure_input="Generated from "`IFS=:
25622 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25623 if test x"$ac_file" != x-; then
25624 configure_input="$ac_file. $configure_input"
25625 { echo "$as_me:$LINENO: creating $ac_file" >&5
25626 echo "$as_me: creating $ac_file" >&6;}
25629 case $ac_tag in
25630 *:-:* | *:-) cat >"$tmp/stdin";;
25631 esac
25633 esac
25635 ac_dir=`$as_dirname -- "$ac_file" ||
25636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25637 X"$ac_file" : 'X\(//\)[^/]' \| \
25638 X"$ac_file" : 'X\(//\)$' \| \
25639 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25640 echo X"$ac_file" |
25641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25642 s//\1/
25645 /^X\(\/\/\)[^/].*/{
25646 s//\1/
25649 /^X\(\/\/\)$/{
25650 s//\1/
25653 /^X\(\/\).*/{
25654 s//\1/
25657 s/.*/./; q'`
25658 { as_dir="$ac_dir"
25659 case $as_dir in #(
25660 -*) as_dir=./$as_dir;;
25661 esac
25662 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25663 as_dirs=
25664 while :; do
25665 case $as_dir in #(
25666 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25667 *) as_qdir=$as_dir;;
25668 esac
25669 as_dirs="'$as_qdir' $as_dirs"
25670 as_dir=`$as_dirname -- "$as_dir" ||
25671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25672 X"$as_dir" : 'X\(//\)[^/]' \| \
25673 X"$as_dir" : 'X\(//\)$' \| \
25674 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25675 echo X"$as_dir" |
25676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25677 s//\1/
25680 /^X\(\/\/\)[^/].*/{
25681 s//\1/
25684 /^X\(\/\/\)$/{
25685 s//\1/
25688 /^X\(\/\).*/{
25689 s//\1/
25692 s/.*/./; q'`
25693 test -d "$as_dir" && break
25694 done
25695 test -z "$as_dirs" || eval "mkdir $as_dirs"
25696 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25697 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25698 { (exit 1); exit 1; }; }; }
25699 ac_builddir=.
25701 case "$ac_dir" in
25702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25704 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25705 # A ".." for each directory in $ac_dir_suffix.
25706 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25707 case $ac_top_builddir_sub in
25708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25710 esac ;;
25711 esac
25712 ac_abs_top_builddir=$ac_pwd
25713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25714 # for backward compatibility:
25715 ac_top_builddir=$ac_top_build_prefix
25717 case $srcdir in
25718 .) # We are building in place.
25719 ac_srcdir=.
25720 ac_top_srcdir=$ac_top_builddir_sub
25721 ac_abs_top_srcdir=$ac_pwd ;;
25722 [\\/]* | ?:[\\/]* ) # Absolute name.
25723 ac_srcdir=$srcdir$ac_dir_suffix;
25724 ac_top_srcdir=$srcdir
25725 ac_abs_top_srcdir=$srcdir ;;
25726 *) # Relative name.
25727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25728 ac_top_srcdir=$ac_top_build_prefix$srcdir
25729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25730 esac
25731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25734 case $ac_mode in
25737 # CONFIG_FILE
25740 case $INSTALL in
25741 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25742 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25743 esac
25744 _ACEOF
25746 cat >>$CONFIG_STATUS <<\_ACEOF
25747 # If the template does not know about datarootdir, expand it.
25748 # FIXME: This hack should be removed a few years after 2.60.
25749 ac_datarootdir_hack=; ac_datarootdir_seen=
25751 case `sed -n '/datarootdir/ {
25755 /@datadir@/p
25756 /@docdir@/p
25757 /@infodir@/p
25758 /@localedir@/p
25759 /@mandir@/p
25760 ' $ac_file_inputs` in
25761 *datarootdir*) ac_datarootdir_seen=yes;;
25762 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25763 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25764 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25765 _ACEOF
25766 cat >>$CONFIG_STATUS <<_ACEOF
25767 ac_datarootdir_hack='
25768 s&@datadir@&$datadir&g
25769 s&@docdir@&$docdir&g
25770 s&@infodir@&$infodir&g
25771 s&@localedir@&$localedir&g
25772 s&@mandir@&$mandir&g
25773 s&\\\${datarootdir}&$datarootdir&g' ;;
25774 esac
25775 _ACEOF
25777 # Neutralize VPATH when `$srcdir' = `.'.
25778 # Shell code in configure.ac might set extrasub.
25779 # FIXME: do we really want to maintain this feature?
25780 cat >>$CONFIG_STATUS <<_ACEOF
25781 sed "$ac_vpsub
25782 $extrasub
25783 _ACEOF
25784 cat >>$CONFIG_STATUS <<\_ACEOF
25786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25787 s&@configure_input@&$configure_input&;t t
25788 s&@top_builddir@&$ac_top_builddir_sub&;t t
25789 s&@srcdir@&$ac_srcdir&;t t
25790 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25791 s&@top_srcdir@&$ac_top_srcdir&;t t
25792 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25793 s&@builddir@&$ac_builddir&;t t
25794 s&@abs_builddir@&$ac_abs_builddir&;t t
25795 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25796 s&@INSTALL@&$ac_INSTALL&;t t
25797 $ac_datarootdir_hack
25798 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25800 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25801 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25802 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25803 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25804 which seems to be undefined. Please make sure it is defined." >&5
25805 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25806 which seems to be undefined. Please make sure it is defined." >&2;}
25808 rm -f "$tmp/stdin"
25809 case $ac_file in
25810 -) cat "$tmp/out"; rm -f "$tmp/out";;
25811 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25812 esac
25816 # CONFIG_HEADER
25818 _ACEOF
25820 # Transform confdefs.h into a sed script `conftest.defines', that
25821 # substitutes the proper values into config.h.in to produce config.h.
25822 rm -f conftest.defines conftest.tail
25823 # First, append a space to every undef/define line, to ease matching.
25824 echo 's/$/ /' >conftest.defines
25825 # Then, protect against being on the right side of a sed subst, or in
25826 # an unquoted here document, in config.status. If some macros were
25827 # called several times there might be several #defines for the same
25828 # symbol, which is useless. But do not sort them, since the last
25829 # AC_DEFINE must be honored.
25830 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25831 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25832 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25833 # PARAMS is the parameter list in the macro definition--in most cases, it's
25834 # just an empty string.
25835 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25836 ac_dB='\\)[ (].*,\\1define\\2'
25837 ac_dC=' '
25838 ac_dD=' ,'
25840 uniq confdefs.h |
25841 sed -n '
25842 t rset
25843 :rset
25844 s/^[ ]*#[ ]*define[ ][ ]*//
25845 t ok
25848 s/[\\&,]/\\&/g
25849 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25850 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25851 ' >>conftest.defines
25853 # Remove the space that was appended to ease matching.
25854 # Then replace #undef with comments. This is necessary, for
25855 # example, in the case of _POSIX_SOURCE, which is predefined and required
25856 # on some systems where configure will not decide to define it.
25857 # (The regexp can be short, since the line contains either #define or #undef.)
25858 echo 's/ $//
25859 s,^[ #]*u.*,/* & */,' >>conftest.defines
25861 # Break up conftest.defines:
25862 ac_max_sed_lines=50
25864 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25865 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25866 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25867 # et cetera.
25868 ac_in='$ac_file_inputs'
25869 ac_out='"$tmp/out1"'
25870 ac_nxt='"$tmp/out2"'
25872 while :
25874 # Write a here document:
25875 cat >>$CONFIG_STATUS <<_ACEOF
25876 # First, check the format of the line:
25877 cat >"\$tmp/defines.sed" <<\\CEOF
25878 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25879 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25881 :def
25882 _ACEOF
25883 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25884 echo 'CEOF
25885 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25886 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25887 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25888 grep . conftest.tail >/dev/null || break
25889 rm -f conftest.defines
25890 mv conftest.tail conftest.defines
25891 done
25892 rm -f conftest.defines conftest.tail
25894 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25895 cat >>$CONFIG_STATUS <<\_ACEOF
25896 if test x"$ac_file" != x-; then
25897 echo "/* $configure_input */" >"$tmp/config.h"
25898 cat "$ac_result" >>"$tmp/config.h"
25899 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25900 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25901 echo "$as_me: $ac_file is unchanged" >&6;}
25902 else
25903 rm -f $ac_file
25904 mv "$tmp/config.h" $ac_file
25906 else
25907 echo "/* $configure_input */"
25908 cat "$ac_result"
25910 rm -f "$tmp/out12"
25913 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25914 echo "$as_me: executing $ac_file commands" >&6;}
25916 esac
25919 case $ac_file$ac_mode in
25920 "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25921 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25922 "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25923 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25924 "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25925 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25926 "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25927 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25928 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25929 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25930 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25931 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25933 esac
25934 done # for ac_tag
25937 { (exit 0); exit 0; }
25938 _ACEOF
25939 chmod +x $CONFIG_STATUS
25940 ac_clean_files=$ac_clean_files_save
25943 # configure is writing to config.log, and then calls config.status.
25944 # config.status does its own redirection, appending to config.log.
25945 # Unfortunately, on DOS this fails, as config.log is still kept open
25946 # by configure, so config.status won't be able to write to it; its
25947 # output is simply discarded. So we exec the FD to /dev/null,
25948 # effectively closing config.log, so it can be properly (re)opened and
25949 # appended to by config.status. When coming back to configure, we
25950 # need to make the FD available again.
25951 if test "$no_create" != yes; then
25952 ac_cs_success=:
25953 ac_config_status_args=
25954 test "$silent" = yes &&
25955 ac_config_status_args="$ac_config_status_args --quiet"
25956 exec 5>/dev/null
25957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25958 exec 5>>config.log
25959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25960 # would make configure fail if this is the last instruction.
25961 $ac_cs_success || { (exit 1); exit 1; }
25965 if test "$have_x" = "no"
25966 then
25967 echo >&2
25968 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25969 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25970 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25971 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25972 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25973 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25974 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
25975 echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
25978 if test "$wine_cv_opengl_version_OK" = "no"
25979 then
25980 echo >&2
25981 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
25982 echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
25983 { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25984 echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
25987 if test "$wine_cv_msg_freetype" = "yes"
25988 then
25989 echo >&2
25990 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25991 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25992 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25993 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25994 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25995 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25996 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25997 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
26000 if test -z "$FONTSSUBDIRS"
26001 then
26002 echo >&2
26003 if test "$FONTFORGE" = "false"
26004 then
26005 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
26006 echo "$as_me: WARNING: FontForge is missing." >&2;}
26007 else
26008 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
26009 echo "$as_me: WARNING: FreeType is missing." >&2;}
26011 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
26012 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
26015 if test -z "$ALSALIBS" -a \
26016 -z "$ARTSC_LIBS" -a \
26017 -z "$AUDIOIOLIBS" -a \
26018 -z "$NASLIBS" -a \
26019 -z "$ESD_LIBS" -a \
26020 -z "$ac_cv_lib_soname_jack" -a \
26021 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
26022 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
26023 "$ac_cv_header_soundcard_h" != "yes"
26024 then
26025 echo >&2
26026 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
26027 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
26028 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
26029 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
26030 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
26031 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
26034 echo
26035 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
26036 echo