Release 1.3.9.
[wine/multimedia.git] / configure
blob4e72097631d9ff565da7c09d88c0d45bec7ec743
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Wine 1.3.9.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.3.9'
556 PACKAGE_STRING='Wine 1.3.9'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 ALL_TEST_BINARIES
600 ALL_WINETEST_DEPENDS
601 LDAPLIBS
602 LIBPOLL
603 LIBDL
604 EXTRA_BINARIES
605 MAIN_BINARY
606 SOCKETLIBS
607 CRTLIBS
608 TOOLSEXT
609 LDPATH
610 UNWINDFLAGS
611 BUILTINFLAG
612 EXTRACFLAGS
613 LIBKSTAT
614 LIBOPENAL
615 LIBMPG123
616 PNGINCL
617 FONTCONFIGINCL
618 CUPSINCL
619 AUDIOIOLIBS
620 ALSALIBS
621 GSTREAMER_INCL
622 GSTREAMER_LIBS
623 ESDLIBS
624 ESDINCL
625 ESDCONFIG
626 ZLIB
627 FREETYPEINCL
628 FREETYPELIBS
629 ft_devel
630 LCMSLIBS
631 RESOLVLIBS
632 GPHOTO2INCL
633 GPHOTO2LIBS
634 gphoto2port_devel
635 gphoto2_devel
636 SANEINCL
637 sane_devel
638 GNUTLSINCL
639 HALINCL
640 XSLTINCL
641 XML2INCL
642 XML2LIBS
643 NASLIBS
644 X_EXTRA_LIBS
645 X_LIBS
646 X_PRE_LIBS
647 X_CFLAGS
648 XMKMF
649 LIBPTHREAD
650 CROSSTARGET
651 CROSSCC
652 CROSSTEST_DISABLE
653 PRELINK
654 CARBONLIB
655 LIBOPENCL
656 FRAMEWORK_OPENAL
657 COREAUDIO
658 DISKARBITRATIONLIB
659 LDEXECFLAGS
660 QUICKTIMELIB
661 IOKITLIB
662 COREFOUNDATIONLIB
663 SECURITYLIB
664 DLLWRAP
665 DLLTOOL
667 LDRPATH_LOCAL
668 LDRPATH_INSTALL
669 IMPLIBEXT
670 LIBEXT
671 LDDLLFLAGS
672 LDSHARED
673 DLLFLAGS
674 DLLEXT
676 OPENGL_LIBS
677 XLIB
678 MAINTAINER_MODE
679 ICOTOOL
680 CONVERT
681 RSVG
682 PKG_CONFIG
683 FONTFORGE
684 LINTFLAGS
685 LINT
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 LDCONFIG
690 EGREP
691 GREP
692 LN_S
693 STRIP
694 RANLIB
695 ARFLAGS
696 ac_ct_AR
698 BISON
699 FLEX
700 TOOLSDIR
701 WOW64_DISABLE
702 TARGETFLAGS
703 CPPBIN
704 ac_ct_CXX
705 CXXFLAGS
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
714 SET_MAKE
715 host_os
716 host_vendor
717 host_cpu
718 host
719 build_os
720 build_vendor
721 build_cpu
722 build
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files='MAKE_RULES
762 MAKE_TEST_RULES
763 MAKE_DLL_RULES
764 MAKE_IMPLIB_RULES
765 MAKE_PROG_RULES'
766 ac_user_opts='
767 enable_option_checking
768 enable_win16
769 enable_win64
770 enable_tests
771 enable_maintainer_mode
772 with_alsa
773 with_audioio
774 with_capi
775 with_cms
776 with_coreaudio
777 with_cups
778 with_curses
779 with_esd
780 with_fontconfig
781 with_freetype
782 with_gphoto
783 with_glu
784 with_gnutls
785 with_gsm
786 with_gstreamer
787 with_hal
788 with_icns
789 with_jack
790 with_jpeg
791 with_ldap
792 with_mpg123
793 with_nas
794 with_openal
795 with_opencl
796 with_opengl
797 with_openssl
798 with_oss
799 with_png
800 with_pthread
801 with_sane
802 with_tiff
803 with_v4l
804 with_xcomposite
805 with_xcursor
806 with_xinerama
807 with_xinput
808 with_xml
809 with_xrandr
810 with_xrender
811 with_xshape
812 with_xshm
813 with_xslt
814 with_xxf86vm
815 with_wine_tools
816 with_wine64
817 enable_largefile
818 with_x
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
829 CXXFLAGS
832 XMKMF'
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
883 ac_prev=
884 ac_dashdash=
885 for ac_option
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
890 ac_prev=
891 continue
894 case $ac_option in
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 *=) ac_optarg= ;;
897 *) ac_optarg=yes ;;
898 esac
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
904 ac_dashdash=yes ;;
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
923 --config-cache | -C)
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1240 esac
1241 done
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used" >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298 test "$silent" = yes && exec 6>/dev/null
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1327 /^X\(\/\/\)$/{
1328 s//\1/
1331 /^X\(\/\).*/{
1332 s//\1/
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1340 else
1341 ac_srcdir_defaulted=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures Wine 1.3.9 to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1430 cat <<\_ACEOF
1432 X features:
1433 --x-includes=DIR X include files are in DIR
1434 --x-libraries=DIR X library files are in DIR
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 _ACEOF
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of Wine 1.3.9:";;
1445 esac
1446 cat <<\_ACEOF
1448 Optional Features:
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --disable-win16 do not include Win16 support
1453 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1454 binaries)
1455 --disable-tests do not build the regression tests
1456 --enable-maintainer-mode
1457 enable maintainer-specific build rules
1458 --disable-largefile omit support for large files
1460 Optional Packages:
1461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1463 --without-alsa do not use the Alsa sound support
1464 --without-audioio do not use the AudioIO sound support
1465 --without-capi do not use CAPI (ISDN support)
1466 --without-cms do not use CMS (color management support)
1467 --without-coreaudio do not use the CoreAudio sound support
1468 --without-cups do not use CUPS
1469 --without-curses do not use (n)curses
1470 --without-esd do not use the EsounD sound support
1471 --without-fontconfig do not use fontconfig
1472 --without-freetype do not use the FreeType library
1473 --without-gphoto do not use gphoto (Digital Camera support)
1474 --without-glu do not use the GLU library
1475 --without-gnutls do not use GnuTLS (schannel support)
1476 --without-gsm do not use libgsm (GSM 06.10 codec support)
1477 --without-gstreamer do not use GStreamer (codecs support)
1478 --without-hal do not use HAL (dynamic device support)
1479 --without-icns do not use ICNS icon support
1480 --without-jack do not use the Jack sound support
1481 --without-jpeg do not use JPEG
1482 --without-ldap do not use LDAP
1483 --without-mpg123 do not use the mpg123 library
1484 --without-nas do not use the NAS sound support
1485 --without-openal do not use OpenAL
1486 --without-opencl do not use OpenCL
1487 --without-opengl do not use OpenGL
1488 --without-openssl do not use OpenSSL
1489 --without-oss do not use the OSS sound support
1490 --without-png do not use PNG
1491 --without-pthread do not use the pthread library
1492 --without-sane do not use SANE (scanner support)
1493 --without-tiff do not use TIFF
1494 --without-v4l do not use v4l1 (v4l support)
1495 --without-xcomposite do not use the Xcomposite extension
1496 --without-xcursor do not use the Xcursor extension
1497 --without-xinerama do not use Xinerama (multi-monitor support)
1498 --without-xinput do not use the Xinput extension
1499 --without-xml do not use XML
1500 --without-xrandr do not use Xrandr (resolution changes)
1501 --without-xrender do not use the Xrender extension
1502 --without-xshape do not use the Xshape extension
1503 --without-xshm do not use XShm (shared memory extension)
1504 --without-xslt do not use XSLT
1505 --without-xxf86vm do not use XFree video mode extension
1506 --with-wine-tools=DIR use Wine tools from directory DIR
1507 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1508 --with-x use the X Window System
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1520 CPP C preprocessor
1521 XMKMF Path to xmkmf, Makefile generator for X Window System
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1526 Report bugs to <wine-devel@winehq.org>.
1527 Wine home page: <http://www.winehq.org>.
1528 _ACEOF
1529 ac_status=$?
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 Wine configure 1.3.9
1591 generated by GNU Autoconf 2.67
1593 Copyright (C) 2010 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1635 ac_retval=1
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_compile
1642 # ac_fn_cxx_try_compile LINENO
1643 # ----------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_cxx_try_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_cxx_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1673 ac_retval=1
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 as_fn_set_status $ac_retval
1678 } # ac_fn_cxx_try_compile
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 $as_test_x conftest$ac_exeext
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=1
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_link
1726 # ac_fn_c_try_cpp LINENO
1727 # ----------------------
1728 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_cpp ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } > conftest.i && {
1748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1756 ac_retval=1
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_c_try_cpp
1763 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766 # the include files in INCLUDES and setting the cache variable VAR
1767 # accordingly.
1768 ac_fn_c_check_header_mongrel ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if eval "test \"\${$3+set}\"" = set; then :
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval "test \"\${$3+set}\"" = set; then :
1775 $as_echo_n "(cached) " >&6
1777 eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 else
1781 # Is the header compilable?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783 $as_echo_n "checking $2 usability... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 ac_header_compiler=yes
1791 else
1792 ac_header_compiler=no
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796 $as_echo "$ac_header_compiler" >&6; }
1798 # Is the header present?
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800 $as_echo_n "checking $2 presence... " >&6; }
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_cpp "$LINENO"; then :
1806 ac_header_preproc=yes
1807 else
1808 ac_header_preproc=no
1810 rm -f conftest.err conftest.i conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812 $as_echo "$ac_header_preproc" >&6; }
1814 # So? What about this header?
1815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816 yes:no: )
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 no:yes:* )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1826 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1830 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ( $as_echo "## ------------------------------------ ##
1834 ## Report this to wine-devel@winehq.org ##
1835 ## ------------------------------------ ##"
1836 ) | sed "s/^/$as_me: WARNING: /" >&2
1838 esac
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval "test \"\${$3+set}\"" = set; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 eval "$3=\$ac_header_compiler"
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 } # ac_fn_c_check_header_mongrel
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857 # that executables *can* be run.
1858 ac_fn_c_try_run ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: program exited with status $ac_status" >&5
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=$ac_status
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 as_fn_set_status $ac_retval
1894 } # ac_fn_c_try_run
1896 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1897 # -------------------------------------------------------
1898 # Tests whether HEADER exists and can be compiled using the include files in
1899 # INCLUDES, setting the cache variable VAR accordingly.
1900 ac_fn_c_check_header_compile ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval "test \"\${$3+set}\"" = set; then :
1906 $as_echo_n "(cached) " >&6
1907 else
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 eval "$3=yes"
1915 else
1916 eval "$3=no"
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 } # ac_fn_c_check_header_compile
1927 # ac_fn_c_check_func LINENO FUNC VAR
1928 # ----------------------------------
1929 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1930 ac_fn_c_check_func ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval "test \"\${$3+set}\"" = set; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1942 #define $2 innocuous_$2
1944 /* System header to define __stub macros and hopefully few prototypes,
1945 which can conflict with char $2 (); below.
1946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1947 <limits.h> exists even on freestanding compilers. */
1949 #ifdef __STDC__
1950 # include <limits.h>
1951 #else
1952 # include <assert.h>
1953 #endif
1955 #undef $2
1957 /* Override any GCC internal prototype to avoid an error.
1958 Use char because int might match the return type of a GCC
1959 builtin and then its argument prototype would still apply. */
1960 #ifdef __cplusplus
1961 extern "C"
1962 #endif
1963 char $2 ();
1964 /* The GNU C library defines this for functions which it implements
1965 to always fail with ENOSYS. Some functions are actually named
1966 something starting with __ and the normal name is an alias. */
1967 #if defined __stub_$2 || defined __stub___$2
1968 choke me
1969 #endif
1972 main ()
1974 return $2 ();
1976 return 0;
1978 _ACEOF
1979 if ac_fn_c_try_link "$LINENO"; then :
1980 eval "$3=yes"
1981 else
1982 eval "$3=no"
1984 rm -f core conftest.err conftest.$ac_objext \
1985 conftest$ac_exeext conftest.$ac_ext
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 } # ac_fn_c_check_func
1994 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1995 # ----------------------------------------------------
1996 # Tries to find if the field MEMBER exists in type AGGR, after including
1997 # INCLUDES, setting cache variable VAR accordingly.
1998 ac_fn_c_check_member ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2002 $as_echo_n "checking for $2.$3... " >&6; }
2003 if eval "test \"\${$4+set}\"" = set; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2010 main ()
2012 static $2 ac_aggr;
2013 if (ac_aggr.$3)
2014 return 0;
2016 return 0;
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 eval "$4=yes"
2021 else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2026 main ()
2028 static $2 ac_aggr;
2029 if (sizeof ac_aggr.$3)
2030 return 0;
2032 return 0;
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$4=yes"
2037 else
2038 eval "$4=no"
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 eval ac_res=\$$4
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 } # ac_fn_c_check_member
2051 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2052 # -------------------------------------------
2053 # Tests whether TYPE exists after having included INCLUDES, setting cache
2054 # variable VAR accordingly.
2055 ac_fn_c_check_type ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval "test \"\${$3+set}\"" = set; then :
2061 $as_echo_n "(cached) " >&6
2062 else
2063 eval "$3=no"
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 if (sizeof ($2))
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 if (sizeof (($2)))
2084 return 0;
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2091 else
2092 eval "$3=yes"
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 } # ac_fn_c_check_type
2104 cat >config.log <<_ACEOF
2105 This file contains any messages produced by compilers while
2106 running configure, to aid debugging if configure makes a mistake.
2108 It was created by Wine $as_me 1.3.9, which was
2109 generated by GNU Autoconf 2.67. Invocation command line was
2111 $ $0 $@
2113 _ACEOF
2114 exec 5>>config.log
2116 cat <<_ASUNAME
2117 ## --------- ##
2118 ## Platform. ##
2119 ## --------- ##
2121 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2122 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2123 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2124 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2125 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2128 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2130 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2131 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2132 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2133 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2134 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2135 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2136 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138 _ASUNAME
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 $as_echo "PATH: $as_dir"
2146 done
2147 IFS=$as_save_IFS
2149 } >&5
2151 cat >&5 <<_ACEOF
2154 ## ----------- ##
2155 ## Core tests. ##
2156 ## ----------- ##
2158 _ACEOF
2161 # Keep a trace of the command line.
2162 # Strip out --no-create and --no-recursion so they do not pile up.
2163 # Strip out --silent because we don't want to record it for future runs.
2164 # Also quote any args containing shell meta-characters.
2165 # Make two passes to allow for proper duplicate-argument suppression.
2166 ac_configure_args=
2167 ac_configure_args0=
2168 ac_configure_args1=
2169 ac_must_keep_next=false
2170 for ac_pass in 1 2
2172 for ac_arg
2174 case $ac_arg in
2175 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2177 | -silent | --silent | --silen | --sile | --sil)
2178 continue ;;
2179 *\'*)
2180 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 esac
2182 case $ac_pass in
2183 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185 as_fn_append ac_configure_args1 " '$ac_arg'"
2186 if test $ac_must_keep_next = true; then
2187 ac_must_keep_next=false # Got value, back to normal.
2188 else
2189 case $ac_arg in
2190 *=* | --config-cache | -C | -disable-* | --disable-* \
2191 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2192 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2193 | -with-* | --with-* | -without-* | --without-* | --x)
2194 case "$ac_configure_args0 " in
2195 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196 esac
2198 -* ) ac_must_keep_next=true ;;
2199 esac
2201 as_fn_append ac_configure_args " '$ac_arg'"
2203 esac
2204 done
2205 done
2206 { ac_configure_args0=; unset ac_configure_args0;}
2207 { ac_configure_args1=; unset ac_configure_args1;}
2209 # When interrupted or exit'd, cleanup temporary files, and complete
2210 # config.log. We remove comments because anyway the quotes in there
2211 # would cause problems or look ugly.
2212 # WARNING: Use '\'' to represent an apostrophe within the trap.
2213 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2214 trap 'exit_status=$?
2215 # Save into config.log some information that might help in debugging.
2217 echo
2219 $as_echo "## ---------------- ##
2220 ## Cache variables. ##
2221 ## ---------------- ##"
2222 echo
2223 # The following way of writing the cache mishandles newlines in values,
2225 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2226 eval ac_val=\$$ac_var
2227 case $ac_val in #(
2228 *${as_nl}*)
2229 case $ac_var in #(
2230 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2231 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2232 esac
2233 case $ac_var in #(
2234 _ | IFS | as_nl) ;; #(
2235 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2236 *) { eval $ac_var=; unset $ac_var;} ;;
2237 esac ;;
2238 esac
2239 done
2240 (set) 2>&1 |
2241 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2242 *${as_nl}ac_space=\ *)
2243 sed -n \
2244 "s/'\''/'\''\\\\'\'''\''/g;
2245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2246 ;; #(
2248 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2250 esac |
2251 sort
2253 echo
2255 $as_echo "## ----------------- ##
2256 ## Output variables. ##
2257 ## ----------------- ##"
2258 echo
2259 for ac_var in $ac_subst_vars
2261 eval ac_val=\$$ac_var
2262 case $ac_val in
2263 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2264 esac
2265 $as_echo "$ac_var='\''$ac_val'\''"
2266 done | sort
2267 echo
2269 if test -n "$ac_subst_files"; then
2270 $as_echo "## ------------------- ##
2271 ## File substitutions. ##
2272 ## ------------------- ##"
2273 echo
2274 for ac_var in $ac_subst_files
2276 eval ac_val=\$$ac_var
2277 case $ac_val in
2278 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279 esac
2280 $as_echo "$ac_var='\''$ac_val'\''"
2281 done | sort
2282 echo
2285 if test -s confdefs.h; then
2286 $as_echo "## ----------- ##
2287 ## confdefs.h. ##
2288 ## ----------- ##"
2289 echo
2290 cat confdefs.h
2291 echo
2293 test "$ac_signal" != 0 &&
2294 $as_echo "$as_me: caught signal $ac_signal"
2295 $as_echo "$as_me: exit $exit_status"
2296 } >&5
2297 rm -f core *.core core.conftest.* &&
2298 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2299 exit $exit_status
2301 for ac_signal in 1 2 13 15; do
2302 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2303 done
2304 ac_signal=0
2306 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2307 rm -f -r conftest* confdefs.h
2309 $as_echo "/* confdefs.h */" > confdefs.h
2311 # Predefined preprocessor variables.
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_NAME "$PACKAGE_NAME"
2315 _ACEOF
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319 _ACEOF
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2323 _ACEOF
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_STRING "$PACKAGE_STRING"
2327 _ACEOF
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2331 _ACEOF
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_URL "$PACKAGE_URL"
2335 _ACEOF
2338 # Let the site file select an alternate cache file if it wants to.
2339 # Prefer an explicitly selected file to automatically selected ones.
2340 ac_site_file1=NONE
2341 ac_site_file2=NONE
2342 if test -n "$CONFIG_SITE"; then
2343 # We do not want a PATH search for config.site.
2344 case $CONFIG_SITE in #((
2345 -*) ac_site_file1=./$CONFIG_SITE;;
2346 */*) ac_site_file1=$CONFIG_SITE;;
2347 *) ac_site_file1=./$CONFIG_SITE;;
2348 esac
2349 elif test "x$prefix" != xNONE; then
2350 ac_site_file1=$prefix/share/config.site
2351 ac_site_file2=$prefix/etc/config.site
2352 else
2353 ac_site_file1=$ac_default_prefix/share/config.site
2354 ac_site_file2=$ac_default_prefix/etc/config.site
2356 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2358 test "x$ac_site_file" = xNONE && continue
2359 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2361 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2362 sed 's/^/| /' "$ac_site_file" >&5
2363 . "$ac_site_file" \
2364 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2366 as_fn_error $? "failed to load site script $ac_site_file
2367 See \`config.log' for more details" "$LINENO" 5 ; }
2369 done
2371 if test -r "$cache_file"; then
2372 # Some versions of bash will fail to source /dev/null (special files
2373 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2374 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2376 $as_echo "$as_me: loading cache $cache_file" >&6;}
2377 case $cache_file in
2378 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2379 *) . "./$cache_file";;
2380 esac
2382 else
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2384 $as_echo "$as_me: creating cache $cache_file" >&6;}
2385 >$cache_file
2388 # Check that the precious variables saved in the cache have kept the same
2389 # value.
2390 ac_cache_corrupted=false
2391 for ac_var in $ac_precious_vars; do
2392 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2393 eval ac_new_set=\$ac_env_${ac_var}_set
2394 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2395 eval ac_new_val=\$ac_env_${ac_var}_value
2396 case $ac_old_set,$ac_new_set in
2397 set,)
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2400 ac_cache_corrupted=: ;;
2401 ,set)
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2403 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2404 ac_cache_corrupted=: ;;
2405 ,);;
2407 if test "x$ac_old_val" != "x$ac_new_val"; then
2408 # differences in whitespace do not lead to failure.
2409 ac_old_val_w=`echo x $ac_old_val`
2410 ac_new_val_w=`echo x $ac_new_val`
2411 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2413 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2414 ac_cache_corrupted=:
2415 else
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2417 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2418 eval $ac_var=\$ac_old_val
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2421 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2423 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2424 fi;;
2425 esac
2426 # Pass precious variables to config.status.
2427 if test "$ac_new_set" = set; then
2428 case $ac_new_val in
2429 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2430 *) ac_arg=$ac_var=$ac_new_val ;;
2431 esac
2432 case " $ac_configure_args " in
2433 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2434 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2435 esac
2437 done
2438 if $ac_cache_corrupted; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2442 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2443 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2445 ## -------------------- ##
2446 ## Main body of script. ##
2447 ## -------------------- ##
2449 ac_ext=c
2450 ac_cpp='$CPP $CPPFLAGS'
2451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457 ac_config_headers="$ac_config_headers include/config.h"
2459 ac_aux_dir=
2460 for ac_dir in tools "$srcdir"/tools; do
2461 if test -f "$ac_dir/install-sh"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/install-sh -c"
2464 break
2465 elif test -f "$ac_dir/install.sh"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/install.sh -c"
2468 break
2469 elif test -f "$ac_dir/shtool"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/shtool install -c"
2472 break
2474 done
2475 if test -z "$ac_aux_dir"; then
2476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2479 # These three variables are undocumented and unsupported,
2480 # and are intended to be withdrawn in a future Autoconf release.
2481 # They can cause serious problems if a builder's source tree is in a directory
2482 # whose full name contains unusual characters.
2483 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2484 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2485 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2491 # Check whether --enable-win16 was given.
2492 if test "${enable_win16+set}" = set; then :
2493 enableval=$enable_win16;
2496 # Check whether --enable-win64 was given.
2497 if test "${enable_win64+set}" = set; then :
2498 enableval=$enable_win64;
2501 # Check whether --enable-tests was given.
2502 if test "${enable_tests+set}" = set; then :
2503 enableval=$enable_tests;
2506 # Check whether --enable-maintainer-mode was given.
2507 if test "${enable_maintainer_mode+set}" = set; then :
2508 enableval=$enable_maintainer_mode;
2513 # Check whether --with-alsa was given.
2514 if test "${with_alsa+set}" = set; then :
2515 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2519 # Check whether --with-audioio was given.
2520 if test "${with_audioio+set}" = set; then :
2521 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2525 # Check whether --with-capi was given.
2526 if test "${with_capi+set}" = set; then :
2527 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2531 # Check whether --with-cms was given.
2532 if test "${with_cms+set}" = set; then :
2533 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2537 # Check whether --with-coreaudio was given.
2538 if test "${with_coreaudio+set}" = set; then :
2539 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2543 # Check whether --with-cups was given.
2544 if test "${with_cups+set}" = set; then :
2545 withval=$with_cups;
2549 # Check whether --with-curses was given.
2550 if test "${with_curses+set}" = set; then :
2551 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2555 # Check whether --with-esd was given.
2556 if test "${with_esd+set}" = set; then :
2557 withval=$with_esd;
2561 # Check whether --with-fontconfig was given.
2562 if test "${with_fontconfig+set}" = set; then :
2563 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2567 # Check whether --with-freetype was given.
2568 if test "${with_freetype+set}" = set; then :
2569 withval=$with_freetype;
2573 # Check whether --with-gphoto was given.
2574 if test "${with_gphoto+set}" = set; then :
2575 withval=$with_gphoto;
2579 # Check whether --with-glu was given.
2580 if test "${with_glu+set}" = set; then :
2581 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2585 # Check whether --with-gnutls was given.
2586 if test "${with_gnutls+set}" = set; then :
2587 withval=$with_gnutls;
2591 # Check whether --with-gsm was given.
2592 if test "${with_gsm+set}" = set; then :
2593 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2597 # Check whether --with-gstreamer was given.
2598 if test "${with_gstreamer+set}" = set; then :
2599 withval=$with_gstreamer;
2603 # Check whether --with-hal was given.
2604 if test "${with_hal+set}" = set; then :
2605 withval=$with_hal;
2609 # Check whether --with-icns was given.
2610 if test "${with_icns+set}" = set; then :
2611 withval=$with_icns; if test "x$withval" = "xno"; then ac_cv_header_icns_h=no; fi
2615 # Check whether --with-jack was given.
2616 if test "${with_jack+set}" = set; then :
2617 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2621 # Check whether --with-jpeg was given.
2622 if test "${with_jpeg+set}" = set; then :
2623 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2627 # Check whether --with-ldap was given.
2628 if test "${with_ldap+set}" = set; then :
2629 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2633 # Check whether --with-mpg123 was given.
2634 if test "${with_mpg123+set}" = set; then :
2635 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2639 # Check whether --with-nas was given.
2640 if test "${with_nas+set}" = set; then :
2641 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2645 # Check whether --with-openal was given.
2646 if test "${with_openal+set}" = set; then :
2647 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2651 # Check whether --with-opencl was given.
2652 if test "${with_opencl+set}" = set; then :
2653 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_opencl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2657 # Check whether --with-opengl was given.
2658 if test "${with_opengl+set}" = set; then :
2659 withval=$with_opengl;
2663 # Check whether --with-openssl was given.
2664 if test "${with_openssl+set}" = set; then :
2665 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2669 # Check whether --with-oss was given.
2670 if test "${with_oss+set}" = set; then :
2671 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2675 # Check whether --with-png was given.
2676 if test "${with_png+set}" = set; then :
2677 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2681 # Check whether --with-pthread was given.
2682 if test "${with_pthread+set}" = set; then :
2683 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2687 # Check whether --with-sane was given.
2688 if test "${with_sane+set}" = set; then :
2689 withval=$with_sane;
2693 # Check whether --with-tiff was given.
2694 if test "${with_tiff+set}" = set; then :
2695 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2699 # Check whether --with-v4l was given.
2700 if test "${with_v4l+set}" = set; then :
2701 withval=$with_v4l;
2705 # Check whether --with-xcomposite was given.
2706 if test "${with_xcomposite+set}" = set; then :
2707 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2711 # Check whether --with-xcursor was given.
2712 if test "${with_xcursor+set}" = set; then :
2713 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2717 # Check whether --with-xinerama was given.
2718 if test "${with_xinerama+set}" = set; then :
2719 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2723 # Check whether --with-xinput was given.
2724 if test "${with_xinput+set}" = set; then :
2725 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2729 # Check whether --with-xml was given.
2730 if test "${with_xml+set}" = set; then :
2731 withval=$with_xml;
2735 # Check whether --with-xrandr was given.
2736 if test "${with_xrandr+set}" = set; then :
2737 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2741 # Check whether --with-xrender was given.
2742 if test "${with_xrender+set}" = set; then :
2743 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2747 # Check whether --with-xshape was given.
2748 if test "${with_xshape+set}" = set; then :
2749 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2753 # Check whether --with-xshm was given.
2754 if test "${with_xshm+set}" = set; then :
2755 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2759 # Check whether --with-xslt was given.
2760 if test "${with_xslt+set}" = set; then :
2761 withval=$with_xslt;
2765 # Check whether --with-xxf86vm was given.
2766 if test "${with_xxf86vm+set}" = set; then :
2767 withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi
2772 # Check whether --with-wine-tools was given.
2773 if test "${with_wine_tools+set}" = set; then :
2774 withval=$with_wine_tools;
2778 # Check whether --with-wine64 was given.
2779 if test "${with_wine64+set}" = set; then :
2780 withval=$with_wine64;
2784 # Make sure we can run config.sub.
2785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2786 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2789 $as_echo_n "checking build system type... " >&6; }
2790 if test "${ac_cv_build+set}" = set; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 ac_build_alias=$build_alias
2794 test "x$ac_build_alias" = x &&
2795 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2796 test "x$ac_build_alias" = x &&
2797 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2798 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2799 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2803 $as_echo "$ac_cv_build" >&6; }
2804 case $ac_cv_build in
2805 *-*-*) ;;
2806 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2807 esac
2808 build=$ac_cv_build
2809 ac_save_IFS=$IFS; IFS='-'
2810 set x $ac_cv_build
2811 shift
2812 build_cpu=$1
2813 build_vendor=$2
2814 shift; shift
2815 # Remember, the first character of IFS is used to create $*,
2816 # except with old shells:
2817 build_os=$*
2818 IFS=$ac_save_IFS
2819 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2823 $as_echo_n "checking host system type... " >&6; }
2824 if test "${ac_cv_host+set}" = set; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 if test "x$host_alias" = x; then
2828 ac_cv_host=$ac_cv_build
2829 else
2830 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2831 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2836 $as_echo "$ac_cv_host" >&6; }
2837 case $ac_cv_host in
2838 *-*-*) ;;
2839 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2840 esac
2841 host=$ac_cv_host
2842 ac_save_IFS=$IFS; IFS='-'
2843 set x $ac_cv_host
2844 shift
2845 host_cpu=$1
2846 host_vendor=$2
2847 shift; shift
2848 # Remember, the first character of IFS is used to create $*,
2849 # except with old shells:
2850 host_os=$*
2851 IFS=$ac_save_IFS
2852 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2856 case "$srcdir" in
2857 .) ;;
2858 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2859 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2860 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2861 fi ;;
2862 esac
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2866 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2867 set x ${MAKE-make}
2868 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2869 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 cat >conftest.make <<\_ACEOF
2873 SHELL = /bin/sh
2874 all:
2875 @echo '@@@%%%=$(MAKE)=@@@%%%'
2876 _ACEOF
2877 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2878 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2879 *@@@%%%=?*=@@@%%%*)
2880 eval ac_cv_prog_make_${ac_make}_set=yes;;
2882 eval ac_cv_prog_make_${ac_make}_set=no;;
2883 esac
2884 rm -f conftest.make
2886 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2888 $as_echo "yes" >&6; }
2889 SET_MAKE=
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 SET_MAKE="MAKE=${MAKE-make}"
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 if test -n "$ac_tool_prefix"; then
2902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2903 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_CC+set}" = set; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2923 done
2924 done
2925 IFS=$as_save_IFS
2929 CC=$ac_cv_prog_CC
2930 if test -n "$CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932 $as_echo "$CC" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2940 if test -z "$ac_cv_prog_CC"; then
2941 ac_ct_CC=$CC
2942 # Extract the first word of "gcc", so it can be a program name with args.
2943 set dummy gcc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$ac_ct_CC"; then
2950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_ac_ct_CC="gcc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2963 done
2964 done
2965 IFS=$as_save_IFS
2969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2970 if test -n "$ac_ct_CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2972 $as_echo "$ac_ct_CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2978 if test "x$ac_ct_CC" = x; then
2979 CC=""
2980 else
2981 case $cross_compiling:$ac_tool_warned in
2982 yes:)
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2985 ac_tool_warned=yes ;;
2986 esac
2987 CC=$ac_ct_CC
2989 else
2990 CC="$ac_cv_prog_CC"
2993 if test -z "$CC"; then
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}cc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if test "${ac_cv_prog_CC+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_CC="${ac_tool_prefix}cc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3018 IFS=$as_save_IFS
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3034 if test -z "$CC"; then
3035 # Extract the first word of "cc", so it can be a program name with args.
3036 set dummy cc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if test "${ac_cv_prog_CC+set}" = set; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$CC"; then
3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 else
3045 ac_prog_rejected=no
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3054 ac_prog_rejected=yes
3055 continue
3057 ac_cv_prog_CC="cc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3061 done
3062 done
3063 IFS=$as_save_IFS
3065 if test $ac_prog_rejected = yes; then
3066 # We found a bogon in the path, so make sure we never use it.
3067 set dummy $ac_cv_prog_CC
3068 shift
3069 if test $# != 0; then
3070 # We chose a different compiler from the bogus one.
3071 # However, it has the same basename, so the bogon will be chosen
3072 # first if we set CC to just the basename; use the full file name.
3073 shift
3074 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3090 if test -z "$CC"; then
3091 if test -n "$ac_tool_prefix"; then
3092 for ac_prog in cl.exe
3094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_CC+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3115 done
3116 done
3117 IFS=$as_save_IFS
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3131 test -n "$CC" && break
3132 done
3134 if test -z "$CC"; then
3135 ac_ct_CC=$CC
3136 for ac_prog in cl.exe
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$ac_ct_CC"; then
3146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_ac_ct_CC="$ac_prog"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3159 done
3160 done
3161 IFS=$as_save_IFS
3165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3166 if test -n "$ac_ct_CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3168 $as_echo "$ac_ct_CC" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3175 test -n "$ac_ct_CC" && break
3176 done
3178 if test "x$ac_ct_CC" = x; then
3179 CC=""
3180 else
3181 case $cross_compiling:$ac_tool_warned in
3182 yes:)
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3185 ac_tool_warned=yes ;;
3186 esac
3187 CC=$ac_ct_CC
3194 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "no acceptable C compiler found in \$PATH
3197 See \`config.log' for more details" "$LINENO" 5 ; }
3199 # Provide some information about the compiler.
3200 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3201 set X $ac_compile
3202 ac_compiler=$2
3203 for ac_option in --version -v -V -qversion; do
3204 { { ac_try="$ac_compiler $ac_option >&5"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3212 ac_status=$?
3213 if test -s conftest.err; then
3214 sed '10a\
3215 ... rest of stderr output deleted ...
3216 10q' conftest.err >conftest.er1
3217 cat conftest.er1 >&5
3219 rm -f conftest.er1 conftest.err
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }
3222 done
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3228 main ()
3232 return 0;
3234 _ACEOF
3235 ac_clean_files_save=$ac_clean_files
3236 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3237 # Try to create an executable without -o first, disregard a.out.
3238 # It will help us diagnose broken compilers, and finding out an intuition
3239 # of exeext.
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3241 $as_echo_n "checking whether the C compiler works... " >&6; }
3242 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244 # The possible output files:
3245 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247 ac_rmfiles=
3248 for ac_file in $ac_files
3250 case $ac_file in
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3252 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3253 esac
3254 done
3255 rm -f $ac_rmfiles
3257 if { { ac_try="$ac_link_default"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_link_default") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; then :
3268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3269 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3270 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3271 # so that the user can short-circuit this test for compilers unknown to
3272 # Autoconf.
3273 for ac_file in $ac_files ''
3275 test -f "$ac_file" || continue
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3279 [ab].out )
3280 # We found the default executable, but exeext='' is most
3281 # certainly right.
3282 break;;
3283 *.* )
3284 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3285 then :; else
3286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288 # We set ac_cv_exeext here because the later test for it is not
3289 # safe: cross compilers may not add the suffix if given an `-o'
3290 # argument, so we may need to know it at that point already.
3291 # Even if this section looks crufty: it has the advantage of
3292 # actually working.
3293 break;;
3295 break;;
3296 esac
3297 done
3298 test "$ac_cv_exeext" = no && ac_cv_exeext=
3300 else
3301 ac_file=''
3303 if test -z "$ac_file"; then :
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error 77 "C compiler cannot create executables
3312 See \`config.log' for more details" "$LINENO" 5 ; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 $as_echo "yes" >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3318 $as_echo_n "checking for C compiler default output file name... " >&6; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3320 $as_echo "$ac_file" >&6; }
3321 ac_exeext=$ac_cv_exeext
3323 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3324 ac_clean_files=$ac_clean_files_save
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3326 $as_echo_n "checking for suffix of executables... " >&6; }
3327 if { { ac_try="$ac_link"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_link") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; then :
3338 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3339 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3340 # work properly (i.e., refer to `conftest.exe'), while it won't with
3341 # `rm'.
3342 for ac_file in conftest.exe conftest conftest.*; do
3343 test -f "$ac_file" || continue
3344 case $ac_file in
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3346 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 break;;
3348 * ) break;;
3349 esac
3350 done
3351 else
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3355 See \`config.log' for more details" "$LINENO" 5 ; }
3357 rm -f conftest conftest$ac_cv_exeext
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3359 $as_echo "$ac_cv_exeext" >&6; }
3361 rm -f conftest.$ac_ext
3362 EXEEXT=$ac_cv_exeext
3363 ac_exeext=$EXEEXT
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366 #include <stdio.h>
3368 main ()
3370 FILE *f = fopen ("conftest.out", "w");
3371 return ferror (f) || fclose (f) != 0;
3374 return 0;
3376 _ACEOF
3377 ac_clean_files="$ac_clean_files conftest.out"
3378 # Check that the compiler produces executables we can run. If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3381 $as_echo_n "checking whether we are cross compiling... " >&6; }
3382 if test "$cross_compiling" != yes; then
3383 { { ac_try="$ac_link"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_link") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3394 if { ac_try='./conftest$ac_cv_exeext'
3395 { { case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400 $as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_try") 2>&5
3402 ac_status=$?
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }; }; then
3405 cross_compiling=no
3406 else
3407 if test "$cross_compiling" = maybe; then
3408 cross_compiling=yes
3409 else
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "cannot run C compiled programs.
3413 If you meant to cross compile, use \`--host'.
3414 See \`config.log' for more details" "$LINENO" 5 ; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3419 $as_echo "$cross_compiling" >&6; }
3421 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3422 ac_clean_files=$ac_clean_files_save
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3424 $as_echo_n "checking for suffix of object files... " >&6; }
3425 if test "${ac_cv_objext+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3432 main ()
3436 return 0;
3438 _ACEOF
3439 rm -f conftest.o conftest.obj
3440 if { { ac_try="$ac_compile"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compile") 2>&5
3448 ac_status=$?
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; then :
3451 for ac_file in conftest.o conftest.obj conftest.*; do
3452 test -f "$ac_file" || continue;
3453 case $ac_file in
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3456 break;;
3457 esac
3458 done
3459 else
3460 $as_echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error $? "cannot compute suffix of object files: cannot compile
3466 See \`config.log' for more details" "$LINENO" 5 ; }
3468 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3471 $as_echo "$ac_cv_objext" >&6; }
3472 OBJEXT=$ac_cv_objext
3473 ac_objext=$OBJEXT
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3475 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3476 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3483 main ()
3485 #ifndef __GNUC__
3486 choke me
3487 #endif
3490 return 0;
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494 ac_compiler_gnu=yes
3495 else
3496 ac_compiler_gnu=no
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3503 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3504 if test $ac_compiler_gnu = yes; then
3505 GCC=yes
3506 else
3507 GCC=
3509 ac_test_CFLAGS=${CFLAGS+set}
3510 ac_save_CFLAGS=$CFLAGS
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3512 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3513 if test "${ac_cv_prog_cc_g+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 ac_save_c_werror_flag=$ac_c_werror_flag
3517 ac_c_werror_flag=yes
3518 ac_cv_prog_cc_g=no
3519 CFLAGS="-g"
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3524 main ()
3528 return 0;
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532 ac_cv_prog_cc_g=yes
3533 else
3534 CFLAGS=""
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3539 main ()
3543 return 0;
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3548 else
3549 ac_c_werror_flag=$ac_save_c_werror_flag
3550 CFLAGS="-g"
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3555 main ()
3559 return 0;
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_cv_prog_cc_g=yes
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_c_werror_flag=$ac_save_c_werror_flag
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3573 $as_echo "$ac_cv_prog_cc_g" >&6; }
3574 if test "$ac_test_CFLAGS" = set; then
3575 CFLAGS=$ac_save_CFLAGS
3576 elif test $ac_cv_prog_cc_g = yes; then
3577 if test "$GCC" = yes; then
3578 CFLAGS="-g -O2"
3579 else
3580 CFLAGS="-g"
3582 else
3583 if test "$GCC" = yes; then
3584 CFLAGS="-O2"
3585 else
3586 CFLAGS=
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3591 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 ac_cv_prog_cc_c89=no
3595 ac_save_CC=$CC
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598 #include <stdarg.h>
3599 #include <stdio.h>
3600 #include <sys/types.h>
3601 #include <sys/stat.h>
3602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3603 struct buf { int x; };
3604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3605 static char *e (p, i)
3606 char **p;
3607 int i;
3609 return p[i];
3611 static char *f (char * (*g) (char **, int), char **p, ...)
3613 char *s;
3614 va_list v;
3615 va_start (v,p);
3616 s = g (p, va_arg (v,int));
3617 va_end (v);
3618 return s;
3621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3622 function prototypes and stuff, but not '\xHH' hex character constants.
3623 These don't provoke an error unfortunately, instead are silently treated
3624 as 'x'. The following induces an error, until -std is added to get
3625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3626 array size at least. It's necessary to write '\x00'==0 to get something
3627 that's true only with -std. */
3628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3631 inside strings and character constants. */
3632 #define FOO(x) 'x'
3633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3635 int test (int i, double x);
3636 struct s1 {int (*f) (int a);};
3637 struct s2 {int (*f) (double a);};
3638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639 int argc;
3640 char **argv;
3642 main ()
3644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3646 return 0;
3648 _ACEOF
3649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3650 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3652 CC="$ac_save_CC $ac_arg"
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_cv_prog_cc_c89=$ac_arg
3656 rm -f core conftest.err conftest.$ac_objext
3657 test "x$ac_cv_prog_cc_c89" != "xno" && break
3658 done
3659 rm -f conftest.$ac_ext
3660 CC=$ac_save_CC
3663 # AC_CACHE_VAL
3664 case "x$ac_cv_prog_cc_c89" in
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3667 $as_echo "none needed" >&6; } ;;
3668 xno)
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3670 $as_echo "unsupported" >&6; } ;;
3672 CC="$CC $ac_cv_prog_cc_c89"
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3674 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3675 esac
3676 if test "x$ac_cv_prog_cc_c89" != xno; then :
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686 ac_ext=cpp
3687 ac_cpp='$CXXCPP $CPPFLAGS'
3688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3691 if test -z "$CXX"; then
3692 if test -n "$CCC"; then
3693 CXX=$CCC
3694 else
3695 if test -n "$ac_tool_prefix"; then
3696 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test "${ac_cv_prog_CXX+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 if test -n "$CXX"; then
3706 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3719 done
3720 done
3721 IFS=$as_save_IFS
3725 CXX=$ac_cv_prog_CXX
3726 if test -n "$CXX"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3728 $as_echo "$CXX" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3735 test -n "$CXX" && break
3736 done
3738 if test -z "$CXX"; then
3739 ac_ct_CXX=$CXX
3740 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 if test -n "$ac_ct_CXX"; then
3750 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_ac_ct_CXX="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3763 done
3764 done
3765 IFS=$as_save_IFS
3769 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3770 if test -n "$ac_ct_CXX"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3772 $as_echo "$ac_ct_CXX" >&6; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3779 test -n "$ac_ct_CXX" && break
3780 done
3782 if test "x$ac_ct_CXX" = x; then
3783 CXX="g++"
3784 else
3785 case $cross_compiling:$ac_tool_warned in
3786 yes:)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned=yes ;;
3790 esac
3791 CXX=$ac_ct_CXX
3797 # Provide some information about the compiler.
3798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3799 set X $ac_compile
3800 ac_compiler=$2
3801 for ac_option in --version -v -V -qversion; do
3802 { { ac_try="$ac_compiler $ac_option >&5"
3803 case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3810 ac_status=$?
3811 if test -s conftest.err; then
3812 sed '10a\
3813 ... rest of stderr output deleted ...
3814 10q' conftest.err >conftest.er1
3815 cat conftest.er1 >&5
3817 rm -f conftest.er1 conftest.err
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }
3820 done
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3823 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3824 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3831 main ()
3833 #ifndef __GNUC__
3834 choke me
3835 #endif
3838 return 0;
3840 _ACEOF
3841 if ac_fn_cxx_try_compile "$LINENO"; then :
3842 ac_compiler_gnu=yes
3843 else
3844 ac_compiler_gnu=no
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3851 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3852 if test $ac_compiler_gnu = yes; then
3853 GXX=yes
3854 else
3855 GXX=
3857 ac_test_CXXFLAGS=${CXXFLAGS+set}
3858 ac_save_CXXFLAGS=$CXXFLAGS
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3860 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3861 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3865 ac_cxx_werror_flag=yes
3866 ac_cv_prog_cxx_g=no
3867 CXXFLAGS="-g"
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3872 main ()
3876 return 0;
3878 _ACEOF
3879 if ac_fn_cxx_try_compile "$LINENO"; then :
3880 ac_cv_prog_cxx_g=yes
3881 else
3882 CXXFLAGS=""
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3887 main ()
3891 return 0;
3893 _ACEOF
3894 if ac_fn_cxx_try_compile "$LINENO"; then :
3896 else
3897 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3898 CXXFLAGS="-g"
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3903 main ()
3907 return 0;
3909 _ACEOF
3910 if ac_fn_cxx_try_compile "$LINENO"; then :
3911 ac_cv_prog_cxx_g=yes
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3921 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3922 if test "$ac_test_CXXFLAGS" = set; then
3923 CXXFLAGS=$ac_save_CXXFLAGS
3924 elif test $ac_cv_prog_cxx_g = yes; then
3925 if test "$GXX" = yes; then
3926 CXXFLAGS="-g -O2"
3927 else
3928 CXXFLAGS="-g"
3930 else
3931 if test "$GXX" = yes; then
3932 CXXFLAGS="-O2"
3933 else
3934 CXXFLAGS=
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 if test -n "$ac_tool_prefix"; then
3944 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3945 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 if test -n "$CPPBIN"; then
3952 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3965 done
3966 done
3967 IFS=$as_save_IFS
3971 CPPBIN=$ac_cv_prog_CPPBIN
3972 if test -n "$CPPBIN"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3974 $as_echo "$CPPBIN" >&6; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3982 if test -z "$ac_cv_prog_CPPBIN"; then
3983 ac_ct_CPPBIN=$CPPBIN
3984 # Extract the first word of "cpp", so it can be a program name with args.
3985 set dummy cpp; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -n "$ac_ct_CPPBIN"; then
3992 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_prog_ac_ct_CPPBIN="cpp"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4005 done
4006 done
4007 IFS=$as_save_IFS
4011 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4012 if test -n "$ac_ct_CPPBIN"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4014 $as_echo "$ac_ct_CPPBIN" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4020 if test "x$ac_ct_CPPBIN" = x; then
4021 CPPBIN="cpp"
4022 else
4023 case $cross_compiling:$ac_tool_warned in
4024 yes:)
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4027 ac_tool_warned=yes ;;
4028 esac
4029 CPPBIN=$ac_ct_CPPBIN
4031 else
4032 CPPBIN="$ac_cv_prog_CPPBIN"
4036 cat >>confdefs.h <<_ACEOF
4037 #define EXEEXT "$ac_exeext"
4038 _ACEOF
4041 case $host in
4042 *-darwin*)
4043 if test "x$enable_win64" = "xyes"
4044 then
4045 CC="$CC -m64"
4046 CXX="$CXX -m64"
4047 LD="${LD:-ld} -arch x86_64"
4048 AS="${AS:-as} -arch x86_64"
4049 host_cpu="x86_64"
4050 notice_platform="64-bit "
4051 TARGETFLAGS="-m64"
4053 else
4054 CC="$CC -m32"
4055 CXX="$CXX -m32"
4056 LD="${LD:-ld} -arch i386"
4057 AS="${AS:-as} -arch i386"
4058 host_cpu="i386"
4059 notice_platform="32-bit "
4060 TARGETFLAGS="-m32"
4062 enable_win16=${enable_win16:-yes}
4065 x86_64*)
4066 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4067 then
4068 CC="$CC -m32"
4069 CXX="$CXX -m32"
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4071 $as_echo_n "checking whether $CC works... " >&6; }
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 main ()
4081 return 0;
4083 _ACEOF
4084 if ac_fn_c_try_link "$LINENO"; then :
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4086 $as_echo "yes" >&6; }
4087 else
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4090 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4092 rm -f core conftest.err conftest.$ac_objext \
4093 conftest$ac_exeext conftest.$ac_ext
4094 LD="${LD:-ld} -m elf_i386"
4095 AS="${AS:-as} --32"
4096 host_cpu="i386"
4097 notice_platform="32-bit "
4098 TARGETFLAGS="-m32"
4100 enable_win16=${enable_win16:-yes}
4101 else
4102 if test "x${GCC}" = "xyes"
4103 then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4105 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #include <stdarg.h>
4110 main ()
4112 void func(__builtin_ms_va_list *args);
4114 return 0;
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119 $as_echo "yes" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 TARGETFLAGS="-m64"
4131 *-mingw32*|*-cygwin*)
4132 enable_win16=${enable_win16:-no}
4133 CFLAGS="$CFLAGS -D_WIN32"
4135 i[3456789]86*)
4136 enable_win16=${enable_win16:-yes}
4138 esac
4140 enable_win16=${enable_win16:-no}
4142 enable_winetest=${enable_winetest:-$enable_tests}
4144 if test -n "$with_wine64"
4145 then
4146 if test "x$enable_win64" = "xyes"
4147 then
4148 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4149 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4151 WOW64_DISABLE=\#
4153 enable_fonts=${enable_fonts:-no}
4154 enable_server=${enable_server:-no}
4155 enable_tools=${enable_tools:-no}
4156 elif test "x$enable_win64" = "xyes"
4157 then
4158 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4162 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4163 if test "${wine_cv_toolsdir+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 wine_cv_toolsdir="$with_wine_tools"
4167 if test -z "$with_wine_tools"; then
4168 if test "$cross_compiling" = "yes"; then
4169 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4170 elif test -n "$with_wine64"; then
4171 wine_cv_toolsdir="$with_wine64"
4174 if test -z "$wine_cv_toolsdir"; then
4175 wine_cv_toolsdir="\$(top_builddir)"
4176 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4177 case "$wine_cv_toolsdir" in
4178 /*) ;;
4179 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4180 esac
4181 else
4182 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4186 $as_echo "$wine_cv_toolsdir" >&6; }
4187 TOOLSDIR=$wine_cv_toolsdir
4189 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4190 then
4191 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4195 for ac_prog in flex
4197 # Extract the first word of "$ac_prog", so it can be a program name with args.
4198 set dummy $ac_prog; ac_word=$2
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 $as_echo_n "checking for $ac_word... " >&6; }
4201 if test "${ac_cv_prog_FLEX+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -n "$FLEX"; then
4205 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214 ac_cv_prog_FLEX="$ac_prog"
4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4218 done
4219 done
4220 IFS=$as_save_IFS
4224 FLEX=$ac_cv_prog_FLEX
4225 if test -n "$FLEX"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4227 $as_echo "$FLEX" >&6; }
4228 else
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4234 test -n "$FLEX" && break
4235 done
4236 test -n "$FLEX" || FLEX="none"
4238 if test "$FLEX" = "none"
4239 then
4240 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4243 $as_echo_n "checking whether flex is recent enough... " >&6; }
4244 cat >conftest.l <<EOF
4245 %top{
4246 #include "prediluvian.h"
4250 if $FLEX -t conftest.l >/dev/null 2>&5
4251 then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4253 $as_echo "yes" >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4260 for ac_prog in bison
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if test "${ac_cv_prog_BISON+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$BISON"; then
4270 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_BISON="$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4283 done
4284 done
4285 IFS=$as_save_IFS
4289 BISON=$ac_cv_prog_BISON
4290 if test -n "$BISON"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4292 $as_echo "$BISON" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4299 test -n "$BISON" && break
4300 done
4301 test -n "$BISON" || BISON="none"
4303 if test "$BISON" = "none"
4304 then
4305 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4308 if test -n "$ac_tool_prefix"; then
4309 for ac_prog in ar gar
4311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if test "${ac_cv_prog_AR+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$AR"; then
4319 ac_cv_prog_AR="$AR" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4338 AR=$ac_cv_prog_AR
4339 if test -n "$AR"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4341 $as_echo "$AR" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4348 test -n "$AR" && break
4349 done
4351 if test -z "$AR"; then
4352 ac_ct_AR=$AR
4353 for ac_prog in ar gar
4355 # Extract the first word of "$ac_prog", so it can be a program name with args.
4356 set dummy $ac_prog; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$ac_ct_AR"; then
4363 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_ac_ct_AR="$ac_prog"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4376 done
4377 done
4378 IFS=$as_save_IFS
4382 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4383 if test -n "$ac_ct_AR"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4385 $as_echo "$ac_ct_AR" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4392 test -n "$ac_ct_AR" && break
4393 done
4395 if test "x$ac_ct_AR" = x; then
4396 AR="ar"
4397 else
4398 case $cross_compiling:$ac_tool_warned in
4399 yes:)
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4403 esac
4404 AR=$ac_ct_AR
4408 ARFLAGS=rc
4410 if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4412 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$RANLIB"; then
4419 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 RANLIB=$ac_cv_prog_RANLIB
4439 if test -n "$RANLIB"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4441 $as_echo "$RANLIB" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4449 if test -z "$ac_cv_prog_RANLIB"; then
4450 ac_ct_RANLIB=$RANLIB
4451 # Extract the first word of "ranlib", so it can be a program name with args.
4452 set dummy ranlib; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 if test -n "$ac_ct_RANLIB"; then
4459 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_ac_ct_RANLIB="ranlib"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4472 done
4473 done
4474 IFS=$as_save_IFS
4478 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4479 if test -n "$ac_ct_RANLIB"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4481 $as_echo "$ac_ct_RANLIB" >&6; }
4482 else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4487 if test "x$ac_ct_RANLIB" = x; then
4488 RANLIB=":"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 RANLIB=$ac_ct_RANLIB
4498 else
4499 RANLIB="$ac_cv_prog_RANLIB"
4502 if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4504 set dummy ${ac_tool_prefix}strip; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if test "${ac_cv_prog_STRIP+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if test -n "$STRIP"; then
4511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4524 done
4525 done
4526 IFS=$as_save_IFS
4530 STRIP=$ac_cv_prog_STRIP
4531 if test -n "$STRIP"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4533 $as_echo "$STRIP" >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4541 if test -z "$ac_cv_prog_STRIP"; then
4542 ac_ct_STRIP=$STRIP
4543 # Extract the first word of "strip", so it can be a program name with args.
4544 set dummy strip; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$ac_ct_STRIP"; then
4551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_ac_ct_STRIP="strip"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4564 done
4565 done
4566 IFS=$as_save_IFS
4570 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4571 if test -n "$ac_ct_STRIP"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4573 $as_echo "$ac_ct_STRIP" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4579 if test "x$ac_ct_STRIP" = x; then
4580 STRIP="strip"
4581 else
4582 case $cross_compiling:$ac_tool_warned in
4583 yes:)
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4586 ac_tool_warned=yes ;;
4587 esac
4588 STRIP=$ac_ct_STRIP
4590 else
4591 STRIP="$ac_cv_prog_STRIP"
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4595 $as_echo_n "checking whether ln -s works... " >&6; }
4596 LN_S=$as_ln_s
4597 if test "$LN_S" = "ln -s"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4599 $as_echo "yes" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4602 $as_echo "no, using $LN_S" >&6; }
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4606 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4607 if test "${ac_cv_path_GREP+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -z "$GREP"; then
4611 ac_path_GREP_found=false
4612 # Loop through the user's path and test for each of PROGNAME-LIST
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_prog in grep ggrep; do
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4621 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4622 # Check for GNU ac_path_GREP and select it if it is found.
4623 # Check for GNU $ac_path_GREP
4624 case `"$ac_path_GREP" --version 2>&1` in
4625 *GNU*)
4626 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4628 ac_count=0
4629 $as_echo_n 0123456789 >"conftest.in"
4630 while :
4632 cat "conftest.in" "conftest.in" >"conftest.tmp"
4633 mv "conftest.tmp" "conftest.in"
4634 cp "conftest.in" "conftest.nl"
4635 $as_echo 'GREP' >> "conftest.nl"
4636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4638 as_fn_arith $ac_count + 1 && ac_count=$as_val
4639 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4640 # Best one so far, save it but keep looking for a better one
4641 ac_cv_path_GREP="$ac_path_GREP"
4642 ac_path_GREP_max=$ac_count
4644 # 10*(2^10) chars as input seems more than enough
4645 test $ac_count -gt 10 && break
4646 done
4647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4648 esac
4650 $ac_path_GREP_found && break 3
4651 done
4652 done
4653 done
4654 IFS=$as_save_IFS
4655 if test -z "$ac_cv_path_GREP"; then
4656 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4658 else
4659 ac_cv_path_GREP=$GREP
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4664 $as_echo "$ac_cv_path_GREP" >&6; }
4665 GREP="$ac_cv_path_GREP"
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4669 $as_echo_n "checking for egrep... " >&6; }
4670 if test "${ac_cv_path_EGREP+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4674 then ac_cv_path_EGREP="$GREP -E"
4675 else
4676 if test -z "$EGREP"; then
4677 ac_path_EGREP_found=false
4678 # Loop through the user's path and test for each of PROGNAME-LIST
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_prog in egrep; do
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4687 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4688 # Check for GNU ac_path_EGREP and select it if it is found.
4689 # Check for GNU $ac_path_EGREP
4690 case `"$ac_path_EGREP" --version 2>&1` in
4691 *GNU*)
4692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4694 ac_count=0
4695 $as_echo_n 0123456789 >"conftest.in"
4696 while :
4698 cat "conftest.in" "conftest.in" >"conftest.tmp"
4699 mv "conftest.tmp" "conftest.in"
4700 cp "conftest.in" "conftest.nl"
4701 $as_echo 'EGREP' >> "conftest.nl"
4702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4704 as_fn_arith $ac_count + 1 && ac_count=$as_val
4705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4706 # Best one so far, save it but keep looking for a better one
4707 ac_cv_path_EGREP="$ac_path_EGREP"
4708 ac_path_EGREP_max=$ac_count
4710 # 10*(2^10) chars as input seems more than enough
4711 test $ac_count -gt 10 && break
4712 done
4713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4714 esac
4716 $ac_path_EGREP_found && break 3
4717 done
4718 done
4719 done
4720 IFS=$as_save_IFS
4721 if test -z "$ac_cv_path_EGREP"; then
4722 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724 else
4725 ac_cv_path_EGREP=$EGREP
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4731 $as_echo "$ac_cv_path_EGREP" >&6; }
4732 EGREP="$ac_cv_path_EGREP"
4735 # Extract the first word of "ldconfig", so it can be a program name with args.
4736 set dummy ldconfig; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 case $LDCONFIG in
4743 [\\/]* | ?:[\\/]*)
4744 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in /sbin /usr/sbin $PATH
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4758 done
4759 done
4760 IFS=$as_save_IFS
4762 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4764 esac
4766 LDCONFIG=$ac_cv_path_LDCONFIG
4767 if test -n "$LDCONFIG"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4769 $as_echo "$LDCONFIG" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4776 # Find a good install program. We prefer a C program (faster),
4777 # so one script is as good as another. But avoid the broken or
4778 # incompatible versions:
4779 # SysV /etc/install, /usr/sbin/install
4780 # SunOS /usr/etc/install
4781 # IRIX /sbin/install
4782 # AIX /bin/install
4783 # AmigaOS /C/install, which installs bootblocks on floppy discs
4784 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4785 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4786 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4787 # OS/2's system install, which has a completely different semantic
4788 # ./install, which can be erroneously created by make from ./install.sh.
4789 # Reject install programs that cannot install multiple files.
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4791 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4792 if test -z "$INSTALL"; then
4793 if test "${ac_cv_path_install+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 # Account for people who put trailing slashes in PATH elements.
4802 case $as_dir/ in #((
4803 ./ | .// | /[cC]/* | \
4804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4805 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4806 /usr/ucb/* ) ;;
4808 # OSF1 and SCO ODT 3.0 have their own names for install.
4809 # Don't use installbsd from OSF since it installs stuff as root
4810 # by default.
4811 for ac_prog in ginstall scoinst install; do
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4814 if test $ac_prog = install &&
4815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4816 # AIX install. It has an incompatible calling convention.
4818 elif test $ac_prog = install &&
4819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4820 # program-specific install script used by HP pwplus--don't use.
4822 else
4823 rm -rf conftest.one conftest.two conftest.dir
4824 echo one > conftest.one
4825 echo two > conftest.two
4826 mkdir conftest.dir
4827 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4828 test -s conftest.one && test -s conftest.two &&
4829 test -s conftest.dir/conftest.one &&
4830 test -s conftest.dir/conftest.two
4831 then
4832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4833 break 3
4837 done
4838 done
4840 esac
4842 done
4843 IFS=$as_save_IFS
4845 rm -rf conftest.one conftest.two conftest.dir
4848 if test "${ac_cv_path_install+set}" = set; then
4849 INSTALL=$ac_cv_path_install
4850 else
4851 # As a last resort, use the slow shell script. Don't cache a
4852 # value for INSTALL within a source directory, because that will
4853 # break other packages using the cache if that directory is
4854 # removed, or if the value is a relative name.
4855 INSTALL=$ac_install_sh
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4859 $as_echo "$INSTALL" >&6; }
4861 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4862 # It thinks the first close brace ends the variable substitution.
4863 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4865 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4867 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4869 case "$INSTALL" in
4870 [\\/$]* | ?:[\\/]* ) ;;
4871 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4872 esac
4874 for ac_prog in lclint lint
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877 set dummy $ac_prog; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if test "${ac_cv_prog_LINT+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test -n "$LINT"; then
4884 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_LINT="$ac_prog"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4897 done
4898 done
4899 IFS=$as_save_IFS
4903 LINT=$ac_cv_prog_LINT
4904 if test -n "$LINT"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4906 $as_echo "$LINT" >&6; }
4907 else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4913 test -n "$LINT" && break
4914 done
4916 if test "$LINT" = "lint"
4917 then
4918 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4923 for ac_prog in fontforge
4925 # Extract the first word of "$ac_prog", so it can be a program name with args.
4926 set dummy $ac_prog; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$FONTFORGE"; then
4933 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_FONTFORGE="$ac_prog"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4946 done
4947 done
4948 IFS=$as_save_IFS
4952 FONTFORGE=$ac_cv_prog_FONTFORGE
4953 if test -n "$FONTFORGE"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4955 $as_echo "$FONTFORGE" >&6; }
4956 else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4962 test -n "$FONTFORGE" && break
4963 done
4964 test -n "$FONTFORGE" || FONTFORGE="false"
4966 for ac_prog in pkg-config
4968 # Extract the first word of "$ac_prog", so it can be a program name with args.
4969 set dummy $ac_prog; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 if test -n "$PKG_CONFIG"; then
4976 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_PKG_CONFIG="$ac_prog"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4989 done
4990 done
4991 IFS=$as_save_IFS
4995 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4996 if test -n "$PKG_CONFIG"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4998 $as_echo "$PKG_CONFIG" >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5005 test -n "$PKG_CONFIG" && break
5006 done
5007 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5009 for ac_prog in rsvg
5011 # Extract the first word of "$ac_prog", so it can be a program name with args.
5012 set dummy $ac_prog; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if test "${ac_cv_prog_RSVG+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$RSVG"; then
5019 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_RSVG="$ac_prog"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5034 IFS=$as_save_IFS
5038 RSVG=$ac_cv_prog_RSVG
5039 if test -n "$RSVG"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5041 $as_echo "$RSVG" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5048 test -n "$RSVG" && break
5049 done
5050 test -n "$RSVG" || RSVG="false"
5052 for ac_prog in convert
5054 # Extract the first word of "$ac_prog", so it can be a program name with args.
5055 set dummy $ac_prog; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$CONVERT"; then
5062 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_CONVERT="$ac_prog"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5081 CONVERT=$ac_cv_prog_CONVERT
5082 if test -n "$CONVERT"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5084 $as_echo "$CONVERT" >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5091 test -n "$CONVERT" && break
5092 done
5093 test -n "$CONVERT" || CONVERT="false"
5095 for ac_prog in icotool
5097 # Extract the first word of "$ac_prog", so it can be a program name with args.
5098 set dummy $ac_prog; ac_word=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 if test -n "$ICOTOOL"; then
5105 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5114 ac_cv_prog_ICOTOOL="$ac_prog"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5118 done
5119 done
5120 IFS=$as_save_IFS
5124 ICOTOOL=$ac_cv_prog_ICOTOOL
5125 if test -n "$ICOTOOL"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5127 $as_echo "$ICOTOOL" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5134 test -n "$ICOTOOL" && break
5135 done
5136 test -n "$ICOTOOL" || ICOTOOL="false"
5139 if test "x$enable_maintainer_mode" != "xyes"
5140 then
5141 MAINTAINER_MODE=\#
5143 else
5144 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5145 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
5147 if test "$CONVERT" = false
5148 then
5149 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5152 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5153 convert_version=`convert --version | head -n1`
5154 if test "x$convert_version" != "x"
5155 then
5156 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5157 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5158 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5159 then
5160 CONVERT=false
5163 if test "$CONVERT" = false
5164 then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5166 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5167 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5170 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5174 if test "$ICOTOOL" = false
5175 then
5176 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5179 $as_echo_n "checking for recent enough icotool... " >&6; }
5180 icotool_version=`icotool --version | head -n1`
5181 if test "x$icotool_version" != "x"
5182 then
5183 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5184 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5185 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5186 then
5187 ICOTOOL=false
5188 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5191 if test "$ICOTOOL" = false
5192 then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5194 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5195 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5198 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5206 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5207 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 ac_check_lib_save_LIBS=$LIBS
5211 LIBS="-li386 $LIBS"
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5215 /* Override any GCC internal prototype to avoid an error.
5216 Use char because int might match the return type of a GCC
5217 builtin and then its argument prototype would still apply. */
5218 #ifdef __cplusplus
5219 extern "C"
5220 #endif
5221 char i386_set_ldt ();
5223 main ()
5225 return i386_set_ldt ();
5227 return 0;
5229 _ACEOF
5230 if ac_fn_c_try_link "$LINENO"; then :
5231 ac_cv_lib_i386_i386_set_ldt=yes
5232 else
5233 ac_cv_lib_i386_i386_set_ldt=no
5235 rm -f core conftest.err conftest.$ac_objext \
5236 conftest$ac_exeext conftest.$ac_ext
5237 LIBS=$ac_check_lib_save_LIBS
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5240 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5241 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5242 cat >>confdefs.h <<_ACEOF
5243 #define HAVE_LIBI386 1
5244 _ACEOF
5246 LIBS="-li386 $LIBS"
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5251 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5252 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 ac_check_lib_save_LIBS=$LIBS
5256 LIBS="-lossaudio $LIBS"
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5260 /* Override any GCC internal prototype to avoid an error.
5261 Use char because int might match the return type of a GCC
5262 builtin and then its argument prototype would still apply. */
5263 #ifdef __cplusplus
5264 extern "C"
5265 #endif
5266 char _oss_ioctl ();
5268 main ()
5270 return _oss_ioctl ();
5272 return 0;
5274 _ACEOF
5275 if ac_fn_c_try_link "$LINENO"; then :
5276 ac_cv_lib_ossaudio__oss_ioctl=yes
5277 else
5278 ac_cv_lib_ossaudio__oss_ioctl=no
5280 rm -f core conftest.err conftest.$ac_objext \
5281 conftest$ac_exeext conftest.$ac_ext
5282 LIBS=$ac_check_lib_save_LIBS
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5285 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5286 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5287 cat >>confdefs.h <<_ACEOF
5288 #define HAVE_LIBOSSAUDIO 1
5289 _ACEOF
5291 LIBS="-lossaudio $LIBS"
5296 XLIB=""
5298 OPENGL_LIBS=""
5302 # Check whether --enable-largefile was given.
5303 if test "${enable_largefile+set}" = set; then :
5304 enableval=$enable_largefile;
5307 if test "$enable_largefile" != no; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5310 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5311 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 ac_cv_sys_largefile_CC=no
5315 if test "$GCC" != yes; then
5316 ac_save_CC=$CC
5317 while :; do
5318 # IRIX 6.2 and later do not support large files by default,
5319 # so use the C compiler's -n32 option if that helps.
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #include <sys/types.h>
5323 /* Check that off_t can represent 2**63 - 1 correctly.
5324 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5325 since some C++ compilers masquerading as C compilers
5326 incorrectly reject 9223372036854775807. */
5327 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5328 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5329 && LARGE_OFF_T % 2147483647 == 1)
5330 ? 1 : -1];
5332 main ()
5336 return 0;
5338 _ACEOF
5339 if ac_fn_c_try_compile "$LINENO"; then :
5340 break
5342 rm -f core conftest.err conftest.$ac_objext
5343 CC="$CC -n32"
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 ac_cv_sys_largefile_CC=' -n32'; break
5347 rm -f core conftest.err conftest.$ac_objext
5348 break
5349 done
5350 CC=$ac_save_CC
5351 rm -f conftest.$ac_ext
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5355 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5356 if test "$ac_cv_sys_largefile_CC" != no; then
5357 CC=$CC$ac_cv_sys_largefile_CC
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5361 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5362 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 while :; do
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #include <sys/types.h>
5369 /* Check that off_t can represent 2**63 - 1 correctly.
5370 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5371 since some C++ compilers masquerading as C compilers
5372 incorrectly reject 9223372036854775807. */
5373 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5374 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5375 && LARGE_OFF_T % 2147483647 == 1)
5376 ? 1 : -1];
5378 main ()
5382 return 0;
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"; then :
5386 ac_cv_sys_file_offset_bits=no; break
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #define _FILE_OFFSET_BITS 64
5392 #include <sys/types.h>
5393 /* Check that off_t can represent 2**63 - 1 correctly.
5394 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5395 since some C++ compilers masquerading as C compilers
5396 incorrectly reject 9223372036854775807. */
5397 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5398 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5399 && LARGE_OFF_T % 2147483647 == 1)
5400 ? 1 : -1];
5402 main ()
5406 return 0;
5408 _ACEOF
5409 if ac_fn_c_try_compile "$LINENO"; then :
5410 ac_cv_sys_file_offset_bits=64; break
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 ac_cv_sys_file_offset_bits=unknown
5414 break
5415 done
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5418 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5419 case $ac_cv_sys_file_offset_bits in #(
5420 no | unknown) ;;
5422 cat >>confdefs.h <<_ACEOF
5423 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5424 _ACEOF
5426 esac
5427 rm -rf conftest*
5428 if test $ac_cv_sys_file_offset_bits = unknown; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5430 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5431 if test "${ac_cv_sys_large_files+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 while :; do
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 #include <sys/types.h>
5438 /* Check that off_t can represent 2**63 - 1 correctly.
5439 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5440 since some C++ compilers masquerading as C compilers
5441 incorrectly reject 9223372036854775807. */
5442 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5443 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5444 && LARGE_OFF_T % 2147483647 == 1)
5445 ? 1 : -1];
5447 main ()
5451 return 0;
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455 ac_cv_sys_large_files=no; break
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 #define _LARGE_FILES 1
5461 #include <sys/types.h>
5462 /* Check that off_t can represent 2**63 - 1 correctly.
5463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5464 since some C++ compilers masquerading as C compilers
5465 incorrectly reject 9223372036854775807. */
5466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5468 && LARGE_OFF_T % 2147483647 == 1)
5469 ? 1 : -1];
5471 main ()
5475 return 0;
5477 _ACEOF
5478 if ac_fn_c_try_compile "$LINENO"; then :
5479 ac_cv_sys_large_files=1; break
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 ac_cv_sys_large_files=unknown
5483 break
5484 done
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5487 $as_echo "$ac_cv_sys_large_files" >&6; }
5488 case $ac_cv_sys_large_files in #(
5489 no | unknown) ;;
5491 cat >>confdefs.h <<_ACEOF
5492 #define _LARGE_FILES $ac_cv_sys_large_files
5493 _ACEOF
5495 esac
5496 rm -rf conftest*
5501 ac_ext=c
5502 ac_cpp='$CPP $CPPFLAGS'
5503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5507 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5508 # On Suns, sometimes $CPP names a directory.
5509 if test -n "$CPP" && test -d "$CPP"; then
5510 CPP=
5512 if test -z "$CPP"; then
5513 if test "${ac_cv_prog_CPP+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 # Double quotes because CPP needs to be expanded
5517 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5519 ac_preproc_ok=false
5520 for ac_c_preproc_warn_flag in '' yes
5522 # Use a header file that comes with gcc, so configuring glibc
5523 # with a fresh cross-compiler works.
5524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5525 # <limits.h> exists even on freestanding compilers.
5526 # On the NeXT, cc -E runs the code through the compiler's parser,
5527 # not just through cpp. "Syntax error" is here to catch this case.
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #ifdef __STDC__
5531 # include <limits.h>
5532 #else
5533 # include <assert.h>
5534 #endif
5535 Syntax error
5536 _ACEOF
5537 if ac_fn_c_try_cpp "$LINENO"; then :
5539 else
5540 # Broken: fails on valid input.
5541 continue
5543 rm -f conftest.err conftest.i conftest.$ac_ext
5545 # OK, works on sane cases. Now check whether nonexistent headers
5546 # can be detected and how.
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 #include <ac_nonexistent.h>
5550 _ACEOF
5551 if ac_fn_c_try_cpp "$LINENO"; then :
5552 # Broken: success on invalid input.
5553 continue
5554 else
5555 # Passes both tests.
5556 ac_preproc_ok=:
5557 break
5559 rm -f conftest.err conftest.i conftest.$ac_ext
5561 done
5562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5563 rm -f conftest.i conftest.err conftest.$ac_ext
5564 if $ac_preproc_ok; then :
5565 break
5568 done
5569 ac_cv_prog_CPP=$CPP
5572 CPP=$ac_cv_prog_CPP
5573 else
5574 ac_cv_prog_CPP=$CPP
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5577 $as_echo "$CPP" >&6; }
5578 ac_preproc_ok=false
5579 for ac_c_preproc_warn_flag in '' yes
5581 # Use a header file that comes with gcc, so configuring glibc
5582 # with a fresh cross-compiler works.
5583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584 # <limits.h> exists even on freestanding compilers.
5585 # On the NeXT, cc -E runs the code through the compiler's parser,
5586 # not just through cpp. "Syntax error" is here to catch this case.
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #ifdef __STDC__
5590 # include <limits.h>
5591 #else
5592 # include <assert.h>
5593 #endif
5594 Syntax error
5595 _ACEOF
5596 if ac_fn_c_try_cpp "$LINENO"; then :
5598 else
5599 # Broken: fails on valid input.
5600 continue
5602 rm -f conftest.err conftest.i conftest.$ac_ext
5604 # OK, works on sane cases. Now check whether nonexistent headers
5605 # can be detected and how.
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #include <ac_nonexistent.h>
5609 _ACEOF
5610 if ac_fn_c_try_cpp "$LINENO"; then :
5611 # Broken: success on invalid input.
5612 continue
5613 else
5614 # Passes both tests.
5615 ac_preproc_ok=:
5616 break
5618 rm -f conftest.err conftest.i conftest.$ac_ext
5620 done
5621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5622 rm -f conftest.i conftest.err conftest.$ac_ext
5623 if $ac_preproc_ok; then :
5625 else
5626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5628 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5629 See \`config.log' for more details" "$LINENO" 5 ; }
5632 ac_ext=c
5633 ac_cpp='$CPP $CPPFLAGS'
5634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5640 $as_echo_n "checking for ANSI C header files... " >&6; }
5641 if test "${ac_cv_header_stdc+set}" = set; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 #include <stdlib.h>
5647 #include <stdarg.h>
5648 #include <string.h>
5649 #include <float.h>
5652 main ()
5656 return 0;
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"; then :
5660 ac_cv_header_stdc=yes
5661 else
5662 ac_cv_header_stdc=no
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 if test $ac_cv_header_stdc = yes; then
5667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 #include <string.h>
5672 _ACEOF
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "memchr" >/dev/null 2>&1; then :
5676 else
5677 ac_cv_header_stdc=no
5679 rm -f conftest*
5683 if test $ac_cv_header_stdc = yes; then
5684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #include <stdlib.h>
5689 _ACEOF
5690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5691 $EGREP "free" >/dev/null 2>&1; then :
5693 else
5694 ac_cv_header_stdc=no
5696 rm -f conftest*
5700 if test $ac_cv_header_stdc = yes; then
5701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5702 if test "$cross_compiling" = yes; then :
5704 else
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 #include <ctype.h>
5708 #include <stdlib.h>
5709 #if ((' ' & 0x0FF) == 0x020)
5710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5712 #else
5713 # define ISLOWER(c) \
5714 (('a' <= (c) && (c) <= 'i') \
5715 || ('j' <= (c) && (c) <= 'r') \
5716 || ('s' <= (c) && (c) <= 'z'))
5717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5718 #endif
5720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5722 main ()
5724 int i;
5725 for (i = 0; i < 256; i++)
5726 if (XOR (islower (i), ISLOWER (i))
5727 || toupper (i) != TOUPPER (i))
5728 return 2;
5729 return 0;
5731 _ACEOF
5732 if ac_fn_c_try_run "$LINENO"; then :
5734 else
5735 ac_cv_header_stdc=no
5737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5738 conftest.$ac_objext conftest.beam conftest.$ac_ext
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5744 $as_echo "$ac_cv_header_stdc" >&6; }
5745 if test $ac_cv_header_stdc = yes; then
5747 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5753 inttypes.h stdint.h unistd.h
5754 do :
5755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5756 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5759 cat >>confdefs.h <<_ACEOF
5760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5761 _ACEOF
5765 done
5768 for ac_header in \
5769 AL/al.h \
5770 AudioToolbox/AudioConverter.h \
5771 AudioUnit/AudioUnit.h \
5772 CL/opencl.h \
5773 Carbon/Carbon.h \
5774 CoreAudio/CoreAudio.h \
5775 DiskArbitration/DiskArbitration.h \
5776 IOKit/IOKitLib.h \
5777 IOKit/hid/IOHIDLib.h \
5778 OpenAL/al.h \
5779 OpenCL/opencl.h \
5780 alias.h \
5781 alsa/asoundlib.h \
5782 arpa/inet.h \
5783 arpa/nameser.h \
5784 asm/types.h \
5785 capi20.h \
5786 curses.h \
5787 direct.h \
5788 dirent.h \
5789 dlfcn.h \
5790 elf.h \
5791 float.h \
5792 fnmatch.h \
5793 fontconfig/fontconfig.h \
5794 getopt.h \
5795 grp.h \
5796 gsm.h \
5797 gsm/gsm.h \
5798 icns.h \
5799 ieeefp.h \
5800 inet/mib2.h \
5801 io.h \
5802 jack/jack.h \
5803 jpeglib.h \
5804 kstat.h \
5805 lber.h \
5806 lcms.h \
5807 lcms/lcms.h \
5808 ldap.h \
5809 libaudioio.h \
5810 link.h \
5811 linux/cdrom.h \
5812 linux/compiler.h \
5813 linux/hdreg.h \
5814 linux/input.h \
5815 linux/ioctl.h \
5816 linux/joystick.h \
5817 linux/major.h \
5818 linux/param.h \
5819 linux/serial.h \
5820 linux/types.h \
5821 linux/ucdrom.h \
5822 mach-o/nlist.h \
5823 mach-o/loader.h \
5824 mach/mach.h \
5825 mach/machine.h \
5826 machine/cpu.h \
5827 machine/limits.h \
5828 machine/soundcard.h \
5829 machine/sysarch.h \
5830 mntent.h \
5831 mpg123.h \
5832 ncurses.h \
5833 netdb.h \
5834 netinet/in.h \
5835 netinet/in_systm.h \
5836 netinet/tcp.h \
5837 netinet/tcp_fsm.h \
5838 openssl/err.h \
5839 openssl/ssl.h \
5840 png.h \
5841 poll.h \
5842 port.h \
5843 process.h \
5844 pthread.h \
5845 pwd.h \
5846 regex.h \
5847 sched.h \
5848 scsi/scsi.h \
5849 scsi/scsi_ioctl.h \
5850 scsi/sg.h \
5851 soundcard.h \
5852 stdbool.h \
5853 stdint.h \
5854 strings.h \
5855 stropts.h \
5856 sys/asoundlib.h \
5857 sys/cdio.h \
5858 sys/elf32.h \
5859 sys/epoll.h \
5860 sys/errno.h \
5861 sys/event.h \
5862 sys/exec_elf.h \
5863 sys/filio.h \
5864 sys/inotify.h \
5865 sys/ioctl.h \
5866 sys/ipc.h \
5867 sys/limits.h \
5868 sys/link.h \
5869 sys/mman.h \
5870 sys/modem.h \
5871 sys/msg.h \
5872 sys/mtio.h \
5873 sys/param.h \
5874 sys/poll.h \
5875 sys/prctl.h \
5876 sys/protosw.h \
5877 sys/ptrace.h \
5878 sys/resource.h \
5879 sys/scsiio.h \
5880 sys/shm.h \
5881 sys/signal.h \
5882 sys/socket.h \
5883 sys/socketvar.h \
5884 sys/sockio.h \
5885 sys/soundcard.h \
5886 sys/statvfs.h \
5887 sys/strtio.h \
5888 sys/syscall.h \
5889 sys/tihdr.h \
5890 sys/time.h \
5891 sys/timeout.h \
5892 sys/times.h \
5893 sys/uio.h \
5894 sys/un.h \
5895 sys/utsname.h \
5896 sys/vm86.h \
5897 sys/wait.h \
5898 syscall.h \
5899 termios.h \
5900 tiffio.h \
5901 unistd.h \
5902 utime.h \
5903 valgrind/memcheck.h \
5904 valgrind/valgrind.h \
5905 zlib.h
5907 do :
5908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5910 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5911 cat >>confdefs.h <<_ACEOF
5912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5913 _ACEOF
5917 done
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5920 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5921 if test "${ac_cv_header_stat_broken+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 #include <sys/types.h>
5927 #include <sys/stat.h>
5929 #if defined S_ISBLK && defined S_IFDIR
5930 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5931 #endif
5933 #if defined S_ISBLK && defined S_IFCHR
5934 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5935 #endif
5937 #if defined S_ISLNK && defined S_IFREG
5938 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5939 #endif
5941 #if defined S_ISSOCK && defined S_IFREG
5942 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5943 #endif
5945 _ACEOF
5946 if ac_fn_c_try_compile "$LINENO"; then :
5947 ac_cv_header_stat_broken=no
5948 else
5949 ac_cv_header_stat_broken=yes
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5954 $as_echo "$ac_cv_header_stat_broken" >&6; }
5955 if test $ac_cv_header_stat_broken = yes; then
5957 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5963 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5964 do :
5965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5966 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5967 #ifdef HAVE_SYS_PARAM_H
5968 # include <sys/param.h>
5969 #endif
5971 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5972 cat >>confdefs.h <<_ACEOF
5973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5974 _ACEOF
5978 done
5981 for ac_header in \
5982 netinet/ip.h \
5983 net/if.h \
5984 net/if_arp.h \
5985 net/if_dl.h \
5986 net/if_types.h \
5987 net/route.h \
5988 netinet/if_ether.h \
5989 netinet/if_inarp.h \
5990 netinet/in_pcb.h \
5991 netinet/ip_icmp.h \
5992 netinet/ip_var.h \
5993 netinet/udp.h \
5994 netipx/ipx.h \
5996 do :
5997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5998 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5999 #ifdef HAVE_SYS_SOCKET_H
6000 # include <sys/socket.h>
6001 #endif
6002 #ifdef HAVE_SYS_SOCKETVAR_H
6003 # include <sys/socketvar.h>
6004 #endif
6005 #ifdef HAVE_NET_ROUTE_H
6006 # include <net/route.h>
6007 #endif
6008 #ifdef HAVE_NETINET_IN_H
6009 # include <netinet/in.h>
6010 #endif
6011 #ifdef HAVE_NETINET_IN_SYSTM_H
6012 # include <netinet/in_systm.h>
6013 #endif
6014 #ifdef HAVE_NET_IF_H
6015 # include <net/if.h>
6016 #endif
6017 #ifdef HAVE_NETINET_IP_H
6018 # include <netinet/ip.h>
6019 #endif
6021 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6022 cat >>confdefs.h <<_ACEOF
6023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6024 _ACEOF
6028 done
6031 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6032 do :
6033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6034 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6035 #ifdef HAVE_ALIAS_H
6036 # include <alias.h>
6037 #endif
6038 #ifdef HAVE_SYS_SOCKET_H
6039 # include <sys/socket.h>
6040 #endif
6041 #ifdef HAVE_SYS_SOCKETVAR_H
6042 # include <sys/socketvar.h>
6043 #endif
6044 #ifdef HAVE_SYS_TIMEOUT_H
6045 # include <sys/timeout.h>
6046 #endif
6047 #ifdef HAVE_NETINET_IN_H
6048 # include <netinet/in.h>
6049 #endif
6050 #ifdef HAVE_NETINET_IN_SYSTM_H
6051 # include <netinet/in_systm.h>
6052 #endif
6053 #ifdef HAVE_NETINET_IP_H
6054 # include <netinet/ip.h>
6055 #endif
6056 #ifdef HAVE_NETINET_IP_VAR_H
6057 # include <netinet/ip_var.h>
6058 #endif
6059 #ifdef HAVE_NETINET_IP_ICMP_H
6060 # include <netinet/ip_icmp.h>
6061 #endif
6062 #ifdef HAVE_NETINET_UDP_H
6063 # include <netinet/udp.h>
6064 #endif
6065 #ifdef HAVE_NETINET_TCP_H
6066 # include <netinet/tcp.h>
6067 #endif
6068 #ifdef HAVE_NETINET_TCP_TIMER_H
6069 #include <netinet/tcp_timer.h>
6070 #endif
6072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6073 cat >>confdefs.h <<_ACEOF
6074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6075 _ACEOF
6079 done
6082 for ac_header in linux/ipx.h linux/irda.h
6083 do :
6084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6085 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6086 #ifdef HAVE_ASM_TYPES_H
6087 # include <asm/types.h>
6088 #endif
6089 #ifdef HAVE_SYS_SOCKET_H
6090 # include <sys/socket.h>
6091 #endif
6092 #ifdef HAVE_LINUX_TYPES_H
6093 # include <linux/types.h>
6094 #endif
6096 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6097 cat >>confdefs.h <<_ACEOF
6098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6099 _ACEOF
6103 done
6106 for ac_header in mach-o/dyld_images.h
6107 do :
6108 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6109 # include <stdbool.h>
6110 #endif
6111 #ifdef HAVE_STDINT_H
6112 # include <stdint.h>
6113 #endif
6115 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6116 cat >>confdefs.h <<_ACEOF
6117 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6118 _ACEOF
6122 done
6125 for ac_header in resolv.h
6126 do :
6127 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6128 #ifdef HAVE_SYS_SOCKET_H
6129 # include <sys/socket.h>
6130 #endif
6131 #ifdef HAVE_NETINET_IN_H
6132 # include <netinet/in.h>
6133 #endif
6134 #ifdef HAVE_ARPA_NAMESER_H
6135 # include <arpa/nameser.h>
6136 #endif
6138 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6139 cat >>confdefs.h <<_ACEOF
6140 #define HAVE_RESOLV_H 1
6141 _ACEOF
6145 done
6148 for ac_header in ifaddrs.h
6149 do :
6150 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6152 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6153 cat >>confdefs.h <<_ACEOF
6154 #define HAVE_IFADDRS_H 1
6155 _ACEOF
6159 done
6162 for ac_header in ucontext.h
6163 do :
6164 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6166 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6167 cat >>confdefs.h <<_ACEOF
6168 #define HAVE_UCONTEXT_H 1
6169 _ACEOF
6173 done
6176 for ac_header in sys/thr.h
6177 do :
6178 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6179 #ifdef HAVE_UCONTEXT_H
6180 #include <ucontext.h>
6181 #endif
6183 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6184 cat >>confdefs.h <<_ACEOF
6185 #define HAVE_SYS_THR_H 1
6186 _ACEOF
6190 done
6193 for ac_header in pthread_np.h
6194 do :
6195 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6196 #include <pthread.h>
6197 #endif
6199 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6200 cat >>confdefs.h <<_ACEOF
6201 #define HAVE_PTHREAD_NP_H 1
6202 _ACEOF
6206 done
6209 for ac_header in linux/videodev.h
6210 do :
6211 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6212 #include <sys/time.h>
6213 #endif
6214 #include <sys/types.h>
6215 #ifdef HAVE_ASM_TYPES_H
6216 #include <asm/types.h>
6217 #endif
6219 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6220 cat >>confdefs.h <<_ACEOF
6221 #define HAVE_LINUX_VIDEODEV_H 1
6222 _ACEOF
6226 done
6229 for ac_header in linux/capi.h
6230 do :
6231 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6233 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE_LINUX_CAPI_H 1
6236 _ACEOF
6240 done
6244 DLLEXT=""
6246 DLLFLAGS="-D_REENTRANT"
6248 LDSHARED=""
6250 LDDLLFLAGS=""
6252 LIBEXT="so"
6254 IMPLIBEXT="def"
6256 LDRPATH_INSTALL=""
6258 LDRPATH_LOCAL=""
6260 STATIC_IMPLIBEXT="def.a"
6261 # Extract the first word of "ldd", so it can be a program name with args.
6262 set dummy ldd; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if test "${ac_cv_path_LDD+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 case $LDD in
6269 [\\/]* | ?:[\\/]*)
6270 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 as_dummy="/sbin:/usr/sbin:$PATH"
6275 for as_dir in $as_dummy
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6285 done
6286 done
6287 IFS=$as_save_IFS
6289 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6291 esac
6293 LDD=$ac_cv_path_LDD
6294 if test -n "$LDD"; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6296 $as_echo "$LDD" >&6; }
6297 else
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6304 case $host_os in
6305 cygwin*|mingw32*)
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 if test -n "$DLLTOOL"; then
6315 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6328 done
6329 done
6330 IFS=$as_save_IFS
6334 DLLTOOL=$ac_cv_prog_DLLTOOL
6335 if test -n "$DLLTOOL"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6337 $as_echo "$DLLTOOL" >&6; }
6338 else
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6345 if test -z "$ac_cv_prog_DLLTOOL"; then
6346 ac_ct_DLLTOOL=$DLLTOOL
6347 # Extract the first word of "dlltool", so it can be a program name with args.
6348 set dummy dlltool; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if test -n "$ac_ct_DLLTOOL"; then
6355 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6368 done
6369 done
6370 IFS=$as_save_IFS
6374 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6375 if test -n "$ac_ct_DLLTOOL"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6377 $as_echo "$ac_ct_DLLTOOL" >&6; }
6378 else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6383 if test "x$ac_ct_DLLTOOL" = x; then
6384 DLLTOOL="false"
6385 else
6386 case $cross_compiling:$ac_tool_warned in
6387 yes:)
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390 ac_tool_warned=yes ;;
6391 esac
6392 DLLTOOL=$ac_ct_DLLTOOL
6394 else
6395 DLLTOOL="$ac_cv_prog_DLLTOOL"
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 if test -n "$DLLWRAP"; then
6407 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6420 done
6421 done
6422 IFS=$as_save_IFS
6426 DLLWRAP=$ac_cv_prog_DLLWRAP
6427 if test -n "$DLLWRAP"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6429 $as_echo "$DLLWRAP" >&6; }
6430 else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6437 if test -z "$ac_cv_prog_DLLWRAP"; then
6438 ac_ct_DLLWRAP=$DLLWRAP
6439 # Extract the first word of "dllwrap", so it can be a program name with args.
6440 set dummy dllwrap; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$ac_ct_DLLWRAP"; then
6447 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6460 done
6461 done
6462 IFS=$as_save_IFS
6466 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6467 if test -n "$ac_ct_DLLWRAP"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6469 $as_echo "$ac_ct_DLLWRAP" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6475 if test "x$ac_ct_DLLWRAP" = x; then
6476 DLLWRAP="false"
6477 else
6478 case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484 DLLWRAP=$ac_ct_DLLWRAP
6486 else
6487 DLLWRAP="$ac_cv_prog_DLLWRAP"
6490 if test "$DLLWRAP" = "false"; then
6491 LIBEXT="a"
6492 else
6493 LIBEXT="dll"
6495 IMPLIBEXT="a"
6496 STATIC_IMPLIBEXT="a"
6497 enable_iphlpapi=${enable_iphlpapi:-no}
6498 enable_kernel32=${enable_kernel32:-no}
6499 enable_msvcrt=${enable_msvcrt:-no}
6500 enable_ntdll=${enable_ntdll:-no}
6501 enable_ws2_32=${enable_ws2_32:-no}
6502 enable_loader=${enable_loader:-no}
6503 enable_server=${enable_server:-no}
6504 with_x=${with_x:-no}
6505 with_pthread=${with_pthread:-no}
6507 darwin*|macosx*)
6508 DLLEXT=".so"
6509 LIBEXT="dylib"
6510 DLLFLAGS="$DLLFLAGS -fPIC"
6511 LDDLLFLAGS="-bundle -multiply_defined suppress"
6512 LIBWINE_LDFLAGS="-multiply_defined suppress"
6513 LDSHARED="\$(CC) -dynamiclib"
6514 STRIP="$STRIP -x"
6515 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6516 SECURITYLIB="-framework Security -framework CoreFoundation"
6518 COREFOUNDATIONLIB="-framework CoreFoundation"
6520 IOKITLIB="-framework IOKit -framework CoreFoundation"
6522 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6524 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6526 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6527 then
6528 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6531 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6532 then
6533 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6536 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6537 then
6538 FRAMEWORK_OPENAL="-framework OpenAL"
6541 cat >>confdefs.h <<_ACEOF
6542 #define HAVE_OPENAL 1
6543 _ACEOF
6545 ac_cv_lib_openal=yes
6547 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6548 then
6549 LIBOPENCL="-framework OpenCL"
6551 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6553 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6554 then
6555 ac_save_LIBS="$LIBS"
6556 LIBS="$LIBS $IOKITLIB"
6557 for ac_func in IOHIDManagerCreate
6558 do :
6559 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6560 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6561 cat >>confdefs.h <<_ACEOF
6562 #define HAVE_IOHIDMANAGERCREATE 1
6563 _ACEOF
6566 done
6568 LIBS="$ac_save_LIBS"
6570 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6571 case $host_cpu in
6572 *powerpc*)
6573 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6574 esac
6575 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6576 then
6577 CARBONLIB="-framework Carbon"
6579 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6581 if test "x$enable_win16" = "xyes"
6582 then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6584 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6585 if test "$cross_compiling" = yes; then :
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6587 $as_echo "cross-compiling, assuming yes" >&6; }
6588 else
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591 asm(".text\n"
6592 "bad:\tnop;nop\n"
6593 "good:\tnop;nop\n\t"
6594 ".globl _testfunc\n"
6595 "_testfunc:\tcallw good");
6596 extern void testfunc();
6598 main ()
6600 unsigned short *p = (unsigned short *)testfunc;
6601 return p[0] != 0xe866 || p[1] != 0xfffa
6603 return 0;
6605 _ACEOF
6606 if ac_fn_c_try_run "$LINENO"; then :
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6608 $as_echo "yes" >&6; }
6609 else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6612 as_fn_error $? "Xcode 3.x cannot build 16-bit code correctly. Use --disable-win16 if you don't need 16-bit support." "$LINENO" 5
6614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6615 conftest.$ac_objext conftest.beam conftest.$ac_ext
6621 DLLFLAGS="$DLLFLAGS -fPIC"
6622 DLLEXT=".so"
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6624 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6625 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 ac_wine_try_cflags_saved=$CFLAGS
6629 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 void myfunc() {}
6633 _ACEOF
6634 if ac_fn_c_try_link "$LINENO"; then :
6635 ac_cv_c_dll_gnuelf="yes"
6636 else
6637 ac_cv_c_dll_gnuelf="no"
6639 rm -f core conftest.err conftest.$ac_objext \
6640 conftest$ac_exeext conftest.$ac_ext
6641 CFLAGS=$ac_wine_try_cflags_saved
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6644 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6645 if test "$ac_cv_c_dll_gnuelf" = "yes"
6646 then
6647 LDSHARED="\$(CC) -shared"
6648 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6650 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6651 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 ac_wine_try_cflags_saved=$CFLAGS
6655 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658 int main(int argc, char **argv) { return 0; }
6659 _ACEOF
6660 if ac_fn_c_try_link "$LINENO"; then :
6661 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6662 else
6663 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6665 rm -f core conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext conftest.$ac_ext
6667 CFLAGS=$ac_wine_try_cflags_saved
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6670 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6671 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6672 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6673 else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6675 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6676 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 ac_wine_try_cflags_saved=$CFLAGS
6680 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 int main(int argc, char **argv) { return 0; }
6684 _ACEOF
6685 if ac_fn_c_try_link "$LINENO"; then :
6686 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6687 else
6688 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6690 rm -f core conftest.err conftest.$ac_objext \
6691 conftest$ac_exeext conftest.$ac_ext
6692 CFLAGS=$ac_wine_try_cflags_saved
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6695 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6696 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6697 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6702 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6703 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 ac_wine_try_cflags_saved=$CFLAGS
6707 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 int main(int argc, char **argv) { return 0; }
6711 _ACEOF
6712 if ac_fn_c_try_link "$LINENO"; then :
6713 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6714 else
6715 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6717 rm -f core conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
6719 CFLAGS=$ac_wine_try_cflags_saved
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6722 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6723 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6724 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
6728 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6729 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 ac_wine_try_cflags_saved=$CFLAGS
6733 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 int main(int argc, char **argv) { return 0; }
6737 _ACEOF
6738 if ac_fn_c_try_link "$LINENO"; then :
6739 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6740 else
6741 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6743 rm -f core conftest.err conftest.$ac_objext \
6744 conftest$ac_exeext conftest.$ac_ext
6745 CFLAGS=$ac_wine_try_cflags_saved
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6748 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6749 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6750 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6753 echo '{ global: *; };' >conftest.map
6754 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6756 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6757 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 ac_wine_try_cflags_saved=$CFLAGS
6761 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6764 int main(int argc, char **argv) { return 0; }
6765 _ACEOF
6766 if ac_fn_c_try_link "$LINENO"; then :
6767 eval "$as_ac_var=yes"
6768 else
6769 eval "$as_ac_var=no"
6771 rm -f core conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773 CFLAGS=$ac_wine_try_cflags_saved
6775 eval ac_res=\$$as_ac_var
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6777 $as_echo "$ac_res" >&6; }
6778 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6779 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6781 rm -f conftest.map
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6784 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6785 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 ac_wine_try_cflags_saved=$CFLAGS
6789 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6792 int main(int argc, char **argv) { return 0; }
6793 _ACEOF
6794 if ac_fn_c_try_link "$LINENO"; then :
6795 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6796 else
6797 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6799 rm -f core conftest.err conftest.$ac_objext \
6800 conftest$ac_exeext conftest.$ac_ext
6801 CFLAGS=$ac_wine_try_cflags_saved
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6804 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6805 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6806 LDEXECFLAGS="-Wl,--export-dynamic"
6810 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6812 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6813 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 ac_wine_try_cflags_saved=$CFLAGS
6817 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 int main(int argc, char **argv) { return 0; }
6821 _ACEOF
6822 if ac_fn_c_try_link "$LINENO"; then :
6823 eval "$as_ac_var=yes"
6824 else
6825 eval "$as_ac_var=no"
6827 rm -f core conftest.err conftest.$ac_objext \
6828 conftest$ac_exeext conftest.$ac_ext
6829 CFLAGS=$ac_wine_try_cflags_saved
6831 eval ac_res=\$$as_ac_var
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6833 $as_echo "$ac_res" >&6; }
6834 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6835 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6836 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6837 else
6838 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6840 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6841 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 ac_wine_try_cflags_saved=$CFLAGS
6845 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 int main(int argc, char **argv) { return 0; }
6849 _ACEOF
6850 if ac_fn_c_try_link "$LINENO"; then :
6851 eval "$as_ac_var=yes"
6852 else
6853 eval "$as_ac_var=no"
6855 rm -f core conftest.err conftest.$ac_objext \
6856 conftest$ac_exeext conftest.$ac_ext
6857 CFLAGS=$ac_wine_try_cflags_saved
6859 eval ac_res=\$$as_ac_var
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6861 $as_echo "$ac_res" >&6; }
6862 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6863 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6864 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6869 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6870 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 ac_wine_try_cflags_saved=$CFLAGS
6874 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 int main(int argc, char **argv) { return 0; }
6878 _ACEOF
6879 if ac_fn_c_try_link "$LINENO"; then :
6880 ac_cv_cflags__Wl___enable_new_dtags=yes
6881 else
6882 ac_cv_cflags__Wl___enable_new_dtags=no
6884 rm -f core conftest.err conftest.$ac_objext \
6885 conftest$ac_exeext conftest.$ac_ext
6886 CFLAGS=$ac_wine_try_cflags_saved
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6889 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6890 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6891 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6894 case $host_cpu in
6895 *i[3456789]86* | x86_64)
6896 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6898 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6899 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 ac_wine_try_cflags_saved=$CFLAGS
6903 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906 int main(int argc, char **argv) { return 0; }
6907 _ACEOF
6908 if ac_fn_c_try_link "$LINENO"; then :
6909 eval "$as_ac_var=yes"
6910 else
6911 eval "$as_ac_var=no"
6913 rm -f core conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
6915 CFLAGS=$ac_wine_try_cflags_saved
6917 eval ac_res=\$$as_ac_var
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6919 $as_echo "$ac_res" >&6; }
6920 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6921 case $host_os in
6922 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6923 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6924 esac
6927 # Extract the first word of "prelink", so it can be a program name with args.
6928 set dummy prelink; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if test "${ac_cv_path_PRELINK+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 case $PRELINK in
6935 [\\/]* | ?:[\\/]*)
6936 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in /sbin /usr/sbin $PATH
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6950 done
6951 done
6952 IFS=$as_save_IFS
6954 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6956 esac
6958 PRELINK=$ac_cv_path_PRELINK
6959 if test -n "$PRELINK"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6961 $as_echo "$PRELINK" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6968 if test "x$PRELINK" = xfalse
6969 then
6970 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6973 esac
6975 else
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6977 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6978 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 ac_wine_try_cflags_saved=$CFLAGS
6982 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 void myfunc() {}
6986 _ACEOF
6987 if ac_fn_c_try_link "$LINENO"; then :
6988 ac_cv_c_dll_unixware="yes"
6989 else
6990 ac_cv_c_dll_unixware="no"
6992 rm -f core conftest.err conftest.$ac_objext \
6993 conftest$ac_exeext conftest.$ac_ext
6994 CFLAGS=$ac_wine_try_cflags_saved
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6997 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6998 if test "$ac_cv_c_dll_unixware" = "yes"
6999 then
7000 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7001 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7005 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7006 if test "${ac_cv_c_dll_hpux+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 ac_wine_try_cflags_saved=$CFLAGS
7010 CFLAGS="$CFLAGS -shared"
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013 void myfunc() {}
7014 _ACEOF
7015 if ac_fn_c_try_link "$LINENO"; then :
7016 ac_cv_c_dll_hpux="yes"
7017 else
7018 ac_cv_c_dll_hpux="no"
7020 rm -f core conftest.err conftest.$ac_objext \
7021 conftest$ac_exeext conftest.$ac_ext
7022 CFLAGS=$ac_wine_try_cflags_saved
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7025 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7026 if test "$ac_cv_c_dll_hpux" = "yes"
7027 then
7028 LIBEXT="sl"
7029 DLLEXT=".sl"
7030 LDDLLFLAGS="-shared -fPIC"
7031 LDSHARED="\$(CC) -shared"
7036 esac
7038 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7039 enable_winequartz_drv=${enable_winequartz_drv:-no}
7041 if test "$LIBEXT" = "a"; then
7042 as_fn_error $? "could not find a way to build shared libraries.
7043 It is currently not possible to build Wine without shared library
7044 (.so) support to allow transparent switch between .so and .dll files.
7045 If you are using Linux, you will need a newer binutils.
7046 " "$LINENO" 5
7049 CROSSTEST_DISABLE=\#
7051 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7052 then
7053 case "$host_cpu" in
7054 i[3456789]86*)
7055 ac_prefix_list="i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
7056 x86_64)
7057 ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;;
7059 ac_prefix_list="" ;;
7060 esac
7061 for ac_prog in $ac_prefix_list
7063 # Extract the first word of "$ac_prog", so it can be a program name with args.
7064 set dummy $ac_prog; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 if test -n "$CROSSCC"; then
7071 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_CROSSCC="$ac_prog"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7084 done
7085 done
7086 IFS=$as_save_IFS
7090 CROSSCC=$ac_cv_prog_CROSSCC
7091 if test -n "$CROSSCC"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7093 $as_echo "$CROSSCC" >&6; }
7094 else
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7100 test -n "$CROSSCC" && break
7101 done
7102 test -n "$CROSSCC" || CROSSCC="false"
7104 if test "$CROSSCC" != "false"
7105 then
7106 ac_save_CC="$CC"
7107 CC="$CROSSCC"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7109 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7114 main ()
7118 return 0;
7120 _ACEOF
7121 if ac_fn_c_try_compile "$LINENO"; then :
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7123 $as_echo "yes" >&6; }
7124 set x $CROSSCC
7125 shift
7126 target=""
7127 while test $# -ge 1
7129 case "$1" in
7130 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7131 esac
7132 shift
7133 done
7134 if test -n "$target"
7135 then
7136 CROSSTEST_DISABLE=""
7137 CROSSTARGET="$target"
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 CC="$ac_save_CC"
7150 if test "$ac_cv_header_pthread_h" = "yes"
7151 then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7153 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7154 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 ac_check_lib_save_LIBS=$LIBS
7158 LIBS="-lpthread $LIBS"
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7162 /* Override any GCC internal prototype to avoid an error.
7163 Use char because int might match the return type of a GCC
7164 builtin and then its argument prototype would still apply. */
7165 #ifdef __cplusplus
7166 extern "C"
7167 #endif
7168 char pthread_create ();
7170 main ()
7172 return pthread_create ();
7174 return 0;
7176 _ACEOF
7177 if ac_fn_c_try_link "$LINENO"; then :
7178 ac_cv_lib_pthread_pthread_create=yes
7179 else
7180 ac_cv_lib_pthread_pthread_create=no
7182 rm -f core conftest.err conftest.$ac_objext \
7183 conftest$ac_exeext conftest.$ac_ext
7184 LIBS=$ac_check_lib_save_LIBS
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7187 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7188 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7189 LIBPTHREAD="-lpthread"
7194 if test "x$LIBPTHREAD" = "x"; then :
7195 case "x$with_pthread" in
7196 xno) ;;
7197 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7198 Wine cannot support threads without libpthread.
7199 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7200 esac
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7205 $as_echo_n "checking for X... " >&6; }
7208 # Check whether --with-x was given.
7209 if test "${with_x+set}" = set; then :
7210 withval=$with_x;
7213 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7214 if test "x$with_x" = xno; then
7215 # The user explicitly disabled X.
7216 have_x=disabled
7217 else
7218 case $x_includes,$x_libraries in #(
7219 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7220 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 # One or both of the vars are not set, and there is no cached value.
7224 ac_x_includes=no ac_x_libraries=no
7225 rm -f -r conftest.dir
7226 if mkdir conftest.dir; then
7227 cd conftest.dir
7228 cat >Imakefile <<'_ACEOF'
7229 incroot:
7230 @echo incroot='${INCROOT}'
7231 usrlibdir:
7232 @echo usrlibdir='${USRLIBDIR}'
7233 libdir:
7234 @echo libdir='${LIBDIR}'
7235 _ACEOF
7236 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7237 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7238 for ac_var in incroot usrlibdir libdir; do
7239 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7240 done
7241 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7242 for ac_extension in a so sl dylib la dll; do
7243 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7244 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7245 ac_im_usrlibdir=$ac_im_libdir; break
7247 done
7248 # Screen out bogus values from the imake configuration. They are
7249 # bogus both because they are the default anyway, and because
7250 # using them would break gcc on systems where it needs fixed includes.
7251 case $ac_im_incroot in
7252 /usr/include) ac_x_includes= ;;
7253 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7254 esac
7255 case $ac_im_usrlibdir in
7256 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7257 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7258 esac
7260 cd ..
7261 rm -f -r conftest.dir
7264 # Standard set of common directories for X headers.
7265 # Check X11 before X11Rn because it is often a symlink to the current release.
7266 ac_x_header_dirs='
7267 /usr/X11/include
7268 /usr/X11R7/include
7269 /usr/X11R6/include
7270 /usr/X11R5/include
7271 /usr/X11R4/include
7273 /usr/include/X11
7274 /usr/include/X11R7
7275 /usr/include/X11R6
7276 /usr/include/X11R5
7277 /usr/include/X11R4
7279 /usr/local/X11/include
7280 /usr/local/X11R7/include
7281 /usr/local/X11R6/include
7282 /usr/local/X11R5/include
7283 /usr/local/X11R4/include
7285 /usr/local/include/X11
7286 /usr/local/include/X11R7
7287 /usr/local/include/X11R6
7288 /usr/local/include/X11R5
7289 /usr/local/include/X11R4
7291 /usr/X386/include
7292 /usr/x386/include
7293 /usr/XFree86/include/X11
7295 /usr/include
7296 /usr/local/include
7297 /usr/unsupported/include
7298 /usr/athena/include
7299 /usr/local/x11r5/include
7300 /usr/lpp/Xamples/include
7302 /usr/openwin/include
7303 /usr/openwin/share/include'
7305 if test "$ac_x_includes" = no; then
7306 # Guess where to find include files, by looking for Xlib.h.
7307 # First, try using that file with no special directory specified.
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310 #include <X11/Xlib.h>
7311 _ACEOF
7312 if ac_fn_c_try_cpp "$LINENO"; then :
7313 # We can compile using X headers with no special include directory.
7314 ac_x_includes=
7315 else
7316 for ac_dir in $ac_x_header_dirs; do
7317 if test -r "$ac_dir/X11/Xlib.h"; then
7318 ac_x_includes=$ac_dir
7319 break
7321 done
7323 rm -f conftest.err conftest.i conftest.$ac_ext
7324 fi # $ac_x_includes = no
7326 if test "$ac_x_libraries" = no; then
7327 # Check for the libraries.
7328 # See if we find them without any special options.
7329 # Don't add to $LIBS permanently.
7330 ac_save_LIBS=$LIBS
7331 LIBS="-lX11 $LIBS"
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 #include <X11/Xlib.h>
7336 main ()
7338 XrmInitialize ()
7340 return 0;
7342 _ACEOF
7343 if ac_fn_c_try_link "$LINENO"; then :
7344 LIBS=$ac_save_LIBS
7345 # We can link X programs with no special library path.
7346 ac_x_libraries=
7347 else
7348 LIBS=$ac_save_LIBS
7349 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7351 # Don't even attempt the hair of trying to link an X program!
7352 for ac_extension in a so sl dylib la dll; do
7353 if test -r "$ac_dir/libX11.$ac_extension"; then
7354 ac_x_libraries=$ac_dir
7355 break 2
7357 done
7358 done
7360 rm -f core conftest.err conftest.$ac_objext \
7361 conftest$ac_exeext conftest.$ac_ext
7362 fi # $ac_x_libraries = no
7364 case $ac_x_includes,$ac_x_libraries in #(
7365 no,* | *,no | *\'*)
7366 # Didn't find X, or a directory has "'" in its name.
7367 ac_cv_have_x="have_x=no";; #(
7369 # Record where we found X for the cache.
7370 ac_cv_have_x="have_x=yes\
7371 ac_x_includes='$ac_x_includes'\
7372 ac_x_libraries='$ac_x_libraries'"
7373 esac
7375 ;; #(
7376 *) have_x=yes;;
7377 esac
7378 eval "$ac_cv_have_x"
7379 fi # $with_x != no
7381 if test "$have_x" != yes; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7383 $as_echo "$have_x" >&6; }
7384 no_x=yes
7385 else
7386 # If each of the values was on the command line, it overrides each guess.
7387 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7388 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7389 # Update the cache value to reflect the command line values.
7390 ac_cv_have_x="have_x=yes\
7391 ac_x_includes='$x_includes'\
7392 ac_x_libraries='$x_libraries'"
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7394 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7397 if test "$no_x" = yes; then
7398 # Not all programs may use this symbol, but it does not hurt to define it.
7400 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7402 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7403 else
7404 if test -n "$x_includes"; then
7405 X_CFLAGS="$X_CFLAGS -I$x_includes"
7408 # It would also be nice to do this for all -L options, not just this one.
7409 if test -n "$x_libraries"; then
7410 X_LIBS="$X_LIBS -L$x_libraries"
7411 # For Solaris; some versions of Sun CC require a space after -R and
7412 # others require no space. Words are not sufficient . . . .
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7414 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7415 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7416 ac_xsave_c_werror_flag=$ac_c_werror_flag
7417 ac_c_werror_flag=yes
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7422 main ()
7426 return 0;
7428 _ACEOF
7429 if ac_fn_c_try_link "$LINENO"; then :
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7432 X_LIBS="$X_LIBS -R$x_libraries"
7433 else
7434 LIBS="$ac_xsave_LIBS -R $x_libraries"
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7439 main ()
7443 return 0;
7445 _ACEOF
7446 if ac_fn_c_try_link "$LINENO"; then :
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7448 $as_echo "yes" >&6; }
7449 X_LIBS="$X_LIBS -R $x_libraries"
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7452 $as_echo "neither works" >&6; }
7454 rm -f core conftest.err conftest.$ac_objext \
7455 conftest$ac_exeext conftest.$ac_ext
7457 rm -f core conftest.err conftest.$ac_objext \
7458 conftest$ac_exeext conftest.$ac_ext
7459 ac_c_werror_flag=$ac_xsave_c_werror_flag
7460 LIBS=$ac_xsave_LIBS
7463 # Check for system-dependent libraries X programs must link with.
7464 # Do this before checking for the system-independent R6 libraries
7465 # (-lICE), since we may need -lsocket or whatever for X linking.
7467 if test "$ISC" = yes; then
7468 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7469 else
7470 # Martyn Johnson says this is needed for Ultrix, if the X
7471 # libraries were built with DECnet support. And Karl Berry says
7472 # the Alpha needs dnet_stub (dnet does not exist).
7473 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7477 /* Override any GCC internal prototype to avoid an error.
7478 Use char because int might match the return type of a GCC
7479 builtin and then its argument prototype would still apply. */
7480 #ifdef __cplusplus
7481 extern "C"
7482 #endif
7483 char XOpenDisplay ();
7485 main ()
7487 return XOpenDisplay ();
7489 return 0;
7491 _ACEOF
7492 if ac_fn_c_try_link "$LINENO"; then :
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7496 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7497 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 ac_check_lib_save_LIBS=$LIBS
7501 LIBS="-ldnet $LIBS"
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7505 /* Override any GCC internal prototype to avoid an error.
7506 Use char because int might match the return type of a GCC
7507 builtin and then its argument prototype would still apply. */
7508 #ifdef __cplusplus
7509 extern "C"
7510 #endif
7511 char dnet_ntoa ();
7513 main ()
7515 return dnet_ntoa ();
7517 return 0;
7519 _ACEOF
7520 if ac_fn_c_try_link "$LINENO"; then :
7521 ac_cv_lib_dnet_dnet_ntoa=yes
7522 else
7523 ac_cv_lib_dnet_dnet_ntoa=no
7525 rm -f core conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7527 LIBS=$ac_check_lib_save_LIBS
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7530 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7531 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7532 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7535 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7537 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7538 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 ac_check_lib_save_LIBS=$LIBS
7542 LIBS="-ldnet_stub $LIBS"
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7546 /* Override any GCC internal prototype to avoid an error.
7547 Use char because int might match the return type of a GCC
7548 builtin and then its argument prototype would still apply. */
7549 #ifdef __cplusplus
7550 extern "C"
7551 #endif
7552 char dnet_ntoa ();
7554 main ()
7556 return dnet_ntoa ();
7558 return 0;
7560 _ACEOF
7561 if ac_fn_c_try_link "$LINENO"; then :
7562 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7563 else
7564 ac_cv_lib_dnet_stub_dnet_ntoa=no
7566 rm -f core conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
7568 LIBS=$ac_check_lib_save_LIBS
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7571 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7572 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7573 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7578 rm -f core conftest.err conftest.$ac_objext \
7579 conftest$ac_exeext conftest.$ac_ext
7580 LIBS="$ac_xsave_LIBS"
7582 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7583 # to get the SysV transport functions.
7584 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7585 # needs -lnsl.
7586 # The nsl library prevents programs from opening the X display
7587 # on Irix 5.2, according to T.E. Dickey.
7588 # The functions gethostbyname, getservbyname, and inet_addr are
7589 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7590 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7591 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7595 if test $ac_cv_func_gethostbyname = no; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7597 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7598 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 ac_check_lib_save_LIBS=$LIBS
7602 LIBS="-lnsl $LIBS"
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7606 /* Override any GCC internal prototype to avoid an error.
7607 Use char because int might match the return type of a GCC
7608 builtin and then its argument prototype would still apply. */
7609 #ifdef __cplusplus
7610 extern "C"
7611 #endif
7612 char gethostbyname ();
7614 main ()
7616 return gethostbyname ();
7618 return 0;
7620 _ACEOF
7621 if ac_fn_c_try_link "$LINENO"; then :
7622 ac_cv_lib_nsl_gethostbyname=yes
7623 else
7624 ac_cv_lib_nsl_gethostbyname=no
7626 rm -f core conftest.err conftest.$ac_objext \
7627 conftest$ac_exeext conftest.$ac_ext
7628 LIBS=$ac_check_lib_save_LIBS
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7631 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7632 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7633 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7636 if test $ac_cv_lib_nsl_gethostbyname = no; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7638 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7639 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 ac_check_lib_save_LIBS=$LIBS
7643 LIBS="-lbsd $LIBS"
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7647 /* Override any GCC internal prototype to avoid an error.
7648 Use char because int might match the return type of a GCC
7649 builtin and then its argument prototype would still apply. */
7650 #ifdef __cplusplus
7651 extern "C"
7652 #endif
7653 char gethostbyname ();
7655 main ()
7657 return gethostbyname ();
7659 return 0;
7661 _ACEOF
7662 if ac_fn_c_try_link "$LINENO"; then :
7663 ac_cv_lib_bsd_gethostbyname=yes
7664 else
7665 ac_cv_lib_bsd_gethostbyname=no
7667 rm -f core conftest.err conftest.$ac_objext \
7668 conftest$ac_exeext conftest.$ac_ext
7669 LIBS=$ac_check_lib_save_LIBS
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7672 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7673 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7674 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7680 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7681 # socket/setsockopt and other routines are undefined under SCO ODT
7682 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7683 # on later versions), says Simon Leinen: it contains gethostby*
7684 # variants that don't use the name server (or something). -lsocket
7685 # must be given before -lnsl if both are needed. We assume that
7686 # if connect needs -lnsl, so does gethostbyname.
7687 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7688 if test "x$ac_cv_func_connect" = x""yes; then :
7692 if test $ac_cv_func_connect = no; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7694 $as_echo_n "checking for connect in -lsocket... " >&6; }
7695 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 ac_check_lib_save_LIBS=$LIBS
7699 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7703 /* Override any GCC internal prototype to avoid an error.
7704 Use char because int might match the return type of a GCC
7705 builtin and then its argument prototype would still apply. */
7706 #ifdef __cplusplus
7707 extern "C"
7708 #endif
7709 char connect ();
7711 main ()
7713 return connect ();
7715 return 0;
7717 _ACEOF
7718 if ac_fn_c_try_link "$LINENO"; then :
7719 ac_cv_lib_socket_connect=yes
7720 else
7721 ac_cv_lib_socket_connect=no
7723 rm -f core conftest.err conftest.$ac_objext \
7724 conftest$ac_exeext conftest.$ac_ext
7725 LIBS=$ac_check_lib_save_LIBS
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7728 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7729 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7730 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7735 # Guillermo Gomez says -lposix is necessary on A/UX.
7736 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7737 if test "x$ac_cv_func_remove" = x""yes; then :
7741 if test $ac_cv_func_remove = no; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7743 $as_echo_n "checking for remove in -lposix... " >&6; }
7744 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 ac_check_lib_save_LIBS=$LIBS
7748 LIBS="-lposix $LIBS"
7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h. */
7752 /* Override any GCC internal prototype to avoid an error.
7753 Use char because int might match the return type of a GCC
7754 builtin and then its argument prototype would still apply. */
7755 #ifdef __cplusplus
7756 extern "C"
7757 #endif
7758 char remove ();
7760 main ()
7762 return remove ();
7764 return 0;
7766 _ACEOF
7767 if ac_fn_c_try_link "$LINENO"; then :
7768 ac_cv_lib_posix_remove=yes
7769 else
7770 ac_cv_lib_posix_remove=no
7772 rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7774 LIBS=$ac_check_lib_save_LIBS
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7777 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7778 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7784 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7785 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7786 if test "x$ac_cv_func_shmat" = x""yes; then :
7790 if test $ac_cv_func_shmat = no; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7792 $as_echo_n "checking for shmat in -lipc... " >&6; }
7793 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 ac_check_lib_save_LIBS=$LIBS
7797 LIBS="-lipc $LIBS"
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7801 /* Override any GCC internal prototype to avoid an error.
7802 Use char because int might match the return type of a GCC
7803 builtin and then its argument prototype would still apply. */
7804 #ifdef __cplusplus
7805 extern "C"
7806 #endif
7807 char shmat ();
7809 main ()
7811 return shmat ();
7813 return 0;
7815 _ACEOF
7816 if ac_fn_c_try_link "$LINENO"; then :
7817 ac_cv_lib_ipc_shmat=yes
7818 else
7819 ac_cv_lib_ipc_shmat=no
7821 rm -f core conftest.err conftest.$ac_objext \
7822 conftest$ac_exeext conftest.$ac_ext
7823 LIBS=$ac_check_lib_save_LIBS
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7826 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7827 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7834 # Check for libraries that X11R6 Xt/Xaw programs need.
7835 ac_save_LDFLAGS=$LDFLAGS
7836 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7837 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7838 # check for ICE first), but we must link in the order -lSM -lICE or
7839 # we get undefined symbols. So assume we have SM if we have ICE.
7840 # These have to be linked with before -lX11, unlike the other
7841 # libraries we check for below, so use a different variable.
7842 # John Interrante, Karl Berry
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7844 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7845 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 ac_check_lib_save_LIBS=$LIBS
7849 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7853 /* Override any GCC internal prototype to avoid an error.
7854 Use char because int might match the return type of a GCC
7855 builtin and then its argument prototype would still apply. */
7856 #ifdef __cplusplus
7857 extern "C"
7858 #endif
7859 char IceConnectionNumber ();
7861 main ()
7863 return IceConnectionNumber ();
7865 return 0;
7867 _ACEOF
7868 if ac_fn_c_try_link "$LINENO"; then :
7869 ac_cv_lib_ICE_IceConnectionNumber=yes
7870 else
7871 ac_cv_lib_ICE_IceConnectionNumber=no
7873 rm -f core conftest.err conftest.$ac_objext \
7874 conftest$ac_exeext conftest.$ac_ext
7875 LIBS=$ac_check_lib_save_LIBS
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7878 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7879 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7880 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7883 LDFLAGS=$ac_save_LDFLAGS
7888 if test "$have_x" = "yes"
7889 then
7890 XLIB="-lX11"
7891 ac_save_CPPFLAGS="$CPPFLAGS"
7892 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7895 $as_echo_n "checking for -lX11... " >&6; }
7896 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 ac_check_soname_save_LIBS=$LIBS
7900 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7904 /* Override any GCC internal prototype to avoid an error.
7905 Use char because int might match the return type of a GCC
7906 builtin and then its argument prototype would still apply. */
7907 #ifdef __cplusplus
7908 extern "C"
7909 #endif
7910 char XCreateWindow ();
7912 main ()
7914 return XCreateWindow ();
7916 return 0;
7918 _ACEOF
7919 if ac_fn_c_try_link "$LINENO"; then :
7920 case "$LIBEXT" in
7921 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7922 dylib) ac_cv_lib_soname_X11=`otool -L conftest$ac_exeext | grep "libX11\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libX11\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
7923 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7924 esac
7926 rm -f core conftest.err conftest.$ac_objext \
7927 conftest$ac_exeext conftest.$ac_ext
7928 LIBS=$ac_check_soname_save_LIBS
7930 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7932 $as_echo "not found" >&6; }
7934 else
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7936 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7938 cat >>confdefs.h <<_ACEOF
7939 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7940 _ACEOF
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7945 $as_echo_n "checking for -lXext... " >&6; }
7946 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 ac_check_soname_save_LIBS=$LIBS
7950 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7954 /* Override any GCC internal prototype to avoid an error.
7955 Use char because int might match the return type of a GCC
7956 builtin and then its argument prototype would still apply. */
7957 #ifdef __cplusplus
7958 extern "C"
7959 #endif
7960 char XextCreateExtension ();
7962 main ()
7964 return XextCreateExtension ();
7966 return 0;
7968 _ACEOF
7969 if ac_fn_c_try_link "$LINENO"; then :
7970 case "$LIBEXT" in
7971 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7972 dylib) ac_cv_lib_soname_Xext=`otool -L conftest$ac_exeext | grep "libXext\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXext\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
7973 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7974 esac
7976 rm -f core conftest.err conftest.$ac_objext \
7977 conftest$ac_exeext conftest.$ac_ext
7978 LIBS=$ac_check_soname_save_LIBS
7980 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7982 $as_echo "not found" >&6; }
7984 else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7986 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7988 cat >>confdefs.h <<_ACEOF
7989 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7990 _ACEOF
7992 XLIB="-lXext $XLIB"
7995 for ac_header in X11/Xlib.h \
7996 X11/XKBlib.h \
7997 X11/Xutil.h \
7998 X11/Xcursor/Xcursor.h \
7999 X11/extensions/shape.h \
8000 X11/extensions/XInput.h \
8001 X11/extensions/XShm.h \
8002 X11/extensions/Xcomposite.h \
8003 X11/extensions/Xinerama.h \
8004 X11/extensions/Xrandr.h \
8005 X11/extensions/Xrender.h \
8006 X11/extensions/xf86vmode.h \
8007 X11/extensions/xf86vmproto.h
8008 do :
8009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8010 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8011 # include <X11/Xlib.h>
8012 #endif
8013 #ifdef HAVE_X11_XUTIL_H
8014 # include <X11/Xutil.h>
8015 #endif
8017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8018 cat >>confdefs.h <<_ACEOF
8019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8020 _ACEOF
8024 done
8027 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8028 then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8030 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8031 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 ac_check_lib_save_LIBS=$LIBS
8035 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8039 /* Override any GCC internal prototype to avoid an error.
8040 Use char because int might match the return type of a GCC
8041 builtin and then its argument prototype would still apply. */
8042 #ifdef __cplusplus
8043 extern "C"
8044 #endif
8045 char XkbQueryExtension ();
8047 main ()
8049 return XkbQueryExtension ();
8051 return 0;
8053 _ACEOF
8054 if ac_fn_c_try_link "$LINENO"; then :
8055 ac_cv_lib_X11_XkbQueryExtension=yes
8056 else
8057 ac_cv_lib_X11_XkbQueryExtension=no
8059 rm -f core conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061 LIBS=$ac_check_lib_save_LIBS
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8064 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8065 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8067 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8073 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8074 then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8076 $as_echo_n "checking for -lXcursor... " >&6; }
8077 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 ac_check_soname_save_LIBS=$LIBS
8081 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8085 /* Override any GCC internal prototype to avoid an error.
8086 Use char because int might match the return type of a GCC
8087 builtin and then its argument prototype would still apply. */
8088 #ifdef __cplusplus
8089 extern "C"
8090 #endif
8091 char XcursorImageLoadCursor ();
8093 main ()
8095 return XcursorImageLoadCursor ();
8097 return 0;
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"; then :
8101 case "$LIBEXT" in
8102 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8103 dylib) ac_cv_lib_soname_Xcursor=`otool -L conftest$ac_exeext | grep "libXcursor\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcursor\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8104 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8105 esac
8107 rm -f core conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8109 LIBS=$ac_check_soname_save_LIBS
8111 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8113 $as_echo "not found" >&6; }
8115 else
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8117 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8119 cat >>confdefs.h <<_ACEOF
8120 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8121 _ACEOF
8126 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8127 case "x$with_xcursor" in
8128 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8129 xno) ;;
8130 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8131 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8132 esac
8135 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8136 then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8138 $as_echo_n "checking for -lXi... " >&6; }
8139 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 ac_check_soname_save_LIBS=$LIBS
8143 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8147 /* Override any GCC internal prototype to avoid an error.
8148 Use char because int might match the return type of a GCC
8149 builtin and then its argument prototype would still apply. */
8150 #ifdef __cplusplus
8151 extern "C"
8152 #endif
8153 char XOpenDevice ();
8155 main ()
8157 return XOpenDevice ();
8159 return 0;
8161 _ACEOF
8162 if ac_fn_c_try_link "$LINENO"; then :
8163 case "$LIBEXT" in
8164 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8165 dylib) ac_cv_lib_soname_Xi=`otool -L conftest$ac_exeext | grep "libXi\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8166 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8167 esac
8169 rm -f core conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
8171 LIBS=$ac_check_soname_save_LIBS
8173 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8175 $as_echo "not found" >&6; }
8177 else
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8179 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8181 cat >>confdefs.h <<_ACEOF
8182 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8183 _ACEOF
8188 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8189 case "x$with_xinput" in
8190 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8191 xno) ;;
8192 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8193 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8194 esac
8197 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8198 then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8200 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8201 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 ac_check_lib_save_LIBS=$LIBS
8205 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8209 /* Override any GCC internal prototype to avoid an error.
8210 Use char because int might match the return type of a GCC
8211 builtin and then its argument prototype would still apply. */
8212 #ifdef __cplusplus
8213 extern "C"
8214 #endif
8215 char XShmQueryExtension ();
8217 main ()
8219 return XShmQueryExtension ();
8221 return 0;
8223 _ACEOF
8224 if ac_fn_c_try_link "$LINENO"; then :
8225 ac_cv_lib_Xext_XShmQueryExtension=yes
8226 else
8227 ac_cv_lib_Xext_XShmQueryExtension=no
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8231 LIBS=$ac_check_lib_save_LIBS
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8234 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8235 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8237 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8242 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8243 case "x$with_xshm" in
8244 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8245 xno) ;;
8246 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8247 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8248 esac
8251 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8252 then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8254 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8255 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 ac_check_lib_save_LIBS=$LIBS
8259 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8263 /* Override any GCC internal prototype to avoid an error.
8264 Use char because int might match the return type of a GCC
8265 builtin and then its argument prototype would still apply. */
8266 #ifdef __cplusplus
8267 extern "C"
8268 #endif
8269 char XShapeQueryExtension ();
8271 main ()
8273 return XShapeQueryExtension ();
8275 return 0;
8277 _ACEOF
8278 if ac_fn_c_try_link "$LINENO"; then :
8279 ac_cv_lib_Xext_XShapeQueryExtension=yes
8280 else
8281 ac_cv_lib_Xext_XShapeQueryExtension=no
8283 rm -f core conftest.err conftest.$ac_objext \
8284 conftest$ac_exeext conftest.$ac_ext
8285 LIBS=$ac_check_lib_save_LIBS
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8288 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8289 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8291 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8296 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8297 case "x$with_xshape" in
8298 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8299 xno) ;;
8300 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8301 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8302 esac
8305 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8306 then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8308 $as_echo_n "checking for -lXxf86vm... " >&6; }
8309 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 ac_check_soname_save_LIBS=$LIBS
8313 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8317 /* Override any GCC internal prototype to avoid an error.
8318 Use char because int might match the return type of a GCC
8319 builtin and then its argument prototype would still apply. */
8320 #ifdef __cplusplus
8321 extern "C"
8322 #endif
8323 char XF86VidModeQueryExtension ();
8325 main ()
8327 return XF86VidModeQueryExtension ();
8329 return 0;
8331 _ACEOF
8332 if ac_fn_c_try_link "$LINENO"; then :
8333 case "$LIBEXT" in
8334 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8335 dylib) ac_cv_lib_soname_Xxf86vm=`otool -L conftest$ac_exeext | grep "libXxf86vm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXxf86vm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8336 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8337 esac
8339 rm -f core conftest.err conftest.$ac_objext \
8340 conftest$ac_exeext conftest.$ac_ext
8341 LIBS=$ac_check_soname_save_LIBS
8343 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8345 $as_echo "not found" >&6; }
8347 else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8349 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8351 cat >>confdefs.h <<_ACEOF
8352 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8353 _ACEOF
8358 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8359 case "x$with_xxf86vm" in
8360 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8361 xno) ;;
8362 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8363 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8364 esac
8367 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x" -a "x$ac_cv_lib_soname_Xext" != "x"
8368 then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8370 $as_echo_n "checking for -lXrender... " >&6; }
8371 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 ac_check_soname_save_LIBS=$LIBS
8375 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8379 /* Override any GCC internal prototype to avoid an error.
8380 Use char because int might match the return type of a GCC
8381 builtin and then its argument prototype would still apply. */
8382 #ifdef __cplusplus
8383 extern "C"
8384 #endif
8385 char XRenderQueryExtension ();
8387 main ()
8389 return XRenderQueryExtension ();
8391 return 0;
8393 _ACEOF
8394 if ac_fn_c_try_link "$LINENO"; then :
8395 case "$LIBEXT" in
8396 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8397 dylib) ac_cv_lib_soname_Xrender=`otool -L conftest$ac_exeext | grep "libXrender\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXrender\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8398 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8399 esac
8401 rm -f core conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
8403 LIBS=$ac_check_soname_save_LIBS
8405 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8407 $as_echo "not found" >&6; }
8409 else
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8411 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8413 cat >>confdefs.h <<_ACEOF
8414 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8415 _ACEOF
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8418 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8419 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 ac_check_lib_save_LIBS=$LIBS
8423 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8427 /* Override any GCC internal prototype to avoid an error.
8428 Use char because int might match the return type of a GCC
8429 builtin and then its argument prototype would still apply. */
8430 #ifdef __cplusplus
8431 extern "C"
8432 #endif
8433 char XRenderSetPictureTransform ();
8435 main ()
8437 return XRenderSetPictureTransform ();
8439 return 0;
8441 _ACEOF
8442 if ac_fn_c_try_link "$LINENO"; then :
8443 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8444 else
8445 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8447 rm -f core conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext conftest.$ac_ext
8449 LIBS=$ac_check_lib_save_LIBS
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8452 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8453 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8455 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8462 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8463 case "x$with_xrender" in
8464 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8465 xno) ;;
8466 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8467 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8468 esac
8471 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8472 then
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #include <X11/Xlib.h>
8476 #include <X11/extensions/Xrandr.h>
8478 main ()
8480 static typeof(XRRSetScreenConfigAndRate) * func;
8482 return 0;
8484 _ACEOF
8485 if ac_fn_c_try_compile "$LINENO"; then :
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8487 $as_echo_n "checking for -lXrandr... " >&6; }
8488 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 ac_check_soname_save_LIBS=$LIBS
8492 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8496 /* Override any GCC internal prototype to avoid an error.
8497 Use char because int might match the return type of a GCC
8498 builtin and then its argument prototype would still apply. */
8499 #ifdef __cplusplus
8500 extern "C"
8501 #endif
8502 char XRRQueryExtension ();
8504 main ()
8506 return XRRQueryExtension ();
8508 return 0;
8510 _ACEOF
8511 if ac_fn_c_try_link "$LINENO"; then :
8512 case "$LIBEXT" in
8513 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8514 dylib) ac_cv_lib_soname_Xrandr=`otool -L conftest$ac_exeext | grep "libXrandr\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXrandr\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8515 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8516 esac
8518 rm -f core conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
8520 LIBS=$ac_check_soname_save_LIBS
8522 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8524 $as_echo "not found" >&6; }
8526 else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8528 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8530 cat >>confdefs.h <<_ACEOF
8531 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8532 _ACEOF
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8540 case "x$with_xrandr" in
8541 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8542 xno) ;;
8543 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8544 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8545 esac
8548 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8549 then
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 #include <X11/Xlib.h>
8553 #include <X11/extensions/Xinerama.h>
8555 main ()
8557 static typeof(XineramaQueryScreens) * func;
8559 return 0;
8561 _ACEOF
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8564 $as_echo_n "checking for -lXinerama... " >&6; }
8565 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 ac_check_soname_save_LIBS=$LIBS
8569 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8573 /* Override any GCC internal prototype to avoid an error.
8574 Use char because int might match the return type of a GCC
8575 builtin and then its argument prototype would still apply. */
8576 #ifdef __cplusplus
8577 extern "C"
8578 #endif
8579 char XineramaQueryScreens ();
8581 main ()
8583 return XineramaQueryScreens ();
8585 return 0;
8587 _ACEOF
8588 if ac_fn_c_try_link "$LINENO"; then :
8589 case "$LIBEXT" in
8590 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8591 dylib) ac_cv_lib_soname_Xinerama=`otool -L conftest$ac_exeext | grep "libXinerama\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXinerama\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8592 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8593 esac
8595 rm -f core conftest.err conftest.$ac_objext \
8596 conftest$ac_exeext conftest.$ac_ext
8597 LIBS=$ac_check_soname_save_LIBS
8599 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8601 $as_echo "not found" >&6; }
8603 else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8605 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8607 cat >>confdefs.h <<_ACEOF
8608 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8609 _ACEOF
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8617 case "x$with_xinerama" in
8618 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8619 xno) ;;
8620 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8621 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8622 esac
8625 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8626 then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8628 $as_echo_n "checking for -lXcomposite... " >&6; }
8629 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 ac_check_soname_save_LIBS=$LIBS
8633 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8637 /* Override any GCC internal prototype to avoid an error.
8638 Use char because int might match the return type of a GCC
8639 builtin and then its argument prototype would still apply. */
8640 #ifdef __cplusplus
8641 extern "C"
8642 #endif
8643 char XCompositeRedirectWindow ();
8645 main ()
8647 return XCompositeRedirectWindow ();
8649 return 0;
8651 _ACEOF
8652 if ac_fn_c_try_link "$LINENO"; then :
8653 case "$LIBEXT" in
8654 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8655 dylib) ac_cv_lib_soname_Xcomposite=`otool -L conftest$ac_exeext | grep "libXcomposite\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcomposite\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8656 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8657 esac
8659 rm -f core conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661 LIBS=$ac_check_soname_save_LIBS
8663 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8665 $as_echo "not found" >&6; }
8667 else
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8669 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8671 cat >>confdefs.h <<_ACEOF
8672 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8673 _ACEOF
8678 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8679 case "x$with_xcomposite" in
8680 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8681 xno) ;;
8682 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8683 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8684 esac
8687 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8688 #include <X11/Xlib.h>
8689 #endif
8691 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8693 cat >>confdefs.h <<_ACEOF
8694 #define HAVE_XICCALLBACK_CALLBACK 1
8695 _ACEOF
8702 opengl_msg=""
8703 if test "x$with_opengl" != "xno"
8704 then
8705 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8706 do :
8707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8708 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8709 # include <GL/glx.h>
8710 #endif
8712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8713 cat >>confdefs.h <<_ACEOF
8714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8715 _ACEOF
8719 done
8721 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8722 then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8724 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8725 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 #include <GL/gl.h>
8732 main ()
8734 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8736 return 0;
8738 _ACEOF
8739 if ac_fn_c_try_compile "$LINENO"; then :
8740 wine_cv_opengl_header_version_OK="yes"
8741 else
8742 wine_cv_opengl_header_version_OK="no"
8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8747 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8749 if test "$wine_cv_opengl_header_version_OK" = "yes"
8750 then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8752 $as_echo_n "checking for -lGL... " >&6; }
8753 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 ac_check_soname_save_LIBS=$LIBS
8757 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8761 /* Override any GCC internal prototype to avoid an error.
8762 Use char because int might match the return type of a GCC
8763 builtin and then its argument prototype would still apply. */
8764 #ifdef __cplusplus
8765 extern "C"
8766 #endif
8767 char glXCreateContext ();
8769 main ()
8771 return glXCreateContext ();
8773 return 0;
8775 _ACEOF
8776 if ac_fn_c_try_link "$LINENO"; then :
8777 case "$LIBEXT" in
8778 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8779 dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep "libGL\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8780 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8781 esac
8783 rm -f core conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8785 LIBS=$ac_check_soname_save_LIBS
8787 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8789 $as_echo "not found" >&6; }
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8791 $as_echo_n "checking for -lGL... " >&6; }
8792 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 ac_check_soname_save_LIBS=$LIBS
8796 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8800 /* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 char glXCreateContext ();
8808 main ()
8810 return glXCreateContext ();
8812 return 0;
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816 case "$LIBEXT" in
8817 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8818 dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep "libGL\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8819 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8820 esac
8822 rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_soname_save_LIBS
8826 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8828 $as_echo "not found" >&6; }
8829 if test -f /usr/X11R6/lib/libGL.a
8830 then
8831 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8832 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8833 else
8834 opengl_msg="No OpenGL library found on this system."
8836 else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8838 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8840 cat >>confdefs.h <<_ACEOF
8841 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8842 _ACEOF
8844 OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL"
8846 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8849 else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8851 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8853 cat >>confdefs.h <<_ACEOF
8854 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8855 _ACEOF
8857 OPENGL_LIBS="-lGL"
8859 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8862 if test "$ac_cv_header_GL_glu_h" = "yes"
8863 then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8865 $as_echo_n "checking for -lGLU... " >&6; }
8866 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 ac_check_soname_save_LIBS=$LIBS
8870 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8874 /* Override any GCC internal prototype to avoid an error.
8875 Use char because int might match the return type of a GCC
8876 builtin and then its argument prototype would still apply. */
8877 #ifdef __cplusplus
8878 extern "C"
8879 #endif
8880 char gluLookAt ();
8882 main ()
8884 return gluLookAt ();
8886 return 0;
8888 _ACEOF
8889 if ac_fn_c_try_link "$LINENO"; then :
8890 case "$LIBEXT" in
8891 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8892 dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8893 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8894 esac
8896 rm -f core conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898 LIBS=$ac_check_soname_save_LIBS
8900 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8902 $as_echo "not found" >&6; }
8904 else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8906 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8908 cat >>confdefs.h <<_ACEOF
8909 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8910 _ACEOF
8915 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8916 case "x$with_glu" in
8917 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8918 xno) ;;
8919 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8920 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8921 esac
8923 else
8924 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8926 else
8927 opengl_msg="OpenGL development headers not found."
8929 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8930 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8931 else
8932 enable_opengl32=${enable_opengl32:-no}
8933 enable_glu32=${enable_glu32:-no}
8935 if test -n "$opengl_msg"; then :
8936 case "x$with_opengl" in
8937 x) as_fn_append wine_warnings "|$opengl_msg
8938 OpenGL and Direct3D won't be supported." ;;
8939 xno) ;;
8940 *) as_fn_error $? "$opengl_msg
8941 OpenGL and Direct3D won't be supported.
8942 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8943 esac
8946 NASLIBS=""
8948 for ac_header in audio/audiolib.h
8949 do :
8950 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8951 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8952 cat >>confdefs.h <<_ACEOF
8953 #define HAVE_AUDIO_AUDIOLIB_H 1
8954 _ACEOF
8955 for ac_header in audio/soundlib.h
8956 do :
8957 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8959 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8960 cat >>confdefs.h <<_ACEOF
8961 #define HAVE_AUDIO_SOUNDLIB_H 1
8962 _ACEOF
8966 done
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8969 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8970 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 ac_check_lib_save_LIBS=$LIBS
8974 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8978 /* Override any GCC internal prototype to avoid an error.
8979 Use char because int might match the return type of a GCC
8980 builtin and then its argument prototype would still apply. */
8981 #ifdef __cplusplus
8982 extern "C"
8983 #endif
8984 char AuCreateFlow ();
8986 main ()
8988 return AuCreateFlow ();
8990 return 0;
8992 _ACEOF
8993 if ac_fn_c_try_link "$LINENO"; then :
8994 ac_cv_lib_audio_AuCreateFlow=yes
8995 else
8996 ac_cv_lib_audio_AuCreateFlow=no
8998 rm -f core conftest.err conftest.$ac_objext \
8999 conftest$ac_exeext conftest.$ac_ext
9000 LIBS=$ac_check_lib_save_LIBS
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9003 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9004 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
9006 $as_echo "#define HAVE_NAS 1" >>confdefs.h
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9009 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9010 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 ac_check_lib_save_LIBS=$LIBS
9014 LIBS="-lXau $X_LIBS $LIBS"
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9018 /* Override any GCC internal prototype to avoid an error.
9019 Use char because int might match the return type of a GCC
9020 builtin and then its argument prototype would still apply. */
9021 #ifdef __cplusplus
9022 extern "C"
9023 #endif
9024 char XauGetBestAuthByAddr ();
9026 main ()
9028 return XauGetBestAuthByAddr ();
9030 return 0;
9032 _ACEOF
9033 if ac_fn_c_try_link "$LINENO"; then :
9034 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9035 else
9036 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9038 rm -f core conftest.err conftest.$ac_objext \
9039 conftest$ac_exeext conftest.$ac_ext
9040 LIBS=$ac_check_lib_save_LIBS
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9043 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9044 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9045 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9046 else
9047 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9055 done
9058 CPPFLAGS="$ac_save_CPPFLAGS"
9059 else
9060 XLIB=""
9061 X_CFLAGS=""
9062 X_LIBS=""
9063 enable_winex11_drv=${enable_winex11_drv:-no}
9064 enable_opengl32=${enable_opengl32:-no}
9065 enable_glu32=${enable_glu32:-no}
9067 if test "x$XLIB" = "x"; then :
9068 case "x$with_x" in
9069 xno) ;;
9070 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9071 without X support, which probably isn't what you want. You will need
9072 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9073 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9074 esac
9077 if test "$ac_cv_header_CL_opencl_h" = "yes"
9078 then
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9080 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9081 if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 ac_check_lib_save_LIBS=$LIBS
9085 LIBS="-lOpenCL $LIBS"
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9089 /* Override any GCC internal prototype to avoid an error.
9090 Use char because int might match the return type of a GCC
9091 builtin and then its argument prototype would still apply. */
9092 #ifdef __cplusplus
9093 extern "C"
9094 #endif
9095 char clGetPlatformInfo ();
9097 main ()
9099 return clGetPlatformInfo ();
9101 return 0;
9103 _ACEOF
9104 if ac_fn_c_try_link "$LINENO"; then :
9105 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9106 else
9107 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9109 rm -f core conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext conftest.$ac_ext
9111 LIBS=$ac_check_lib_save_LIBS
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9114 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9115 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9116 LIBOPENCL="-lOpenCL"
9121 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9122 case "x$with_opencl" in
9123 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9124 xno) ;;
9125 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9126 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9127 esac
9129 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9132 XML2LIBS=""
9134 XML2INCL=""
9136 XSLTINCL=""
9138 if test "x$with_xml" != "xno"
9139 then
9140 ac_save_CPPFLAGS="$CPPFLAGS"
9141 if test "$PKG_CONFIG" != "false"
9142 then
9143 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9144 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9145 else
9146 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9147 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9149 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9150 for ac_header in libxml/parser.h
9151 do :
9152 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9153 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9154 cat >>confdefs.h <<_ACEOF
9155 #define HAVE_LIBXML_PARSER_H 1
9156 _ACEOF
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9158 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9159 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 ac_check_lib_save_LIBS=$LIBS
9163 LIBS="-lxml2 $ac_xml_libs $LIBS"
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9167 /* Override any GCC internal prototype to avoid an error.
9168 Use char because int might match the return type of a GCC
9169 builtin and then its argument prototype would still apply. */
9170 #ifdef __cplusplus
9171 extern "C"
9172 #endif
9173 char xmlParseMemory ();
9175 main ()
9177 return xmlParseMemory ();
9179 return 0;
9181 _ACEOF
9182 if ac_fn_c_try_link "$LINENO"; then :
9183 ac_cv_lib_xml2_xmlParseMemory=yes
9184 else
9185 ac_cv_lib_xml2_xmlParseMemory=no
9187 rm -f core conftest.err conftest.$ac_objext \
9188 conftest$ac_exeext conftest.$ac_ext
9189 LIBS=$ac_check_lib_save_LIBS
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9192 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9193 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9195 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9197 XML2LIBS="$ac_xml_libs"
9198 XML2INCL="$ac_xml_cflags"
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9202 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9203 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 ac_check_lib_save_LIBS=$LIBS
9207 LIBS="-lxml2 $ac_xml_libs $LIBS"
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9211 /* Override any GCC internal prototype to avoid an error.
9212 Use char because int might match the return type of a GCC
9213 builtin and then its argument prototype would still apply. */
9214 #ifdef __cplusplus
9215 extern "C"
9216 #endif
9217 char xmlReadMemory ();
9219 main ()
9221 return xmlReadMemory ();
9223 return 0;
9225 _ACEOF
9226 if ac_fn_c_try_link "$LINENO"; then :
9227 ac_cv_lib_xml2_xmlReadMemory=yes
9228 else
9229 ac_cv_lib_xml2_xmlReadMemory=no
9231 rm -f core conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
9233 LIBS=$ac_check_lib_save_LIBS
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9236 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9237 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9239 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9244 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9245 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 ac_check_lib_save_LIBS=$LIBS
9249 LIBS="-lxml2 $ac_xml_libs $LIBS"
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9253 /* Override any GCC internal prototype to avoid an error.
9254 Use char because int might match the return type of a GCC
9255 builtin and then its argument prototype would still apply. */
9256 #ifdef __cplusplus
9257 extern "C"
9258 #endif
9259 char xmlNewDocPI ();
9261 main ()
9263 return xmlNewDocPI ();
9265 return 0;
9267 _ACEOF
9268 if ac_fn_c_try_link "$LINENO"; then :
9269 ac_cv_lib_xml2_xmlNewDocPI=yes
9270 else
9271 ac_cv_lib_xml2_xmlNewDocPI=no
9273 rm -f core conftest.err conftest.$ac_objext \
9274 conftest$ac_exeext conftest.$ac_ext
9275 LIBS=$ac_check_lib_save_LIBS
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9278 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9279 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9281 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9286 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9287 if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 ac_check_lib_save_LIBS=$LIBS
9291 LIBS="-lxml2 $ac_xml_libs $LIBS"
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9295 /* Override any GCC internal prototype to avoid an error.
9296 Use char because int might match the return type of a GCC
9297 builtin and then its argument prototype would still apply. */
9298 #ifdef __cplusplus
9299 extern "C"
9300 #endif
9301 char xmlSchemaSetParserStructuredErrors ();
9303 main ()
9305 return xmlSchemaSetParserStructuredErrors ();
9307 return 0;
9309 _ACEOF
9310 if ac_fn_c_try_link "$LINENO"; then :
9311 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9312 else
9313 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9315 rm -f core conftest.err conftest.$ac_objext \
9316 conftest$ac_exeext conftest.$ac_ext
9317 LIBS=$ac_check_lib_save_LIBS
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9320 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9321 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9323 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9328 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9329 if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 ac_check_lib_save_LIBS=$LIBS
9333 LIBS="-lxml2 $ac_xml_libs $LIBS"
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9337 /* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 char xmlSchemaSetValidStructuredErrors ();
9345 main ()
9347 return xmlSchemaSetValidStructuredErrors ();
9349 return 0;
9351 _ACEOF
9352 if ac_fn_c_try_link "$LINENO"; then :
9353 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9354 else
9355 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9357 rm -f core conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359 LIBS=$ac_check_lib_save_LIBS
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9362 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9363 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9365 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9370 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9371 if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9374 ac_check_lib_save_LIBS=$LIBS
9375 LIBS="-lxml2 $ac_xml_libs $LIBS"
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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 xmlFirstElementChild ();
9387 main ()
9389 return xmlFirstElementChild ();
9391 return 0;
9393 _ACEOF
9394 if ac_fn_c_try_link "$LINENO"; then :
9395 ac_cv_lib_xml2_xmlFirstElementChild=yes
9396 else
9397 ac_cv_lib_xml2_xmlFirstElementChild=no
9399 rm -f core conftest.err conftest.$ac_objext \
9400 conftest$ac_exeext conftest.$ac_ext
9401 LIBS=$ac_check_lib_save_LIBS
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9404 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9405 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9407 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9411 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9413 if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9415 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9422 done
9424 CPPFLAGS="$ac_save_CPPFLAGS"
9426 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9427 case "x$with_xml" in
9428 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9429 xno) ;;
9430 *) as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported.
9431 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9432 esac
9435 if test "x$with_xslt" != "xno"
9436 then
9437 if test "$PKG_CONFIG" != "false"
9438 then
9439 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9440 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9441 else
9442 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9443 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9445 ac_save_CPPFLAGS="$CPPFLAGS"
9446 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9447 for ac_header in libxslt/pattern.h libxslt/transform.h
9448 do :
9449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9450 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9451 # include <libxslt/pattern.h>
9452 #endif
9454 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9455 cat >>confdefs.h <<_ACEOF
9456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9457 _ACEOF
9461 done
9463 CPPFLAGS="$ac_save_CPPFLAGS"
9464 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9465 then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9467 $as_echo_n "checking for -lxslt... " >&6; }
9468 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 ac_check_soname_save_LIBS=$LIBS
9472 LIBS="-lxslt $ac_xslt_libs $LIBS"
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9476 /* Override any GCC internal prototype to avoid an error.
9477 Use char because int might match the return type of a GCC
9478 builtin and then its argument prototype would still apply. */
9479 #ifdef __cplusplus
9480 extern "C"
9481 #endif
9482 char xsltCompilePattern ();
9484 main ()
9486 return xsltCompilePattern ();
9488 return 0;
9490 _ACEOF
9491 if ac_fn_c_try_link "$LINENO"; then :
9492 case "$LIBEXT" in
9493 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9494 dylib) ac_cv_lib_soname_xslt=`otool -L conftest$ac_exeext | grep "libxslt\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libxslt\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9495 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9496 esac
9498 rm -f core conftest.err conftest.$ac_objext \
9499 conftest$ac_exeext conftest.$ac_ext
9500 LIBS=$ac_check_soname_save_LIBS
9502 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9504 $as_echo "not found" >&6; }
9506 else
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9508 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9510 cat >>confdefs.h <<_ACEOF
9511 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9512 _ACEOF
9514 XSLTINCL="$ac_xslt_cflags"
9518 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9519 case "x$with_xslt" in
9520 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9521 xno) ;;
9522 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9523 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9524 esac
9527 HALINCL=""
9529 if test "x$with_hal" != "xno"
9530 then
9531 ac_save_CPPFLAGS="$CPPFLAGS"
9532 if test "$PKG_CONFIG" != "false"
9533 then
9534 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9535 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9536 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9538 for ac_header in dbus/dbus.h hal/libhal.h
9539 do :
9540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9541 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9543 cat >>confdefs.h <<_ACEOF
9544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9545 _ACEOF
9549 done
9551 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9552 then
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9554 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9555 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 ac_check_lib_save_LIBS=$LIBS
9559 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9566 #ifdef __cplusplus
9567 extern "C"
9568 #endif
9569 char dbus_connection_close ();
9571 main ()
9573 return dbus_connection_close ();
9575 return 0;
9577 _ACEOF
9578 if ac_fn_c_try_link "$LINENO"; then :
9579 ac_cv_lib_dbus_1_dbus_connection_close=yes
9580 else
9581 ac_cv_lib_dbus_1_dbus_connection_close=no
9583 rm -f core conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 LIBS=$ac_check_lib_save_LIBS
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9588 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9589 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9591 $as_echo_n "checking for -lhal... " >&6; }
9592 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 ac_check_soname_save_LIBS=$LIBS
9596 LIBS="-lhal $ac_hal_libs $LIBS"
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9600 /* Override any GCC internal prototype to avoid an error.
9601 Use char because int might match the return type of a GCC
9602 builtin and then its argument prototype would still apply. */
9603 #ifdef __cplusplus
9604 extern "C"
9605 #endif
9606 char libhal_ctx_new ();
9608 main ()
9610 return libhal_ctx_new ();
9612 return 0;
9614 _ACEOF
9615 if ac_fn_c_try_link "$LINENO"; then :
9616 case "$LIBEXT" in
9617 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9618 dylib) ac_cv_lib_soname_hal=`otool -L conftest$ac_exeext | grep "libhal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libhal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9619 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9620 esac
9622 rm -f core conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_soname_save_LIBS
9626 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9628 $as_echo "not found" >&6; }
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9632 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9634 cat >>confdefs.h <<_ACEOF
9635 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9636 _ACEOF
9638 HALINCL="$ac_hal_cflags"
9643 CPPFLAGS="$ac_save_CPPFLAGS"
9645 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9646 case "x$with_hal" in
9647 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9648 xno) ;;
9649 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9650 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9651 esac
9654 if test "x$with_gnutls" != "xno"
9655 then
9656 ac_save_CPPFLAGS="$CPPFLAGS"
9657 if test "$PKG_CONFIG" != "false"
9658 then
9659 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9660 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9661 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9663 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9664 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667 #include <gnutls/gnutls.h>
9669 main ()
9671 typeof(gnutls_mac_get_key_size) *pfunc;
9673 return 0;
9675 _ACEOF
9676 if ac_fn_c_try_compile "$LINENO"; then :
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9678 $as_echo_n "checking for -lgnutls... " >&6; }
9679 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 ac_check_soname_save_LIBS=$LIBS
9683 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9687 /* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
9690 #ifdef __cplusplus
9691 extern "C"
9692 #endif
9693 char gnutls_global_init ();
9695 main ()
9697 return gnutls_global_init ();
9699 return 0;
9701 _ACEOF
9702 if ac_fn_c_try_link "$LINENO"; then :
9703 case "$LIBEXT" in
9704 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9705 dylib) ac_cv_lib_soname_gnutls=`otool -L conftest$ac_exeext | grep "libgnutls\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgnutls\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9706 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9707 esac
9709 rm -f core conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_soname_save_LIBS
9713 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9715 $as_echo "not found" >&6; }
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9719 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9721 cat >>confdefs.h <<_ACEOF
9722 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9723 _ACEOF
9725 GNUTLSINCL="$ac_gnutls_cflags"
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9733 CPPFLAGS="$ac_save_CPPFLAGS"
9735 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9736 case "x$with_gnutls" in
9737 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9738 xno) ;;
9739 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9740 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9741 esac
9744 CURSESLIBS=""
9745 if test "$ac_cv_header_ncurses_h" = "yes"
9746 then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9748 $as_echo_n "checking for -lncurses... " >&6; }
9749 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 ac_check_soname_save_LIBS=$LIBS
9753 LIBS="-lncurses $LIBS"
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9760 #ifdef __cplusplus
9761 extern "C"
9762 #endif
9763 char waddch ();
9765 main ()
9767 return waddch ();
9769 return 0;
9771 _ACEOF
9772 if ac_fn_c_try_link "$LINENO"; then :
9773 case "$LIBEXT" in
9774 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9775 dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep "libncurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9776 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9777 esac
9779 rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_soname_save_LIBS
9783 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9785 $as_echo "not found" >&6; }
9787 else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9789 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9791 cat >>confdefs.h <<_ACEOF
9792 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9793 _ACEOF
9795 CURSESLIBS="-lncurses"
9797 elif test "$ac_cv_header_curses_h" = "yes"
9798 then
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9800 $as_echo_n "checking for -lcurses... " >&6; }
9801 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 ac_check_soname_save_LIBS=$LIBS
9805 LIBS="-lcurses $LIBS"
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9809 /* Override any GCC internal prototype to avoid an error.
9810 Use char because int might match the return type of a GCC
9811 builtin and then its argument prototype would still apply. */
9812 #ifdef __cplusplus
9813 extern "C"
9814 #endif
9815 char waddch ();
9817 main ()
9819 return waddch ();
9821 return 0;
9823 _ACEOF
9824 if ac_fn_c_try_link "$LINENO"; then :
9825 case "$LIBEXT" in
9826 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9827 dylib) ac_cv_lib_soname_curses=`otool -L conftest$ac_exeext | grep "libcurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9828 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9829 esac
9831 rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_soname_save_LIBS
9835 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9837 $as_echo "not found" >&6; }
9839 else
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9841 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9843 cat >>confdefs.h <<_ACEOF
9844 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9845 _ACEOF
9847 CURSESLIBS="-lcurses"
9850 ac_save_LIBS="$LIBS"
9851 LIBS="$LIBS $CURSESLIBS"
9852 for ac_func in mousemask
9853 do :
9854 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9855 if test "x$ac_cv_func_mousemask" = x""yes; then :
9856 cat >>confdefs.h <<_ACEOF
9857 #define HAVE_MOUSEMASK 1
9858 _ACEOF
9861 done
9863 LIBS="$ac_save_LIBS"
9864 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9865 case "x$with_curses" in
9866 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9867 xno) ;;
9868 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9869 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9870 esac
9873 if test "x$with_sane" != "xno"
9874 then
9875 ac_save_CPPFLAGS="$CPPFLAGS"
9876 # Extract the first word of "sane-config", so it can be a program name with args.
9877 set dummy sane-config; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9881 $as_echo_n "(cached) " >&6
9882 else
9883 if test -n "$sane_devel"; then
9884 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9885 else
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in $PATH
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9893 ac_cv_prog_sane_devel="sane-config"
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9897 done
9898 done
9899 IFS=$as_save_IFS
9901 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9904 sane_devel=$ac_cv_prog_sane_devel
9905 if test -n "$sane_devel"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9907 $as_echo "$sane_devel" >&6; }
9908 else
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9914 if test "$sane_devel" != "no"
9915 then
9916 ac_sane_incl="`$sane_devel --cflags`"
9917 ac_sane_libs="`$sane_devel --ldflags`"
9918 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9920 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9921 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9923 $as_echo_n "checking for -lsane... " >&6; }
9924 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 ac_check_soname_save_LIBS=$LIBS
9928 LIBS="-lsane $ac_sane_libs $LIBS"
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9932 /* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 char sane_init ();
9940 main ()
9942 return sane_init ();
9944 return 0;
9946 _ACEOF
9947 if ac_fn_c_try_link "$LINENO"; then :
9948 case "$LIBEXT" in
9949 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9950 dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep "libsane\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9951 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9952 esac
9954 rm -f core conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_soname_save_LIBS
9958 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9960 $as_echo "not found" >&6; }
9962 else
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9964 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9966 cat >>confdefs.h <<_ACEOF
9967 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9968 _ACEOF
9970 SANEINCL="$ac_sane_incl"
9976 CPPFLAGS="$ac_save_CPPFLAGS"
9978 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9979 case "x$with_sane" in
9980 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9981 xno) ;;
9982 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9983 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9984 esac
9987 if test "x$with_v4l" != "xno"
9988 then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9990 $as_echo_n "checking for -lv4l1... " >&6; }
9991 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 ac_check_soname_save_LIBS=$LIBS
9995 LIBS="-lv4l1 $LIBS"
9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
9999 /* Override any GCC internal prototype to avoid an error.
10000 Use char because int might match the return type of a GCC
10001 builtin and then its argument prototype would still apply. */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 char v4l1_open ();
10007 main ()
10009 return v4l1_open ();
10011 return 0;
10013 _ACEOF
10014 if ac_fn_c_try_link "$LINENO"; then :
10015 case "$LIBEXT" in
10016 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10017 dylib) ac_cv_lib_soname_v4l1=`otool -L conftest$ac_exeext | grep "libv4l1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libv4l1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10018 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10019 esac
10021 rm -f core conftest.err conftest.$ac_objext \
10022 conftest$ac_exeext conftest.$ac_ext
10023 LIBS=$ac_check_soname_save_LIBS
10025 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10027 $as_echo "not found" >&6; }
10029 else
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10031 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10033 cat >>confdefs.h <<_ACEOF
10034 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10035 _ACEOF
10040 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10041 case "x$with_v4l" in
10042 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10043 xno) ;;
10044 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10045 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10046 esac
10049 if test "x$with_gphoto" != "xno"
10050 then
10051 ac_save_CPPFLAGS="$CPPFLAGS"
10052 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10053 set dummy gphoto2-config; ac_word=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 if test -n "$gphoto2_devel"; then
10060 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10061 else
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in $PATH
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10069 ac_cv_prog_gphoto2_devel="gphoto2-config"
10070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10073 done
10074 done
10075 IFS=$as_save_IFS
10077 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10080 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10081 if test -n "$gphoto2_devel"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10083 $as_echo "$gphoto2_devel" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10090 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10091 set dummy gphoto2-port-config; ac_word=$2
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093 $as_echo_n "checking for $ac_word... " >&6; }
10094 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 if test -n "$gphoto2port_devel"; then
10098 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10099 else
10100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101 for as_dir in $PATH
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
10105 for ac_exec_ext in '' $ac_executable_extensions; do
10106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10107 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 break 2
10111 done
10112 done
10113 IFS=$as_save_IFS
10115 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10118 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10119 if test -n "$gphoto2port_devel"; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10121 $as_echo "$gphoto2port_devel" >&6; }
10122 else
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10128 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10129 then
10130 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10131 ac_gphoto2_libs=""
10132 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10134 case "$i" in
10135 -L/usr/lib|-L/usr/lib64) ;;
10136 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10137 esac
10138 done
10139 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10141 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10142 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10143 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10145 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10146 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 ac_check_lib_save_LIBS=$LIBS
10150 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10154 /* Override any GCC internal prototype to avoid an error.
10155 Use char because int might match the return type of a GCC
10156 builtin and then its argument prototype would still apply. */
10157 #ifdef __cplusplus
10158 extern "C"
10159 #endif
10160 char gp_camera_new ();
10162 main ()
10164 return gp_camera_new ();
10166 return 0;
10168 _ACEOF
10169 if ac_fn_c_try_link "$LINENO"; then :
10170 ac_cv_lib_gphoto2_gp_camera_new=yes
10171 else
10172 ac_cv_lib_gphoto2_gp_camera_new=no
10174 rm -f core conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10176 LIBS=$ac_check_lib_save_LIBS
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10179 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10180 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
10182 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10184 GPHOTO2LIBS="$ac_gphoto2_libs"
10186 GPHOTO2INCL="$ac_gphoto2_incl"
10193 CPPFLAGS="$ac_save_CPPFLAGS"
10195 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10196 case "x$with_gphoto" in
10197 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10198 xno) ;;
10199 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10200 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10201 esac
10205 if test "$ac_cv_header_resolv_h" = "yes"
10206 then
10207 ac_save_LIBS="$LIBS"
10208 for lib in '' -lresolv
10210 LIBS="$lib $ac_save_LIBS"
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h. */
10213 #ifdef HAVE_NETINET_IN_H
10214 #include <netinet/in.h>
10215 #endif
10216 #include <resolv.h>
10218 main ()
10220 res_query("foo",ns_c_in,0,0,0);
10222 return 0;
10224 _ACEOF
10225 if ac_fn_c_try_link "$LINENO"; then :
10227 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10229 RESOLVLIBS="$lib"
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 if test "${RESOLVLIBS+set}" = set; then
10235 break
10237 done
10238 LIBS="$ac_save_LIBS"
10241 LCMSLIBS=""
10243 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10244 then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10246 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10247 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 ac_check_lib_save_LIBS=$LIBS
10251 LIBS="-llcms $LIBS"
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10255 /* Override any GCC internal prototype to avoid an error.
10256 Use char because int might match the return type of a GCC
10257 builtin and then its argument prototype would still apply. */
10258 #ifdef __cplusplus
10259 extern "C"
10260 #endif
10261 char cmsOpenProfileFromFile ();
10263 main ()
10265 return cmsOpenProfileFromFile ();
10267 return 0;
10269 _ACEOF
10270 if ac_fn_c_try_link "$LINENO"; then :
10271 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10272 else
10273 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10275 rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10277 LIBS=$ac_check_lib_save_LIBS
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10280 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10281 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10283 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10285 LCMSLIBS="-llcms"
10289 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10290 case "x$with_cms" in
10291 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10292 xno) ;;
10293 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10294 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10295 esac
10298 if test "x$with_freetype" != "xno"
10299 then
10300 for ac_prog in freetype-config freetype2-config
10302 # Extract the first word of "$ac_prog", so it can be a program name with args.
10303 set dummy $ac_prog; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 if test -n "$ft_devel"; then
10310 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10311 else
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319 ac_cv_prog_ft_devel="$ac_prog"
10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10323 done
10324 done
10325 IFS=$as_save_IFS
10329 ft_devel=$ac_cv_prog_ft_devel
10330 if test -n "$ft_devel"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10332 $as_echo "$ft_devel" >&6; }
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10339 test -n "$ft_devel" && break
10340 done
10341 test -n "$ft_devel" || ft_devel="no"
10343 if test "$ft_devel" != "no"
10344 then
10345 ac_freetype_incl=`$ft_devel --cflags`
10346 ac_freetype_libs=`$ft_devel --libs`
10348 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10350 $as_echo_n "checking for -lfreetype... " >&6; }
10351 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 ac_check_soname_save_LIBS=$LIBS
10355 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10359 /* Override any GCC internal prototype to avoid an error.
10360 Use char because int might match the return type of a GCC
10361 builtin and then its argument prototype would still apply. */
10362 #ifdef __cplusplus
10363 extern "C"
10364 #endif
10365 char FT_Init_FreeType ();
10367 main ()
10369 return FT_Init_FreeType ();
10371 return 0;
10373 _ACEOF
10374 if ac_fn_c_try_link "$LINENO"; then :
10375 case "$LIBEXT" in
10376 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10377 dylib) ac_cv_lib_soname_freetype=`otool -L conftest$ac_exeext | grep "libfreetype\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfreetype\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10378 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10379 esac
10381 rm -f core conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10383 LIBS=$ac_check_soname_save_LIBS
10385 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10387 $as_echo "not found" >&6; }
10388 ft_lib=no
10389 else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10391 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10393 cat >>confdefs.h <<_ACEOF
10394 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10395 _ACEOF
10397 ft_lib=yes
10399 if test "$ft_lib" = "yes"
10400 then
10401 ac_save_CPPFLAGS="$CPPFLAGS"
10402 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10403 for ac_header in ft2build.h \
10404 freetype/freetype.h \
10405 freetype/ftglyph.h \
10406 freetype/fttypes.h \
10407 freetype/tttables.h \
10408 freetype/ftsnames.h \
10409 freetype/ttnameid.h \
10410 freetype/ftoutln.h \
10411 freetype/ftwinfnt.h \
10412 freetype/ftmodapi.h \
10413 freetype/ftlcdfil.h \
10414 freetype/internal/sfnt.h
10415 do :
10416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10417 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10418 # include <ft2build.h>
10419 #endif
10421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10422 cat >>confdefs.h <<_ACEOF
10423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10424 _ACEOF
10428 done
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10432 #include <ft2build.h>
10433 #include <freetype/fttrigon.h>
10434 _ACEOF
10435 if ac_fn_c_try_cpp "$LINENO"; then :
10437 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10439 wine_cv_fttrigon=yes
10440 else
10441 wine_cv_fttrigon=no
10443 rm -f conftest.err conftest.i conftest.$ac_ext
10444 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10446 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10448 cat >>confdefs.h <<_ACEOF
10449 #define HAVE_FT_TRUETYPEENGINETYPE 1
10450 _ACEOF
10455 ac_save_CFLAGS="$CFLAGS"
10456 CFLAGS="$CFLAGS $ac_freetype_libs"
10457 for ac_func in FT_Load_Sfnt_Table
10458 do :
10459 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10460 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10461 cat >>confdefs.h <<_ACEOF
10462 #define HAVE_FT_LOAD_SFNT_TABLE 1
10463 _ACEOF
10466 done
10468 CFLAGS="$ac_save_CFLAGS"
10469 CPPFLAGS="$ac_save_CPPFLAGS"
10470 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10471 then
10473 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10475 FREETYPELIBS="$ac_freetype_libs"
10477 FREETYPEINCL="$ac_freetype_incl"
10482 if test "x$FREETYPELIBS" = "x"; then :
10483 case "x$with_freetype" in
10484 xno) ;;
10485 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10486 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10487 esac
10489 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10492 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10493 if test "${ac_cv_c_ppdev+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10498 #ifdef HAVE_SYS_IOCTL_H
10499 # include <sys/ioctl.h>
10500 #endif
10501 #include <linux/ppdev.h>
10503 main ()
10505 ioctl (1,PPCLAIM,0)
10507 return 0;
10509 _ACEOF
10510 if ac_fn_c_try_compile "$LINENO"; then :
10511 ac_cv_c_ppdev="yes"
10512 else
10513 ac_cv_c_ppdev="no"
10515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10518 $as_echo "$ac_cv_c_ppdev" >&6; }
10519 if test "$ac_cv_c_ppdev" = "yes"
10520 then
10522 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10526 ac_wine_check_funcs_save_LIBS="$LIBS"
10527 LIBS="$LIBS $LIBPTHREAD"
10528 for ac_func in \
10529 pthread_attr_get_np \
10530 pthread_getattr_np \
10531 pthread_get_stackaddr_np \
10532 pthread_get_stacksize_np
10533 do :
10534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10535 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10536 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10537 cat >>confdefs.h <<_ACEOF
10538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10539 _ACEOF
10542 done
10544 LIBS="$ac_wine_check_funcs_save_LIBS"
10546 if test "$ac_cv_header_zlib_h" = "yes"
10547 then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10549 $as_echo_n "checking for inflate in -lz... " >&6; }
10550 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10551 $as_echo_n "(cached) " >&6
10552 else
10553 ac_check_lib_save_LIBS=$LIBS
10554 LIBS="-lz $LIBS"
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10558 /* Override any GCC internal prototype to avoid an error.
10559 Use char because int might match the return type of a GCC
10560 builtin and then its argument prototype would still apply. */
10561 #ifdef __cplusplus
10562 extern "C"
10563 #endif
10564 char inflate ();
10566 main ()
10568 return inflate ();
10570 return 0;
10572 _ACEOF
10573 if ac_fn_c_try_link "$LINENO"; then :
10574 ac_cv_lib_z_inflate=yes
10575 else
10576 ac_cv_lib_z_inflate=no
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10583 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10584 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10586 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10588 ZLIB="-lz"
10594 if test "x$with_esd" != xno
10595 then
10596 save_CFLAGS="$CFLAGS"
10597 # Extract the first word of "esd-config", so it can be a program name with args.
10598 set dummy esd-config; ac_word=$2
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10600 $as_echo_n "checking for $ac_word... " >&6; }
10601 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 case $ESDCONFIG in
10605 [\\/]* | ?:[\\/]*)
10606 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10612 IFS=$as_save_IFS
10613 test -z "$as_dir" && as_dir=.
10614 for ac_exec_ext in '' $ac_executable_extensions; do
10615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10616 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618 break 2
10620 done
10621 done
10622 IFS=$as_save_IFS
10624 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10626 esac
10628 ESDCONFIG=$ac_cv_path_ESDCONFIG
10629 if test -n "$ESDCONFIG"; then
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10631 $as_echo "$ESDCONFIG" >&6; }
10632 else
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; }
10638 if test "x$ESDCONFIG" != "xno"
10639 then
10640 ac_esd_incl=""
10641 for i in `$ESDCONFIG --cflags`
10643 case "$i" in
10644 -I*) ac_esd_incl="$ac_esd_incl $i";;
10645 esac
10646 done
10647 ac_esd_libs=`$ESDCONFIG --libs`
10648 CFLAGS="$CFLAGS $ac_esd_incl"
10650 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10651 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10652 if test "x$ac_cv_header_esd_h" = x""yes; then :
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10654 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10655 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 ac_check_lib_save_LIBS=$LIBS
10659 LIBS="-lesd $ac_esd_libs $LIBS"
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 char esd_open_sound ();
10671 main ()
10673 return esd_open_sound ();
10675 return 0;
10677 _ACEOF
10678 if ac_fn_c_try_link "$LINENO"; then :
10679 ac_cv_lib_esd_esd_open_sound=yes
10680 else
10681 ac_cv_lib_esd_esd_open_sound=no
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS=$ac_check_lib_save_LIBS
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10688 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10689 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10690 ESDINCL="$ac_esd_incl"
10692 ESDLIBS="$ac_esd_libs"
10695 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10702 CFLAGS="$save_CFLAGS"
10705 if test "x$with_gstreamer" != "xno"
10706 then
10707 ac_save_CPPFLAGS="$CPPFLAGS"
10708 if test "$PKG_CONFIG" != "false"; then
10709 ac_gst_incl=""
10710 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10712 case "$i" in
10713 -I*) ac_gst_incl="$ac_gst_incl $i";;
10714 esac
10715 done
10716 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10717 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10718 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10719 if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10720 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10721 if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10723 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10724 if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 ac_check_lib_save_LIBS=$LIBS
10728 LIBS="-lgstreamer-0.10 $LIBS"
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10732 /* Override any GCC internal prototype to avoid an error.
10733 Use char because int might match the return type of a GCC
10734 builtin and then its argument prototype would still apply. */
10735 #ifdef __cplusplus
10736 extern "C"
10737 #endif
10738 char gst_pad_get_caps_reffed ();
10740 main ()
10742 return gst_pad_get_caps_reffed ();
10744 return 0;
10746 _ACEOF
10747 if ac_fn_c_try_link "$LINENO"; then :
10748 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10749 else
10750 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10752 rm -f core conftest.err conftest.$ac_objext \
10753 conftest$ac_exeext conftest.$ac_ext
10754 LIBS=$ac_check_lib_save_LIBS
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10757 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10758 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10760 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10761 if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10762 $as_echo_n "(cached) " >&6
10763 else
10764 ac_check_lib_save_LIBS=$LIBS
10765 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10769 /* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10772 #ifdef __cplusplus
10773 extern "C"
10774 #endif
10775 char gst_app_buffer_new ();
10777 main ()
10779 return gst_app_buffer_new ();
10781 return 0;
10783 _ACEOF
10784 if ac_fn_c_try_link "$LINENO"; then :
10785 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10786 else
10787 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10789 rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 LIBS=$ac_check_lib_save_LIBS
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10794 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10795 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10796 GSTREAMER_LIBS="$ac_gst_libs"
10798 GSTREAMER_INCL="$ac_gst_incl"
10811 CPPFLAGS="$ac_save_CPPFLAGS"
10813 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes; then :
10814 case "x$with_gstreamer" in
10815 x) as_fn_append wine_notices "|gstreamer-0.10 ${notice_platform}development files not found, gstreamer support disabled" ;;
10816 xno) ;;
10817 *) as_fn_error $? "gstreamer-0.10 ${notice_platform}development files not found, gstreamer support disabled
10818 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10819 esac
10821 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10823 ALSALIBS=""
10825 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10826 then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10828 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10829 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 ac_check_lib_save_LIBS=$LIBS
10833 LIBS="-lasound $LIBS"
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10837 /* Override any GCC internal prototype to avoid an error.
10838 Use char because int might match the return type of a GCC
10839 builtin and then its argument prototype would still apply. */
10840 #ifdef __cplusplus
10841 extern "C"
10842 #endif
10843 char snd_pcm_hw_params_get_access ();
10845 main ()
10847 return snd_pcm_hw_params_get_access ();
10849 return 0;
10851 _ACEOF
10852 if ac_fn_c_try_link "$LINENO"; then :
10853 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10854 else
10855 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10857 rm -f core conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10859 LIBS=$ac_check_lib_save_LIBS
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10862 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10863 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10866 #ifdef HAVE_ALSA_ASOUNDLIB_H
10867 #include <alsa/asoundlib.h>
10868 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10869 #include <sys/asoundlib.h>
10870 #endif
10872 main ()
10874 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10876 return 0;
10878 _ACEOF
10879 if ac_fn_c_try_compile "$LINENO"; then :
10881 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10883 ALSALIBS="-lasound"
10885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890 AUDIOIOLIBS=""
10892 if test "$ac_cv_header_libaudioio_h" = "yes"
10893 then
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10895 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10896 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-laudioio $LIBS"
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10904 /* Override any GCC internal prototype to avoid an error.
10905 Use char because int might match the return type of a GCC
10906 builtin and then its argument prototype would still apply. */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 char AudioIOGetVersion ();
10912 main ()
10914 return AudioIOGetVersion ();
10916 return 0;
10918 _ACEOF
10919 if ac_fn_c_try_link "$LINENO"; then :
10920 ac_cv_lib_audioio_AudioIOGetVersion=yes
10921 else
10922 ac_cv_lib_audioio_AudioIOGetVersion=no
10924 rm -f core conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10926 LIBS=$ac_check_lib_save_LIBS
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10929 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10930 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10931 AUDIOIOLIBS="-laudioio"
10933 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10940 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10941 then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10943 $as_echo_n "checking for -lcapi20... " >&6; }
10944 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 ac_check_soname_save_LIBS=$LIBS
10948 LIBS="-lcapi20 $LIBS"
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10952 /* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10955 #ifdef __cplusplus
10956 extern "C"
10957 #endif
10958 char capi20_register ();
10960 main ()
10962 return capi20_register ();
10964 return 0;
10966 _ACEOF
10967 if ac_fn_c_try_link "$LINENO"; then :
10968 case "$LIBEXT" in
10969 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10970 dylib) ac_cv_lib_soname_capi20=`otool -L conftest$ac_exeext | grep "libcapi20\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcapi20\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10971 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10972 esac
10974 rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_soname_save_LIBS
10978 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10980 $as_echo "not found" >&6; }
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10984 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10986 cat >>confdefs.h <<_ACEOF
10987 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10988 _ACEOF
10993 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10994 case "x$with_capi" in
10995 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10996 xno) ;;
10997 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10998 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10999 esac
11002 CUPSINCL=""
11004 if test "x$with_cups" != "xno"
11005 then
11006 ac_save_CPPFLAGS="$CPPFLAGS"
11007 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11008 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11009 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11010 for ac_header in cups/cups.h
11011 do :
11012 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11013 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
11014 cat >>confdefs.h <<_ACEOF
11015 #define HAVE_CUPS_CUPS_H 1
11016 _ACEOF
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11018 $as_echo_n "checking for -lcups... " >&6; }
11019 if test "${ac_cv_lib_soname_cups+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 ac_check_soname_save_LIBS=$LIBS
11023 LIBS="-lcups $ac_cups_libs $LIBS"
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11027 /* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
11030 #ifdef __cplusplus
11031 extern "C"
11032 #endif
11033 char cupsGetDefault ();
11035 main ()
11037 return cupsGetDefault ();
11039 return 0;
11041 _ACEOF
11042 if ac_fn_c_try_link "$LINENO"; then :
11043 case "$LIBEXT" in
11044 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11045 dylib) ac_cv_lib_soname_cups=`otool -L conftest$ac_exeext | grep "libcups\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcups\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11046 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11047 esac
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11051 LIBS=$ac_check_soname_save_LIBS
11053 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11055 $as_echo "not found" >&6; }
11057 else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11059 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11061 cat >>confdefs.h <<_ACEOF
11062 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11063 _ACEOF
11065 CUPSINCL="$ac_cups_cflags"
11069 done
11071 CPPFLAGS="$ac_save_CPPFLAGS"
11073 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11074 case "x$with_cups" in
11075 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11076 xno) ;;
11077 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11078 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11079 esac
11082 if test "$ac_cv_header_jack_jack_h" = "yes"
11083 then
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11085 $as_echo_n "checking for -ljack... " >&6; }
11086 if test "${ac_cv_lib_soname_jack+set}" = set; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 ac_check_soname_save_LIBS=$LIBS
11090 LIBS="-ljack $LIBS"
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 char jack_client_new ();
11102 main ()
11104 return jack_client_new ();
11106 return 0;
11108 _ACEOF
11109 if ac_fn_c_try_link "$LINENO"; then :
11110 case "$LIBEXT" in
11111 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11112 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11113 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11114 esac
11116 rm -f core conftest.err conftest.$ac_objext \
11117 conftest$ac_exeext conftest.$ac_ext
11118 LIBS=$ac_check_soname_save_LIBS
11120 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11122 $as_echo "not found" >&6; }
11124 else
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11126 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11128 cat >>confdefs.h <<_ACEOF
11129 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11130 _ACEOF
11136 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11137 then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11139 $as_echo_n "checking for -lfontconfig... " >&6; }
11140 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11143 ac_check_soname_save_LIBS=$LIBS
11144 LIBS="-lfontconfig $LIBS"
11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 char FcInit ();
11156 main ()
11158 return FcInit ();
11160 return 0;
11162 _ACEOF
11163 if ac_fn_c_try_link "$LINENO"; then :
11164 case "$LIBEXT" in
11165 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11166 dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep "libfontconfig\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11167 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11168 esac
11170 rm -f core conftest.err conftest.$ac_objext \
11171 conftest$ac_exeext conftest.$ac_ext
11172 LIBS=$ac_check_soname_save_LIBS
11174 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11176 $as_echo "not found" >&6; }
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11180 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11182 cat >>confdefs.h <<_ACEOF
11183 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11184 _ACEOF
11188 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11189 then
11190 ac_save_CPPFLAGS="$CPPFLAGS"
11191 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11192 $as_unset ac_cv_header_fontconfig_fontconfig_h
11193 for ac_header in fontconfig/fontconfig.h
11194 do :
11195 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11196 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
11197 cat >>confdefs.h <<_ACEOF
11198 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11199 _ACEOF
11203 done
11205 CPPFLAGS="$ac_save_CPPFLAGS"
11206 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11207 then
11208 FONTCONFIGINCL="$X_CFLAGS"
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11211 $as_echo_n "checking for -lfontconfig... " >&6; }
11212 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11213 $as_echo_n "(cached) " >&6
11214 else
11215 ac_check_soname_save_LIBS=$LIBS
11216 LIBS="-lfontconfig $X_LIBS $LIBS"
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char FcInit ();
11228 main ()
11230 return FcInit ();
11232 return 0;
11234 _ACEOF
11235 if ac_fn_c_try_link "$LINENO"; then :
11236 case "$LIBEXT" in
11237 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11238 dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep "libfontconfig\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11239 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11240 esac
11242 rm -f core conftest.err conftest.$ac_objext \
11243 conftest$ac_exeext conftest.$ac_ext
11244 LIBS=$ac_check_soname_save_LIBS
11246 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11248 $as_echo "not found" >&6; }
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11252 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11254 cat >>confdefs.h <<_ACEOF
11255 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11256 _ACEOF
11262 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11263 case "x$with_fontconfig" in
11264 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11265 xno) ;;
11266 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11267 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11268 esac
11271 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11272 then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11274 $as_echo_n "checking for -lssl... " >&6; }
11275 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11278 ac_check_soname_save_LIBS=$LIBS
11279 LIBS="-lssl $LIBS"
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11283 /* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11286 #ifdef __cplusplus
11287 extern "C"
11288 #endif
11289 char SSL_library_init ();
11291 main ()
11293 return SSL_library_init ();
11295 return 0;
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 case "$LIBEXT" in
11300 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11301 dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep "libssl\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11302 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11303 esac
11305 rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11307 LIBS=$ac_check_soname_save_LIBS
11309 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11311 $as_echo "not found" >&6; }
11313 else
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11315 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11317 cat >>confdefs.h <<_ACEOF
11318 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11319 _ACEOF
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11324 $as_echo_n "checking for -lcrypto... " >&6; }
11325 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11328 ac_check_soname_save_LIBS=$LIBS
11329 LIBS="-lcrypto $LIBS"
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11333 /* Override any GCC internal prototype to avoid an error.
11334 Use char because int might match the return type of a GCC
11335 builtin and then its argument prototype would still apply. */
11336 #ifdef __cplusplus
11337 extern "C"
11338 #endif
11339 char BIO_new_socket ();
11341 main ()
11343 return BIO_new_socket ();
11345 return 0;
11347 _ACEOF
11348 if ac_fn_c_try_link "$LINENO"; then :
11349 case "$LIBEXT" in
11350 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11351 dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep "libcrypto\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11352 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11353 esac
11355 rm -f core conftest.err conftest.$ac_objext \
11356 conftest$ac_exeext conftest.$ac_ext
11357 LIBS=$ac_check_soname_save_LIBS
11359 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11361 $as_echo "not found" >&6; }
11363 else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11365 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11367 cat >>confdefs.h <<_ACEOF
11368 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11369 _ACEOF
11374 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11375 case "x$with_openssl" in
11376 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11377 xno) ;;
11378 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11379 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11380 esac
11383 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11384 then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11386 $as_echo_n "checking for -lgsm... " >&6; }
11387 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 ac_check_soname_save_LIBS=$LIBS
11391 LIBS="-lgsm $LIBS"
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11395 /* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398 #ifdef __cplusplus
11399 extern "C"
11400 #endif
11401 char gsm_create ();
11403 main ()
11405 return gsm_create ();
11407 return 0;
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 case "$LIBEXT" in
11412 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11413 dylib) ac_cv_lib_soname_gsm=`otool -L conftest$ac_exeext | grep "libgsm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgsm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11414 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11415 esac
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 LIBS=$ac_check_soname_save_LIBS
11421 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11423 $as_echo "not found" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11427 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11429 cat >>confdefs.h <<_ACEOF
11430 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11431 _ACEOF
11436 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11437 case "x$with_gsm" in
11438 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11439 xno) ;;
11440 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11441 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11442 esac
11445 if test "$ac_cv_header_icns_h" = "yes"
11446 then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -licns" >&5
11448 $as_echo_n "checking for -licns... " >&6; }
11449 if test "${ac_cv_lib_soname_icns+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 ac_check_soname_save_LIBS=$LIBS
11453 LIBS="-licns $LIBS"
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11457 /* Override any GCC internal prototype to avoid an error.
11458 Use char because int might match the return type of a GCC
11459 builtin and then its argument prototype would still apply. */
11460 #ifdef __cplusplus
11461 extern "C"
11462 #endif
11463 char icns_write_family_to_file ();
11465 main ()
11467 return icns_write_family_to_file ();
11469 return 0;
11471 _ACEOF
11472 if ac_fn_c_try_link "$LINENO"; then :
11473 case "$LIBEXT" in
11474 dll) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest.exe | grep "icns" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11475 dylib) ac_cv_lib_soname_icns=`otool -L conftest$ac_exeext | grep "libicns\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libicns\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11476 *) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest$ac_exeext | grep "libicns\\.$LIBEXT" | sed -e "s/^.*\(libicns\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11477 esac
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 LIBS=$ac_check_soname_save_LIBS
11483 if test "x$ac_cv_lib_soname_icns" = "x"; then :
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11485 $as_echo "not found" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_icns" >&5
11489 $as_echo "$ac_cv_lib_soname_icns" >&6; }
11491 cat >>confdefs.h <<_ACEOF
11492 #define SONAME_LIBICNS "$ac_cv_lib_soname_icns"
11493 _ACEOF
11498 case $host_os in
11499 darwin*|macosx*)
11500 if test "x$ac_cv_lib_soname_icns" = "x"; then :
11501 case "x$with_icns" in
11502 x) as_fn_append wine_notices "|libicns ${notice_platform}development files not found, ICNS icons won't be supported." ;;
11503 xno) ;;
11504 *) as_fn_error $? "libicns ${notice_platform}development files not found, ICNS icons won't be supported.
11505 This is an error since --with-icns was requested." "$LINENO" 5 ;;
11506 esac
11507 fi ;;
11508 esac
11510 if test "$ac_cv_header_jpeglib_h" = "yes"
11511 then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11513 $as_echo_n "checking for -ljpeg... " >&6; }
11514 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 ac_check_soname_save_LIBS=$LIBS
11518 LIBS="-ljpeg $LIBS"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 char jpeg_start_decompress ();
11530 main ()
11532 return jpeg_start_decompress ();
11534 return 0;
11536 _ACEOF
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 case "$LIBEXT" in
11539 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11540 dylib) ac_cv_lib_soname_jpeg=`otool -L conftest$ac_exeext | grep "libjpeg\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjpeg\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11541 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11542 esac
11544 rm -f core conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext conftest.$ac_ext
11546 LIBS=$ac_check_soname_save_LIBS
11548 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11550 $as_echo "not found" >&6; }
11552 else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11554 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11556 cat >>confdefs.h <<_ACEOF
11557 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11558 _ACEOF
11563 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11564 case "x$with_jpeg" in
11565 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11566 xno) ;;
11567 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11568 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11569 esac
11572 if test "$ac_cv_header_png_h" = "yes"
11573 then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11575 $as_echo_n "checking for -lpng... " >&6; }
11576 if test "${ac_cv_lib_soname_png+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 ac_check_soname_save_LIBS=$LIBS
11580 LIBS="-lpng -lm -lz $LIBS"
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11584 /* Override any GCC internal prototype to avoid an error.
11585 Use char because int might match the return type of a GCC
11586 builtin and then its argument prototype would still apply. */
11587 #ifdef __cplusplus
11588 extern "C"
11589 #endif
11590 char png_create_read_struct ();
11592 main ()
11594 return png_create_read_struct ();
11596 return 0;
11598 _ACEOF
11599 if ac_fn_c_try_link "$LINENO"; then :
11600 case "$LIBEXT" in
11601 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11602 dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11603 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11604 esac
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_soname_save_LIBS
11610 if test "x$ac_cv_lib_soname_png" = "x"; then :
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11612 $as_echo "not found" >&6; }
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11616 $as_echo "$ac_cv_lib_soname_png" >&6; }
11618 cat >>confdefs.h <<_ACEOF
11619 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11620 _ACEOF
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11625 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11626 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-lpng -lm -lz $LIBS"
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11634 /* Override any GCC internal prototype to avoid an error.
11635 Use char because int might match the return type of a GCC
11636 builtin and then its argument prototype would still apply. */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 char png_set_expand_gray_1_2_4_to_8 ();
11642 main ()
11644 return png_set_expand_gray_1_2_4_to_8 ();
11646 return 0;
11648 _ACEOF
11649 if ac_fn_c_try_link "$LINENO"; then :
11650 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11651 else
11652 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11654 rm -f core conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11659 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11660 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11662 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11667 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11668 then
11669 ac_save_CPPFLAGS="$CPPFLAGS"
11670 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11671 $as_unset ac_cv_header_png_h
11672 for ac_header in png.h
11673 do :
11674 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11675 if test "x$ac_cv_header_png_h" = x""yes; then :
11676 cat >>confdefs.h <<_ACEOF
11677 #define HAVE_PNG_H 1
11678 _ACEOF
11682 done
11684 CPPFLAGS="$ac_save_CPPFLAGS"
11685 if test "$ac_cv_header_png_h" = "yes"
11686 then
11687 PNGINCL="$X_CFLAGS"
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11690 $as_echo_n "checking for -lpng... " >&6; }
11691 if test "${ac_cv_lib_soname_png+set}" = set; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 ac_check_soname_save_LIBS=$LIBS
11695 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11699 /* Override any GCC internal prototype to avoid an error.
11700 Use char because int might match the return type of a GCC
11701 builtin and then its argument prototype would still apply. */
11702 #ifdef __cplusplus
11703 extern "C"
11704 #endif
11705 char png_create_read_struct ();
11707 main ()
11709 return png_create_read_struct ();
11711 return 0;
11713 _ACEOF
11714 if ac_fn_c_try_link "$LINENO"; then :
11715 case "$LIBEXT" in
11716 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11717 dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11718 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11719 esac
11721 rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723 LIBS=$ac_check_soname_save_LIBS
11725 if test "x$ac_cv_lib_soname_png" = "x"; then :
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11727 $as_echo "not found" >&6; }
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11731 $as_echo "$ac_cv_lib_soname_png" >&6; }
11733 cat >>confdefs.h <<_ACEOF
11734 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11735 _ACEOF
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11740 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11741 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 ac_check_lib_save_LIBS=$LIBS
11745 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11749 /* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11752 #ifdef __cplusplus
11753 extern "C"
11754 #endif
11755 char png_set_expand_gray_1_2_4_to_8 ();
11757 main ()
11759 return png_set_expand_gray_1_2_4_to_8 ();
11761 return 0;
11763 _ACEOF
11764 if ac_fn_c_try_link "$LINENO"; then :
11765 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11766 else
11767 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11769 rm -f core conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11771 LIBS=$ac_check_lib_save_LIBS
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11774 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11775 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11776 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11782 if test "x$ac_cv_lib_soname_png" = "x"; then :
11783 case "x$with_png" in
11784 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11785 xno) ;;
11786 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11787 This is an error since --with-png was requested." "$LINENO" 5 ;;
11788 esac
11791 if test "$ac_cv_header_tiffio_h" = "yes"
11792 then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11794 $as_echo_n "checking for -ltiff... " >&6; }
11795 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 ac_check_soname_save_LIBS=$LIBS
11799 LIBS="-ltiff $LIBS"
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11803 /* Override any GCC internal prototype to avoid an error.
11804 Use char because int might match the return type of a GCC
11805 builtin and then its argument prototype would still apply. */
11806 #ifdef __cplusplus
11807 extern "C"
11808 #endif
11809 char TIFFClientOpen ();
11811 main ()
11813 return TIFFClientOpen ();
11815 return 0;
11817 _ACEOF
11818 if ac_fn_c_try_link "$LINENO"; then :
11819 case "$LIBEXT" in
11820 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11821 dylib) ac_cv_lib_soname_tiff=`otool -L conftest$ac_exeext | grep "libtiff\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libtiff\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11822 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11823 esac
11825 rm -f core conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11827 LIBS=$ac_check_soname_save_LIBS
11829 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11831 $as_echo "not found" >&6; }
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11835 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11837 cat >>confdefs.h <<_ACEOF
11838 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11839 _ACEOF
11844 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11845 case "x$with_tiff" in
11846 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11847 xno) ;;
11848 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11849 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11850 esac
11853 if test "$ac_cv_header_mpg123_h" = "yes"
11854 then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11856 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11857 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 ac_check_lib_save_LIBS=$LIBS
11861 LIBS="-lmpg123 $LIBS"
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11865 /* Override any GCC internal prototype to avoid an error.
11866 Use char because int might match the return type of a GCC
11867 builtin and then its argument prototype would still apply. */
11868 #ifdef __cplusplus
11869 extern "C"
11870 #endif
11871 char mpg123_feed ();
11873 main ()
11875 return mpg123_feed ();
11877 return 0;
11879 _ACEOF
11880 if ac_fn_c_try_link "$LINENO"; then :
11881 ac_cv_lib_mpg123_mpg123_feed=yes
11882 else
11883 ac_cv_lib_mpg123_mpg123_feed=no
11885 rm -f core conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
11887 LIBS=$ac_check_lib_save_LIBS
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11890 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11891 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11892 LIBMPG123="-lmpg123"
11897 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11898 case "x$with_mpg123" in
11899 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11900 xno) ;;
11901 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11902 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11903 esac
11905 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
11907 if test "$ac_cv_header_AL_al_h" = "yes"
11908 then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11910 $as_echo_n "checking for -lopenal... " >&6; }
11911 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11912 $as_echo_n "(cached) " >&6
11913 else
11914 ac_check_soname_save_LIBS=$LIBS
11915 LIBS="-lopenal $LIBS"
11916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11917 /* end confdefs.h. */
11919 /* Override any GCC internal prototype to avoid an error.
11920 Use char because int might match the return type of a GCC
11921 builtin and then its argument prototype would still apply. */
11922 #ifdef __cplusplus
11923 extern "C"
11924 #endif
11925 char alGetSource3i ();
11927 main ()
11929 return alGetSource3i ();
11931 return 0;
11933 _ACEOF
11934 if ac_fn_c_try_link "$LINENO"; then :
11935 case "$LIBEXT" in
11936 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11937 dylib) ac_cv_lib_soname_openal=`otool -L conftest$ac_exeext | grep "libopenal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libopenal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11938 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11939 esac
11941 rm -f core conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11943 LIBS=$ac_check_soname_save_LIBS
11945 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11947 $as_echo "not found" >&6; }
11949 else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11951 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11953 cat >>confdefs.h <<_ACEOF
11954 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11955 _ACEOF
11957 LIBOPENAL="-lopenal"
11959 ac_cv_lib_openal=yes
11961 cat >>confdefs.h <<_ACEOF
11962 #define HAVE_OPENAL 1
11963 _ACEOF
11967 if test "x$ac_cv_lib_openal" != xyes; then :
11968 case "x$with_openal" in
11969 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11970 xno) ;;
11971 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11972 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11973 esac
11975 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11977 if test "$ac_cv_header_kstat_h" = "yes"
11978 then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11980 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11981 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 ac_check_lib_save_LIBS=$LIBS
11985 LIBS="-lkstat $LIBS"
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11989 /* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 char kstat_open ();
11997 main ()
11999 return kstat_open ();
12001 return 0;
12003 _ACEOF
12004 if ac_fn_c_try_link "$LINENO"; then :
12005 ac_cv_lib_kstat_kstat_open=yes
12006 else
12007 ac_cv_lib_kstat_kstat_open=no
12009 rm -f core conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12014 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12015 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12017 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12019 LIBKSTAT="-lkstat"
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12026 $as_echo_n "checking for -lodbc... " >&6; }
12027 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
12028 $as_echo_n "(cached) " >&6
12029 else
12030 ac_check_soname_save_LIBS=$LIBS
12031 LIBS="-lodbc $LIBS"
12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12035 /* Override any GCC internal prototype to avoid an error.
12036 Use char because int might match the return type of a GCC
12037 builtin and then its argument prototype would still apply. */
12038 #ifdef __cplusplus
12039 extern "C"
12040 #endif
12041 char SQLConnect ();
12043 main ()
12045 return SQLConnect ();
12047 return 0;
12049 _ACEOF
12050 if ac_fn_c_try_link "$LINENO"; then :
12051 case "$LIBEXT" in
12052 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12053 dylib) ac_cv_lib_soname_odbc=`otool -L conftest$ac_exeext | grep "libodbc\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libodbc\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
12054 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12055 esac
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_soname_save_LIBS
12061 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12063 $as_echo "not found" >&6; }
12064 cat >>confdefs.h <<_ACEOF
12065 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12066 _ACEOF
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12070 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12072 cat >>confdefs.h <<_ACEOF
12073 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12074 _ACEOF
12079 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12080 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12081 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12082 "$ac_cv_header_soundcard_h" != "yes" -a \
12083 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
12084 then
12085 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12089 EXTRACFLAGS=""
12091 if test "x${GCC}" = "xyes"
12092 then
12093 EXTRACFLAGS="-Wall -pipe"
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12096 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12097 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 if test "$cross_compiling" = yes; then :
12101 ac_cv_c_gcc_strength_bug="yes"
12102 else
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12105 int L[4] = {0,1,2,3};
12107 main ()
12109 static int Array[3];
12110 unsigned int B = 3;
12111 int i;
12112 for(i=0; i<B; i++) Array[i] = i - 3;
12113 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12114 L[i] = 4;
12115 return (Array[1] != -2 || L[2] != 3)
12117 return 0;
12119 _ACEOF
12120 if ac_fn_c_try_run "$LINENO"; then :
12121 ac_cv_c_gcc_strength_bug="no"
12122 else
12123 ac_cv_c_gcc_strength_bug="yes"
12125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12126 conftest.$ac_objext conftest.beam conftest.$ac_ext
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12131 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12132 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12133 then
12134 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12138 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12139 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12141 else
12142 ac_wine_try_cflags_saved=$CFLAGS
12143 CFLAGS="$CFLAGS -fno-builtin"
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12146 int main(int argc, char **argv) { return 0; }
12147 _ACEOF
12148 if ac_fn_c_try_link "$LINENO"; then :
12149 ac_cv_cflags__fno_builtin=yes
12150 else
12151 ac_cv_cflags__fno_builtin=no
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 CFLAGS=$ac_wine_try_cflags_saved
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12158 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12159 if test $ac_cv_cflags__fno_builtin = yes; then :
12160 BUILTINFLAG="-fno-builtin"
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12164 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12165 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 ac_wine_try_cflags_saved=$CFLAGS
12169 CFLAGS="$CFLAGS -fno-strict-aliasing"
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172 int main(int argc, char **argv) { return 0; }
12173 _ACEOF
12174 if ac_fn_c_try_link "$LINENO"; then :
12175 ac_cv_cflags__fno_strict_aliasing=yes
12176 else
12177 ac_cv_cflags__fno_strict_aliasing=no
12179 rm -f core conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181 CFLAGS=$ac_wine_try_cflags_saved
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12184 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12185 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12186 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12189 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12190 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 ac_wine_try_cflags_saved=$CFLAGS
12194 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 int main(int argc, char **argv) { return 0; }
12198 _ACEOF
12199 if ac_fn_c_try_link "$LINENO"; then :
12200 ac_cv_cflags__Wdeclaration_after_statement=yes
12201 else
12202 ac_cv_cflags__Wdeclaration_after_statement=no
12204 rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206 CFLAGS=$ac_wine_try_cflags_saved
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12209 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12210 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12211 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12214 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12215 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 ac_wine_try_cflags_saved=$CFLAGS
12219 CFLAGS="$CFLAGS -Wstrict-prototypes"
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12222 int main(int argc, char **argv) { return 0; }
12223 _ACEOF
12224 if ac_fn_c_try_link "$LINENO"; then :
12225 ac_cv_cflags__Wstrict_prototypes=yes
12226 else
12227 ac_cv_cflags__Wstrict_prototypes=no
12229 rm -f core conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231 CFLAGS=$ac_wine_try_cflags_saved
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12234 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12235 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12236 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12239 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12240 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
12241 $as_echo_n "(cached) " >&6
12242 else
12243 ac_wine_try_cflags_saved=$CFLAGS
12244 CFLAGS="$CFLAGS -Wtype-limits"
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247 int main(int argc, char **argv) { return 0; }
12248 _ACEOF
12249 if ac_fn_c_try_link "$LINENO"; then :
12250 ac_cv_cflags__Wtype_limits=yes
12251 else
12252 ac_cv_cflags__Wtype_limits=no
12254 rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12256 CFLAGS=$ac_wine_try_cflags_saved
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12259 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12260 if test $ac_cv_cflags__Wtype_limits = yes; then :
12261 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12264 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12265 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 ac_wine_try_cflags_saved=$CFLAGS
12269 CFLAGS="$CFLAGS -Wwrite-strings"
12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h. */
12272 int main(int argc, char **argv) { return 0; }
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 ac_cv_cflags__Wwrite_strings=yes
12276 else
12277 ac_cv_cflags__Wwrite_strings=no
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12281 CFLAGS=$ac_wine_try_cflags_saved
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12284 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12285 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12286 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12289 saved_CFLAGS="$CFLAGS"
12290 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
12292 $as_echo_n "checking for broken string.h that generates warnings... " >&6; }
12293 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12298 #include <string.h>
12300 main ()
12304 return 0;
12306 _ACEOF
12307 if ac_fn_c_try_compile "$LINENO"; then :
12308 ac_cv_c_string_h_warnings=no
12309 else
12310 ac_cv_c_string_h_warnings=yes
12312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12315 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12316 CFLAGS="$saved_CFLAGS"
12317 if test "$ac_cv_c_string_h_warnings" = "no"
12318 then
12319 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12322 if test "x$enable_maintainer_mode" = "xyes"
12323 then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12325 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12326 if test "${ac_cv_cflags__Werror+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 ac_wine_try_cflags_saved=$CFLAGS
12330 CFLAGS="$CFLAGS -Werror"
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333 int main(int argc, char **argv) { return 0; }
12334 _ACEOF
12335 if ac_fn_c_try_link "$LINENO"; then :
12336 ac_cv_cflags__Werror=yes
12337 else
12338 ac_cv_cflags__Werror=no
12340 rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
12342 CFLAGS=$ac_wine_try_cflags_saved
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12345 $as_echo "$ac_cv_cflags__Werror" >&6; }
12346 if test $ac_cv_cflags__Werror = yes; then :
12347 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12351 saved_CFLAGS="$CFLAGS"
12352 CFLAGS="$CFLAGS -Werror"
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12354 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12355 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12360 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12362 main ()
12366 return 0;
12368 _ACEOF
12369 if ac_fn_c_try_compile "$LINENO"; then :
12370 ac_cv_have_ms_hook_prologue="yes"
12371 else
12372 ac_cv_have_ms_hook_prologue="no"
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12377 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12378 CFLAGS="$saved_CFLAGS"
12379 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12380 then
12382 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12384 else
12385 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12392 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12393 if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398 #include <string.h>
12400 main ()
12402 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12403 #error Fortify enabled
12404 #endif
12406 return 0;
12408 _ACEOF
12409 if ac_fn_c_try_compile "$LINENO"; then :
12410 ac_cv_c_fortify_enabled=no
12411 else
12412 ac_cv_c_fortify_enabled=yes
12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12417 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12418 if test "$ac_cv_c_fortify_enabled" = yes
12419 then
12420 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12425 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12426 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12431 extern int ac_test;
12433 main ()
12435 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12437 return 0;
12439 _ACEOF
12440 if ac_fn_c_try_link "$LINENO"; then :
12441 ac_cv_c_extern_prefix="yes"
12442 else
12443 ac_cv_c_extern_prefix="no"
12445 rm -f core conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12449 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12451 case $host_cpu in
12452 *i[3456789]86*)
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12454 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12455 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
12457 else
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h. */
12460 #ifndef _MSC_VER
12461 #define __stdcall __attribute__((__stdcall__))
12462 #endif
12463 int __stdcall ac_test(int i) { return i; }
12465 main ()
12467 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12469 return 0;
12471 _ACEOF
12472 if ac_fn_c_try_link "$LINENO"; then :
12473 ac_cv_c_stdcall_suffix="yes"
12474 else
12475 ac_cv_c_stdcall_suffix="no"
12477 rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12481 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12482 *) ac_cv_c_stdcall_suffix="no" ;;
12483 esac
12486 if test "$ac_cv_c_extern_prefix" = "yes"
12487 then
12488 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12490 asm_name_prefix="_"
12491 else
12492 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12494 asm_name_prefix=""
12498 if test "$ac_cv_c_stdcall_suffix" = "yes"
12499 then
12500 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12502 else
12503 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12509 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12510 if test "${ac_cv_asm_func_def+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12517 main ()
12519 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12521 return 0;
12523 _ACEOF
12524 if ac_fn_c_try_link "$LINENO"; then :
12525 ac_cv_asm_func_def=".def"
12526 else
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12531 main ()
12533 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12535 return 0;
12537 _ACEOF
12538 if ac_fn_c_try_link "$LINENO"; then :
12539 ac_cv_asm_func_def=".type @function"
12540 else
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12545 main ()
12547 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12549 return 0;
12551 _ACEOF
12552 if ac_fn_c_try_link "$LINENO"; then :
12553 ac_cv_asm_func_def=".type 2"
12554 else
12555 ac_cv_asm_func_def="unknown"
12557 rm -f core conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12563 rm -f core conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12567 $as_echo "$ac_cv_asm_func_def" >&6; }
12570 case "$ac_cv_asm_func_def" in
12571 ".def")
12572 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12574 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12575 ".type @function")
12576 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12578 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12579 ".type 2")
12580 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12582 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12584 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12586 asm_func_header="" ;;
12587 esac
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12590 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12591 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 asm(".text\n\t.long 0");
12598 main ()
12602 return 0;
12604 _ACEOF
12605 if ac_fn_c_try_compile "$LINENO"; then :
12606 ac_cv_c_asm_outside_funcs="yes"
12607 else
12608 ac_cv_c_asm_outside_funcs="no"
12610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12613 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12616 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12617 if test "${ac_cv_c_dot_previous+set}" = set; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12624 main ()
12626 asm(".text\nac_test:\t.long 0\n\t.previous");
12628 return 0;
12630 _ACEOF
12631 if ac_fn_c_try_link "$LINENO"; then :
12632 ac_cv_c_dot_previous="yes"
12633 else
12634 ac_cv_c_dot_previous="no"
12636 rm -f core conftest.err conftest.$ac_objext \
12637 conftest$ac_exeext conftest.$ac_ext
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12640 $as_echo "$ac_cv_c_dot_previous" >&6; }
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12643 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12644 if test "${ac_cv_c_cfi_support+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12649 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12651 main ()
12655 return 0;
12657 _ACEOF
12658 if ac_fn_c_try_compile "$LINENO"; then :
12659 ac_cv_c_cfi_support="yes"
12660 else
12661 ac_cv_c_cfi_support="no"
12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12666 $as_echo "$ac_cv_c_cfi_support" >&6; }
12668 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12669 asm_func_trailer=""
12670 if test "$ac_cv_c_dot_previous" = "yes"
12671 then
12672 asm_func_trailer="\\n\\t.previous"
12674 if test "$ac_cv_c_cfi_support" = "yes"
12675 then
12676 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12677 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12679 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12681 UNWINDFLAGS=-fasynchronous-unwind-tables
12683 else
12684 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12688 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12691 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12692 then
12693 cat >>confdefs.h <<_ACEOF
12694 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12695 _ACEOF
12697 else
12698 cat >>confdefs.h <<_ACEOF
12699 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12700 _ACEOF
12704 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12707 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12711 LDPATH=""
12713 case $build_os in
12714 cygwin*|mingw32*)
12715 TOOLSEXT=".exe"
12717 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12719 darwin*|macosx*)
12722 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12724 esac
12726 case $host_os in
12727 mingw32*)
12728 CRTLIBS="-lmsvcrt"
12730 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12733 esac
12735 MAIN_BINARY="wine"
12737 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12739 case $host_cpu in
12740 *i[3456789]86*)
12741 case $host_os in
12742 linux*)
12743 EXTRA_BINARIES="wine-preloader"
12745 esac
12747 esac
12750 ac_save_CFLAGS="$CFLAGS"
12751 CFLAGS="$CFLAGS $BUILTINFLAG"
12752 for ac_func in \
12753 _pclose \
12754 _popen \
12755 _snprintf \
12756 _spawnvp \
12757 _strdup \
12758 _stricmp \
12759 _strnicmp \
12760 _strtoi64 \
12761 _strtoui64 \
12762 _vsnprintf \
12763 asctime_r \
12764 chsize \
12765 dlopen \
12766 epoll_create \
12767 ffs \
12768 finite \
12769 fnmatch \
12770 fork \
12771 fpclass \
12772 fstatfs \
12773 fstatvfs \
12774 ftruncate \
12775 futimes \
12776 futimesat \
12777 getdirentries \
12778 getopt_long \
12779 getpagesize \
12780 getpwuid \
12781 gettid \
12782 gettimeofday \
12783 getuid \
12784 kqueue \
12785 lstat \
12786 memmove \
12787 mmap \
12788 pclose \
12789 pipe2 \
12790 poll \
12791 popen \
12792 port_create \
12793 prctl \
12794 pread \
12795 pwrite \
12796 readdir \
12797 readlink \
12798 sched_setaffinity \
12799 sched_yield \
12800 select \
12801 setproctitle \
12802 setrlimit \
12803 settimeofday \
12804 sigaltstack \
12805 sigprocmask \
12806 snprintf \
12807 spawnvp \
12808 statfs \
12809 statvfs \
12810 strcasecmp \
12811 strdup \
12812 strerror \
12813 strncasecmp \
12814 strtold \
12815 strtoll \
12816 strtoull \
12817 symlink \
12818 tcgetattr \
12819 thr_kill2 \
12820 timegm \
12821 usleep \
12822 vsnprintf \
12823 wait4 \
12824 waitpid \
12826 do :
12827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12830 cat >>confdefs.h <<_ACEOF
12831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12832 _ACEOF
12835 done
12837 CFLAGS="$ac_save_CFLAGS"
12839 if test "$ac_cv_func_dlopen" = no
12840 then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12842 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12843 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 ac_check_lib_save_LIBS=$LIBS
12847 LIBS="-ldl $LIBS"
12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h. */
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12854 #ifdef __cplusplus
12855 extern "C"
12856 #endif
12857 char dlopen ();
12859 main ()
12861 return dlopen ();
12863 return 0;
12865 _ACEOF
12866 if ac_fn_c_try_link "$LINENO"; then :
12867 ac_cv_lib_dl_dlopen=yes
12868 else
12869 ac_cv_lib_dl_dlopen=no
12871 rm -f core conftest.err conftest.$ac_objext \
12872 conftest$ac_exeext conftest.$ac_ext
12873 LIBS=$ac_check_lib_save_LIBS
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12876 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12877 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12878 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12879 LIBDL="-ldl"
12884 ac_wine_check_funcs_save_LIBS="$LIBS"
12885 LIBS="$LIBS $LIBDL"
12886 for ac_func in dladdr
12887 do :
12888 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12889 if test "x$ac_cv_func_dladdr" = x""yes; then :
12890 cat >>confdefs.h <<_ACEOF
12891 #define HAVE_DLADDR 1
12892 _ACEOF
12895 done
12897 LIBS="$ac_wine_check_funcs_save_LIBS"
12899 if test "$ac_cv_func_poll" = no
12900 then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12902 $as_echo_n "checking for poll in -lpoll... " >&6; }
12903 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 ac_check_lib_save_LIBS=$LIBS
12907 LIBS="-lpoll $LIBS"
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12911 /* Override any GCC internal prototype to avoid an error.
12912 Use char because int might match the return type of a GCC
12913 builtin and then its argument prototype would still apply. */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 char poll ();
12919 main ()
12921 return poll ();
12923 return 0;
12925 _ACEOF
12926 if ac_fn_c_try_link "$LINENO"; then :
12927 ac_cv_lib_poll_poll=yes
12928 else
12929 ac_cv_lib_poll_poll=no
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933 LIBS=$ac_check_lib_save_LIBS
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12936 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12937 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12938 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12939 LIBPOLL="-lpoll"
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12946 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12947 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 ac_func_search_save_LIBS=$LIBS
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h. */
12954 /* Override any GCC internal prototype to avoid an error.
12955 Use char because int might match the return type of a GCC
12956 builtin and then its argument prototype would still apply. */
12957 #ifdef __cplusplus
12958 extern "C"
12959 #endif
12960 char gethostbyname ();
12962 main ()
12964 return gethostbyname ();
12966 return 0;
12968 _ACEOF
12969 for ac_lib in '' nsl; do
12970 if test -z "$ac_lib"; then
12971 ac_res="none required"
12972 else
12973 ac_res=-l$ac_lib
12974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12976 if ac_fn_c_try_link "$LINENO"; then :
12977 ac_cv_search_gethostbyname=$ac_res
12979 rm -f core conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext
12981 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12982 break
12984 done
12985 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12987 else
12988 ac_cv_search_gethostbyname=no
12990 rm conftest.$ac_ext
12991 LIBS=$ac_func_search_save_LIBS
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12994 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12995 ac_res=$ac_cv_search_gethostbyname
12996 if test "$ac_res" != no; then :
12997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13003 $as_echo_n "checking for library containing connect... " >&6; }
13004 if test "${ac_cv_search_connect+set}" = set; then :
13005 $as_echo_n "(cached) " >&6
13006 else
13007 ac_func_search_save_LIBS=$LIBS
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13011 /* Override any GCC internal prototype to avoid an error.
13012 Use char because int might match the return type of a GCC
13013 builtin and then its argument prototype would still apply. */
13014 #ifdef __cplusplus
13015 extern "C"
13016 #endif
13017 char connect ();
13019 main ()
13021 return connect ();
13023 return 0;
13025 _ACEOF
13026 for ac_lib in '' socket; do
13027 if test -z "$ac_lib"; then
13028 ac_res="none required"
13029 else
13030 ac_res=-l$ac_lib
13031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13033 if ac_fn_c_try_link "$LINENO"; then :
13034 ac_cv_search_connect=$ac_res
13036 rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext
13038 if test "${ac_cv_search_connect+set}" = set; then :
13039 break
13041 done
13042 if test "${ac_cv_search_connect+set}" = set; then :
13044 else
13045 ac_cv_search_connect=no
13047 rm conftest.$ac_ext
13048 LIBS=$ac_func_search_save_LIBS
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13051 $as_echo "$ac_cv_search_connect" >&6; }
13052 ac_res=$ac_cv_search_connect
13053 if test "$ac_res" != no; then :
13054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13060 $as_echo_n "checking for library containing inet_aton... " >&6; }
13061 if test "${ac_cv_search_inet_aton+set}" = set; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 ac_func_search_save_LIBS=$LIBS
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13068 /* Override any GCC internal prototype to avoid an error.
13069 Use char because int might match the return type of a GCC
13070 builtin and then its argument prototype would still apply. */
13071 #ifdef __cplusplus
13072 extern "C"
13073 #endif
13074 char inet_aton ();
13076 main ()
13078 return inet_aton ();
13080 return 0;
13082 _ACEOF
13083 for ac_lib in '' resolv; do
13084 if test -z "$ac_lib"; then
13085 ac_res="none required"
13086 else
13087 ac_res=-l$ac_lib
13088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13090 if ac_fn_c_try_link "$LINENO"; then :
13091 ac_cv_search_inet_aton=$ac_res
13093 rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext
13095 if test "${ac_cv_search_inet_aton+set}" = set; then :
13096 break
13098 done
13099 if test "${ac_cv_search_inet_aton+set}" = set; then :
13101 else
13102 ac_cv_search_inet_aton=no
13104 rm conftest.$ac_ext
13105 LIBS=$ac_func_search_save_LIBS
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13108 $as_echo "$ac_cv_search_inet_aton" >&6; }
13109 ac_res=$ac_cv_search_inet_aton
13110 if test "$ac_res" != no; then :
13111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13116 for ac_func in \
13117 getaddrinfo \
13118 getnameinfo \
13119 getnetbyname \
13120 getprotobyname \
13121 getprotobynumber \
13122 getservbyport \
13123 inet_network \
13124 inet_ntop \
13125 inet_pton \
13126 sendmsg \
13127 socketpair \
13129 do :
13130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13133 cat >>confdefs.h <<_ACEOF
13134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13135 _ACEOF
13138 done
13141 LDAPLIBS=""
13143 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13144 then
13145 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13147 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13149 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13150 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 ac_check_lib_save_LIBS=$LIBS
13154 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 char ldap_initialize ();
13166 main ()
13168 return ldap_initialize ();
13170 return 0;
13172 _ACEOF
13173 if ac_fn_c_try_link "$LINENO"; then :
13174 ac_cv_lib_ldap_r_ldap_initialize=yes
13175 else
13176 ac_cv_lib_ldap_r_ldap_initialize=no
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13183 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13184 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13186 $as_echo_n "checking for ber_init in -llber... " >&6; }
13187 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190 ac_check_lib_save_LIBS=$LIBS
13191 LIBS="-llber $LIBPTHREAD $LIBS"
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13198 #ifdef __cplusplus
13199 extern "C"
13200 #endif
13201 char ber_init ();
13203 main ()
13205 return ber_init ();
13207 return 0;
13209 _ACEOF
13210 if ac_fn_c_try_link "$LINENO"; then :
13211 ac_cv_lib_lber_ber_init=yes
13212 else
13213 ac_cv_lib_lber_ber_init=no
13215 rm -f core conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217 LIBS=$ac_check_lib_save_LIBS
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13220 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13221 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
13223 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13225 LDAPLIBS="-lldap_r -llber"
13232 ac_wine_check_funcs_save_LIBS="$LIBS"
13233 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13234 for ac_func in \
13235 ldap_count_references \
13236 ldap_first_reference \
13237 ldap_next_reference \
13238 ldap_parse_reference \
13239 ldap_parse_sort_control \
13240 ldap_parse_sortresponse_control \
13241 ldap_parse_vlv_control \
13242 ldap_parse_vlvresponse_control
13243 do :
13244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13245 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13246 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13247 cat >>confdefs.h <<_ACEOF
13248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13249 _ACEOF
13252 done
13254 LIBS="$ac_wine_check_funcs_save_LIBS"
13256 if test "x$LDAPLIBS" = "x"; then :
13257 case "x$with_ldap" in
13258 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13259 xno) ;;
13260 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13261 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13262 esac
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13266 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13267 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13272 #include <sys/stat.h>
13274 main ()
13276 mkdir("foo");
13278 return 0;
13280 _ACEOF
13281 if ac_fn_c_try_compile "$LINENO"; then :
13282 wine_cv_one_arg_mkdir=yes
13283 else
13284 wine_cv_one_arg_mkdir=no
13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13289 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13290 if test "$wine_cv_one_arg_mkdir" = "yes"
13291 then
13293 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13299 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13300 if test "${ac_cv_c_const+set}" = set; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13307 main ()
13309 /* FIXME: Include the comments suggested by Paul. */
13310 #ifndef __cplusplus
13311 /* Ultrix mips cc rejects this. */
13312 typedef int charset[2];
13313 const charset cs;
13314 /* SunOS 4.1.1 cc rejects this. */
13315 char const *const *pcpcc;
13316 char **ppc;
13317 /* NEC SVR4.0.2 mips cc rejects this. */
13318 struct point {int x, y;};
13319 static struct point const zero = {0,0};
13320 /* AIX XL C 1.02.0.0 rejects this.
13321 It does not let you subtract one const X* pointer from another in
13322 an arm of an if-expression whose if-part is not a constant
13323 expression */
13324 const char *g = "string";
13325 pcpcc = &g + (g ? g-g : 0);
13326 /* HPUX 7.0 cc rejects these. */
13327 ++pcpcc;
13328 ppc = (char**) pcpcc;
13329 pcpcc = (char const *const *) ppc;
13330 { /* SCO 3.2v4 cc rejects this. */
13331 char *t;
13332 char const *s = 0 ? (char *) 0 : (char const *) 0;
13334 *t++ = 0;
13335 if (s) return 0;
13337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13338 int x[] = {25, 17};
13339 const int *foo = &x[0];
13340 ++foo;
13342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13343 typedef const int *iptr;
13344 iptr p = 0;
13345 ++p;
13347 { /* AIX XL C 1.02.0.0 rejects this saying
13348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13349 struct s { int j; const int *ap[3]; };
13350 struct s *b; b->j = 5;
13352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13353 const int foo = 10;
13354 if (!foo) return 0;
13356 return !cs[0] && !zero.x;
13357 #endif
13360 return 0;
13362 _ACEOF
13363 if ac_fn_c_try_compile "$LINENO"; then :
13364 ac_cv_c_const=yes
13365 else
13366 ac_cv_c_const=no
13368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13371 $as_echo "$ac_cv_c_const" >&6; }
13372 if test $ac_cv_c_const = no; then
13374 $as_echo "#define const /**/" >>confdefs.h
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13379 $as_echo_n "checking for inline... " >&6; }
13380 if test "${ac_cv_c_inline+set}" = set; then :
13381 $as_echo_n "(cached) " >&6
13382 else
13383 ac_cv_c_inline=no
13384 for ac_kw in inline __inline__ __inline; do
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387 #ifndef __cplusplus
13388 typedef int foo_t;
13389 static $ac_kw foo_t static_foo () {return 0; }
13390 $ac_kw foo_t foo () {return 0; }
13391 #endif
13393 _ACEOF
13394 if ac_fn_c_try_compile "$LINENO"; then :
13395 ac_cv_c_inline=$ac_kw
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 test "$ac_cv_c_inline" != no && break
13399 done
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13403 $as_echo "$ac_cv_c_inline" >&6; }
13405 case $ac_cv_c_inline in
13406 inline | yes) ;;
13408 case $ac_cv_c_inline in
13409 no) ac_val=;;
13410 *) ac_val=$ac_cv_c_inline;;
13411 esac
13412 cat >>confdefs.h <<_ACEOF
13413 #ifndef __cplusplus
13414 #define inline $ac_val
13415 #endif
13416 _ACEOF
13418 esac
13420 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13421 if test "x$ac_cv_type_mode_t" = x""yes; then :
13423 cat >>confdefs.h <<_ACEOF
13424 #define HAVE_MODE_T 1
13425 _ACEOF
13429 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13430 if test "x$ac_cv_type_off_t" = x""yes; then :
13432 cat >>confdefs.h <<_ACEOF
13433 #define HAVE_OFF_T 1
13434 _ACEOF
13438 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13439 if test "x$ac_cv_type_pid_t" = x""yes; then :
13441 cat >>confdefs.h <<_ACEOF
13442 #define HAVE_PID_T 1
13443 _ACEOF
13447 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13448 if test "x$ac_cv_type_size_t" = x""yes; then :
13450 cat >>confdefs.h <<_ACEOF
13451 #define HAVE_SIZE_T 1
13452 _ACEOF
13456 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13457 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13459 cat >>confdefs.h <<_ACEOF
13460 #define HAVE_SSIZE_T 1
13461 _ACEOF
13465 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13466 if test "x$ac_cv_type_long_long" = x""yes; then :
13468 cat >>confdefs.h <<_ACEOF
13469 #define HAVE_LONG_LONG 1
13470 _ACEOF
13474 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13475 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13477 cat >>confdefs.h <<_ACEOF
13478 #define HAVE_FSBLKCNT_T 1
13479 _ACEOF
13483 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13484 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13486 cat >>confdefs.h <<_ACEOF
13487 #define HAVE_FSFILCNT_T 1
13488 _ACEOF
13493 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13494 #include <signal.h>
13496 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13498 cat >>confdefs.h <<_ACEOF
13499 #define HAVE_SIGSET_T 1
13500 _ACEOF
13505 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13507 if test "x$ac_cv_type_request_sense" = x""yes; then :
13509 cat >>confdefs.h <<_ACEOF
13510 #define HAVE_REQUEST_SENSE 1
13511 _ACEOF
13517 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13518 #ifdef HAVE_SYS_SOCKET_H
13519 #include <sys/socket.h>
13520 #endif
13521 #ifdef HAVE_SYS_SOCKETVAR_H
13522 #include <sys/socketvar.h>
13523 #endif
13524 #ifdef HAVE_NET_ROUTE_H
13525 #include <net/route.h>
13526 #endif
13527 #ifdef HAVE_NETINET_IN_H
13528 #include <netinet/in.h>
13529 #endif
13530 #ifdef HAVE_NETINET_IN_SYSTM_H
13531 #include <netinet/in_systm.h>
13532 #endif
13533 #ifdef HAVE_NETINET_IP_H
13534 #include <netinet/ip.h>
13535 #endif
13536 #ifdef HAVE_NETINET_IN_PCB_H
13537 #include <netinet/in_pcb.h>
13538 #endif
13540 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_STRUCT_XINPGEN 1
13544 _ACEOF
13550 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13551 #include <linux/input.h>
13552 #endif
13554 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13556 cat >>confdefs.h <<_ACEOF
13557 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13558 _ACEOF
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13565 $as_echo_n "checking for sigaddset... " >&6; }
13566 if test "${wine_cv_have_sigaddset+set}" = set; then :
13567 $as_echo_n "(cached) " >&6
13568 else
13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13571 #include <signal.h>
13573 main ()
13575 sigset_t set; sigaddset(&set,SIGTERM);
13577 return 0;
13579 _ACEOF
13580 if ac_fn_c_try_link "$LINENO"; then :
13581 wine_cv_have_sigaddset=yes
13582 else
13583 wine_cv_have_sigaddset=no
13585 rm -f core conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13589 $as_echo "$wine_cv_have_sigaddset" >&6; }
13590 if test "$wine_cv_have_sigaddset" = "yes"
13591 then
13593 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13599 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13600 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13605 #include <netdb.h>
13607 main ()
13610 char *name=0;
13611 struct hostent he;
13612 struct hostent *result;
13613 char *buf=0;
13614 int bufsize=0;
13615 int res,errnr;
13616 char *addr=0;
13617 int addrlen=0;
13618 int addrtype=0;
13619 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13620 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13623 return 0;
13625 _ACEOF
13626 if ac_fn_c_try_link "$LINENO"; then :
13627 wine_cv_linux_gethostbyname_r_6=yes
13628 else
13629 wine_cv_linux_gethostbyname_r_6=no
13632 rm -f core conftest.err conftest.$ac_objext \
13633 conftest$ac_exeext conftest.$ac_ext
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13637 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13638 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13639 then
13641 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13645 if test "$ac_cv_header_linux_joystick_h" = "yes"
13646 then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13648 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13649 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13655 #include <sys/ioctl.h>
13656 #include <sys/types.h>
13657 #include <linux/joystick.h>
13659 struct js_event blub;
13660 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13661 #error "no 2.2 header"
13662 #endif
13665 main ()
13667 /*empty*/
13669 return 0;
13671 _ACEOF
13672 if ac_fn_c_try_compile "$LINENO"; then :
13673 wine_cv_linux_joystick_22_api=yes
13674 else
13675 wine_cv_linux_joystick_22_api=no
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13681 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13682 if test "$wine_cv_linux_joystick_22_api" = "yes"
13683 then
13685 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13691 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13692 #ifdef HAVE_SYS_PARAM_H
13693 # include <sys/param.h>
13694 #endif
13695 #ifdef HAVE_SYS_MOUNT_H
13696 # include <sys/mount.h>
13697 #endif
13698 #ifdef HAVE_SYS_VFS_H
13699 # include <sys/vfs.h>
13700 #endif
13701 #ifdef HAVE_SYS_STATFS_H
13702 # include <sys/statfs.h>
13703 #endif
13705 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13707 cat >>confdefs.h <<_ACEOF
13708 #define HAVE_STRUCT_STATFS_F_BFREE 1
13709 _ACEOF
13713 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13714 #ifdef HAVE_SYS_PARAM_H
13715 # include <sys/param.h>
13716 #endif
13717 #ifdef HAVE_SYS_MOUNT_H
13718 # include <sys/mount.h>
13719 #endif
13720 #ifdef HAVE_SYS_VFS_H
13721 # include <sys/vfs.h>
13722 #endif
13723 #ifdef HAVE_SYS_STATFS_H
13724 # include <sys/statfs.h>
13725 #endif
13727 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13729 cat >>confdefs.h <<_ACEOF
13730 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13731 _ACEOF
13735 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13736 #ifdef HAVE_SYS_PARAM_H
13737 # include <sys/param.h>
13738 #endif
13739 #ifdef HAVE_SYS_MOUNT_H
13740 # include <sys/mount.h>
13741 #endif
13742 #ifdef HAVE_SYS_VFS_H
13743 # include <sys/vfs.h>
13744 #endif
13745 #ifdef HAVE_SYS_STATFS_H
13746 # include <sys/statfs.h>
13747 #endif
13749 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13751 cat >>confdefs.h <<_ACEOF
13752 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13753 _ACEOF
13757 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13758 #ifdef HAVE_SYS_PARAM_H
13759 # include <sys/param.h>
13760 #endif
13761 #ifdef HAVE_SYS_MOUNT_H
13762 # include <sys/mount.h>
13763 #endif
13764 #ifdef HAVE_SYS_VFS_H
13765 # include <sys/vfs.h>
13766 #endif
13767 #ifdef HAVE_SYS_STATFS_H
13768 # include <sys/statfs.h>
13769 #endif
13771 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_STRUCT_STATFS_F_FFREE 1
13775 _ACEOF
13779 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13780 #ifdef HAVE_SYS_PARAM_H
13781 # include <sys/param.h>
13782 #endif
13783 #ifdef HAVE_SYS_MOUNT_H
13784 # include <sys/mount.h>
13785 #endif
13786 #ifdef HAVE_SYS_VFS_H
13787 # include <sys/vfs.h>
13788 #endif
13789 #ifdef HAVE_SYS_STATFS_H
13790 # include <sys/statfs.h>
13791 #endif
13793 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13795 cat >>confdefs.h <<_ACEOF
13796 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13797 _ACEOF
13801 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13802 #ifdef HAVE_SYS_PARAM_H
13803 # include <sys/param.h>
13804 #endif
13805 #ifdef HAVE_SYS_MOUNT_H
13806 # include <sys/mount.h>
13807 #endif
13808 #ifdef HAVE_SYS_VFS_H
13809 # include <sys/vfs.h>
13810 #endif
13811 #ifdef HAVE_SYS_STATFS_H
13812 # include <sys/statfs.h>
13813 #endif
13815 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13817 cat >>confdefs.h <<_ACEOF
13818 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13819 _ACEOF
13825 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13826 #include <sys/statvfs.h>
13827 #endif
13829 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13831 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13833 _ACEOF
13839 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13840 #ifdef HAVE_SYS_SOCKET_H
13841 # include <sys/socket.h>
13842 #endif
13843 #ifdef HAVE_SYS_UN_H
13844 # include <sys/un.h>
13845 #endif
13847 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13849 cat >>confdefs.h <<_ACEOF
13850 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13851 _ACEOF
13855 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13856 #ifdef HAVE_SYS_SOCKET_H
13857 # include <sys/socket.h>
13858 #endif
13859 #ifdef HAVE_SYS_UN_H
13860 # include <sys/un.h>
13861 #endif
13863 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13865 cat >>confdefs.h <<_ACEOF
13866 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13867 _ACEOF
13871 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13872 #ifdef HAVE_SYS_SOCKET_H
13873 # include <sys/socket.h>
13874 #endif
13875 #ifdef HAVE_SYS_UN_H
13876 # include <sys/un.h>
13877 #endif
13879 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13881 cat >>confdefs.h <<_ACEOF
13882 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13883 _ACEOF
13889 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13890 #ifdef HAVE_SCSI_SG_H
13891 #include <scsi/sg.h>
13892 #endif
13894 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13896 cat >>confdefs.h <<_ACEOF
13897 #define HAVE_SCSIREQ_T_CMD 1
13898 _ACEOF
13902 ac_fn_c_check_member "$LINENO" "sg_io_hdr_t" "interface_id" "ac_cv_member_sg_io_hdr_t_interface_id" "#include <sys/types.h>
13903 #ifdef HAVE_SCSI_SG_H
13904 #include <scsi/sg.h>
13905 #endif
13907 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13909 cat >>confdefs.h <<_ACEOF
13910 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13911 _ACEOF
13917 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13919 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13921 cat >>confdefs.h <<_ACEOF
13922 #define HAVE_SIGINFO_T_SI_FD 1
13923 _ACEOF
13929 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13930 #ifdef HAVE_SYS_MTIO_H
13931 #include <sys/mtio.h>
13932 #endif
13934 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13936 cat >>confdefs.h <<_ACEOF
13937 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13938 _ACEOF
13942 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13943 #ifdef HAVE_SYS_MTIO_H
13944 #include <sys/mtio.h>
13945 #endif
13947 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13949 cat >>confdefs.h <<_ACEOF
13950 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13951 _ACEOF
13955 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13956 #ifdef HAVE_SYS_MTIO_H
13957 #include <sys/mtio.h>
13958 #endif
13960 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13962 cat >>confdefs.h <<_ACEOF
13963 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13964 _ACEOF
13970 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13971 #include <getopt.h>
13972 #endif
13974 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13976 cat >>confdefs.h <<_ACEOF
13977 #define HAVE_STRUCT_OPTION_NAME 1
13978 _ACEOF
13984 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13985 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13987 cat >>confdefs.h <<_ACEOF
13988 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13989 _ACEOF
13993 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13994 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13996 cat >>confdefs.h <<_ACEOF
13997 #define HAVE_STRUCT_STAT_ST_MTIM 1
13998 _ACEOF
14002 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14003 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
14005 cat >>confdefs.h <<_ACEOF
14006 #define HAVE_STRUCT_STAT_ST_CTIM 1
14007 _ACEOF
14011 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14012 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
14014 cat >>confdefs.h <<_ACEOF
14015 #define HAVE_STRUCT_STAT_ST_ATIM 1
14016 _ACEOF
14022 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef HAVE_SYS_TYPES_H
14023 #include <sys/types.h>
14024 #endif
14025 #ifdef HAVE_NETINET_IN_H
14026 #include <netinet/in.h>
14027 #endif
14029 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
14031 cat >>confdefs.h <<_ACEOF
14032 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14033 _ACEOF
14039 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14040 #include <sys/types.h>
14041 #endif
14042 #ifdef HAVE_NETINET_IN_H
14043 # include <netinet/in.h>
14044 #endif
14045 #ifdef HAVE_ARPA_NAMESER_H
14046 # include <arpa/nameser.h>
14047 #endif
14049 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
14051 cat >>confdefs.h <<_ACEOF
14052 #define HAVE_NS_MSG__MSG_PTR 1
14053 _ACEOF
14059 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14060 #include <sys/types.h>
14061 #endif
14062 #ifdef HAVE_ALIAS_H
14063 #include <alias.h>
14064 #endif
14065 #ifdef HAVE_SYS_SOCKET_H
14066 #include <sys/socket.h>
14067 #endif
14068 #ifdef HAVE_SYS_SOCKETVAR_H
14069 #include <sys/socketvar.h>
14070 #endif
14071 #ifdef HAVE_SYS_TIMEOUT_H
14072 #include <sys/timeout.h>
14073 #endif
14074 #ifdef HAVE_NETINET_IN_H
14075 #include <netinet/in.h>
14076 #endif
14077 #ifdef HAVE_NETINET_IN_SYSTM_H
14078 #include <netinet/in_systm.h>
14079 #endif
14080 #ifdef HAVE_NETINET_IP_H
14081 #include <netinet/ip.h>
14082 #endif
14083 #ifdef HAVE_NETINET_IP_VAR_H
14084 #include <netinet/ip_var.h>
14085 #endif
14086 #ifdef HAVE_NETINET_IP_ICMP_H
14087 #include <netinet/ip_icmp.h>
14088 #endif
14089 #ifdef HAVE_NETINET_ICMP_VAR
14090 #include <netinet/icmp_var.h>
14091 #endif
14093 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
14095 cat >>confdefs.h <<_ACEOF
14096 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14097 _ACEOF
14103 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14104 #include <sys/types.h>
14105 #endif
14106 #ifdef HAVE_NET_IF_H
14107 # include <net/if.h>
14108 #endif
14110 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14112 cat >>confdefs.h <<_ACEOF
14113 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14114 _ACEOF
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14121 $as_echo_n "checking for timezone variable... " >&6; }
14122 if test "${ac_cv_have_timezone+set}" = set; then :
14123 $as_echo_n "(cached) " >&6
14124 else
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 #include <time.h>
14129 main ()
14131 timezone = 1
14133 return 0;
14135 _ACEOF
14136 if ac_fn_c_try_link "$LINENO"; then :
14137 ac_cv_have_timezone="yes"
14138 else
14139 ac_cv_have_timezone="no"
14141 rm -f core conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14145 $as_echo "$ac_cv_have_timezone" >&6; }
14146 if test "$ac_cv_have_timezone" = "yes"
14147 then
14149 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14153 $as_echo_n "checking for daylight variable... " >&6; }
14154 if test "${ac_cv_have_daylight+set}" = set; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14159 #include <time.h>
14161 main ()
14163 daylight = 1
14165 return 0;
14167 _ACEOF
14168 if ac_fn_c_try_link "$LINENO"; then :
14169 ac_cv_have_daylight="yes"
14170 else
14171 ac_cv_have_daylight="no"
14173 rm -f core conftest.err conftest.$ac_objext \
14174 conftest$ac_exeext conftest.$ac_ext
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14177 $as_echo "$ac_cv_have_daylight" >&6; }
14178 if test "$ac_cv_have_daylight" = "yes"
14179 then
14181 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14186 $as_echo_n "checking for isinf... " >&6; }
14187 if test "${ac_cv_have_isinf+set}" = set; then :
14188 $as_echo_n "(cached) " >&6
14189 else
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192 #include <math.h>
14194 main ()
14196 float f = 0.0; int i=isinf(f)
14198 return 0;
14200 _ACEOF
14201 if ac_fn_c_try_link "$LINENO"; then :
14202 ac_cv_have_isinf="yes"
14203 else
14204 ac_cv_have_isinf="no"
14206 rm -f core conftest.err conftest.$ac_objext \
14207 conftest$ac_exeext conftest.$ac_ext
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14210 $as_echo "$ac_cv_have_isinf" >&6; }
14211 if test "$ac_cv_have_isinf" = "yes"
14212 then
14214 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14219 $as_echo_n "checking for isnan... " >&6; }
14220 if test "${ac_cv_have_isnan+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14225 #include <math.h>
14227 main ()
14229 float f = 0.0; int i=isnan(f)
14231 return 0;
14233 _ACEOF
14234 if ac_fn_c_try_link "$LINENO"; then :
14235 ac_cv_have_isnan="yes"
14236 else
14237 ac_cv_have_isnan="no"
14239 rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14243 $as_echo "$ac_cv_have_isnan" >&6; }
14244 if test "$ac_cv_have_isnan" = "yes"
14245 then
14247 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14252 case $host_cpu in
14253 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14254 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14255 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
14256 $as_echo_n "(cached) " >&6
14257 else
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14260 #ifndef __i386__
14262 #endif
14263 _ACEOF
14264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14265 $EGREP "yes" >/dev/null 2>&1; then :
14266 ac_cv_cpp_def___i386__=yes
14267 else
14268 ac_cv_cpp_def___i386__=no
14270 rm -f conftest*
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14274 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14275 if test $ac_cv_cpp_def___i386__ = yes; then :
14276 CFLAGS="$CFLAGS -D__i386__"
14277 LINTFLAGS="$LINTFLAGS -D__i386__"
14278 fi ;;
14279 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14280 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14281 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
14282 $as_echo_n "(cached) " >&6
14283 else
14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14286 #ifndef __x86_64__
14288 #endif
14289 _ACEOF
14290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14291 $EGREP "yes" >/dev/null 2>&1; then :
14292 ac_cv_cpp_def___x86_64__=yes
14293 else
14294 ac_cv_cpp_def___x86_64__=no
14296 rm -f conftest*
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14300 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14301 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14302 CFLAGS="$CFLAGS -D__x86_64__"
14303 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14304 fi ;;
14305 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
14306 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
14307 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
14308 $as_echo_n "(cached) " >&6
14309 else
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14312 #ifndef __ALPHA__
14314 #endif
14315 _ACEOF
14316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14317 $EGREP "yes" >/dev/null 2>&1; then :
14318 ac_cv_cpp_def___ALPHA__=yes
14319 else
14320 ac_cv_cpp_def___ALPHA__=no
14322 rm -f conftest*
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
14326 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
14327 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
14328 CFLAGS="$CFLAGS -D__ALPHA__"
14329 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
14330 fi ;;
14331 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14332 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14333 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
14334 $as_echo_n "(cached) " >&6
14335 else
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14338 #ifndef __sparc__
14340 #endif
14341 _ACEOF
14342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14343 $EGREP "yes" >/dev/null 2>&1; then :
14344 ac_cv_cpp_def___sparc__=yes
14345 else
14346 ac_cv_cpp_def___sparc__=no
14348 rm -f conftest*
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14352 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14353 if test $ac_cv_cpp_def___sparc__ = yes; then :
14354 CFLAGS="$CFLAGS -D__sparc__"
14355 LINTFLAGS="$LINTFLAGS -D__sparc__"
14356 fi ;;
14357 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14358 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14359 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
14360 $as_echo_n "(cached) " >&6
14361 else
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14364 #ifndef __powerpc__
14366 #endif
14367 _ACEOF
14368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14369 $EGREP "yes" >/dev/null 2>&1; then :
14370 ac_cv_cpp_def___powerpc__=yes
14371 else
14372 ac_cv_cpp_def___powerpc__=no
14374 rm -f conftest*
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14378 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14379 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14380 CFLAGS="$CFLAGS -D__powerpc__"
14381 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14382 fi ;;
14383 esac
14385 case $host_vendor in
14386 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14387 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14388 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14389 $as_echo_n "(cached) " >&6
14390 else
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14393 #ifndef __sun__
14395 #endif
14396 _ACEOF
14397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14398 $EGREP "yes" >/dev/null 2>&1; then :
14399 ac_cv_cpp_def___sun__=yes
14400 else
14401 ac_cv_cpp_def___sun__=no
14403 rm -f conftest*
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14407 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14408 if test $ac_cv_cpp_def___sun__ = yes; then :
14409 CFLAGS="$CFLAGS -D__sun__"
14410 LINTFLAGS="$LINTFLAGS -D__sun__"
14411 fi ;;
14412 esac
14418 ac_config_commands="$ac_config_commands include/stamp-h"
14421 ALL_MAKEFILE_DEPENDS="
14422 # Rules automatically generated by configure
14424 .INIT: Makefile
14425 .MAKEFILEDEPS:
14426 all: Makefile
14427 Makefile: Makefile.in Make.vars.in Make.rules config.status
14428 @./config.status Make.tmp Makefile"
14430 ALL_WINETEST_DEPENDS="# Test binaries"
14432 ALL_TEST_BINARIES=""
14435 wine_fn_append_file ()
14437 as_fn_append $1 " \\$as_nl $2"
14440 wine_fn_append_rule ()
14442 as_fn_append $1 "$as_nl$2"
14445 wine_fn_all_dir_rules ()
14447 ac_dir=$1
14448 ac_alldeps=$2
14449 ac_makedep="\$(MAKEDEP)"
14450 ac_input=Make.vars.in:$ac_dir/Makefile.in
14451 if test $ac_dir != tools
14452 then
14453 ac_alldeps="$2 $ac_makedep"
14455 case $2 in
14456 *.in) ac_input=$ac_input:$2 ;;
14457 *) ac_makedep="$2 $ac_makedep" ;;
14458 esac
14460 wine_fn_append_file ALL_DIRS $ac_dir
14461 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14462 "__clean__: $ac_dir/__clean__
14463 .PHONY: $ac_dir/__clean__
14464 $ac_dir/__clean__: $ac_dir/Makefile
14465 @cd $ac_dir && \$(MAKE) clean
14466 \$(RM) $ac_dir/Makefile
14467 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14468 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14469 depend: $ac_dir/__depend__
14470 .PHONY: $ac_dir/__depend__
14471 $ac_dir/__depend__: $ac_makedep dummy
14472 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14475 wine_fn_config_makefile ()
14477 ac_dir=$1
14478 ac_enable=$2
14479 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14480 return 0
14483 wine_fn_all_dir_rules $ac_dir Make.rules
14484 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14485 "all: $ac_dir
14486 .PHONY: $ac_dir
14487 $ac_dir: $ac_dir/Makefile dummy
14488 @cd $ac_dir && \$(MAKE)
14489 install:: $ac_dir
14490 @cd $ac_dir && \$(MAKE) install
14491 install-lib:: $ac_dir
14492 @cd $ac_dir && \$(MAKE) install-lib
14493 install-dev:: $ac_dir
14494 @cd $ac_dir && \$(MAKE) install-dev
14495 uninstall:: $ac_dir/Makefile
14496 @cd $ac_dir && \$(MAKE) uninstall"
14499 wine_fn_config_lib ()
14501 ac_name=$1
14502 ac_dir=dlls/$ac_name
14503 wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14504 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14505 "all __builddeps__: $ac_dir
14506 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14507 @cd $ac_dir && \$(MAKE)
14508 install install-dev:: $ac_dir
14509 @cd $ac_dir && \$(MAKE) install
14510 uninstall:: $ac_dir/Makefile
14511 @cd $ac_dir && \$(MAKE) uninstall"
14514 wine_fn_config_dll ()
14516 ac_name=$1
14517 ac_dir=dlls/$ac_name
14518 ac_enable=$2
14519 ac_implib=$3
14520 ac_implibsrc=$4
14521 ac_file=$ac_dir/lib$ac_implib
14522 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14523 ac_implibflags=""
14525 case $ac_name in
14526 *16) ac_implibflags=" -m16" ;;
14527 esac
14529 wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14531 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14532 test "$ac_enable" != enable_win16 || return 0
14533 else
14534 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14535 "all: $ac_dir
14536 .PHONY: $ac_dir
14537 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14538 @cd $ac_dir && \$(MAKE)
14539 install:: $ac_dir/Makefile __builddeps__
14540 @cd $ac_dir && \$(MAKE) install
14541 install-lib:: $ac_dir/Makefile __builddeps__
14542 @cd $ac_dir && \$(MAKE) install-lib
14543 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14544 @cd $ac_dir && \$(MAKE) \$@"
14547 if test -n "$ac_implibsrc"
14548 then
14549 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14550 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14551 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14552 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14553 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14554 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14555 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14556 install-dev:: $ac_dir/Makefile __builddeps__
14557 @cd $ac_dir && \$(MAKE) install-dev"
14558 if test "x$CROSSTEST_DISABLE" = x
14559 then
14560 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14561 "__builddeps__: $ac_file.cross.a
14562 $ac_file.cross.a: $ac_dir/Makefile dummy
14563 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14566 elif test -n "$ac_implib"
14567 then
14568 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14569 "__builddeps__: $ac_file.$IMPLIBEXT
14570 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14571 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14572 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14573 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14574 install-dev:: $ac_dir/Makefile __builddeps__
14575 @cd $ac_dir && \$(MAKE) install-dev"
14576 if test "x$CROSSTEST_DISABLE" = x
14577 then
14578 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14579 "__builddeps__: $ac_file.cross.a
14580 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14581 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14584 if test "$ac_name" != "$ac_implib"
14585 then
14586 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14587 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14588 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14589 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14590 clean::
14591 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14592 if test "x$CROSSTEST_DISABLE" = x
14593 then
14594 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14595 "__builddeps__: dlls/lib$ac_implib.cross.a
14596 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14597 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14603 wine_fn_config_program ()
14605 ac_name=$1
14606 ac_dir=programs/$ac_name
14607 ac_enable=$2
14608 ac_install=$3
14609 wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14611 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14613 else
14614 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14615 "all: $ac_dir
14616 .PHONY: $ac_dir
14617 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14618 @cd $ac_dir && \$(MAKE)"
14620 test -n "$ac_install" || return
14621 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14622 "install install-lib:: $ac_dir/Makefile __builddeps__
14623 @cd $ac_dir && \$(MAKE) install
14624 uninstall:: $ac_dir/Makefile
14625 @cd $ac_dir && \$(MAKE) uninstall"
14626 if test "$ac_install" = installbin -a -n "$DLLEXT" -a "x$enable_tools" != xno
14627 then
14628 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14629 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14630 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14631 uninstall::
14632 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14637 wine_fn_config_test ()
14639 ac_dir=$1
14640 ac_name=$2
14641 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14642 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14643 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14644 cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14645 $ac_name.rc:
14646 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14647 $ac_name.res: $ac_name.rc $ac_name.exe"
14648 wine_fn_all_dir_rules $ac_dir Maketest.rules
14650 if test "x$enable_tests" = x""no; then :
14652 else
14653 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14654 "all programs/winetest: $ac_dir
14655 .PHONY: $ac_dir
14656 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14657 @cd $ac_dir && \$(MAKE)
14658 test: $ac_dir/__test__
14659 .PHONY: $ac_dir/__test__
14660 $ac_dir/__test__: dummy
14661 @cd $ac_dir && \$(MAKE) test
14662 testclean::
14663 \$(RM) $ac_dir/*.ok"
14665 if test "x$CROSSTEST_DISABLE" = x
14666 then
14667 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14668 "crosstest: $ac_dir/__crosstest__
14669 .PHONY: $ac_dir/__crosstest__
14670 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14671 @cd $ac_dir && \$(MAKE) crosstest"
14676 wine_fn_config_tool ()
14678 ac_dir=$1
14679 wine_fn_all_dir_rules $ac_dir Make.rules
14681 if test "x$enable_tools" = x""no; then :
14683 else
14684 case $ac_dir in
14685 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14686 "install:: $ac_dir
14687 @cd $ac_dir && \$(MAKE) install
14688 install-lib:: $ac_dir
14689 @cd $ac_dir && \$(MAKE) install-lib
14690 install-dev:: $ac_dir
14691 @cd $ac_dir && \$(MAKE) install-dev" ;;
14692 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14693 "install install-dev:: $ac_dir
14694 @cd $ac_dir && \$(MAKE) install" ;;
14695 esac
14696 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14697 "uninstall:: $ac_dir/Makefile
14698 @cd $ac_dir && \$(MAKE) uninstall
14699 all __tooldeps__: $ac_dir
14700 .PHONY: $ac_dir
14701 $ac_dir: $ac_dir/Makefile libs/port dummy
14702 @cd $ac_dir && \$(MAKE)"
14703 case $ac_dir in
14704 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14705 esac
14709 wine_fn_config_makerules ()
14711 ac_rules=$1
14712 ac_deps=$2
14713 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14714 "$ac_rules: $ac_rules.in $ac_deps config.status
14715 @./config.status $ac_rules
14716 distclean::
14717 \$(RM) $ac_rules"
14720 wine_fn_config_symlink ()
14722 ac_link=$1
14723 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14724 "$ac_link:
14725 @./config.status $ac_link
14726 distclean::
14727 \$(RM) $ac_link"
14730 if test "x$CROSSTEST_DISABLE" != x
14731 then
14732 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14733 "crosstest:
14734 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14736 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14737 wine_fn_config_symlink dlls/shell32/AUTHORS
14738 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14739 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14740 if test "x$enable_fonts" != xno; then
14741 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14742 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14744 if test "x$enable_fonts" != xno; then
14745 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14746 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14748 if test "x$enable_fonts" != xno; then
14749 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14750 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14752 if test "x$enable_fonts" != xno; then
14753 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14754 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14756 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14757 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14758 ac_config_links="$ac_config_links wine:tools/winewrapper"
14759 wine_fn_config_symlink wine
14761 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14763 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14765 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14767 ac_config_commands="$ac_config_commands dlls/user32/resources"
14769 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14771 ac_config_commands="$ac_config_commands include/wine"
14774 wine_fn_config_makerules Make.rules
14775 MAKE_RULES=Make.rules
14776 ac_config_files="$ac_config_files Make.rules"
14778 wine_fn_config_makerules Maketest.rules Make.rules
14779 MAKE_TEST_RULES=Maketest.rules
14780 ac_config_files="$ac_config_files Maketest.rules"
14782 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14783 MAKE_DLL_RULES=dlls/Makedll.rules
14784 ac_config_files="$ac_config_files dlls/Makedll.rules"
14786 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14787 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14788 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14790 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14791 MAKE_PROG_RULES=programs/Makeprog.rules
14792 ac_config_files="$ac_config_files programs/Makeprog.rules"
14795 wine_fn_config_dll acledit enable_acledit
14796 wine_fn_config_dll aclui enable_aclui aclui
14797 wine_fn_config_dll activeds enable_activeds activeds
14798 wine_fn_config_dll actxprxy enable_actxprxy
14799 wine_fn_config_lib adsiid
14800 wine_fn_config_dll advapi32 enable_advapi32 advapi32
14801 wine_fn_config_test dlls/advapi32/tests advapi32_test
14802 wine_fn_config_dll advpack enable_advpack advpack
14803 wine_fn_config_test dlls/advpack/tests advpack_test
14804 wine_fn_config_dll amstream enable_amstream
14805 wine_fn_config_test dlls/amstream/tests amstream_test
14806 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14807 wine_fn_config_dll atl enable_atl atl
14808 wine_fn_config_test dlls/atl/tests atl_test
14809 wine_fn_config_dll authz enable_authz
14810 wine_fn_config_dll avicap32 enable_avicap32 avicap32
14811 wine_fn_config_dll avifil32 enable_avifil32 avifil32
14812 wine_fn_config_test dlls/avifil32/tests avifil32_test
14813 wine_fn_config_dll avifile.dll16 enable_win16
14814 wine_fn_config_dll avrt enable_avrt avrt
14815 wine_fn_config_dll bcrypt enable_bcrypt
14816 wine_fn_config_dll browseui enable_browseui
14817 wine_fn_config_test dlls/browseui/tests browseui_test
14818 wine_fn_config_dll cabinet enable_cabinet cabinet
14819 wine_fn_config_test dlls/cabinet/tests cabinet_test
14820 wine_fn_config_dll capi2032 enable_capi2032 capi2032
14821 wine_fn_config_dll cards enable_cards cards
14822 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14823 wine_fn_config_dll clusapi enable_clusapi clusapi
14824 wine_fn_config_dll comcat enable_comcat
14825 wine_fn_config_test dlls/comcat/tests comcat_test
14826 wine_fn_config_dll comctl32 enable_comctl32 comctl32
14827 wine_fn_config_test dlls/comctl32/tests comctl32_test
14828 wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
14829 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14830 wine_fn_config_dll comm.drv16 enable_win16
14831 wine_fn_config_dll commdlg.dll16 enable_win16
14832 wine_fn_config_dll compobj.dll16 enable_win16
14833 wine_fn_config_dll compstui enable_compstui compstui
14834 wine_fn_config_dll credui enable_credui credui
14835 wine_fn_config_test dlls/credui/tests credui_test
14836 wine_fn_config_dll crtdll enable_crtdll crtdll
14837 wine_fn_config_dll crypt32 enable_crypt32 crypt32
14838 wine_fn_config_test dlls/crypt32/tests crypt32_test
14839 wine_fn_config_dll cryptdlg enable_cryptdlg
14840 wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14841 wine_fn_config_dll cryptnet enable_cryptnet cryptnet
14842 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14843 wine_fn_config_dll cryptui enable_cryptui cryptui
14844 wine_fn_config_test dlls/cryptui/tests cryptui_test
14845 wine_fn_config_dll ctapi32 enable_ctapi32
14846 wine_fn_config_dll ctl3d.dll16 enable_win16
14847 wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14848 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14849 wine_fn_config_dll d3d10 enable_d3d10 d3d10
14850 wine_fn_config_test dlls/d3d10/tests d3d10_test
14851 wine_fn_config_dll d3d10core enable_d3d10core d3d10core
14852 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14853 wine_fn_config_dll d3d8 enable_d3d8 d3d8
14854 wine_fn_config_test dlls/d3d8/tests d3d8_test
14855 wine_fn_config_dll d3d9 enable_d3d9 d3d9
14856 wine_fn_config_test dlls/d3d9/tests d3d9_test
14857 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14858 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14859 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14860 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14861 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14862 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14863 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14864 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14865 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14866 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14867 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 d3dcompiler
14868 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14869 wine_fn_config_dll d3dim enable_d3dim d3dim
14870 wine_fn_config_dll d3drm enable_d3drm d3drm
14871 wine_fn_config_test dlls/d3drm/tests d3drm_test
14872 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14873 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14874 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14875 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14876 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14877 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14878 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14879 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14880 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14881 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14882 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14883 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14884 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14885 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14886 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14887 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14888 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14889 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14890 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14891 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14892 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14893 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14894 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14895 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
14896 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14897 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14898 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14899 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14900 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14901 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14902 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14903 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14904 wine_fn_config_dll d3dxof enable_d3dxof d3dxof
14905 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14906 wine_fn_config_dll dbgeng enable_dbgeng dbgeng
14907 wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14908 wine_fn_config_dll dciman32 enable_dciman32 dciman32
14909 wine_fn_config_dll ddeml.dll16 enable_win16
14910 wine_fn_config_dll ddraw enable_ddraw ddraw
14911 wine_fn_config_test dlls/ddraw/tests ddraw_test
14912 wine_fn_config_dll ddrawex enable_ddrawex
14913 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14914 wine_fn_config_dll devenum enable_devenum
14915 wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
14916 wine_fn_config_test dlls/dinput/tests dinput_test
14917 wine_fn_config_dll dinput8 enable_dinput8 dinput8
14918 wine_fn_config_dll dispdib.dll16 enable_win16
14919 wine_fn_config_dll dispex enable_dispex
14920 wine_fn_config_test dlls/dispex/tests dispex_test
14921 wine_fn_config_dll display.drv16 enable_win16
14922 wine_fn_config_dll dmband enable_dmband
14923 wine_fn_config_dll dmcompos enable_dmcompos
14924 wine_fn_config_dll dmime enable_dmime
14925 wine_fn_config_test dlls/dmime/tests dmime_test
14926 wine_fn_config_dll dmloader enable_dmloader
14927 wine_fn_config_test dlls/dmloader/tests dmloader_test
14928 wine_fn_config_dll dmscript enable_dmscript
14929 wine_fn_config_dll dmstyle enable_dmstyle
14930 wine_fn_config_dll dmsynth enable_dmsynth
14931 wine_fn_config_dll dmusic enable_dmusic
14932 wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14933 wine_fn_config_dll dnsapi enable_dnsapi dnsapi
14934 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14935 wine_fn_config_dll dplay enable_dplay dplay
14936 wine_fn_config_dll dplayx enable_dplayx dplayx
14937 wine_fn_config_test dlls/dplayx/tests dplayx_test
14938 wine_fn_config_dll dpnaddr enable_dpnaddr
14939 wine_fn_config_dll dpnet enable_dpnet dpnet
14940 wine_fn_config_dll dpnhpast enable_dpnhpast
14941 wine_fn_config_dll dpnlobby enable_dpnlobby
14942 wine_fn_config_dll dpwsockx enable_dpwsockx
14943 wine_fn_config_dll drmclien enable_drmclien
14944 wine_fn_config_dll dsound enable_dsound dsound
14945 wine_fn_config_test dlls/dsound/tests dsound_test
14946 wine_fn_config_dll dssenh enable_dssenh
14947 wine_fn_config_dll dswave enable_dswave
14948 wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14949 wine_fn_config_dll dxdiagn enable_dxdiagn
14950 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14951 wine_fn_config_lib dxerr8
14952 wine_fn_config_lib dxerr9
14953 wine_fn_config_dll dxgi enable_dxgi dxgi
14954 wine_fn_config_test dlls/dxgi/tests dxgi_test
14955 wine_fn_config_lib dxguid
14956 wine_fn_config_dll explorerframe enable_explorerframe
14957 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
14958 wine_fn_config_dll faultrep enable_faultrep faultrep
14959 wine_fn_config_test dlls/faultrep/tests faultrep_test
14960 wine_fn_config_dll fltlib enable_fltlib
14961 wine_fn_config_dll fusion enable_fusion
14962 wine_fn_config_test dlls/fusion/tests fusion_test
14963 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14964 wine_fn_config_dll gameux enable_gameux
14965 wine_fn_config_test dlls/gameux/tests gameux_test
14966 wine_fn_config_dll gdi.exe16 enable_win16
14967 wine_fn_config_dll gdi32 enable_gdi32 gdi32
14968 wine_fn_config_test dlls/gdi32/tests gdi32_test
14969 wine_fn_config_dll gdiplus enable_gdiplus gdiplus
14970 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14971 wine_fn_config_dll glu32 enable_glu32 glu32
14972 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14973 wine_fn_config_dll gpkcsp enable_gpkcsp
14974 wine_fn_config_dll hal enable_hal
14975 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14976 wine_fn_config_dll hid enable_hid hid
14977 wine_fn_config_dll hlink enable_hlink hlink
14978 wine_fn_config_test dlls/hlink/tests hlink_test
14979 wine_fn_config_dll hnetcfg enable_hnetcfg
14980 wine_fn_config_dll httpapi enable_httpapi
14981 wine_fn_config_dll iccvid enable_iccvid
14982 wine_fn_config_dll icmp enable_icmp
14983 wine_fn_config_dll ifsmgr.vxd enable_win16
14984 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14985 wine_fn_config_dll imagehlp enable_imagehlp imagehlp
14986 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14987 wine_fn_config_dll imm.dll16 enable_win16
14988 wine_fn_config_dll imm32 enable_imm32 imm32
14989 wine_fn_config_test dlls/imm32/tests imm32_test
14990 wine_fn_config_dll inetcomm enable_inetcomm inetcomm
14991 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14992 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl
14993 wine_fn_config_dll inetmib1 enable_inetmib1
14994 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14995 wine_fn_config_dll infosoft enable_infosoft
14996 wine_fn_config_test dlls/infosoft/tests infosoft_test
14997 wine_fn_config_dll initpki enable_initpki
14998 wine_fn_config_dll inkobj enable_inkobj
14999 wine_fn_config_dll inseng enable_inseng
15000 wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
15001 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15002 wine_fn_config_dll itircl enable_itircl
15003 wine_fn_config_dll itss enable_itss
15004 wine_fn_config_test dlls/itss/tests itss_test
15005 wine_fn_config_dll jscript enable_jscript
15006 wine_fn_config_test dlls/jscript/tests jscript_test
15007 wine_fn_config_dll kernel32 enable_kernel32 kernel32
15008 wine_fn_config_test dlls/kernel32/tests kernel32_test
15009 wine_fn_config_dll keyboard.drv16 enable_win16
15010 wine_fn_config_dll krnl386.exe16 enable_win16 kernel
15011 wine_fn_config_dll ktmw32 enable_ktmw32
15012 wine_fn_config_dll loadperf enable_loadperf loadperf
15013 wine_fn_config_dll localspl enable_localspl
15014 wine_fn_config_test dlls/localspl/tests localspl_test
15015 wine_fn_config_dll localui enable_localui
15016 wine_fn_config_test dlls/localui/tests localui_test
15017 wine_fn_config_dll lz32 enable_lz32 lz32
15018 wine_fn_config_test dlls/lz32/tests lz32_test
15019 wine_fn_config_dll lzexpand.dll16 enable_win16
15020 wine_fn_config_dll mapi32 enable_mapi32 mapi32
15021 wine_fn_config_test dlls/mapi32/tests mapi32_test
15022 wine_fn_config_dll mapistub enable_mapistub
15023 wine_fn_config_dll mciavi32 enable_mciavi32
15024 wine_fn_config_dll mcicda enable_mcicda
15025 wine_fn_config_dll mciqtz32 enable_mciqtz32
15026 wine_fn_config_dll mciseq enable_mciseq
15027 wine_fn_config_dll mciwave enable_mciwave
15028 wine_fn_config_dll midimap enable_midimap
15029 wine_fn_config_dll mlang enable_mlang mlang
15030 wine_fn_config_test dlls/mlang/tests mlang_test
15031 wine_fn_config_dll mmdevapi enable_mmdevapi
15032 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15033 wine_fn_config_dll mmdevldr.vxd enable_win16
15034 wine_fn_config_dll mmsystem.dll16 enable_win16
15035 wine_fn_config_dll monodebg.vxd enable_win16
15036 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15037 wine_fn_config_dll mouse.drv16 enable_win16
15038 wine_fn_config_dll mpr enable_mpr mpr
15039 wine_fn_config_dll mprapi enable_mprapi mprapi
15040 wine_fn_config_dll msacm.dll16 enable_win16
15041 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15042 wine_fn_config_dll msacm32 enable_msacm32 msacm32
15043 wine_fn_config_test dlls/msacm32/tests msacm32_test
15044 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15045 wine_fn_config_dll mscat32 enable_mscat32
15046 wine_fn_config_dll mscms enable_mscms mscms
15047 wine_fn_config_test dlls/mscms/tests mscms_test
15048 wine_fn_config_dll mscoree enable_mscoree
15049 wine_fn_config_test dlls/mscoree/tests mscoree_test
15050 wine_fn_config_dll msctf enable_msctf
15051 wine_fn_config_test dlls/msctf/tests msctf_test
15052 wine_fn_config_dll msdaps enable_msdaps
15053 wine_fn_config_dll msdmo enable_msdmo msdmo
15054 wine_fn_config_dll msftedit enable_msftedit
15055 wine_fn_config_dll msg711.acm enable_msg711_acm
15056 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15057 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15058 wine_fn_config_dll mshtml enable_mshtml mshtml
15059 wine_fn_config_test dlls/mshtml/tests mshtml_test
15060 wine_fn_config_dll msi enable_msi msi
15061 wine_fn_config_test dlls/msi/tests msi_test
15062 wine_fn_config_dll msimg32 enable_msimg32 msimg32
15063 wine_fn_config_dll msimtf enable_msimtf
15064 wine_fn_config_dll msisip enable_msisip
15065 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15066 wine_fn_config_dll msnet32 enable_msnet32
15067 wine_fn_config_dll msrle32 enable_msrle32
15068 wine_fn_config_dll mssign32 enable_mssign32
15069 wine_fn_config_dll mssip32 enable_mssip32
15070 wine_fn_config_dll mstask enable_mstask
15071 wine_fn_config_test dlls/mstask/tests mstask_test
15072 wine_fn_config_dll msvcirt enable_msvcirt
15073 wine_fn_config_dll msvcp80 enable_msvcp80
15074 wine_fn_config_dll msvcp90 enable_msvcp90
15075 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15076 wine_fn_config_dll msvcr100 enable_msvcr100
15077 wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
15078 wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
15079 wine_fn_config_dll msvcr80 enable_msvcr80
15080 wine_fn_config_dll msvcr90 enable_msvcr90
15081 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15082 wine_fn_config_dll msvcrt enable_msvcrt msvcrt
15083 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15084 wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
15085 wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
15086 wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
15087 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15088 wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
15089 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15090 wine_fn_config_dll msvidc32 enable_msvidc32
15091 wine_fn_config_dll msvideo.dll16 enable_win16
15092 wine_fn_config_dll mswsock enable_mswsock mswsock
15093 wine_fn_config_dll msxml3 enable_msxml3
15094 wine_fn_config_test dlls/msxml3/tests msxml3_test
15095 wine_fn_config_dll msxml4 enable_msxml4
15096 wine_fn_config_dll msxml6 enable_msxml6
15097 wine_fn_config_dll nddeapi enable_nddeapi nddeapi
15098 wine_fn_config_dll netapi32 enable_netapi32 netapi32
15099 wine_fn_config_test dlls/netapi32/tests netapi32_test
15100 wine_fn_config_dll newdev enable_newdev newdev
15101 wine_fn_config_dll npmshtml enable_npmshtml
15102 wine_fn_config_dll ntdll enable_ntdll ntdll
15103 wine_fn_config_test dlls/ntdll/tests ntdll_test
15104 wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
15105 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15106 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
15107 wine_fn_config_dll ntprint enable_ntprint
15108 wine_fn_config_test dlls/ntprint/tests ntprint_test
15109 wine_fn_config_dll objsel enable_objsel
15110 wine_fn_config_dll odbc32 enable_odbc32 odbc32
15111 wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
15112 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15113 wine_fn_config_dll ole2.dll16 enable_win16
15114 wine_fn_config_dll ole2conv.dll16 enable_win16
15115 wine_fn_config_dll ole2disp.dll16 enable_win16
15116 wine_fn_config_dll ole2nls.dll16 enable_win16
15117 wine_fn_config_dll ole2prox.dll16 enable_win16
15118 wine_fn_config_dll ole2thk.dll16 enable_win16
15119 wine_fn_config_dll ole32 enable_ole32 ole32
15120 wine_fn_config_test dlls/ole32/tests ole32_test
15121 wine_fn_config_dll oleacc enable_oleacc oleacc
15122 wine_fn_config_test dlls/oleacc/tests oleacc_test
15123 wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
15124 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15125 wine_fn_config_dll olecli.dll16 enable_win16
15126 wine_fn_config_dll olecli32 enable_olecli32 olecli32
15127 wine_fn_config_dll oledb32 enable_oledb32
15128 wine_fn_config_test dlls/oledb32/tests oledb32_test
15129 wine_fn_config_dll oledlg enable_oledlg oledlg
15130 wine_fn_config_dll olepro32 enable_olepro32 olepro32
15131 wine_fn_config_dll olesvr.dll16 enable_win16
15132 wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
15133 wine_fn_config_dll olethk32 enable_olethk32
15134 wine_fn_config_dll openal32 enable_openal32
15135 wine_fn_config_dll opencl enable_opencl
15136 wine_fn_config_dll opengl32 enable_opengl32 opengl32
15137 wine_fn_config_test dlls/opengl32/tests opengl32_test
15138 wine_fn_config_dll pdh enable_pdh pdh
15139 wine_fn_config_test dlls/pdh/tests pdh_test
15140 wine_fn_config_dll pidgen enable_pidgen
15141 wine_fn_config_dll powrprof enable_powrprof powrprof
15142 wine_fn_config_dll printui enable_printui
15143 wine_fn_config_dll propsys enable_propsys propsys
15144 wine_fn_config_test dlls/propsys/tests propsys_test
15145 wine_fn_config_dll psapi enable_psapi psapi
15146 wine_fn_config_test dlls/psapi/tests psapi_test
15147 wine_fn_config_dll pstorec enable_pstorec
15148 wine_fn_config_dll qcap enable_qcap
15149 wine_fn_config_dll qedit enable_qedit
15150 wine_fn_config_test dlls/qedit/tests qedit_test
15151 wine_fn_config_dll qmgr enable_qmgr
15152 wine_fn_config_test dlls/qmgr/tests qmgr_test
15153 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15154 wine_fn_config_dll quartz enable_quartz quartz
15155 wine_fn_config_test dlls/quartz/tests quartz_test
15156 wine_fn_config_dll query enable_query
15157 wine_fn_config_dll rasapi16.dll16 enable_win16
15158 wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
15159 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15160 wine_fn_config_dll rasdlg enable_rasdlg rasdlg
15161 wine_fn_config_dll resutils enable_resutils resutils
15162 wine_fn_config_dll riched20 enable_riched20 riched20
15163 wine_fn_config_test dlls/riched20/tests riched20_test
15164 wine_fn_config_dll riched32 enable_riched32
15165 wine_fn_config_test dlls/riched32/tests riched32_test
15166 wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
15167 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15168 wine_fn_config_dll rsabase enable_rsabase
15169 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
15170 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15171 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15172 wine_fn_config_dll rtutils enable_rtutils rtutils
15173 wine_fn_config_dll samlib enable_samlib
15174 wine_fn_config_dll sane.ds enable_sane_ds
15175 wine_fn_config_dll sccbase enable_sccbase
15176 wine_fn_config_dll schannel enable_schannel
15177 wine_fn_config_test dlls/schannel/tests schannel_test
15178 wine_fn_config_dll secur32 enable_secur32 secur32
15179 wine_fn_config_test dlls/secur32/tests secur32_test
15180 wine_fn_config_dll security enable_security
15181 wine_fn_config_dll sensapi enable_sensapi sensapi
15182 wine_fn_config_dll serialui enable_serialui serialui
15183 wine_fn_config_test dlls/serialui/tests serialui_test
15184 wine_fn_config_dll setupapi enable_setupapi setupapi
15185 wine_fn_config_test dlls/setupapi/tests setupapi_test
15186 wine_fn_config_dll setupx.dll16 enable_win16
15187 wine_fn_config_dll sfc enable_sfc sfc
15188 wine_fn_config_dll sfc_os enable_sfc_os sfc_os
15189 wine_fn_config_dll shdoclc enable_shdoclc
15190 wine_fn_config_dll shdocvw enable_shdocvw shdocvw
15191 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15192 wine_fn_config_dll shell.dll16 enable_win16
15193 wine_fn_config_dll shell32 enable_shell32 shell32
15194 wine_fn_config_test dlls/shell32/tests shell32_test
15195 wine_fn_config_dll shfolder enable_shfolder shfolder
15196 wine_fn_config_dll shlwapi enable_shlwapi shlwapi
15197 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15198 wine_fn_config_dll slbcsp enable_slbcsp
15199 wine_fn_config_dll slc enable_slc slc
15200 wine_fn_config_dll snmpapi enable_snmpapi snmpapi
15201 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15202 wine_fn_config_dll softpub enable_softpub
15203 wine_fn_config_dll sound.drv16 enable_win16
15204 wine_fn_config_dll spoolss enable_spoolss spoolss
15205 wine_fn_config_test dlls/spoolss/tests spoolss_test
15206 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15207 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15208 wine_fn_config_dll sti enable_sti sti
15209 wine_fn_config_test dlls/sti/tests sti_test
15210 wine_fn_config_dll storage.dll16 enable_win16
15211 wine_fn_config_dll stress.dll16 enable_win16
15212 wine_fn_config_lib strmbase
15213 wine_fn_config_lib strmiids
15214 wine_fn_config_dll svrapi enable_svrapi
15215 wine_fn_config_dll sxs enable_sxs
15216 wine_fn_config_dll system.drv16 enable_win16
15217 wine_fn_config_dll t2embed enable_t2embed
15218 wine_fn_config_dll tapi32 enable_tapi32 tapi32
15219 wine_fn_config_dll toolhelp.dll16 enable_win16
15220 wine_fn_config_dll traffic enable_traffic
15221 wine_fn_config_dll twain.dll16 enable_win16
15222 wine_fn_config_dll twain_32 enable_twain_32
15223 wine_fn_config_test dlls/twain_32/tests twain_32_test
15224 wine_fn_config_dll typelib.dll16 enable_win16
15225 wine_fn_config_dll unicows enable_unicows unicows
15226 wine_fn_config_dll updspapi enable_updspapi
15227 wine_fn_config_dll url enable_url url
15228 wine_fn_config_dll urlmon enable_urlmon urlmon
15229 wine_fn_config_test dlls/urlmon/tests urlmon_test
15230 wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
15231 wine_fn_config_dll user.exe16 enable_win16
15232 wine_fn_config_dll user32 enable_user32 user32
15233 wine_fn_config_test dlls/user32/tests user32_test
15234 wine_fn_config_dll userenv enable_userenv userenv
15235 wine_fn_config_test dlls/userenv/tests userenv_test
15236 wine_fn_config_dll usp10 enable_usp10 usp10
15237 wine_fn_config_test dlls/usp10/tests usp10_test
15238 wine_fn_config_lib uuid
15239 wine_fn_config_dll uxtheme enable_uxtheme uxtheme
15240 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15241 wine_fn_config_dll vdhcp.vxd enable_win16
15242 wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
15243 wine_fn_config_dll ver.dll16 enable_win16
15244 wine_fn_config_dll version enable_version version
15245 wine_fn_config_test dlls/version/tests version_test
15246 wine_fn_config_dll vmm.vxd enable_win16
15247 wine_fn_config_dll vnbt.vxd enable_win16
15248 wine_fn_config_dll vnetbios.vxd enable_win16
15249 wine_fn_config_dll vtdapi.vxd enable_win16
15250 wine_fn_config_dll vwin32.vxd enable_win16
15251 wine_fn_config_dll w32skrnl enable_win16
15252 wine_fn_config_dll w32sys.dll16 enable_win16
15253 wine_fn_config_dll wbemprox enable_wbemprox
15254 wine_fn_config_dll wer enable_wer wer
15255 wine_fn_config_test dlls/wer/tests wer_test
15256 wine_fn_config_dll wiaservc enable_wiaservc
15257 wine_fn_config_dll win32s16.dll16 enable_win16
15258 wine_fn_config_dll win87em.dll16 enable_win16
15259 wine_fn_config_dll winaspi.dll16 enable_win16
15260 wine_fn_config_dll windebug.dll16 enable_win16
15261 wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
15262 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15263 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15264 wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
15265 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15266 wine_fn_config_lib winecrt0
15267 wine_fn_config_dll wined3d enable_wined3d wined3d
15268 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15269 wine_fn_config_dll winegstreamer enable_winegstreamer
15270 wine_fn_config_dll winejack.drv enable_winejack_drv
15271 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15272 wine_fn_config_dll winemapi enable_winemapi
15273 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15274 wine_fn_config_dll winenas.drv enable_winenas_drv
15275 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15276 wine_fn_config_dll wineps.drv enable_wineps_drv
15277 wine_fn_config_dll wineps16.drv16 enable_win16
15278 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15279 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15280 wine_fn_config_dll winex11.drv enable_winex11_drv
15281 wine_fn_config_dll wing.dll16 enable_win16
15282 wine_fn_config_dll wing32 enable_wing32
15283 wine_fn_config_dll winhttp enable_winhttp winhttp
15284 wine_fn_config_test dlls/winhttp/tests winhttp_test
15285 wine_fn_config_dll wininet enable_wininet wininet
15286 wine_fn_config_test dlls/wininet/tests wininet_test
15287 wine_fn_config_dll winmm enable_winmm winmm
15288 wine_fn_config_test dlls/winmm/tests winmm_test
15289 wine_fn_config_dll winnls.dll16 enable_win16
15290 wine_fn_config_dll winnls32 enable_winnls32 winnls32
15291 wine_fn_config_dll winscard enable_winscard winscard
15292 wine_fn_config_dll winsock.dll16 enable_win16
15293 wine_fn_config_dll winspool.drv enable_winspool_drv winspool
15294 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15295 wine_fn_config_dll wintab.dll16 enable_win16
15296 wine_fn_config_dll wintab32 enable_wintab32 wintab32
15297 wine_fn_config_test dlls/wintab32/tests wintab32_test
15298 wine_fn_config_dll wintrust enable_wintrust wintrust
15299 wine_fn_config_test dlls/wintrust/tests wintrust_test
15300 wine_fn_config_dll wlanapi enable_wlanapi
15301 wine_fn_config_dll wldap32 enable_wldap32 wldap32
15302 wine_fn_config_test dlls/wldap32/tests wldap32_test
15303 wine_fn_config_dll wmi enable_wmi
15304 wine_fn_config_dll wmiutils enable_wmiutils
15305 wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
15306 wine_fn_config_dll wow32 enable_win16 wow32
15307 wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
15308 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15309 wine_fn_config_dll wsock32 enable_wsock32 wsock32
15310 wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
15311 wine_fn_config_dll wuapi enable_wuapi
15312 wine_fn_config_dll wuaueng enable_wuaueng
15313 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15314 wine_fn_config_dll xinput1_1 enable_xinput1_1
15315 wine_fn_config_dll xinput1_2 enable_xinput1_2
15316 wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
15317 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15318 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15319 wine_fn_config_dll xmllite enable_xmllite
15320 wine_fn_config_test dlls/xmllite/tests xmllite_test
15321 wine_fn_config_makefile documentation enable_documentation
15322 wine_fn_config_makefile fonts enable_fonts
15323 wine_fn_config_makefile include enable_include
15324 wine_fn_config_makefile libs/port enable_libs_port
15325 wine_fn_config_makefile libs/wine enable_libs_wine
15326 wine_fn_config_makefile libs/wpp enable_libs_wpp
15327 wine_fn_config_makefile loader enable_loader
15328 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15329 wine_fn_config_program attrib enable_attrib install
15330 wine_fn_config_program cacls enable_cacls install
15331 wine_fn_config_program clock enable_clock install
15332 wine_fn_config_program cmd enable_cmd install
15333 wine_fn_config_test programs/cmd/tests cmd.exe_test
15334 wine_fn_config_program cmdlgtst enable_cmdlgtst
15335 wine_fn_config_program control enable_control install
15336 wine_fn_config_program dxdiag enable_dxdiag install
15337 wine_fn_config_program eject enable_eject install
15338 wine_fn_config_program expand enable_expand install
15339 wine_fn_config_program explorer enable_explorer install
15340 wine_fn_config_program extrac32 enable_extrac32 install
15341 wine_fn_config_program hh enable_hh install
15342 wine_fn_config_program icinfo enable_icinfo install
15343 wine_fn_config_program iexplore enable_iexplore install
15344 wine_fn_config_program ipconfig enable_ipconfig install
15345 wine_fn_config_program lodctr enable_lodctr install
15346 wine_fn_config_program mofcomp enable_mofcomp install
15347 wine_fn_config_program mshta enable_mshta install
15348 wine_fn_config_program msiexec enable_msiexec installbin
15349 wine_fn_config_program net enable_net install
15350 wine_fn_config_program netsh enable_netsh install
15351 wine_fn_config_program ngen enable_ngen install
15352 wine_fn_config_program notepad enable_notepad installbin
15353 wine_fn_config_program oleview enable_oleview install
15354 wine_fn_config_program ping enable_ping install
15355 wine_fn_config_program progman enable_progman install
15356 wine_fn_config_program reg enable_reg install
15357 wine_fn_config_program regedit enable_regedit installbin
15358 wine_fn_config_test programs/regedit/tests regedit.exe_test
15359 wine_fn_config_program regsvcs enable_regsvcs install
15360 wine_fn_config_program regsvr32 enable_regsvr32 installbin
15361 wine_fn_config_program rpcss enable_rpcss install
15362 wine_fn_config_program rundll.exe16 enable_win16 install
15363 wine_fn_config_program rundll32 enable_rundll32 install
15364 wine_fn_config_program sc enable_sc install
15365 wine_fn_config_program secedit enable_secedit install
15366 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15367 wine_fn_config_program services enable_services install
15368 wine_fn_config_program spoolsv enable_spoolsv install
15369 wine_fn_config_program start enable_start install
15370 wine_fn_config_program svchost enable_svchost install
15371 wine_fn_config_program taskkill enable_taskkill install
15372 wine_fn_config_program taskmgr enable_taskmgr install
15373 wine_fn_config_program termsv enable_termsv install
15374 wine_fn_config_program uninstaller enable_uninstaller install
15375 wine_fn_config_program unlodctr enable_unlodctr install
15376 wine_fn_config_program view enable_view
15377 wine_fn_config_program wineboot enable_wineboot installbin
15378 wine_fn_config_program winebrowser enable_winebrowser install
15379 wine_fn_config_program winecfg enable_winecfg installbin
15380 wine_fn_config_program wineconsole enable_wineconsole installbin
15381 wine_fn_config_program winedbg enable_winedbg installbin
15382 wine_fn_config_program winedevice enable_winedevice install
15383 wine_fn_config_program winefile enable_winefile installbin
15384 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15385 wine_fn_config_program winemine enable_winemine installbin
15386 wine_fn_config_program winepath enable_winepath installbin
15387 wine_fn_config_program winetest enable_winetest
15388 wine_fn_config_program winevdm enable_win16 install
15389 wine_fn_config_program winhelp.exe16 enable_win16 install
15390 wine_fn_config_program winhlp32 enable_winhlp32 install
15391 wine_fn_config_program winoldap.mod16 enable_win16 install
15392 wine_fn_config_program winver enable_winver install
15393 wine_fn_config_program wmic enable_wmic install
15394 wine_fn_config_program wordpad enable_wordpad install
15395 wine_fn_config_program write enable_write install
15396 wine_fn_config_program wscript enable_wscript install
15397 wine_fn_config_program xcopy enable_xcopy install
15398 wine_fn_config_makefile server enable_server
15399 wine_fn_config_tool tools
15400 wine_fn_config_tool tools/widl
15401 wine_fn_config_tool tools/winebuild
15402 wine_fn_config_tool tools/winedump
15403 wine_fn_config_tool tools/winegcc
15404 wine_fn_config_tool tools/wmc
15405 wine_fn_config_tool tools/wrc
15407 ac_config_commands="$ac_config_commands Makefile"
15410 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15414 if test -n "$with_wine64"
15415 then
15416 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine
15417 fonts server:
15418 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15419 $with_wine64/loader/wine:
15420 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15421 clean::
15422 \$(RM) fonts server $with_wine64/loader/wine"
15425 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15426 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15428 cat >confcache <<\_ACEOF
15429 # This file is a shell script that caches the results of configure
15430 # tests run on this system so they can be shared between configure
15431 # scripts and configure runs, see configure's option --config-cache.
15432 # It is not useful on other systems. If it contains results you don't
15433 # want to keep, you may remove or edit it.
15435 # config.status only pays attention to the cache file if you give it
15436 # the --recheck option to rerun configure.
15438 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15440 # following values.
15442 _ACEOF
15444 # The following way of writing the cache mishandles newlines in values,
15445 # but we know of no workaround that is simple, portable, and efficient.
15446 # So, we kill variables containing newlines.
15447 # Ultrix sh set writes to stderr and can't be redirected directly,
15448 # and sets the high bit in the cache file unless we assign to the vars.
15450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15451 eval ac_val=\$$ac_var
15452 case $ac_val in #(
15453 *${as_nl}*)
15454 case $ac_var in #(
15455 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15456 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15457 esac
15458 case $ac_var in #(
15459 _ | IFS | as_nl) ;; #(
15460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15461 *) { eval $ac_var=; unset $ac_var;} ;;
15462 esac ;;
15463 esac
15464 done
15466 (set) 2>&1 |
15467 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15468 *${as_nl}ac_space=\ *)
15469 # `set' does not quote correctly, so add quotes: double-quote
15470 # substitution turns \\\\ into \\, and sed turns \\ into \.
15471 sed -n \
15472 "s/'/'\\\\''/g;
15473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15474 ;; #(
15476 # `set' quotes correctly as required by POSIX, so do not add quotes.
15477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15479 esac |
15480 sort
15482 sed '
15483 /^ac_cv_env_/b end
15484 t clear
15485 :clear
15486 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15487 t end
15488 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15489 :end' >>confcache
15490 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15491 if test -w "$cache_file"; then
15492 test "x$cache_file" != "x/dev/null" &&
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15494 $as_echo "$as_me: updating cache $cache_file" >&6;}
15495 cat confcache >$cache_file
15496 else
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15498 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15501 rm -f confcache
15503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15504 # Let make expand exec_prefix.
15505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15507 DEFS=-DHAVE_CONFIG_H
15509 ac_libobjs=
15510 ac_ltlibobjs=
15512 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15513 # 1. Remove the extension, and $U if already installed.
15514 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15515 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15516 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15517 # will be set to the directory where LIBOBJS objects are built.
15518 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15519 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15520 done
15521 LIBOBJS=$ac_libobjs
15523 LTLIBOBJS=$ac_ltlibobjs
15527 : ${CONFIG_STATUS=./config.status}
15528 ac_write_fail=0
15529 ac_clean_files_save=$ac_clean_files
15530 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15532 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15533 as_write_fail=0
15534 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15535 #! $SHELL
15536 # Generated by $as_me.
15537 # Run this file to recreate the current configuration.
15538 # Compiler output produced by configure, useful for debugging
15539 # configure, is in config.log if it exists.
15541 debug=false
15542 ac_cs_recheck=false
15543 ac_cs_silent=false
15545 SHELL=\${CONFIG_SHELL-$SHELL}
15546 export SHELL
15547 _ASEOF
15548 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15549 ## -------------------- ##
15550 ## M4sh Initialization. ##
15551 ## -------------------- ##
15553 # Be more Bourne compatible
15554 DUALCASE=1; export DUALCASE # for MKS sh
15555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15556 emulate sh
15557 NULLCMD=:
15558 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15559 # is contrary to our usage. Disable this feature.
15560 alias -g '${1+"$@"}'='"$@"'
15561 setopt NO_GLOB_SUBST
15562 else
15563 case `(set -o) 2>/dev/null` in #(
15564 *posix*) :
15565 set -o posix ;; #(
15566 *) :
15568 esac
15572 as_nl='
15574 export as_nl
15575 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15576 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15577 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15578 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15579 # Prefer a ksh shell builtin over an external printf program on Solaris,
15580 # but without wasting forks for bash or zsh.
15581 if test -z "$BASH_VERSION$ZSH_VERSION" \
15582 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15583 as_echo='print -r --'
15584 as_echo_n='print -rn --'
15585 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15586 as_echo='printf %s\n'
15587 as_echo_n='printf %s'
15588 else
15589 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15590 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15591 as_echo_n='/usr/ucb/echo -n'
15592 else
15593 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15594 as_echo_n_body='eval
15595 arg=$1;
15596 case $arg in #(
15597 *"$as_nl"*)
15598 expr "X$arg" : "X\\(.*\\)$as_nl";
15599 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15600 esac;
15601 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15603 export as_echo_n_body
15604 as_echo_n='sh -c $as_echo_n_body as_echo'
15606 export as_echo_body
15607 as_echo='sh -c $as_echo_body as_echo'
15610 # The user is always right.
15611 if test "${PATH_SEPARATOR+set}" != set; then
15612 PATH_SEPARATOR=:
15613 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15614 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15615 PATH_SEPARATOR=';'
15620 # IFS
15621 # We need space, tab and new line, in precisely that order. Quoting is
15622 # there to prevent editors from complaining about space-tab.
15623 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15624 # splitting by setting IFS to empty value.)
15625 IFS=" "" $as_nl"
15627 # Find who we are. Look in the path if we contain no directory separator.
15628 case $0 in #((
15629 *[\\/]* ) as_myself=$0 ;;
15630 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15631 for as_dir in $PATH
15633 IFS=$as_save_IFS
15634 test -z "$as_dir" && as_dir=.
15635 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15636 done
15637 IFS=$as_save_IFS
15640 esac
15641 # We did not find ourselves, most probably we were run as `sh COMMAND'
15642 # in which case we are not to be found in the path.
15643 if test "x$as_myself" = x; then
15644 as_myself=$0
15646 if test ! -f "$as_myself"; then
15647 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15648 exit 1
15651 # Unset variables that we do not need and which cause bugs (e.g. in
15652 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15653 # suppresses any "Segmentation fault" message there. '((' could
15654 # trigger a bug in pdksh 5.2.14.
15655 for as_var in BASH_ENV ENV MAIL MAILPATH
15656 do eval test x\${$as_var+set} = xset \
15657 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15658 done
15659 PS1='$ '
15660 PS2='> '
15661 PS4='+ '
15663 # NLS nuisances.
15664 LC_ALL=C
15665 export LC_ALL
15666 LANGUAGE=C
15667 export LANGUAGE
15669 # CDPATH.
15670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15673 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15674 # ----------------------------------------
15675 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15676 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15677 # script with STATUS, using 1 if that was 0.
15678 as_fn_error ()
15680 as_status=$1; test $as_status -eq 0 && as_status=1
15681 if test "$4"; then
15682 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15683 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15685 $as_echo "$as_me: error: $2" >&2
15686 as_fn_exit $as_status
15687 } # as_fn_error
15690 # as_fn_set_status STATUS
15691 # -----------------------
15692 # Set $? to STATUS, without forking.
15693 as_fn_set_status ()
15695 return $1
15696 } # as_fn_set_status
15698 # as_fn_exit STATUS
15699 # -----------------
15700 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15701 as_fn_exit ()
15703 set +e
15704 as_fn_set_status $1
15705 exit $1
15706 } # as_fn_exit
15708 # as_fn_unset VAR
15709 # ---------------
15710 # Portably unset VAR.
15711 as_fn_unset ()
15713 { eval $1=; unset $1;}
15715 as_unset=as_fn_unset
15716 # as_fn_append VAR VALUE
15717 # ----------------------
15718 # Append the text in VALUE to the end of the definition contained in VAR. Take
15719 # advantage of any shell optimizations that allow amortized linear growth over
15720 # repeated appends, instead of the typical quadratic growth present in naive
15721 # implementations.
15722 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15723 eval 'as_fn_append ()
15725 eval $1+=\$2
15727 else
15728 as_fn_append ()
15730 eval $1=\$$1\$2
15732 fi # as_fn_append
15734 # as_fn_arith ARG...
15735 # ------------------
15736 # Perform arithmetic evaluation on the ARGs, and store the result in the
15737 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15738 # must be portable across $(()) and expr.
15739 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15740 eval 'as_fn_arith ()
15742 as_val=$(( $* ))
15744 else
15745 as_fn_arith ()
15747 as_val=`expr "$@" || test $? -eq 1`
15749 fi # as_fn_arith
15752 if expr a : '\(a\)' >/dev/null 2>&1 &&
15753 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15754 as_expr=expr
15755 else
15756 as_expr=false
15759 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15760 as_basename=basename
15761 else
15762 as_basename=false
15765 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15766 as_dirname=dirname
15767 else
15768 as_dirname=false
15771 as_me=`$as_basename -- "$0" ||
15772 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15773 X"$0" : 'X\(//\)$' \| \
15774 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15775 $as_echo X/"$0" |
15776 sed '/^.*\/\([^/][^/]*\)\/*$/{
15777 s//\1/
15780 /^X\/\(\/\/\)$/{
15781 s//\1/
15784 /^X\/\(\/\).*/{
15785 s//\1/
15788 s/.*/./; q'`
15790 # Avoid depending upon Character Ranges.
15791 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15792 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15793 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15794 as_cr_digits='0123456789'
15795 as_cr_alnum=$as_cr_Letters$as_cr_digits
15797 ECHO_C= ECHO_N= ECHO_T=
15798 case `echo -n x` in #(((((
15799 -n*)
15800 case `echo 'xy\c'` in
15801 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15802 xy) ECHO_C='\c';;
15803 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15804 ECHO_T=' ';;
15805 esac;;
15807 ECHO_N='-n';;
15808 esac
15810 rm -f conf$$ conf$$.exe conf$$.file
15811 if test -d conf$$.dir; then
15812 rm -f conf$$.dir/conf$$.file
15813 else
15814 rm -f conf$$.dir
15815 mkdir conf$$.dir 2>/dev/null
15817 if (echo >conf$$.file) 2>/dev/null; then
15818 if ln -s conf$$.file conf$$ 2>/dev/null; then
15819 as_ln_s='ln -s'
15820 # ... but there are two gotchas:
15821 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15822 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15823 # In both cases, we have to default to `cp -p'.
15824 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15825 as_ln_s='cp -p'
15826 elif ln conf$$.file conf$$ 2>/dev/null; then
15827 as_ln_s=ln
15828 else
15829 as_ln_s='cp -p'
15831 else
15832 as_ln_s='cp -p'
15834 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15835 rmdir conf$$.dir 2>/dev/null
15838 # as_fn_mkdir_p
15839 # -------------
15840 # Create "$as_dir" as a directory, including parents if necessary.
15841 as_fn_mkdir_p ()
15844 case $as_dir in #(
15845 -*) as_dir=./$as_dir;;
15846 esac
15847 test -d "$as_dir" || eval $as_mkdir_p || {
15848 as_dirs=
15849 while :; do
15850 case $as_dir in #(
15851 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15852 *) as_qdir=$as_dir;;
15853 esac
15854 as_dirs="'$as_qdir' $as_dirs"
15855 as_dir=`$as_dirname -- "$as_dir" ||
15856 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15857 X"$as_dir" : 'X\(//\)[^/]' \| \
15858 X"$as_dir" : 'X\(//\)$' \| \
15859 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15860 $as_echo X"$as_dir" |
15861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15862 s//\1/
15865 /^X\(\/\/\)[^/].*/{
15866 s//\1/
15869 /^X\(\/\/\)$/{
15870 s//\1/
15873 /^X\(\/\).*/{
15874 s//\1/
15877 s/.*/./; q'`
15878 test -d "$as_dir" && break
15879 done
15880 test -z "$as_dirs" || eval "mkdir $as_dirs"
15881 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15884 } # as_fn_mkdir_p
15885 if mkdir -p . 2>/dev/null; then
15886 as_mkdir_p='mkdir -p "$as_dir"'
15887 else
15888 test -d ./-p && rmdir ./-p
15889 as_mkdir_p=false
15892 if test -x / >/dev/null 2>&1; then
15893 as_test_x='test -x'
15894 else
15895 if ls -dL / >/dev/null 2>&1; then
15896 as_ls_L_option=L
15897 else
15898 as_ls_L_option=
15900 as_test_x='
15901 eval sh -c '\''
15902 if test -d "$1"; then
15903 test -d "$1/.";
15904 else
15905 case $1 in #(
15906 -*)set "./$1";;
15907 esac;
15908 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15909 ???[sx]*):;;*)false;;esac;fi
15910 '\'' sh
15913 as_executable_p=$as_test_x
15915 # Sed expression to map a string onto a valid CPP name.
15916 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15918 # Sed expression to map a string onto a valid variable name.
15919 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15922 exec 6>&1
15923 ## ----------------------------------- ##
15924 ## Main body of $CONFIG_STATUS script. ##
15925 ## ----------------------------------- ##
15926 _ASEOF
15927 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15930 # Save the log message, to keep $0 and so on meaningful, and to
15931 # report actual input values of CONFIG_FILES etc. instead of their
15932 # values after options handling.
15933 ac_log="
15934 This file was extended by Wine $as_me 1.3.9, which was
15935 generated by GNU Autoconf 2.67. Invocation command line was
15937 CONFIG_FILES = $CONFIG_FILES
15938 CONFIG_HEADERS = $CONFIG_HEADERS
15939 CONFIG_LINKS = $CONFIG_LINKS
15940 CONFIG_COMMANDS = $CONFIG_COMMANDS
15941 $ $0 $@
15943 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15946 _ACEOF
15948 case $ac_config_files in *"
15949 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15950 esac
15952 case $ac_config_headers in *"
15953 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15954 esac
15957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15958 # Files that config.status was made for.
15959 config_files="$ac_config_files"
15960 config_headers="$ac_config_headers"
15961 config_links="$ac_config_links"
15962 config_commands="$ac_config_commands"
15964 _ACEOF
15966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15967 ac_cs_usage="\
15968 \`$as_me' instantiates files and other configuration actions
15969 from templates according to the current configuration. Unless the files
15970 and actions are specified as TAGs, all are instantiated by default.
15972 Usage: $0 [OPTION]... [TAG]...
15974 -h, --help print this help, then exit
15975 -V, --version print version number and configuration settings, then exit
15976 --config print configuration, then exit
15977 -q, --quiet, --silent
15978 do not print progress messages
15979 -d, --debug don't remove temporary files
15980 --recheck update $as_me by reconfiguring in the same conditions
15981 --file=FILE[:TEMPLATE]
15982 instantiate the configuration file FILE
15983 --header=FILE[:TEMPLATE]
15984 instantiate the configuration header FILE
15986 Configuration files:
15987 $config_files
15989 Configuration headers:
15990 $config_headers
15992 Configuration links:
15993 $config_links
15995 Configuration commands:
15996 $config_commands
15998 Report bugs to <wine-devel@winehq.org>.
15999 Wine home page: <http://www.winehq.org>."
16001 _ACEOF
16002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16003 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16004 ac_cs_version="\\
16005 Wine config.status 1.3.9
16006 configured by $0, generated by GNU Autoconf 2.67,
16007 with options \\"\$ac_cs_config\\"
16009 Copyright (C) 2010 Free Software Foundation, Inc.
16010 This config.status script is free software; the Free Software Foundation
16011 gives unlimited permission to copy, distribute and modify it."
16013 ac_pwd='$ac_pwd'
16014 srcdir='$srcdir'
16015 INSTALL='$INSTALL'
16016 test -n "\$AWK" || AWK=awk
16017 _ACEOF
16019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020 # The default lists apply if the user does not specify any file.
16021 ac_need_defaults=:
16022 while test $# != 0
16024 case $1 in
16025 --*=?*)
16026 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16027 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16028 ac_shift=:
16030 --*=)
16031 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16032 ac_optarg=
16033 ac_shift=:
16036 ac_option=$1
16037 ac_optarg=$2
16038 ac_shift=shift
16040 esac
16042 case $ac_option in
16043 # Handling of the options.
16044 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16045 ac_cs_recheck=: ;;
16046 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16047 $as_echo "$ac_cs_version"; exit ;;
16048 --config | --confi | --conf | --con | --co | --c )
16049 $as_echo "$ac_cs_config"; exit ;;
16050 --debug | --debu | --deb | --de | --d | -d )
16051 debug=: ;;
16052 --file | --fil | --fi | --f )
16053 $ac_shift
16054 case $ac_optarg in
16055 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16056 '') as_fn_error $? "missing file argument" ;;
16057 esac
16058 as_fn_append CONFIG_FILES " '$ac_optarg'"
16059 ac_need_defaults=false;;
16060 --header | --heade | --head | --hea )
16061 $ac_shift
16062 case $ac_optarg in
16063 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16064 esac
16065 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16066 ac_need_defaults=false;;
16067 --he | --h)
16068 # Conflict between --help and --header
16069 as_fn_error $? "ambiguous option: \`$1'
16070 Try \`$0 --help' for more information.";;
16071 --help | --hel | -h )
16072 $as_echo "$ac_cs_usage"; exit ;;
16073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16074 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16075 ac_cs_silent=: ;;
16077 # This is an error.
16078 -*) as_fn_error $? "unrecognized option: \`$1'
16079 Try \`$0 --help' for more information." ;;
16081 *) as_fn_append ac_config_targets " $1"
16082 ac_need_defaults=false ;;
16084 esac
16085 shift
16086 done
16088 ac_configure_extra_args=
16090 if $ac_cs_silent; then
16091 exec 6>/dev/null
16092 ac_configure_extra_args="$ac_configure_extra_args --silent"
16095 _ACEOF
16096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16097 if \$ac_cs_recheck; then
16098 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16099 shift
16100 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16101 CONFIG_SHELL='$SHELL'
16102 export CONFIG_SHELL
16103 exec "\$@"
16106 _ACEOF
16107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16108 exec 5>>config.log
16110 echo
16111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16112 ## Running $as_me. ##
16113 _ASBOX
16114 $as_echo "$ac_log"
16115 } >&5
16117 _ACEOF
16118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16120 # INIT-COMMANDS
16122 wine_fn_output_makefile ()
16124 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16125 $ALL_MAKEFILE_DEPENDS
16126 _WINE_EOF
16127 as_fn_error $? "could not create Makefile" "$LINENO" 5
16130 _ACEOF
16132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16134 # Handling of arguments.
16135 for ac_config_target in $ac_config_targets
16137 case $ac_config_target in
16138 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16139 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16140 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16141 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16142 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16143 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16144 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16145 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16146 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16147 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16148 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16149 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16150 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16151 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16152 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16153 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16154 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16155 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16156 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16157 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16158 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16159 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16160 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16162 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16163 esac
16164 done
16167 # If the user did not use the arguments to specify the items to instantiate,
16168 # then the envvar interface is used. Set only those that are not.
16169 # We use the long form for the default assignment because of an extremely
16170 # bizarre bug on SunOS 4.1.3.
16171 if $ac_need_defaults; then
16172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16174 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16178 # Have a temporary directory for convenience. Make it in the build tree
16179 # simply because there is no reason against having it here, and in addition,
16180 # creating and moving files from /tmp can sometimes cause problems.
16181 # Hook for its removal unless debugging.
16182 # Note that there is a small window in which the directory will not be cleaned:
16183 # after its creation but before its name has been assigned to `$tmp'.
16184 $debug ||
16186 tmp=
16187 trap 'exit_status=$?
16188 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16190 trap 'as_fn_exit 1' 1 2 13 15
16192 # Create a (secure) tmp directory for tmp files.
16195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16196 test -n "$tmp" && test -d "$tmp"
16197 } ||
16199 tmp=./conf$$-$RANDOM
16200 (umask 077 && mkdir "$tmp")
16201 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16203 # Set up the scripts for CONFIG_FILES section.
16204 # No need to generate them if there are no CONFIG_FILES.
16205 # This happens for instance with `./config.status config.h'.
16206 if test -n "$CONFIG_FILES"; then
16208 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16209 ac_cs_awk_getline=:
16210 ac_cs_awk_pipe_init=
16211 ac_cs_awk_read_file='
16212 while ((getline aline < (F[key])) > 0)
16213 print(aline)
16214 close(F[key])'
16215 ac_cs_awk_pipe_fini=
16216 else
16217 ac_cs_awk_getline=false
16218 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16219 ac_cs_awk_read_file='
16220 print "|#_!!_#|"
16221 print "cat " F[key] " &&"
16222 '$ac_cs_awk_pipe_init
16223 # The final `:' finishes the AND list.
16224 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16226 ac_cr=`echo X | tr X '\015'`
16227 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16228 # But we know of no other shell where ac_cr would be empty at this
16229 # point, so we can use a bashism as a fallback.
16230 if test "x$ac_cr" = x; then
16231 eval ac_cr=\$\'\\r\'
16233 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16234 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16235 ac_cs_awk_cr='\\r'
16236 else
16237 ac_cs_awk_cr=$ac_cr
16240 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16241 _ACEOF
16243 # Create commands to substitute file output variables.
16245 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16246 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16247 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16248 echo "_ACAWK" &&
16249 echo "_ACEOF"
16250 } >conf$$files.sh &&
16251 . ./conf$$files.sh ||
16252 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16253 rm -f conf$$files.sh
16256 echo "cat >conf$$subs.awk <<_ACEOF" &&
16257 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16258 echo "_ACEOF"
16259 } >conf$$subs.sh ||
16260 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16261 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16262 ac_delim='%!_!# '
16263 for ac_last_try in false false false false false :; do
16264 . ./conf$$subs.sh ||
16265 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16267 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16268 if test $ac_delim_n = $ac_delim_num; then
16269 break
16270 elif $ac_last_try; then
16271 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16272 else
16273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16275 done
16276 rm -f conf$$subs.sh
16278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16279 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16280 _ACEOF
16281 sed -n '
16283 s/^/S["/; s/!.*/"]=/
16286 s/^[^!]*!//
16287 :repl
16288 t repl
16289 s/'"$ac_delim"'$//
16290 t delim
16293 s/\(.\{148\}\)..*/\1/
16294 t more1
16295 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16298 b repl
16299 :more1
16300 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16303 s/.\{148\}//
16304 t nl
16305 :delim
16307 s/\(.\{148\}\)..*/\1/
16308 t more2
16309 s/["\\]/\\&/g; s/^/"/; s/$/"/
16312 :more2
16313 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16316 s/.\{148\}//
16317 t delim
16318 ' <conf$$subs.awk | sed '
16319 /^[^""]/{
16321 s/\n//
16323 ' >>$CONFIG_STATUS || ac_write_fail=1
16324 rm -f conf$$subs.awk
16325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16326 _ACAWK
16327 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16328 for (key in S) S_is_set[key] = 1
16329 FS = "\a"
16330 \$ac_cs_awk_pipe_init
16333 line = $ 0
16334 nfields = split(line, field, "@")
16335 substed = 0
16336 len = length(field[1])
16337 for (i = 2; i < nfields; i++) {
16338 key = field[i]
16339 keylen = length(key)
16340 if (S_is_set[key]) {
16341 value = S[key]
16342 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16343 len += length(value) + length(field[++i])
16344 substed = 1
16345 } else
16346 len += 1 + keylen
16348 if (nfields == 3 && !substed) {
16349 key = field[2]
16350 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16351 \$ac_cs_awk_read_file
16352 next
16355 print line
16357 \$ac_cs_awk_pipe_fini
16358 _ACAWK
16359 _ACEOF
16360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16361 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16362 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16363 else
16365 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16366 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16367 _ACEOF
16369 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16370 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16371 # trailing colons and then remove the whole line if VPATH becomes empty
16372 # (actually we leave an empty line to preserve line numbers).
16373 if test "x$srcdir" = x.; then
16374 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16376 s///
16377 s/^/:/
16378 s/[ ]*$/:/
16379 s/:\$(srcdir):/:/g
16380 s/:\${srcdir}:/:/g
16381 s/:@srcdir@:/:/g
16382 s/^:*//
16383 s/:*$//
16385 s/\(=[ ]*\).*/\1/
16387 s/\n//
16388 s/^[^=]*=[ ]*$//
16392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16393 fi # test -n "$CONFIG_FILES"
16395 # Set up the scripts for CONFIG_HEADERS section.
16396 # No need to generate them if there are no CONFIG_HEADERS.
16397 # This happens for instance with `./config.status Makefile'.
16398 if test -n "$CONFIG_HEADERS"; then
16399 cat >"$tmp/defines.awk" <<\_ACAWK ||
16400 BEGIN {
16401 _ACEOF
16403 # Transform confdefs.h into an awk script `defines.awk', embedded as
16404 # here-document in config.status, that substitutes the proper values into
16405 # config.h.in to produce config.h.
16407 # Create a delimiter string that does not exist in confdefs.h, to ease
16408 # handling of long lines.
16409 ac_delim='%!_!# '
16410 for ac_last_try in false false :; do
16411 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16412 if test -z "$ac_t"; then
16413 break
16414 elif $ac_last_try; then
16415 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16416 else
16417 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16419 done
16421 # For the awk script, D is an array of macro values keyed by name,
16422 # likewise P contains macro parameters if any. Preserve backslash
16423 # newline sequences.
16425 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16426 sed -n '
16427 s/.\{148\}/&'"$ac_delim"'/g
16428 t rset
16429 :rset
16430 s/^[ ]*#[ ]*define[ ][ ]*/ /
16431 t def
16433 :def
16434 s/\\$//
16435 t bsnl
16436 s/["\\]/\\&/g
16437 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16438 D["\1"]=" \3"/p
16439 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16441 :bsnl
16442 s/["\\]/\\&/g
16443 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16444 D["\1"]=" \3\\\\\\n"\\/p
16445 t cont
16446 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16447 t cont
16449 :cont
16451 s/.\{148\}/&'"$ac_delim"'/g
16452 t clear
16453 :clear
16454 s/\\$//
16455 t bsnlc
16456 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16458 :bsnlc
16459 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16460 b cont
16461 ' <confdefs.h | sed '
16462 s/'"$ac_delim"'/"\\\
16463 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16466 for (key in D) D_is_set[key] = 1
16467 FS = "\a"
16469 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16470 line = \$ 0
16471 split(line, arg, " ")
16472 if (arg[1] == "#") {
16473 defundef = arg[2]
16474 mac1 = arg[3]
16475 } else {
16476 defundef = substr(arg[1], 2)
16477 mac1 = arg[2]
16479 split(mac1, mac2, "(") #)
16480 macro = mac2[1]
16481 prefix = substr(line, 1, index(line, defundef) - 1)
16482 if (D_is_set[macro]) {
16483 # Preserve the white space surrounding the "#".
16484 print prefix "define", macro P[macro] D[macro]
16485 next
16486 } else {
16487 # Replace #undef with comments. This is necessary, for example,
16488 # in the case of _POSIX_SOURCE, which is predefined and required
16489 # on some systems where configure will not decide to define it.
16490 if (defundef == "undef") {
16491 print "/*", prefix defundef, macro, "*/"
16492 next
16496 { print }
16497 _ACAWK
16498 _ACEOF
16499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16500 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16501 fi # test -n "$CONFIG_HEADERS"
16504 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16505 shift
16506 for ac_tag
16508 case $ac_tag in
16509 :[FHLC]) ac_mode=$ac_tag; continue;;
16510 esac
16511 case $ac_mode$ac_tag in
16512 :[FHL]*:*);;
16513 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16514 :[FH]-) ac_tag=-:-;;
16515 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16516 esac
16517 ac_save_IFS=$IFS
16518 IFS=:
16519 set x $ac_tag
16520 IFS=$ac_save_IFS
16521 shift
16522 ac_file=$1
16523 shift
16525 case $ac_mode in
16526 :L) ac_source=$1;;
16527 :[FH])
16528 ac_file_inputs=
16529 for ac_f
16531 case $ac_f in
16532 -) ac_f="$tmp/stdin";;
16533 *) # Look for the file first in the build tree, then in the source tree
16534 # (if the path is not absolute). The absolute path cannot be DOS-style,
16535 # because $ac_f cannot contain `:'.
16536 test -f "$ac_f" ||
16537 case $ac_f in
16538 [\\/$]*) false;;
16539 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16540 esac ||
16541 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16542 esac
16543 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16544 as_fn_append ac_file_inputs " '$ac_f'"
16545 done
16547 # Let's still pretend it is `configure' which instantiates (i.e., don't
16548 # use $as_me), people would be surprised to read:
16549 # /* config.h. Generated by config.status. */
16550 configure_input='Generated from '`
16551 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16552 `' by configure.'
16553 if test x"$ac_file" != x-; then
16554 configure_input="$ac_file. $configure_input"
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16556 $as_echo "$as_me: creating $ac_file" >&6;}
16558 # Neutralize special characters interpreted by sed in replacement strings.
16559 case $configure_input in #(
16560 *\&* | *\|* | *\\* )
16561 ac_sed_conf_input=`$as_echo "$configure_input" |
16562 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16563 *) ac_sed_conf_input=$configure_input;;
16564 esac
16566 case $ac_tag in
16567 *:-:* | *:-) cat >"$tmp/stdin" \
16568 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16569 esac
16571 esac
16573 ac_dir=`$as_dirname -- "$ac_file" ||
16574 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16575 X"$ac_file" : 'X\(//\)[^/]' \| \
16576 X"$ac_file" : 'X\(//\)$' \| \
16577 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16578 $as_echo X"$ac_file" |
16579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16580 s//\1/
16583 /^X\(\/\/\)[^/].*/{
16584 s//\1/
16587 /^X\(\/\/\)$/{
16588 s//\1/
16591 /^X\(\/\).*/{
16592 s//\1/
16595 s/.*/./; q'`
16596 as_dir="$ac_dir"; as_fn_mkdir_p
16597 ac_builddir=.
16599 case "$ac_dir" in
16600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16602 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16603 # A ".." for each directory in $ac_dir_suffix.
16604 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16605 case $ac_top_builddir_sub in
16606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16608 esac ;;
16609 esac
16610 ac_abs_top_builddir=$ac_pwd
16611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16612 # for backward compatibility:
16613 ac_top_builddir=$ac_top_build_prefix
16615 case $srcdir in
16616 .) # We are building in place.
16617 ac_srcdir=.
16618 ac_top_srcdir=$ac_top_builddir_sub
16619 ac_abs_top_srcdir=$ac_pwd ;;
16620 [\\/]* | ?:[\\/]* ) # Absolute name.
16621 ac_srcdir=$srcdir$ac_dir_suffix;
16622 ac_top_srcdir=$srcdir
16623 ac_abs_top_srcdir=$srcdir ;;
16624 *) # Relative name.
16625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16626 ac_top_srcdir=$ac_top_build_prefix$srcdir
16627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16628 esac
16629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16632 case $ac_mode in
16635 # CONFIG_FILE
16638 case $INSTALL in
16639 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16640 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16641 esac
16642 _ACEOF
16644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16645 # If the template does not know about datarootdir, expand it.
16646 # FIXME: This hack should be removed a few years after 2.60.
16647 ac_datarootdir_hack=; ac_datarootdir_seen=
16648 ac_sed_dataroot='
16649 /datarootdir/ {
16653 /@datadir@/p
16654 /@docdir@/p
16655 /@infodir@/p
16656 /@localedir@/p
16657 /@mandir@/p'
16658 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16659 *datarootdir*) ac_datarootdir_seen=yes;;
16660 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16662 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16663 _ACEOF
16664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16665 ac_datarootdir_hack='
16666 s&@datadir@&$datadir&g
16667 s&@docdir@&$docdir&g
16668 s&@infodir@&$infodir&g
16669 s&@localedir@&$localedir&g
16670 s&@mandir@&$mandir&g
16671 s&\\\${datarootdir}&$datarootdir&g' ;;
16672 esac
16673 _ACEOF
16675 # Neutralize VPATH when `$srcdir' = `.'.
16676 # Shell code in configure.ac might set extrasub.
16677 # FIXME: do we really want to maintain this feature?
16678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16679 ac_sed_extra="$ac_vpsub
16680 $extrasub
16681 _ACEOF
16682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16685 s|@configure_input@|$ac_sed_conf_input|;t t
16686 s&@top_builddir@&$ac_top_builddir_sub&;t t
16687 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16688 s&@srcdir@&$ac_srcdir&;t t
16689 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16690 s&@top_srcdir@&$ac_top_srcdir&;t t
16691 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16692 s&@builddir@&$ac_builddir&;t t
16693 s&@abs_builddir@&$ac_abs_builddir&;t t
16694 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16695 s&@INSTALL@&$ac_INSTALL&;t t
16696 $ac_datarootdir_hack
16698 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16699 if $ac_cs_awk_getline; then
16700 $AWK -f "$tmp/subs.awk"
16701 else
16702 $AWK -f "$tmp/subs.awk" | $SHELL
16703 fi >$tmp/out \
16704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16706 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16707 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16708 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16710 which seems to be undefined. Please make sure it is defined" >&5
16711 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16712 which seems to be undefined. Please make sure it is defined" >&2;}
16714 rm -f "$tmp/stdin"
16715 case $ac_file in
16716 -) cat "$tmp/out" && rm -f "$tmp/out";;
16717 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16718 esac \
16719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16723 # CONFIG_HEADER
16725 if test x"$ac_file" != x-; then
16727 $as_echo "/* $configure_input */" \
16728 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16729 } >"$tmp/config.h" \
16730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16731 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16733 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16734 else
16735 rm -f "$ac_file"
16736 mv "$tmp/config.h" "$ac_file" \
16737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16739 else
16740 $as_echo "/* $configure_input */" \
16741 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16742 || as_fn_error $? "could not create -" "$LINENO" 5
16747 # CONFIG_LINK
16750 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16752 else
16753 # Prefer the file from the source tree if names are identical.
16754 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16755 ac_source=$srcdir/$ac_source
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16759 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16761 if test ! -r "$ac_source"; then
16762 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16764 rm -f "$ac_file"
16766 # Try a relative symlink, then a hard link, then a copy.
16767 case $ac_source in
16768 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16769 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16770 esac
16771 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16772 ln "$ac_source" "$ac_file" 2>/dev/null ||
16773 cp -p "$ac_source" "$ac_file" ||
16774 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16777 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16778 $as_echo "$as_me: executing $ac_file commands" >&6;}
16780 esac
16783 case $ac_file$ac_mode in
16784 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16785 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16786 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16787 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16788 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16789 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16790 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16791 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16792 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16793 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16794 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16795 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16796 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16797 "Makefile":C) wine_fn_output_makefile Makefile ;;
16799 esac
16800 done # for ac_tag
16803 as_fn_exit 0
16804 _ACEOF
16805 ac_clean_files=$ac_clean_files_save
16807 test $ac_write_fail = 0 ||
16808 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16811 # configure is writing to config.log, and then calls config.status.
16812 # config.status does its own redirection, appending to config.log.
16813 # Unfortunately, on DOS this fails, as config.log is still kept open
16814 # by configure, so config.status won't be able to write to it; its
16815 # output is simply discarded. So we exec the FD to /dev/null,
16816 # effectively closing config.log, so it can be properly (re)opened and
16817 # appended to by config.status. When coming back to configure, we
16818 # need to make the FD available again.
16819 if test "$no_create" != yes; then
16820 ac_cs_success=:
16821 ac_config_status_args=
16822 test "$silent" = yes &&
16823 ac_config_status_args="$ac_config_status_args --quiet"
16824 exec 5>/dev/null
16825 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16826 exec 5>>config.log
16827 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16828 # would make configure fail if this is the last instruction.
16829 $ac_cs_success || as_fn_exit 1
16831 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16833 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16837 if test "$no_create" = "yes"
16838 then
16839 exit 0
16842 ac_save_IFS="$IFS"
16843 if test "x$wine_notices != "x; then
16844 echo >&6
16845 IFS="|"
16846 for msg in $wine_notices; do
16847 IFS="$ac_save_IFS"
16848 if test -n "$msg"; then
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16850 $as_echo "$as_me: $msg" >&6;}
16852 done
16854 IFS="|"
16855 for msg in $wine_warnings; do
16856 IFS="$ac_save_IFS"
16857 if test -n "$msg"; then
16858 echo >&2
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16860 $as_echo "$as_me: WARNING: $msg" >&2;}
16862 done
16863 IFS="$ac_save_IFS"
16865 echo "
16866 $as_me: Finished. Do '${ac_make}' to compile Wine.
16867 " >&6