widl: Write-strings warnings fix.
[wine/multimedia.git] / configure
blob4728e1df50de471210c2c41ac6f4ec670cb75ed9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59e for Wine 0.9.16.
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.16'
563 PACKAGE_STRING='Wine 0.9.16'
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.16 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.16:";;
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.16
1446 generated by GNU Autoconf 2.59e
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.16, which was
1460 generated by GNU Autoconf 2.59e. 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 int test (int i, double x);
2931 struct s1 {int (*f) (int a);};
2932 struct s2 {int (*f) (double a);};
2933 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2934 int argc;
2935 char **argv;
2937 main ()
2939 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2941 return 0;
2943 _ACEOF
2944 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2945 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2947 CC="$ac_save_CC $ac_arg"
2948 rm -f conftest.$ac_objext
2949 if { (ac_try="$ac_compile"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_compile") 2>conftest.er1
2956 ac_status=$?
2957 grep -v '^ *+' conftest.er1 >conftest.err
2958 rm -f conftest.er1
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; } &&
2972 { ac_try='test -s conftest.$ac_objext'
2973 { (case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_try") 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_cv_prog_cc_c89=$ac_arg
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2990 rm -f core conftest.err conftest.$ac_objext
2991 test "x$ac_cv_prog_cc_c89" != "xno" && break
2992 done
2993 rm -f conftest.$ac_ext
2994 CC=$ac_save_CC
2997 # AC_CACHE_VAL
2998 case "x$ac_cv_prog_cc_c89" in
3000 { echo "$as_me:$LINENO: result: none needed" >&5
3001 echo "${ECHO_T}none needed" >&6; } ;;
3002 xno)
3003 { echo "$as_me:$LINENO: result: unsupported" >&5
3004 echo "${ECHO_T}unsupported" >&6; } ;;
3006 CC="$CC $ac_cv_prog_cc_c89"
3007 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3008 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3009 esac
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 ac_ext=cpp
3019 ac_cpp='$CXXCPP $CPPFLAGS'
3020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3023 if test -z "$CXX"; then
3024 if test -n "$CCC"; then
3025 CXX=$CCC
3026 else
3027 if test -n "$ac_tool_prefix"; then
3028 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3034 if test "${ac_cv_prog_CXX+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037 if test -n "$CXX"; then
3038 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3057 CXX=$ac_cv_prog_CXX
3058 if test -n "$CXX"; then
3059 { echo "$as_me:$LINENO: result: $CXX" >&5
3060 echo "${ECHO_T}$CXX" >&6; }
3061 else
3062 { echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6; }
3067 test -n "$CXX" && break
3068 done
3070 if test -z "$CXX"; then
3071 ac_ct_CXX=$CXX
3072 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 if test -n "$ac_ct_CXX"; then
3082 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_ac_ct_CXX="$ac_prog"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3097 IFS=$as_save_IFS
3101 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3102 if test -n "$ac_ct_CXX"; then
3103 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3104 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3105 else
3106 { echo "$as_me:$LINENO: result: no" >&5
3107 echo "${ECHO_T}no" >&6; }
3111 test -n "$ac_ct_CXX" && break
3112 done
3114 if test "x$ac_ct_CXX" = x; then
3115 CXX="g++"
3116 else
3117 case $cross_compiling:$ac_tool_warned in
3118 yes:)
3119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3120 whose name does not start with the host triplet. If you think this
3121 configuration is useful to you, please write to autoconf@gnu.org." >&5
3122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3123 whose name does not start with the host triplet. If you think this
3124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3125 ac_tool_warned=yes ;;
3126 esac
3127 CXX=$ac_ct_CXX
3133 # Provide some information about the compiler.
3134 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3135 ac_compiler=`set X $ac_compile; echo $2`
3136 { (ac_try="$ac_compiler --version >&5"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compiler --version >&5") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }
3146 { (ac_try="$ac_compiler -v >&5"
3147 case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compiler -v >&5") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }
3156 { (ac_try="$ac_compiler -V >&5"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compiler -V >&5") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }
3167 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3168 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3169 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172 cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h. */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3180 main ()
3182 #ifndef __GNUC__
3183 choke me
3184 #endif
3187 return 0;
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3198 ac_status=$?
3199 grep -v '^ *+' conftest.er1 >conftest.err
3200 rm -f conftest.er1
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
3204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_try") 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; }; then
3224 ac_compiler_gnu=yes
3225 else
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 ac_compiler_gnu=no
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3236 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3237 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3238 GXX=`test $ac_compiler_gnu = yes && echo yes`
3239 ac_test_CXXFLAGS=${CXXFLAGS+set}
3240 ac_save_CXXFLAGS=$CXXFLAGS
3241 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3242 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3243 if test "${ac_cv_prog_cxx_g+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3247 ac_cxx_werror_flag=yes
3248 ac_cv_prog_cxx_g=no
3249 CXXFLAGS="-g"
3250 cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h. */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3258 main ()
3262 return 0;
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3280 { (case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_try") 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_try") 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_cv_prog_cxx_g=yes
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 CXXFLAGS=""
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3313 main ()
3317 return 0;
3319 _ACEOF
3320 rm -f conftest.$ac_objext
3321 if { (ac_try="$ac_compile"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_compile") 2>conftest.er1
3328 ac_status=$?
3329 grep -v '^ *+' conftest.er1 >conftest.err
3330 rm -f conftest.er1
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } &&
3334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3335 { (case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_try") 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_try") 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3360 CXXFLAGS="-g"
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3369 main ()
3373 return 0;
3375 _ACEOF
3376 rm -f conftest.$ac_objext
3377 if { (ac_try="$ac_compile"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_compile") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3391 { (case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_try") 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_try") 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3410 ac_cv_prog_cxx_g=yes
3411 else
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3427 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3428 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3429 if test "$ac_test_CXXFLAGS" = set; then
3430 CXXFLAGS=$ac_save_CXXFLAGS
3431 elif test $ac_cv_prog_cxx_g = yes; then
3432 if test "$GXX" = yes; then
3433 CXXFLAGS="-g -O2"
3434 else
3435 CXXFLAGS="-g"
3437 else
3438 if test "$GXX" = yes; then
3439 CXXFLAGS="-O2"
3440 else
3441 CXXFLAGS=
3444 ac_ext=c
3445 ac_cpp='$CPP $CPPFLAGS'
3446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450 if test -n "$ac_tool_prefix"; then
3451 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3452 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3455 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 if test -n "$CPPBIN"; then
3459 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3472 done
3473 done
3474 IFS=$as_save_IFS
3478 CPPBIN=$ac_cv_prog_CPPBIN
3479 if test -n "$CPPBIN"; then
3480 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3481 echo "${ECHO_T}$CPPBIN" >&6; }
3482 else
3483 { echo "$as_me:$LINENO: result: no" >&5
3484 echo "${ECHO_T}no" >&6; }
3489 if test -z "$ac_cv_prog_CPPBIN"; then
3490 ac_ct_CPPBIN=$CPPBIN
3491 # Extract the first word of "cpp", so it can be a program name with args.
3492 set dummy cpp; ac_word=$2
3493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3495 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498 if test -n "$ac_ct_CPPBIN"; then
3499 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_ac_ct_CPPBIN="cpp"
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3512 done
3513 done
3514 IFS=$as_save_IFS
3518 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3519 if test -n "$ac_ct_CPPBIN"; then
3520 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3521 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3522 else
3523 { echo "$as_me:$LINENO: result: no" >&5
3524 echo "${ECHO_T}no" >&6; }
3527 if test "x$ac_ct_CPPBIN" = x; then
3528 CPPBIN="cpp"
3529 else
3530 case $cross_compiling:$ac_tool_warned in
3531 yes:)
3532 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3533 whose name does not start with the host triplet. If you think this
3534 configuration is useful to you, please write to autoconf@gnu.org." >&5
3535 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3536 whose name does not start with the host triplet. If you think this
3537 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3538 ac_tool_warned=yes ;;
3539 esac
3540 CPPBIN=$ac_ct_CPPBIN
3542 else
3543 CPPBIN="$ac_cv_prog_CPPBIN"
3547 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3548 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3549 if test "${wine_cv_toolsdir+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552 if test -z "$with_wine_tools"; then
3553 if test "$cross_compiling" = "yes"; then
3554 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3555 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3556 { (exit 1); exit 1; }; }
3557 else
3558 wine_cv_toolsdir="\$(TOPOBJDIR)"
3560 elif test -d "$with_wine_tools/tools/winebuild"; then
3561 case $with_wine_tools in
3562 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3563 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3564 esac
3565 else
3566 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3567 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3568 { (exit 1); exit 1; }; }
3571 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3572 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3573 TOOLSDIR=$wine_cv_toolsdir
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3583 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3584 # On Suns, sometimes $CPP names a directory.
3585 if test -n "$CPP" && test -d "$CPP"; then
3586 CPP=
3588 if test -z "$CPP"; then
3589 if test "${ac_cv_prog_CPP+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 # Double quotes because CPP needs to be expanded
3593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3595 ac_preproc_ok=false
3596 for ac_c_preproc_warn_flag in '' yes
3598 # Use a header file that comes with gcc, so configuring glibc
3599 # with a fresh cross-compiler works.
3600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3601 # <limits.h> exists even on freestanding compilers.
3602 # On the NeXT, cc -E runs the code through the compiler's parser,
3603 # not just through cpp. "Syntax error" is here to catch this case.
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 #ifdef __STDC__
3611 # include <limits.h>
3612 #else
3613 # include <assert.h>
3614 #endif
3615 Syntax error
3616 _ACEOF
3617 if { (ac_try="$ac_cpp conftest.$ac_ext"
3618 case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } >/dev/null; then
3630 if test -s conftest.err; then
3631 ac_cpp_err=$ac_c_preproc_warn_flag
3632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3633 else
3634 ac_cpp_err=
3636 else
3637 ac_cpp_err=yes
3639 if test -z "$ac_cpp_err"; then
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 # Broken: fails on valid input.
3646 continue
3649 rm -f conftest.err conftest.$ac_ext
3651 # OK, works on sane cases. Now check whether nonexistent headers
3652 # can be detected and how.
3653 cat >conftest.$ac_ext <<_ACEOF
3654 /* confdefs.h. */
3655 _ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3659 #include <ac_nonexistent.h>
3660 _ACEOF
3661 if { (ac_try="$ac_cpp conftest.$ac_ext"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } >/dev/null; then
3674 if test -s conftest.err; then
3675 ac_cpp_err=$ac_c_preproc_warn_flag
3676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3677 else
3678 ac_cpp_err=
3680 else
3681 ac_cpp_err=yes
3683 if test -z "$ac_cpp_err"; then
3684 # Broken: success on invalid input.
3685 continue
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 # Passes both tests.
3691 ac_preproc_ok=:
3692 break
3695 rm -f conftest.err conftest.$ac_ext
3697 done
3698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3699 rm -f conftest.err conftest.$ac_ext
3700 if $ac_preproc_ok; then
3701 break
3704 done
3705 ac_cv_prog_CPP=$CPP
3708 CPP=$ac_cv_prog_CPP
3709 else
3710 ac_cv_prog_CPP=$CPP
3712 { echo "$as_me:$LINENO: result: $CPP" >&5
3713 echo "${ECHO_T}$CPP" >&6; }
3714 ac_preproc_ok=false
3715 for ac_c_preproc_warn_flag in '' yes
3717 # Use a header file that comes with gcc, so configuring glibc
3718 # with a fresh cross-compiler works.
3719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3720 # <limits.h> exists even on freestanding compilers.
3721 # On the NeXT, cc -E runs the code through the compiler's parser,
3722 # not just through cpp. "Syntax error" is here to catch this case.
3723 cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 #ifdef __STDC__
3730 # include <limits.h>
3731 #else
3732 # include <assert.h>
3733 #endif
3734 Syntax error
3735 _ACEOF
3736 if { (ac_try="$ac_cpp conftest.$ac_ext"
3737 case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3740 esac
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3743 ac_status=$?
3744 grep -v '^ *+' conftest.er1 >conftest.err
3745 rm -f conftest.er1
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } >/dev/null; then
3749 if test -s conftest.err; then
3750 ac_cpp_err=$ac_c_preproc_warn_flag
3751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3752 else
3753 ac_cpp_err=
3755 else
3756 ac_cpp_err=yes
3758 if test -z "$ac_cpp_err"; then
3760 else
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 # Broken: fails on valid input.
3765 continue
3768 rm -f conftest.err conftest.$ac_ext
3770 # OK, works on sane cases. Now check whether nonexistent headers
3771 # can be detected and how.
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 #include <ac_nonexistent.h>
3779 _ACEOF
3780 if { (ac_try="$ac_cpp conftest.$ac_ext"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } >/dev/null; then
3793 if test -s conftest.err; then
3794 ac_cpp_err=$ac_c_preproc_warn_flag
3795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3796 else
3797 ac_cpp_err=
3799 else
3800 ac_cpp_err=yes
3802 if test -z "$ac_cpp_err"; then
3803 # Broken: success on invalid input.
3804 continue
3805 else
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 # Passes both tests.
3810 ac_preproc_ok=:
3811 break
3814 rm -f conftest.err conftest.$ac_ext
3816 done
3817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3818 rm -f conftest.err conftest.$ac_ext
3819 if $ac_preproc_ok; then
3821 else
3822 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3823 See \`config.log' for more details." >&5
3824 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3825 See \`config.log' for more details." >&2;}
3826 { (exit 1); exit 1; }; }
3829 ac_ext=c
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 { echo "$as_me:$LINENO: checking for X" >&5
3837 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3840 # Check whether --with-x was given.
3841 if test "${with_x+set}" = set; then
3842 withval=$with_x;
3845 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3846 if test "x$with_x" = xno; then
3847 # The user explicitly disabled X.
3848 have_x=disabled
3849 else
3850 case $x_includes,$x_libraries in #(
3851 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3852 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3853 { (exit 1); exit 1; }; };; #(
3854 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 # One or both of the vars are not set, and there is no cached value.
3858 ac_x_includes=no ac_x_libraries=no
3859 rm -f -r conftest.dir
3860 if mkdir conftest.dir; then
3861 cd conftest.dir
3862 cat >Imakefile <<'_ACEOF'
3863 incroot:
3864 @echo incroot='${INCROOT}'
3865 usrlibdir:
3866 @echo usrlibdir='${USRLIBDIR}'
3867 libdir:
3868 @echo libdir='${LIBDIR}'
3869 _ACEOF
3870 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3872 for ac_var in incroot usrlibdir libdir; do
3873 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3874 done
3875 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3876 for ac_extension in a so sl; do
3877 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3878 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3879 ac_im_usrlibdir=$ac_im_libdir; break
3881 done
3882 # Screen out bogus values from the imake configuration. They are
3883 # bogus both because they are the default anyway, and because
3884 # using them would break gcc on systems where it needs fixed includes.
3885 case $ac_im_incroot in
3886 /usr/include) ac_x_includes= ;;
3887 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3888 esac
3889 case $ac_im_usrlibdir in
3890 /usr/lib | /lib) ;;
3891 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3892 esac
3894 cd ..
3895 rm -f -r conftest.dir
3898 # Standard set of common directories for X headers.
3899 # Check X11 before X11Rn because it is often a symlink to the current release.
3900 ac_x_header_dirs='
3901 /usr/X11/include
3902 /usr/X11R6/include
3903 /usr/X11R5/include
3904 /usr/X11R4/include
3906 /usr/include/X11
3907 /usr/include/X11R6
3908 /usr/include/X11R5
3909 /usr/include/X11R4
3911 /usr/local/X11/include
3912 /usr/local/X11R6/include
3913 /usr/local/X11R5/include
3914 /usr/local/X11R4/include
3916 /usr/local/include/X11
3917 /usr/local/include/X11R6
3918 /usr/local/include/X11R5
3919 /usr/local/include/X11R4
3921 /usr/X386/include
3922 /usr/x386/include
3923 /usr/XFree86/include/X11
3925 /usr/include
3926 /usr/local/include
3927 /usr/unsupported/include
3928 /usr/athena/include
3929 /usr/local/x11r5/include
3930 /usr/lpp/Xamples/include
3932 /usr/openwin/include
3933 /usr/openwin/share/include'
3935 if test "$ac_x_includes" = no; then
3936 # Guess where to find include files, by looking for Xlib.h.
3937 # First, try using that file with no special directory specified.
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h. */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 #include <X11/Xlib.h>
3945 _ACEOF
3946 if { (ac_try="$ac_cpp conftest.$ac_ext"
3947 case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } >/dev/null; then
3959 if test -s conftest.err; then
3960 ac_cpp_err=$ac_c_preproc_warn_flag
3961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3962 else
3963 ac_cpp_err=
3965 else
3966 ac_cpp_err=yes
3968 if test -z "$ac_cpp_err"; then
3969 # We can compile using X headers with no special include directory.
3970 ac_x_includes=
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 for ac_dir in $ac_x_header_dirs; do
3976 if test -r "$ac_dir/X11/Xlib.h"; then
3977 ac_x_includes=$ac_dir
3978 break
3980 done
3983 rm -f conftest.err conftest.$ac_ext
3984 fi # $ac_x_includes = no
3986 if test "$ac_x_libraries" = no; then
3987 # Check for the libraries.
3988 # See if we find them without any special options.
3989 # Don't add to $LIBS permanently.
3990 ac_save_LIBS=$LIBS
3991 LIBS="-lX11 $LIBS"
3992 cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h. */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 #include <X11/Xlib.h>
4000 main ()
4002 XrmInitialize ()
4004 return 0;
4006 _ACEOF
4007 rm -f conftest.$ac_objext conftest$ac_exeext
4008 if { (ac_try="$ac_link"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_link") 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
4021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4022 { (case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_try") 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest$ac_exeext'
4032 { (case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4037 (eval "$ac_try") 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 LIBS=$ac_save_LIBS
4042 # We can link X programs with no special library path.
4043 ac_x_libraries=
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4048 LIBS=$ac_save_LIBS
4049 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4051 # Don't even attempt the hair of trying to link an X program!
4052 for ac_extension in a so sl; do
4053 if test -r "$ac_dir/libX11.$ac_extension"; then
4054 ac_x_libraries=$ac_dir
4055 break 2
4057 done
4058 done
4061 rm -f core conftest.err conftest.$ac_objext \
4062 conftest$ac_exeext conftest.$ac_ext
4063 fi # $ac_x_libraries = no
4065 case $ac_x_includes,$ac_x_libraries in #(
4066 no,* | *,no | *\'*)
4067 # Didn't find X, or a directory has "'" in its name.
4068 ac_cv_have_x="have_x=no";; #(
4070 # Record where we found X for the cache.
4071 ac_cv_have_x="have_x=yes\
4072 ac_x_includes='$ac_x_includes'\
4073 ac_x_libraries='$ac_x_libraries'"
4074 esac
4076 ;; #(
4077 *) have_x=yes;;
4078 esac
4079 eval "$ac_cv_have_x"
4080 fi # $with_x != no
4082 if test "$have_x" != yes; then
4083 { echo "$as_me:$LINENO: result: $have_x" >&5
4084 echo "${ECHO_T}$have_x" >&6; }
4085 no_x=yes
4086 else
4087 # If each of the values was on the command line, it overrides each guess.
4088 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4089 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4090 # Update the cache value to reflect the command line values.
4091 ac_cv_have_x="have_x=yes\
4092 ac_x_includes='$x_includes'\
4093 ac_x_libraries='$x_libraries'"
4094 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4095 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4098 if test "$no_x" = yes; then
4099 # Not all programs may use this symbol, but it does not hurt to define it.
4101 cat >>confdefs.h <<\_ACEOF
4102 #define X_DISPLAY_MISSING 1
4103 _ACEOF
4105 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4106 else
4107 if test -n "$x_includes"; then
4108 X_CFLAGS="$X_CFLAGS -I$x_includes"
4111 # It would also be nice to do this for all -L options, not just this one.
4112 if test -n "$x_libraries"; then
4113 X_LIBS="$X_LIBS -L$x_libraries"
4114 # For Solaris; some versions of Sun CC require a space after -R and
4115 # others require no space. Words are not sufficient . . . .
4116 case `(uname -sr) 2>/dev/null` in
4117 "SunOS 5"*)
4118 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4119 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4120 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4129 main ()
4133 return 0;
4135 _ACEOF
4136 rm -f conftest.$ac_objext conftest$ac_exeext
4137 if { (ac_try="$ac_link"
4138 case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141 esac
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_link") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151 { (case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154 esac
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest$ac_exeext'
4161 { (case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_try") 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 ac_R_nospace=yes
4171 else
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4175 ac_R_nospace=no
4178 rm -f core conftest.err conftest.$ac_objext \
4179 conftest$ac_exeext conftest.$ac_ext
4180 if test $ac_R_nospace = yes; then
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4183 X_LIBS="$X_LIBS -R$x_libraries"
4184 else
4185 LIBS="$ac_xsave_LIBS -R $x_libraries"
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h. */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4194 main ()
4198 return 0;
4200 _ACEOF
4201 rm -f conftest.$ac_objext conftest$ac_exeext
4202 if { (ac_try="$ac_link"
4203 case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_link") 2>conftest.er1
4209 ac_status=$?
4210 grep -v '^ *+' conftest.er1 >conftest.err
4211 rm -f conftest.er1
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4216 { (case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_try") 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; } &&
4225 { ac_try='test -s conftest$ac_exeext'
4226 { (case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229 esac
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_try") 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 ac_R_space=yes
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 ac_R_space=no
4243 rm -f core conftest.err conftest.$ac_objext \
4244 conftest$ac_exeext conftest.$ac_ext
4245 if test $ac_R_space = yes; then
4246 { echo "$as_me:$LINENO: result: yes" >&5
4247 echo "${ECHO_T}yes" >&6; }
4248 X_LIBS="$X_LIBS -R $x_libraries"
4249 else
4250 { echo "$as_me:$LINENO: result: neither works" >&5
4251 echo "${ECHO_T}neither works" >&6; }
4254 LIBS=$ac_xsave_LIBS
4255 esac
4258 # Check for system-dependent libraries X programs must link with.
4259 # Do this before checking for the system-independent R6 libraries
4260 # (-lICE), since we may need -lsocket or whatever for X linking.
4262 if test "$ISC" = yes; then
4263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4264 else
4265 # Martyn Johnson says this is needed for Ultrix, if the X
4266 # libraries were built with DECnet support. And Karl Berry says
4267 # the Alpha needs dnet_stub (dnet does not exist).
4268 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4276 /* Override any GCC internal prototype to avoid an error.
4277 Use char because int might match the return type of a GCC
4278 builtin and then its argument prototype would still apply. */
4279 #ifdef __cplusplus
4280 extern "C"
4281 #endif
4282 char XOpenDisplay ();
4284 main ()
4286 return XOpenDisplay ();
4288 return 0;
4290 _ACEOF
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (ac_try="$ac_link"
4293 case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_link") 2>conftest.er1
4299 ac_status=$?
4300 grep -v '^ *+' conftest.er1 >conftest.err
4301 rm -f conftest.er1
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306 { (case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; } &&
4315 { ac_try='test -s conftest$ac_exeext'
4316 { (case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_try") 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4326 else
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4331 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4332 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335 ac_check_lib_save_LIBS=$LIBS
4336 LIBS="-ldnet $LIBS"
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4344 /* Override any GCC internal prototype to avoid an error.
4345 Use char because int might match the return type of a GCC
4346 builtin and then its argument prototype would still apply. */
4347 #ifdef __cplusplus
4348 extern "C"
4349 #endif
4350 char dnet_ntoa ();
4352 main ()
4354 return dnet_ntoa ();
4356 return 0;
4358 _ACEOF
4359 rm -f conftest.$ac_objext conftest$ac_exeext
4360 if { (ac_try="$ac_link"
4361 case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; } &&
4383 { ac_try='test -s conftest$ac_exeext'
4384 { (case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387 esac
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_try") 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_cv_lib_dnet_dnet_ntoa=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_cv_lib_dnet_dnet_ntoa=no
4401 rm -f core conftest.err conftest.$ac_objext \
4402 conftest$ac_exeext conftest.$ac_ext
4403 LIBS=$ac_check_lib_save_LIBS
4405 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4406 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4407 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4408 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4411 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4412 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4413 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4414 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 ac_check_lib_save_LIBS=$LIBS
4418 LIBS="-ldnet_stub $LIBS"
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4426 /* Override any GCC internal prototype to avoid an error.
4427 Use char because int might match the return type of a GCC
4428 builtin and then its argument prototype would still apply. */
4429 #ifdef __cplusplus
4430 extern "C"
4431 #endif
4432 char dnet_ntoa ();
4434 main ()
4436 return dnet_ntoa ();
4438 return 0;
4440 _ACEOF
4441 rm -f conftest.$ac_objext conftest$ac_exeext
4442 if { (ac_try="$ac_link"
4443 case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_link") 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4456 { (case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459 esac
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_try") 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest$ac_exeext'
4466 { (case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469 esac
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_try") 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 ac_cv_lib_dnet_stub_dnet_ntoa=no
4483 rm -f core conftest.err conftest.$ac_objext \
4484 conftest$ac_exeext conftest.$ac_ext
4485 LIBS=$ac_check_lib_save_LIBS
4487 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4488 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4489 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4490 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4496 rm -f core conftest.err conftest.$ac_objext \
4497 conftest$ac_exeext conftest.$ac_ext
4498 LIBS="$ac_xsave_LIBS"
4500 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4501 # to get the SysV transport functions.
4502 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4503 # needs -lnsl.
4504 # The nsl library prevents programs from opening the X display
4505 # on Irix 5.2, according to T.E. Dickey.
4506 # The functions gethostbyname, getservbyname, and inet_addr are
4507 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4508 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4509 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4510 if test "${ac_cv_func_gethostbyname+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h. */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4521 #define gethostbyname innocuous_gethostbyname
4523 /* System header to define __stub macros and hopefully few prototypes,
4524 which can conflict with char gethostbyname (); below.
4525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 <limits.h> exists even on freestanding compilers. */
4528 #ifdef __STDC__
4529 # include <limits.h>
4530 #else
4531 # include <assert.h>
4532 #endif
4534 #undef gethostbyname
4536 /* Override any GCC internal prototype to avoid an error.
4537 Use char because int might match the return type of a GCC
4538 builtin and then its argument prototype would still apply. */
4539 #ifdef __cplusplus
4540 extern "C"
4541 #endif
4542 char gethostbyname ();
4543 /* The GNU C library defines this for functions which it implements
4544 to always fail with ENOSYS. Some functions are actually named
4545 something starting with __ and the normal name is an alias. */
4546 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4547 choke me
4548 #endif
4551 main ()
4553 return gethostbyname ();
4555 return 0;
4557 _ACEOF
4558 rm -f conftest.$ac_objext conftest$ac_exeext
4559 if { (ac_try="$ac_link"
4560 case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563 esac
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_link") 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4573 { (case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576 esac
4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_try") 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest$ac_exeext'
4583 { (case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586 esac
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_try") 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 ac_cv_func_gethostbyname=yes
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 ac_cv_func_gethostbyname=no
4600 rm -f core conftest.err conftest.$ac_objext \
4601 conftest$ac_exeext conftest.$ac_ext
4603 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4604 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4606 if test $ac_cv_func_gethostbyname = no; then
4607 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4608 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4609 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612 ac_check_lib_save_LIBS=$LIBS
4613 LIBS="-lnsl $LIBS"
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h. */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4621 /* Override any GCC internal prototype to avoid an error.
4622 Use char because int might match the return type of a GCC
4623 builtin and then its argument prototype would still apply. */
4624 #ifdef __cplusplus
4625 extern "C"
4626 #endif
4627 char gethostbyname ();
4629 main ()
4631 return gethostbyname ();
4633 return 0;
4635 _ACEOF
4636 rm -f conftest.$ac_objext conftest$ac_exeext
4637 if { (ac_try="$ac_link"
4638 case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_link") 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651 { (case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654 esac
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_try") 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest$ac_exeext'
4661 { (case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_try") 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 ac_cv_lib_nsl_gethostbyname=yes
4671 else
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 ac_cv_lib_nsl_gethostbyname=no
4678 rm -f core conftest.err conftest.$ac_objext \
4679 conftest$ac_exeext conftest.$ac_ext
4680 LIBS=$ac_check_lib_save_LIBS
4682 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4683 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4684 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4685 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4688 if test $ac_cv_lib_nsl_gethostbyname = no; then
4689 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4690 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4691 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 ac_check_lib_save_LIBS=$LIBS
4695 LIBS="-lbsd $LIBS"
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4703 /* Override any GCC internal prototype to avoid an error.
4704 Use char because int might match the return type of a GCC
4705 builtin and then its argument prototype would still apply. */
4706 #ifdef __cplusplus
4707 extern "C"
4708 #endif
4709 char gethostbyname ();
4711 main ()
4713 return gethostbyname ();
4715 return 0;
4717 _ACEOF
4718 rm -f conftest.$ac_objext conftest$ac_exeext
4719 if { (ac_try="$ac_link"
4720 case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723 esac
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725 (eval "$ac_link") 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4733 { (case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_try") 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; } &&
4742 { ac_try='test -s conftest$ac_exeext'
4743 { (case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_try") 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_cv_lib_bsd_gethostbyname=yes
4753 else
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757 ac_cv_lib_bsd_gethostbyname=no
4760 rm -f core conftest.err conftest.$ac_objext \
4761 conftest$ac_exeext conftest.$ac_ext
4762 LIBS=$ac_check_lib_save_LIBS
4764 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4765 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4766 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4767 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4773 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4774 # socket/setsockopt and other routines are undefined under SCO ODT
4775 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4776 # on later versions), says Simon Leinen: it contains gethostby*
4777 # variants that don't use the name server (or something). -lsocket
4778 # must be given before -lnsl if both are needed. We assume that
4779 # if connect needs -lnsl, so does gethostbyname.
4780 { echo "$as_me:$LINENO: checking for connect" >&5
4781 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4782 if test "${ac_cv_func_connect+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4793 #define connect innocuous_connect
4795 /* System header to define __stub macros and hopefully few prototypes,
4796 which can conflict with char connect (); below.
4797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798 <limits.h> exists even on freestanding compilers. */
4800 #ifdef __STDC__
4801 # include <limits.h>
4802 #else
4803 # include <assert.h>
4804 #endif
4806 #undef connect
4808 /* Override any GCC internal prototype to avoid an error.
4809 Use char because int might match the return type of a GCC
4810 builtin and then its argument prototype would still apply. */
4811 #ifdef __cplusplus
4812 extern "C"
4813 #endif
4814 char connect ();
4815 /* The GNU C library defines this for functions which it implements
4816 to always fail with ENOSYS. Some functions are actually named
4817 something starting with __ and the normal name is an alias. */
4818 #if defined __stub_connect || defined __stub___connect
4819 choke me
4820 #endif
4823 main ()
4825 return connect ();
4827 return 0;
4829 _ACEOF
4830 rm -f conftest.$ac_objext conftest$ac_exeext
4831 if { (ac_try="$ac_link"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_link") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4845 { (case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848 esac
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_try") 2>&5
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; } &&
4854 { ac_try='test -s conftest$ac_exeext'
4855 { (case "(($ac_try" in
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4858 esac
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_try") 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4864 ac_cv_func_connect=yes
4865 else
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4869 ac_cv_func_connect=no
4872 rm -f core conftest.err conftest.$ac_objext \
4873 conftest$ac_exeext conftest.$ac_ext
4875 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4876 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4878 if test $ac_cv_func_connect = no; then
4879 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4880 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4881 if test "${ac_cv_lib_socket_connect+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884 ac_check_lib_save_LIBS=$LIBS
4885 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h. */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4893 /* Override any GCC internal prototype to avoid an error.
4894 Use char because int might match the return type of a GCC
4895 builtin and then its argument prototype would still apply. */
4896 #ifdef __cplusplus
4897 extern "C"
4898 #endif
4899 char connect ();
4901 main ()
4903 return connect ();
4905 return 0;
4907 _ACEOF
4908 rm -f conftest.$ac_objext conftest$ac_exeext
4909 if { (ac_try="$ac_link"
4910 case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913 esac
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_link") 2>conftest.er1
4916 ac_status=$?
4917 grep -v '^ *+' conftest.er1 >conftest.err
4918 rm -f conftest.er1
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4923 { (case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928 (eval "$ac_try") 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; } &&
4932 { ac_try='test -s conftest$ac_exeext'
4933 { (case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_try") 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 ac_cv_lib_socket_connect=yes
4943 else
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ac_cv_lib_socket_connect=no
4950 rm -f core conftest.err conftest.$ac_objext \
4951 conftest$ac_exeext conftest.$ac_ext
4952 LIBS=$ac_check_lib_save_LIBS
4954 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4955 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4956 if test $ac_cv_lib_socket_connect = yes; then
4957 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4962 # Guillermo Gomez says -lposix is necessary on A/UX.
4963 { echo "$as_me:$LINENO: checking for remove" >&5
4964 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4965 if test "${ac_cv_func_remove+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968 cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h. */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4974 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4976 #define remove innocuous_remove
4978 /* System header to define __stub macros and hopefully few prototypes,
4979 which can conflict with char remove (); below.
4980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4981 <limits.h> exists even on freestanding compilers. */
4983 #ifdef __STDC__
4984 # include <limits.h>
4985 #else
4986 # include <assert.h>
4987 #endif
4989 #undef remove
4991 /* Override any GCC internal prototype to avoid an error.
4992 Use char because int might match the return type of a GCC
4993 builtin and then its argument prototype would still apply. */
4994 #ifdef __cplusplus
4995 extern "C"
4996 #endif
4997 char remove ();
4998 /* The GNU C library defines this for functions which it implements
4999 to always fail with ENOSYS. Some functions are actually named
5000 something starting with __ and the normal name is an alias. */
5001 #if defined __stub_remove || defined __stub___remove
5002 choke me
5003 #endif
5006 main ()
5008 return remove ();
5010 return 0;
5012 _ACEOF
5013 rm -f conftest.$ac_objext conftest$ac_exeext
5014 if { (ac_try="$ac_link"
5015 case "(($ac_try" in
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5018 esac
5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020 (eval "$ac_link") 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } &&
5027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5028 { (case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_try") 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest$ac_exeext'
5038 { (case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041 esac
5042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043 (eval "$ac_try") 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 ac_cv_func_remove=yes
5048 else
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5052 ac_cv_func_remove=no
5055 rm -f core conftest.err conftest.$ac_objext \
5056 conftest$ac_exeext conftest.$ac_ext
5058 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5059 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5061 if test $ac_cv_func_remove = no; then
5062 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5063 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5064 if test "${ac_cv_lib_posix_remove+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 ac_check_lib_save_LIBS=$LIBS
5068 LIBS="-lposix $LIBS"
5069 cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h. */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5076 /* Override any GCC internal prototype to avoid an error.
5077 Use char because int might match the return type of a GCC
5078 builtin and then its argument prototype would still apply. */
5079 #ifdef __cplusplus
5080 extern "C"
5081 #endif
5082 char remove ();
5084 main ()
5086 return remove ();
5088 return 0;
5090 _ACEOF
5091 rm -f conftest.$ac_objext conftest$ac_exeext
5092 if { (ac_try="$ac_link"
5093 case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_link") 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5106 { (case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_try") 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; } &&
5115 { ac_try='test -s conftest$ac_exeext'
5116 { (case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119 esac
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_try") 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 ac_cv_lib_posix_remove=yes
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 ac_cv_lib_posix_remove=no
5133 rm -f core conftest.err conftest.$ac_objext \
5134 conftest$ac_exeext conftest.$ac_ext
5135 LIBS=$ac_check_lib_save_LIBS
5137 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5138 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5139 if test $ac_cv_lib_posix_remove = yes; then
5140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5145 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5146 { echo "$as_me:$LINENO: checking for shmat" >&5
5147 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5148 if test "${ac_cv_func_shmat+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 cat >conftest.$ac_ext <<_ACEOF
5152 /* confdefs.h. */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5157 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5159 #define shmat innocuous_shmat
5161 /* System header to define __stub macros and hopefully few prototypes,
5162 which can conflict with char shmat (); below.
5163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5164 <limits.h> exists even on freestanding compilers. */
5166 #ifdef __STDC__
5167 # include <limits.h>
5168 #else
5169 # include <assert.h>
5170 #endif
5172 #undef shmat
5174 /* Override any GCC internal prototype to avoid an error.
5175 Use char because int might match the return type of a GCC
5176 builtin and then its argument prototype would still apply. */
5177 #ifdef __cplusplus
5178 extern "C"
5179 #endif
5180 char shmat ();
5181 /* The GNU C library defines this for functions which it implements
5182 to always fail with ENOSYS. Some functions are actually named
5183 something starting with __ and the normal name is an alias. */
5184 #if defined __stub_shmat || defined __stub___shmat
5185 choke me
5186 #endif
5189 main ()
5191 return shmat ();
5193 return 0;
5195 _ACEOF
5196 rm -f conftest.$ac_objext conftest$ac_exeext
5197 if { (ac_try="$ac_link"
5198 case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201 esac
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_link") 2>conftest.er1
5204 ac_status=$?
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } &&
5210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5211 { (case "(($ac_try" in
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5214 esac
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216 (eval "$ac_try") 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224 esac
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_try") 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_cv_func_shmat=yes
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5235 ac_cv_func_shmat=no
5238 rm -f core conftest.err conftest.$ac_objext \
5239 conftest$ac_exeext conftest.$ac_ext
5241 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5242 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5244 if test $ac_cv_func_shmat = no; then
5245 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5246 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5247 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 ac_check_lib_save_LIBS=$LIBS
5251 LIBS="-lipc $LIBS"
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5259 /* Override any GCC internal prototype to avoid an error.
5260 Use char because int might match the return type of a GCC
5261 builtin and then its argument prototype would still apply. */
5262 #ifdef __cplusplus
5263 extern "C"
5264 #endif
5265 char shmat ();
5267 main ()
5269 return shmat ();
5271 return 0;
5273 _ACEOF
5274 rm -f conftest.$ac_objext conftest$ac_exeext
5275 if { (ac_try="$ac_link"
5276 case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_link") 2>conftest.er1
5282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5289 { (case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_try") 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; } &&
5298 { ac_try='test -s conftest$ac_exeext'
5299 { (case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302 esac
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_try") 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 ac_cv_lib_ipc_shmat=yes
5309 else
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5313 ac_cv_lib_ipc_shmat=no
5316 rm -f core conftest.err conftest.$ac_objext \
5317 conftest$ac_exeext conftest.$ac_ext
5318 LIBS=$ac_check_lib_save_LIBS
5320 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5321 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5322 if test $ac_cv_lib_ipc_shmat = yes; then
5323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5329 # Check for libraries that X11R6 Xt/Xaw programs need.
5330 ac_save_LDFLAGS=$LDFLAGS
5331 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5332 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5333 # check for ICE first), but we must link in the order -lSM -lICE or
5334 # we get undefined symbols. So assume we have SM if we have ICE.
5335 # These have to be linked with before -lX11, unlike the other
5336 # libraries we check for below, so use a different variable.
5337 # John Interrante, Karl Berry
5338 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5339 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5340 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 ac_check_lib_save_LIBS=$LIBS
5344 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h. */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5352 /* Override any GCC internal prototype to avoid an error.
5353 Use char because int might match the return type of a GCC
5354 builtin and then its argument prototype would still apply. */
5355 #ifdef __cplusplus
5356 extern "C"
5357 #endif
5358 char IceConnectionNumber ();
5360 main ()
5362 return IceConnectionNumber ();
5364 return 0;
5366 _ACEOF
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (ac_try="$ac_link"
5369 case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_link") 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5382 { (case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_try") 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; } &&
5391 { ac_try='test -s conftest$ac_exeext'
5392 { (case "(($ac_try" in
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_try") 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_cv_lib_ICE_IceConnectionNumber=yes
5402 else
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5406 ac_cv_lib_ICE_IceConnectionNumber=no
5409 rm -f core conftest.err conftest.$ac_objext \
5410 conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5413 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5414 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5415 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5416 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5419 LDFLAGS=$ac_save_LDFLAGS
5423 for ac_prog in flex lex
5425 # Extract the first word of "$ac_prog", so it can be a program name with args.
5426 set dummy $ac_prog; ac_word=$2
5427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5429 if test "${ac_cv_prog_LEX+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 if test -n "$LEX"; then
5433 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_prog_LEX="$ac_prog"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5446 done
5447 done
5448 IFS=$as_save_IFS
5452 LEX=$ac_cv_prog_LEX
5453 if test -n "$LEX"; then
5454 { echo "$as_me:$LINENO: result: $LEX" >&5
5455 echo "${ECHO_T}$LEX" >&6; }
5456 else
5457 { echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6; }
5462 test -n "$LEX" && break
5463 done
5464 test -n "$LEX" || LEX=":"
5466 if test -z "$LEXLIB"
5467 then
5468 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5469 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
5470 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 ac_check_lib_save_LIBS=$LIBS
5474 LIBS="-lfl $LIBS"
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5482 /* Override any GCC internal prototype to avoid an error.
5483 Use char because int might match the return type of a GCC
5484 builtin and then its argument prototype would still apply. */
5485 #ifdef __cplusplus
5486 extern "C"
5487 #endif
5488 char yywrap ();
5490 main ()
5492 return yywrap ();
5494 return 0;
5496 _ACEOF
5497 rm -f conftest.$ac_objext conftest$ac_exeext
5498 if { (ac_try="$ac_link"
5499 case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502 esac
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_link") 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5512 { (case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_try") 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest$ac_exeext'
5522 { (case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_try") 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 ac_cv_lib_fl_yywrap=yes
5532 else
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 ac_cv_lib_fl_yywrap=no
5539 rm -f core conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
5541 LIBS=$ac_check_lib_save_LIBS
5543 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5544 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
5545 if test $ac_cv_lib_fl_yywrap = yes; then
5546 LEXLIB="-lfl"
5547 else
5548 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5549 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
5550 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 ac_check_lib_save_LIBS=$LIBS
5554 LIBS="-ll $LIBS"
5555 cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h. */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5562 /* Override any GCC internal prototype to avoid an error.
5563 Use char because int might match the return type of a GCC
5564 builtin and then its argument prototype would still apply. */
5565 #ifdef __cplusplus
5566 extern "C"
5567 #endif
5568 char yywrap ();
5570 main ()
5572 return yywrap ();
5574 return 0;
5576 _ACEOF
5577 rm -f conftest.$ac_objext conftest$ac_exeext
5578 if { (ac_try="$ac_link"
5579 case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582 esac
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_link") 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5592 { (case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5595 esac
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_try") 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; } &&
5601 { ac_try='test -s conftest$ac_exeext'
5602 { (case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_try") 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_lib_l_yywrap=yes
5612 else
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 ac_cv_lib_l_yywrap=no
5619 rm -f core conftest.err conftest.$ac_objext \
5620 conftest$ac_exeext conftest.$ac_ext
5621 LIBS=$ac_check_lib_save_LIBS
5623 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5624 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
5625 if test $ac_cv_lib_l_yywrap = yes; then
5626 LEXLIB="-ll"
5633 if test "x$LEX" != "x:"; then
5634 { echo "$as_me:$LINENO: checking lex output file root" >&5
5635 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5636 if test "${ac_cv_prog_lex_root+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 # The minimal lex program is just a single line: %%. But some broken lexes
5640 # (Solaris, I think it was) want two %% lines, so accommodate them.
5641 cat >conftest.l <<_ACEOF
5644 _ACEOF
5645 { (ac_try="$LEX conftest.l"
5646 case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$LEX conftest.l") 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }
5655 if test -f lex.yy.c; then
5656 ac_cv_prog_lex_root=lex.yy
5657 elif test -f lexyy.c; then
5658 ac_cv_prog_lex_root=lexyy
5659 else
5660 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5661 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5662 { (exit 1); exit 1; }; }
5665 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5666 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5667 rm -f conftest.l
5668 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5670 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5671 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5672 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675 # POSIX says lex can declare yytext either as a pointer or an array; the
5676 # default is implementation-dependent. Figure out which it is, since
5677 # not all implementations provide the %pointer and %array declarations.
5678 ac_cv_prog_lex_yytext_pointer=no
5679 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5680 ac_save_LIBS=$LIBS
5681 LIBS="$LIBS $LEXLIB"
5682 cat >conftest.$ac_ext <<_ACEOF
5683 `cat $LEX_OUTPUT_ROOT.c`
5684 _ACEOF
5685 rm -f conftest.$ac_objext conftest$ac_exeext
5686 if { (ac_try="$ac_link"
5687 case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_link") 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5700 { (case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703 esac
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_try") 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest$ac_exeext'
5710 { (case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713 esac
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_try") 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_cv_prog_lex_yytext_pointer=yes
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5727 rm -f core conftest.err conftest.$ac_objext \
5728 conftest$ac_exeext conftest.$ac_ext
5729 LIBS=$ac_save_LIBS
5730 rm -f "${LEX_OUTPUT_ROOT}.c"
5733 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5734 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5735 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5737 cat >>confdefs.h <<\_ACEOF
5738 #define YYTEXT_POINTER 1
5739 _ACEOF
5745 for ac_prog in $LEX flex lex
5747 # Extract the first word of "$ac_prog", so it can be a program name with args.
5748 set dummy $ac_prog; ac_word=$2
5749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5751 if test "${ac_cv_prog_XLEX+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754 if test -n "$XLEX"; then
5755 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_prog_XLEX="$ac_prog"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5768 done
5769 done
5770 IFS=$as_save_IFS
5774 XLEX=$ac_cv_prog_XLEX
5775 if test -n "$XLEX"; then
5776 { echo "$as_me:$LINENO: result: $XLEX" >&5
5777 echo "${ECHO_T}$XLEX" >&6; }
5778 else
5779 { echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6; }
5784 test -n "$XLEX" && break
5785 done
5786 test -n "$XLEX" || XLEX="none"
5788 if test "$XLEX" = "none"
5789 then
5790 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5791 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5792 { (exit 1); exit 1; }; }
5795 for ac_prog in bison
5797 # Extract the first word of "$ac_prog", so it can be a program name with args.
5798 set dummy $ac_prog; ac_word=$2
5799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801 if test "${ac_cv_prog_BISON+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 if test -n "$BISON"; then
5805 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_prog_BISON="$ac_prog"
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5818 done
5819 done
5820 IFS=$as_save_IFS
5824 BISON=$ac_cv_prog_BISON
5825 if test -n "$BISON"; then
5826 { echo "$as_me:$LINENO: result: $BISON" >&5
5827 echo "${ECHO_T}$BISON" >&6; }
5828 else
5829 { echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6; }
5834 test -n "$BISON" && break
5835 done
5836 test -n "$BISON" || BISON="none"
5838 if test "$BISON" = "none"
5839 then
5840 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5841 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5842 { (exit 1); exit 1; }; }
5845 if test -n "$ac_tool_prefix"; then
5846 for ac_prog in gas as
5848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852 if test "${ac_cv_prog_AS+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855 if test -n "$AS"; then
5856 ac_cv_prog_AS="$AS" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5865 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5869 done
5870 done
5871 IFS=$as_save_IFS
5875 AS=$ac_cv_prog_AS
5876 if test -n "$AS"; then
5877 { echo "$as_me:$LINENO: result: $AS" >&5
5878 echo "${ECHO_T}$AS" >&6; }
5879 else
5880 { echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6; }
5885 test -n "$AS" && break
5886 done
5888 if test -z "$AS"; then
5889 ac_ct_AS=$AS
5890 for ac_prog in gas as
5892 # Extract the first word of "$ac_prog", so it can be a program name with args.
5893 set dummy $ac_prog; ac_word=$2
5894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5896 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899 if test -n "$ac_ct_AS"; then
5900 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_prog_ac_ct_AS="$ac_prog"
5910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 break 2
5913 done
5914 done
5915 IFS=$as_save_IFS
5919 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5920 if test -n "$ac_ct_AS"; then
5921 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5922 echo "${ECHO_T}$ac_ct_AS" >&6; }
5923 else
5924 { echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6; }
5929 test -n "$ac_ct_AS" && break
5930 done
5932 if test "x$ac_ct_AS" = x; then
5933 AS="as"
5934 else
5935 case $cross_compiling:$ac_tool_warned in
5936 yes:)
5937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5938 whose name does not start with the host triplet. If you think this
5939 configuration is useful to you, please write to autoconf@gnu.org." >&5
5940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5941 whose name does not start with the host triplet. If you think this
5942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5943 ac_tool_warned=yes ;;
5944 esac
5945 AS=$ac_ct_AS
5949 if test -n "$ac_tool_prefix"; then
5950 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5951 set dummy ${ac_tool_prefix}ld; ac_word=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_prog_LD+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 if test -n "$LD"; then
5958 ac_cv_prog_LD="$LD" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_LD="${ac_tool_prefix}ld"
5968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5971 done
5972 done
5973 IFS=$as_save_IFS
5977 LD=$ac_cv_prog_LD
5978 if test -n "$LD"; then
5979 { echo "$as_me:$LINENO: result: $LD" >&5
5980 echo "${ECHO_T}$LD" >&6; }
5981 else
5982 { echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6; }
5988 if test -z "$ac_cv_prog_LD"; then
5989 ac_ct_LD=$LD
5990 # Extract the first word of "ld", so it can be a program name with args.
5991 set dummy ld; ac_word=$2
5992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5994 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997 if test -n "$ac_ct_LD"; then
5998 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6007 ac_cv_prog_ac_ct_LD="ld"
6008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 break 2
6011 done
6012 done
6013 IFS=$as_save_IFS
6017 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6018 if test -n "$ac_ct_LD"; then
6019 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6020 echo "${ECHO_T}$ac_ct_LD" >&6; }
6021 else
6022 { echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6; }
6026 if test "x$ac_ct_LD" = x; then
6027 LD="ld"
6028 else
6029 case $cross_compiling:$ac_tool_warned in
6030 yes:)
6031 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6032 whose name does not start with the host triplet. If you think this
6033 configuration is useful to you, please write to autoconf@gnu.org." >&5
6034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6035 whose name does not start with the host triplet. If you think this
6036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6037 ac_tool_warned=yes ;;
6038 esac
6039 LD=$ac_ct_LD
6041 else
6042 LD="$ac_cv_prog_LD"
6045 if test -n "$ac_tool_prefix"; then
6046 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6047 set dummy ${ac_tool_prefix}ar; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_prog_AR+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 if test -n "$AR"; then
6054 ac_cv_prog_AR="$AR" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_AR="${ac_tool_prefix}ar"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6067 done
6068 done
6069 IFS=$as_save_IFS
6073 AR=$ac_cv_prog_AR
6074 if test -n "$AR"; then
6075 { echo "$as_me:$LINENO: result: $AR" >&5
6076 echo "${ECHO_T}$AR" >&6; }
6077 else
6078 { echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6; }
6084 if test -z "$ac_cv_prog_AR"; then
6085 ac_ct_AR=$AR
6086 # Extract the first word of "ar", so it can be a program name with args.
6087 set dummy ar; ac_word=$2
6088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 if test -n "$ac_ct_AR"; then
6094 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_ac_ct_AR="ar"
6104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6107 done
6108 done
6109 IFS=$as_save_IFS
6113 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6114 if test -n "$ac_ct_AR"; then
6115 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6116 echo "${ECHO_T}$ac_ct_AR" >&6; }
6117 else
6118 { echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6; }
6122 if test "x$ac_ct_AR" = x; then
6123 AR="ar"
6124 else
6125 case $cross_compiling:$ac_tool_warned in
6126 yes:)
6127 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6128 whose name does not start with the host triplet. If you think this
6129 configuration is useful to you, please write to autoconf@gnu.org." >&5
6130 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6131 whose name does not start with the host triplet. If you think this
6132 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6133 ac_tool_warned=yes ;;
6134 esac
6135 AR=$ac_ct_AR
6137 else
6138 AR="$ac_cv_prog_AR"
6141 if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_prog_RANLIB+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149 if test -n "$RANLIB"; then
6150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6163 done
6164 done
6165 IFS=$as_save_IFS
6169 RANLIB=$ac_cv_prog_RANLIB
6170 if test -n "$RANLIB"; then
6171 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6172 echo "${ECHO_T}$RANLIB" >&6; }
6173 else
6174 { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6180 if test -z "$ac_cv_prog_RANLIB"; then
6181 ac_ct_RANLIB=$RANLIB
6182 # Extract the first word of "ranlib", so it can be a program name with args.
6183 set dummy ranlib; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189 if test -n "$ac_ct_RANLIB"; then
6190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_ac_ct_RANLIB="ranlib"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6203 done
6204 done
6205 IFS=$as_save_IFS
6209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6210 if test -n "$ac_ct_RANLIB"; then
6211 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6212 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6213 else
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6218 if test "x$ac_ct_RANLIB" = x; then
6219 RANLIB=":"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222 yes:)
6223 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6224 whose name does not start with the host triplet. If you think this
6225 configuration is useful to you, please write to autoconf@gnu.org." >&5
6226 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6227 whose name does not start with the host triplet. If you think this
6228 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6229 ac_tool_warned=yes ;;
6230 esac
6231 RANLIB=$ac_ct_RANLIB
6233 else
6234 RANLIB="$ac_cv_prog_RANLIB"
6237 if test -n "$ac_tool_prefix"; then
6238 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6239 set dummy ${ac_tool_prefix}strip; ac_word=$2
6240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6242 if test "${ac_cv_prog_STRIP+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245 if test -n "$STRIP"; then
6246 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6259 done
6260 done
6261 IFS=$as_save_IFS
6265 STRIP=$ac_cv_prog_STRIP
6266 if test -n "$STRIP"; then
6267 { echo "$as_me:$LINENO: result: $STRIP" >&5
6268 echo "${ECHO_T}$STRIP" >&6; }
6269 else
6270 { echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6; }
6276 if test -z "$ac_cv_prog_STRIP"; then
6277 ac_ct_STRIP=$STRIP
6278 # Extract the first word of "strip", so it can be a program name with args.
6279 set dummy strip; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 if test -n "$ac_ct_STRIP"; then
6286 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_ac_ct_STRIP="strip"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6299 done
6300 done
6301 IFS=$as_save_IFS
6305 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6306 if test -n "$ac_ct_STRIP"; then
6307 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6308 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6309 else
6310 { echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6; }
6314 if test "x$ac_ct_STRIP" = x; then
6315 STRIP="strip"
6316 else
6317 case $cross_compiling:$ac_tool_warned in
6318 yes:)
6319 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6320 whose name does not start with the host triplet. If you think this
6321 configuration is useful to you, please write to autoconf@gnu.org." >&5
6322 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6323 whose name does not start with the host triplet. If you think this
6324 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6325 ac_tool_warned=yes ;;
6326 esac
6327 STRIP=$ac_ct_STRIP
6329 else
6330 STRIP="$ac_cv_prog_STRIP"
6333 if test -n "$ac_tool_prefix"; then
6334 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6335 set dummy ${ac_tool_prefix}windres; ac_word=$2
6336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6338 if test "${ac_cv_prog_WINDRES+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341 if test -n "$WINDRES"; then
6342 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6351 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6355 done
6356 done
6357 IFS=$as_save_IFS
6361 WINDRES=$ac_cv_prog_WINDRES
6362 if test -n "$WINDRES"; then
6363 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6364 echo "${ECHO_T}$WINDRES" >&6; }
6365 else
6366 { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6372 if test -z "$ac_cv_prog_WINDRES"; then
6373 ac_ct_WINDRES=$WINDRES
6374 # Extract the first word of "windres", so it can be a program name with args.
6375 set dummy windres; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 if test -n "$ac_ct_WINDRES"; then
6382 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6391 ac_cv_prog_ac_ct_WINDRES="windres"
6392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6395 done
6396 done
6397 IFS=$as_save_IFS
6401 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6402 if test -n "$ac_ct_WINDRES"; then
6403 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6404 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6405 else
6406 { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6410 if test "x$ac_ct_WINDRES" = x; then
6411 WINDRES="false"
6412 else
6413 case $cross_compiling:$ac_tool_warned in
6414 yes:)
6415 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6416 whose name does not start with the host triplet. If you think this
6417 configuration is useful to you, please write to autoconf@gnu.org." >&5
6418 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6419 whose name does not start with the host triplet. If you think this
6420 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6421 ac_tool_warned=yes ;;
6422 esac
6423 WINDRES=$ac_ct_WINDRES
6425 else
6426 WINDRES="$ac_cv_prog_WINDRES"
6429 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6430 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6431 LN_S=$as_ln_s
6432 if test "$LN_S" = "ln -s"; then
6433 { echo "$as_me:$LINENO: result: yes" >&5
6434 echo "${ECHO_T}yes" >&6; }
6435 else
6436 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6437 echo "${ECHO_T}no, using $LN_S" >&6; }
6440 { echo "$as_me:$LINENO: checking whether ln works" >&5
6441 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
6442 rm -f conf$$ conf$$.file
6443 echo >conf$$.file
6444 if ln conf$$.file conf$$ 2>/dev/null; then
6445 LN=ln
6447 { echo "$as_me:$LINENO: result: yes" >&5
6448 echo "${ECHO_T}yes" >&6; }
6449 else
6450 LN="cp -p"
6452 { echo "$as_me:$LINENO: result: no, using $LN" >&5
6453 echo "${ECHO_T}no, using $LN" >&6; }
6455 rm -f conf$$ conf$$.file
6456 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6457 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6458 if test "${ac_cv_path_GREP+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 # Extract the first word of "grep ggrep" to use in msg output
6462 if test -z "$GREP"; then
6463 set dummy grep ggrep; ac_prog_name=$2
6464 if test "${ac_cv_path_GREP+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 ac_path_GREP_found=false
6468 # Loop through the user's path and test for each of PROGNAME-LIST
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_prog in grep ggrep; do
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6477 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6478 # Check for GNU ac_path_GREP and select it if it is found.
6479 # Check for GNU $ac_path_GREP
6480 case `"$ac_path_GREP" --version 2>&1` in
6481 *GNU*)
6482 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6484 ac_count=0
6485 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6486 while :
6488 cat "conftest.in" "conftest.in" >"conftest.tmp"
6489 mv "conftest.tmp" "conftest.in"
6490 cp "conftest.in" "conftest.nl"
6491 echo 'GREP' >> "conftest.nl"
6492 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6494 ac_count=`expr $ac_count + 1`
6495 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6496 # Best one so far, save it but keep looking for a better one
6497 ac_cv_path_GREP="$ac_path_GREP"
6498 ac_path_GREP_max=$ac_count
6500 # 10*(2^10) chars as input seems more than enough
6501 test $ac_count -gt 10 && break
6502 done
6503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6504 esac
6507 $ac_path_GREP_found && break 3
6508 done
6509 done
6511 done
6512 IFS=$as_save_IFS
6517 GREP="$ac_cv_path_GREP"
6518 if test -z "$GREP"; then
6519 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6520 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6521 { (exit 1); exit 1; }; }
6524 else
6525 ac_cv_path_GREP=$GREP
6530 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6531 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6532 GREP="$ac_cv_path_GREP"
6535 { echo "$as_me:$LINENO: checking for egrep" >&5
6536 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6537 if test "${ac_cv_path_EGREP+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6541 then ac_cv_path_EGREP="$GREP -E"
6542 else
6543 # Extract the first word of "egrep" to use in msg output
6544 if test -z "$EGREP"; then
6545 set dummy egrep; ac_prog_name=$2
6546 if test "${ac_cv_path_EGREP+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549 ac_path_EGREP_found=false
6550 # Loop through the user's path and test for each of PROGNAME-LIST
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_prog in egrep; do
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6559 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6560 # Check for GNU ac_path_EGREP and select it if it is found.
6561 # Check for GNU $ac_path_EGREP
6562 case `"$ac_path_EGREP" --version 2>&1` in
6563 *GNU*)
6564 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6566 ac_count=0
6567 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6568 while :
6570 cat "conftest.in" "conftest.in" >"conftest.tmp"
6571 mv "conftest.tmp" "conftest.in"
6572 cp "conftest.in" "conftest.nl"
6573 echo 'EGREP' >> "conftest.nl"
6574 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6576 ac_count=`expr $ac_count + 1`
6577 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6578 # Best one so far, save it but keep looking for a better one
6579 ac_cv_path_EGREP="$ac_path_EGREP"
6580 ac_path_EGREP_max=$ac_count
6582 # 10*(2^10) chars as input seems more than enough
6583 test $ac_count -gt 10 && break
6584 done
6585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6586 esac
6589 $ac_path_EGREP_found && break 3
6590 done
6591 done
6593 done
6594 IFS=$as_save_IFS
6599 EGREP="$ac_cv_path_EGREP"
6600 if test -z "$EGREP"; then
6601 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6602 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6603 { (exit 1); exit 1; }; }
6606 else
6607 ac_cv_path_EGREP=$EGREP
6613 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6614 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6615 EGREP="$ac_cv_path_EGREP"
6618 # Extract the first word of "ldconfig", so it can be a program name with args.
6619 set dummy ldconfig; ac_word=$2
6620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625 case $LDCONFIG in
6626 [\\/]* | ?:[\\/]*)
6627 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in /sbin /usr/sbin $PATH
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6641 done
6642 done
6643 IFS=$as_save_IFS
6645 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6647 esac
6649 LDCONFIG=$ac_cv_path_LDCONFIG
6650 if test -n "$LDCONFIG"; then
6651 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6652 echo "${ECHO_T}$LDCONFIG" >&6; }
6653 else
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6659 # Find a good install program. We prefer a C program (faster),
6660 # so one script is as good as another. But avoid the broken or
6661 # incompatible versions:
6662 # SysV /etc/install, /usr/sbin/install
6663 # SunOS /usr/etc/install
6664 # IRIX /sbin/install
6665 # AIX /bin/install
6666 # AmigaOS /C/install, which installs bootblocks on floppy discs
6667 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6668 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6669 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6670 # OS/2's system install, which has a completely different semantic
6671 # ./install, which can be erroneously created by make from ./install.sh.
6672 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6673 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6674 if test -z "$INSTALL"; then
6675 if test "${ac_cv_path_install+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 # Account for people who put trailing slashes in PATH elements.
6684 case $as_dir/ in
6685 ./ | .// | /cC/* | \
6686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6687 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6688 /usr/ucb/* ) ;;
6690 # OSF1 and SCO ODT 3.0 have their own names for install.
6691 # Don't use installbsd from OSF since it installs stuff as root
6692 # by default.
6693 for ac_prog in ginstall scoinst install; do
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6696 if test $ac_prog = install &&
6697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6698 # AIX install. It has an incompatible calling convention.
6700 elif test $ac_prog = install &&
6701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6702 # program-specific install script used by HP pwplus--don't use.
6704 else
6705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6706 break 3
6709 done
6710 done
6712 esac
6713 done
6714 IFS=$as_save_IFS
6718 if test "${ac_cv_path_install+set}" = set; then
6719 INSTALL=$ac_cv_path_install
6720 else
6721 # As a last resort, use the slow shell script. Don't cache a
6722 # value for INSTALL within a source directory, because that will
6723 # break other packages using the cache if that directory is
6724 # removed, or if the value is a relative name.
6725 INSTALL=$ac_install_sh
6728 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6729 echo "${ECHO_T}$INSTALL" >&6; }
6731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6732 # It thinks the first close brace ends the variable substitution.
6733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6739 case "$INSTALL" in
6740 [\\/$]* | ?:[\\/]* ) ;;
6741 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6742 esac
6744 for ac_prog in lclint lint
6746 # Extract the first word of "$ac_prog", so it can be a program name with args.
6747 set dummy $ac_prog; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_prog_LINT+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753 if test -n "$LINT"; then
6754 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_prog_LINT="$ac_prog"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6767 done
6768 done
6769 IFS=$as_save_IFS
6773 LINT=$ac_cv_prog_LINT
6774 if test -n "$LINT"; then
6775 { echo "$as_me:$LINENO: result: $LINT" >&5
6776 echo "${ECHO_T}$LINT" >&6; }
6777 else
6778 { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6783 test -n "$LINT" && break
6784 done
6786 if test "$LINT" = "lint"
6787 then
6788 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6793 for ac_prog in fontforge
6795 # Extract the first word of "$ac_prog", so it can be a program name with args.
6796 set dummy $ac_prog; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802 if test -n "$FONTFORGE"; then
6803 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_prog_FONTFORGE="$ac_prog"
6813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6816 done
6817 done
6818 IFS=$as_save_IFS
6822 FONTFORGE=$ac_cv_prog_FONTFORGE
6823 if test -n "$FONTFORGE"; then
6824 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6825 echo "${ECHO_T}$FONTFORGE" >&6; }
6826 else
6827 { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6832 test -n "$FONTFORGE" && break
6833 done
6834 test -n "$FONTFORGE" || FONTFORGE="false"
6836 for ac_prog in pkg-config
6838 # Extract the first word of "$ac_prog", so it can be a program name with args.
6839 set dummy $ac_prog; ac_word=$2
6840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6842 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845 if test -n "$PKG_CONFIG"; then
6846 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_prog_PKG_CONFIG="$ac_prog"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6859 done
6860 done
6861 IFS=$as_save_IFS
6865 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6866 if test -n "$PKG_CONFIG"; then
6867 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6868 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6869 else
6870 { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6875 test -n "$PKG_CONFIG" && break
6876 done
6877 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6880 case $host_cpu in
6881 *i[3456789]86*)
6882 for ac_prog in prelink
6884 # Extract the first word of "$ac_prog", so it can be a program name with args.
6885 set dummy $ac_prog; ac_word=$2
6886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888 if test "${ac_cv_prog_PRELINK+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891 if test -n "$PRELINK"; then
6892 ac_cv_prog_PRELINK="$PRELINK" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in /sbin /usr/sbin $PATH
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_prog_PRELINK="$ac_prog"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6905 done
6906 done
6907 IFS=$as_save_IFS
6911 PRELINK=$ac_cv_prog_PRELINK
6912 if test -n "$PRELINK"; then
6913 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6914 echo "${ECHO_T}$PRELINK" >&6; }
6915 else
6916 { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6921 test -n "$PRELINK" && break
6922 done
6923 test -n "$PRELINK" || PRELINK="false"
6926 esac
6930 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6931 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6932 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935 ac_check_lib_save_LIBS=$LIBS
6936 LIBS="-li386 $LIBS"
6937 cat >conftest.$ac_ext <<_ACEOF
6938 /* confdefs.h. */
6939 _ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6944 /* Override any GCC internal prototype to avoid an error.
6945 Use char because int might match the return type of a GCC
6946 builtin and then its argument prototype would still apply. */
6947 #ifdef __cplusplus
6948 extern "C"
6949 #endif
6950 char i386_set_ldt ();
6952 main ()
6954 return i386_set_ldt ();
6956 return 0;
6958 _ACEOF
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (ac_try="$ac_link"
6961 case "(($ac_try" in
6962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6963 *) ac_try_echo=$ac_try;;
6964 esac
6965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6966 (eval "$ac_link") 2>conftest.er1
6967 ac_status=$?
6968 grep -v '^ *+' conftest.er1 >conftest.err
6969 rm -f conftest.er1
6970 cat conftest.err >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } &&
6973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6974 { (case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977 esac
6978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6979 (eval "$ac_try") 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest$ac_exeext'
6984 { (case "(($ac_try" in
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6987 esac
6988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6989 (eval "$ac_try") 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 ac_cv_lib_i386_i386_set_ldt=yes
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_cv_lib_i386_i386_set_ldt=no
7001 rm -f core conftest.err conftest.$ac_objext \
7002 conftest$ac_exeext conftest.$ac_ext
7003 LIBS=$ac_check_lib_save_LIBS
7005 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7006 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
7007 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
7008 cat >>confdefs.h <<_ACEOF
7009 #define HAVE_LIBI386 1
7010 _ACEOF
7012 LIBS="-li386 $LIBS"
7017 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7018 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
7019 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 ac_check_lib_save_LIBS=$LIBS
7023 LIBS="-lossaudio $LIBS"
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h. */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7031 /* Override any GCC internal prototype to avoid an error.
7032 Use char because int might match the return type of a GCC
7033 builtin and then its argument prototype would still apply. */
7034 #ifdef __cplusplus
7035 extern "C"
7036 #endif
7037 char _oss_ioctl ();
7039 main ()
7041 return _oss_ioctl ();
7043 return 0;
7045 _ACEOF
7046 rm -f conftest.$ac_objext conftest$ac_exeext
7047 if { (ac_try="$ac_link"
7048 case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051 esac
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_link") 2>conftest.er1
7054 ac_status=$?
7055 grep -v '^ *+' conftest.er1 >conftest.err
7056 rm -f conftest.er1
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
7060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7061 { (case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064 esac
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_try") 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest$ac_exeext'
7071 { (case "(($ac_try" in
7072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073 *) ac_try_echo=$ac_try;;
7074 esac
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076 (eval "$ac_try") 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 ac_cv_lib_ossaudio__oss_ioctl=yes
7081 else
7082 echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7085 ac_cv_lib_ossaudio__oss_ioctl=no
7088 rm -f core conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7090 LIBS=$ac_check_lib_save_LIBS
7092 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7093 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7094 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096 #define HAVE_LIBOSSAUDIO 1
7097 _ACEOF
7099 LIBS="-lossaudio $LIBS"
7104 for ac_func in gethostbyname
7106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7120 #define $ac_func innocuous_$ac_func
7122 /* System header to define __stub macros and hopefully few prototypes,
7123 which can conflict with char $ac_func (); below.
7124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7125 <limits.h> exists even on freestanding compilers. */
7127 #ifdef __STDC__
7128 # include <limits.h>
7129 #else
7130 # include <assert.h>
7131 #endif
7133 #undef $ac_func
7135 /* Override any GCC internal prototype to avoid an error.
7136 Use char because int might match the return type of a GCC
7137 builtin and then its argument prototype would still apply. */
7138 #ifdef __cplusplus
7139 extern "C"
7140 #endif
7141 char $ac_func ();
7142 /* The GNU C library defines this for functions which it implements
7143 to always fail with ENOSYS. Some functions are actually named
7144 something starting with __ and the normal name is an alias. */
7145 #if defined __stub_$ac_func || defined __stub___$ac_func
7146 choke me
7147 #endif
7150 main ()
7152 return $ac_func ();
7154 return 0;
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (ac_try="$ac_link"
7159 case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162 esac
7163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_link") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7172 { (case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175 esac
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_try") 2>&5
7178 ac_status=$?
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; } &&
7181 { ac_try='test -s conftest$ac_exeext'
7182 { (case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185 esac
7186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7187 (eval "$ac_try") 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 eval "$as_ac_var=yes"
7192 else
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 eval "$as_ac_var=no"
7199 rm -f core conftest.err conftest.$ac_objext \
7200 conftest$ac_exeext conftest.$ac_ext
7202 ac_res=`eval echo '${'$as_ac_var'}'`
7203 { echo "$as_me:$LINENO: result: $ac_res" >&5
7204 echo "${ECHO_T}$ac_res" >&6; }
7205 if test `eval echo '${'$as_ac_var'}'` = yes; then
7206 cat >>confdefs.h <<_ACEOF
7207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7208 _ACEOF
7210 else
7212 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7213 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
7214 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217 ac_check_lib_save_LIBS=$LIBS
7218 LIBS="-lnsl $LIBS"
7219 cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h. */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7226 /* Override any GCC internal prototype to avoid an error.
7227 Use char because int might match the return type of a GCC
7228 builtin and then its argument prototype would still apply. */
7229 #ifdef __cplusplus
7230 extern "C"
7231 #endif
7232 char gethostbyname ();
7234 main ()
7236 return gethostbyname ();
7238 return 0;
7240 _ACEOF
7241 rm -f conftest.$ac_objext conftest$ac_exeext
7242 if { (ac_try="$ac_link"
7243 case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246 esac
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_link") 2>conftest.er1
7249 ac_status=$?
7250 grep -v '^ *+' conftest.er1 >conftest.err
7251 rm -f conftest.er1
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } &&
7255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7256 { (case "(($ac_try" in
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7259 esac
7260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261 (eval "$ac_try") 2>&5
7262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; } &&
7265 { ac_try='test -s conftest$ac_exeext'
7266 { (case "(($ac_try" in
7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7269 esac
7270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7271 (eval "$ac_try") 2>&5
7272 ac_status=$?
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 ac_cv_lib_nsl_gethostbyname=yes
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_cv_lib_nsl_gethostbyname=no
7283 rm -f core conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7285 LIBS=$ac_check_lib_save_LIBS
7287 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7288 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
7289 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7290 cat >>confdefs.h <<_ACEOF
7291 #define HAVE_LIBNSL 1
7292 _ACEOF
7294 LIBS="-lnsl $LIBS"
7299 done
7302 for ac_func in connect
7304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7318 #define $ac_func innocuous_$ac_func
7320 /* System header to define __stub macros and hopefully few prototypes,
7321 which can conflict with char $ac_func (); below.
7322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7323 <limits.h> exists even on freestanding compilers. */
7325 #ifdef __STDC__
7326 # include <limits.h>
7327 #else
7328 # include <assert.h>
7329 #endif
7331 #undef $ac_func
7333 /* Override any GCC internal prototype to avoid an error.
7334 Use char because int might match the return type of a GCC
7335 builtin and then its argument prototype would still apply. */
7336 #ifdef __cplusplus
7337 extern "C"
7338 #endif
7339 char $ac_func ();
7340 /* The GNU C library defines this for functions which it implements
7341 to always fail with ENOSYS. Some functions are actually named
7342 something starting with __ and the normal name is an alias. */
7343 #if defined __stub_$ac_func || defined __stub___$ac_func
7344 choke me
7345 #endif
7348 main ()
7350 return $ac_func ();
7352 return 0;
7354 _ACEOF
7355 rm -f conftest.$ac_objext conftest$ac_exeext
7356 if { (ac_try="$ac_link"
7357 case "(($ac_try" in
7358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7359 *) ac_try_echo=$ac_try;;
7360 esac
7361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7362 (eval "$ac_link") 2>conftest.er1
7363 ac_status=$?
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } &&
7369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7370 { (case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7373 esac
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375 (eval "$ac_try") 2>&5
7376 ac_status=$?
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; } &&
7379 { ac_try='test -s conftest$ac_exeext'
7380 { (case "(($ac_try" in
7381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382 *) ac_try_echo=$ac_try;;
7383 esac
7384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7385 (eval "$ac_try") 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; }; then
7389 eval "$as_ac_var=yes"
7390 else
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7394 eval "$as_ac_var=no"
7397 rm -f core conftest.err conftest.$ac_objext \
7398 conftest$ac_exeext conftest.$ac_ext
7400 ac_res=`eval echo '${'$as_ac_var'}'`
7401 { echo "$as_me:$LINENO: result: $ac_res" >&5
7402 echo "${ECHO_T}$ac_res" >&6; }
7403 if test `eval echo '${'$as_ac_var'}'` = yes; then
7404 cat >>confdefs.h <<_ACEOF
7405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7406 _ACEOF
7408 else
7410 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7411 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7412 if test "${ac_cv_lib_socket_connect+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415 ac_check_lib_save_LIBS=$LIBS
7416 LIBS="-lsocket $LIBS"
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7424 /* Override any GCC internal prototype to avoid an error.
7425 Use char because int might match the return type of a GCC
7426 builtin and then its argument prototype would still apply. */
7427 #ifdef __cplusplus
7428 extern "C"
7429 #endif
7430 char connect ();
7432 main ()
7434 return connect ();
7436 return 0;
7438 _ACEOF
7439 rm -f conftest.$ac_objext conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7441 case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_link") 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7454 { (case "(($ac_try" in
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7457 esac
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_try") 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try='test -s conftest$ac_exeext'
7464 { (case "(($ac_try" in
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7467 esac
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_try") 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 ac_cv_lib_socket_connect=yes
7474 else
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7478 ac_cv_lib_socket_connect=no
7481 rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext conftest.$ac_ext
7483 LIBS=$ac_check_lib_save_LIBS
7485 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7486 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7487 if test $ac_cv_lib_socket_connect = yes; then
7488 cat >>confdefs.h <<_ACEOF
7489 #define HAVE_LIBSOCKET 1
7490 _ACEOF
7492 LIBS="-lsocket $LIBS"
7497 done
7500 for ac_func in inet_aton
7502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508 cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h. */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7516 #define $ac_func innocuous_$ac_func
7518 /* System header to define __stub macros and hopefully few prototypes,
7519 which can conflict with char $ac_func (); below.
7520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7521 <limits.h> exists even on freestanding compilers. */
7523 #ifdef __STDC__
7524 # include <limits.h>
7525 #else
7526 # include <assert.h>
7527 #endif
7529 #undef $ac_func
7531 /* Override any GCC internal prototype to avoid an error.
7532 Use char because int might match the return type of a GCC
7533 builtin and then its argument prototype would still apply. */
7534 #ifdef __cplusplus
7535 extern "C"
7536 #endif
7537 char $ac_func ();
7538 /* The GNU C library defines this for functions which it implements
7539 to always fail with ENOSYS. Some functions are actually named
7540 something starting with __ and the normal name is an alias. */
7541 #if defined __stub_$ac_func || defined __stub___$ac_func
7542 choke me
7543 #endif
7546 main ()
7548 return $ac_func ();
7550 return 0;
7552 _ACEOF
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (ac_try="$ac_link"
7555 case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558 esac
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_link") 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } &&
7567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7568 { (case "(($ac_try" in
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7571 esac
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_try") 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try='test -s conftest$ac_exeext'
7578 { (case "(($ac_try" in
7579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7581 esac
7582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583 (eval "$ac_try") 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; }; then
7587 eval "$as_ac_var=yes"
7588 else
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7592 eval "$as_ac_var=no"
7595 rm -f core conftest.err conftest.$ac_objext \
7596 conftest$ac_exeext conftest.$ac_ext
7598 ac_res=`eval echo '${'$as_ac_var'}'`
7599 { echo "$as_me:$LINENO: result: $ac_res" >&5
7600 echo "${ECHO_T}$ac_res" >&6; }
7601 if test `eval echo '${'$as_ac_var'}'` = yes; then
7602 cat >>confdefs.h <<_ACEOF
7603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7604 _ACEOF
7606 else
7608 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
7609 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
7610 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613 ac_check_lib_save_LIBS=$LIBS
7614 LIBS="-lresolv $LIBS"
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7622 /* Override any GCC internal prototype to avoid an error.
7623 Use char because int might match the return type of a GCC
7624 builtin and then its argument prototype would still apply. */
7625 #ifdef __cplusplus
7626 extern "C"
7627 #endif
7628 char inet_aton ();
7630 main ()
7632 return inet_aton ();
7634 return 0;
7636 _ACEOF
7637 rm -f conftest.$ac_objext conftest$ac_exeext
7638 if { (ac_try="$ac_link"
7639 case "(($ac_try" in
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7642 esac
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_link") 2>conftest.er1
7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7652 { (case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7655 esac
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_try") 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try='test -s conftest$ac_exeext'
7662 { (case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665 esac
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_try") 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_cv_lib_resolv_inet_aton=yes
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 ac_cv_lib_resolv_inet_aton=no
7679 rm -f core conftest.err conftest.$ac_objext \
7680 conftest$ac_exeext conftest.$ac_ext
7681 LIBS=$ac_check_lib_save_LIBS
7683 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
7684 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
7685 if test $ac_cv_lib_resolv_inet_aton = yes; then
7686 cat >>confdefs.h <<_ACEOF
7687 #define HAVE_LIBRESOLV 1
7688 _ACEOF
7690 LIBS="-lresolv $LIBS"
7695 done
7698 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7699 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
7700 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703 ac_check_lib_save_LIBS=$LIBS
7704 LIBS="-lxpg4 $LIBS"
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7712 /* Override any GCC internal prototype to avoid an error.
7713 Use char because int might match the return type of a GCC
7714 builtin and then its argument prototype would still apply. */
7715 #ifdef __cplusplus
7716 extern "C"
7717 #endif
7718 char _xpg4_setrunelocale ();
7720 main ()
7722 return _xpg4_setrunelocale ();
7724 return 0;
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (ac_try="$ac_link"
7729 case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732 esac
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_link") 2>conftest.er1
7735 ac_status=$?
7736 grep -v '^ *+' conftest.er1 >conftest.err
7737 rm -f conftest.er1
7738 cat conftest.err >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } &&
7741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7742 { (case "(($ac_try" in
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7745 esac
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747 (eval "$ac_try") 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try='test -s conftest$ac_exeext'
7752 { (case "(($ac_try" in
7753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7755 esac
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757 (eval "$ac_try") 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
7762 else
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 ac_cv_lib_xpg4__xpg4_setrunelocale=no
7769 rm -f core conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext conftest.$ac_ext
7771 LIBS=$ac_check_lib_save_LIBS
7773 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7774 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
7775 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
7776 cat >>confdefs.h <<_ACEOF
7777 #define HAVE_LIBXPG4 1
7778 _ACEOF
7780 LIBS="-lxpg4 $LIBS"
7785 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
7786 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
7787 if test "${ac_cv_lib_poll_poll+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790 ac_check_lib_save_LIBS=$LIBS
7791 LIBS="-lpoll $LIBS"
7792 cat >conftest.$ac_ext <<_ACEOF
7793 /* confdefs.h. */
7794 _ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7799 /* Override any GCC internal prototype to avoid an error.
7800 Use char because int might match the return type of a GCC
7801 builtin and then its argument prototype would still apply. */
7802 #ifdef __cplusplus
7803 extern "C"
7804 #endif
7805 char poll ();
7807 main ()
7809 return poll ();
7811 return 0;
7813 _ACEOF
7814 rm -f conftest.$ac_objext conftest$ac_exeext
7815 if { (ac_try="$ac_link"
7816 case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7819 esac
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821 (eval "$ac_link") 2>conftest.er1
7822 ac_status=$?
7823 grep -v '^ *+' conftest.er1 >conftest.err
7824 rm -f conftest.er1
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7829 { (case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832 esac
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_try") 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842 esac
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_try") 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_lib_poll_poll=yes
7849 else
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_cv_lib_poll_poll=no
7856 rm -f core conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7860 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
7861 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
7862 if test $ac_cv_lib_poll_poll = yes; then
7863 cat >>confdefs.h <<_ACEOF
7864 #define HAVE_LIBPOLL 1
7865 _ACEOF
7867 LIBS="-lpoll $LIBS"
7872 { echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
7873 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6; }
7874 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877 ac_check_lib_save_LIBS=$LIBS
7878 LIBS="-lresolv $LIBS"
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7886 /* Override any GCC internal prototype to avoid an error.
7887 Use char because int might match the return type of a GCC
7888 builtin and then its argument prototype would still apply. */
7889 #ifdef __cplusplus
7890 extern "C"
7891 #endif
7892 char res_9_init ();
7894 main ()
7896 return res_9_init ();
7898 return 0;
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (ac_try="$ac_link"
7903 case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906 esac
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_link") 2>conftest.er1
7909 ac_status=$?
7910 grep -v '^ *+' conftest.er1 >conftest.err
7911 rm -f conftest.er1
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } &&
7915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7916 { (case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_try") 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; } &&
7925 { ac_try='test -s conftest$ac_exeext'
7926 { (case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929 esac
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_try") 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 ac_cv_lib_resolv_res_9_init=yes
7936 else
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 ac_cv_lib_resolv_res_9_init=no
7943 rm -f core conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
7945 LIBS=$ac_check_lib_save_LIBS
7947 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
7948 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6; }
7949 if test $ac_cv_lib_resolv_res_9_init = yes; then
7950 cat >>confdefs.h <<_ACEOF
7951 #define HAVE_LIBRESOLV 1
7952 _ACEOF
7954 LIBS="-lresolv $LIBS"
7958 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7959 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
7960 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963 ac_check_lib_save_LIBS=$LIBS
7964 LIBS="-lpthread $LIBS"
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7972 /* Override any GCC internal prototype to avoid an error.
7973 Use char because int might match the return type of a GCC
7974 builtin and then its argument prototype would still apply. */
7975 #ifdef __cplusplus
7976 extern "C"
7977 #endif
7978 char pthread_create ();
7980 main ()
7982 return pthread_create ();
7984 return 0;
7986 _ACEOF
7987 rm -f conftest.$ac_objext conftest$ac_exeext
7988 if { (ac_try="$ac_link"
7989 case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_link") 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } &&
8001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8002 { (case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_try") 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; } &&
8011 { ac_try='test -s conftest$ac_exeext'
8012 { (case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8015 esac
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_try") 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; }; then
8021 ac_cv_lib_pthread_pthread_create=yes
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 ac_cv_lib_pthread_pthread_create=no
8029 rm -f core conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext conftest.$ac_ext
8031 LIBS=$ac_check_lib_save_LIBS
8033 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
8034 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
8035 if test $ac_cv_lib_pthread_pthread_create = yes; then
8036 LIBPTHREAD="-lpthread"
8041 XLIB=""
8043 XFILES=""
8045 OPENGLFILES=""
8047 GLU32FILES=""
8049 OPENGL_LIBS=""
8053 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8054 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8055 if test "${ac_cv_header_stdc+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h. */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 #include <stdlib.h>
8065 #include <stdarg.h>
8066 #include <string.h>
8067 #include <float.h>
8070 main ()
8074 return 0;
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8079 case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8092 { (case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_try") 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; } &&
8101 { ac_try='test -s conftest.$ac_objext'
8102 { (case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_try") 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8111 ac_cv_header_stdc=yes
8112 else
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8116 ac_cv_header_stdc=no
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 if test $ac_cv_header_stdc = yes; then
8122 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h. */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129 #include <string.h>
8131 _ACEOF
8132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8133 $EGREP "memchr" >/dev/null 2>&1; then
8135 else
8136 ac_cv_header_stdc=no
8138 rm -f conftest*
8142 if test $ac_cv_header_stdc = yes; then
8143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h. */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 #include <stdlib.h>
8152 _ACEOF
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154 $EGREP "free" >/dev/null 2>&1; then
8156 else
8157 ac_cv_header_stdc=no
8159 rm -f conftest*
8163 if test $ac_cv_header_stdc = yes; then
8164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8165 if test "$cross_compiling" = yes; then
8167 else
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h. */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 #include <ctype.h>
8175 #include <stdlib.h>
8176 #if ((' ' & 0x0FF) == 0x020)
8177 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8178 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8179 #else
8180 # define ISLOWER(c) \
8181 (('a' <= (c) && (c) <= 'i') \
8182 || ('j' <= (c) && (c) <= 'r') \
8183 || ('s' <= (c) && (c) <= 'z'))
8184 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8185 #endif
8187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8189 main ()
8191 int i;
8192 for (i = 0; i < 256; i++)
8193 if (XOR (islower (i), ISLOWER (i))
8194 || toupper (i) != TOUPPER (i))
8195 return 2;
8196 return 0;
8198 _ACEOF
8199 rm -f conftest$ac_exeext
8200 if { (ac_try="$ac_link"
8201 case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204 esac
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_link") 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213 esac
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; }; then
8220 else
8221 echo "$as_me: program exited with status $ac_status" >&5
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8225 ( exit $ac_status )
8226 ac_cv_header_stdc=no
8228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8234 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8235 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8236 if test $ac_cv_header_stdc = yes; then
8238 cat >>confdefs.h <<\_ACEOF
8239 #define STDC_HEADERS 1
8240 _ACEOF
8244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8255 inttypes.h stdint.h unistd.h
8257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263 cat >conftest.$ac_ext <<_ACEOF
8264 /* confdefs.h. */
8265 _ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8269 $ac_includes_default
8271 #include <$ac_header>
8272 _ACEOF
8273 rm -f conftest.$ac_objext
8274 if { (ac_try="$ac_compile"
8275 case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_compile") 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8288 { (case "(($ac_try" in
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_try") 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; } &&
8297 { ac_try='test -s conftest.$ac_objext'
8298 { (case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_try") 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 eval "$as_ac_Header=yes"
8308 else
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 eval "$as_ac_Header=no"
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 ac_res=`eval echo '${'$as_ac_Header'}'`
8318 { echo "$as_me:$LINENO: result: $ac_res" >&5
8319 echo "${ECHO_T}$ac_res" >&6; }
8320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8321 cat >>confdefs.h <<_ACEOF
8322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8323 _ACEOF
8327 done
8436 for ac_header in \
8437 AudioUnit/AudioUnit.h \
8438 CoreAudio/CoreAudio.h \
8439 IOKit/IOKitLib.h \
8440 alsa/asoundlib.h \
8441 arpa/inet.h \
8442 arpa/nameser.h \
8443 asm/types.h \
8444 capi20.h \
8445 cups/cups.h \
8446 curses.h \
8447 direct.h \
8448 dlfcn.h \
8449 elf.h \
8450 float.h \
8451 fontconfig/fontconfig.h \
8452 getopt.h \
8453 gif_lib.h \
8454 ieeefp.h \
8455 io.h \
8456 jack/jack.h \
8457 jpeglib.h \
8458 lber.h \
8459 lcms.h \
8460 lcms/lcms.h \
8461 ldap.h \
8462 libaudioio.h \
8463 link.h \
8464 linux/cdrom.h \
8465 linux/compiler.h \
8466 linux/hdreg.h \
8467 linux/input.h \
8468 linux/ioctl.h \
8469 linux/joystick.h \
8470 linux/major.h \
8471 linux/param.h \
8472 linux/serial.h \
8473 linux/ucdrom.h \
8474 mach/machine.h \
8475 machine/cpu.h \
8476 machine/limits.h \
8477 machine/soundcard.h \
8478 mntent.h \
8479 ncurses.h \
8480 netdb.h \
8481 netinet/in.h \
8482 netinet/in_systm.h \
8483 netinet/tcp.h \
8484 netinet/tcp_fsm.h \
8485 openssl/err.h \
8486 openssl/ssl.h \
8487 poll.h \
8488 process.h \
8489 pthread.h \
8490 pwd.h \
8491 regex.h \
8492 sched.h \
8493 scsi/scsi.h \
8494 scsi/scsi_ioctl.h \
8495 scsi/sg.h \
8496 soundcard.h \
8497 stdint.h \
8498 strings.h \
8499 sys/asoundlib.h \
8500 sys/cdio.h \
8501 sys/elf32.h \
8502 sys/epoll.h \
8503 sys/errno.h \
8504 sys/exec_elf.h \
8505 sys/filio.h \
8506 sys/ioctl.h \
8507 sys/ipc.h \
8508 sys/limits.h \
8509 sys/link.h \
8510 sys/lwp.h \
8511 sys/mman.h \
8512 sys/modem.h \
8513 sys/msg.h \
8514 sys/mtio.h \
8515 sys/param.h \
8516 sys/poll.h \
8517 sys/prctl.h \
8518 sys/ptrace.h \
8519 sys/reg.h \
8520 sys/resource.h \
8521 sys/scsiio.h \
8522 sys/shm.h \
8523 sys/signal.h \
8524 sys/socket.h \
8525 sys/sockio.h \
8526 sys/soundcard.h \
8527 sys/statvfs.h \
8528 sys/strtio.h \
8529 sys/syscall.h \
8530 sys/sysctl.h \
8531 sys/time.h \
8532 sys/times.h \
8533 sys/uio.h \
8534 sys/un.h \
8535 sys/vm86.h \
8536 sys/wait.h \
8537 syscall.h \
8538 termios.h \
8539 unicode/ubidi.h \
8540 unistd.h \
8541 utime.h \
8542 valgrind/memcheck.h
8545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 ac_res=`eval echo '${'$as_ac_Header'}'`
8553 { echo "$as_me:$LINENO: result: $ac_res" >&5
8554 echo "${ECHO_T}$ac_res" >&6; }
8555 else
8556 # Is the header compilable?
8557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8559 cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h. */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 $ac_includes_default
8566 #include <$ac_header>
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8570 case "(($ac_try" in
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8576 ac_status=$?
8577 grep -v '^ *+' conftest.er1 >conftest.err
8578 rm -f conftest.er1
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8583 { (case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8586 esac
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_try") 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; } &&
8592 { ac_try='test -s conftest.$ac_objext'
8593 { (case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_try") 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; }; then
8602 ac_header_compiler=yes
8603 else
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8607 ac_header_compiler=no
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8612 echo "${ECHO_T}$ac_header_compiler" >&6; }
8614 # Is the header present?
8615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8617 cat >conftest.$ac_ext <<_ACEOF
8618 /* confdefs.h. */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8623 #include <$ac_header>
8624 _ACEOF
8625 if { (ac_try="$ac_cpp conftest.$ac_ext"
8626 case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8632 ac_status=$?
8633 grep -v '^ *+' conftest.er1 >conftest.err
8634 rm -f conftest.er1
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } >/dev/null; then
8638 if test -s conftest.err; then
8639 ac_cpp_err=$ac_c_preproc_warn_flag
8640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8641 else
8642 ac_cpp_err=
8644 else
8645 ac_cpp_err=yes
8647 if test -z "$ac_cpp_err"; then
8648 ac_header_preproc=yes
8649 else
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8653 ac_header_preproc=no
8656 rm -f conftest.err conftest.$ac_ext
8657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658 echo "${ECHO_T}$ac_header_preproc" >&6; }
8660 # So? What about this header?
8661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8662 yes:no: )
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8667 ac_header_preproc=yes
8669 no:yes:* )
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8682 ( cat <<\_ASBOX
8683 ## ------------------------------------ ##
8684 ## Report this to wine-devel@winehq.org ##
8685 ## ------------------------------------ ##
8686 _ASBOX
8687 ) | sed "s/^/$as_me: WARNING: /" >&2
8689 esac
8690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695 eval "$as_ac_Header=\$ac_header_preproc"
8697 ac_res=`eval echo '${'$as_ac_Header'}'`
8698 { echo "$as_me:$LINENO: result: $ac_res" >&5
8699 echo "${ECHO_T}$ac_res" >&6; }
8702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8703 cat >>confdefs.h <<_ACEOF
8704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8705 _ACEOF
8709 done
8711 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8712 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
8713 if test "${ac_cv_header_stat_broken+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716 cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h. */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8722 #include <sys/types.h>
8723 #include <sys/stat.h>
8725 #if defined S_ISBLK && defined S_IFDIR
8726 # if S_ISBLK (S_IFDIR)
8727 You lose.
8728 # endif
8729 #endif
8731 #if defined S_ISBLK && defined S_IFCHR
8732 # if S_ISBLK (S_IFCHR)
8733 You lose.
8734 # endif
8735 #endif
8737 #if defined S_ISLNK && defined S_IFREG
8738 # if S_ISLNK (S_IFREG)
8739 You lose.
8740 # endif
8741 #endif
8743 #if defined S_ISSOCK && defined S_IFREG
8744 # if S_ISSOCK (S_IFREG)
8745 You lose.
8746 # endif
8747 #endif
8749 _ACEOF
8750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8751 $EGREP "You lose" >/dev/null 2>&1; then
8752 ac_cv_header_stat_broken=yes
8753 else
8754 ac_cv_header_stat_broken=no
8756 rm -f conftest*
8759 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8760 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
8761 if test $ac_cv_header_stat_broken = yes; then
8763 cat >>confdefs.h <<\_ACEOF
8764 #define STAT_MACROS_BROKEN 1
8765 _ACEOF
8775 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 #include <sys/types.h>
8790 #if HAVE_SYS_PARAM_H
8791 # include <sys/param.h>
8792 #endif
8794 #include <$ac_header>
8795 _ACEOF
8796 rm -f conftest.$ac_objext
8797 if { (ac_try="$ac_compile"
8798 case "(($ac_try" in
8799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800 *) ac_try_echo=$ac_try;;
8801 esac
8802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803 (eval "$ac_compile") 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8811 { (case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8814 esac
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_try") 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; } &&
8820 { ac_try='test -s conftest.$ac_objext'
8821 { (case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8824 esac
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_try") 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 eval "$as_ac_Header=yes"
8831 else
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8835 eval "$as_ac_Header=no"
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 ac_res=`eval echo '${'$as_ac_Header'}'`
8841 { echo "$as_me:$LINENO: result: $ac_res" >&5
8842 echo "${ECHO_T}$ac_res" >&6; }
8843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8844 cat >>confdefs.h <<_ACEOF
8845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8846 _ACEOF
8850 done
8859 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
8861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 #include <sys/types.h>
8874 #if HAVE_SYS_SOCKET_H
8875 # include <sys/socket.h>
8876 #endif
8878 #include <$ac_header>
8879 _ACEOF
8880 rm -f conftest.$ac_objext
8881 if { (ac_try="$ac_compile"
8882 case "(($ac_try" in
8883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884 *) ac_try_echo=$ac_try;;
8885 esac
8886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887 (eval "$ac_compile") 2>conftest.er1
8888 ac_status=$?
8889 grep -v '^ *+' conftest.er1 >conftest.err
8890 rm -f conftest.er1
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } &&
8894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8895 { (case "(($ac_try" in
8896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8898 esac
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_try") 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; } &&
8904 { ac_try='test -s conftest.$ac_objext'
8905 { (case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8908 esac
8909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_try") 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 eval "$as_ac_Header=yes"
8915 else
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 eval "$as_ac_Header=no"
8922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 ac_res=`eval echo '${'$as_ac_Header'}'`
8925 { echo "$as_me:$LINENO: result: $ac_res" >&5
8926 echo "${ECHO_T}$ac_res" >&6; }
8927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928 cat >>confdefs.h <<_ACEOF
8929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930 _ACEOF
8934 done
8938 for ac_header in resolv.h
8940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h. */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 #include <sys/types.h>
8953 #if HAVE_SYS_SOCKET_H
8954 # include <sys/socket.h>
8955 #endif
8956 #if HAVE_NETINET_IN_H
8957 # include <netinet/in.h>
8958 #endif
8959 #if HAVE_ARPA_NAMESER_H
8960 # include <arpa/nameser.h>
8961 #endif
8963 #include <$ac_header>
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (ac_try="$ac_compile"
8967 case "(($ac_try" in
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8970 esac
8971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972 (eval "$ac_compile") 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest.$ac_objext'
8990 { (case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8993 esac
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_try") 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 eval "$as_ac_Header=yes"
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 eval "$as_ac_Header=no"
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9009 ac_res=`eval echo '${'$as_ac_Header'}'`
9010 { echo "$as_me:$LINENO: result: $ac_res" >&5
9011 echo "${ECHO_T}$ac_res" >&6; }
9012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9013 cat >>confdefs.h <<_ACEOF
9014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9015 _ACEOF
9019 done
9023 for ac_header in ucontext.h
9025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 #include <signal.h>
9039 #include <$ac_header>
9040 _ACEOF
9041 rm -f conftest.$ac_objext
9042 if { (ac_try="$ac_compile"
9043 case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9046 esac
9047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_compile") 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9056 { (case "(($ac_try" in
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9059 esac
9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_try") 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; } &&
9065 { ac_try='test -s conftest.$ac_objext'
9066 { (case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9069 esac
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_try") 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 eval "$as_ac_Header=yes"
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 eval "$as_ac_Header=no"
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085 ac_res=`eval echo '${'$as_ac_Header'}'`
9086 { echo "$as_me:$LINENO: result: $ac_res" >&5
9087 echo "${ECHO_T}$ac_res" >&6; }
9088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9089 cat >>confdefs.h <<_ACEOF
9090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9091 _ACEOF
9095 done
9100 for ac_header in linux/ipx.h linux/videodev.h
9102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 #ifdef HAVE_SYS_TIME_H
9115 #include <sys/time.h>
9116 #endif
9117 #include <sys/types.h>
9118 #ifdef HAVE_ASM_TYPES_H
9119 #include <asm/types.h>
9120 #endif
9122 #include <$ac_header>
9123 _ACEOF
9124 rm -f conftest.$ac_objext
9125 if { (ac_try="$ac_compile"
9126 case "(($ac_try" in
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9129 esac
9130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9131 (eval "$ac_compile") 2>conftest.er1
9132 ac_status=$?
9133 grep -v '^ *+' conftest.er1 >conftest.err
9134 rm -f conftest.er1
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } &&
9138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9139 { (case "(($ac_try" in
9140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9141 *) ac_try_echo=$ac_try;;
9142 esac
9143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9144 (eval "$ac_try") 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try='test -s conftest.$ac_objext'
9149 { (case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9152 esac
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_try") 2>&5
9155 ac_status=$?
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; }; then
9158 eval "$as_ac_Header=yes"
9159 else
9160 echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.$ac_ext >&5
9163 eval "$as_ac_Header=no"
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9168 ac_res=`eval echo '${'$as_ac_Header'}'`
9169 { echo "$as_me:$LINENO: result: $ac_res" >&5
9170 echo "${ECHO_T}$ac_res" >&6; }
9171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9172 cat >>confdefs.h <<_ACEOF
9173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9174 _ACEOF
9178 done
9182 for ac_header in linux/capi.h
9184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190 cat >conftest.$ac_ext <<_ACEOF
9191 /* confdefs.h. */
9192 _ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 #define __user
9198 #include <$ac_header>
9199 _ACEOF
9200 rm -f conftest.$ac_objext
9201 if { (ac_try="$ac_compile"
9202 case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_compile") 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9215 { (case "(($ac_try" in
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9218 esac
9219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220 (eval "$ac_try") 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; } &&
9224 { ac_try='test -s conftest.$ac_objext'
9225 { (case "(($ac_try" in
9226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9228 esac
9229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230 (eval "$ac_try") 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; }; then
9234 eval "$as_ac_Header=yes"
9235 else
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9239 eval "$as_ac_Header=no"
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244 ac_res=`eval echo '${'$as_ac_Header'}'`
9245 { echo "$as_me:$LINENO: result: $ac_res" >&5
9246 echo "${ECHO_T}$ac_res" >&6; }
9247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9248 cat >>confdefs.h <<_ACEOF
9249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9250 _ACEOF
9254 done
9258 if test "$have_x" = "yes"
9259 then
9260 XLIB="-lXext -lX11"
9261 ac_save_CPPFLAGS="$CPPFLAGS"
9262 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9274 for ac_header in X11/Xlib.h \
9275 X11/XKBlib.h \
9276 X11/Xutil.h \
9277 X11/extensions/shape.h \
9278 X11/extensions/XInput.h \
9279 X11/extensions/XShm.h \
9280 X11/extensions/Xrandr.h \
9281 X11/extensions/Xrender.h \
9282 X11/extensions/xf86dga.h \
9283 X11/extensions/xf86vmode.h
9285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 #ifdef HAVE_X11_XLIB_H
9298 # include <X11/Xlib.h>
9299 #endif
9300 #ifdef HAVE_X11_XUTIL_H
9301 # include <X11/Xutil.h>
9302 #endif
9304 #include <$ac_header>
9305 _ACEOF
9306 rm -f conftest.$ac_objext
9307 if { (ac_try="$ac_compile"
9308 case "(($ac_try" in
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9311 esac
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_compile") 2>conftest.er1
9314 ac_status=$?
9315 grep -v '^ *+' conftest.er1 >conftest.err
9316 rm -f conftest.er1
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9321 { (case "(($ac_try" in
9322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9323 *) ac_try_echo=$ac_try;;
9324 esac
9325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9326 (eval "$ac_try") 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; } &&
9330 { ac_try='test -s conftest.$ac_objext'
9331 { (case "(($ac_try" in
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9334 esac
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_try") 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 eval "$as_ac_Header=yes"
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 eval "$as_ac_Header=no"
9348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350 ac_res=`eval echo '${'$as_ac_Header'}'`
9351 { echo "$as_me:$LINENO: result: $ac_res" >&5
9352 echo "${ECHO_T}$ac_res" >&6; }
9353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9354 cat >>confdefs.h <<_ACEOF
9355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9356 _ACEOF
9360 done
9363 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9364 then
9365 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9366 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9367 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370 ac_check_lib_save_LIBS=$LIBS
9371 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9372 cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h. */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9379 /* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
9382 #ifdef __cplusplus
9383 extern "C"
9384 #endif
9385 char XkbQueryExtension ();
9387 main ()
9389 return XkbQueryExtension ();
9391 return 0;
9393 _ACEOF
9394 rm -f conftest.$ac_objext conftest$ac_exeext
9395 if { (ac_try="$ac_link"
9396 case "(($ac_try" in
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9399 esac
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_link") 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
9408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9409 { (case "(($ac_try" in
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9412 esac
9413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 (eval "$ac_try") 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; } &&
9418 { ac_try='test -s conftest$ac_exeext'
9419 { (case "(($ac_try" in
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9422 esac
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_try") 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; }; then
9428 ac_cv_lib_X11_XkbQueryExtension=yes
9429 else
9430 echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9433 ac_cv_lib_X11_XkbQueryExtension=no
9436 rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 LIBS=$ac_check_lib_save_LIBS
9440 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9441 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9442 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
9444 cat >>confdefs.h <<\_ACEOF
9445 #define HAVE_XKB 1
9446 _ACEOF
9452 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9453 then
9454 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9455 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
9456 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459 ac_check_lib_save_LIBS=$LIBS
9460 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9461 cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h. */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9468 /* Override any GCC internal prototype to avoid an error.
9469 Use char because int might match the return type of a GCC
9470 builtin and then its argument prototype would still apply. */
9471 #ifdef __cplusplus
9472 extern "C"
9473 #endif
9474 char XShmQueryExtension ();
9476 main ()
9478 return XShmQueryExtension ();
9480 return 0;
9482 _ACEOF
9483 rm -f conftest.$ac_objext conftest$ac_exeext
9484 if { (ac_try="$ac_link"
9485 case "(($ac_try" in
9486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487 *) ac_try_echo=$ac_try;;
9488 esac
9489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490 (eval "$ac_link") 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9498 { (case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501 esac
9502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_try") 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; } &&
9507 { ac_try='test -s conftest$ac_exeext'
9508 { (case "(($ac_try" in
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9511 esac
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513 (eval "$ac_try") 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 ac_cv_lib_Xext_XShmQueryExtension=yes
9518 else
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 ac_cv_lib_Xext_XShmQueryExtension=no
9525 rm -f core conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_lib_save_LIBS
9529 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9530 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9531 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
9533 cat >>confdefs.h <<\_ACEOF
9534 #define HAVE_LIBXXSHM 1
9535 _ACEOF
9541 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9542 then
9543 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9544 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9545 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548 ac_check_lib_save_LIBS=$LIBS
9549 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h. */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char XShapeQueryExtension ();
9565 main ()
9567 return XShapeQueryExtension ();
9569 return 0;
9571 _ACEOF
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (ac_try="$ac_link"
9574 case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9577 esac
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_link") 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9587 { (case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_try") 2>&5
9593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; } &&
9596 { ac_try='test -s conftest$ac_exeext'
9597 { (case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_try") 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9606 ac_cv_lib_Xext_XShapeQueryExtension=yes
9607 else
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9611 ac_cv_lib_Xext_XShapeQueryExtension=no
9614 rm -f core conftest.err conftest.$ac_objext \
9615 conftest$ac_exeext conftest.$ac_ext
9616 LIBS=$ac_check_lib_save_LIBS
9618 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9619 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9620 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9622 cat >>confdefs.h <<\_ACEOF
9623 #define HAVE_LIBXSHAPE 1
9624 _ACEOF
9630 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
9631 then
9632 { echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
9633 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6; }
9634 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 ac_check_lib_save_LIBS=$LIBS
9638 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9639 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h. */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9646 /* Override any GCC internal prototype to avoid an error.
9647 Use char because int might match the return type of a GCC
9648 builtin and then its argument prototype would still apply. */
9649 #ifdef __cplusplus
9650 extern "C"
9651 #endif
9652 char XDGAQueryExtension ();
9654 main ()
9656 return XDGAQueryExtension ();
9658 return 0;
9660 _ACEOF
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (ac_try="$ac_link"
9663 case "(($ac_try" in
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9666 esac
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668 (eval "$ac_link") 2>conftest.er1
9669 ac_status=$?
9670 grep -v '^ *+' conftest.er1 >conftest.err
9671 rm -f conftest.er1
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9676 { (case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_try") 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest$ac_exeext'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
9696 else
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
9703 rm -f core conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9707 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
9708 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6; }
9709 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
9711 cat >>confdefs.h <<\_ACEOF
9712 #define HAVE_LIBXXF86DGA2 1
9713 _ACEOF
9715 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
9721 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9722 then
9723 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9724 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9725 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728 ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9730 cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h. */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9737 /* Override any GCC internal prototype to avoid an error.
9738 Use char because int might match the return type of a GCC
9739 builtin and then its argument prototype would still apply. */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 char XF86VidModeQueryExtension ();
9745 main ()
9747 return XF86VidModeQueryExtension ();
9749 return 0;
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9754 case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9757 esac
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_link") 2>conftest.er1
9760 ac_status=$?
9761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9767 { (case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_try") 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; } &&
9776 { ac_try='test -s conftest$ac_exeext'
9777 { (case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_try") 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9787 else
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9794 rm -f core conftest.err conftest.$ac_objext \
9795 conftest$ac_exeext conftest.$ac_ext
9796 LIBS=$ac_check_lib_save_LIBS
9798 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9799 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9800 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_LIBXXF86VM 1
9804 _ACEOF
9806 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9812 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9813 then
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h. */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 #include <X11/Xlib.h>
9821 #include <X11/extensions/Xrandr.h>
9823 main ()
9825 static typeof(XRRSetScreenConfigAndRate) * func;
9827 return 0;
9829 _ACEOF
9830 rm -f conftest.$ac_objext
9831 if { (ac_try="$ac_compile"
9832 case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_compile") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try='test -s conftest.$ac_objext'
9855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9865 cat >>confdefs.h <<\_ACEOF
9866 #define HAVE_LIBXRANDR 1
9867 _ACEOF
9869 else
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9880 then
9881 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9882 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9883 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886 ac_check_lib_save_LIBS=$LIBS
9887 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9888 cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h. */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9895 /* Override any GCC internal prototype to avoid an error.
9896 Use char because int might match the return type of a GCC
9897 builtin and then its argument prototype would still apply. */
9898 #ifdef __cplusplus
9899 extern "C"
9900 #endif
9901 char XRenderSetPictureTransform ();
9903 main ()
9905 return XRenderSetPictureTransform ();
9907 return 0;
9909 _ACEOF
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (ac_try="$ac_link"
9912 case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915 esac
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_link") 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9925 { (case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_try") 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; } &&
9934 { ac_try='test -s conftest$ac_exeext'
9935 { (case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938 esac
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_try") 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9945 else
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9952 rm -f core conftest.err conftest.$ac_objext \
9953 conftest$ac_exeext conftest.$ac_ext
9954 LIBS=$ac_check_lib_save_LIBS
9956 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9957 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9958 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9960 cat >>confdefs.h <<\_ACEOF
9961 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9962 _ACEOF
9968 if test "x$with_opengl" != "xno"
9969 then
9974 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h. */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 #ifdef HAVE_GL_GLX_H
9989 # include <GL/glx.h>
9990 #endif
9992 #include <$ac_header>
9993 _ACEOF
9994 rm -f conftest.$ac_objext
9995 if { (ac_try="$ac_compile"
9996 case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
9999 esac
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_compile") 2>conftest.er1
10002 ac_status=$?
10003 grep -v '^ *+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10009 { (case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10012 esac
10013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014 (eval "$ac_try") 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; } &&
10018 { ac_try='test -s conftest.$ac_objext'
10019 { (case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10022 esac
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024 (eval "$ac_try") 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 eval "$as_ac_Header=yes"
10029 else
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 eval "$as_ac_Header=no"
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10038 ac_res=`eval echo '${'$as_ac_Header'}'`
10039 { echo "$as_me:$LINENO: result: $ac_res" >&5
10040 echo "${ECHO_T}$ac_res" >&6; }
10041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10042 cat >>confdefs.h <<_ACEOF
10043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10044 _ACEOF
10048 done
10050 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
10051 then
10052 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
10053 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
10054 if test "${wine_cv_opengl_version_OK+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057 cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h. */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 #include <GL/gl.h>
10065 main ()
10067 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
10069 return 0;
10071 _ACEOF
10072 rm -f conftest.$ac_objext
10073 if { (ac_try="$ac_compile"
10074 case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10077 esac
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_compile") 2>conftest.er1
10080 ac_status=$?
10081 grep -v '^ *+' conftest.er1 >conftest.err
10082 rm -f conftest.er1
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10087 { (case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_try") 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest.$ac_objext'
10097 { (case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_try") 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; }; then
10106 wine_cv_opengl_version_OK="yes"
10107 else
10108 echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10111 wine_cv_opengl_version_OK="no"
10115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 { echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
10119 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
10121 if test "$wine_cv_opengl_version_OK" = "yes"
10122 then
10123 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
10124 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
10125 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 else
10128 ac_check_lib_save_LIBS=$LIBS
10129 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
10130 cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h. */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10137 /* Override any GCC internal prototype to avoid an error.
10138 Use char because int might match the return type of a GCC
10139 builtin and then its argument prototype would still apply. */
10140 #ifdef __cplusplus
10141 extern "C"
10142 #endif
10143 char glXCreateContext ();
10145 main ()
10147 return glXCreateContext ();
10149 return 0;
10151 _ACEOF
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_link") 2>conftest.er1
10160 ac_status=$?
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -f conftest.er1
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10167 { (case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_try") 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; } &&
10176 { ac_try='test -s conftest$ac_exeext'
10177 { (case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10180 esac
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_try") 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_cv_lib_GL_glXCreateContext=yes
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_cv_lib_GL_glXCreateContext=no
10194 rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10196 LIBS=$ac_check_lib_save_LIBS
10198 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
10199 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
10200 if test $ac_cv_lib_GL_glXCreateContext = yes; then
10201 OPENGL_LIBS="-lGL"
10206 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
10207 then
10208 OPENGLFILES='$(OPENGLFILES)'
10210 cat >>confdefs.h <<\_ACEOF
10211 #define HAVE_OPENGL 1
10212 _ACEOF
10214 else
10215 if test -f /usr/X11R6/lib/libGL.a
10216 then
10217 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
10218 This prevents linking to OpenGL. Delete the file and restart configure." >&5
10219 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
10220 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
10221 { (exit 1); exit 1; }; }
10225 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10226 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
10227 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230 ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
10232 $LIBS"
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char gluLookAt ();
10248 main ()
10250 return gluLookAt ();
10252 return 0;
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260 esac
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_link") 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10270 { (case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_try") 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; } &&
10279 { ac_try='test -s conftest$ac_exeext'
10280 { (case "(($ac_try" in
10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282 *) ac_try_echo=$ac_try;;
10283 esac
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285 (eval "$ac_try") 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; }; then
10289 ac_cv_lib_GLU_gluLookAt=yes
10290 else
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ac_cv_lib_GLU_gluLookAt=no
10297 rm -f core conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext conftest.$ac_ext
10299 LIBS=$ac_check_lib_save_LIBS
10301 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10302 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
10303 if test $ac_cv_lib_GLU_gluLookAt = yes; then
10304 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
10305 GLU32FILES='$(GLU32FILES)'
10311 { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
10312 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
10313 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 else
10316 ac_check_lib_save_LIBS=$LIBS
10317 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
10318 cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h. */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10325 /* Override any GCC internal prototype to avoid an error.
10326 Use char because int might match the return type of a GCC
10327 builtin and then its argument prototype would still apply. */
10328 #ifdef __cplusplus
10329 extern "C"
10330 #endif
10331 char glutMainLoop ();
10333 main ()
10335 return glutMainLoop ();
10337 return 0;
10339 _ACEOF
10340 rm -f conftest.$ac_objext conftest$ac_exeext
10341 if { (ac_try="$ac_link"
10342 case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10345 esac
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_link") 2>conftest.er1
10348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10355 { (case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10358 esac
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_try") 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try='test -s conftest$ac_exeext'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 ac_cv_lib_glut_glutMainLoop=yes
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 ac_cv_lib_glut_glutMainLoop=no
10382 rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10386 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
10387 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
10388 if test $ac_cv_lib_glut_glutMainLoop = yes; then
10389 GLUT_LIBS="-lglut -lXmu -lXi"
10391 GLUT32FILES='$(GLUT32FILES)'
10398 NASLIBS=""
10401 for ac_header in audio/audiolib.h
10403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 ac_res=`eval echo '${'$as_ac_Header'}'`
10411 { echo "$as_me:$LINENO: result: $ac_res" >&5
10412 echo "${ECHO_T}$ac_res" >&6; }
10413 else
10414 # Is the header compilable?
10415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h. */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423 $ac_includes_default
10424 #include <$ac_header>
10425 _ACEOF
10426 rm -f conftest.$ac_objext
10427 if { (ac_try="$ac_compile"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_compile") 2>conftest.er1
10434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10441 { (case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10444 esac
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_try") 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest.$ac_objext'
10451 { (case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_try") 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 ac_header_compiler=yes
10461 else
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 ac_header_compiler=no
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10470 echo "${ECHO_T}$ac_header_compiler" >&6; }
10472 # Is the header present?
10473 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 #include <$ac_header>
10482 _ACEOF
10483 if { (ac_try="$ac_cpp conftest.$ac_ext"
10484 case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10487 esac
10488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } >/dev/null; then
10496 if test -s conftest.err; then
10497 ac_cpp_err=$ac_c_preproc_warn_flag
10498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10499 else
10500 ac_cpp_err=
10502 else
10503 ac_cpp_err=yes
10505 if test -z "$ac_cpp_err"; then
10506 ac_header_preproc=yes
10507 else
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 ac_header_preproc=no
10514 rm -f conftest.err conftest.$ac_ext
10515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10516 echo "${ECHO_T}$ac_header_preproc" >&6; }
10518 # So? What about this header?
10519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10520 yes:no: )
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10525 ac_header_preproc=yes
10527 no:yes:* )
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10540 ( cat <<\_ASBOX
10541 ## ------------------------------------ ##
10542 ## Report this to wine-devel@winehq.org ##
10543 ## ------------------------------------ ##
10544 _ASBOX
10545 ) | sed "s/^/$as_me: WARNING: /" >&2
10547 esac
10548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553 eval "$as_ac_Header=\$ac_header_preproc"
10555 ac_res=`eval echo '${'$as_ac_Header'}'`
10556 { echo "$as_me:$LINENO: result: $ac_res" >&5
10557 echo "${ECHO_T}$ac_res" >&6; }
10560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10561 cat >>confdefs.h <<_ACEOF
10562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10563 _ACEOF
10565 for ac_header in audio/soundlib.h
10567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h. */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 #include <audio/audiolib.h>
10581 #include <$ac_header>
10582 _ACEOF
10583 rm -f conftest.$ac_objext
10584 if { (ac_try="$ac_compile"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588 esac
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_compile") 2>conftest.er1
10591 ac_status=$?
10592 grep -v '^ *+' conftest.er1 >conftest.err
10593 rm -f conftest.er1
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } &&
10597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10598 { (case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601 esac
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_try") 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; } &&
10607 { ac_try='test -s conftest.$ac_objext'
10608 { (case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_try") 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 eval "$as_ac_Header=yes"
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 eval "$as_ac_Header=no"
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 ac_res=`eval echo '${'$as_ac_Header'}'`
10628 { echo "$as_me:$LINENO: result: $ac_res" >&5
10629 echo "${ECHO_T}$ac_res" >&6; }
10630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10631 cat >>confdefs.h <<_ACEOF
10632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10633 _ACEOF
10637 done
10639 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10640 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
10641 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 ac_check_lib_save_LIBS=$LIBS
10645 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h. */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char AuCreateFlow ();
10661 main ()
10663 return AuCreateFlow ();
10665 return 0;
10667 _ACEOF
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (ac_try="$ac_link"
10670 case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10673 esac
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_link") 2>conftest.er1
10676 ac_status=$?
10677 grep -v '^ *+' conftest.er1 >conftest.err
10678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10683 { (case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686 esac
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_try") 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest$ac_exeext'
10693 { (case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10696 esac
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_try") 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 ac_cv_lib_audio_AuCreateFlow=yes
10703 else
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 ac_cv_lib_audio_AuCreateFlow=no
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10714 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10715 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10716 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10718 cat >>confdefs.h <<\_ACEOF
10719 #define HAVE_NAS 1
10720 _ACEOF
10722 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10727 done
10730 CPPFLAGS="$ac_save_CPPFLAGS"
10731 XFILES='$(XFILES)'
10732 else
10733 XLIB=""
10734 X_CFLAGS=""
10735 X_LIBS=""
10739 XML2LIBS=""
10741 XML2INCL=""
10743 XSLTLIBS=""
10745 XSLTINCL=""
10747 if test "$PKG_CONFIG" != "false"
10748 then
10749 ac_save_CPPFLAGS="$CPPFLAGS"
10750 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10751 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10752 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10754 for ac_header in libxml/parser.h
10756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 ac_res=`eval echo '${'$as_ac_Header'}'`
10764 { echo "$as_me:$LINENO: result: $ac_res" >&5
10765 echo "${ECHO_T}$ac_res" >&6; }
10766 else
10767 # Is the header compilable?
10768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h. */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 $ac_includes_default
10777 #include <$ac_header>
10778 _ACEOF
10779 rm -f conftest.$ac_objext
10780 if { (ac_try="$ac_compile"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_compile") 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10794 { (case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_try") 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest.$ac_objext'
10804 { (case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807 esac
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_try") 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 ac_header_compiler=yes
10814 else
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10818 ac_header_compiler=no
10821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10823 echo "${ECHO_T}$ac_header_compiler" >&6; }
10825 # Is the header present?
10826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10828 cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h. */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 #include <$ac_header>
10835 _ACEOF
10836 if { (ac_try="$ac_cpp conftest.$ac_ext"
10837 case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10840 esac
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } >/dev/null; then
10849 if test -s conftest.err; then
10850 ac_cpp_err=$ac_c_preproc_warn_flag
10851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10852 else
10853 ac_cpp_err=
10855 else
10856 ac_cpp_err=yes
10858 if test -z "$ac_cpp_err"; then
10859 ac_header_preproc=yes
10860 else
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_header_preproc=no
10867 rm -f conftest.err conftest.$ac_ext
10868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10869 echo "${ECHO_T}$ac_header_preproc" >&6; }
10871 # So? What about this header?
10872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10873 yes:no: )
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10878 ac_header_preproc=yes
10880 no:yes:* )
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10893 ( cat <<\_ASBOX
10894 ## ------------------------------------ ##
10895 ## Report this to wine-devel@winehq.org ##
10896 ## ------------------------------------ ##
10897 _ASBOX
10898 ) | sed "s/^/$as_me: WARNING: /" >&2
10900 esac
10901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906 eval "$as_ac_Header=\$ac_header_preproc"
10908 ac_res=`eval echo '${'$as_ac_Header'}'`
10909 { echo "$as_me:$LINENO: result: $ac_res" >&5
10910 echo "${ECHO_T}$ac_res" >&6; }
10913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10914 cat >>confdefs.h <<_ACEOF
10915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10916 _ACEOF
10917 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10918 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
10919 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 else
10922 ac_check_lib_save_LIBS=$LIBS
10923 LIBS="-lxml2 $ac_xml_libs $LIBS"
10924 cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h. */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 char xmlParseMemory ();
10939 main ()
10941 return xmlParseMemory ();
10943 return 0;
10945 _ACEOF
10946 rm -f conftest.$ac_objext conftest$ac_exeext
10947 if { (ac_try="$ac_link"
10948 case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_link") 2>conftest.er1
10954 ac_status=$?
10955 grep -v '^ *+' conftest.er1 >conftest.err
10956 rm -f conftest.er1
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest$ac_exeext'
10971 { (case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10974 esac
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_try") 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_cv_lib_xml2_xmlParseMemory=yes
10981 else
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 ac_cv_lib_xml2_xmlParseMemory=no
10988 rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990 LIBS=$ac_check_lib_save_LIBS
10992 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10993 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10994 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
10996 cat >>confdefs.h <<\_ACEOF
10997 #define HAVE_LIBXML2 1
10998 _ACEOF
11000 XML2LIBS="$ac_xml_libs"
11001 XML2INCL="$ac_xml_cflags"
11004 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
11005 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
11006 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009 ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-lxml2 $ac_xml_libs $LIBS"
11011 cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h. */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11018 /* Override any GCC internal prototype to avoid an error.
11019 Use char because int might match the return type of a GCC
11020 builtin and then its argument prototype would still apply. */
11021 #ifdef __cplusplus
11022 extern "C"
11023 #endif
11024 char xmlReadMemory ();
11026 main ()
11028 return xmlReadMemory ();
11030 return 0;
11032 _ACEOF
11033 rm -f conftest.$ac_objext conftest$ac_exeext
11034 if { (ac_try="$ac_link"
11035 case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038 esac
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_link") 2>conftest.er1
11041 ac_status=$?
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest$ac_exeext'
11058 { (case "(($ac_try" in
11059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11061 esac
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063 (eval "$ac_try") 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 ac_cv_lib_xml2_xmlReadMemory=yes
11068 else
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 ac_cv_lib_xml2_xmlReadMemory=no
11075 rm -f core conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
11077 LIBS=$ac_check_lib_save_LIBS
11079 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
11080 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
11081 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
11083 cat >>confdefs.h <<\_ACEOF
11084 #define HAVE_XMLREADMEMORY 1
11085 _ACEOF
11092 done
11094 CPPFLAGS="$ac_save_CPPFLAGS"
11095 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
11096 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
11097 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
11100 for ac_header in libxslt/pattern.h libxslt/transform.h
11102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108 cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h. */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 #ifdef HAVE_LIBXSLT_PATTERN_H
11115 # include <libxslt/pattern.h>
11116 #endif
11118 #include <$ac_header>
11119 _ACEOF
11120 rm -f conftest.$ac_objext
11121 if { (ac_try="$ac_compile"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125 esac
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_compile") 2>conftest.er1
11128 ac_status=$?
11129 grep -v '^ *+' conftest.er1 >conftest.err
11130 rm -f conftest.er1
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest.$ac_objext'
11145 { (case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11148 esac
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_try") 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 eval "$as_ac_Header=yes"
11155 else
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 eval "$as_ac_Header=no"
11162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 ac_res=`eval echo '${'$as_ac_Header'}'`
11165 { echo "$as_me:$LINENO: result: $ac_res" >&5
11166 echo "${ECHO_T}$ac_res" >&6; }
11167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11168 cat >>confdefs.h <<_ACEOF
11169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11170 _ACEOF
11171 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
11172 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
11173 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176 ac_check_lib_save_LIBS=$LIBS
11177 LIBS="-lxslt $ac_xslt_libs $LIBS"
11178 cat >conftest.$ac_ext <<_ACEOF
11179 /* confdefs.h. */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 char xsltCompilePattern ();
11193 main ()
11195 return xsltCompilePattern ();
11197 return 0;
11199 _ACEOF
11200 rm -f conftest.$ac_objext conftest$ac_exeext
11201 if { (ac_try="$ac_link"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_link") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } &&
11214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11215 { (case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_try") 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try='test -s conftest$ac_exeext'
11225 { (case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11228 esac
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_try") 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 ac_cv_lib_xslt_xsltCompilePattern=yes
11235 else
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ac_cv_lib_xslt_xsltCompilePattern=no
11242 rm -f core conftest.err conftest.$ac_objext \
11243 conftest$ac_exeext conftest.$ac_ext
11244 LIBS=$ac_check_lib_save_LIBS
11246 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11247 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
11248 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11250 cat >>confdefs.h <<\_ACEOF
11251 #define HAVE_LIBXSLT 1
11252 _ACEOF
11254 XSLTLIBS="$ac_xslt_libs"
11255 XSLTINCL="$ac_xslt_cflags"
11261 done
11263 CPPFLAGS="$ac_save_CPPFLAGS"
11266 HALINCL=""
11268 if test "$PKG_CONFIG" != "false"
11269 then
11270 ac_save_CPPFLAGS="$CPPFLAGS"
11271 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11272 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
11273 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11276 for ac_header in dbus/dbus.h hal/libhal.h
11278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 ac_res=`eval echo '${'$as_ac_Header'}'`
11286 { echo "$as_me:$LINENO: result: $ac_res" >&5
11287 echo "${ECHO_T}$ac_res" >&6; }
11288 else
11289 # Is the header compilable?
11290 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 $ac_includes_default
11299 #include <$ac_header>
11300 _ACEOF
11301 rm -f conftest.$ac_objext
11302 if { (ac_try="$ac_compile"
11303 case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_compile") 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try='test -s conftest.$ac_objext'
11326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329 esac
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_header_compiler=yes
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_compiler=no
11343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11345 echo "${ECHO_T}$ac_header_compiler" >&6; }
11347 # Is the header present?
11348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 #include <$ac_header>
11357 _ACEOF
11358 if { (ac_try="$ac_cpp conftest.$ac_ext"
11359 case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11362 esac
11363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11365 ac_status=$?
11366 grep -v '^ *+' conftest.er1 >conftest.err
11367 rm -f conftest.er1
11368 cat conftest.err >&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } >/dev/null; then
11371 if test -s conftest.err; then
11372 ac_cpp_err=$ac_c_preproc_warn_flag
11373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11374 else
11375 ac_cpp_err=
11377 else
11378 ac_cpp_err=yes
11380 if test -z "$ac_cpp_err"; then
11381 ac_header_preproc=yes
11382 else
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 ac_header_preproc=no
11389 rm -f conftest.err conftest.$ac_ext
11390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11391 echo "${ECHO_T}$ac_header_preproc" >&6; }
11393 # So? What about this header?
11394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11395 yes:no: )
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11400 ac_header_preproc=yes
11402 no:yes:* )
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11415 ( cat <<\_ASBOX
11416 ## ------------------------------------ ##
11417 ## Report this to wine-devel@winehq.org ##
11418 ## ------------------------------------ ##
11419 _ASBOX
11420 ) | sed "s/^/$as_me: WARNING: /" >&2
11422 esac
11423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428 eval "$as_ac_Header=\$ac_header_preproc"
11430 ac_res=`eval echo '${'$as_ac_Header'}'`
11431 { echo "$as_me:$LINENO: result: $ac_res" >&5
11432 echo "${ECHO_T}$ac_res" >&6; }
11435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11436 cat >>confdefs.h <<_ACEOF
11437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11438 _ACEOF
11442 done
11444 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11445 then
11446 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
11447 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
11448 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451 ac_check_lib_save_LIBS=$LIBS
11452 LIBS="-lhal $LIBS"
11453 cat >conftest.$ac_ext <<_ACEOF
11454 /* confdefs.h. */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 char libhal_ctx_new ();
11468 main ()
11470 return libhal_ctx_new ();
11472 return 0;
11474 _ACEOF
11475 rm -f conftest.$ac_objext conftest$ac_exeext
11476 if { (ac_try="$ac_link"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480 esac
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_link") 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11490 { (case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493 esac
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_try") 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try='test -s conftest$ac_exeext'
11500 { (case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503 esac
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_try") 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 ac_cv_lib_hal_libhal_ctx_new=yes
11510 else
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11514 ac_cv_lib_hal_libhal_ctx_new=no
11517 rm -f core conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519 LIBS=$ac_check_lib_save_LIBS
11521 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
11522 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
11523 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
11524 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11525 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
11526 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11528 else
11529 ac_check_lib_save_LIBS=$LIBS
11530 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h. */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11538 /* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char dbus_connection_close ();
11546 main ()
11548 return dbus_connection_close ();
11550 return 0;
11552 _ACEOF
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (ac_try="$ac_link"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_link") 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest$ac_exeext'
11578 { (case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_try") 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 ac_cv_lib_dbus_1_dbus_connection_close=yes
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 ac_cv_lib_dbus_1_dbus_connection_close=no
11595 rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 LIBS=$ac_check_lib_save_LIBS
11599 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11600 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
11601 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
11603 cat >>confdefs.h <<\_ACEOF
11604 #define HAVE_LIBHAL 1
11605 _ACEOF
11607 HALINCL="$ac_hal_cflags"
11613 CPPFLAGS="$ac_save_CPPFLAGS"
11616 CURSESLIBS=""
11617 if test "x$with_curses" != "xno"
11618 then
11619 if test "$ac_cv_header_ncurses_h" = "yes"
11620 then
11621 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
11622 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
11623 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 else
11626 ac_check_lib_save_LIBS=$LIBS
11627 LIBS="-lncurses $LIBS"
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h. */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11635 /* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11638 #ifdef __cplusplus
11639 extern "C"
11640 #endif
11641 char waddch ();
11643 main ()
11645 return waddch ();
11647 return 0;
11649 _ACEOF
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (ac_try="$ac_link"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_link") 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
11664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11665 { (case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_try") 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 ac_cv_lib_ncurses_waddch=yes
11685 else
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 ac_cv_lib_ncurses_waddch=no
11692 rm -f core conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11696 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
11697 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
11698 if test $ac_cv_lib_ncurses_waddch = yes; then
11700 cat >>confdefs.h <<\_ACEOF
11701 #define HAVE_LIBNCURSES 1
11702 _ACEOF
11704 CURSESLIBS="-lncurses"
11707 elif test "$ac_cv_header_curses_h" = "yes"
11708 then
11709 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11710 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
11711 if test "${ac_cv_lib_curses_waddch+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714 ac_check_lib_save_LIBS=$LIBS
11715 LIBS="-lcurses $LIBS"
11716 cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h. */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 char waddch ();
11731 main ()
11733 return waddch ();
11735 return 0;
11737 _ACEOF
11738 rm -f conftest.$ac_objext conftest$ac_exeext
11739 if { (ac_try="$ac_link"
11740 case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11743 esac
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_link") 2>conftest.er1
11746 ac_status=$?
11747 grep -v '^ *+' conftest.er1 >conftest.err
11748 rm -f conftest.er1
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } &&
11752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11753 { (case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11756 esac
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_try") 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest$ac_exeext'
11763 { (case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11766 esac
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_try") 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_cv_lib_curses_waddch=yes
11773 else
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11777 ac_cv_lib_curses_waddch=no
11780 rm -f core conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11784 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11785 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
11786 if test $ac_cv_lib_curses_waddch = yes; then
11788 cat >>confdefs.h <<\_ACEOF
11789 #define HAVE_LIBCURSES 1
11790 _ACEOF
11792 CURSESLIBS="-lcurses"
11799 # Extract the first word of "sane-config", so it can be a program name with args.
11800 set dummy sane-config; ac_word=$2
11801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11803 if test "${ac_cv_prog_sane_devel+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 else
11806 if test -n "$sane_devel"; then
11807 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11808 else
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810 for as_dir in $PATH
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
11814 for ac_exec_ext in '' $ac_executable_extensions; do
11815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11816 ac_cv_prog_sane_devel="sane-config"
11817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 break 2
11820 done
11821 done
11822 IFS=$as_save_IFS
11824 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11827 sane_devel=$ac_cv_prog_sane_devel
11828 if test -n "$sane_devel"; then
11829 { echo "$as_me:$LINENO: result: $sane_devel" >&5
11830 echo "${ECHO_T}$sane_devel" >&6; }
11831 else
11832 { echo "$as_me:$LINENO: result: no" >&5
11833 echo "${ECHO_T}no" >&6; }
11837 SANELIBS=""
11839 SANEINCL=""
11841 if test "$sane_devel" != "no"
11842 then
11843 SANELIBS="`$sane_devel --libs`"
11844 SANEINCL="`$sane_devel --cflags`"
11845 ac_save_CPPFLAGS="$CPPFLAGS"
11846 ac_save_LIBS="$LIBS"
11847 CPPFLAGS="$CPPFLAGS $SANEINCL"
11848 LIBS="$LIBS $SANELIBS"
11849 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11850 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11851 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11852 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11856 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11857 else
11858 # Is the header compilable?
11859 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11860 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 $ac_includes_default
11868 #include <sane/sane.h>
11869 _ACEOF
11870 rm -f conftest.$ac_objext
11871 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11885 { (case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11888 esac
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_try") 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest.$ac_objext'
11895 { (case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11898 esac
11899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_try") 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; }; then
11904 ac_header_compiler=yes
11905 else
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11909 ac_header_compiler=no
11912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11914 echo "${ECHO_T}$ac_header_compiler" >&6; }
11916 # Is the header present?
11917 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11918 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
11919 cat >conftest.$ac_ext <<_ACEOF
11920 /* confdefs.h. */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 #include <sane/sane.h>
11926 _ACEOF
11927 if { (ac_try="$ac_cpp conftest.$ac_ext"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } >/dev/null; then
11940 if test -s conftest.err; then
11941 ac_cpp_err=$ac_c_preproc_warn_flag
11942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11943 else
11944 ac_cpp_err=
11946 else
11947 ac_cpp_err=yes
11949 if test -z "$ac_cpp_err"; then
11950 ac_header_preproc=yes
11951 else
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11955 ac_header_preproc=no
11958 rm -f conftest.err conftest.$ac_ext
11959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11960 echo "${ECHO_T}$ac_header_preproc" >&6; }
11962 # So? What about this header?
11963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11964 yes:no: )
11965 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11966 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11967 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11968 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
11969 ac_header_preproc=yes
11971 no:yes:* )
11972 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11973 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
11974 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
11975 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
11976 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
11977 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
11979 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
11981 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
11983 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
11984 ( cat <<\_ASBOX
11985 ## ------------------------------------ ##
11986 ## Report this to wine-devel@winehq.org ##
11987 ## ------------------------------------ ##
11988 _ASBOX
11989 ) | sed "s/^/$as_me: WARNING: /" >&2
11991 esac
11992 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11993 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11994 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997 ac_cv_header_sane_sane_h=$ac_header_preproc
11999 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12000 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
12003 if test $ac_cv_header_sane_sane_h = yes; then
12004 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
12005 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
12006 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009 ac_check_lib_save_LIBS=$LIBS
12010 LIBS="-lsane $LIBS"
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h. */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12018 /* Override any GCC internal prototype to avoid an error.
12019 Use char because int might match the return type of a GCC
12020 builtin and then its argument prototype would still apply. */
12021 #ifdef __cplusplus
12022 extern "C"
12023 #endif
12024 char sane_open ();
12026 main ()
12028 return sane_open ();
12030 return 0;
12032 _ACEOF
12033 rm -f conftest.$ac_objext conftest$ac_exeext
12034 if { (ac_try="$ac_link"
12035 case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12038 esac
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_link") 2>conftest.er1
12041 ac_status=$?
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12048 { (case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12051 esac
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_try") 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; } &&
12057 { ac_try='test -s conftest$ac_exeext'
12058 { (case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12061 esac
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_try") 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_cv_lib_sane_sane_open=yes
12068 else
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12072 ac_cv_lib_sane_sane_open=no
12075 rm -f core conftest.err conftest.$ac_objext \
12076 conftest$ac_exeext conftest.$ac_ext
12077 LIBS=$ac_check_lib_save_LIBS
12079 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
12080 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
12081 if test $ac_cv_lib_sane_sane_open = yes; then
12083 cat >>confdefs.h <<\_ACEOF
12084 #define HAVE_SANE 1
12085 _ACEOF
12087 else
12088 SANELIBS=""
12089 SANEINCL=""
12092 else
12093 SANELIBS=""
12094 SANEINCL=""
12098 LIBS="$ac_save_LIBS"
12099 CPPFLAGS="$ac_save_CPPFLAGS"
12102 # Extract the first word of "gphoto2-config", so it can be a program name with args.
12103 set dummy gphoto2-config; ac_word=$2
12104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12106 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109 if test -n "$gphoto2_devel"; then
12110 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12111 else
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12119 ac_cv_prog_gphoto2_devel="gphoto2-config"
12120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 break 2
12123 done
12124 done
12125 IFS=$as_save_IFS
12127 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12130 gphoto2_devel=$ac_cv_prog_gphoto2_devel
12131 if test -n "$gphoto2_devel"; then
12132 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12133 echo "${ECHO_T}$gphoto2_devel" >&6; }
12134 else
12135 { echo "$as_me:$LINENO: result: no" >&5
12136 echo "${ECHO_T}no" >&6; }
12140 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12141 set dummy gphoto2-port-config; ac_word=$2
12142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12144 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 else
12147 if test -n "$gphoto2port_devel"; then
12148 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12149 else
12150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151 for as_dir in $PATH
12153 IFS=$as_save_IFS
12154 test -z "$as_dir" && as_dir=.
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12157 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12159 break 2
12161 done
12162 done
12163 IFS=$as_save_IFS
12165 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
12168 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12169 if test -n "$gphoto2port_devel"; then
12170 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12171 echo "${ECHO_T}$gphoto2port_devel" >&6; }
12172 else
12173 { echo "$as_me:$LINENO: result: no" >&5
12174 echo "${ECHO_T}no" >&6; }
12178 GPHOTO2LIBS=""
12180 GPHOTO2INCL=""
12182 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12183 then
12184 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12185 GPHOTO2LIBS=""
12186 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12188 case "$i" in
12189 -L/usr/lib|-L/usr/lib64) ;;
12190 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
12191 esac
12192 done
12193 ac_save_CPPFLAGS="$CPPFLAGS"
12194 ac_save_LIBS="$LIBS"
12195 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
12196 LIBS="$LIBS $GPHOTO2LIBS"
12197 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12198 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12199 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12200 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12203 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12204 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12205 else
12206 # Is the header compilable?
12207 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12208 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
12209 cat >conftest.$ac_ext <<_ACEOF
12210 /* confdefs.h. */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 $ac_includes_default
12216 #include <gphoto2-camera.h>
12217 _ACEOF
12218 rm -f conftest.$ac_objext
12219 if { (ac_try="$ac_compile"
12220 case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223 esac
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_compile") 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12233 { (case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236 esac
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_try") 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest.$ac_objext'
12243 { (case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246 esac
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_try") 2>&5
12249 ac_status=$?
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12252 ac_header_compiler=yes
12253 else
12254 echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12257 ac_header_compiler=no
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12262 echo "${ECHO_T}$ac_header_compiler" >&6; }
12264 # Is the header present?
12265 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12266 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
12267 cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h. */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 #include <gphoto2-camera.h>
12274 _ACEOF
12275 if { (ac_try="$ac_cpp conftest.$ac_ext"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } >/dev/null; then
12288 if test -s conftest.err; then
12289 ac_cpp_err=$ac_c_preproc_warn_flag
12290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12291 else
12292 ac_cpp_err=
12294 else
12295 ac_cpp_err=yes
12297 if test -z "$ac_cpp_err"; then
12298 ac_header_preproc=yes
12299 else
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 ac_header_preproc=no
12306 rm -f conftest.err conftest.$ac_ext
12307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12308 echo "${ECHO_T}$ac_header_preproc" >&6; }
12310 # So? What about this header?
12311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12312 yes:no: )
12313 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12314 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12315 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12316 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12317 ac_header_preproc=yes
12319 no:yes:* )
12320 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12321 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12322 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
12323 echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
12324 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12325 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12326 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
12327 echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
12328 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12329 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12330 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12331 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
12332 ( cat <<\_ASBOX
12333 ## ------------------------------------ ##
12334 ## Report this to wine-devel@winehq.org ##
12335 ## ------------------------------------ ##
12336 _ASBOX
12337 ) | sed "s/^/$as_me: WARNING: /" >&2
12339 esac
12340 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12341 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12342 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
12347 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12348 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12351 if test $ac_cv_header_gphoto2_camera_h = yes; then
12352 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12353 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
12354 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357 ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-lgphoto2 $LIBS"
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h. */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12369 #ifdef __cplusplus
12370 extern "C"
12371 #endif
12372 char gp_camera_new ();
12374 main ()
12376 return gp_camera_new ();
12378 return 0;
12380 _ACEOF
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (ac_try="$ac_link"
12383 case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_link") 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12396 { (case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399 esac
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest$ac_exeext'
12406 { (case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409 esac
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_try") 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_cv_lib_gphoto2_gp_camera_new=yes
12416 else
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 ac_cv_lib_gphoto2_gp_camera_new=no
12423 rm -f core conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12427 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12428 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
12429 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
12431 cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_GPHOTO2 1
12433 _ACEOF
12435 else
12436 GPHOTO2LIBS=""
12437 GPHOTO2INCL=""
12440 else
12441 GPHOTO2LIBS=""
12442 GPHOTO2INCL=""
12446 LIBS="$ac_save_LIBS"
12447 CPPFLAGS="$ac_save_CPPFLAGS"
12450 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
12451 then
12452 saved_libs="$LIBS"
12453 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
12455 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
12456 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
12457 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
12458 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
12459 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h. */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 #include <unicode/ubidi.h>
12468 main ()
12470 ubidi_open()
12472 return 0;
12474 _ACEOF
12475 rm -f conftest.$ac_objext conftest$ac_exeext
12476 if { (ac_try="$ac_link"
12477 case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12480 esac
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_link") 2>conftest.er1
12483 ac_status=$?
12484 grep -v '^ *+' conftest.er1 >conftest.err
12485 rm -f conftest.er1
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12490 { (case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_try") 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest$ac_exeext'
12500 { (case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12503 esac
12504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_try") 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12510 cat >>confdefs.h <<\_ACEOF
12511 #define HAVE_ICU 1
12512 _ACEOF
12514 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12516 { echo "$as_me:$LINENO: result: yes" >&5
12517 echo "${ECHO_T}yes" >&6; }
12518 else
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 { echo "$as_me:$LINENO: result: no" >&5
12523 echo "${ECHO_T}no" >&6; }
12526 rm -f core conftest.err conftest.$ac_objext \
12527 conftest$ac_exeext conftest.$ac_ext
12528 done
12529 LIBS="$saved_libs"
12532 RESOLVLIBS=""
12534 if test "$ac_cv_header_resolv_h" = "yes"
12535 then
12536 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12537 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
12538 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 else
12541 ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-lresolv $LIBS"
12543 cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h. */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12550 /* Override any GCC internal prototype to avoid an error.
12551 Use char because int might match the return type of a GCC
12552 builtin and then its argument prototype would still apply. */
12553 #ifdef __cplusplus
12554 extern "C"
12555 #endif
12556 char res_query ();
12558 main ()
12560 return res_query ();
12562 return 0;
12564 _ACEOF
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (ac_try="$ac_link"
12567 case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12570 esac
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572 (eval "$ac_link") 2>conftest.er1
12573 ac_status=$?
12574 grep -v '^ *+' conftest.er1 >conftest.err
12575 rm -f conftest.er1
12576 cat conftest.err >&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } &&
12579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12580 { (case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583 esac
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_try") 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest$ac_exeext'
12590 { (case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_try") 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599 ac_cv_lib_resolv_res_query=yes
12600 else
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 ac_cv_lib_resolv_res_query=no
12607 rm -f core conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12611 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12612 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12613 if test $ac_cv_lib_resolv_res_query = yes; then
12615 cat >>confdefs.h <<\_ACEOF
12616 #define HAVE_RESOLV 1
12617 _ACEOF
12619 RESOLVLIBS="-lresolv"
12624 LCMSLIBS=""
12626 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12627 then
12628 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12629 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12630 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633 ac_check_lib_save_LIBS=$LIBS
12634 LIBS="-llcms $LIBS"
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 char cmsOpenProfileFromFile ();
12650 main ()
12652 return cmsOpenProfileFromFile ();
12654 return 0;
12656 _ACEOF
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (ac_try="$ac_link"
12659 case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12662 esac
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_link") 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12672 { (case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_try") 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest$ac_exeext'
12682 { (case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_try") 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12692 else
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12703 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12704 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12705 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12707 cat >>confdefs.h <<\_ACEOF
12708 #define HAVE_LCMS 1
12709 _ACEOF
12711 LCMSLIBS="-llcms"
12716 LDAPLIBS=""
12718 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12719 then
12720 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12721 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12722 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725 ac_check_lib_save_LIBS=$LIBS
12726 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12727 cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h. */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 char ldap_initialize ();
12742 main ()
12744 return ldap_initialize ();
12746 return 0;
12748 _ACEOF
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12754 esac
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_link") 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12764 { (case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12767 esac
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_try") 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try='test -s conftest$ac_exeext'
12774 { (case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_try") 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 ac_cv_lib_ldap_r_ldap_initialize=yes
12784 else
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12788 ac_cv_lib_ldap_r_ldap_initialize=no
12791 rm -f core conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
12793 LIBS=$ac_check_lib_save_LIBS
12795 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12796 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12797 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12798 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12799 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12800 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803 ac_check_lib_save_LIBS=$LIBS
12804 LIBS="-llber $LIBPTHREAD $LIBS"
12805 cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h. */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12812 /* Override any GCC internal prototype to avoid an error.
12813 Use char because int might match the return type of a GCC
12814 builtin and then its argument prototype would still apply. */
12815 #ifdef __cplusplus
12816 extern "C"
12817 #endif
12818 char ber_init ();
12820 main ()
12822 return ber_init ();
12824 return 0;
12826 _ACEOF
12827 rm -f conftest.$ac_objext conftest$ac_exeext
12828 if { (ac_try="$ac_link"
12829 case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_link") 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842 { (case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_try") 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855 esac
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_try") 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 ac_cv_lib_lber_ber_init=yes
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_cv_lib_lber_ber_init=no
12869 rm -f core conftest.err conftest.$ac_objext \
12870 conftest$ac_exeext conftest.$ac_ext
12871 LIBS=$ac_check_lib_save_LIBS
12873 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12874 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12875 if test $ac_cv_lib_lber_ber_init = yes; then
12877 cat >>confdefs.h <<\_ACEOF
12878 #define HAVE_LDAP 1
12879 _ACEOF
12881 LDAPLIBS="-lldap_r -llber"
12886 ac_wine_check_funcs_save_LIBS="$LIBS"
12887 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12892 for ac_func in \
12893 ldap_count_references \
12894 ldap_first_reference \
12895 ldap_next_reference \
12896 ldap_parse_reference
12898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h. */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12912 #define $ac_func innocuous_$ac_func
12914 /* System header to define __stub macros and hopefully few prototypes,
12915 which can conflict with char $ac_func (); below.
12916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12917 <limits.h> exists even on freestanding compilers. */
12919 #ifdef __STDC__
12920 # include <limits.h>
12921 #else
12922 # include <assert.h>
12923 #endif
12925 #undef $ac_func
12927 /* Override any GCC internal prototype to avoid an error.
12928 Use char because int might match the return type of a GCC
12929 builtin and then its argument prototype would still apply. */
12930 #ifdef __cplusplus
12931 extern "C"
12932 #endif
12933 char $ac_func ();
12934 /* The GNU C library defines this for functions which it implements
12935 to always fail with ENOSYS. Some functions are actually named
12936 something starting with __ and the normal name is an alias. */
12937 #if defined __stub_$ac_func || defined __stub___$ac_func
12938 choke me
12939 #endif
12942 main ()
12944 return $ac_func ();
12946 return 0;
12948 _ACEOF
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (ac_try="$ac_link"
12951 case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_link") 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967 esac
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest$ac_exeext'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 eval "$as_ac_var=yes"
12984 else
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12988 eval "$as_ac_var=no"
12991 rm -f core conftest.err conftest.$ac_objext \
12992 conftest$ac_exeext conftest.$ac_ext
12994 ac_res=`eval echo '${'$as_ac_var'}'`
12995 { echo "$as_me:$LINENO: result: $ac_res" >&5
12996 echo "${ECHO_T}$ac_res" >&6; }
12997 if test `eval echo '${'$as_ac_var'}'` = yes; then
12998 cat >>confdefs.h <<_ACEOF
12999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13000 _ACEOF
13003 done
13005 LIBS="$ac_wine_check_funcs_save_LIBS"
13008 FREETYPELIBS=""
13010 FREETYPEINCL=""
13012 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
13013 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
13014 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017 ac_check_lib_save_LIBS=$LIBS
13018 LIBS="-lfreetype $X_LIBS $LIBS"
13019 cat >conftest.$ac_ext <<_ACEOF
13020 /* confdefs.h. */
13021 _ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13029 #ifdef __cplusplus
13030 extern "C"
13031 #endif
13032 char FT_Init_FreeType ();
13034 main ()
13036 return FT_Init_FreeType ();
13038 return 0;
13040 _ACEOF
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_link") 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13056 { (case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059 esac
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_try") 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest$ac_exeext'
13066 { (case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069 esac
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_try") 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_cv_lib_freetype_FT_Init_FreeType=yes
13076 else
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 ac_cv_lib_freetype_FT_Init_FreeType=no
13083 rm -f core conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13085 LIBS=$ac_check_lib_save_LIBS
13087 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
13088 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
13089 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
13090 ft_lib=yes
13091 else
13092 ft_lib=no
13095 if test "$ft_lib" = "no"
13096 then
13097 wine_cv_msg_freetype=no
13098 else
13099 # Extract the first word of "freetype-config", so it can be a program name with args.
13100 set dummy freetype-config; ac_word=$2
13101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13103 if test "${ac_cv_prog_ft_devel+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 else
13106 if test -n "$ft_devel"; then
13107 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
13108 else
13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 for as_dir in $PATH
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
13114 for ac_exec_ext in '' $ac_executable_extensions; do
13115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13116 ac_cv_prog_ft_devel="freetype-config"
13117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13118 break 2
13120 done
13121 done
13122 IFS=$as_save_IFS
13124 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
13127 ft_devel=$ac_cv_prog_ft_devel
13128 if test -n "$ft_devel"; then
13129 { echo "$as_me:$LINENO: result: $ft_devel" >&5
13130 echo "${ECHO_T}$ft_devel" >&6; }
13131 else
13132 { echo "$as_me:$LINENO: result: no" >&5
13133 echo "${ECHO_T}no" >&6; }
13137 if test "$ft_devel" = "no"
13138 then
13139 # Extract the first word of "freetype2-config", so it can be a program name with args.
13140 set dummy freetype2-config; ac_word=$2
13141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13143 if test "${ac_cv_prog_ft_devel2+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146 if test -n "$ft_devel2"; then
13147 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
13148 else
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_prog_ft_devel2="freetype2-config"
13157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13160 done
13161 done
13162 IFS=$as_save_IFS
13164 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
13167 ft_devel2=$ac_cv_prog_ft_devel2
13168 if test -n "$ft_devel2"; then
13169 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
13170 echo "${ECHO_T}$ft_devel2" >&6; }
13171 else
13172 { echo "$as_me:$LINENO: result: no" >&5
13173 echo "${ECHO_T}no" >&6; }
13177 if test "$ft_devel2" = "freetype2-config"
13178 then
13179 ft_devel=$ft_devel2
13182 if test "$ft_devel" = "no"
13183 then
13184 wine_cv_msg_freetype=yes
13185 else
13186 FREETYPELIBS=`$ft_devel --libs`
13187 FREETYPEINCL=`$ft_devel --cflags`
13188 ac_save_CPPFLAGS="$CPPFLAGS"
13189 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
13201 for ac_header in ft2build.h \
13202 freetype/freetype.h \
13203 freetype/ftglyph.h \
13204 freetype/tttables.h \
13205 freetype/ftnames.h \
13206 freetype/ftsnames.h \
13207 freetype/ttnameid.h \
13208 freetype/ftoutln.h \
13209 freetype/ftwinfnt.h \
13210 freetype/ftmodapi.h \
13211 freetype/internal/sfnt.h
13213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h. */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 #if HAVE_FT2BUILD_H
13226 #include <ft2build.h>
13227 #endif
13229 #include <$ac_header>
13230 _ACEOF
13231 rm -f conftest.$ac_objext
13232 if { (ac_try="$ac_compile"
13233 case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13236 esac
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_compile") 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246 { (case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_try") 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest.$ac_objext'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 eval "$as_ac_Header=yes"
13266 else
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 eval "$as_ac_Header=no"
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275 ac_res=`eval echo '${'$as_ac_Header'}'`
13276 { echo "$as_me:$LINENO: result: $ac_res" >&5
13277 echo "${ECHO_T}$ac_res" >&6; }
13278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13279 cat >>confdefs.h <<_ACEOF
13280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13281 _ACEOF
13285 done
13287 cat >conftest.$ac_ext <<_ACEOF
13288 /* confdefs.h. */
13289 _ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13293 #include <ft2build.h>
13294 #include <freetype/fttrigon.h>
13295 _ACEOF
13296 if { (ac_try="$ac_cpp conftest.$ac_ext"
13297 case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300 esac
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } >/dev/null; then
13309 if test -s conftest.err; then
13310 ac_cpp_err=$ac_c_preproc_warn_flag
13311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13312 else
13313 ac_cpp_err=
13315 else
13316 ac_cpp_err=yes
13318 if test -z "$ac_cpp_err"; then
13320 cat >>confdefs.h <<\_ACEOF
13321 #define HAVE_FREETYPE_FTTRIGON_H 1
13322 _ACEOF
13324 wine_cv_fttrigon=yes
13325 else
13326 echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13329 wine_cv_fttrigon=no
13332 rm -f conftest.err conftest.$ac_ext
13333 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13334 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
13335 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 else
13338 cat >conftest.$ac_ext <<_ACEOF
13339 /* confdefs.h. */
13340 _ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h. */
13344 #include <freetype/ftmodapi.h>
13346 typedef FT_TrueTypeEngineType ac__type_new_;
13348 main ()
13350 if ((ac__type_new_ *) 0)
13351 return 0;
13352 if (sizeof (ac__type_new_))
13353 return 0;
13355 return 0;
13357 _ACEOF
13358 rm -f conftest.$ac_objext
13359 if { (ac_try="$ac_compile"
13360 case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363 esac
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_compile") 2>conftest.er1
13366 ac_status=$?
13367 grep -v '^ *+' conftest.er1 >conftest.err
13368 rm -f conftest.er1
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13373 { (case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_try") 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; } &&
13382 { ac_try='test -s conftest.$ac_objext'
13383 { (case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13386 esac
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_try") 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392 ac_cv_type_FT_TrueTypeEngineType=yes
13393 else
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13397 ac_cv_type_FT_TrueTypeEngineType=no
13400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13403 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
13404 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13406 cat >>confdefs.h <<_ACEOF
13407 #define HAVE_FT_TRUETYPEENGINETYPE 1
13408 _ACEOF
13413 ac_save_CFLAGS="$CFLAGS"
13414 CFLAGS="$CFLAGS $FREETYPELIBS"
13416 for ac_func in FT_Load_Sfnt_Table
13418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 else
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h. */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13432 #define $ac_func innocuous_$ac_func
13434 /* System header to define __stub macros and hopefully few prototypes,
13435 which can conflict with char $ac_func (); below.
13436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13437 <limits.h> exists even on freestanding compilers. */
13439 #ifdef __STDC__
13440 # include <limits.h>
13441 #else
13442 # include <assert.h>
13443 #endif
13445 #undef $ac_func
13447 /* Override any GCC internal prototype to avoid an error.
13448 Use char because int might match the return type of a GCC
13449 builtin and then its argument prototype would still apply. */
13450 #ifdef __cplusplus
13451 extern "C"
13452 #endif
13453 char $ac_func ();
13454 /* The GNU C library defines this for functions which it implements
13455 to always fail with ENOSYS. Some functions are actually named
13456 something starting with __ and the normal name is an alias. */
13457 #if defined __stub_$ac_func || defined __stub___$ac_func
13458 choke me
13459 #endif
13462 main ()
13464 return $ac_func ();
13466 return 0;
13468 _ACEOF
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (ac_try="$ac_link"
13471 case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13474 esac
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_link") 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13484 { (case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_try") 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest$ac_exeext'
13494 { (case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_try") 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13503 eval "$as_ac_var=yes"
13504 else
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 eval "$as_ac_var=no"
13511 rm -f core conftest.err conftest.$ac_objext \
13512 conftest$ac_exeext conftest.$ac_ext
13514 ac_res=`eval echo '${'$as_ac_var'}'`
13515 { echo "$as_me:$LINENO: result: $ac_res" >&5
13516 echo "${ECHO_T}$ac_res" >&6; }
13517 if test `eval echo '${'$as_ac_var'}'` = yes; then
13518 cat >>confdefs.h <<_ACEOF
13519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13520 _ACEOF
13523 done
13525 CFLAGS="$ac_save_CFLAGS"
13526 CPPFLAGS="$ac_save_CPPFLAGS"
13527 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
13528 then
13530 cat >>confdefs.h <<\_ACEOF
13531 #define HAVE_FREETYPE 1
13532 _ACEOF
13534 wine_cv_msg_freetype=no
13535 else
13536 FREETYPELIBS=""
13537 FREETYPEINCL=""
13538 wine_cv_msg_freetype=yes
13543 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
13544 then
13545 FONTSSUBDIRS="fonts"
13549 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13550 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
13551 if test "${ac_cv_c_ppdev+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 #include <linux/ppdev.h>
13562 main ()
13564 ioctl (1,PPCLAIM,0)
13566 return 0;
13568 _ACEOF
13569 rm -f conftest.$ac_objext
13570 if { (ac_try="$ac_compile"
13571 case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574 esac
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_compile") 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
13583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13584 { (case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587 esac
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_try") 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; } &&
13593 { ac_try='test -s conftest.$ac_objext'
13594 { (case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597 esac
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_try") 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; }; then
13603 ac_cv_c_ppdev="yes"
13604 else
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 ac_cv_c_ppdev="no"
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13615 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13616 if test "$ac_cv_c_ppdev" = "yes"
13617 then
13619 cat >>confdefs.h <<\_ACEOF
13620 #define HAVE_PPDEV 1
13621 _ACEOF
13625 { echo "$as_me:$LINENO: checking for va_copy" >&5
13626 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13627 if test "${ac_cv_c_va_copy+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13630 cat >conftest.$ac_ext <<_ACEOF
13631 /* confdefs.h. */
13632 _ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 #include <stdarg.h>
13638 main ()
13640 va_list ap1, ap2;
13641 va_copy(ap1,ap2);
13644 return 0;
13646 _ACEOF
13647 rm -f conftest.$ac_objext conftest$ac_exeext
13648 if { (ac_try="$ac_link"
13649 case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13652 esac
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_link") 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest$ac_exeext'
13672 { (case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675 esac
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_try") 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_cv_c_va_copy="yes"
13682 else
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 ac_cv_c_va_copy="no"
13689 rm -f core conftest.err conftest.$ac_objext \
13690 conftest$ac_exeext conftest.$ac_ext
13693 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13694 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13695 if test "$ac_cv_c_va_copy" = "yes"
13696 then
13698 cat >>confdefs.h <<\_ACEOF
13699 #define HAVE_VA_COPY 1
13700 _ACEOF
13703 { echo "$as_me:$LINENO: checking for __va_copy" >&5
13704 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13705 if test "${ac_cv_c___va_copy+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h. */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 #include <stdarg.h>
13716 main ()
13718 va_list ap1, ap2;
13719 __va_copy(ap1,ap2);
13722 return 0;
13724 _ACEOF
13725 rm -f conftest.$ac_objext conftest$ac_exeext
13726 if { (ac_try="$ac_link"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730 esac
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_link") 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13740 { (case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13743 esac
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_try") 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest$ac_exeext'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_cv_c___va_copy="yes"
13760 else
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13764 ac_cv_c___va_copy="no"
13767 rm -f core conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext conftest.$ac_ext
13771 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13772 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13773 if test "$ac_cv_c___va_copy" = "yes"
13774 then
13776 cat >>confdefs.h <<\_ACEOF
13777 #define HAVE___VA_COPY 1
13778 _ACEOF
13782 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13783 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13784 if test "${ac_cv_c_sigsetjmp+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 else
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 #include <setjmp.h>
13795 main ()
13797 sigjmp_buf buf;
13798 sigsetjmp( buf, 1 );
13799 siglongjmp( buf, 1 );
13801 return 0;
13803 _ACEOF
13804 rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (ac_try="$ac_link"
13806 case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809 esac
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_link") 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13819 { (case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_try") 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest$ac_exeext'
13829 { (case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13832 esac
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_try") 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_cv_c_sigsetjmp="yes"
13839 else
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13843 ac_cv_c_sigsetjmp="no"
13846 rm -f core conftest.err conftest.$ac_objext \
13847 conftest$ac_exeext conftest.$ac_ext
13850 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13851 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13852 if test "$ac_cv_c_sigsetjmp" = "yes"
13853 then
13855 cat >>confdefs.h <<\_ACEOF
13856 #define HAVE_SIGSETJMP 1
13857 _ACEOF
13861 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13862 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13863 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866 cat >conftest.$ac_ext <<_ACEOF
13867 /* confdefs.h. */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 #define _GNU_SOURCE
13873 #include <pthread.h>
13875 typedef pthread_rwlock_t ac__type_new_;
13877 main ()
13879 if ((ac__type_new_ *) 0)
13880 return 0;
13881 if (sizeof (ac__type_new_))
13882 return 0;
13884 return 0;
13886 _ACEOF
13887 rm -f conftest.$ac_objext
13888 if { (ac_try="$ac_compile"
13889 case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13892 esac
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_compile") 2>conftest.er1
13895 ac_status=$?
13896 grep -v '^ *+' conftest.er1 >conftest.err
13897 rm -f conftest.er1
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_try") 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; } &&
13911 { ac_try='test -s conftest.$ac_objext'
13912 { (case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13915 esac
13916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13917 (eval "$ac_try") 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; }; then
13921 ac_cv_type_pthread_rwlock_t=yes
13922 else
13923 echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.$ac_ext >&5
13926 ac_cv_type_pthread_rwlock_t=no
13929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13932 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
13933 if test $ac_cv_type_pthread_rwlock_t = yes; then
13935 cat >>confdefs.h <<_ACEOF
13936 #define HAVE_PTHREAD_RWLOCK_T 1
13937 _ACEOF
13941 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13942 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
13943 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 else
13946 cat >conftest.$ac_ext <<_ACEOF
13947 /* confdefs.h. */
13948 _ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13952 #define _GNU_SOURCE
13953 #include <pthread.h>
13955 typedef pthread_rwlockattr_t ac__type_new_;
13957 main ()
13959 if ((ac__type_new_ *) 0)
13960 return 0;
13961 if (sizeof (ac__type_new_))
13962 return 0;
13964 return 0;
13966 _ACEOF
13967 rm -f conftest.$ac_objext
13968 if { (ac_try="$ac_compile"
13969 case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972 esac
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_compile") 2>conftest.er1
13975 ac_status=$?
13976 grep -v '^ *+' conftest.er1 >conftest.err
13977 rm -f conftest.er1
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } &&
13981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13982 { (case "(($ac_try" in
13983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984 *) ac_try_echo=$ac_try;;
13985 esac
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987 (eval "$ac_try") 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; } &&
13991 { ac_try='test -s conftest.$ac_objext'
13992 { (case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13995 esac
13996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997 (eval "$ac_try") 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; }; then
14001 ac_cv_type_pthread_rwlockattr_t=yes
14002 else
14003 echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14006 ac_cv_type_pthread_rwlockattr_t=no
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
14012 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
14013 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
14015 cat >>confdefs.h <<_ACEOF
14016 #define HAVE_PTHREAD_RWLOCKATTR_T 1
14017 _ACEOF
14023 ac_wine_check_funcs_save_LIBS="$LIBS"
14024 LIBS="$LIBS $LIBPTHREAD"
14028 for ac_func in \
14029 pthread_getattr_np \
14030 pthread_get_stackaddr_np \
14031 pthread_get_stacksize_np
14033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h. */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14047 #define $ac_func innocuous_$ac_func
14049 /* System header to define __stub macros and hopefully few prototypes,
14050 which can conflict with char $ac_func (); below.
14051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14052 <limits.h> exists even on freestanding compilers. */
14054 #ifdef __STDC__
14055 # include <limits.h>
14056 #else
14057 # include <assert.h>
14058 #endif
14060 #undef $ac_func
14062 /* Override any GCC internal prototype to avoid an error.
14063 Use char because int might match the return type of a GCC
14064 builtin and then its argument prototype would still apply. */
14065 #ifdef __cplusplus
14066 extern "C"
14067 #endif
14068 char $ac_func ();
14069 /* The GNU C library defines this for functions which it implements
14070 to always fail with ENOSYS. Some functions are actually named
14071 something starting with __ and the normal name is an alias. */
14072 #if defined __stub_$ac_func || defined __stub___$ac_func
14073 choke me
14074 #endif
14077 main ()
14079 return $ac_func ();
14081 return 0;
14083 _ACEOF
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (ac_try="$ac_link"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14089 esac
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_link") 2>conftest.er1
14092 ac_status=$?
14093 grep -v '^ *+' conftest.er1 >conftest.err
14094 rm -f conftest.er1
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14099 { (case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14102 esac
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_try") 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest$ac_exeext'
14109 { (case "(($ac_try" in
14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111 *) ac_try_echo=$ac_try;;
14112 esac
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114 (eval "$ac_try") 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; }; then
14118 eval "$as_ac_var=yes"
14119 else
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 eval "$as_ac_var=no"
14126 rm -f core conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14129 ac_res=`eval echo '${'$as_ac_var'}'`
14130 { echo "$as_me:$LINENO: result: $ac_res" >&5
14131 echo "${ECHO_T}$ac_res" >&6; }
14132 if test `eval echo '${'$as_ac_var'}'` = yes; then
14133 cat >>confdefs.h <<_ACEOF
14134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14135 _ACEOF
14138 done
14140 LIBS="$ac_wine_check_funcs_save_LIBS"
14142 # Extract the first word of "artsc-config", so it can be a program name with args.
14143 set dummy artsc-config; ac_word=$2
14144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14146 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 case $ARTSCCONFIG in
14150 [\\/]* | ?:[\\/]*)
14151 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
14154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14157 IFS=$as_save_IFS
14158 test -z "$as_dir" && as_dir=.
14159 for ac_exec_ext in '' $ac_executable_extensions; do
14160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14161 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
14162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14163 break 2
14165 done
14166 done
14167 IFS=$as_save_IFS
14170 esac
14172 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
14173 if test -n "$ARTSCCONFIG"; then
14174 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
14175 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
14176 else
14177 { echo "$as_me:$LINENO: result: no" >&5
14178 echo "${ECHO_T}no" >&6; }
14182 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
14183 then
14184 ARTSC_CFLAGS=""
14185 for i in `$ARTSCCONFIG --cflags`
14187 case "$i" in
14188 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
14189 esac
14190 done
14191 ARTSC_LIBS=""
14192 for i in `$ARTSCCONFIG --libs`
14194 case "$i" in
14195 -L/usr/lib|-L/usr/lib64) ;;
14196 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
14197 esac
14198 done
14199 save_CFLAGS="$CFLAGS"
14200 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
14201 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
14202 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
14203 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206 ac_check_lib_save_LIBS=$LIBS
14207 LIBS="-lartsc $ARTSC_LIBS $LIBS"
14208 cat >conftest.$ac_ext <<_ACEOF
14209 /* confdefs.h. */
14210 _ACEOF
14211 cat confdefs.h >>conftest.$ac_ext
14212 cat >>conftest.$ac_ext <<_ACEOF
14213 /* end confdefs.h. */
14215 /* Override any GCC internal prototype to avoid an error.
14216 Use char because int might match the return type of a GCC
14217 builtin and then its argument prototype would still apply. */
14218 #ifdef __cplusplus
14219 extern "C"
14220 #endif
14221 char arts_init ();
14223 main ()
14225 return arts_init ();
14227 return 0;
14229 _ACEOF
14230 rm -f conftest.$ac_objext conftest$ac_exeext
14231 if { (ac_try="$ac_link"
14232 case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14235 esac
14236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237 (eval "$ac_link") 2>conftest.er1
14238 ac_status=$?
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
14244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14245 { (case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14248 esac
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_try") 2>&5
14251 ac_status=$?
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; } &&
14254 { ac_try='test -s conftest$ac_exeext'
14255 { (case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14258 esac
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_try") 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; }; then
14264 ac_cv_lib_artsc_arts_init=yes
14265 else
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 ac_cv_lib_artsc_arts_init=no
14272 rm -f core conftest.err conftest.$ac_objext \
14273 conftest$ac_exeext conftest.$ac_ext
14274 LIBS=$ac_check_lib_save_LIBS
14276 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
14277 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
14278 if test $ac_cv_lib_artsc_arts_init = yes; then
14279 cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h. */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 #include <artsc.h>
14287 main ()
14289 arts_stream_t stream;
14291 return 0;
14293 _ACEOF
14294 rm -f conftest.$ac_objext
14295 if { (ac_try="$ac_compile"
14296 case "(($ac_try" in
14297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298 *) ac_try_echo=$ac_try;;
14299 esac
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301 (eval "$ac_compile") 2>conftest.er1
14302 ac_status=$?
14303 grep -v '^ *+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14309 { (case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14312 esac
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_try") 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try='test -s conftest.$ac_objext'
14319 { (case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14322 esac
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_try") 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }; then
14328 ARTSLIBS=$ARTSC_LIBS
14330 ARTSINCL=$ARTSC_CFLAGS
14333 cat >>confdefs.h <<\_ACEOF
14334 #define HAVE_ARTS 1
14335 _ACEOF
14337 else
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 CFLAGS="$save_CFLAGS"
14350 # Extract the first word of "esd-config", so it can be a program name with args.
14351 set dummy esd-config; ac_word=$2
14352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14354 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357 case $ESDCONFIG in
14358 [\\/]* | ?:[\\/]*)
14359 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
14362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14363 for as_dir in $PATH
14365 IFS=$as_save_IFS
14366 test -z "$as_dir" && as_dir=.
14367 for ac_exec_ext in '' $ac_executable_extensions; do
14368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14369 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14371 break 2
14373 done
14374 done
14375 IFS=$as_save_IFS
14378 esac
14380 ESDCONFIG=$ac_cv_path_ESDCONFIG
14381 if test -n "$ESDCONFIG"; then
14382 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
14383 echo "${ECHO_T}$ESDCONFIG" >&6; }
14384 else
14385 { echo "$as_me:$LINENO: result: no" >&5
14386 echo "${ECHO_T}no" >&6; }
14390 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
14391 then
14392 ESD_CFLAGS=""
14393 for i in `$ESDCONFIG --cflags`
14395 case "$i" in
14396 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
14397 esac
14398 done
14399 ESD_LIBS=`$ESDCONFIG --libs`
14400 save_CFLAGS="$CFLAGS"
14401 CFLAGS="$CFLAGS $ESD_CFLAGS"
14402 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
14403 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
14404 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407 ac_check_lib_save_LIBS=$LIBS
14408 LIBS="-lesd $LIBS"
14409 cat >conftest.$ac_ext <<_ACEOF
14410 /* confdefs.h. */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14416 /* Override any GCC internal prototype to avoid an error.
14417 Use char because int might match the return type of a GCC
14418 builtin and then its argument prototype would still apply. */
14419 #ifdef __cplusplus
14420 extern "C"
14421 #endif
14422 char esd_open_sound ();
14424 main ()
14426 return esd_open_sound ();
14428 return 0;
14430 _ACEOF
14431 rm -f conftest.$ac_objext conftest$ac_exeext
14432 if { (ac_try="$ac_link"
14433 case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14436 esac
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_link") 2>conftest.er1
14439 ac_status=$?
14440 grep -v '^ *+' conftest.er1 >conftest.err
14441 rm -f conftest.er1
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14446 { (case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_try") 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; } &&
14455 { ac_try='test -s conftest$ac_exeext'
14456 { (case "(($ac_try" in
14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458 *) ac_try_echo=$ac_try;;
14459 esac
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461 (eval "$ac_try") 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14465 ac_cv_lib_esd_esd_open_sound=yes
14466 else
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 ac_cv_lib_esd_esd_open_sound=no
14473 rm -f core conftest.err conftest.$ac_objext \
14474 conftest$ac_exeext conftest.$ac_ext
14475 LIBS=$ac_check_lib_save_LIBS
14477 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14478 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
14479 if test $ac_cv_lib_esd_esd_open_sound = yes; then
14480 ESDLIBS=$ESD_LIBS
14482 ESDINCL=$ESD_CFLAGS
14485 cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_ESD 1
14487 _ACEOF
14491 CFLAGS="$save_CFLAGS"
14494 ALSALIBS=""
14496 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
14497 then
14498 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14499 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
14500 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503 ac_check_lib_save_LIBS=$LIBS
14504 LIBS="-lasound $LIBS"
14505 cat >conftest.$ac_ext <<_ACEOF
14506 /* confdefs.h. */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14515 #ifdef __cplusplus
14516 extern "C"
14517 #endif
14518 char snd_pcm_hw_params_get_access ();
14520 main ()
14522 return snd_pcm_hw_params_get_access ();
14524 return 0;
14526 _ACEOF
14527 rm -f conftest.$ac_objext conftest$ac_exeext
14528 if { (ac_try="$ac_link"
14529 case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_link") 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14542 { (case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14545 esac
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_try") 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest$ac_exeext'
14552 { (case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_try") 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
14562 else
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
14569 rm -f core conftest.err conftest.$ac_objext \
14570 conftest$ac_exeext conftest.$ac_ext
14571 LIBS=$ac_check_lib_save_LIBS
14573 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14574 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
14575 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14576 cat >conftest.$ac_ext <<_ACEOF
14577 /* confdefs.h. */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582 #ifdef HAVE_ALSA_ASOUNDLIB_H
14583 #include <alsa/asoundlib.h>
14584 #elif defined(HAVE_SYS_ASOUNDLIB_H)
14585 #include <sys/asoundlib.h>
14586 #endif
14588 main ()
14590 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14592 return 0;
14594 _ACEOF
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_compile") 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest.$ac_objext'
14620 { (case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_try") 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14630 cat >>confdefs.h <<\_ACEOF
14631 #define HAVE_ALSA 1
14632 _ACEOF
14634 ALSALIBS="-lasound"
14635 else
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648 AUDIOIOLIBS=""
14650 if test "$ac_cv_header_libaudioio_h" = "yes"
14651 then
14652 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14653 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14654 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14655 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 else
14657 ac_check_lib_save_LIBS=$LIBS
14658 LIBS="-laudioio $LIBS"
14659 cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h. */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14666 /* Override any GCC internal prototype to avoid an error.
14667 Use char because int might match the return type of a GCC
14668 builtin and then its argument prototype would still apply. */
14669 #ifdef __cplusplus
14670 extern "C"
14671 #endif
14672 char AudioIOGetVersion ();
14674 main ()
14676 return AudioIOGetVersion ();
14678 return 0;
14680 _ACEOF
14681 rm -f conftest.$ac_objext conftest$ac_exeext
14682 if { (ac_try="$ac_link"
14683 case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_link") 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14696 { (case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_try") 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest$ac_exeext'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14709 esac
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_cv_lib_audioio_AudioIOGetVersion=yes
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_lib_audioio_AudioIOGetVersion=no
14723 rm -f core conftest.err conftest.$ac_objext \
14724 conftest$ac_exeext conftest.$ac_ext
14725 LIBS=$ac_check_lib_save_LIBS
14727 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14728 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14729 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14730 AUDIOIOLIBS="-laudioio"
14732 cat >>confdefs.h <<\_ACEOF
14733 #define HAVE_LIBAUDIOIO 1
14734 _ACEOF
14741 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14742 then
14743 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14744 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
14745 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748 ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-lcapi20 $LIBS"
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h. */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14757 /* Override any GCC internal prototype to avoid an error.
14758 Use char because int might match the return type of a GCC
14759 builtin and then its argument prototype would still apply. */
14760 #ifdef __cplusplus
14761 extern "C"
14762 #endif
14763 char capi20_register ();
14765 main ()
14767 return capi20_register ();
14769 return 0;
14771 _ACEOF
14772 rm -f conftest.$ac_objext conftest$ac_exeext
14773 if { (ac_try="$ac_link"
14774 case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14777 esac
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_link") 2>conftest.er1
14780 ac_status=$?
14781 grep -v '^ *+' conftest.er1 >conftest.err
14782 rm -f conftest.er1
14783 cat conftest.err >&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } &&
14786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14787 { (case "(($ac_try" in
14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14790 esac
14791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14792 (eval "$ac_try") 2>&5
14793 ac_status=$?
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; } &&
14796 { ac_try='test -s conftest$ac_exeext'
14797 { (case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14800 esac
14801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802 (eval "$ac_try") 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 ac_cv_lib_capi20_capi20_register=yes
14807 else
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14811 ac_cv_lib_capi20_capi20_register=no
14814 rm -f core conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext conftest.$ac_ext
14816 LIBS=$ac_check_lib_save_LIBS
14818 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14819 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
14820 if test $ac_cv_lib_capi20_capi20_register = yes; then
14822 cat >>confdefs.h <<\_ACEOF
14823 #define HAVE_CAPI4LINUX 1
14824 _ACEOF
14831 EXTRACFLAGS=""
14833 if test "x${GCC}" = "xyes"
14834 then
14835 EXTRACFLAGS="-Wall -pipe"
14837 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14838 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14839 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842 if test "$cross_compiling" = yes; then
14843 ac_cv_c_gcc_strength_bug="yes"
14844 else
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h. */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14852 int L[4] = {0,1,2,3};
14853 int main(void) {
14854 static int Array[3];
14855 unsigned int B = 3;
14856 int i;
14857 for(i=0; i<B; i++) Array[i] = i - 3;
14858 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14859 L[i] = 4;
14861 exit( Array[1] != -2 || L[2] != 3);
14863 _ACEOF
14864 rm -f conftest$ac_exeext
14865 if { (ac_try="$ac_link"
14866 case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_link") 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14875 { (case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14878 esac
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_try") 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_cv_c_gcc_strength_bug="no"
14885 else
14886 echo "$as_me: program exited with status $ac_status" >&5
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ( exit $ac_status )
14891 ac_cv_c_gcc_strength_bug="yes"
14893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14898 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14899 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
14900 if test "$ac_cv_c_gcc_strength_bug" = "yes"
14901 then
14902 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
14905 { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
14906 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
14907 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 else
14910 ac_wine_try_cflags_saved=$CFLAGS
14911 CFLAGS="$CFLAGS -fshort-wchar"
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h. */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14920 main ()
14924 return 0;
14926 _ACEOF
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932 esac
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_link") 2>conftest.er1
14935 ac_status=$?
14936 grep -v '^ *+' conftest.er1 >conftest.err
14937 rm -f conftest.er1
14938 cat conftest.err >&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } &&
14941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14942 { (case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14945 esac
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_try") 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; } &&
14951 { ac_try='test -s conftest$ac_exeext'
14952 { (case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14955 esac
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_try") 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 ac_cv_c_gcc_fshort_wchar="yes"
14962 else
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ac_cv_c_gcc_fshort_wchar="no"
14969 rm -f core conftest.err conftest.$ac_objext \
14970 conftest$ac_exeext conftest.$ac_ext
14971 CFLAGS=$ac_wine_try_cflags_saved
14973 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
14974 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
14975 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
14976 then
14978 cat >>confdefs.h <<\_ACEOF
14979 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
14980 _ACEOF
14984 { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
14985 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
14986 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989 ac_wine_try_cflags_saved=$CFLAGS
14990 CFLAGS="$CFLAGS -fno-strict-aliasing"
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h. */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14999 main ()
15003 return 0;
15005 _ACEOF
15006 rm -f conftest.$ac_objext conftest$ac_exeext
15007 if { (ac_try="$ac_link"
15008 case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_link") 2>conftest.er1
15014 ac_status=$?
15015 grep -v '^ *+' conftest.er1 >conftest.err
15016 rm -f conftest.er1
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15021 { (case "(($ac_try" in
15022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023 *) ac_try_echo=$ac_try;;
15024 esac
15025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026 (eval "$ac_try") 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; } &&
15030 { ac_try='test -s conftest$ac_exeext'
15031 { (case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_try") 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 ac_cv_c_gcc_no_strict_aliasing="yes"
15041 else
15042 echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15045 ac_cv_c_gcc_no_strict_aliasing="no"
15048 rm -f core conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15050 CFLAGS=$ac_wine_try_cflags_saved
15052 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
15053 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
15054 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
15055 then
15056 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
15059 { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
15060 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
15061 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 else
15064 ac_wine_try_cflags_saved=$CFLAGS
15065 CFLAGS="$CFLAGS -gstabs+"
15066 cat >conftest.$ac_ext <<_ACEOF
15067 /* confdefs.h. */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15074 main ()
15078 return 0;
15080 _ACEOF
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15086 esac
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_link") 2>conftest.er1
15089 ac_status=$?
15090 grep -v '^ *+' conftest.er1 >conftest.err
15091 rm -f conftest.er1
15092 cat conftest.err >&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } &&
15095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15096 { (case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15099 esac
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_try") 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; } &&
15105 { ac_try='test -s conftest$ac_exeext'
15106 { (case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_try") 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; }; then
15115 ac_cv_c_gcc_gstabs="yes"
15116 else
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15120 ac_cv_c_gcc_gstabs="no"
15123 rm -f core conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
15125 CFLAGS=$ac_wine_try_cflags_saved
15127 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
15128 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
15129 if test "$ac_cv_c_gcc_gstabs" = "yes"
15130 then
15131 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
15134 { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
15135 echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15136 if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139 ac_wine_try_cflags_saved=$CFLAGS
15140 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h. */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15149 main ()
15153 return 0;
15155 _ACEOF
15156 rm -f conftest.$ac_objext conftest$ac_exeext
15157 if { (ac_try="$ac_link"
15158 case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_link") 2>conftest.er1
15164 ac_status=$?
15165 grep -v '^ *+' conftest.er1 >conftest.err
15166 rm -f conftest.er1
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
15170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15171 { (case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15174 esac
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176 (eval "$ac_try") 2>&5
15177 ac_status=$?
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; } &&
15180 { ac_try='test -s conftest$ac_exeext'
15181 { (case "(($ac_try" in
15182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183 *) ac_try_echo=$ac_try;;
15184 esac
15185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15186 (eval "$ac_try") 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_cv_c_gcc_decl_after_statement="yes"
15191 else
15192 echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15195 ac_cv_c_gcc_decl_after_statement="no"
15198 rm -f core conftest.err conftest.$ac_objext \
15199 conftest$ac_exeext conftest.$ac_ext
15200 CFLAGS=$ac_wine_try_cflags_saved
15202 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
15203 echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
15204 if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
15205 then
15206 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
15209 saved_CFLAGS="$CFLAGS"
15210 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
15211 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15212 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
15213 if test "${ac_cv_c_string_h_warnings+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216 cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h. */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 #include <string.h>
15224 main ()
15228 return 0;
15230 _ACEOF
15231 rm -f conftest.$ac_objext
15232 if { (ac_try="$ac_compile"
15233 case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15236 esac
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_compile") 2>conftest.er1
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
15245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15246 { (case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15249 esac
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_try") 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try='test -s conftest.$ac_objext'
15256 { (case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15259 esac
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_try") 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15265 ac_cv_c_string_h_warnings=no
15266 else
15267 echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15270 ac_cv_c_string_h_warnings=yes
15273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15275 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15276 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
15277 CFLAGS="$saved_CFLAGS"
15278 if test "$ac_cv_c_string_h_warnings" = "no"
15279 then
15280 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
15283 BUILTINFLAG=""
15285 saved_CFLAGS="$CFLAGS"
15286 CFLAGS="$CFLAGS -Werror"
15287 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15288 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
15289 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15290 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15300 main ()
15302 int iswlower(unsigned short);
15304 return 0;
15306 _ACEOF
15307 rm -f conftest.$ac_objext
15308 if { (ac_try="$ac_compile"
15309 case "(($ac_try" in
15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311 *) ac_try_echo=$ac_try;;
15312 esac
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314 (eval "$ac_compile") 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15322 { (case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325 esac
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_try") 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; } &&
15331 { ac_try='test -s conftest.$ac_objext'
15332 { (case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335 esac
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_try") 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 ac_cv_c_builtin_wchar_ctype=no
15342 else
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15346 ac_cv_c_builtin_wchar_ctype=yes
15349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15352 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
15353 CFLAGS="$saved_CFLAGS"
15354 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15355 then
15356 BUILTINFLAG=""
15357 for builtin in \
15358 iswalnum iswalpha iswcntrl iswdigit iswgraph iswlower \
15359 iswprint iswpunct iswspace iswupper iswxdigit towlower towupper
15361 BUILTINFLAG="$BUILTINFLAG -fno-builtin-$builtin"
15362 done
15367 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15368 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
15369 if test "${ac_cv_asm_func_def+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372 cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h. */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 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"); }
15381 main ()
15385 return 0;
15387 _ACEOF
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (ac_try="$ac_link"
15390 case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15393 esac
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_link") 2>conftest.er1
15396 ac_status=$?
15397 grep -v '^ *+' conftest.er1 >conftest.err
15398 rm -f conftest.er1
15399 cat conftest.err >&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
15402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15403 { (case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_try") 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; } &&
15412 { ac_try='test -s conftest$ac_exeext'
15413 { (case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_try") 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_cv_asm_func_def=".def"
15423 else
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15427 cat >conftest.$ac_ext <<_ACEOF
15428 /* confdefs.h. */
15429 _ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15433 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
15436 main ()
15440 return 0;
15442 _ACEOF
15443 rm -f conftest.$ac_objext conftest$ac_exeext
15444 if { (ac_try="$ac_link"
15445 case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15448 esac
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_link") 2>conftest.er1
15451 ac_status=$?
15452 grep -v '^ *+' conftest.er1 >conftest.err
15453 rm -f conftest.er1
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15458 { (case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15461 esac
15462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_try") 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest$ac_exeext'
15468 { (case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15471 esac
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_try") 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_cv_asm_func_def=".type @function"
15478 else
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h. */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
15491 main ()
15495 return 0;
15497 _ACEOF
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (ac_try="$ac_link"
15500 case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_link") 2>conftest.er1
15506 ac_status=$?
15507 grep -v '^ *+' conftest.er1 >conftest.err
15508 rm -f conftest.er1
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } &&
15512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15513 { (case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15516 esac
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_try") 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; } &&
15522 { ac_try='test -s conftest$ac_exeext'
15523 { (case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15526 esac
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_try") 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_cv_asm_func_def=".type 2"
15533 else
15534 echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 ac_cv_asm_func_def="unknown"
15540 rm -f core conftest.err conftest.$ac_objext \
15541 conftest$ac_exeext conftest.$ac_ext
15544 rm -f core conftest.err conftest.$ac_objext \
15545 conftest$ac_exeext conftest.$ac_ext
15548 rm -f core conftest.err conftest.$ac_objext \
15549 conftest$ac_exeext conftest.$ac_ext
15551 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15552 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
15556 case "$ac_cv_asm_func_def" in
15557 ".def")
15558 cat >>confdefs.h <<\_ACEOF
15559 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15560 _ACEOF
15562 ".type @function")
15563 cat >>confdefs.h <<\_ACEOF
15564 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15565 _ACEOF
15567 ".type 2")
15568 cat >>confdefs.h <<\_ACEOF
15569 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15570 _ACEOF
15573 cat >>confdefs.h <<\_ACEOF
15574 #define __ASM_FUNC(name) ""
15575 _ACEOF
15577 esac
15580 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15581 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15582 if test "${ac_cv_c_extern_prefix+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585 cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h. */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
15592 extern int ac_test;
15594 main ()
15596 if (ac_test) return 1
15598 return 0;
15600 _ACEOF
15601 rm -f conftest.$ac_objext conftest$ac_exeext
15602 if { (ac_try="$ac_link"
15603 case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606 esac
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_link") 2>conftest.er1
15609 ac_status=$?
15610 grep -v '^ *+' conftest.er1 >conftest.err
15611 rm -f conftest.er1
15612 cat conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } &&
15615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15616 { (case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15619 esac
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_try") 2>&5
15622 ac_status=$?
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; } &&
15625 { ac_try='test -s conftest$ac_exeext'
15626 { (case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629 esac
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_try") 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15635 ac_cv_c_extern_prefix="yes"
15636 else
15637 echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15640 ac_cv_c_extern_prefix="no"
15643 rm -f core conftest.err conftest.$ac_objext \
15644 conftest$ac_exeext conftest.$ac_ext
15646 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15647 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
15651 if test "$ac_cv_c_extern_prefix" = "yes"
15652 then
15653 cat >>confdefs.h <<\_ACEOF
15654 #define __ASM_NAME(name) "_" name
15655 _ACEOF
15657 else
15658 cat >>confdefs.h <<\_ACEOF
15659 #define __ASM_NAME(name) name
15660 _ACEOF
15665 DLLEXT=""
15667 DLLFLAGS="-D_REENTRANT"
15669 DLLIBS=""
15671 LDSHARED=""
15673 LDDLLFLAGS=""
15675 LIBEXT="so"
15677 IMPLIBEXT="def"
15680 case $host_os in
15681 cygwin*|mingw32*)
15682 if test -n "$ac_tool_prefix"; then
15683 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15684 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15687 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15688 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 else
15690 if test -n "$DLLTOOL"; then
15691 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15692 else
15693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694 for as_dir in $PATH
15696 IFS=$as_save_IFS
15697 test -z "$as_dir" && as_dir=.
15698 for ac_exec_ext in '' $ac_executable_extensions; do
15699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15700 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15702 break 2
15704 done
15705 done
15706 IFS=$as_save_IFS
15710 DLLTOOL=$ac_cv_prog_DLLTOOL
15711 if test -n "$DLLTOOL"; then
15712 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15713 echo "${ECHO_T}$DLLTOOL" >&6; }
15714 else
15715 { echo "$as_me:$LINENO: result: no" >&5
15716 echo "${ECHO_T}no" >&6; }
15721 if test -z "$ac_cv_prog_DLLTOOL"; then
15722 ac_ct_DLLTOOL=$DLLTOOL
15723 # Extract the first word of "dlltool", so it can be a program name with args.
15724 set dummy dlltool; ac_word=$2
15725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15727 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15728 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 else
15730 if test -n "$ac_ct_DLLTOOL"; then
15731 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15732 else
15733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15734 for as_dir in $PATH
15736 IFS=$as_save_IFS
15737 test -z "$as_dir" && as_dir=.
15738 for ac_exec_ext in '' $ac_executable_extensions; do
15739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15740 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15742 break 2
15744 done
15745 done
15746 IFS=$as_save_IFS
15750 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15751 if test -n "$ac_ct_DLLTOOL"; then
15752 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15753 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
15754 else
15755 { echo "$as_me:$LINENO: result: no" >&5
15756 echo "${ECHO_T}no" >&6; }
15759 if test "x$ac_ct_DLLTOOL" = x; then
15760 DLLTOOL="false"
15761 else
15762 case $cross_compiling:$ac_tool_warned in
15763 yes:)
15764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15765 whose name does not start with the host triplet. If you think this
15766 configuration is useful to you, please write to autoconf@gnu.org." >&5
15767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15768 whose name does not start with the host triplet. If you think this
15769 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15770 ac_tool_warned=yes ;;
15771 esac
15772 DLLTOOL=$ac_ct_DLLTOOL
15774 else
15775 DLLTOOL="$ac_cv_prog_DLLTOOL"
15778 if test -n "$ac_tool_prefix"; then
15779 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15780 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
15781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15783 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786 if test -n "$DLLWRAP"; then
15787 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15788 else
15789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15790 for as_dir in $PATH
15792 IFS=$as_save_IFS
15793 test -z "$as_dir" && as_dir=.
15794 for ac_exec_ext in '' $ac_executable_extensions; do
15795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15796 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
15797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15798 break 2
15800 done
15801 done
15802 IFS=$as_save_IFS
15806 DLLWRAP=$ac_cv_prog_DLLWRAP
15807 if test -n "$DLLWRAP"; then
15808 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15809 echo "${ECHO_T}$DLLWRAP" >&6; }
15810 else
15811 { echo "$as_me:$LINENO: result: no" >&5
15812 echo "${ECHO_T}no" >&6; }
15817 if test -z "$ac_cv_prog_DLLWRAP"; then
15818 ac_ct_DLLWRAP=$DLLWRAP
15819 # Extract the first word of "dllwrap", so it can be a program name with args.
15820 set dummy dllwrap; ac_word=$2
15821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15823 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 else
15826 if test -n "$ac_ct_DLLWRAP"; then
15827 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15828 else
15829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15830 for as_dir in $PATH
15832 IFS=$as_save_IFS
15833 test -z "$as_dir" && as_dir=.
15834 for ac_exec_ext in '' $ac_executable_extensions; do
15835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15836 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15838 break 2
15840 done
15841 done
15842 IFS=$as_save_IFS
15846 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15847 if test -n "$ac_ct_DLLWRAP"; then
15848 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15849 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
15850 else
15851 { echo "$as_me:$LINENO: result: no" >&5
15852 echo "${ECHO_T}no" >&6; }
15855 if test "x$ac_ct_DLLWRAP" = x; then
15856 DLLWRAP="false"
15857 else
15858 case $cross_compiling:$ac_tool_warned in
15859 yes:)
15860 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15861 whose name does not start with the host triplet. If you think this
15862 configuration is useful to you, please write to autoconf@gnu.org." >&5
15863 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15864 whose name does not start with the host triplet. If you think this
15865 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15866 ac_tool_warned=yes ;;
15867 esac
15868 DLLWRAP=$ac_ct_DLLWRAP
15870 else
15871 DLLWRAP="$ac_cv_prog_DLLWRAP"
15874 if test "$DLLWRAP" = "false"; then
15875 LIBEXT="a"
15876 else
15877 LIBEXT="dll"
15879 IMPLIBEXT="a"
15880 WIN16_FILES=""
15881 WIN16_INSTALL=""
15884 if test "$ac_cv_header_dlfcn_h" = "yes"
15885 then
15887 for ac_func in dlopen
15889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15890 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15892 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15895 cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h. */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15903 #define $ac_func innocuous_$ac_func
15905 /* System header to define __stub macros and hopefully few prototypes,
15906 which can conflict with char $ac_func (); below.
15907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15908 <limits.h> exists even on freestanding compilers. */
15910 #ifdef __STDC__
15911 # include <limits.h>
15912 #else
15913 # include <assert.h>
15914 #endif
15916 #undef $ac_func
15918 /* Override any GCC internal prototype to avoid an error.
15919 Use char because int might match the return type of a GCC
15920 builtin and then its argument prototype would still apply. */
15921 #ifdef __cplusplus
15922 extern "C"
15923 #endif
15924 char $ac_func ();
15925 /* The GNU C library defines this for functions which it implements
15926 to always fail with ENOSYS. Some functions are actually named
15927 something starting with __ and the normal name is an alias. */
15928 #if defined __stub_$ac_func || defined __stub___$ac_func
15929 choke me
15930 #endif
15933 main ()
15935 return $ac_func ();
15937 return 0;
15939 _ACEOF
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (ac_try="$ac_link"
15942 case "(($ac_try" in
15943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944 *) ac_try_echo=$ac_try;;
15945 esac
15946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15947 (eval "$ac_link") 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15955 { (case "(($ac_try" in
15956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957 *) ac_try_echo=$ac_try;;
15958 esac
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960 (eval "$ac_try") 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; } &&
15964 { ac_try='test -s conftest$ac_exeext'
15965 { (case "(($ac_try" in
15966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15968 esac
15969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970 (eval "$ac_try") 2>&5
15971 ac_status=$?
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); }; }; then
15974 eval "$as_ac_var=yes"
15975 else
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 eval "$as_ac_var=no"
15982 rm -f core conftest.err conftest.$ac_objext \
15983 conftest$ac_exeext conftest.$ac_ext
15985 ac_res=`eval echo '${'$as_ac_var'}'`
15986 { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15988 if test `eval echo '${'$as_ac_var'}'` = yes; then
15989 cat >>confdefs.h <<_ACEOF
15990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15991 _ACEOF
15993 else
15994 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15995 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15996 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15997 echo $ECHO_N "(cached) $ECHO_C" >&6
15998 else
15999 ac_check_lib_save_LIBS=$LIBS
16000 LIBS="-ldl $LIBS"
16001 cat >conftest.$ac_ext <<_ACEOF
16002 /* confdefs.h. */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16008 /* Override any GCC internal prototype to avoid an error.
16009 Use char because int might match the return type of a GCC
16010 builtin and then its argument prototype would still apply. */
16011 #ifdef __cplusplus
16012 extern "C"
16013 #endif
16014 char dlopen ();
16016 main ()
16018 return dlopen ();
16020 return 0;
16022 _ACEOF
16023 rm -f conftest.$ac_objext conftest$ac_exeext
16024 if { (ac_try="$ac_link"
16025 case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16028 esac
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_link") 2>conftest.er1
16031 ac_status=$?
16032 grep -v '^ *+' conftest.er1 >conftest.err
16033 rm -f conftest.er1
16034 cat conftest.err >&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } &&
16037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16038 { (case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16041 esac
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_try") 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; } &&
16047 { ac_try='test -s conftest$ac_exeext'
16048 { (case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_try") 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 ac_cv_lib_dl_dlopen=yes
16058 else
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 ac_cv_lib_dl_dlopen=no
16065 rm -f core conftest.err conftest.$ac_objext \
16066 conftest$ac_exeext conftest.$ac_ext
16067 LIBS=$ac_check_lib_save_LIBS
16069 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16070 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16071 if test $ac_cv_lib_dl_dlopen = yes; then
16073 cat >>confdefs.h <<\_ACEOF
16074 #define HAVE_DLOPEN 1
16075 _ACEOF
16077 DLLIBS="-ldl"
16078 else
16079 LIBEXT="a"
16083 done
16085 ac_wine_check_funcs_save_LIBS="$LIBS"
16086 LIBS="$LIBS $DLLIBS"
16088 for ac_func in dladdr
16090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16094 echo $ECHO_N "(cached) $ECHO_C" >&6
16095 else
16096 cat >conftest.$ac_ext <<_ACEOF
16097 /* confdefs.h. */
16098 _ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16104 #define $ac_func innocuous_$ac_func
16106 /* System header to define __stub macros and hopefully few prototypes,
16107 which can conflict with char $ac_func (); below.
16108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16109 <limits.h> exists even on freestanding compilers. */
16111 #ifdef __STDC__
16112 # include <limits.h>
16113 #else
16114 # include <assert.h>
16115 #endif
16117 #undef $ac_func
16119 /* Override any GCC internal prototype to avoid an error.
16120 Use char because int might match the return type of a GCC
16121 builtin and then its argument prototype would still apply. */
16122 #ifdef __cplusplus
16123 extern "C"
16124 #endif
16125 char $ac_func ();
16126 /* The GNU C library defines this for functions which it implements
16127 to always fail with ENOSYS. Some functions are actually named
16128 something starting with __ and the normal name is an alias. */
16129 #if defined __stub_$ac_func || defined __stub___$ac_func
16130 choke me
16131 #endif
16134 main ()
16136 return $ac_func ();
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 eval "$as_ac_var=yes"
16176 else
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16180 eval "$as_ac_var=no"
16183 rm -f core conftest.err conftest.$ac_objext \
16184 conftest$ac_exeext conftest.$ac_ext
16186 ac_res=`eval echo '${'$as_ac_var'}'`
16187 { echo "$as_me:$LINENO: result: $ac_res" >&5
16188 echo "${ECHO_T}$ac_res" >&6; }
16189 if test `eval echo '${'$as_ac_var'}'` = yes; then
16190 cat >>confdefs.h <<_ACEOF
16191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16192 _ACEOF
16195 done
16197 LIBS="$ac_wine_check_funcs_save_LIBS"
16198 else
16199 LIBEXT="a"
16202 if test "$LIBEXT" = "so"
16203 then
16204 DLLFLAGS="$DLLFLAGS -fPIC"
16205 DLLEXT=".so"
16206 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
16207 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
16208 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 else
16211 ac_wine_try_cflags_saved=$CFLAGS
16212 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
16213 cat >conftest.$ac_ext <<_ACEOF
16214 void myfunc() {}
16215 _ACEOF
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (ac_try="$ac_link"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_link") 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16231 { (case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_try") 2>&5
16237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; } &&
16240 { ac_try='test -s conftest$ac_exeext'
16241 { (case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16244 esac
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_try") 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 ac_cv_c_dll_gnuelf="yes"
16251 else
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 ac_cv_c_dll_gnuelf="no"
16258 rm -f core conftest.err conftest.$ac_objext \
16259 conftest$ac_exeext conftest.$ac_ext
16260 CFLAGS=$ac_wine_try_cflags_saved
16262 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
16263 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
16264 if test "$ac_cv_c_dll_gnuelf" = "yes"
16265 then
16266 LDSHARED="\$(CC) -shared"
16267 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
16268 { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5
16269 echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; }
16270 if test "${ac_cv_c_sonames+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 else
16273 ac_wine_try_cflags_saved=$CFLAGS
16274 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
16275 cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h. */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16283 main ()
16287 return 0;
16289 _ACEOF
16290 rm -f conftest.$ac_objext conftest$ac_exeext
16291 if { (ac_try="$ac_link"
16292 case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16295 esac
16296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_link") 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16305 { (case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_try") 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest$ac_exeext'
16315 { (case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318 esac
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_try") 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_cv_c_sonames="yes"
16325 else
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 ac_cv_c_sonames="no"
16332 rm -f core conftest.err conftest.$ac_objext \
16333 conftest$ac_exeext conftest.$ac_ext
16334 CFLAGS=$ac_wine_try_cflags_saved
16336 { echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5
16337 echo "${ECHO_T}$ac_cv_c_sonames" >&6; }
16338 if test "$ac_cv_c_sonames" = "yes"
16339 then
16340 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
16341 else
16342 { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5
16343 echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; }
16344 if test "${ac_cv_c_h_sonames+set}" = set; then
16345 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 else
16347 ac_wine_try_cflags_saved=$CFLAGS
16348 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h. */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16357 main ()
16361 return 0;
16363 _ACEOF
16364 rm -f conftest.$ac_objext conftest$ac_exeext
16365 if { (ac_try="$ac_link"
16366 case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_link") 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
16378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16379 { (case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16382 esac
16383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_try") 2>&5
16385 ac_status=$?
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; } &&
16388 { ac_try='test -s conftest$ac_exeext'
16389 { (case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16392 esac
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_try") 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 ac_cv_c_h_sonames="yes"
16399 else
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 ac_cv_c_h_sonames="no"
16406 rm -f core conftest.err conftest.$ac_objext \
16407 conftest$ac_exeext conftest.$ac_ext
16408 CFLAGS=$ac_wine_try_cflags_saved
16410 { echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5
16411 echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; }
16412 if test "$ac_cv_c_h_sonames" = "yes"
16413 then
16414 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
16418 { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
16419 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
16420 if test "${ac_cv_c_dll_zdefs+set}" = set; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 else
16423 ac_wine_try_cflags_saved=$CFLAGS
16424 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
16425 cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h. */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16433 main ()
16437 return 0;
16439 _ACEOF
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (ac_try="$ac_link"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_link") 2>conftest.er1
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
16454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455 { (case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_try") 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest$ac_exeext'
16465 { (case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468 esac
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_try") 2>&5
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_cv_c_dll_zdefs="yes"
16475 else
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_cv_c_dll_zdefs="no"
16482 rm -f core conftest.err conftest.$ac_objext \
16483 conftest$ac_exeext conftest.$ac_ext
16484 CFLAGS=$ac_wine_try_cflags_saved
16486 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
16487 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
16488 if test "$ac_cv_c_dll_zdefs" = "yes"
16489 then
16490 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
16493 { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
16494 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
16495 if test "${ac_cv_c_dll_init_fini+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498 ac_wine_try_cflags_saved=$CFLAGS
16499 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
16500 cat >conftest.$ac_ext <<_ACEOF
16501 /* confdefs.h. */
16502 _ACEOF
16503 cat confdefs.h >>conftest.$ac_ext
16504 cat >>conftest.$ac_ext <<_ACEOF
16505 /* end confdefs.h. */
16508 main ()
16512 return 0;
16514 _ACEOF
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (ac_try="$ac_link"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_link") 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530 { (case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16533 esac
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_try") 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; } &&
16539 { ac_try='test -s conftest$ac_exeext'
16540 { (case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16543 esac
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_try") 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ac_cv_c_dll_init_fini="yes"
16550 else
16551 echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.$ac_ext >&5
16554 ac_cv_c_dll_init_fini="no"
16557 rm -f core conftest.err conftest.$ac_objext \
16558 conftest$ac_exeext conftest.$ac_ext
16559 CFLAGS=$ac_wine_try_cflags_saved
16561 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
16562 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
16563 if test "$ac_cv_c_dll_init_fini" = "yes"
16564 then
16565 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
16568 { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
16569 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
16570 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
16571 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 else
16573 echo '{ global: *; };' >conftest.map
16574 ac_wine_try_cflags_saved=$CFLAGS
16575 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
16576 cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h. */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h. */
16584 main ()
16588 return 0;
16590 _ACEOF
16591 rm -f conftest.$ac_objext conftest$ac_exeext
16592 if { (ac_try="$ac_link"
16593 case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_link") 2>conftest.er1
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609 esac
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest$ac_exeext'
16616 { (case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_try") 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_c_ld_version_scripts="yes"
16626 else
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16630 ac_cv_c_ld_version_scripts="no"
16633 rm -f core conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16635 CFLAGS=$ac_wine_try_cflags_saved
16636 rm -f conftest.map
16638 { echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
16639 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
16640 if test "$ac_cv_c_ld_version_scripts" = "yes"
16641 then
16642 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
16645 { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
16646 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
16647 if test "${ac_cv_c_export_dynamic+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650 ac_wine_try_cflags_saved=$CFLAGS
16651 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
16652 cat >conftest.$ac_ext <<_ACEOF
16653 /* confdefs.h. */
16654 _ACEOF
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16660 main ()
16664 return 0;
16666 _ACEOF
16667 rm -f conftest.$ac_objext conftest$ac_exeext
16668 if { (ac_try="$ac_link"
16669 case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16672 esac
16673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_link") 2>conftest.er1
16675 ac_status=$?
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
16681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16682 { (case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16685 esac
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_try") 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest$ac_exeext'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_try") 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_cv_c_export_dynamic="yes"
16702 else
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16706 ac_cv_c_export_dynamic="no"
16709 rm -f core conftest.err conftest.$ac_objext \
16710 conftest$ac_exeext conftest.$ac_ext
16711 CFLAGS=$ac_wine_try_cflags_saved
16713 { echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
16714 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
16715 if test "$ac_cv_c_export_dynamic" = "yes"
16716 then
16717 LDEXECFLAGS="-Wl,--export-dynamic"
16721 { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
16722 echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
16723 if test "${ac_cv_ld_rpath+set}" = set; then
16724 echo $ECHO_N "(cached) $ECHO_C" >&6
16725 else
16726 ac_wine_try_cflags_saved=$CFLAGS
16727 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16736 main ()
16740 return 0;
16742 _ACEOF
16743 rm -f conftest.$ac_objext conftest$ac_exeext
16744 if { (ac_try="$ac_link"
16745 case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16748 esac
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_link") 2>conftest.er1
16751 ac_status=$?
16752 grep -v '^ *+' conftest.er1 >conftest.err
16753 rm -f conftest.er1
16754 cat conftest.err >&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
16757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758 { (case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16761 esac
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_try") 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest$ac_exeext'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 ac_cv_ld_rpath="yes"
16778 else
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_cv_ld_rpath="no"
16785 rm -f core conftest.err conftest.$ac_objext \
16786 conftest$ac_exeext conftest.$ac_ext
16787 CFLAGS=$ac_wine_try_cflags_saved
16789 { echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
16790 echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
16791 if test "$ac_cv_ld_rpath" = "yes"
16792 then
16793 LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
16795 LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
16799 case $host_cpu in
16800 *i[3456789]86*)
16801 { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
16802 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
16803 if test "${ac_cv_ld_reloc_exec+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806 ac_wine_try_cflags_saved=$CFLAGS
16807 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
16808 cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h. */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16816 main ()
16820 return 0;
16822 _ACEOF
16823 rm -f conftest.$ac_objext conftest$ac_exeext
16824 if { (ac_try="$ac_link"
16825 case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_link") 2>conftest.er1
16831 ac_status=$?
16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16838 { (case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16841 esac
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_try") 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest$ac_exeext'
16848 { (case "(($ac_try" in
16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850 *) ac_try_echo=$ac_try;;
16851 esac
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853 (eval "$ac_try") 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_cv_ld_reloc_exec="yes"
16858 else
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16862 ac_cv_ld_reloc_exec="no"
16865 rm -f core conftest.err conftest.$ac_objext \
16866 conftest$ac_exeext conftest.$ac_ext
16867 CFLAGS=$ac_wine_try_cflags_saved
16869 { echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
16870 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
16871 if test "$ac_cv_ld_reloc_exec" = "yes"
16872 then
16873 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
16876 esac
16878 else
16879 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16880 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
16881 if test "${ac_cv_c_dll_unixware+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884 ac_wine_try_cflags_saved=$CFLAGS
16885 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
16886 cat >conftest.$ac_ext <<_ACEOF
16887 void myfunc() {}
16888 _ACEOF
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (ac_try="$ac_link"
16891 case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_link") 2>conftest.er1
16897 ac_status=$?
16898 grep -v '^ *+' conftest.er1 >conftest.err
16899 rm -f conftest.er1
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } &&
16903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest$ac_exeext'
16914 { (case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16917 esac
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_try") 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_c_dll_unixware="yes"
16924 else
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 ac_cv_c_dll_unixware="no"
16931 rm -f core conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16933 CFLAGS=$ac_wine_try_cflags_saved
16935 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
16936 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
16937 if test "$ac_cv_c_dll_unixware" = "yes"
16938 then
16939 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
16940 LDDLLFLAGS="-Wl,-G,-B,symbolic"
16942 else
16943 { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
16944 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; }
16945 if test "${ac_cv_c_dll_macho+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948 ac_wine_try_cflags_saved=$CFLAGS
16949 CFLAGS="$CFLAGS -bundle"
16950 cat >conftest.$ac_ext <<_ACEOF
16951 void myfunc() {}
16952 _ACEOF
16953 rm -f conftest.$ac_objext conftest$ac_exeext
16954 if { (ac_try="$ac_link"
16955 case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958 esac
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_link") 2>conftest.er1
16961 ac_status=$?
16962 grep -v '^ *+' conftest.er1 >conftest.err
16963 rm -f conftest.er1
16964 cat conftest.err >&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } &&
16967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16968 { (case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971 esac
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_try") 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; } &&
16977 { ac_try='test -s conftest$ac_exeext'
16978 { (case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981 esac
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_try") 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_c_dll_macho="yes"
16988 else
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16992 ac_cv_c_dll_macho="no"
16995 rm -f core conftest.err conftest.$ac_objext \
16996 conftest$ac_exeext conftest.$ac_ext
16997 CFLAGS=$ac_wine_try_cflags_saved
16999 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
17000 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
17001 if test "$ac_cv_c_dll_macho" = "yes"
17002 then
17003 LIBEXT="dylib"
17004 LDDLLFLAGS="-bundle"
17005 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)"
17006 STRIP="$STRIP -u -r"
17007 COREFOUNDATIONLIB="-framework CoreFoundation"
17009 IOKITLIB="-framework IOKit -framework CoreFoundation"
17011 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7ffe0000"
17013 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
17014 then
17015 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
17018 case $host_cpu in
17019 *powerpc*)
17020 CFLAGS="$CFLAGS -ffixed-r13"
17021 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
17023 esac
17025 else
17026 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
17027 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
17028 if test "${ac_cv_c_dll_hpux+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030 else
17031 ac_wine_try_cflags_saved=$CFLAGS
17032 CFLAGS="$CFLAGS -shared"
17033 cat >conftest.$ac_ext <<_ACEOF
17034 void myfunc() {}
17035 _ACEOF
17036 rm -f conftest.$ac_objext conftest$ac_exeext
17037 if { (ac_try="$ac_link"
17038 case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_link") 2>conftest.er1
17044 ac_status=$?
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17051 { (case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17054 esac
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_try") 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest$ac_exeext'
17061 { (case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17064 esac
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_try") 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_cv_c_dll_hpux="yes"
17071 else
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 ac_cv_c_dll_hpux="no"
17078 rm -f core conftest.err conftest.$ac_objext \
17079 conftest$ac_exeext conftest.$ac_ext
17080 CFLAGS=$ac_wine_try_cflags_saved
17082 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
17083 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
17084 if test "$ac_cv_c_dll_hpux" = "yes"
17085 then
17086 LIBEXT="sl"
17087 DLLEXT=".sl"
17088 LDDLLFLAGS="-shared -fPIC"
17089 LDSHARED="\$(CC) -shared"
17096 CROSSTEST=""
17098 if test "$cross_compiling" = "no"
17099 then
17100 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
17102 # Extract the first word of "$ac_prog", so it can be a program name with args.
17103 set dummy $ac_prog; ac_word=$2
17104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17106 if test "${ac_cv_prog_CROSSCC+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109 if test -n "$CROSSCC"; then
17110 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
17111 else
17112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17113 for as_dir in $PATH
17115 IFS=$as_save_IFS
17116 test -z "$as_dir" && as_dir=.
17117 for ac_exec_ext in '' $ac_executable_extensions; do
17118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17119 ac_cv_prog_CROSSCC="$ac_prog"
17120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17121 break 2
17123 done
17124 done
17125 IFS=$as_save_IFS
17129 CROSSCC=$ac_cv_prog_CROSSCC
17130 if test -n "$CROSSCC"; then
17131 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
17132 echo "${ECHO_T}$CROSSCC" >&6; }
17133 else
17134 { echo "$as_me:$LINENO: result: no" >&5
17135 echo "${ECHO_T}no" >&6; }
17139 test -n "$CROSSCC" && break
17140 done
17141 test -n "$CROSSCC" || CROSSCC="false"
17143 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
17145 # Extract the first word of "$ac_prog", so it can be a program name with args.
17146 set dummy $ac_prog; ac_word=$2
17147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17149 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 else
17152 if test -n "$DLLTOOL"; then
17153 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17154 else
17155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17156 for as_dir in $PATH
17158 IFS=$as_save_IFS
17159 test -z "$as_dir" && as_dir=.
17160 for ac_exec_ext in '' $ac_executable_extensions; do
17161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17162 ac_cv_prog_DLLTOOL="$ac_prog"
17163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17164 break 2
17166 done
17167 done
17168 IFS=$as_save_IFS
17172 DLLTOOL=$ac_cv_prog_DLLTOOL
17173 if test -n "$DLLTOOL"; then
17174 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17175 echo "${ECHO_T}$DLLTOOL" >&6; }
17176 else
17177 { echo "$as_me:$LINENO: result: no" >&5
17178 echo "${ECHO_T}no" >&6; }
17182 test -n "$DLLTOOL" && break
17183 done
17184 test -n "$DLLTOOL" || DLLTOOL="false"
17186 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
17188 # Extract the first word of "$ac_prog", so it can be a program name with args.
17189 set dummy $ac_prog; ac_word=$2
17190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17192 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17194 else
17195 if test -n "$CROSSWINDRES"; then
17196 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
17197 else
17198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17199 for as_dir in $PATH
17201 IFS=$as_save_IFS
17202 test -z "$as_dir" && as_dir=.
17203 for ac_exec_ext in '' $ac_executable_extensions; do
17204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17205 ac_cv_prog_CROSSWINDRES="$ac_prog"
17206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17207 break 2
17209 done
17210 done
17211 IFS=$as_save_IFS
17215 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
17216 if test -n "$CROSSWINDRES"; then
17217 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
17218 echo "${ECHO_T}$CROSSWINDRES" >&6; }
17219 else
17220 { echo "$as_me:$LINENO: result: no" >&5
17221 echo "${ECHO_T}no" >&6; }
17225 test -n "$CROSSWINDRES" && break
17226 done
17227 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
17229 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
17232 esac
17234 if test "$LIBEXT" = "a"; then
17235 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
17236 It is currently not possible to build Wine without shared library
17237 (.so) support to allow transparent switch between .so and .dll files.
17238 If you are using Linux, you will need a newer binutils.
17239 " >&5
17240 echo "$as_me: error: could not find a way to build shared libraries.
17241 It is currently not possible to build Wine without shared library
17242 (.so) support to allow transparent switch between .so and .dll files.
17243 If you are using Linux, you will need a newer binutils.
17244 " >&2;}
17245 { (exit 1); exit 1; }; }
17248 case $build_os in
17249 cygwin*|mingw32*)
17250 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
17252 darwin*|macosx*)
17253 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
17256 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
17258 esac
17260 case $host_os in
17261 mingw32*)
17262 CRTLIBS="-lmsvcrt"
17264 SOCKETLIBS="-lws2_32"
17267 esac
17269 MAIN_BINARY="wine-pthread"
17270 case $host_cpu in
17271 *i[3456789]86*)
17272 case $host_os in
17273 linux* | k*bsd*-gnu)
17274 MAIN_BINARY="wine-glibc"
17276 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
17278 esac
17280 esac
17283 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
17284 then
17285 # Extract the first word of "ldd", so it can be a program name with args.
17286 set dummy ldd; ac_word=$2
17287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17289 if test "${ac_cv_path_LDD+set}" = set; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 else
17292 case $LDD in
17293 [\\/]* | ?:[\\/]*)
17294 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17298 as_dummy="/sbin:/usr/sbin:$PATH"
17299 for as_dir in $as_dummy
17301 IFS=$as_save_IFS
17302 test -z "$as_dir" && as_dir=.
17303 for ac_exec_ext in '' $ac_executable_extensions; do
17304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17305 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17307 break 2
17309 done
17310 done
17311 IFS=$as_save_IFS
17313 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
17315 esac
17317 LDD=$ac_cv_path_LDD
17318 if test -n "$LDD"; then
17319 { echo "$as_me:$LINENO: result: $LDD" >&5
17320 echo "${ECHO_T}$LDD" >&6; }
17321 else
17322 { echo "$as_me:$LINENO: result: no" >&5
17323 echo "${ECHO_T}no" >&6; }
17327 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
17328 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
17329 if test "${ac_cv_lib_soname_X11+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332 ac_get_soname_save_LIBS=$LIBS
17333 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h. */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17341 /* Override any GCC internal prototype to avoid an error.
17342 Use char because int might match the return type of a GCC
17343 builtin and then its argument prototype would still apply. */
17344 #ifdef __cplusplus
17345 extern "C"
17346 #endif
17347 char XCreateWindow ();
17349 main ()
17351 return XCreateWindow ();
17353 return 0;
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (ac_try="$ac_link"
17358 case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_link") 2>conftest.er1
17364 ac_status=$?
17365 grep -v '^ *+' conftest.er1 >conftest.err
17366 rm -f conftest.er1
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } &&
17370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17371 { (case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17374 esac
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_try") 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; } &&
17380 { ac_try='test -s conftest$ac_exeext'
17381 { (case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_try") 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17390 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17391 if test "x$ac_cv_lib_soname_X11" = "x"
17392 then
17393 ac_cv_lib_soname_X11="libX11.$LIBEXT"
17395 else
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 ac_cv_lib_soname_X11="libX11.$LIBEXT"
17402 rm -f core conftest.err conftest.$ac_objext \
17403 conftest$ac_exeext conftest.$ac_ext
17404 LIBS=$ac_get_soname_save_LIBS
17406 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
17407 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
17408 if test "${ac_cv_lib_soname_X11+set}" = set; then
17410 cat >>confdefs.h <<_ACEOF
17411 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
17412 _ACEOF
17416 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
17417 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
17418 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421 ac_get_soname_save_LIBS=$LIBS
17422 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
17423 cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h. */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17430 /* Override any GCC internal prototype to avoid an error.
17431 Use char because int might match the return type of a GCC
17432 builtin and then its argument prototype would still apply. */
17433 #ifdef __cplusplus
17434 extern "C"
17435 #endif
17436 char XextCreateExtension ();
17438 main ()
17440 return XextCreateExtension ();
17442 return 0;
17444 _ACEOF
17445 rm -f conftest.$ac_objext conftest$ac_exeext
17446 if { (ac_try="$ac_link"
17447 case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450 esac
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_link") 2>conftest.er1
17453 ac_status=$?
17454 grep -v '^ *+' conftest.er1 >conftest.err
17455 rm -f conftest.er1
17456 cat conftest.err >&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } &&
17459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17460 { (case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17463 esac
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_try") 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try='test -s conftest$ac_exeext'
17470 { (case "(($ac_try" in
17471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472 *) ac_try_echo=$ac_try;;
17473 esac
17474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475 (eval "$ac_try") 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17480 if test "x$ac_cv_lib_soname_Xext" = "x"
17481 then
17482 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17484 else
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17491 rm -f core conftest.err conftest.$ac_objext \
17492 conftest$ac_exeext conftest.$ac_ext
17493 LIBS=$ac_get_soname_save_LIBS
17495 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
17496 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
17497 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17499 cat >>confdefs.h <<_ACEOF
17500 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
17501 _ACEOF
17505 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
17506 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
17507 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510 ac_get_soname_save_LIBS=$LIBS
17511 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17512 cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h. */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h. */
17519 /* Override any GCC internal prototype to avoid an error.
17520 Use char because int might match the return type of a GCC
17521 builtin and then its argument prototype would still apply. */
17522 #ifdef __cplusplus
17523 extern "C"
17524 #endif
17525 char XOpenDevice ();
17527 main ()
17529 return XOpenDevice ();
17531 return 0;
17533 _ACEOF
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_link") 2>conftest.er1
17542 ac_status=$?
17543 grep -v '^ *+' conftest.er1 >conftest.err
17544 rm -f conftest.er1
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
17548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549 { (case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17552 esac
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_try") 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest$ac_exeext'
17559 { (case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_try") 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17569 if test "x$ac_cv_lib_soname_Xi" = "x"
17570 then
17571 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17573 else
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17580 rm -f core conftest.err conftest.$ac_objext \
17581 conftest$ac_exeext conftest.$ac_ext
17582 LIBS=$ac_get_soname_save_LIBS
17584 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
17585 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
17586 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17588 cat >>confdefs.h <<_ACEOF
17589 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
17590 _ACEOF
17594 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
17595 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
17596 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17597 echo $ECHO_N "(cached) $ECHO_C" >&6
17598 else
17599 ac_get_soname_save_LIBS=$LIBS
17600 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17601 cat >conftest.$ac_ext <<_ACEOF
17602 /* confdefs.h. */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17608 /* Override any GCC internal prototype to avoid an error.
17609 Use char because int might match the return type of a GCC
17610 builtin and then its argument prototype would still apply. */
17611 #ifdef __cplusplus
17612 extern "C"
17613 #endif
17614 char XRenderQueryExtension ();
17616 main ()
17618 return XRenderQueryExtension ();
17620 return 0;
17622 _ACEOF
17623 rm -f conftest.$ac_objext conftest$ac_exeext
17624 if { (ac_try="$ac_link"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_link") 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } &&
17637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17638 { (case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17641 esac
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_try") 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try='test -s conftest$ac_exeext'
17648 { (case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17651 esac
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_try") 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17658 if test "x$ac_cv_lib_soname_Xrender" = "x"
17659 then
17660 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17662 else
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17669 rm -f core conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17671 LIBS=$ac_get_soname_save_LIBS
17673 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
17674 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
17675 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17677 cat >>confdefs.h <<_ACEOF
17678 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
17679 _ACEOF
17683 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
17684 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
17685 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688 ac_get_soname_save_LIBS=$LIBS
17689 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17690 cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h. */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17697 /* Override any GCC internal prototype to avoid an error.
17698 Use char because int might match the return type of a GCC
17699 builtin and then its argument prototype would still apply. */
17700 #ifdef __cplusplus
17701 extern "C"
17702 #endif
17703 char XRRQueryExtension ();
17705 main ()
17707 return XRRQueryExtension ();
17709 return 0;
17711 _ACEOF
17712 rm -f conftest.$ac_objext conftest$ac_exeext
17713 if { (ac_try="$ac_link"
17714 case "(($ac_try" in
17715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716 *) ac_try_echo=$ac_try;;
17717 esac
17718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17719 (eval "$ac_link") 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17727 { (case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_try") 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; } &&
17736 { ac_try='test -s conftest$ac_exeext'
17737 { (case "(($ac_try" in
17738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739 *) ac_try_echo=$ac_try;;
17740 esac
17741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742 (eval "$ac_try") 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; }; then
17746 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17747 if test "x$ac_cv_lib_soname_Xrandr" = "x"
17748 then
17749 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17751 else
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17758 rm -f core conftest.err conftest.$ac_objext \
17759 conftest$ac_exeext conftest.$ac_ext
17760 LIBS=$ac_get_soname_save_LIBS
17762 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
17763 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
17764 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17766 cat >>confdefs.h <<_ACEOF
17767 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
17768 _ACEOF
17772 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
17773 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
17774 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 else
17777 ac_get_soname_save_LIBS=$LIBS
17778 LIBS="-lfreetype $X_LIBS $LIBS"
17779 cat >conftest.$ac_ext <<_ACEOF
17780 /* confdefs.h. */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17786 /* Override any GCC internal prototype to avoid an error.
17787 Use char because int might match the return type of a GCC
17788 builtin and then its argument prototype would still apply. */
17789 #ifdef __cplusplus
17790 extern "C"
17791 #endif
17792 char FT_Init_FreeType ();
17794 main ()
17796 return FT_Init_FreeType ();
17798 return 0;
17800 _ACEOF
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (ac_try="$ac_link"
17803 case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17806 esac
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808 (eval "$ac_link") 2>conftest.er1
17809 ac_status=$?
17810 grep -v '^ *+' conftest.er1 >conftest.err
17811 rm -f conftest.er1
17812 cat conftest.err >&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17816 { (case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_try") 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest$ac_exeext'
17826 { (case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_try") 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17836 if test "x$ac_cv_lib_soname_freetype" = "x"
17837 then
17838 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17840 else
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17847 rm -f core conftest.err conftest.$ac_objext \
17848 conftest$ac_exeext conftest.$ac_ext
17849 LIBS=$ac_get_soname_save_LIBS
17851 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
17852 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
17853 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17855 cat >>confdefs.h <<_ACEOF
17856 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
17857 _ACEOF
17861 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17862 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
17863 if test "${ac_cv_lib_soname_GL+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866 ac_get_soname_save_LIBS=$LIBS
17867 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
17868 cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h. */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17875 /* Override any GCC internal prototype to avoid an error.
17876 Use char because int might match the return type of a GCC
17877 builtin and then its argument prototype would still apply. */
17878 #ifdef __cplusplus
17879 extern "C"
17880 #endif
17881 char glXQueryExtension ();
17883 main ()
17885 return glXQueryExtension ();
17887 return 0;
17889 _ACEOF
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (ac_try="$ac_link"
17892 case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17895 esac
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_link") 2>conftest.er1
17898 ac_status=$?
17899 grep -v '^ *+' conftest.er1 >conftest.err
17900 rm -f conftest.er1
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
17904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17905 { (case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17908 esac
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_try") 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest$ac_exeext'
17915 { (case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17918 esac
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_try") 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17925 if test "x$ac_cv_lib_soname_GL" = "x"
17926 then
17927 ac_cv_lib_soname_GL="libGL.$LIBEXT"
17929 else
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 ac_cv_lib_soname_GL="libGL.$LIBEXT"
17936 rm -f core conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
17938 LIBS=$ac_get_soname_save_LIBS
17940 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
17941 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
17942 if test "${ac_cv_lib_soname_GL+set}" = set; then
17944 cat >>confdefs.h <<_ACEOF
17945 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
17946 _ACEOF
17950 { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
17951 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
17952 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955 ac_get_soname_save_LIBS=$LIBS
17956 LIBS="-ldbus-1 $LIBS"
17957 cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h. */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17964 /* Override any GCC internal prototype to avoid an error.
17965 Use char because int might match the return type of a GCC
17966 builtin and then its argument prototype would still apply. */
17967 #ifdef __cplusplus
17968 extern "C"
17969 #endif
17970 char dbus_error_init ();
17972 main ()
17974 return dbus_error_init ();
17976 return 0;
17978 _ACEOF
17979 rm -f conftest.$ac_objext conftest$ac_exeext
17980 if { (ac_try="$ac_link"
17981 case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17984 esac
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_link") 2>conftest.er1
17987 ac_status=$?
17988 grep -v '^ *+' conftest.er1 >conftest.err
17989 rm -f conftest.er1
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17994 { (case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_try") 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; } &&
18003 { ac_try='test -s conftest$ac_exeext'
18004 { (case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_try") 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 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'`
18014 if test "x$ac_cv_lib_soname_dbus_1" = "x"
18015 then
18016 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18018 else
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18025 rm -f core conftest.err conftest.$ac_objext \
18026 conftest$ac_exeext conftest.$ac_ext
18027 LIBS=$ac_get_soname_save_LIBS
18029 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
18030 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
18031 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18033 cat >>confdefs.h <<_ACEOF
18034 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
18035 _ACEOF
18039 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
18040 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
18041 if test "${ac_cv_lib_soname_hal+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18043 else
18044 ac_get_soname_save_LIBS=$LIBS
18045 LIBS="-lhal $LIBS"
18046 cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h. */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18053 /* Override any GCC internal prototype to avoid an error.
18054 Use char because int might match the return type of a GCC
18055 builtin and then its argument prototype would still apply. */
18056 #ifdef __cplusplus
18057 extern "C"
18058 #endif
18059 char libhal_ctx_new ();
18061 main ()
18063 return libhal_ctx_new ();
18065 return 0;
18067 _ACEOF
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (ac_try="$ac_link"
18070 case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18073 esac
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_link") 2>conftest.er1
18076 ac_status=$?
18077 grep -v '^ *+' conftest.er1 >conftest.err
18078 rm -f conftest.er1
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } &&
18082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18083 { (case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18086 esac
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_try") 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest$ac_exeext'
18093 { (case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18096 esac
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_try") 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18103 if test "x$ac_cv_lib_soname_hal" = "x"
18104 then
18105 ac_cv_lib_soname_hal="libhal.$LIBEXT"
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_cv_lib_soname_hal="libhal.$LIBEXT"
18114 rm -f core conftest.err conftest.$ac_objext \
18115 conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_get_soname_save_LIBS
18118 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
18119 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
18120 if test "${ac_cv_lib_soname_hal+set}" = set; then
18122 cat >>confdefs.h <<_ACEOF
18123 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
18124 _ACEOF
18128 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
18129 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
18130 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133 ac_get_soname_save_LIBS=$LIBS
18134 LIBS="-ltxc_dxtn $LIBS"
18135 cat >conftest.$ac_ext <<_ACEOF
18136 /* confdefs.h. */
18137 _ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18142 /* Override any GCC internal prototype to avoid an error.
18143 Use char because int might match the return type of a GCC
18144 builtin and then its argument prototype would still apply. */
18145 #ifdef __cplusplus
18146 extern "C"
18147 #endif
18148 char fetch_2d_texel_rgba_dxt1 ();
18150 main ()
18152 return fetch_2d_texel_rgba_dxt1 ();
18154 return 0;
18156 _ACEOF
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18162 esac
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_link") 2>conftest.er1
18165 ac_status=$?
18166 grep -v '^ *+' conftest.er1 >conftest.err
18167 rm -f conftest.er1
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18172 { (case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18175 esac
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_try") 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; } &&
18181 { ac_try='test -s conftest$ac_exeext'
18182 { (case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_try") 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 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'`
18192 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
18193 then
18194 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18196 else
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18200 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18203 rm -f core conftest.err conftest.$ac_objext \
18204 conftest$ac_exeext conftest.$ac_ext
18205 LIBS=$ac_get_soname_save_LIBS
18207 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
18208 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
18209 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18211 cat >>confdefs.h <<_ACEOF
18212 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
18213 _ACEOF
18217 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
18218 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
18219 if test "${ac_cv_lib_soname_cups+set}" = set; then
18220 echo $ECHO_N "(cached) $ECHO_C" >&6
18221 else
18222 ac_get_soname_save_LIBS=$LIBS
18223 LIBS="-lcups $LIBS"
18224 cat >conftest.$ac_ext <<_ACEOF
18225 /* confdefs.h. */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h. */
18231 /* Override any GCC internal prototype to avoid an error.
18232 Use char because int might match the return type of a GCC
18233 builtin and then its argument prototype would still apply. */
18234 #ifdef __cplusplus
18235 extern "C"
18236 #endif
18237 char cupsGetDefault ();
18239 main ()
18241 return cupsGetDefault ();
18243 return 0;
18245 _ACEOF
18246 rm -f conftest.$ac_objext conftest$ac_exeext
18247 if { (ac_try="$ac_link"
18248 case "(($ac_try" in
18249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18251 esac
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253 (eval "$ac_link") 2>conftest.er1
18254 ac_status=$?
18255 grep -v '^ *+' conftest.er1 >conftest.err
18256 rm -f conftest.er1
18257 cat conftest.err >&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } &&
18260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18261 { (case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_try") 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; } &&
18270 { ac_try='test -s conftest$ac_exeext'
18271 { (case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18274 esac
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_try") 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; }; then
18280 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18281 if test "x$ac_cv_lib_soname_cups" = "x"
18282 then
18283 ac_cv_lib_soname_cups="libcups.$LIBEXT"
18285 else
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 ac_cv_lib_soname_cups="libcups.$LIBEXT"
18292 rm -f core conftest.err conftest.$ac_objext \
18293 conftest$ac_exeext conftest.$ac_ext
18294 LIBS=$ac_get_soname_save_LIBS
18296 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
18297 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
18298 if test "${ac_cv_lib_soname_cups+set}" = set; then
18300 cat >>confdefs.h <<_ACEOF
18301 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
18302 _ACEOF
18306 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
18307 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
18308 if test "${ac_cv_lib_soname_jack+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311 ac_get_soname_save_LIBS=$LIBS
18312 LIBS="-ljack $LIBS"
18313 cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h. */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18320 /* Override any GCC internal prototype to avoid an error.
18321 Use char because int might match the return type of a GCC
18322 builtin and then its argument prototype would still apply. */
18323 #ifdef __cplusplus
18324 extern "C"
18325 #endif
18326 char jack_client_new ();
18328 main ()
18330 return jack_client_new ();
18332 return 0;
18334 _ACEOF
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (ac_try="$ac_link"
18337 case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_link") 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
18349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest$ac_exeext'
18360 { (case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18363 esac
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_try") 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18370 if test "x$ac_cv_lib_soname_jack" = "x"
18371 then
18372 ac_cv_lib_soname_jack="libjack.$LIBEXT"
18374 else
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18378 ac_cv_lib_soname_jack="libjack.$LIBEXT"
18381 rm -f core conftest.err conftest.$ac_objext \
18382 conftest$ac_exeext conftest.$ac_ext
18383 LIBS=$ac_get_soname_save_LIBS
18385 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
18386 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
18387 if test "${ac_cv_lib_soname_jack+set}" = set; then
18389 cat >>confdefs.h <<_ACEOF
18390 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
18391 _ACEOF
18395 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
18396 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
18397 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18398 echo $ECHO_N "(cached) $ECHO_C" >&6
18399 else
18400 ac_get_soname_save_LIBS=$LIBS
18401 LIBS="-lfontconfig $LIBS"
18402 cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h. */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18409 /* Override any GCC internal prototype to avoid an error.
18410 Use char because int might match the return type of a GCC
18411 builtin and then its argument prototype would still apply. */
18412 #ifdef __cplusplus
18413 extern "C"
18414 #endif
18415 char FcInit ();
18417 main ()
18419 return FcInit ();
18421 return 0;
18423 _ACEOF
18424 rm -f conftest.$ac_objext conftest$ac_exeext
18425 if { (ac_try="$ac_link"
18426 case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18429 esac
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_link") 2>conftest.er1
18432 ac_status=$?
18433 grep -v '^ *+' conftest.er1 >conftest.err
18434 rm -f conftest.er1
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
18438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18439 { (case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_try") 2>&5
18445 ac_status=$?
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; } &&
18448 { ac_try='test -s conftest$ac_exeext'
18449 { (case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18452 esac
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_try") 2>&5
18455 ac_status=$?
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; }; then
18458 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18459 if test "x$ac_cv_lib_soname_fontconfig" = "x"
18460 then
18461 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18463 else
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18467 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18470 rm -f core conftest.err conftest.$ac_objext \
18471 conftest$ac_exeext conftest.$ac_ext
18472 LIBS=$ac_get_soname_save_LIBS
18474 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
18475 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
18476 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18478 cat >>confdefs.h <<_ACEOF
18479 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
18480 _ACEOF
18484 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
18485 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
18486 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18488 else
18489 ac_get_soname_save_LIBS=$LIBS
18490 LIBS="-lssl $LIBS"
18491 cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h. */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18501 #ifdef __cplusplus
18502 extern "C"
18503 #endif
18504 char SSL_library_init ();
18506 main ()
18508 return SSL_library_init ();
18510 return 0;
18512 _ACEOF
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518 esac
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_link") 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18528 { (case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_try") 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541 esac
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18548 if test "x$ac_cv_lib_soname_ssl" = "x"
18549 then
18550 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18552 else
18553 echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18556 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18559 rm -f core conftest.err conftest.$ac_objext \
18560 conftest$ac_exeext conftest.$ac_ext
18561 LIBS=$ac_get_soname_save_LIBS
18563 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
18564 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
18565 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18567 cat >>confdefs.h <<_ACEOF
18568 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
18569 _ACEOF
18573 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
18574 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
18575 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578 ac_get_soname_save_LIBS=$LIBS
18579 LIBS="-lcrypto $LIBS"
18580 cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h. */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18587 /* Override any GCC internal prototype to avoid an error.
18588 Use char because int might match the return type of a GCC
18589 builtin and then its argument prototype would still apply. */
18590 #ifdef __cplusplus
18591 extern "C"
18592 #endif
18593 char BIO_new_socket ();
18595 main ()
18597 return BIO_new_socket ();
18599 return 0;
18601 _ACEOF
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (ac_try="$ac_link"
18604 case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18607 esac
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_link") 2>conftest.er1
18610 ac_status=$?
18611 grep -v '^ *+' conftest.er1 >conftest.err
18612 rm -f conftest.er1
18613 cat conftest.err >&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
18616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18617 { (case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_try") 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; } &&
18626 { ac_try='test -s conftest$ac_exeext'
18627 { (case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18630 esac
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_try") 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18637 if test "x$ac_cv_lib_soname_crypto" = "x"
18638 then
18639 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18641 else
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18648 rm -f core conftest.err conftest.$ac_objext \
18649 conftest$ac_exeext conftest.$ac_ext
18650 LIBS=$ac_get_soname_save_LIBS
18652 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
18653 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
18654 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18656 cat >>confdefs.h <<_ACEOF
18657 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
18658 _ACEOF
18662 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
18663 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
18664 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667 ac_get_soname_save_LIBS=$LIBS
18668 LIBS="-lncurses $LIBS"
18669 cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h. */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18676 /* Override any GCC internal prototype to avoid an error.
18677 Use char because int might match the return type of a GCC
18678 builtin and then its argument prototype would still apply. */
18679 #ifdef __cplusplus
18680 extern "C"
18681 #endif
18682 char waddch ();
18684 main ()
18686 return waddch ();
18688 return 0;
18690 _ACEOF
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (ac_try="$ac_link"
18693 case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_link") 2>conftest.er1
18699 ac_status=$?
18700 grep -v '^ *+' conftest.er1 >conftest.err
18701 rm -f conftest.er1
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } &&
18705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18706 { (case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18709 esac
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_try") 2>&5
18712 ac_status=$?
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; } &&
18715 { ac_try='test -s conftest$ac_exeext'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719 esac
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_try") 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18725 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18726 if test "x$ac_cv_lib_soname_ncurses" = "x"
18727 then
18728 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18730 else
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18737 rm -f core conftest.err conftest.$ac_objext \
18738 conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_get_soname_save_LIBS
18741 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
18742 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
18743 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18745 cat >>confdefs.h <<_ACEOF
18746 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
18747 _ACEOF
18751 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
18752 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
18753 if test "${ac_cv_lib_soname_curses+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756 ac_get_soname_save_LIBS=$LIBS
18757 LIBS="-lcurses $LIBS"
18758 cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h. */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18765 /* Override any GCC internal prototype to avoid an error.
18766 Use char because int might match the return type of a GCC
18767 builtin and then its argument prototype would still apply. */
18768 #ifdef __cplusplus
18769 extern "C"
18770 #endif
18771 char waddch ();
18773 main ()
18775 return waddch ();
18777 return 0;
18779 _ACEOF
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785 esac
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_link") 2>conftest.er1
18788 ac_status=$?
18789 grep -v '^ *+' conftest.er1 >conftest.err
18790 rm -f conftest.er1
18791 cat conftest.err >&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } &&
18794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18795 { (case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_try") 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest$ac_exeext'
18805 { (case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18808 esac
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_try") 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18815 if test "x$ac_cv_lib_soname_curses" = "x"
18816 then
18817 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18819 else
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18826 rm -f core conftest.err conftest.$ac_objext \
18827 conftest$ac_exeext conftest.$ac_ext
18828 LIBS=$ac_get_soname_save_LIBS
18830 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
18831 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
18832 if test "${ac_cv_lib_soname_curses+set}" = set; then
18834 cat >>confdefs.h <<_ACEOF
18835 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
18836 _ACEOF
18840 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
18841 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
18842 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18844 else
18845 ac_get_soname_save_LIBS=$LIBS
18846 LIBS="-ljpeg $LIBS"
18847 cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h. */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18854 /* Override any GCC internal prototype to avoid an error.
18855 Use char because int might match the return type of a GCC
18856 builtin and then its argument prototype would still apply. */
18857 #ifdef __cplusplus
18858 extern "C"
18859 #endif
18860 char jpeg_start_decompress ();
18862 main ()
18864 return jpeg_start_decompress ();
18866 return 0;
18868 _ACEOF
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (ac_try="$ac_link"
18871 case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18874 esac
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_link") 2>conftest.er1
18877 ac_status=$?
18878 grep -v '^ *+' conftest.er1 >conftest.err
18879 rm -f conftest.er1
18880 cat conftest.err >&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } &&
18883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18884 { (case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18887 esac
18888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889 (eval "$ac_try") 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest$ac_exeext'
18894 { (case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18897 esac
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899 (eval "$ac_try") 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; }; then
18903 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18904 if test "x$ac_cv_lib_soname_jpeg" = "x"
18905 then
18906 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18908 else
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18912 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18915 rm -f core conftest.err conftest.$ac_objext \
18916 conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_get_soname_save_LIBS
18919 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
18920 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
18921 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18923 cat >>confdefs.h <<_ACEOF
18924 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
18925 _ACEOF
18929 { echo "$as_me:$LINENO: checking for -lungif soname" >&5
18930 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
18931 if test "${ac_cv_lib_soname_ungif+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933 else
18934 ac_get_soname_save_LIBS=$LIBS
18935 LIBS="-lungif $LIBS"
18936 cat >conftest.$ac_ext <<_ACEOF
18937 /* confdefs.h. */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18943 /* Override any GCC internal prototype to avoid an error.
18944 Use char because int might match the return type of a GCC
18945 builtin and then its argument prototype would still apply. */
18946 #ifdef __cplusplus
18947 extern "C"
18948 #endif
18949 char DGifOpen ();
18951 main ()
18953 return DGifOpen ();
18955 return 0;
18957 _ACEOF
18958 rm -f conftest.$ac_objext conftest$ac_exeext
18959 if { (ac_try="$ac_link"
18960 case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18963 esac
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_link") 2>conftest.er1
18966 ac_status=$?
18967 grep -v '^ *+' conftest.er1 >conftest.err
18968 rm -f conftest.er1
18969 cat conftest.err >&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18973 { (case "(($ac_try" in
18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975 *) ac_try_echo=$ac_try;;
18976 esac
18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978 (eval "$ac_try") 2>&5
18979 ac_status=$?
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; } &&
18982 { ac_try='test -s conftest$ac_exeext'
18983 { (case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18986 esac
18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_try") 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; }; then
18992 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18993 if test "x$ac_cv_lib_soname_ungif" = "x"
18994 then
18995 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
18997 else
18998 echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19001 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19004 rm -f core conftest.err conftest.$ac_objext \
19005 conftest$ac_exeext conftest.$ac_ext
19006 LIBS=$ac_get_soname_save_LIBS
19008 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
19009 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
19010 if test "${ac_cv_lib_soname_ungif+set}" = set; then
19012 cat >>confdefs.h <<_ACEOF
19013 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
19014 _ACEOF
19018 { echo "$as_me:$LINENO: checking for -lgif soname" >&5
19019 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
19020 if test "${ac_cv_lib_soname_gif+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 else
19023 ac_get_soname_save_LIBS=$LIBS
19024 LIBS="-lgif $LIBS"
19025 cat >conftest.$ac_ext <<_ACEOF
19026 /* confdefs.h. */
19027 _ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h. */
19032 /* Override any GCC internal prototype to avoid an error.
19033 Use char because int might match the return type of a GCC
19034 builtin and then its argument prototype would still apply. */
19035 #ifdef __cplusplus
19036 extern "C"
19037 #endif
19038 char DGifOpen ();
19040 main ()
19042 return DGifOpen ();
19044 return 0;
19046 _ACEOF
19047 rm -f conftest.$ac_objext conftest$ac_exeext
19048 if { (ac_try="$ac_link"
19049 case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19052 esac
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_link") 2>conftest.er1
19055 ac_status=$?
19056 grep -v '^ *+' conftest.er1 >conftest.err
19057 rm -f conftest.er1
19058 cat conftest.err >&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); } &&
19061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19062 { (case "(($ac_try" in
19063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19065 esac
19066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19067 (eval "$ac_try") 2>&5
19068 ac_status=$?
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; } &&
19071 { ac_try='test -s conftest$ac_exeext'
19072 { (case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_try") 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19082 if test "x$ac_cv_lib_soname_gif" = "x"
19083 then
19084 ac_cv_lib_soname_gif="libgif.$LIBEXT"
19086 else
19087 echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19090 ac_cv_lib_soname_gif="libgif.$LIBEXT"
19093 rm -f core conftest.err conftest.$ac_objext \
19094 conftest$ac_exeext conftest.$ac_ext
19095 LIBS=$ac_get_soname_save_LIBS
19097 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
19098 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
19099 if test "${ac_cv_lib_soname_gif+set}" = set; then
19101 cat >>confdefs.h <<_ACEOF
19102 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
19103 _ACEOF
19107 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
19108 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
19109 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112 ac_get_soname_save_LIBS=$LIBS
19113 LIBS="-lcapi20 $LIBS"
19114 cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h. */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19121 /* Override any GCC internal prototype to avoid an error.
19122 Use char because int might match the return type of a GCC
19123 builtin and then its argument prototype would still apply. */
19124 #ifdef __cplusplus
19125 extern "C"
19126 #endif
19127 char capi20_isinstalled ();
19129 main ()
19131 return capi20_isinstalled ();
19133 return 0;
19135 _ACEOF
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (ac_try="$ac_link"
19138 case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_link") 2>conftest.er1
19144 ac_status=$?
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
19150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19154 esac
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try='test -s conftest$ac_exeext'
19161 { (case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_try") 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; }; then
19170 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19171 if test "x$ac_cv_lib_soname_capi20" = "x"
19172 then
19173 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19175 else
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19179 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19182 rm -f core conftest.err conftest.$ac_objext \
19183 conftest$ac_exeext conftest.$ac_ext
19184 LIBS=$ac_get_soname_save_LIBS
19186 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
19187 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
19188 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19190 cat >>confdefs.h <<_ACEOF
19191 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
19192 _ACEOF
19264 for ac_func in \
19265 _lwp_create \
19266 _lwp_self \
19267 _pclose \
19268 _popen \
19269 _snprintf \
19270 _spawnvp \
19271 _stricmp \
19272 _strnicmp \
19273 _vsnprintf \
19274 asctime_r \
19275 chsize \
19276 clone \
19277 epoll_create \
19278 ffs \
19279 finite \
19280 fork \
19281 fpclass \
19282 fstatfs \
19283 fstatvfs \
19284 ftruncate \
19285 futimes \
19286 futimesat \
19287 getaddrinfo \
19288 getnameinfo \
19289 getnetbyname \
19290 getopt_long \
19291 getpagesize \
19292 getprotobyname \
19293 getprotobynumber \
19294 getpwuid \
19295 getservbyport \
19296 gettid \
19297 gettimeofday \
19298 getuid \
19299 inet_network \
19300 lstat \
19301 memmove \
19302 mmap \
19303 pclose \
19304 popen \
19305 prctl \
19306 pread \
19307 pwrite \
19308 readlink \
19309 rfork \
19310 sched_yield \
19311 select \
19312 sendmsg \
19313 settimeofday \
19314 sigaltstack \
19315 sigprocmask \
19316 snprintf \
19317 spawnvp \
19318 statfs \
19319 statvfs \
19320 strcasecmp \
19321 strerror \
19322 strncasecmp \
19323 tcgetattr \
19324 timegm \
19325 usleep \
19326 vsnprintf \
19327 wait4 \
19328 waitpid \
19331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337 cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h. */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h. */
19343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19345 #define $ac_func innocuous_$ac_func
19347 /* System header to define __stub macros and hopefully few prototypes,
19348 which can conflict with char $ac_func (); below.
19349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19350 <limits.h> exists even on freestanding compilers. */
19352 #ifdef __STDC__
19353 # include <limits.h>
19354 #else
19355 # include <assert.h>
19356 #endif
19358 #undef $ac_func
19360 /* Override any GCC internal prototype to avoid an error.
19361 Use char because int might match the return type of a GCC
19362 builtin and then its argument prototype would still apply. */
19363 #ifdef __cplusplus
19364 extern "C"
19365 #endif
19366 char $ac_func ();
19367 /* The GNU C library defines this for functions which it implements
19368 to always fail with ENOSYS. Some functions are actually named
19369 something starting with __ and the normal name is an alias. */
19370 #if defined __stub_$ac_func || defined __stub___$ac_func
19371 choke me
19372 #endif
19375 main ()
19377 return $ac_func ();
19379 return 0;
19381 _ACEOF
19382 rm -f conftest.$ac_objext conftest$ac_exeext
19383 if { (ac_try="$ac_link"
19384 case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19387 esac
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_link") 2>conftest.er1
19390 ac_status=$?
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19397 { (case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_try") 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest$ac_exeext'
19407 { (case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19410 esac
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_try") 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 eval "$as_ac_var=yes"
19417 else
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19421 eval "$as_ac_var=no"
19424 rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19427 ac_res=`eval echo '${'$as_ac_var'}'`
19428 { echo "$as_me:$LINENO: result: $ac_res" >&5
19429 echo "${ECHO_T}$ac_res" >&6; }
19430 if test `eval echo '${'$as_ac_var'}'` = yes; then
19431 cat >>confdefs.h <<_ACEOF
19432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19433 _ACEOF
19436 done
19441 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19442 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19443 if test "${ac_cv_c_const+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446 cat >conftest.$ac_ext <<_ACEOF
19447 /* confdefs.h. */
19448 _ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h. */
19454 main ()
19456 /* FIXME: Include the comments suggested by Paul. */
19457 #ifndef __cplusplus
19458 /* Ultrix mips cc rejects this. */
19459 typedef int charset[2];
19460 const charset x;
19461 /* SunOS 4.1.1 cc rejects this. */
19462 char const *const *ccp;
19463 char **p;
19464 /* NEC SVR4.0.2 mips cc rejects this. */
19465 struct point {int x, y;};
19466 static struct point const zero = {0,0};
19467 /* AIX XL C 1.02.0.0 rejects this.
19468 It does not let you subtract one const X* pointer from another in
19469 an arm of an if-expression whose if-part is not a constant
19470 expression */
19471 const char *g = "string";
19472 ccp = &g + (g ? g-g : 0);
19473 /* HPUX 7.0 cc rejects these. */
19474 ++ccp;
19475 p = (char**) ccp;
19476 ccp = (char const *const *) p;
19477 { /* SCO 3.2v4 cc rejects this. */
19478 char *t;
19479 char const *s = 0 ? (char *) 0 : (char const *) 0;
19481 *t++ = 0;
19482 if (s) return 0;
19484 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19485 int x[] = {25, 17};
19486 const int *foo = &x[0];
19487 ++foo;
19489 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19490 typedef const int *iptr;
19491 iptr p = 0;
19492 ++p;
19494 { /* AIX XL C 1.02.0.0 rejects this saying
19495 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19496 struct s { int j; const int *ap[3]; };
19497 struct s *b; b->j = 5;
19499 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19500 const int foo = 10;
19501 if (!foo) return 0;
19503 return !x[0] && !zero.x;
19504 #endif
19507 return 0;
19509 _ACEOF
19510 rm -f conftest.$ac_objext
19511 if { (ac_try="$ac_compile"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_compile") 2>conftest.er1
19518 ac_status=$?
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
19524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19525 { (case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528 esac
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_try") 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } &&
19534 { ac_try='test -s conftest.$ac_objext'
19535 { (case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_try") 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544 ac_cv_c_const=yes
19545 else
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 ac_cv_c_const=no
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19555 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19556 if test $ac_cv_c_const = no; then
19558 cat >>confdefs.h <<\_ACEOF
19559 #define const
19560 _ACEOF
19564 { echo "$as_me:$LINENO: checking for inline" >&5
19565 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19566 if test "${ac_cv_c_inline+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569 ac_cv_c_inline=no
19570 for ac_kw in inline __inline__ __inline; do
19571 cat >conftest.$ac_ext <<_ACEOF
19572 /* confdefs.h. */
19573 _ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h. */
19577 #ifndef __cplusplus
19578 typedef int foo_t;
19579 static $ac_kw foo_t static_foo () {return 0; }
19580 $ac_kw foo_t foo () {return 0; }
19581 #endif
19583 _ACEOF
19584 rm -f conftest.$ac_objext
19585 if { (ac_try="$ac_compile"
19586 case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19589 esac
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_compile") 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
19598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19599 { (case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602 esac
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_try") 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_try") 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19618 ac_cv_c_inline=$ac_kw
19619 else
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627 test "$ac_cv_c_inline" != no && break
19628 done
19631 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19632 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19635 case $ac_cv_c_inline in
19636 inline | yes) ;;
19638 case $ac_cv_c_inline in
19639 no) ac_val=;;
19640 *) ac_val=$ac_cv_c_inline;;
19641 esac
19642 cat >>confdefs.h <<_ACEOF
19643 #ifndef __cplusplus
19644 #define inline $ac_val
19645 #endif
19646 _ACEOF
19648 esac
19650 { echo "$as_me:$LINENO: checking for mode_t" >&5
19651 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
19652 if test "${ac_cv_type_mode_t+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655 cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h. */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661 $ac_includes_default
19662 typedef mode_t ac__type_new_;
19664 main ()
19666 if ((ac__type_new_ *) 0)
19667 return 0;
19668 if (sizeof (ac__type_new_))
19669 return 0;
19671 return 0;
19673 _ACEOF
19674 rm -f conftest.$ac_objext
19675 if { (ac_try="$ac_compile"
19676 case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19679 esac
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_compile") 2>conftest.er1
19682 ac_status=$?
19683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19689 { (case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19692 esac
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_try") 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; } &&
19698 { ac_try='test -s conftest.$ac_objext'
19699 { (case "(($ac_try" in
19700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701 *) ac_try_echo=$ac_try;;
19702 esac
19703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704 (eval "$ac_try") 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19708 ac_cv_type_mode_t=yes
19709 else
19710 echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 ac_cv_type_mode_t=no
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19718 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19719 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
19720 if test $ac_cv_type_mode_t = yes; then
19722 cat >>confdefs.h <<_ACEOF
19723 #define HAVE_MODE_T 1
19724 _ACEOF
19728 { echo "$as_me:$LINENO: checking for off_t" >&5
19729 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
19730 if test "${ac_cv_type_off_t+set}" = set; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19732 else
19733 cat >conftest.$ac_ext <<_ACEOF
19734 /* confdefs.h. */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19739 $ac_includes_default
19740 typedef off_t ac__type_new_;
19742 main ()
19744 if ((ac__type_new_ *) 0)
19745 return 0;
19746 if (sizeof (ac__type_new_))
19747 return 0;
19749 return 0;
19751 _ACEOF
19752 rm -f conftest.$ac_objext
19753 if { (ac_try="$ac_compile"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19757 esac
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_compile") 2>conftest.er1
19760 ac_status=$?
19761 grep -v '^ *+' conftest.er1 >conftest.err
19762 rm -f conftest.er1
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } &&
19766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19767 { (case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19770 esac
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_try") 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; } &&
19776 { ac_try='test -s conftest.$ac_objext'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 ac_cv_type_off_t=yes
19787 else
19788 echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19791 ac_cv_type_off_t=no
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19796 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19797 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
19798 if test $ac_cv_type_off_t = yes; then
19800 cat >>confdefs.h <<_ACEOF
19801 #define HAVE_OFF_T 1
19802 _ACEOF
19806 { echo "$as_me:$LINENO: checking for pid_t" >&5
19807 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19808 if test "${ac_cv_type_pid_t+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h. */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 $ac_includes_default
19818 typedef pid_t ac__type_new_;
19820 main ()
19822 if ((ac__type_new_ *) 0)
19823 return 0;
19824 if (sizeof (ac__type_new_))
19825 return 0;
19827 return 0;
19829 _ACEOF
19830 rm -f conftest.$ac_objext
19831 if { (ac_try="$ac_compile"
19832 case "(($ac_try" in
19833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19834 *) ac_try_echo=$ac_try;;
19835 esac
19836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19837 (eval "$ac_compile") 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19845 { (case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848 esac
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_try") 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; } &&
19854 { ac_try='test -s conftest.$ac_objext'
19855 { (case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19858 esac
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_try") 2>&5
19861 ac_status=$?
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; }; then
19864 ac_cv_type_pid_t=yes
19865 else
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19869 ac_cv_type_pid_t=no
19872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19874 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19875 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
19876 if test $ac_cv_type_pid_t = yes; then
19878 cat >>confdefs.h <<_ACEOF
19879 #define HAVE_PID_T 1
19880 _ACEOF
19884 { echo "$as_me:$LINENO: checking for size_t" >&5
19885 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19886 if test "${ac_cv_type_size_t+set}" = set; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 else
19889 cat >conftest.$ac_ext <<_ACEOF
19890 /* confdefs.h. */
19891 _ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h. */
19895 $ac_includes_default
19896 typedef size_t ac__type_new_;
19898 main ()
19900 if ((ac__type_new_ *) 0)
19901 return 0;
19902 if (sizeof (ac__type_new_))
19903 return 0;
19905 return 0;
19907 _ACEOF
19908 rm -f conftest.$ac_objext
19909 if { (ac_try="$ac_compile"
19910 case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19913 esac
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_compile") 2>conftest.er1
19916 ac_status=$?
19917 grep -v '^ *+' conftest.er1 >conftest.err
19918 rm -f conftest.er1
19919 cat conftest.err >&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } &&
19922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19923 { (case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_try") 2>&5
19929 ac_status=$?
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; } &&
19932 { ac_try='test -s conftest.$ac_objext'
19933 { (case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_try") 2>&5
19939 ac_status=$?
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; }; then
19942 ac_cv_type_size_t=yes
19943 else
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19947 ac_cv_type_size_t=no
19950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19952 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19953 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19954 if test $ac_cv_type_size_t = yes; then
19956 cat >>confdefs.h <<_ACEOF
19957 #define HAVE_SIZE_T 1
19958 _ACEOF
19962 { echo "$as_me:$LINENO: checking for ssize_t" >&5
19963 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
19964 if test "${ac_cv_type_ssize_t+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h. */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 $ac_includes_default
19974 typedef ssize_t ac__type_new_;
19976 main ()
19978 if ((ac__type_new_ *) 0)
19979 return 0;
19980 if (sizeof (ac__type_new_))
19981 return 0;
19983 return 0;
19985 _ACEOF
19986 rm -f conftest.$ac_objext
19987 if { (ac_try="$ac_compile"
19988 case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_compile") 2>conftest.er1
19994 ac_status=$?
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20001 { (case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_try") 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; } &&
20010 { ac_try='test -s conftest.$ac_objext'
20011 { (case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20014 esac
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_try") 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_type_ssize_t=yes
20021 else
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20025 ac_cv_type_ssize_t=no
20028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20030 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20031 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
20032 if test $ac_cv_type_ssize_t = yes; then
20034 cat >>confdefs.h <<_ACEOF
20035 #define HAVE_SSIZE_T 1
20036 _ACEOF
20040 { echo "$as_me:$LINENO: checking for long long" >&5
20041 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20042 if test "${ac_cv_type_long_long+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h. */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 $ac_includes_default
20052 typedef long long ac__type_new_;
20054 main ()
20056 if ((ac__type_new_ *) 0)
20057 return 0;
20058 if (sizeof (ac__type_new_))
20059 return 0;
20061 return 0;
20063 _ACEOF
20064 rm -f conftest.$ac_objext
20065 if { (ac_try="$ac_compile"
20066 case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20069 esac
20070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20071 (eval "$ac_compile") 2>conftest.er1
20072 ac_status=$?
20073 grep -v '^ *+' conftest.er1 >conftest.err
20074 rm -f conftest.er1
20075 cat conftest.err >&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } &&
20078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20079 { (case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_try") 2>&5
20085 ac_status=$?
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; } &&
20088 { ac_try='test -s conftest.$ac_objext'
20089 { (case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20092 esac
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_try") 2>&5
20095 ac_status=$?
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; }; then
20098 ac_cv_type_long_long=yes
20099 else
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20103 ac_cv_type_long_long=no
20106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20108 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20109 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20110 if test $ac_cv_type_long_long = yes; then
20112 cat >>confdefs.h <<_ACEOF
20113 #define HAVE_LONG_LONG 1
20114 _ACEOF
20118 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
20119 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
20120 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20122 else
20123 cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h. */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 $ac_includes_default
20130 typedef fsblkcnt_t ac__type_new_;
20132 main ()
20134 if ((ac__type_new_ *) 0)
20135 return 0;
20136 if (sizeof (ac__type_new_))
20137 return 0;
20139 return 0;
20141 _ACEOF
20142 rm -f conftest.$ac_objext
20143 if { (ac_try="$ac_compile"
20144 case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20147 esac
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_compile") 2>conftest.er1
20150 ac_status=$?
20151 grep -v '^ *+' conftest.er1 >conftest.err
20152 rm -f conftest.er1
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20157 { (case "(($ac_try" in
20158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20159 *) ac_try_echo=$ac_try;;
20160 esac
20161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20162 (eval "$ac_try") 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; } &&
20166 { ac_try='test -s conftest.$ac_objext'
20167 { (case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20170 esac
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172 (eval "$ac_try") 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; }; then
20176 ac_cv_type_fsblkcnt_t=yes
20177 else
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20181 ac_cv_type_fsblkcnt_t=no
20184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20186 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
20187 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
20188 if test $ac_cv_type_fsblkcnt_t = yes; then
20190 cat >>confdefs.h <<_ACEOF
20191 #define HAVE_FSBLKCNT_T 1
20192 _ACEOF
20196 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
20197 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
20198 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201 cat >conftest.$ac_ext <<_ACEOF
20202 /* confdefs.h. */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20207 $ac_includes_default
20208 typedef fsfilcnt_t ac__type_new_;
20210 main ()
20212 if ((ac__type_new_ *) 0)
20213 return 0;
20214 if (sizeof (ac__type_new_))
20215 return 0;
20217 return 0;
20219 _ACEOF
20220 rm -f conftest.$ac_objext
20221 if { (ac_try="$ac_compile"
20222 case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20225 esac
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_compile") 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20235 { (case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_try") 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try='test -s conftest.$ac_objext'
20245 { (case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20248 esac
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_try") 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_cv_type_fsfilcnt_t=yes
20255 else
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 ac_cv_type_fsfilcnt_t=no
20262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20264 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20265 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
20266 if test $ac_cv_type_fsfilcnt_t = yes; then
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_FSFILCNT_T 1
20270 _ACEOF
20275 { echo "$as_me:$LINENO: checking for sigset_t" >&5
20276 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
20277 if test "${ac_cv_type_sigset_t+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280 cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h. */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 #include <signal.h>
20288 typedef sigset_t ac__type_new_;
20290 main ()
20292 if ((ac__type_new_ *) 0)
20293 return 0;
20294 if (sizeof (ac__type_new_))
20295 return 0;
20297 return 0;
20299 _ACEOF
20300 rm -f conftest.$ac_objext
20301 if { (ac_try="$ac_compile"
20302 case "(($ac_try" in
20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304 *) ac_try_echo=$ac_try;;
20305 esac
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_compile") 2>conftest.er1
20308 ac_status=$?
20309 grep -v '^ *+' conftest.er1 >conftest.err
20310 rm -f conftest.er1
20311 cat conftest.err >&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } &&
20314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20315 { (case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20318 esac
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_try") 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; } &&
20324 { ac_try='test -s conftest.$ac_objext'
20325 { (case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20328 esac
20329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20330 (eval "$ac_try") 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; }; then
20334 ac_cv_type_sigset_t=yes
20335 else
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 ac_cv_type_sigset_t=no
20342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20345 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
20346 if test $ac_cv_type_sigset_t = yes; then
20348 cat >>confdefs.h <<_ACEOF
20349 #define HAVE_SIGSET_T 1
20350 _ACEOF
20355 { echo "$as_me:$LINENO: checking for request_sense" >&5
20356 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
20357 if test "${ac_cv_type_request_sense+set}" = set; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20359 else
20360 cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h. */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20366 #include <linux/cdrom.h>
20368 typedef request_sense ac__type_new_;
20370 main ()
20372 if ((ac__type_new_ *) 0)
20373 return 0;
20374 if (sizeof (ac__type_new_))
20375 return 0;
20377 return 0;
20379 _ACEOF
20380 rm -f conftest.$ac_objext
20381 if { (ac_try="$ac_compile"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_compile") 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
20394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20395 { (case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_try") 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest.$ac_objext'
20405 { (case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_try") 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_cv_type_request_sense=yes
20415 else
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_cv_type_request_sense=no
20422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20424 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20425 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
20426 if test $ac_cv_type_request_sense = yes; then
20428 cat >>confdefs.h <<_ACEOF
20429 #define HAVE_REQUEST_SENSE 1
20430 _ACEOF
20436 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20437 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
20438 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20441 cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h. */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20447 #ifdef HAVE_LINUX_INPUT_H
20448 #include <linux/input.h>
20449 #endif
20452 main ()
20454 static struct ff_effect ac_aggr;
20455 if (ac_aggr.direction)
20456 return 0;
20458 return 0;
20460 _ACEOF
20461 rm -f conftest.$ac_objext
20462 if { (ac_try="$ac_compile"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20466 esac
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_compile") 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } &&
20475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20476 { (case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_try") 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try='test -s conftest.$ac_objext'
20486 { (case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20489 esac
20490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_try") 2>&5
20492 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 ac_cv_member_struct_ff_effect_direction=yes
20496 else
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 cat >conftest.$ac_ext <<_ACEOF
20501 /* confdefs.h. */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506 #ifdef HAVE_LINUX_INPUT_H
20507 #include <linux/input.h>
20508 #endif
20511 main ()
20513 static struct ff_effect ac_aggr;
20514 if (sizeof ac_aggr.direction)
20515 return 0;
20517 return 0;
20519 _ACEOF
20520 rm -f conftest.$ac_objext
20521 if { (ac_try="$ac_compile"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_compile") 2>conftest.er1
20528 ac_status=$?
20529 grep -v '^ *+' conftest.er1 >conftest.err
20530 rm -f conftest.er1
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } &&
20534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; } &&
20544 { ac_try='test -s conftest.$ac_objext'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_member_struct_ff_effect_direction=yes
20555 else
20556 echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20559 ac_cv_member_struct_ff_effect_direction=no
20562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20568 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
20569 if test $ac_cv_member_struct_ff_effect_direction = yes; then
20571 cat >>confdefs.h <<_ACEOF
20572 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20573 _ACEOF
20579 { echo "$as_me:$LINENO: checking for sigaddset" >&5
20580 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
20581 if test "${wine_cv_have_sigaddset+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584 cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h. */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 #include <signal.h>
20592 main ()
20594 sigset_t set; sigaddset(&set,SIGTERM);
20596 return 0;
20598 _ACEOF
20599 rm -f conftest.$ac_objext conftest$ac_exeext
20600 if { (ac_try="$ac_link"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20604 esac
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_link") 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } &&
20613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20614 { (case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20617 esac
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_try") 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try='test -s conftest$ac_exeext'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20633 wine_cv_have_sigaddset=yes
20634 else
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 wine_cv_have_sigaddset=no
20641 rm -f core conftest.err conftest.$ac_objext \
20642 conftest$ac_exeext conftest.$ac_ext
20644 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20645 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
20646 if test "$wine_cv_have_sigaddset" = "yes"
20647 then
20649 cat >>confdefs.h <<\_ACEOF
20650 #define HAVE_SIGADDSET 1
20651 _ACEOF
20656 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20657 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
20658 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 else
20661 cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h. */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20668 #include <netdb.h>
20671 main ()
20674 char *name=NULL;
20675 struct hostent he;
20676 struct hostent *result;
20677 char *buf=NULL;
20678 int bufsize=0;
20679 int res,errnr;
20680 char *addr=NULL;
20681 int addrlen=0;
20682 int addrtype=0;
20683 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20684 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
20687 return 0;
20689 _ACEOF
20690 rm -f conftest.$ac_objext conftest$ac_exeext
20691 if { (ac_try="$ac_link"
20692 case "(($ac_try" in
20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20695 esac
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_link") 2>conftest.er1
20698 ac_status=$?
20699 grep -v '^ *+' conftest.er1 >conftest.err
20700 rm -f conftest.er1
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } &&
20704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20705 { (case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20708 esac
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_try") 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; } &&
20714 { ac_try='test -s conftest$ac_exeext'
20715 { (case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_try") 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 wine_cv_linux_gethostbyname_r_6=yes
20725 else
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20729 wine_cv_linux_gethostbyname_r_6=no
20733 rm -f core conftest.err conftest.$ac_objext \
20734 conftest$ac_exeext conftest.$ac_ext
20737 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20738 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
20739 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20740 then
20742 cat >>confdefs.h <<\_ACEOF
20743 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
20744 _ACEOF
20748 if test "$ac_cv_header_linux_joystick_h" = "yes"
20749 then
20750 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20751 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
20752 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755 cat >conftest.$ac_ext <<_ACEOF
20756 /* confdefs.h. */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20762 #include <sys/ioctl.h>
20763 #include <linux/joystick.h>
20765 struct js_event blub;
20766 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20767 #error "no 2.2 header"
20768 #endif
20771 main ()
20773 /*empty*/
20775 return 0;
20777 _ACEOF
20778 rm -f conftest.$ac_objext
20779 if { (ac_try="$ac_compile"
20780 case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20783 esac
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_compile") 2>conftest.er1
20786 ac_status=$?
20787 grep -v '^ *+' conftest.er1 >conftest.err
20788 rm -f conftest.er1
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
20792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20793 { (case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_try") 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; } &&
20802 { ac_try='test -s conftest.$ac_objext'
20803 { (case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20806 esac
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_try") 2>&5
20809 ac_status=$?
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; }; then
20812 wine_cv_linux_joystick_22_api=yes
20813 else
20814 echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20817 wine_cv_linux_joystick_22_api=no
20820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20824 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
20825 if test "$wine_cv_linux_joystick_22_api" = "yes"
20826 then
20828 cat >>confdefs.h <<\_ACEOF
20829 #define HAVE_LINUX_22_JOYSTICK_API 1
20830 _ACEOF
20836 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20837 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
20838 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 else
20841 cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h. */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 #include <sys/types.h>
20848 #ifdef HAVE_SYS_PARAM_H
20849 # include <sys/param.h>
20850 #endif
20851 #ifdef HAVE_SYS_MOUNT_H
20852 # include <sys/mount.h>
20853 #endif
20854 #ifdef HAVE_SYS_VFS_H
20855 # include <sys/vfs.h>
20856 #endif
20857 #ifdef HAVE_SYS_STATFS_H
20858 # include <sys/statfs.h>
20859 #endif
20862 main ()
20864 static struct statfs ac_aggr;
20865 if (ac_aggr.f_bfree)
20866 return 0;
20868 return 0;
20870 _ACEOF
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_compile") 2>conftest.er1
20879 ac_status=$?
20880 grep -v '^ *+' conftest.er1 >conftest.err
20881 rm -f conftest.er1
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } &&
20885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20886 { (case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_try") 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; } &&
20895 { ac_try='test -s conftest.$ac_objext'
20896 { (case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_try") 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20905 ac_cv_member_struct_statfs_f_bfree=yes
20906 else
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20910 cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h. */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20916 #include <sys/types.h>
20917 #ifdef HAVE_SYS_PARAM_H
20918 # include <sys/param.h>
20919 #endif
20920 #ifdef HAVE_SYS_MOUNT_H
20921 # include <sys/mount.h>
20922 #endif
20923 #ifdef HAVE_SYS_VFS_H
20924 # include <sys/vfs.h>
20925 #endif
20926 #ifdef HAVE_SYS_STATFS_H
20927 # include <sys/statfs.h>
20928 #endif
20931 main ()
20933 static struct statfs ac_aggr;
20934 if (sizeof ac_aggr.f_bfree)
20935 return 0;
20937 return 0;
20939 _ACEOF
20940 rm -f conftest.$ac_objext
20941 if { (ac_try="$ac_compile"
20942 case "(($ac_try" in
20943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944 *) ac_try_echo=$ac_try;;
20945 esac
20946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947 (eval "$ac_compile") 2>conftest.er1
20948 ac_status=$?
20949 grep -v '^ *+' conftest.er1 >conftest.err
20950 rm -f conftest.er1
20951 cat conftest.err >&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); } &&
20954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20955 { (case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20958 esac
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_try") 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; } &&
20964 { ac_try='test -s conftest.$ac_objext'
20965 { (case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20968 esac
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_try") 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; }; then
20974 ac_cv_member_struct_statfs_f_bfree=yes
20975 else
20976 echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20979 ac_cv_member_struct_statfs_f_bfree=no
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
20988 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
20989 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
20991 cat >>confdefs.h <<_ACEOF
20992 #define HAVE_STRUCT_STATFS_F_BFREE 1
20993 _ACEOF
20997 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
20998 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
20999 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21001 else
21002 cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h. */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 #include <sys/types.h>
21009 #ifdef HAVE_SYS_PARAM_H
21010 # include <sys/param.h>
21011 #endif
21012 #ifdef HAVE_SYS_MOUNT_H
21013 # include <sys/mount.h>
21014 #endif
21015 #ifdef HAVE_SYS_VFS_H
21016 # include <sys/vfs.h>
21017 #endif
21018 #ifdef HAVE_SYS_STATFS_H
21019 # include <sys/statfs.h>
21020 #endif
21023 main ()
21025 static struct statfs ac_aggr;
21026 if (ac_aggr.f_bavail)
21027 return 0;
21029 return 0;
21031 _ACEOF
21032 rm -f conftest.$ac_objext
21033 if { (ac_try="$ac_compile"
21034 case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_compile") 2>conftest.er1
21040 ac_status=$?
21041 grep -v '^ *+' conftest.er1 >conftest.err
21042 rm -f conftest.er1
21043 cat conftest.err >&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } &&
21046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21047 { (case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_try") 2>&5
21053 ac_status=$?
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; } &&
21056 { ac_try='test -s conftest.$ac_objext'
21057 { (case "(($ac_try" in
21058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059 *) ac_try_echo=$ac_try;;
21060 esac
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062 (eval "$ac_try") 2>&5
21063 ac_status=$?
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066 ac_cv_member_struct_statfs_f_bavail=yes
21067 else
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h. */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 #include <sys/types.h>
21078 #ifdef HAVE_SYS_PARAM_H
21079 # include <sys/param.h>
21080 #endif
21081 #ifdef HAVE_SYS_MOUNT_H
21082 # include <sys/mount.h>
21083 #endif
21084 #ifdef HAVE_SYS_VFS_H
21085 # include <sys/vfs.h>
21086 #endif
21087 #ifdef HAVE_SYS_STATFS_H
21088 # include <sys/statfs.h>
21089 #endif
21092 main ()
21094 static struct statfs ac_aggr;
21095 if (sizeof ac_aggr.f_bavail)
21096 return 0;
21098 return 0;
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_compile") 2>conftest.er1
21109 ac_status=$?
21110 grep -v '^ *+' conftest.er1 >conftest.err
21111 rm -f conftest.er1
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
21115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21116 { (case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_try") 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; } &&
21125 { ac_try='test -s conftest.$ac_objext'
21126 { (case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_try") 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ac_cv_member_struct_statfs_f_bavail=yes
21136 else
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ac_cv_member_struct_statfs_f_bavail=no
21143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21148 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
21149 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
21150 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
21152 cat >>confdefs.h <<_ACEOF
21153 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
21154 _ACEOF
21158 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
21159 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
21160 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163 cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h. */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h. */
21169 #include <sys/types.h>
21170 #ifdef HAVE_SYS_PARAM_H
21171 # include <sys/param.h>
21172 #endif
21173 #ifdef HAVE_SYS_MOUNT_H
21174 # include <sys/mount.h>
21175 #endif
21176 #ifdef HAVE_SYS_VFS_H
21177 # include <sys/vfs.h>
21178 #endif
21179 #ifdef HAVE_SYS_STATFS_H
21180 # include <sys/statfs.h>
21181 #endif
21184 main ()
21186 static struct statfs ac_aggr;
21187 if (ac_aggr.f_frsize)
21188 return 0;
21190 return 0;
21192 _ACEOF
21193 rm -f conftest.$ac_objext
21194 if { (ac_try="$ac_compile"
21195 case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_compile") 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21208 { (case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_try") 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21221 esac
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_try") 2>&5
21224 ac_status=$?
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; }; then
21227 ac_cv_member_struct_statfs_f_frsize=yes
21228 else
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h. */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 #include <sys/types.h>
21239 #ifdef HAVE_SYS_PARAM_H
21240 # include <sys/param.h>
21241 #endif
21242 #ifdef HAVE_SYS_MOUNT_H
21243 # include <sys/mount.h>
21244 #endif
21245 #ifdef HAVE_SYS_VFS_H
21246 # include <sys/vfs.h>
21247 #endif
21248 #ifdef HAVE_SYS_STATFS_H
21249 # include <sys/statfs.h>
21250 #endif
21253 main ()
21255 static struct statfs ac_aggr;
21256 if (sizeof ac_aggr.f_frsize)
21257 return 0;
21259 return 0;
21261 _ACEOF
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266 *) ac_try_echo=$ac_try;;
21267 esac
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269 (eval "$ac_compile") 2>conftest.er1
21270 ac_status=$?
21271 grep -v '^ *+' conftest.er1 >conftest.err
21272 rm -f conftest.er1
21273 cat conftest.err >&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } &&
21276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21277 { (case "(($ac_try" in
21278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21280 esac
21281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21282 (eval "$ac_try") 2>&5
21283 ac_status=$?
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); }; } &&
21286 { ac_try='test -s conftest.$ac_objext'
21287 { (case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_try") 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; }; then
21296 ac_cv_member_struct_statfs_f_frsize=yes
21297 else
21298 echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21301 ac_cv_member_struct_statfs_f_frsize=no
21304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21309 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21310 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
21311 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21313 cat >>confdefs.h <<_ACEOF
21314 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
21315 _ACEOF
21319 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21320 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
21321 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21323 else
21324 cat >conftest.$ac_ext <<_ACEOF
21325 /* confdefs.h. */
21326 _ACEOF
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h. */
21330 #include <sys/types.h>
21331 #ifdef HAVE_SYS_PARAM_H
21332 # include <sys/param.h>
21333 #endif
21334 #ifdef HAVE_SYS_MOUNT_H
21335 # include <sys/mount.h>
21336 #endif
21337 #ifdef HAVE_SYS_VFS_H
21338 # include <sys/vfs.h>
21339 #endif
21340 #ifdef HAVE_SYS_STATFS_H
21341 # include <sys/statfs.h>
21342 #endif
21345 main ()
21347 static struct statfs ac_aggr;
21348 if (ac_aggr.f_ffree)
21349 return 0;
21351 return 0;
21353 _ACEOF
21354 rm -f conftest.$ac_objext
21355 if { (ac_try="$ac_compile"
21356 case "(($ac_try" in
21357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358 *) ac_try_echo=$ac_try;;
21359 esac
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361 (eval "$ac_compile") 2>conftest.er1
21362 ac_status=$?
21363 grep -v '^ *+' conftest.er1 >conftest.err
21364 rm -f conftest.er1
21365 cat conftest.err >&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } &&
21368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21369 { (case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374 (eval "$ac_try") 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; } &&
21378 { ac_try='test -s conftest.$ac_objext'
21379 { (case "(($ac_try" in
21380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381 *) ac_try_echo=$ac_try;;
21382 esac
21383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21384 (eval "$ac_try") 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
21388 ac_cv_member_struct_statfs_f_ffree=yes
21389 else
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21393 cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h. */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 #include <sys/types.h>
21400 #ifdef HAVE_SYS_PARAM_H
21401 # include <sys/param.h>
21402 #endif
21403 #ifdef HAVE_SYS_MOUNT_H
21404 # include <sys/mount.h>
21405 #endif
21406 #ifdef HAVE_SYS_VFS_H
21407 # include <sys/vfs.h>
21408 #endif
21409 #ifdef HAVE_SYS_STATFS_H
21410 # include <sys/statfs.h>
21411 #endif
21414 main ()
21416 static struct statfs ac_aggr;
21417 if (sizeof ac_aggr.f_ffree)
21418 return 0;
21420 return 0;
21422 _ACEOF
21423 rm -f conftest.$ac_objext
21424 if { (ac_try="$ac_compile"
21425 case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21428 esac
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_compile") 2>conftest.er1
21431 ac_status=$?
21432 grep -v '^ *+' conftest.er1 >conftest.err
21433 rm -f conftest.er1
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } &&
21437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21438 { (case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_try") 2>&5
21444 ac_status=$?
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; } &&
21447 { ac_try='test -s conftest.$ac_objext'
21448 { (case "(($ac_try" in
21449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450 *) ac_try_echo=$ac_try;;
21451 esac
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453 (eval "$ac_try") 2>&5
21454 ac_status=$?
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; }; then
21457 ac_cv_member_struct_statfs_f_ffree=yes
21458 else
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21462 ac_cv_member_struct_statfs_f_ffree=no
21465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21470 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21471 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
21472 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21474 cat >>confdefs.h <<_ACEOF
21475 #define HAVE_STRUCT_STATFS_F_FFREE 1
21476 _ACEOF
21480 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21481 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
21482 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 else
21485 cat >conftest.$ac_ext <<_ACEOF
21486 /* confdefs.h. */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21491 #include <sys/types.h>
21492 #ifdef HAVE_SYS_PARAM_H
21493 # include <sys/param.h>
21494 #endif
21495 #ifdef HAVE_SYS_MOUNT_H
21496 # include <sys/mount.h>
21497 #endif
21498 #ifdef HAVE_SYS_VFS_H
21499 # include <sys/vfs.h>
21500 #endif
21501 #ifdef HAVE_SYS_STATFS_H
21502 # include <sys/statfs.h>
21503 #endif
21506 main ()
21508 static struct statfs ac_aggr;
21509 if (ac_aggr.f_favail)
21510 return 0;
21512 return 0;
21514 _ACEOF
21515 rm -f conftest.$ac_objext
21516 if { (ac_try="$ac_compile"
21517 case "(($ac_try" in
21518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21520 esac
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522 (eval "$ac_compile") 2>conftest.er1
21523 ac_status=$?
21524 grep -v '^ *+' conftest.er1 >conftest.err
21525 rm -f conftest.er1
21526 cat conftest.err >&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } &&
21529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21530 { (case "(($ac_try" in
21531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532 *) ac_try_echo=$ac_try;;
21533 esac
21534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21535 (eval "$ac_try") 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; } &&
21539 { ac_try='test -s conftest.$ac_objext'
21540 { (case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_try") 2>&5
21546 ac_status=$?
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; }; then
21549 ac_cv_member_struct_statfs_f_favail=yes
21550 else
21551 echo "$as_me: failed program was:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21554 cat >conftest.$ac_ext <<_ACEOF
21555 /* confdefs.h. */
21556 _ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h. */
21560 #include <sys/types.h>
21561 #ifdef HAVE_SYS_PARAM_H
21562 # include <sys/param.h>
21563 #endif
21564 #ifdef HAVE_SYS_MOUNT_H
21565 # include <sys/mount.h>
21566 #endif
21567 #ifdef HAVE_SYS_VFS_H
21568 # include <sys/vfs.h>
21569 #endif
21570 #ifdef HAVE_SYS_STATFS_H
21571 # include <sys/statfs.h>
21572 #endif
21575 main ()
21577 static struct statfs ac_aggr;
21578 if (sizeof ac_aggr.f_favail)
21579 return 0;
21581 return 0;
21583 _ACEOF
21584 rm -f conftest.$ac_objext
21585 if { (ac_try="$ac_compile"
21586 case "(($ac_try" in
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21589 esac
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591 (eval "$ac_compile") 2>conftest.er1
21592 ac_status=$?
21593 grep -v '^ *+' conftest.er1 >conftest.err
21594 rm -f conftest.er1
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } &&
21598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21599 { (case "(($ac_try" in
21600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601 *) ac_try_echo=$ac_try;;
21602 esac
21603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604 (eval "$ac_try") 2>&5
21605 ac_status=$?
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; } &&
21608 { ac_try='test -s conftest.$ac_objext'
21609 { (case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21612 esac
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_try") 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; }; then
21618 ac_cv_member_struct_statfs_f_favail=yes
21619 else
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21623 ac_cv_member_struct_statfs_f_favail=no
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21632 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
21633 if test $ac_cv_member_struct_statfs_f_favail = yes; then
21635 cat >>confdefs.h <<_ACEOF
21636 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
21637 _ACEOF
21641 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21642 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
21643 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21645 else
21646 cat >conftest.$ac_ext <<_ACEOF
21647 /* confdefs.h. */
21648 _ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h. */
21652 #include <sys/types.h>
21653 #ifdef HAVE_SYS_PARAM_H
21654 # include <sys/param.h>
21655 #endif
21656 #ifdef HAVE_SYS_MOUNT_H
21657 # include <sys/mount.h>
21658 #endif
21659 #ifdef HAVE_SYS_VFS_H
21660 # include <sys/vfs.h>
21661 #endif
21662 #ifdef HAVE_SYS_STATFS_H
21663 # include <sys/statfs.h>
21664 #endif
21667 main ()
21669 static struct statfs ac_aggr;
21670 if (ac_aggr.f_namelen)
21671 return 0;
21673 return 0;
21675 _ACEOF
21676 rm -f conftest.$ac_objext
21677 if { (ac_try="$ac_compile"
21678 case "(($ac_try" in
21679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680 *) ac_try_echo=$ac_try;;
21681 esac
21682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683 (eval "$ac_compile") 2>conftest.er1
21684 ac_status=$?
21685 grep -v '^ *+' conftest.er1 >conftest.err
21686 rm -f conftest.er1
21687 cat conftest.err >&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } &&
21690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21691 { (case "(($ac_try" in
21692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693 *) ac_try_echo=$ac_try;;
21694 esac
21695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21696 (eval "$ac_try") 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; } &&
21700 { ac_try='test -s conftest.$ac_objext'
21701 { (case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_try") 2>&5
21707 ac_status=$?
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; }; then
21710 ac_cv_member_struct_statfs_f_namelen=yes
21711 else
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 cat >conftest.$ac_ext <<_ACEOF
21716 /* confdefs.h. */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 #include <sys/types.h>
21722 #ifdef HAVE_SYS_PARAM_H
21723 # include <sys/param.h>
21724 #endif
21725 #ifdef HAVE_SYS_MOUNT_H
21726 # include <sys/mount.h>
21727 #endif
21728 #ifdef HAVE_SYS_VFS_H
21729 # include <sys/vfs.h>
21730 #endif
21731 #ifdef HAVE_SYS_STATFS_H
21732 # include <sys/statfs.h>
21733 #endif
21736 main ()
21738 static struct statfs ac_aggr;
21739 if (sizeof ac_aggr.f_namelen)
21740 return 0;
21742 return 0;
21744 _ACEOF
21745 rm -f conftest.$ac_objext
21746 if { (ac_try="$ac_compile"
21747 case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21750 esac
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_compile") 2>conftest.er1
21753 ac_status=$?
21754 grep -v '^ *+' conftest.er1 >conftest.err
21755 rm -f conftest.er1
21756 cat conftest.err >&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); } &&
21759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21760 { (case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_try") 2>&5
21766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; } &&
21769 { ac_try='test -s conftest.$ac_objext'
21770 { (case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21773 esac
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775 (eval "$ac_try") 2>&5
21776 ac_status=$?
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; }; then
21779 ac_cv_member_struct_statfs_f_namelen=yes
21780 else
21781 echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21784 ac_cv_member_struct_statfs_f_namelen=no
21787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21792 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21793 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
21794 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21796 cat >>confdefs.h <<_ACEOF
21797 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
21798 _ACEOF
21804 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21805 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
21806 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21807 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 else
21809 cat >conftest.$ac_ext <<_ACEOF
21810 /* confdefs.h. */
21811 _ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h. */
21815 #ifdef HAVE_SYS_STATVFS_H
21816 #include <sys/statvfs.h>
21817 #endif
21820 main ()
21822 static struct statvfs ac_aggr;
21823 if (ac_aggr.f_blocks)
21824 return 0;
21826 return 0;
21828 _ACEOF
21829 rm -f conftest.$ac_objext
21830 if { (ac_try="$ac_compile"
21831 case "(($ac_try" in
21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833 *) ac_try_echo=$ac_try;;
21834 esac
21835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21836 (eval "$ac_compile") 2>conftest.er1
21837 ac_status=$?
21838 grep -v '^ *+' conftest.er1 >conftest.err
21839 rm -f conftest.er1
21840 cat conftest.err >&5
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } &&
21843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21844 { (case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_try") 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; } &&
21853 { ac_try='test -s conftest.$ac_objext'
21854 { (case "(($ac_try" in
21855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856 *) ac_try_echo=$ac_try;;
21857 esac
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859 (eval "$ac_try") 2>&5
21860 ac_status=$?
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; }; then
21863 ac_cv_member_struct_statvfs_f_blocks=yes
21864 else
21865 echo "$as_me: failed program was:" >&5
21866 sed 's/^/| /' conftest.$ac_ext >&5
21868 cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h. */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21874 #ifdef HAVE_SYS_STATVFS_H
21875 #include <sys/statvfs.h>
21876 #endif
21879 main ()
21881 static struct statvfs ac_aggr;
21882 if (sizeof ac_aggr.f_blocks)
21883 return 0;
21885 return 0;
21887 _ACEOF
21888 rm -f conftest.$ac_objext
21889 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21896 ac_status=$?
21897 grep -v '^ *+' conftest.er1 >conftest.err
21898 rm -f conftest.er1
21899 cat conftest.err >&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
21902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21903 { (case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21906 esac
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_try") 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; } &&
21912 { ac_try='test -s conftest.$ac_objext'
21913 { (case "(($ac_try" in
21914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915 *) ac_try_echo=$ac_try;;
21916 esac
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918 (eval "$ac_try") 2>&5
21919 ac_status=$?
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; }; then
21922 ac_cv_member_struct_statvfs_f_blocks=yes
21923 else
21924 echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21927 ac_cv_member_struct_statvfs_f_blocks=no
21930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21935 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
21936 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
21937 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
21939 cat >>confdefs.h <<_ACEOF
21940 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
21941 _ACEOF
21947 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
21948 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
21949 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952 cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h. */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 #include <sys/types.h>
21959 #ifdef HAVE_SYS_SOCKET_H
21960 # include <sys/socket.h>
21961 #endif
21962 #ifdef HAVE_SYS_UN_H
21963 # include <sys/un.h>
21964 #endif
21967 main ()
21969 static struct msghdr ac_aggr;
21970 if (ac_aggr.msg_accrights)
21971 return 0;
21973 return 0;
21975 _ACEOF
21976 rm -f conftest.$ac_objext
21977 if { (ac_try="$ac_compile"
21978 case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_compile") 2>conftest.er1
21984 ac_status=$?
21985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } &&
21990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21991 { (case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21994 esac
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_try") 2>&5
21997 ac_status=$?
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; } &&
22000 { ac_try='test -s conftest.$ac_objext'
22001 { (case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22004 esac
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_try") 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
22010 ac_cv_member_struct_msghdr_msg_accrights=yes
22011 else
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22015 cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h. */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22021 #include <sys/types.h>
22022 #ifdef HAVE_SYS_SOCKET_H
22023 # include <sys/socket.h>
22024 #endif
22025 #ifdef HAVE_SYS_UN_H
22026 # include <sys/un.h>
22027 #endif
22030 main ()
22032 static struct msghdr ac_aggr;
22033 if (sizeof ac_aggr.msg_accrights)
22034 return 0;
22036 return 0;
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_compile") 2>conftest.er1
22047 ac_status=$?
22048 grep -v '^ *+' conftest.er1 >conftest.err
22049 rm -f conftest.er1
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } &&
22053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22054 { (case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22057 esac
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_try") 2>&5
22060 ac_status=$?
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; } &&
22063 { ac_try='test -s conftest.$ac_objext'
22064 { (case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22067 esac
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_try") 2>&5
22070 ac_status=$?
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
22073 ac_cv_member_struct_msghdr_msg_accrights=yes
22074 else
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22078 ac_cv_member_struct_msghdr_msg_accrights=no
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22086 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
22087 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
22088 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
22090 cat >>confdefs.h <<_ACEOF
22091 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
22092 _ACEOF
22096 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22097 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
22098 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22099 echo $ECHO_N "(cached) $ECHO_C" >&6
22100 else
22101 cat >conftest.$ac_ext <<_ACEOF
22102 /* confdefs.h. */
22103 _ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22107 #include <sys/types.h>
22108 #ifdef HAVE_SYS_SOCKET_H
22109 # include <sys/socket.h>
22110 #endif
22111 #ifdef HAVE_SYS_UN_H
22112 # include <sys/un.h>
22113 #endif
22116 main ()
22118 static struct sockaddr ac_aggr;
22119 if (ac_aggr.sa_len)
22120 return 0;
22122 return 0;
22124 _ACEOF
22125 rm -f conftest.$ac_objext
22126 if { (ac_try="$ac_compile"
22127 case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22130 esac
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132 (eval "$ac_compile") 2>conftest.er1
22133 ac_status=$?
22134 grep -v '^ *+' conftest.er1 >conftest.err
22135 rm -f conftest.er1
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
22139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22140 { (case "(($ac_try" in
22141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142 *) ac_try_echo=$ac_try;;
22143 esac
22144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22145 (eval "$ac_try") 2>&5
22146 ac_status=$?
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); }; } &&
22149 { ac_try='test -s conftest.$ac_objext'
22150 { (case "(($ac_try" in
22151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152 *) ac_try_echo=$ac_try;;
22153 esac
22154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22155 (eval "$ac_try") 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; }; then
22159 ac_cv_member_struct_sockaddr_sa_len=yes
22160 else
22161 echo "$as_me: failed program was:" >&5
22162 sed 's/^/| /' conftest.$ac_ext >&5
22164 cat >conftest.$ac_ext <<_ACEOF
22165 /* confdefs.h. */
22166 _ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h. */
22170 #include <sys/types.h>
22171 #ifdef HAVE_SYS_SOCKET_H
22172 # include <sys/socket.h>
22173 #endif
22174 #ifdef HAVE_SYS_UN_H
22175 # include <sys/un.h>
22176 #endif
22179 main ()
22181 static struct sockaddr ac_aggr;
22182 if (sizeof ac_aggr.sa_len)
22183 return 0;
22185 return 0;
22187 _ACEOF
22188 rm -f conftest.$ac_objext
22189 if { (ac_try="$ac_compile"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22193 esac
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_compile") 2>conftest.er1
22196 ac_status=$?
22197 grep -v '^ *+' conftest.er1 >conftest.err
22198 rm -f conftest.er1
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } &&
22202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22203 { (case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22206 esac
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208 (eval "$ac_try") 2>&5
22209 ac_status=$?
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }; } &&
22212 { ac_try='test -s conftest.$ac_objext'
22213 { (case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22216 esac
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_try") 2>&5
22219 ac_status=$?
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_cv_member_struct_sockaddr_sa_len=yes
22223 else
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 ac_cv_member_struct_sockaddr_sa_len=no
22230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22236 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22237 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22239 cat >>confdefs.h <<_ACEOF
22240 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22241 _ACEOF
22245 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22246 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
22247 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250 cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h. */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22256 #include <sys/types.h>
22257 #ifdef HAVE_SYS_SOCKET_H
22258 # include <sys/socket.h>
22259 #endif
22260 #ifdef HAVE_SYS_UN_H
22261 # include <sys/un.h>
22262 #endif
22265 main ()
22267 static struct sockaddr_un ac_aggr;
22268 if (ac_aggr.sun_len)
22269 return 0;
22271 return 0;
22273 _ACEOF
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_compile") 2>conftest.er1
22282 ac_status=$?
22283 grep -v '^ *+' conftest.er1 >conftest.err
22284 rm -f conftest.er1
22285 cat conftest.err >&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } &&
22288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22289 { (case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22292 esac
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294 (eval "$ac_try") 2>&5
22295 ac_status=$?
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; } &&
22298 { ac_try='test -s conftest.$ac_objext'
22299 { (case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_try") 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 ac_cv_member_struct_sockaddr_un_sun_len=yes
22309 else
22310 echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22313 cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h. */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h. */
22319 #include <sys/types.h>
22320 #ifdef HAVE_SYS_SOCKET_H
22321 # include <sys/socket.h>
22322 #endif
22323 #ifdef HAVE_SYS_UN_H
22324 # include <sys/un.h>
22325 #endif
22328 main ()
22330 static struct sockaddr_un ac_aggr;
22331 if (sizeof ac_aggr.sun_len)
22332 return 0;
22334 return 0;
22336 _ACEOF
22337 rm -f conftest.$ac_objext
22338 if { (ac_try="$ac_compile"
22339 case "(($ac_try" in
22340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341 *) ac_try_echo=$ac_try;;
22342 esac
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344 (eval "$ac_compile") 2>conftest.er1
22345 ac_status=$?
22346 grep -v '^ *+' conftest.er1 >conftest.err
22347 rm -f conftest.er1
22348 cat conftest.err >&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); } &&
22351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22352 { (case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22355 esac
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_try") 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; } &&
22361 { ac_try='test -s conftest.$ac_objext'
22362 { (case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22365 esac
22366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22367 (eval "$ac_try") 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }; }; then
22371 ac_cv_member_struct_sockaddr_un_sun_len=yes
22372 else
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 ac_cv_member_struct_sockaddr_un_sun_len=no
22379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22385 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
22386 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22388 cat >>confdefs.h <<_ACEOF
22389 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22390 _ACEOF
22396 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22397 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
22398 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401 cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h. */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 #include <sys/types.h>
22408 #ifdef HAVE_SCSI_SG_H
22409 #include <scsi/sg.h>
22410 #endif
22413 main ()
22415 static scsireq_t ac_aggr;
22416 if (ac_aggr.cmd)
22417 return 0;
22419 return 0;
22421 _ACEOF
22422 rm -f conftest.$ac_objext
22423 if { (ac_try="$ac_compile"
22424 case "(($ac_try" in
22425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22426 *) ac_try_echo=$ac_try;;
22427 esac
22428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22429 (eval "$ac_compile") 2>conftest.er1
22430 ac_status=$?
22431 grep -v '^ *+' conftest.er1 >conftest.err
22432 rm -f conftest.er1
22433 cat conftest.err >&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } &&
22436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22437 { (case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22440 esac
22441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22442 (eval "$ac_try") 2>&5
22443 ac_status=$?
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; } &&
22446 { ac_try='test -s conftest.$ac_objext'
22447 { (case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22450 esac
22451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452 (eval "$ac_try") 2>&5
22453 ac_status=$?
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; }; then
22456 ac_cv_member_scsireq_t_cmd=yes
22457 else
22458 echo "$as_me: failed program was:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22461 cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h. */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 #include <sys/types.h>
22468 #ifdef HAVE_SCSI_SG_H
22469 #include <scsi/sg.h>
22470 #endif
22473 main ()
22475 static scsireq_t ac_aggr;
22476 if (sizeof ac_aggr.cmd)
22477 return 0;
22479 return 0;
22481 _ACEOF
22482 rm -f conftest.$ac_objext
22483 if { (ac_try="$ac_compile"
22484 case "(($ac_try" in
22485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22486 *) ac_try_echo=$ac_try;;
22487 esac
22488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22489 (eval "$ac_compile") 2>conftest.er1
22490 ac_status=$?
22491 grep -v '^ *+' conftest.er1 >conftest.err
22492 rm -f conftest.er1
22493 cat conftest.err >&5
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); } &&
22496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22497 { (case "(($ac_try" in
22498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499 *) ac_try_echo=$ac_try;;
22500 esac
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502 (eval "$ac_try") 2>&5
22503 ac_status=$?
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; } &&
22506 { ac_try='test -s conftest.$ac_objext'
22507 { (case "(($ac_try" in
22508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22510 esac
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_try") 2>&5
22513 ac_status=$?
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; }; then
22516 ac_cv_member_scsireq_t_cmd=yes
22517 else
22518 echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22521 ac_cv_member_scsireq_t_cmd=no
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22529 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22530 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
22531 if test $ac_cv_member_scsireq_t_cmd = yes; then
22533 cat >>confdefs.h <<_ACEOF
22534 #define HAVE_SCSIREQ_T_CMD 1
22535 _ACEOF
22539 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22540 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
22541 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 else
22544 cat >conftest.$ac_ext <<_ACEOF
22545 /* confdefs.h. */
22546 _ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h. */
22550 #include <sys/types.h>
22551 #ifdef HAVE_SCSI_SG_H
22552 #include <scsi/sg.h>
22553 #endif
22556 main ()
22558 static sg_io_hdr_t ac_aggr;
22559 if (ac_aggr.interface_id)
22560 return 0;
22562 return 0;
22564 _ACEOF
22565 rm -f conftest.$ac_objext
22566 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22573 ac_status=$?
22574 grep -v '^ *+' conftest.er1 >conftest.err
22575 rm -f conftest.er1
22576 cat conftest.err >&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } &&
22579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22580 { (case "(($ac_try" in
22581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582 *) ac_try_echo=$ac_try;;
22583 esac
22584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22585 (eval "$ac_try") 2>&5
22586 ac_status=$?
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); }; } &&
22589 { ac_try='test -s conftest.$ac_objext'
22590 { (case "(($ac_try" in
22591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592 *) ac_try_echo=$ac_try;;
22593 esac
22594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22595 (eval "$ac_try") 2>&5
22596 ac_status=$?
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; }; then
22599 ac_cv_member_sg_io_hdr_t_interface_id=yes
22600 else
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22604 cat >conftest.$ac_ext <<_ACEOF
22605 /* confdefs.h. */
22606 _ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22610 #include <sys/types.h>
22611 #ifdef HAVE_SCSI_SG_H
22612 #include <scsi/sg.h>
22613 #endif
22616 main ()
22618 static sg_io_hdr_t ac_aggr;
22619 if (sizeof ac_aggr.interface_id)
22620 return 0;
22622 return 0;
22624 _ACEOF
22625 rm -f conftest.$ac_objext
22626 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22633 ac_status=$?
22634 grep -v '^ *+' conftest.er1 >conftest.err
22635 rm -f conftest.er1
22636 cat conftest.err >&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); } &&
22639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22640 { (case "(($ac_try" in
22641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22642 *) ac_try_echo=$ac_try;;
22643 esac
22644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22645 (eval "$ac_try") 2>&5
22646 ac_status=$?
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }; } &&
22649 { ac_try='test -s conftest.$ac_objext'
22650 { (case "(($ac_try" in
22651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652 *) ac_try_echo=$ac_try;;
22653 esac
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655 (eval "$ac_try") 2>&5
22656 ac_status=$?
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); }; }; then
22659 ac_cv_member_sg_io_hdr_t_interface_id=yes
22660 else
22661 echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22664 ac_cv_member_sg_io_hdr_t_interface_id=no
22667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22672 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22673 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
22674 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22676 cat >>confdefs.h <<_ACEOF
22677 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22678 _ACEOF
22684 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22685 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
22686 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689 cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h. */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 #include <signal.h>
22698 main ()
22700 static siginfo_t ac_aggr;
22701 if (ac_aggr.si_fd)
22702 return 0;
22704 return 0;
22706 _ACEOF
22707 rm -f conftest.$ac_objext
22708 if { (ac_try="$ac_compile"
22709 case "(($ac_try" in
22710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711 *) ac_try_echo=$ac_try;;
22712 esac
22713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22714 (eval "$ac_compile") 2>conftest.er1
22715 ac_status=$?
22716 grep -v '^ *+' conftest.er1 >conftest.err
22717 rm -f conftest.er1
22718 cat conftest.err >&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); } &&
22721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22722 { (case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22725 esac
22726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22727 (eval "$ac_try") 2>&5
22728 ac_status=$?
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; } &&
22731 { ac_try='test -s conftest.$ac_objext'
22732 { (case "(($ac_try" in
22733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734 *) ac_try_echo=$ac_try;;
22735 esac
22736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22737 (eval "$ac_try") 2>&5
22738 ac_status=$?
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); }; }; then
22741 ac_cv_member_siginfo_t_si_fd=yes
22742 else
22743 echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22746 cat >conftest.$ac_ext <<_ACEOF
22747 /* confdefs.h. */
22748 _ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 #include <signal.h>
22755 main ()
22757 static siginfo_t ac_aggr;
22758 if (sizeof ac_aggr.si_fd)
22759 return 0;
22761 return 0;
22763 _ACEOF
22764 rm -f conftest.$ac_objext
22765 if { (ac_try="$ac_compile"
22766 case "(($ac_try" in
22767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22768 *) ac_try_echo=$ac_try;;
22769 esac
22770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22771 (eval "$ac_compile") 2>conftest.er1
22772 ac_status=$?
22773 grep -v '^ *+' conftest.er1 >conftest.err
22774 rm -f conftest.er1
22775 cat conftest.err >&5
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); } &&
22778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22779 { (case "(($ac_try" in
22780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781 *) ac_try_echo=$ac_try;;
22782 esac
22783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784 (eval "$ac_try") 2>&5
22785 ac_status=$?
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); }; } &&
22788 { ac_try='test -s conftest.$ac_objext'
22789 { (case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22792 esac
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_try") 2>&5
22795 ac_status=$?
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 ac_cv_member_siginfo_t_si_fd=yes
22799 else
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 ac_cv_member_siginfo_t_si_fd=no
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22812 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
22813 if test $ac_cv_member_siginfo_t_si_fd = yes; then
22815 cat >>confdefs.h <<_ACEOF
22816 #define HAVE_SIGINFO_T_SI_FD 1
22817 _ACEOF
22823 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22824 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
22825 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22827 else
22828 cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h. */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 #include <sys/types.h>
22835 #ifdef HAVE_SYS_MTIO_H
22836 #include <sys/mtio.h>
22837 #endif
22840 main ()
22842 static struct mtget ac_aggr;
22843 if (ac_aggr.mt_blksiz)
22844 return 0;
22846 return 0;
22848 _ACEOF
22849 rm -f conftest.$ac_objext
22850 if { (ac_try="$ac_compile"
22851 case "(($ac_try" in
22852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853 *) ac_try_echo=$ac_try;;
22854 esac
22855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22856 (eval "$ac_compile") 2>conftest.er1
22857 ac_status=$?
22858 grep -v '^ *+' conftest.er1 >conftest.err
22859 rm -f conftest.er1
22860 cat conftest.err >&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
22863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22864 { (case "(($ac_try" in
22865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866 *) ac_try_echo=$ac_try;;
22867 esac
22868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22869 (eval "$ac_try") 2>&5
22870 ac_status=$?
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); }; } &&
22873 { ac_try='test -s conftest.$ac_objext'
22874 { (case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22877 esac
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879 (eval "$ac_try") 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; }; then
22883 ac_cv_member_struct_mtget_mt_blksiz=yes
22884 else
22885 echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22888 cat >conftest.$ac_ext <<_ACEOF
22889 /* confdefs.h. */
22890 _ACEOF
22891 cat confdefs.h >>conftest.$ac_ext
22892 cat >>conftest.$ac_ext <<_ACEOF
22893 /* end confdefs.h. */
22894 #include <sys/types.h>
22895 #ifdef HAVE_SYS_MTIO_H
22896 #include <sys/mtio.h>
22897 #endif
22900 main ()
22902 static struct mtget ac_aggr;
22903 if (sizeof ac_aggr.mt_blksiz)
22904 return 0;
22906 return 0;
22908 _ACEOF
22909 rm -f conftest.$ac_objext
22910 if { (ac_try="$ac_compile"
22911 case "(($ac_try" in
22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913 *) ac_try_echo=$ac_try;;
22914 esac
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916 (eval "$ac_compile") 2>conftest.er1
22917 ac_status=$?
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
22923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22924 { (case "(($ac_try" in
22925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926 *) ac_try_echo=$ac_try;;
22927 esac
22928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22929 (eval "$ac_try") 2>&5
22930 ac_status=$?
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; } &&
22933 { ac_try='test -s conftest.$ac_objext'
22934 { (case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_try") 2>&5
22940 ac_status=$?
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; }; then
22943 ac_cv_member_struct_mtget_mt_blksiz=yes
22944 else
22945 echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22948 ac_cv_member_struct_mtget_mt_blksiz=no
22951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
22957 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
22958 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
22960 cat >>confdefs.h <<_ACEOF
22961 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
22962 _ACEOF
22966 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
22967 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
22968 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
22969 echo $ECHO_N "(cached) $ECHO_C" >&6
22970 else
22971 cat >conftest.$ac_ext <<_ACEOF
22972 /* confdefs.h. */
22973 _ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22977 #include <sys/types.h>
22978 #ifdef HAVE_SYS_MTIO_H
22979 #include <sys/mtio.h>
22980 #endif
22983 main ()
22985 static struct mtget ac_aggr;
22986 if (ac_aggr.mt_gstat)
22987 return 0;
22989 return 0;
22991 _ACEOF
22992 rm -f conftest.$ac_objext
22993 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23000 ac_status=$?
23001 grep -v '^ *+' conftest.er1 >conftest.err
23002 rm -f conftest.er1
23003 cat conftest.err >&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); } &&
23006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23007 { (case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_try") 2>&5
23013 ac_status=$?
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; } &&
23016 { ac_try='test -s conftest.$ac_objext'
23017 { (case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23020 esac
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_try") 2>&5
23023 ac_status=$?
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); }; }; then
23026 ac_cv_member_struct_mtget_mt_gstat=yes
23027 else
23028 echo "$as_me: failed program was:" >&5
23029 sed 's/^/| /' conftest.$ac_ext >&5
23031 cat >conftest.$ac_ext <<_ACEOF
23032 /* confdefs.h. */
23033 _ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h. */
23037 #include <sys/types.h>
23038 #ifdef HAVE_SYS_MTIO_H
23039 #include <sys/mtio.h>
23040 #endif
23043 main ()
23045 static struct mtget ac_aggr;
23046 if (sizeof ac_aggr.mt_gstat)
23047 return 0;
23049 return 0;
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23060 ac_status=$?
23061 grep -v '^ *+' conftest.er1 >conftest.err
23062 rm -f conftest.er1
23063 cat conftest.err >&5
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); } &&
23066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23067 { (case "(($ac_try" in
23068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23069 *) ac_try_echo=$ac_try;;
23070 esac
23071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23072 (eval "$ac_try") 2>&5
23073 ac_status=$?
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); }; } &&
23076 { ac_try='test -s conftest.$ac_objext'
23077 { (case "(($ac_try" in
23078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079 *) ac_try_echo=$ac_try;;
23080 esac
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082 (eval "$ac_try") 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23086 ac_cv_member_struct_mtget_mt_gstat=yes
23087 else
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23091 ac_cv_member_struct_mtget_mt_gstat=no
23094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23099 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
23100 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
23101 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
23103 cat >>confdefs.h <<_ACEOF
23104 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
23105 _ACEOF
23109 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
23110 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
23111 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 else
23114 cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h. */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 #include <sys/types.h>
23121 #ifdef HAVE_SYS_MTIO_H
23122 #include <sys/mtio.h>
23123 #endif
23126 main ()
23128 static struct mtget ac_aggr;
23129 if (ac_aggr.mt_blkno)
23130 return 0;
23132 return 0;
23134 _ACEOF
23135 rm -f conftest.$ac_objext
23136 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23143 ac_status=$?
23144 grep -v '^ *+' conftest.er1 >conftest.err
23145 rm -f conftest.er1
23146 cat conftest.err >&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } &&
23149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23150 { (case "(($ac_try" in
23151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152 *) ac_try_echo=$ac_try;;
23153 esac
23154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23155 (eval "$ac_try") 2>&5
23156 ac_status=$?
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; } &&
23159 { ac_try='test -s conftest.$ac_objext'
23160 { (case "(($ac_try" in
23161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23162 *) ac_try_echo=$ac_try;;
23163 esac
23164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23165 (eval "$ac_try") 2>&5
23166 ac_status=$?
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); }; }; then
23169 ac_cv_member_struct_mtget_mt_blkno=yes
23170 else
23171 echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23174 cat >conftest.$ac_ext <<_ACEOF
23175 /* confdefs.h. */
23176 _ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h. */
23180 #include <sys/types.h>
23181 #ifdef HAVE_SYS_MTIO_H
23182 #include <sys/mtio.h>
23183 #endif
23186 main ()
23188 static struct mtget ac_aggr;
23189 if (sizeof ac_aggr.mt_blkno)
23190 return 0;
23192 return 0;
23194 _ACEOF
23195 rm -f conftest.$ac_objext
23196 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23203 ac_status=$?
23204 grep -v '^ *+' conftest.er1 >conftest.err
23205 rm -f conftest.er1
23206 cat conftest.err >&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); } &&
23209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23210 { (case "(($ac_try" in
23211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23212 *) ac_try_echo=$ac_try;;
23213 esac
23214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23215 (eval "$ac_try") 2>&5
23216 ac_status=$?
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); }; } &&
23219 { ac_try='test -s conftest.$ac_objext'
23220 { (case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225 (eval "$ac_try") 2>&5
23226 ac_status=$?
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); }; }; then
23229 ac_cv_member_struct_mtget_mt_blkno=yes
23230 else
23231 echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
23234 ac_cv_member_struct_mtget_mt_blkno=no
23237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23242 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23243 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
23244 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23246 cat >>confdefs.h <<_ACEOF
23247 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
23248 _ACEOF
23254 { echo "$as_me:$LINENO: checking for struct option.name" >&5
23255 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
23256 if test "${ac_cv_member_struct_option_name+set}" = set; then
23257 echo $ECHO_N "(cached) $ECHO_C" >&6
23258 else
23259 cat >conftest.$ac_ext <<_ACEOF
23260 /* confdefs.h. */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h. */
23265 #ifdef HAVE_GETOPT_H
23266 #include <getopt.h>
23267 #endif
23270 main ()
23272 static struct option ac_aggr;
23273 if (ac_aggr.name)
23274 return 0;
23276 return 0;
23278 _ACEOF
23279 rm -f conftest.$ac_objext
23280 if { (ac_try="$ac_compile"
23281 case "(($ac_try" in
23282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23283 *) ac_try_echo=$ac_try;;
23284 esac
23285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23286 (eval "$ac_compile") 2>conftest.er1
23287 ac_status=$?
23288 grep -v '^ *+' conftest.er1 >conftest.err
23289 rm -f conftest.er1
23290 cat conftest.err >&5
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } &&
23293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23294 { (case "(($ac_try" in
23295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23296 *) ac_try_echo=$ac_try;;
23297 esac
23298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23299 (eval "$ac_try") 2>&5
23300 ac_status=$?
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; } &&
23303 { ac_try='test -s conftest.$ac_objext'
23304 { (case "(($ac_try" in
23305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306 *) ac_try_echo=$ac_try;;
23307 esac
23308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23309 (eval "$ac_try") 2>&5
23310 ac_status=$?
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; }; then
23313 ac_cv_member_struct_option_name=yes
23314 else
23315 echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23318 cat >conftest.$ac_ext <<_ACEOF
23319 /* confdefs.h. */
23320 _ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h. */
23324 #ifdef HAVE_GETOPT_H
23325 #include <getopt.h>
23326 #endif
23329 main ()
23331 static struct option ac_aggr;
23332 if (sizeof ac_aggr.name)
23333 return 0;
23335 return 0;
23337 _ACEOF
23338 rm -f conftest.$ac_objext
23339 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23346 ac_status=$?
23347 grep -v '^ *+' conftest.er1 >conftest.err
23348 rm -f conftest.er1
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } &&
23352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23353 { (case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23356 esac
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_try") 2>&5
23359 ac_status=$?
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; } &&
23362 { ac_try='test -s conftest.$ac_objext'
23363 { (case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23366 esac
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368 (eval "$ac_try") 2>&5
23369 ac_status=$?
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); }; }; then
23372 ac_cv_member_struct_option_name=yes
23373 else
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23377 ac_cv_member_struct_option_name=no
23380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23385 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23386 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
23387 if test $ac_cv_member_struct_option_name = yes; then
23389 cat >>confdefs.h <<_ACEOF
23390 #define HAVE_STRUCT_OPTION_NAME 1
23391 _ACEOF
23397 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23398 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23399 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23400 echo $ECHO_N "(cached) $ECHO_C" >&6
23401 else
23402 cat >conftest.$ac_ext <<_ACEOF
23403 /* confdefs.h. */
23404 _ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h. */
23408 $ac_includes_default
23410 main ()
23412 static struct stat ac_aggr;
23413 if (ac_aggr.st_blocks)
23414 return 0;
23416 return 0;
23418 _ACEOF
23419 rm -f conftest.$ac_objext
23420 if { (ac_try="$ac_compile"
23421 case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23424 esac
23425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23426 (eval "$ac_compile") 2>conftest.er1
23427 ac_status=$?
23428 grep -v '^ *+' conftest.er1 >conftest.err
23429 rm -f conftest.er1
23430 cat conftest.err >&5
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } &&
23433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23434 { (case "(($ac_try" in
23435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436 *) ac_try_echo=$ac_try;;
23437 esac
23438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439 (eval "$ac_try") 2>&5
23440 ac_status=$?
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); }; } &&
23443 { ac_try='test -s conftest.$ac_objext'
23444 { (case "(($ac_try" in
23445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23447 esac
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_try") 2>&5
23450 ac_status=$?
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); }; }; then
23453 ac_cv_member_struct_stat_st_blocks=yes
23454 else
23455 echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23458 cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h. */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23464 $ac_includes_default
23466 main ()
23468 static struct stat ac_aggr;
23469 if (sizeof ac_aggr.st_blocks)
23470 return 0;
23472 return 0;
23474 _ACEOF
23475 rm -f conftest.$ac_objext
23476 if { (ac_try="$ac_compile"
23477 case "(($ac_try" in
23478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479 *) ac_try_echo=$ac_try;;
23480 esac
23481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23482 (eval "$ac_compile") 2>conftest.er1
23483 ac_status=$?
23484 grep -v '^ *+' conftest.er1 >conftest.err
23485 rm -f conftest.er1
23486 cat conftest.err >&5
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); } &&
23489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23490 { (case "(($ac_try" in
23491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23493 esac
23494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23495 (eval "$ac_try") 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } &&
23499 { ac_try='test -s conftest.$ac_objext'
23500 { (case "(($ac_try" in
23501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502 *) ac_try_echo=$ac_try;;
23503 esac
23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505 (eval "$ac_try") 2>&5
23506 ac_status=$?
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); }; }; then
23509 ac_cv_member_struct_stat_st_blocks=yes
23510 else
23511 echo "$as_me: failed program was:" >&5
23512 sed 's/^/| /' conftest.$ac_ext >&5
23514 ac_cv_member_struct_stat_st_blocks=no
23517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23523 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23524 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23526 cat >>confdefs.h <<_ACEOF
23527 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23528 _ACEOF
23534 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23535 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23536 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23537 echo $ECHO_N "(cached) $ECHO_C" >&6
23538 else
23539 cat >conftest.$ac_ext <<_ACEOF
23540 /* confdefs.h. */
23541 _ACEOF
23542 cat confdefs.h >>conftest.$ac_ext
23543 cat >>conftest.$ac_ext <<_ACEOF
23544 /* end confdefs.h. */
23545 #ifdef HAVE_SYS_TYPES_H
23546 #include <sys/types.h>
23547 #endif
23548 #ifdef HAVE_NETINET_IN_H
23549 #include <netinet/in.h>
23550 #endif
23553 main ()
23555 static struct sockaddr_in6 ac_aggr;
23556 if (ac_aggr.sin6_scope_id)
23557 return 0;
23559 return 0;
23561 _ACEOF
23562 rm -f conftest.$ac_objext
23563 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23570 ac_status=$?
23571 grep -v '^ *+' conftest.er1 >conftest.err
23572 rm -f conftest.er1
23573 cat conftest.err >&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } &&
23576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23577 { (case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23580 esac
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_try") 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; } &&
23586 { ac_try='test -s conftest.$ac_objext'
23587 { (case "(($ac_try" in
23588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589 *) ac_try_echo=$ac_try;;
23590 esac
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592 (eval "$ac_try") 2>&5
23593 ac_status=$?
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
23596 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23597 else
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 cat >conftest.$ac_ext <<_ACEOF
23602 /* confdefs.h. */
23603 _ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23607 #ifdef HAVE_SYS_TYPES_H
23608 #include <sys/types.h>
23609 #endif
23610 #ifdef HAVE_NETINET_IN_H
23611 #include <netinet/in.h>
23612 #endif
23615 main ()
23617 static struct sockaddr_in6 ac_aggr;
23618 if (sizeof ac_aggr.sin6_scope_id)
23619 return 0;
23621 return 0;
23623 _ACEOF
23624 rm -f conftest.$ac_objext
23625 if { (ac_try="$ac_compile"
23626 case "(($ac_try" in
23627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23629 esac
23630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631 (eval "$ac_compile") 2>conftest.er1
23632 ac_status=$?
23633 grep -v '^ *+' conftest.er1 >conftest.err
23634 rm -f conftest.er1
23635 cat conftest.err >&5
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); } &&
23638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23639 { (case "(($ac_try" in
23640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23641 *) ac_try_echo=$ac_try;;
23642 esac
23643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23644 (eval "$ac_try") 2>&5
23645 ac_status=$?
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); }; } &&
23648 { ac_try='test -s conftest.$ac_objext'
23649 { (case "(($ac_try" in
23650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651 *) ac_try_echo=$ac_try;;
23652 esac
23653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23654 (eval "$ac_try") 2>&5
23655 ac_status=$?
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); }; }; then
23658 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23659 else
23660 echo "$as_me: failed program was:" >&5
23661 sed 's/^/| /' conftest.$ac_ext >&5
23663 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23671 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23672 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23673 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23675 cat >>confdefs.h <<_ACEOF
23676 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23677 _ACEOF
23683 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23684 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23685 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23686 echo $ECHO_N "(cached) $ECHO_C" >&6
23687 else
23688 cat >conftest.$ac_ext <<_ACEOF
23689 /* confdefs.h. */
23690 _ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23694 #ifdef HAVE_SYS_TYPES_H
23695 #include <sys/types.h>
23696 #endif
23697 #ifdef HAVE_NETINET_IN_H
23698 # include <netinet/in.h>
23699 #endif
23700 #ifdef HAVE_ARPA_NAMESER_H
23701 # include <arpa/nameser.h>
23702 #endif
23705 main ()
23707 static ns_msg ac_aggr;
23708 if (ac_aggr._msg_ptr)
23709 return 0;
23711 return 0;
23713 _ACEOF
23714 rm -f conftest.$ac_objext
23715 if { (ac_try="$ac_compile"
23716 case "(($ac_try" in
23717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23719 esac
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721 (eval "$ac_compile") 2>conftest.er1
23722 ac_status=$?
23723 grep -v '^ *+' conftest.er1 >conftest.err
23724 rm -f conftest.er1
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } &&
23728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23729 { (case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23732 esac
23733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23734 (eval "$ac_try") 2>&5
23735 ac_status=$?
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); }; } &&
23738 { ac_try='test -s conftest.$ac_objext'
23739 { (case "(($ac_try" in
23740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741 *) ac_try_echo=$ac_try;;
23742 esac
23743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23744 (eval "$ac_try") 2>&5
23745 ac_status=$?
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); }; }; then
23748 ac_cv_member_ns_msg__msg_ptr=yes
23749 else
23750 echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23753 cat >conftest.$ac_ext <<_ACEOF
23754 /* confdefs.h. */
23755 _ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h. */
23759 #ifdef HAVE_SYS_TYPES_H
23760 #include <sys/types.h>
23761 #endif
23762 #ifdef HAVE_NETINET_IN_H
23763 # include <netinet/in.h>
23764 #endif
23765 #ifdef HAVE_ARPA_NAMESER_H
23766 # include <arpa/nameser.h>
23767 #endif
23770 main ()
23772 static ns_msg ac_aggr;
23773 if (sizeof ac_aggr._msg_ptr)
23774 return 0;
23776 return 0;
23778 _ACEOF
23779 rm -f conftest.$ac_objext
23780 if { (ac_try="$ac_compile"
23781 case "(($ac_try" in
23782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783 *) ac_try_echo=$ac_try;;
23784 esac
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786 (eval "$ac_compile") 2>conftest.er1
23787 ac_status=$?
23788 grep -v '^ *+' conftest.er1 >conftest.err
23789 rm -f conftest.er1
23790 cat conftest.err >&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } &&
23793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23794 { (case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23797 esac
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_try") 2>&5
23800 ac_status=$?
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); }; } &&
23803 { ac_try='test -s conftest.$ac_objext'
23804 { (case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23807 esac
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809 (eval "$ac_try") 2>&5
23810 ac_status=$?
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); }; }; then
23813 ac_cv_member_ns_msg__msg_ptr=yes
23814 else
23815 echo "$as_me: failed program was:" >&5
23816 sed 's/^/| /' conftest.$ac_ext >&5
23818 ac_cv_member_ns_msg__msg_ptr=no
23821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23826 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23827 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23828 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23830 cat >>confdefs.h <<_ACEOF
23831 #define HAVE_NS_MSG__MSG_PTR 1
23832 _ACEOF
23838 { echo "$as_me:$LINENO: checking for timezone variable" >&5
23839 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
23840 if test "${ac_cv_have_timezone+set}" = set; then
23841 echo $ECHO_N "(cached) $ECHO_C" >&6
23842 else
23843 cat >conftest.$ac_ext <<_ACEOF
23844 /* confdefs.h. */
23845 _ACEOF
23846 cat confdefs.h >>conftest.$ac_ext
23847 cat >>conftest.$ac_ext <<_ACEOF
23848 /* end confdefs.h. */
23849 #include <time.h>
23851 main ()
23853 timezone;
23855 return 0;
23857 _ACEOF
23858 rm -f conftest.$ac_objext conftest$ac_exeext
23859 if { (ac_try="$ac_link"
23860 case "(($ac_try" in
23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862 *) ac_try_echo=$ac_try;;
23863 esac
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865 (eval "$ac_link") 2>conftest.er1
23866 ac_status=$?
23867 grep -v '^ *+' conftest.er1 >conftest.err
23868 rm -f conftest.er1
23869 cat conftest.err >&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); } &&
23872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23873 { (case "(($ac_try" in
23874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875 *) ac_try_echo=$ac_try;;
23876 esac
23877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878 (eval "$ac_try") 2>&5
23879 ac_status=$?
23880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881 (exit $ac_status); }; } &&
23882 { ac_try='test -s conftest$ac_exeext'
23883 { (case "(($ac_try" in
23884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885 *) ac_try_echo=$ac_try;;
23886 esac
23887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23888 (eval "$ac_try") 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892 ac_cv_have_timezone="yes"
23893 else
23894 echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23897 ac_cv_have_timezone="no"
23900 rm -f core conftest.err conftest.$ac_objext \
23901 conftest$ac_exeext conftest.$ac_ext
23903 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
23904 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
23905 if test "$ac_cv_have_timezone" = "yes"
23906 then
23908 cat >>confdefs.h <<\_ACEOF
23909 #define HAVE_TIMEZONE 1
23910 _ACEOF
23913 { echo "$as_me:$LINENO: checking for daylight variable" >&5
23914 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
23915 if test "${ac_cv_have_daylight+set}" = set; then
23916 echo $ECHO_N "(cached) $ECHO_C" >&6
23917 else
23918 cat >conftest.$ac_ext <<_ACEOF
23919 /* confdefs.h. */
23920 _ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h. */
23924 #include <time.h>
23926 main ()
23928 daylight;
23930 return 0;
23932 _ACEOF
23933 rm -f conftest.$ac_objext conftest$ac_exeext
23934 if { (ac_try="$ac_link"
23935 case "(($ac_try" in
23936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937 *) ac_try_echo=$ac_try;;
23938 esac
23939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23940 (eval "$ac_link") 2>conftest.er1
23941 ac_status=$?
23942 grep -v '^ *+' conftest.er1 >conftest.err
23943 rm -f conftest.er1
23944 cat conftest.err >&5
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } &&
23947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23948 { (case "(($ac_try" in
23949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23950 *) ac_try_echo=$ac_try;;
23951 esac
23952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23953 (eval "$ac_try") 2>&5
23954 ac_status=$?
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; } &&
23957 { ac_try='test -s conftest$ac_exeext'
23958 { (case "(($ac_try" in
23959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960 *) ac_try_echo=$ac_try;;
23961 esac
23962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963 (eval "$ac_try") 2>&5
23964 ac_status=$?
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); }; }; then
23967 ac_cv_have_daylight="yes"
23968 else
23969 echo "$as_me: failed program was:" >&5
23970 sed 's/^/| /' conftest.$ac_ext >&5
23972 ac_cv_have_daylight="no"
23975 rm -f core conftest.err conftest.$ac_objext \
23976 conftest$ac_exeext conftest.$ac_ext
23978 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
23979 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
23980 if test "$ac_cv_have_daylight" = "yes"
23981 then
23983 cat >>confdefs.h <<\_ACEOF
23984 #define HAVE_DAYLIGHT 1
23985 _ACEOF
23990 case $host_cpu in
23991 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
23992 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
23993 if test "${ac_cv_cpp_def___i386__+set}" = set; then
23994 echo $ECHO_N "(cached) $ECHO_C" >&6
23995 else
23996 cat >conftest.$ac_ext <<_ACEOF
23997 /* confdefs.h. */
23998 _ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h. */
24002 #ifndef __i386__
24004 #endif
24005 _ACEOF
24006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24007 $EGREP "yes" >/dev/null 2>&1; then
24008 ac_cv_cpp_def___i386__=yes
24009 else
24010 ac_cv_cpp_def___i386__=no
24012 rm -f conftest*
24015 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
24016 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
24017 if test $ac_cv_cpp_def___i386__ = yes; then
24018 CFLAGS="$CFLAGS -D__i386__"
24019 LINTFLAGS="$LINTFLAGS -D__i386__"
24022 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
24023 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
24024 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
24025 echo $ECHO_N "(cached) $ECHO_C" >&6
24026 else
24027 cat >conftest.$ac_ext <<_ACEOF
24028 /* confdefs.h. */
24029 _ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h. */
24033 #ifndef __x86_64__
24035 #endif
24036 _ACEOF
24037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24038 $EGREP "yes" >/dev/null 2>&1; then
24039 ac_cv_cpp_def___x86_64__=yes
24040 else
24041 ac_cv_cpp_def___x86_64__=no
24043 rm -f conftest*
24046 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
24047 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
24048 if test $ac_cv_cpp_def___x86_64__ = yes; then
24049 CFLAGS="$CFLAGS -D__x86_64__"
24050 LINTFLAGS="$LINTFLAGS -D__x86_64__"
24053 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
24054 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
24055 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24057 else
24058 cat >conftest.$ac_ext <<_ACEOF
24059 /* confdefs.h. */
24060 _ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h. */
24064 #ifndef __ALPHA__
24066 #endif
24067 _ACEOF
24068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24069 $EGREP "yes" >/dev/null 2>&1; then
24070 ac_cv_cpp_def___ALPHA__=yes
24071 else
24072 ac_cv_cpp_def___ALPHA__=no
24074 rm -f conftest*
24077 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
24078 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
24079 if test $ac_cv_cpp_def___ALPHA__ = yes; then
24080 CFLAGS="$CFLAGS -D__ALPHA__"
24081 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
24084 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
24085 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
24086 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
24087 echo $ECHO_N "(cached) $ECHO_C" >&6
24088 else
24089 cat >conftest.$ac_ext <<_ACEOF
24090 /* confdefs.h. */
24091 _ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24095 #ifndef __sparc__
24097 #endif
24098 _ACEOF
24099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24100 $EGREP "yes" >/dev/null 2>&1; then
24101 ac_cv_cpp_def___sparc__=yes
24102 else
24103 ac_cv_cpp_def___sparc__=no
24105 rm -f conftest*
24108 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
24109 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
24110 if test $ac_cv_cpp_def___sparc__ = yes; then
24111 CFLAGS="$CFLAGS -D__sparc__"
24112 LINTFLAGS="$LINTFLAGS -D__sparc__"
24115 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
24116 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
24117 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
24118 echo $ECHO_N "(cached) $ECHO_C" >&6
24119 else
24120 cat >conftest.$ac_ext <<_ACEOF
24121 /* confdefs.h. */
24122 _ACEOF
24123 cat confdefs.h >>conftest.$ac_ext
24124 cat >>conftest.$ac_ext <<_ACEOF
24125 /* end confdefs.h. */
24126 #ifndef __powerpc__
24128 #endif
24129 _ACEOF
24130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24131 $EGREP "yes" >/dev/null 2>&1; then
24132 ac_cv_cpp_def___powerpc__=yes
24133 else
24134 ac_cv_cpp_def___powerpc__=no
24136 rm -f conftest*
24139 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
24140 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
24141 if test $ac_cv_cpp_def___powerpc__ = yes; then
24142 CFLAGS="$CFLAGS -D__powerpc__"
24143 LINTFLAGS="$LINTFLAGS -D__powerpc__"
24146 esac
24148 case $host_vendor in
24149 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
24150 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
24151 if test "${ac_cv_cpp_def___sun__+set}" = set; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24153 else
24154 cat >conftest.$ac_ext <<_ACEOF
24155 /* confdefs.h. */
24156 _ACEOF
24157 cat confdefs.h >>conftest.$ac_ext
24158 cat >>conftest.$ac_ext <<_ACEOF
24159 /* end confdefs.h. */
24160 #ifndef __sun__
24162 #endif
24163 _ACEOF
24164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24165 $EGREP "yes" >/dev/null 2>&1; then
24166 ac_cv_cpp_def___sun__=yes
24167 else
24168 ac_cv_cpp_def___sun__=no
24170 rm -f conftest*
24173 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24174 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
24175 if test $ac_cv_cpp_def___sun__ = yes; then
24176 CFLAGS="$CFLAGS -D__sun__"
24177 LINTFLAGS="$LINTFLAGS -D__sun__"
24180 esac
24186 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
24188 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
24190 ac_config_commands="$ac_config_commands dlls/kernel/messages"
24192 ac_config_commands="$ac_config_commands dlls/user/resources"
24194 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
24196 ac_config_commands="$ac_config_commands include/wine"
24199 MAKE_RULES=Make.rules
24202 MAKE_DLL_RULES=dlls/Makedll.rules
24205 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24208 MAKE_TEST_RULES=dlls/Maketest.rules
24211 MAKE_LIB_RULES=libs/Makelib.rules
24214 MAKE_PROG_RULES=programs/Makeprog.rules
24217 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/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/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/inseng/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/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/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/unicode/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"
24220 cat >confcache <<\_ACEOF
24221 # This file is a shell script that caches the results of configure
24222 # tests run on this system so they can be shared between configure
24223 # scripts and configure runs, see configure's option --config-cache.
24224 # It is not useful on other systems. If it contains results you don't
24225 # want to keep, you may remove or edit it.
24227 # config.status only pays attention to the cache file if you give it
24228 # the --recheck option to rerun configure.
24230 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24231 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24232 # following values.
24234 _ACEOF
24236 # The following way of writing the cache mishandles newlines in values,
24237 # but we know of no workaround that is simple, portable, and efficient.
24238 # So, we kill variables containing newlines.
24239 # Ultrix sh set writes to stderr and can't be redirected directly,
24240 # and sets the high bit in the cache file unless we assign to the vars.
24242 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24243 eval ac_val=\$$ac_var
24244 case $ac_val in #(
24245 *${as_nl}*)
24246 case $ac_var in #(
24247 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24248 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24249 esac
24250 case $ac_var in #(
24251 _ | IFS | as_nl) ;; #(
24252 *) $as_unset $ac_var ;;
24253 esac ;;
24254 esac
24255 done
24257 (set) 2>&1 |
24258 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24259 *${as_nl}ac_space=\ *)
24260 # `set' does not quote correctly, so add quotes (double-quote
24261 # substitution turns \\\\ into \\, and sed turns \\ into \).
24262 sed -n \
24263 "s/'/'\\\\''/g;
24264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24265 ;; #(
24267 # `set' quotes correctly as required by POSIX, so do not add quotes.
24268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24270 esac |
24271 sort
24273 sed '
24274 /^ac_cv_env_/b end
24275 t clear
24276 :clear
24277 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24278 t end
24279 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24280 :end' >>confcache
24281 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24282 if test -w "$cache_file"; then
24283 test "x$cache_file" != "x/dev/null" &&
24284 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24285 echo "$as_me: updating cache $cache_file" >&6;}
24286 cat confcache >$cache_file
24287 else
24288 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24289 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24292 rm -f confcache
24294 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24295 # Let make expand exec_prefix.
24296 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24298 DEFS=-DHAVE_CONFIG_H
24300 ac_libobjs=
24301 ac_ltlibobjs=
24302 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24303 # 1. Remove the extension, and $U if already installed.
24304 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24305 ac_i=`echo "$ac_i" | sed "$ac_script"`
24306 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24307 # will be set to the directory where LIBOBJS objects are built.
24308 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24309 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24310 done
24311 LIBOBJS=$ac_libobjs
24313 LTLIBOBJS=$ac_ltlibobjs
24317 : ${CONFIG_STATUS=./config.status}
24318 ac_clean_files_save=$ac_clean_files
24319 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24320 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24321 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24322 cat >$CONFIG_STATUS <<_ACEOF
24323 #! $SHELL
24324 # Generated by $as_me.
24325 # Run this file to recreate the current configuration.
24326 # Compiler output produced by configure, useful for debugging
24327 # configure, is in config.log if it exists.
24329 debug=false
24330 ac_cs_recheck=false
24331 ac_cs_silent=false
24332 SHELL=\${CONFIG_SHELL-$SHELL}
24333 _ACEOF
24335 cat >>$CONFIG_STATUS <<\_ACEOF
24336 ## --------------------- ##
24337 ## M4sh Initialization. ##
24338 ## --------------------- ##
24340 # Be Bourne compatible
24341 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24342 emulate sh
24343 NULLCMD=:
24344 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24345 # is contrary to our usage. Disable this feature.
24346 alias -g '${1+"$@"}'='"$@"'
24347 setopt NO_GLOB_SUBST
24348 else
24349 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24351 BIN_SH=xpg4; export BIN_SH # for Tru64
24352 DUALCASE=1; export DUALCASE # for MKS sh
24355 # PATH needs CR
24356 # Avoid depending upon Character Ranges.
24357 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24358 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24359 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24360 as_cr_digits='0123456789'
24361 as_cr_alnum=$as_cr_Letters$as_cr_digits
24363 # The user is always right.
24364 if test "${PATH_SEPARATOR+set}" != set; then
24365 echo "#! /bin/sh" >conf$$.sh
24366 echo "exit 0" >>conf$$.sh
24367 chmod +x conf$$.sh
24368 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24369 PATH_SEPARATOR=';'
24370 else
24371 PATH_SEPARATOR=:
24373 rm -f conf$$.sh
24376 # Support unset when possible.
24377 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24378 as_unset=unset
24379 else
24380 as_unset=false
24384 # IFS
24385 # We need space, tab and new line, in precisely that order. Quoting is
24386 # there to prevent editors from complaining about space-tab.
24387 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24388 # splitting by setting IFS to empty value.)
24389 as_nl='
24391 IFS=" "" $as_nl"
24393 # Find who we are. Look in the path if we contain no directory separator.
24394 case $0 in
24395 *[\\/]* ) as_myself=$0 ;;
24396 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24397 for as_dir in $PATH
24399 IFS=$as_save_IFS
24400 test -z "$as_dir" && as_dir=.
24401 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24402 done
24403 IFS=$as_save_IFS
24406 esac
24407 # We did not find ourselves, most probably we were run as `sh COMMAND'
24408 # in which case we are not to be found in the path.
24409 if test "x$as_myself" = x; then
24410 as_myself=$0
24412 if test ! -f "$as_myself"; then
24413 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24414 { (exit 1); exit 1; }
24417 # Work around bugs in pre-3.0 UWIN ksh.
24418 for as_var in ENV MAIL MAILPATH
24419 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24420 done
24421 PS1='$ '
24422 PS2='> '
24423 PS4='+ '
24425 # NLS nuisances.
24426 for as_var in \
24427 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24428 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24429 LC_TELEPHONE LC_TIME
24431 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24432 eval $as_var=C; export $as_var
24433 else
24434 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24436 done
24438 # Required to use basename.
24439 if expr a : '\(a\)' >/dev/null 2>&1 &&
24440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24441 as_expr=expr
24442 else
24443 as_expr=false
24446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24447 as_basename=basename
24448 else
24449 as_basename=false
24453 # Name of the executable.
24454 as_me=`$as_basename -- "$0" ||
24455 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24456 X"$0" : 'X\(//\)$' \| \
24457 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24458 echo X/"$0" |
24459 sed '/^.*\/\([^/][^/]*\)\/*$/{
24460 s//\1/
24463 /^X\/\(\/\/\)$/{
24464 s//\1/
24467 /^X\/\(\/\).*/{
24468 s//\1/
24471 s/.*/./; q'`
24473 # CDPATH.
24474 $as_unset CDPATH
24478 as_lineno_1=$LINENO
24479 as_lineno_2=$LINENO
24480 test "x$as_lineno_1" != "x$as_lineno_2" &&
24481 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24483 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24484 # uniformly replaced by the line number. The first 'sed' inserts a
24485 # line-number line after each line using $LINENO; the second 'sed'
24486 # does the real work. The second script uses 'N' to pair each
24487 # line-number line with the line containing $LINENO, and appends
24488 # trailing '-' during substitution so that $LINENO is not a special
24489 # case at line end.
24490 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24491 # scripts with optimization help from Paolo Bonzini. Blame Lee
24492 # E. McMahon (1931-1989) for sed's syntax. :-)
24493 sed -n '
24495 /[$]LINENO/=
24496 ' <$as_myself |
24497 sed '
24498 s/[$]LINENO.*/&-/
24499 t lineno
24501 :lineno
24503 :loop
24504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24505 t loop
24506 s/-\n.*//
24507 ' >$as_me.lineno &&
24508 chmod +x "$as_me.lineno" ||
24509 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24510 { (exit 1); exit 1; }; }
24512 # Don't try to exec as it changes $[0], causing all sort of problems
24513 # (the dirname of $[0] is not the place where we might find the
24514 # original and so on. Autoconf is especially sensitive to this).
24515 . "./$as_me.lineno"
24516 # Exit status is that of the last command.
24517 exit
24521 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24522 as_dirname=dirname
24523 else
24524 as_dirname=false
24527 ECHO_C= ECHO_N= ECHO_T=
24528 case `echo -n x` in
24529 -n*)
24530 case `echo 'x\c'` in
24531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24532 *) ECHO_C='\c';;
24533 esac;;
24535 ECHO_N='-n';;
24536 esac
24538 if expr a : '\(a\)' >/dev/null 2>&1 &&
24539 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24540 as_expr=expr
24541 else
24542 as_expr=false
24545 rm -f conf$$ conf$$.exe conf$$.file
24546 if test -d conf$$.dir; then
24547 rm -f conf$$.dir/conf$$.file
24548 else
24549 rm -f conf$$.dir
24550 mkdir conf$$.dir
24552 echo >conf$$.file
24553 if ln -s conf$$.file conf$$ 2>/dev/null; then
24554 as_ln_s='ln -s'
24555 # ... but there are two gotchas:
24556 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24557 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24558 # In both cases, we have to default to `cp -p'.
24559 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24560 as_ln_s='cp -p'
24561 elif ln conf$$.file conf$$ 2>/dev/null; then
24562 as_ln_s=ln
24563 else
24564 as_ln_s='cp -p'
24566 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24567 rmdir conf$$.dir 2>/dev/null
24569 if mkdir -p . 2>/dev/null; then
24570 as_mkdir_p=:
24571 else
24572 test -d ./-p && rmdir ./-p
24573 as_mkdir_p=false
24576 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
24577 # systems may use methods other than mode bits to determine executability.
24578 cat >conf$$.file <<_ASEOF
24579 #! /bin/sh
24580 exit 0
24581 _ASEOF
24582 chmod +x conf$$.file
24583 if test -x conf$$.file >/dev/null 2>&1; then
24584 as_executable_p="test -x"
24585 else
24586 as_executable_p=:
24588 rm -f conf$$.file
24590 # Sed expression to map a string onto a valid CPP name.
24591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24593 # Sed expression to map a string onto a valid variable name.
24594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24597 exec 6>&1
24599 # Save the log message, to keep $[0] and so on meaningful, and to
24600 # report actual input values of CONFIG_FILES etc. instead of their
24601 # values after options handling.
24602 ac_log="
24603 This file was extended by Wine $as_me 0.9.16, which was
24604 generated by GNU Autoconf 2.59e. Invocation command line was
24606 CONFIG_FILES = $CONFIG_FILES
24607 CONFIG_HEADERS = $CONFIG_HEADERS
24608 CONFIG_LINKS = $CONFIG_LINKS
24609 CONFIG_COMMANDS = $CONFIG_COMMANDS
24610 $ $0 $@
24612 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24615 _ACEOF
24617 cat >>$CONFIG_STATUS <<_ACEOF
24618 # Files that config.status was made for.
24619 config_files="$ac_config_files"
24620 config_headers="$ac_config_headers"
24621 config_commands="$ac_config_commands"
24623 _ACEOF
24625 cat >>$CONFIG_STATUS <<\_ACEOF
24626 ac_cs_usage="\
24627 \`$as_me' instantiates files from templates according to the
24628 current configuration.
24630 Usage: $0 [OPTIONS] [FILE]...
24632 -h, --help print this help, then exit
24633 -V, --version print version number, then exit
24634 -q, --quiet do not print progress messages
24635 -d, --debug don't remove temporary files
24636 --recheck update $as_me by reconfiguring in the same conditions
24637 --file=FILE[:TEMPLATE]
24638 instantiate the configuration file FILE
24639 --header=FILE[:TEMPLATE]
24640 instantiate the configuration header FILE
24642 Configuration files:
24643 $config_files
24645 Configuration headers:
24646 $config_headers
24648 Configuration commands:
24649 $config_commands
24651 Report bugs to <bug-autoconf@gnu.org>."
24653 _ACEOF
24654 cat >>$CONFIG_STATUS <<_ACEOF
24655 ac_cs_version="\\
24656 Wine config.status 0.9.16
24657 configured by $0, generated by GNU Autoconf 2.59e,
24658 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24660 Copyright (C) 2006 Free Software Foundation, Inc.
24661 This config.status script is free software; the Free Software Foundation
24662 gives unlimited permission to copy, distribute and modify it."
24664 ac_pwd='$ac_pwd'
24665 srcdir='$srcdir'
24666 INSTALL='$INSTALL'
24667 _ACEOF
24669 cat >>$CONFIG_STATUS <<\_ACEOF
24670 # If no file are specified by the user, then we need to provide default
24671 # value. By we need to know if files were specified by the user.
24672 ac_need_defaults=:
24673 while test $# != 0
24675 case $1 in
24676 --*=*)
24677 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24678 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24679 ac_shift=:
24682 ac_option=$1
24683 ac_optarg=$2
24684 ac_shift=shift
24686 esac
24688 case $ac_option in
24689 # Handling of the options.
24690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24691 ac_cs_recheck=: ;;
24692 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24693 echo "$ac_cs_version"; exit ;;
24694 --debug | --debu | --deb | --de | --d | -d )
24695 debug=: ;;
24696 --file | --fil | --fi | --f )
24697 $ac_shift
24698 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24699 ac_need_defaults=false;;
24700 --header | --heade | --head | --hea )
24701 $ac_shift
24702 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24703 ac_need_defaults=false;;
24704 --he | --h)
24705 # Conflict between --help and --header
24706 { echo "$as_me: error: ambiguous option: $1
24707 Try \`$0 --help' for more information." >&2
24708 { (exit 1); exit 1; }; };;
24709 --help | --hel | -h )
24710 echo "$ac_cs_usage"; exit ;;
24711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24712 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24713 ac_cs_silent=: ;;
24715 # This is an error.
24716 -*) { echo "$as_me: error: unrecognized option: $1
24717 Try \`$0 --help' for more information." >&2
24718 { (exit 1); exit 1; }; } ;;
24720 *) ac_config_targets="$ac_config_targets $1"
24721 ac_need_defaults=false ;;
24723 esac
24724 shift
24725 done
24727 ac_configure_extra_args=
24729 if $ac_cs_silent; then
24730 exec 6>/dev/null
24731 ac_configure_extra_args="$ac_configure_extra_args --silent"
24734 _ACEOF
24735 cat >>$CONFIG_STATUS <<_ACEOF
24736 if \$ac_cs_recheck; then
24737 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24738 CONFIG_SHELL=$SHELL
24739 export CONFIG_SHELL
24740 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24743 _ACEOF
24744 cat >>$CONFIG_STATUS <<\_ACEOF
24745 exec 5>>config.log
24747 echo
24748 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24749 ## Running $as_me. ##
24750 _ASBOX
24751 echo "$ac_log"
24752 } >&5
24754 _ACEOF
24755 cat >>$CONFIG_STATUS <<_ACEOF
24756 _ACEOF
24758 cat >>$CONFIG_STATUS <<\_ACEOF
24760 # Handling of arguments.
24761 for ac_config_target in $ac_config_targets
24763 case $ac_config_target in
24764 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24765 "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24766 "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24767 "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24768 "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24769 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24770 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24771 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24772 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24773 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24774 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24775 "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
24776 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24777 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24778 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24779 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24780 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24781 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24782 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24783 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24784 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24785 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24786 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24787 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24788 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24789 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24790 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24791 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24792 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24793 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
24794 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24795 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24796 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
24797 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
24798 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24799 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24800 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24801 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
24802 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24803 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24804 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24805 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24806 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24807 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24808 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24809 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24810 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24811 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24812 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24813 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24814 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24815 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24816 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24817 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24818 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24819 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24820 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24821 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24822 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24823 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24824 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24825 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24826 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24827 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24828 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24829 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24830 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24831 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24832 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24833 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24834 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24835 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24836 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24837 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24838 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24839 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24840 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24841 "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24842 "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24843 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24844 "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24845 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24846 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
24847 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
24848 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
24849 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
24850 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
24851 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
24852 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
24853 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
24854 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
24855 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
24856 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
24857 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
24858 "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
24859 "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
24860 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
24861 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
24862 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
24863 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
24864 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
24865 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
24866 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
24867 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
24868 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
24869 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
24870 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
24871 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
24872 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
24873 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
24874 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
24875 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
24876 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
24877 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
24878 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
24879 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
24880 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
24881 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
24882 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
24883 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
24884 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
24885 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
24886 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
24887 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
24888 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
24889 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
24890 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
24891 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
24892 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
24893 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
24894 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
24895 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
24896 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
24897 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
24898 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
24899 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
24900 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
24901 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
24902 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
24903 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
24904 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
24905 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
24906 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
24907 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
24908 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
24909 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
24910 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
24911 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
24912 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
24913 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
24914 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
24915 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
24916 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
24917 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
24918 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
24919 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
24920 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
24921 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
24922 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
24923 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
24924 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
24925 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
24926 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
24927 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
24928 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
24929 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
24930 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
24931 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
24932 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
24933 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
24934 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
24935 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
24936 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
24937 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
24938 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
24939 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
24940 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
24941 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
24942 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
24943 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
24944 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
24945 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
24946 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
24947 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
24948 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
24949 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
24950 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
24951 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
24952 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
24953 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
24954 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
24955 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
24956 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
24957 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
24958 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
24959 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
24960 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
24961 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
24962 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
24963 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
24964 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
24965 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
24966 "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
24967 "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
24968 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
24969 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
24970 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
24971 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
24972 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
24973 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
24974 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
24975 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
24976 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
24977 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
24978 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
24979 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
24980 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
24981 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
24982 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
24983 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
24984 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
24985 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
24986 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
24987 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
24988 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
24989 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
24990 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
24991 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
24992 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
24993 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
24994 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
24995 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
24996 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
24997 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
24998 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
24999 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
25000 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
25001 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
25002 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
25003 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
25004 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
25005 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
25006 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
25007 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
25008 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
25009 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
25010 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
25011 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
25012 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
25013 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
25014 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
25015 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
25016 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
25017 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25018 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
25019 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
25020 "libs/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
25021 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
25022 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
25023 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
25024 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
25025 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
25026 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
25027 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
25028 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
25029 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
25030 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
25031 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
25032 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
25033 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
25034 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
25035 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
25036 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
25037 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
25038 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
25039 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
25040 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
25041 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
25042 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
25043 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
25044 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
25045 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
25046 "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
25047 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
25048 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
25049 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
25050 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
25051 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
25052 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
25053 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
25054 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
25055 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
25056 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
25057 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
25058 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
25059 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
25060 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
25061 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
25062 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25063 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
25064 "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
25065 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
25066 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
25067 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
25068 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
25069 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
25071 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25072 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25073 { (exit 1); exit 1; }; };;
25074 esac
25075 done
25078 # If the user did not use the arguments to specify the items to instantiate,
25079 # then the envvar interface is used. Set only those that are not.
25080 # We use the long form for the default assignment because of an extremely
25081 # bizarre bug on SunOS 4.1.3.
25082 if $ac_need_defaults; then
25083 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25084 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25085 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25088 # Have a temporary directory for convenience. Make it in the build tree
25089 # simply because there is no reason against having it here, and in addition,
25090 # creating and moving files from /tmp can sometimes cause problems.
25091 # Hook for its removal unless debugging.
25092 # Note that there is a small window in which the directory will not be cleaned:
25093 # after its creation but before its name has been assigned to `$tmp'.
25094 $debug ||
25096 tmp=
25097 trap 'exit_status=$?
25098 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25100 trap '{ (exit 1); exit 1; }' 1 2 13 15
25102 # Create a (secure) tmp directory for tmp files.
25105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25106 test -n "$tmp" && test -d "$tmp"
25107 } ||
25109 tmp=./conf$$-$RANDOM
25110 (umask 077 && mkdir "$tmp")
25111 } ||
25113 echo "$me: cannot create a temporary directory in ." >&2
25114 { (exit 1); exit 1; }
25118 # Set up the sed scripts for CONFIG_FILES section.
25121 # No need to generate the scripts if there are no CONFIG_FILES.
25122 # This happens for instance when ./config.status config.h
25123 if test -n "$CONFIG_FILES"; then
25125 _ACEOF
25127 # Create sed commands to just substitute file output variables.
25129 # Remaining file output variables are in a fragment that also has non-file
25130 # output varibles.
25134 ac_delim='%!_!# '
25135 for ac_last_try in false false false false false :; do
25136 cat >conf$$subs.sed <<_ACEOF
25137 SHELL!$SHELL$ac_delim
25138 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25139 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25140 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25141 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25142 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25143 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25144 exec_prefix!$exec_prefix$ac_delim
25145 prefix!$prefix$ac_delim
25146 program_transform_name!$program_transform_name$ac_delim
25147 bindir!$bindir$ac_delim
25148 sbindir!$sbindir$ac_delim
25149 libexecdir!$libexecdir$ac_delim
25150 datarootdir!$datarootdir$ac_delim
25151 datadir!$datadir$ac_delim
25152 sysconfdir!$sysconfdir$ac_delim
25153 sharedstatedir!$sharedstatedir$ac_delim
25154 localstatedir!$localstatedir$ac_delim
25155 includedir!$includedir$ac_delim
25156 oldincludedir!$oldincludedir$ac_delim
25157 docdir!$docdir$ac_delim
25158 infodir!$infodir$ac_delim
25159 htmldir!$htmldir$ac_delim
25160 dvidir!$dvidir$ac_delim
25161 pdfdir!$pdfdir$ac_delim
25162 psdir!$psdir$ac_delim
25163 libdir!$libdir$ac_delim
25164 localedir!$localedir$ac_delim
25165 mandir!$mandir$ac_delim
25166 DEFS!$DEFS$ac_delim
25167 ECHO_C!$ECHO_C$ac_delim
25168 ECHO_N!$ECHO_N$ac_delim
25169 ECHO_T!$ECHO_T$ac_delim
25170 LIBS!$LIBS$ac_delim
25171 build_alias!$build_alias$ac_delim
25172 host_alias!$host_alias$ac_delim
25173 target_alias!$target_alias$ac_delim
25174 build!$build$ac_delim
25175 build_cpu!$build_cpu$ac_delim
25176 build_vendor!$build_vendor$ac_delim
25177 build_os!$build_os$ac_delim
25178 host!$host$ac_delim
25179 host_cpu!$host_cpu$ac_delim
25180 host_vendor!$host_vendor$ac_delim
25181 host_os!$host_os$ac_delim
25182 WIN16_FILES!$WIN16_FILES$ac_delim
25183 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25184 SET_MAKE!$SET_MAKE$ac_delim
25185 CC!$CC$ac_delim
25186 CFLAGS!$CFLAGS$ac_delim
25187 LDFLAGS!$LDFLAGS$ac_delim
25188 CPPFLAGS!$CPPFLAGS$ac_delim
25189 ac_ct_CC!$ac_ct_CC$ac_delim
25190 EXEEXT!$EXEEXT$ac_delim
25191 OBJEXT!$OBJEXT$ac_delim
25192 CXX!$CXX$ac_delim
25193 CXXFLAGS!$CXXFLAGS$ac_delim
25194 ac_ct_CXX!$ac_ct_CXX$ac_delim
25195 CPPBIN!$CPPBIN$ac_delim
25196 TOOLSDIR!$TOOLSDIR$ac_delim
25197 XMKMF!$XMKMF$ac_delim
25198 CPP!$CPP$ac_delim
25199 X_CFLAGS!$X_CFLAGS$ac_delim
25200 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25201 X_LIBS!$X_LIBS$ac_delim
25202 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25203 LEX!$LEX$ac_delim
25204 LEXLIB!$LEXLIB$ac_delim
25205 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25206 XLEX!$XLEX$ac_delim
25207 BISON!$BISON$ac_delim
25208 AS!$AS$ac_delim
25209 ac_ct_AS!$ac_ct_AS$ac_delim
25210 LD!$LD$ac_delim
25211 AR!$AR$ac_delim
25212 RANLIB!$RANLIB$ac_delim
25213 STRIP!$STRIP$ac_delim
25214 WINDRES!$WINDRES$ac_delim
25215 LN_S!$LN_S$ac_delim
25216 _ACEOF
25218 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25219 break
25220 elif $ac_last_try; then
25221 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25222 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25223 { (exit 1); exit 1; }; }
25224 else
25225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25227 done
25229 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25230 if test -n "$ac_eof"; then
25231 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25232 ac_eof=`expr $ac_eof + 1`
25235 cat >>$CONFIG_STATUS <<_ACEOF
25236 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25238 /^[ ]*@MAKE_RULES@[ ]*$/{
25239 r $MAKE_RULES
25242 /^[ ]*@MAKE_DLL_RULES@[ ]*$/{
25243 r $MAKE_DLL_RULES
25246 /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
25247 r $MAKE_IMPLIB_RULES
25250 /^[ ]*@MAKE_TEST_RULES@[ ]*$/{
25251 r $MAKE_TEST_RULES
25254 /^[ ]*@MAKE_LIB_RULES@[ ]*$/{
25255 r $MAKE_LIB_RULES
25258 /^[ ]*@MAKE_PROG_RULES@[ ]*$/{
25259 r $MAKE_PROG_RULES
25262 _ACEOF
25263 sed '
25264 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25265 s/^/s,@/; s/!/@,|#_!!_#|/
25268 s/'"$ac_delim"'$/,g/; t
25269 s/$/\\/; p
25270 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25271 ' >>$CONFIG_STATUS <conf$$subs.sed
25272 rm -f conf$$subs.sed
25273 cat >>$CONFIG_STATUS <<_ACEOF
25274 CEOF$ac_eof
25275 _ACEOF
25278 ac_delim='%!_!# '
25279 for ac_last_try in false false false false false :; do
25280 cat >conf$$subs.sed <<_ACEOF
25281 LN!$LN$ac_delim
25282 GREP!$GREP$ac_delim
25283 EGREP!$EGREP$ac_delim
25284 LDCONFIG!$LDCONFIG$ac_delim
25285 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25286 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25287 INSTALL_DATA!$INSTALL_DATA$ac_delim
25288 LINT!$LINT$ac_delim
25289 LINTFLAGS!$LINTFLAGS$ac_delim
25290 FONTFORGE!$FONTFORGE$ac_delim
25291 PKG_CONFIG!$PKG_CONFIG$ac_delim
25292 PRELINK!$PRELINK$ac_delim
25293 LIBPTHREAD!$LIBPTHREAD$ac_delim
25294 XLIB!$XLIB$ac_delim
25295 XFILES!$XFILES$ac_delim
25296 OPENGLFILES!$OPENGLFILES$ac_delim
25297 GLU32FILES!$GLU32FILES$ac_delim
25298 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25299 GLUT_LIBS!$GLUT_LIBS$ac_delim
25300 GLUT32FILES!$GLUT32FILES$ac_delim
25301 NASLIBS!$NASLIBS$ac_delim
25302 XML2LIBS!$XML2LIBS$ac_delim
25303 XML2INCL!$XML2INCL$ac_delim
25304 XSLTLIBS!$XSLTLIBS$ac_delim
25305 XSLTINCL!$XSLTINCL$ac_delim
25306 HALINCL!$HALINCL$ac_delim
25307 CURSESLIBS!$CURSESLIBS$ac_delim
25308 sane_devel!$sane_devel$ac_delim
25309 SANELIBS!$SANELIBS$ac_delim
25310 SANEINCL!$SANEINCL$ac_delim
25311 gphoto2_devel!$gphoto2_devel$ac_delim
25312 gphoto2port_devel!$gphoto2port_devel$ac_delim
25313 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25314 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25315 ICULIBS!$ICULIBS$ac_delim
25316 RESOLVLIBS!$RESOLVLIBS$ac_delim
25317 LCMSLIBS!$LCMSLIBS$ac_delim
25318 LDAPLIBS!$LDAPLIBS$ac_delim
25319 FREETYPELIBS!$FREETYPELIBS$ac_delim
25320 FREETYPEINCL!$FREETYPEINCL$ac_delim
25321 ft_devel!$ft_devel$ac_delim
25322 ft_devel2!$ft_devel2$ac_delim
25323 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25324 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25325 ARTSLIBS!$ARTSLIBS$ac_delim
25326 ARTSINCL!$ARTSINCL$ac_delim
25327 ESDCONFIG!$ESDCONFIG$ac_delim
25328 ESDLIBS!$ESDLIBS$ac_delim
25329 ESDINCL!$ESDINCL$ac_delim
25330 ALSALIBS!$ALSALIBS$ac_delim
25331 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25332 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25333 BUILTINFLAG!$BUILTINFLAG$ac_delim
25334 DLLEXT!$DLLEXT$ac_delim
25335 DLLFLAGS!$DLLFLAGS$ac_delim
25336 DLLIBS!$DLLIBS$ac_delim
25337 LDSHARED!$LDSHARED$ac_delim
25338 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25339 LIBEXT!$LIBEXT$ac_delim
25340 IMPLIBEXT!$IMPLIBEXT$ac_delim
25341 DLLTOOL!$DLLTOOL$ac_delim
25342 DLLWRAP!$DLLWRAP$ac_delim
25343 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
25344 LDEXERPATH!$LDEXERPATH$ac_delim
25345 LDDLLRPATH!$LDDLLRPATH$ac_delim
25346 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25347 IOKITLIB!$IOKITLIB$ac_delim
25348 COREAUDIO!$COREAUDIO$ac_delim
25349 CROSSTEST!$CROSSTEST$ac_delim
25350 CROSSCC!$CROSSCC$ac_delim
25351 CROSSWINDRES!$CROSSWINDRES$ac_delim
25352 LDPATH!$LDPATH$ac_delim
25353 CRTLIBS!$CRTLIBS$ac_delim
25354 SOCKETLIBS!$SOCKETLIBS$ac_delim
25355 MAIN_BINARY!$MAIN_BINARY$ac_delim
25356 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25357 LDD!$LDD$ac_delim
25358 LIBOBJS!$LIBOBJS$ac_delim
25359 LTLIBOBJS!$LTLIBOBJS$ac_delim
25360 _ACEOF
25362 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25363 break
25364 elif $ac_last_try; then
25365 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25366 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25367 { (exit 1); exit 1; }; }
25368 else
25369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25371 done
25373 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25374 if test -n "$ac_eof"; then
25375 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25376 ac_eof=`expr $ac_eof + 1`
25379 cat >>$CONFIG_STATUS <<_ACEOF
25380 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25382 _ACEOF
25383 sed '
25384 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25385 s/^/s,@/; s/!/@,|#_!!_#|/
25388 s/'"$ac_delim"'$/,g/; t
25389 s/$/\\/; p
25390 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25391 ' >>$CONFIG_STATUS <conf$$subs.sed
25392 rm -f conf$$subs.sed
25393 cat >>$CONFIG_STATUS <<_ACEOF
25394 :end
25395 s/|#_!!_#|//g
25396 CEOF$ac_eof
25397 _ACEOF
25400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25402 # trailing colons and then remove the whole line if VPATH becomes empty
25403 # (actually we leave an empty line to preserve line numbers).
25404 if test "x$srcdir" = x.; then
25405 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25406 s/:*\$(srcdir):*/:/
25407 s/:*\${srcdir}:*/:/
25408 s/:*@srcdir@:*/:/
25409 s/^\([^=]*=[ ]*\):*/\1/
25410 s/:*$//
25411 s/^[^=]*=[ ]*$//
25415 cat >>$CONFIG_STATUS <<\_ACEOF
25416 fi # test -n "$CONFIG_FILES"
25419 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25421 case $ac_tag in
25422 :[FHLC]) ac_mode=$ac_tag; continue;;
25423 esac
25424 case $ac_mode$ac_tag in
25425 :[FHL]*:*);;
25426 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25427 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25428 { (exit 1); exit 1; }; };;
25429 :[FH]-) ac_tag=-:-;;
25430 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25431 esac
25432 ac_save_IFS=$IFS
25433 IFS=:
25434 set x $ac_tag
25435 IFS=$ac_save_IFS
25436 shift
25437 ac_file=$1
25438 shift
25440 case $ac_mode in
25441 :L) ac_source=$1;;
25442 :[FH])
25443 ac_file_inputs=
25444 for ac_f
25446 case $ac_f in
25447 -) ac_f="$tmp/stdin";;
25448 *) # Look for the file first in the build tree, then in the source tree
25449 # (if the path is not absolute). The absolute path cannot be DOS-style,
25450 # because $ac_f cannot contain `:'.
25451 test -f "$ac_f" ||
25452 case $ac_f in
25453 [\\/$]*) false;;
25454 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25455 esac ||
25456 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25457 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25458 { (exit 1); exit 1; }; };;
25459 esac
25460 ac_file_inputs="$ac_file_inputs $ac_f"
25461 done
25463 # Let's still pretend it is `configure' which instantiates (i.e., don't
25464 # use $as_me), people would be surprised to read:
25465 # /* config.h. Generated by config.status. */
25466 configure_input="Generated from "`IFS=:
25467 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25468 if test x"$ac_file" != x-; then
25469 configure_input="$ac_file. $configure_input"
25470 { echo "$as_me:$LINENO: creating $ac_file" >&5
25471 echo "$as_me: creating $ac_file" >&6;}
25474 case $ac_tag in
25475 *:-:* | *:-) cat >"$tmp/stdin";;
25476 esac
25478 esac
25480 ac_dir=`$as_dirname -- "$ac_file" ||
25481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25482 X"$ac_file" : 'X\(//\)[^/]' \| \
25483 X"$ac_file" : 'X\(//\)$' \| \
25484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25485 echo X"$ac_file" |
25486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25487 s//\1/
25490 /^X\(\/\/\)[^/].*/{
25491 s//\1/
25494 /^X\(\/\/\)$/{
25495 s//\1/
25498 /^X\(\/\).*/{
25499 s//\1/
25502 s/.*/./; q'`
25503 { as_dir="$ac_dir"
25504 case $as_dir in #(
25505 -*) as_dir=./$as_dir;;
25506 esac
25507 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25508 as_dirs=
25509 while :; do
25510 case $as_dir in #(
25511 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25512 *) as_qdir=$as_dir;;
25513 esac
25514 as_dirs="'$as_qdir' $as_dirs"
25515 as_dir=`$as_dirname -- "$as_dir" ||
25516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25517 X"$as_dir" : 'X\(//\)[^/]' \| \
25518 X"$as_dir" : 'X\(//\)$' \| \
25519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25520 echo X"$as_dir" |
25521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25522 s//\1/
25525 /^X\(\/\/\)[^/].*/{
25526 s//\1/
25529 /^X\(\/\/\)$/{
25530 s//\1/
25533 /^X\(\/\).*/{
25534 s//\1/
25537 s/.*/./; q'`
25538 test -d "$as_dir" && break
25539 done
25540 test -z "$as_dirs" || eval "mkdir $as_dirs"
25541 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25542 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25543 { (exit 1); exit 1; }; }; }
25544 ac_builddir=.
25546 case "$ac_dir" in
25547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25549 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25550 # A ".." for each directory in $ac_dir_suffix.
25551 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25552 case $ac_top_builddir_sub in
25553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25555 esac ;;
25556 esac
25557 ac_abs_top_builddir=$ac_pwd
25558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25559 # for backward compatibility:
25560 ac_top_builddir=$ac_top_build_prefix
25562 case $srcdir in
25563 .) # We are building in place.
25564 ac_srcdir=.
25565 ac_top_srcdir=$ac_top_builddir_sub
25566 ac_abs_top_srcdir=$ac_pwd ;;
25567 [\\/]* | ?:[\\/]* ) # Absolute name.
25568 ac_srcdir=$srcdir$ac_dir_suffix;
25569 ac_top_srcdir=$srcdir
25570 ac_abs_top_srcdir=$srcdir ;;
25571 *) # Relative name.
25572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25573 ac_top_srcdir=$ac_top_build_prefix$srcdir
25574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25575 esac
25576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25579 case $ac_mode in
25582 # CONFIG_FILE
25585 case $INSTALL in
25586 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25587 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25588 esac
25589 _ACEOF
25591 cat >>$CONFIG_STATUS <<\_ACEOF
25592 # If the template does not know about datarootdir, expand it.
25593 # FIXME: This hack should be removed a few years after 2.60.
25594 ac_datarootdir_hack=; ac_datarootdir_seen=
25596 case `sed -n '/datarootdir/ {
25600 /@datadir@/p
25601 /@docdir@/p
25602 /@infodir@/p
25603 /@localedir@/p
25604 /@mandir@/p
25605 ' $ac_file_inputs` in
25606 *datarootdir*) ac_datarootdir_seen=yes;;
25607 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25608 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25609 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25610 _ACEOF
25611 cat >>$CONFIG_STATUS <<_ACEOF
25612 ac_datarootdir_hack='
25613 s&@datadir@&$datadir&g
25614 s&@docdir@&$docdir&g
25615 s&@infodir@&$infodir&g
25616 s&@localedir@&$localedir&g
25617 s&@mandir@&$mandir&g
25618 s&\\\${datarootdir}&$datarootdir&g' ;;
25619 esac
25620 _ACEOF
25622 # Neutralize VPATH when `$srcdir' = `.'.
25623 # Shell code in configure.ac might set extrasub.
25624 # FIXME: do we really want to maintain this feature?
25625 cat >>$CONFIG_STATUS <<_ACEOF
25626 sed "$ac_vpsub
25627 $extrasub
25628 _ACEOF
25629 cat >>$CONFIG_STATUS <<\_ACEOF
25631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25632 s&@configure_input@&$configure_input&;t t
25633 s&@top_builddir@&$ac_top_builddir_sub&;t t
25634 s&@srcdir@&$ac_srcdir&;t t
25635 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25636 s&@top_srcdir@&$ac_top_srcdir&;t t
25637 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25638 s&@builddir@&$ac_builddir&;t t
25639 s&@abs_builddir@&$ac_abs_builddir&;t t
25640 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25641 s&@INSTALL@&$ac_INSTALL&;t t
25642 $ac_datarootdir_hack
25643 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25645 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25646 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25647 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25648 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25649 which seems to be undefined. Please make sure it is defined." >&5
25650 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25651 which seems to be undefined. Please make sure it is defined." >&2;}
25653 rm -f "$tmp/stdin"
25654 case $ac_file in
25655 -) cat "$tmp/out"; rm -f "$tmp/out";;
25656 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25657 esac
25661 # CONFIG_HEADER
25663 _ACEOF
25665 # Transform confdefs.h into a sed script `conftest.defines', that
25666 # substitutes the proper values into config.h.in to produce config.h.
25667 rm -f conftest.defines conftest.tail
25668 # First, append a space to every undef/define line, to ease matching.
25669 echo 's/$/ /' >conftest.defines
25670 # Then, protect against being on the right side of a sed subst, or in
25671 # an unquoted here document, in config.status. If some macros were
25672 # called several times there might be several #defines for the same
25673 # symbol, which is useless. But do not sort them, since the last
25674 # AC_DEFINE must be honored.
25675 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25676 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25677 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25678 # PARAMS is the parameter list in the macro definition--in most cases, it's
25679 # just an empty string.
25680 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25681 ac_dB='\\)[ (].*,\\1define\\2'
25682 ac_dC=' '
25683 ac_dD=' ,'
25685 uniq confdefs.h |
25686 sed -n '
25687 t rset
25688 :rset
25689 s/^[ ]*#[ ]*define[ ][ ]*//
25690 t ok
25693 s/[\\&,]/\\&/g
25694 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25695 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25696 ' >>conftest.defines
25698 # Remove the space that was appended to ease matching.
25699 # Then replace #undef with comments. This is necessary, for
25700 # example, in the case of _POSIX_SOURCE, which is predefined and required
25701 # on some systems where configure will not decide to define it.
25702 # (The regexp can be short, since the line contains either #define or #undef.)
25703 echo 's/ $//
25704 s,^[ #]*u.*,/* & */,' >>conftest.defines
25706 # Break up conftest.defines:
25707 ac_max_sed_lines=50
25709 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25710 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25711 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25712 # et cetera.
25713 ac_in='$ac_file_inputs'
25714 ac_out='"$tmp/out1"'
25715 ac_nxt='"$tmp/out2"'
25717 while :
25719 # Write a here document:
25720 cat >>$CONFIG_STATUS <<_ACEOF
25721 # First, check the format of the line:
25722 cat >"\$tmp/defines.sed" <<\\CEOF
25723 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25724 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25726 :def
25727 _ACEOF
25728 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25729 echo 'CEOF
25730 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25731 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25732 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25733 grep . conftest.tail >/dev/null || break
25734 rm -f conftest.defines
25735 mv conftest.tail conftest.defines
25736 done
25737 rm -f conftest.defines conftest.tail
25739 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25740 cat >>$CONFIG_STATUS <<\_ACEOF
25741 if test x"$ac_file" != x-; then
25742 echo "/* $configure_input */" >"$tmp/config.h"
25743 cat "$ac_result" >>"$tmp/config.h"
25744 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25745 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25746 echo "$as_me: $ac_file is unchanged" >&6;}
25747 else
25748 rm -f $ac_file
25749 mv "$tmp/config.h" $ac_file
25751 else
25752 echo "/* $configure_input */"
25753 cat "$ac_result"
25755 rm -f "$tmp/out12"
25758 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25759 echo "$as_me: executing $ac_file commands" >&6;}
25761 esac
25764 case $ac_file$ac_mode in
25765 "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25766 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25767 "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25768 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25769 "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25770 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25771 "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25772 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25773 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25774 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25775 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25776 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25778 esac
25779 done # for ac_tag
25782 { (exit 0); exit 0; }
25783 _ACEOF
25784 chmod +x $CONFIG_STATUS
25785 ac_clean_files=$ac_clean_files_save
25788 # configure is writing to config.log, and then calls config.status.
25789 # config.status does its own redirection, appending to config.log.
25790 # Unfortunately, on DOS this fails, as config.log is still kept open
25791 # by configure, so config.status won't be able to write to it; its
25792 # output is simply discarded. So we exec the FD to /dev/null,
25793 # effectively closing config.log, so it can be properly (re)opened and
25794 # appended to by config.status. When coming back to configure, we
25795 # need to make the FD available again.
25796 if test "$no_create" != yes; then
25797 ac_cs_success=:
25798 ac_config_status_args=
25799 test "$silent" = yes &&
25800 ac_config_status_args="$ac_config_status_args --quiet"
25801 exec 5>/dev/null
25802 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25803 exec 5>>config.log
25804 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25805 # would make configure fail if this is the last instruction.
25806 $ac_cs_success || { (exit 1); exit 1; }
25810 exitcode=0
25811 if test "$have_x" = "no"
25812 then
25813 echo >&2
25814 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25815 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25816 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25817 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25818 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25819 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25820 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
25821 echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
25822 exitcode=1
25825 if test "$wine_cv_opengl_version_OK" = "no"
25826 then
25827 echo >&2
25828 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
25829 echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
25830 { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25831 echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
25832 exitcode=1
25835 if test "$wine_cv_msg_freetype" = "yes"
25836 then
25837 echo >&2
25838 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25839 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25840 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25841 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25842 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25843 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25844 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25845 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
25846 exitcode=1
25849 if test -z "$FONTSSUBDIRS"
25850 then
25851 echo >&2
25852 if test "$FONTFORGE" = "false"
25853 then
25854 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
25855 echo "$as_me: WARNING: FontForge is missing." >&2;}
25856 else
25857 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
25858 echo "$as_me: WARNING: FreeType is missing." >&2;}
25860 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
25861 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
25862 exitcode=1
25865 if test -z "$ALSALIBS" -a \
25866 -z "$ARTSC_LIBS" -a \
25867 -z "$AUDIOIOLIBS" -a \
25868 -z "$NASLIBS" -a \
25869 -z "$ESD_LIBS" -a \
25870 -z "$ac_cv_lib_soname_jack" -a \
25871 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
25872 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
25873 "$ac_cv_header_soundcard_h" != "yes"
25874 then
25875 echo >&2
25876 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
25877 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
25878 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
25879 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
25880 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
25881 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
25882 exitcode=1
25885 echo
25886 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
25887 echo
25889 exit $exitcode