user32: Use the windows created by the SetParent() test to get a more predictable...
[wine/multimedia.git] / configure
blob14b4caa4fd62e8bfa0a9909cdcf3130eff3c016d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Wine 1.3.13.
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.13'
556 PACKAGE_STRING='Wine 1.3.13'
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 LINGUAS
600 ALL_TEST_BINARIES
601 ALL_WINETEST_DEPENDS
602 LDAPLIBS
603 LIBPOLL
604 LIBDL
605 EXTRA_BINARIES
606 MAIN_BINARY
607 SOCKETLIBS
608 CRTLIBS
609 TOOLSEXT
610 LDPATH
611 UNWINDFLAGS
612 BUILTINFLAG
613 EXTRACFLAGS
614 LIBKSTAT
615 LIBOPENAL
616 LIBMPG123
617 PNGINCL
618 FONTCONFIGINCL
619 CUPSINCL
620 ALSALIBS
621 GSTREAMER_INCL
622 GSTREAMER_LIBS
623 ESDLIBS
624 ESDINCL
625 ESDCONFIG
626 LIBGETTEXTPO
627 ZLIB
628 FREETYPEINCL
629 FREETYPELIBS
630 ft_devel
631 LCMSLIBS
632 RESOLVLIBS
633 GPHOTO2INCL
634 GPHOTO2LIBS
635 gphoto2port_devel
636 gphoto2_devel
637 SANEINCL
638 sane_devel
639 GNUTLSINCL
640 HALINCL
641 XSLTINCL
642 XML2INCL
643 XML2LIBS
644 NASLIBS
645 X_EXTRA_LIBS
646 X_LIBS
647 X_PRE_LIBS
648 X_CFLAGS
649 XMKMF
650 LIBPTHREAD
651 CROSSTARGET
652 CROSSCC
653 CROSSTEST_DISABLE
654 PRELINK
655 CARBONLIB
656 QUICKTIMELIB
657 LIBOPENCL
658 FRAMEWORK_OPENAL
659 COREAUDIO
660 DISKARBITRATIONLIB
661 LDEXECFLAGS
662 APPLICATIONSERVICESLIB
663 IOKITLIB
664 COREFOUNDATIONLIB
665 SECURITYLIB
666 DLLWRAP
667 DLLTOOL
669 LDRPATH_LOCAL
670 LDRPATH_INSTALL
671 IMPLIBEXT
672 LIBEXT
673 LDDLLFLAGS
674 LDSHARED
675 DLLFLAGS
676 DLLEXT
678 OPENGL_LIBS
679 XLIB
680 MAINTAINER_MODE
681 ICOTOOL
682 CONVERT
683 RSVG
684 PKG_CONFIG
685 FONTFORGE
686 LINTFLAGS
687 LINT
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 LDCONFIG
692 EGREP
693 GREP
694 LN_S
695 STRIP
696 RANLIB
697 ARFLAGS
698 ac_ct_AR
700 BISON
701 FLEX
702 TOOLSDIR
703 WOW64_DISABLE
704 TARGETFLAGS
705 CPPBIN
706 ac_ct_CXX
707 CXXFLAGS
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
716 SET_MAKE
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files='MAKE_RULES
764 MAKE_TEST_RULES
765 MAKE_DLL_RULES
766 MAKE_IMPLIB_RULES
767 MAKE_PROG_RULES'
768 ac_user_opts='
769 enable_option_checking
770 enable_win16
771 enable_win64
772 enable_tests
773 enable_maintainer_mode
774 with_alsa
775 with_capi
776 with_cms
777 with_coreaudio
778 with_cups
779 with_curses
780 with_esd
781 with_fontconfig
782 with_freetype
783 with_gettextpo
784 with_gphoto
785 with_glu
786 with_gnutls
787 with_gsm
788 with_gstreamer
789 with_hal
790 with_jack
791 with_jpeg
792 with_ldap
793 with_mpg123
794 with_nas
795 with_openal
796 with_opencl
797 with_opengl
798 with_openssl
799 with_oss
800 with_png
801 with_pthread
802 with_sane
803 with_tiff
804 with_v4l
805 with_xcomposite
806 with_xcursor
807 with_xinerama
808 with_xinput
809 with_xml
810 with_xrandr
811 with_xrender
812 with_xshape
813 with_xshm
814 with_xslt
815 with_xxf86vm
816 with_zlib
817 with_wine_tools
818 with_wine64
819 enable_largefile
820 with_x
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
831 CXXFLAGS
834 XMKMF'
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
885 ac_prev=
886 ac_dashdash=
887 for ac_option
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
902 # Accept the important Cygnus configure options, so we can diagnose typos.
904 case $ac_dashdash$ac_option in
906 ac_dashdash=yes ;;
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
925 --config-cache | -C)
926 cache_file=config.cache ;;
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242 esac
1243 done
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used" >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1329 /^X\(\/\/\)$/{
1330 s//\1/
1333 /^X\(\/\).*/{
1334 s//\1/
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1342 else
1343 ac_srcdir_defaulted=no
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1371 # Report the --help message.
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377 \`configure' configures Wine 1.3.13 to adapt to many kinds of systems.
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1384 Defaults for the options are specified in brackets.
1386 Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1408 For better control, use the options below.
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430 _ACEOF
1432 cat <<\_ACEOF
1434 X features:
1435 --x-includes=DIR X include files are in DIR
1436 --x-libraries=DIR X library files are in DIR
1438 System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 _ACEOF
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of Wine 1.3.13:";;
1447 esac
1448 cat <<\_ACEOF
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --disable-win16 do not include Win16 support
1455 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1456 binaries)
1457 --disable-tests do not build the regression tests
1458 --enable-maintainer-mode
1459 enable maintainer-specific build rules
1460 --disable-largefile omit support for large files
1462 Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --without-alsa do not use the Alsa sound support
1466 --without-capi do not use CAPI (ISDN support)
1467 --without-cms do not use CMS (color management support)
1468 --without-coreaudio do not use the CoreAudio sound support
1469 --without-cups do not use CUPS
1470 --without-curses do not use (n)curses
1471 --without-esd do not use the EsounD sound support
1472 --without-fontconfig do not use fontconfig
1473 --without-freetype do not use the FreeType library
1474 --without-gettextpo do not use the GetTextPO library
1475 --without-gphoto do not use gphoto (Digital Camera support)
1476 --without-glu do not use the GLU library
1477 --without-gnutls do not use GnuTLS (schannel support)
1478 --without-gsm do not use libgsm (GSM 06.10 codec support)
1479 --without-gstreamer do not use GStreamer (codecs support)
1480 --without-hal do not use HAL (dynamic device support)
1481 --without-jack do not use the Jack sound support
1482 --without-jpeg do not use JPEG
1483 --without-ldap do not use LDAP
1484 --without-mpg123 do not use the mpg123 library
1485 --without-nas do not use the NAS sound support
1486 --without-openal do not use OpenAL
1487 --without-opencl do not use OpenCL
1488 --without-opengl do not use OpenGL
1489 --without-openssl do not use OpenSSL
1490 --without-oss do not use the OSS sound support
1491 --without-png do not use PNG
1492 --without-pthread do not use the pthread library
1493 --without-sane do not use SANE (scanner support)
1494 --without-tiff do not use TIFF
1495 --without-v4l do not use v4l1 (v4l support)
1496 --without-xcomposite do not use the Xcomposite extension
1497 --without-xcursor do not use the Xcursor extension
1498 --without-xinerama do not use Xinerama (multi-monitor support)
1499 --without-xinput do not use the Xinput extension
1500 --without-xml do not use XML
1501 --without-xrandr do not use Xrandr (resolution changes)
1502 --without-xrender do not use the Xrender extension
1503 --without-xshape do not use the Xshape extension
1504 --without-xshm do not use XShm (shared memory extension)
1505 --without-xslt do not use XSLT
1506 --without-xxf86vm do not use XFree video mode extension
1507 --without-zlib do not use Zlib (data compression)
1508 --with-wine-tools=DIR use Wine tools from directory DIR
1509 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1510 --with-x use the X Window System
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CXX C++ compiler command
1521 CXXFLAGS C++ compiler flags
1522 CPP C preprocessor
1523 XMKMF Path to xmkmf, Makefile generator for X Window System
1525 Use these variables to override the choices made by `configure' or to help
1526 it to find libraries and programs with nonstandard names/locations.
1528 Report bugs to <wine-devel@winehq.org>.
1529 Wine home page: <http://www.winehq.org>.
1530 _ACEOF
1531 ac_status=$?
1534 if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537 test -d "$ac_dir" ||
1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539 continue
1540 ac_builddir=.
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1558 case $srcdir in
1559 .) # We are building in place.
1560 ac_srcdir=.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1567 *) # Relative name.
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1582 else
1583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 fi || ac_status=$?
1585 cd "$ac_pwd" || { ac_status=$?; break; }
1586 done
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591 cat <<\_ACEOF
1592 Wine configure 1.3.13
1593 generated by GNU Autoconf 2.67
1595 Copyright (C) 2010 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext
1613 if { { ac_try="$ac_compile"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext; then :
1632 ac_retval=0
1633 else
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1637 ac_retval=1
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 as_fn_set_status $ac_retval
1642 } # ac_fn_c_try_compile
1644 # ac_fn_cxx_try_compile LINENO
1645 # ----------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_cxx_try_compile ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext
1651 if { { ac_try="$ac_compile"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_compile") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_cxx_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest.$ac_objext; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1675 ac_retval=1
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678 as_fn_set_status $ac_retval
1680 } # ac_fn_cxx_try_compile
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_link ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 $as_test_x conftest$ac_exeext
1710 }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 ac_retval=1
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 as_fn_set_status $ac_retval
1726 } # ac_fn_c_try_link
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_cpp ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } > conftest.i && {
1750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1758 ac_retval=1
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 as_fn_set_status $ac_retval
1763 } # ac_fn_c_try_cpp
1765 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1768 # the include files in INCLUDES and setting the cache variable VAR
1769 # accordingly.
1770 ac_fn_c_check_header_mongrel ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if eval "test \"\${$3+set}\"" = set; then :
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval "test \"\${$3+set}\"" = set; then :
1777 $as_echo_n "(cached) " >&6
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 else
1783 # Is the header compilable?
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1785 $as_echo_n "checking $2 usability... " >&6; }
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1789 #include <$2>
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792 ac_header_compiler=yes
1793 else
1794 ac_header_compiler=no
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1798 $as_echo "$ac_header_compiler" >&6; }
1800 # Is the header present?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1802 $as_echo_n "checking $2 presence... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_cpp "$LINENO"; then :
1808 ac_header_preproc=yes
1809 else
1810 ac_header_preproc=no
1812 rm -f conftest.err conftest.i conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1814 $as_echo "$ac_header_preproc" >&6; }
1816 # So? What about this header?
1817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1818 yes:no: )
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1820 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824 no:yes:* )
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1826 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1828 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1830 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1832 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ( $as_echo "## ------------------------------------ ##
1836 ## Report this to wine-devel@winehq.org ##
1837 ## ------------------------------------ ##"
1838 ) | sed "s/^/$as_me: WARNING: /" >&2
1840 esac
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval "test \"\${$3+set}\"" = set; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 eval "$3=\$ac_header_compiler"
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 } # ac_fn_c_check_header_mongrel
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1860 ac_fn_c_try_run ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_link"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_link") 2>&5
1871 ac_status=$?
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874 { { case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_try") 2>&5
1881 ac_status=$?
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; }; }; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: program exited with status $ac_status" >&5
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 ac_retval=$ac_status
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 as_fn_set_status $ac_retval
1896 } # ac_fn_c_try_run
1898 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists and can be compiled using the include files in
1901 # INCLUDES, setting the cache variable VAR accordingly.
1902 ac_fn_c_check_header_compile ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval "test \"\${$3+set}\"" = set; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 eval "$3=yes"
1917 else
1918 eval "$3=no"
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927 } # ac_fn_c_check_header_compile
1929 # ac_fn_c_check_func LINENO FUNC VAR
1930 # ----------------------------------
1931 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1932 ac_fn_c_check_func ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval "test \"\${$3+set}\"" = set; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1944 #define $2 innocuous_$2
1946 /* System header to define __stub macros and hopefully few prototypes,
1947 which can conflict with char $2 (); below.
1948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1949 <limits.h> exists even on freestanding compilers. */
1951 #ifdef __STDC__
1952 # include <limits.h>
1953 #else
1954 # include <assert.h>
1955 #endif
1957 #undef $2
1959 /* Override any GCC internal prototype to avoid an error.
1960 Use char because int might match the return type of a GCC
1961 builtin and then its argument prototype would still apply. */
1962 #ifdef __cplusplus
1963 extern "C"
1964 #endif
1965 char $2 ();
1966 /* The GNU C library defines this for functions which it implements
1967 to always fail with ENOSYS. Some functions are actually named
1968 something starting with __ and the normal name is an alias. */
1969 #if defined __stub_$2 || defined __stub___$2
1970 choke me
1971 #endif
1974 main ()
1976 return $2 ();
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_link "$LINENO"; then :
1982 eval "$3=yes"
1983 else
1984 eval "$3=no"
1986 rm -f core conftest.err conftest.$ac_objext \
1987 conftest$ac_exeext conftest.$ac_ext
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1994 } # ac_fn_c_check_func
1996 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1997 # ----------------------------------------------------
1998 # Tries to find if the field MEMBER exists in type AGGR, after including
1999 # INCLUDES, setting cache variable VAR accordingly.
2000 ac_fn_c_check_member ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2004 $as_echo_n "checking for $2.$3... " >&6; }
2005 if eval "test \"\${$4+set}\"" = set; then :
2006 $as_echo_n "(cached) " >&6
2007 else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2012 main ()
2014 static $2 ac_aggr;
2015 if (ac_aggr.$3)
2016 return 0;
2018 return 0;
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 eval "$4=yes"
2023 else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2028 main ()
2030 static $2 ac_aggr;
2031 if (sizeof ac_aggr.$3)
2032 return 0;
2034 return 0;
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 eval "$4=yes"
2039 else
2040 eval "$4=no"
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 eval ac_res=\$$4
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 } # ac_fn_c_check_member
2053 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2054 # -------------------------------------------
2055 # Tests whether TYPE exists after having included INCLUDES, setting cache
2056 # variable VAR accordingly.
2057 ac_fn_c_check_type ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval "test \"\${$3+set}\"" = set; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 eval "$3=no"
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 if (sizeof ($2))
2073 return 0;
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2083 main ()
2085 if (sizeof (($2)))
2086 return 0;
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2093 else
2094 eval "$3=yes"
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105 } # ac_fn_c_check_type
2106 cat >config.log <<_ACEOF
2107 This file contains any messages produced by compilers while
2108 running configure, to aid debugging if configure makes a mistake.
2110 It was created by Wine $as_me 1.3.13, which was
2111 generated by GNU Autoconf 2.67. Invocation command line was
2113 $ $0 $@
2115 _ACEOF
2116 exec 5>>config.log
2118 cat <<_ASUNAME
2119 ## --------- ##
2120 ## Platform. ##
2121 ## --------- ##
2123 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2124 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2125 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2126 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2127 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2129 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2130 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2132 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2133 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2134 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2135 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2136 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2137 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2138 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2140 _ASUNAME
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 $as_echo "PATH: $as_dir"
2148 done
2149 IFS=$as_save_IFS
2151 } >&5
2153 cat >&5 <<_ACEOF
2156 ## ----------- ##
2157 ## Core tests. ##
2158 ## ----------- ##
2160 _ACEOF
2163 # Keep a trace of the command line.
2164 # Strip out --no-create and --no-recursion so they do not pile up.
2165 # Strip out --silent because we don't want to record it for future runs.
2166 # Also quote any args containing shell meta-characters.
2167 # Make two passes to allow for proper duplicate-argument suppression.
2168 ac_configure_args=
2169 ac_configure_args0=
2170 ac_configure_args1=
2171 ac_must_keep_next=false
2172 for ac_pass in 1 2
2174 for ac_arg
2176 case $ac_arg in
2177 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2179 | -silent | --silent | --silen | --sile | --sil)
2180 continue ;;
2181 *\'*)
2182 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2183 esac
2184 case $ac_pass in
2185 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2187 as_fn_append ac_configure_args1 " '$ac_arg'"
2188 if test $ac_must_keep_next = true; then
2189 ac_must_keep_next=false # Got value, back to normal.
2190 else
2191 case $ac_arg in
2192 *=* | --config-cache | -C | -disable-* | --disable-* \
2193 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2194 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2195 | -with-* | --with-* | -without-* | --without-* | --x)
2196 case "$ac_configure_args0 " in
2197 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2198 esac
2200 -* ) ac_must_keep_next=true ;;
2201 esac
2203 as_fn_append ac_configure_args " '$ac_arg'"
2205 esac
2206 done
2207 done
2208 { ac_configure_args0=; unset ac_configure_args0;}
2209 { ac_configure_args1=; unset ac_configure_args1;}
2211 # When interrupted or exit'd, cleanup temporary files, and complete
2212 # config.log. We remove comments because anyway the quotes in there
2213 # would cause problems or look ugly.
2214 # WARNING: Use '\'' to represent an apostrophe within the trap.
2215 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2216 trap 'exit_status=$?
2217 # Save into config.log some information that might help in debugging.
2219 echo
2221 $as_echo "## ---------------- ##
2222 ## Cache variables. ##
2223 ## ---------------- ##"
2224 echo
2225 # The following way of writing the cache mishandles newlines in values,
2227 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228 eval ac_val=\$$ac_var
2229 case $ac_val in #(
2230 *${as_nl}*)
2231 case $ac_var in #(
2232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234 esac
2235 case $ac_var in #(
2236 _ | IFS | as_nl) ;; #(
2237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238 *) { eval $ac_var=; unset $ac_var;} ;;
2239 esac ;;
2240 esac
2241 done
2242 (set) 2>&1 |
2243 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244 *${as_nl}ac_space=\ *)
2245 sed -n \
2246 "s/'\''/'\''\\\\'\'''\''/g;
2247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248 ;; #(
2250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 esac |
2253 sort
2255 echo
2257 $as_echo "## ----------------- ##
2258 ## Output variables. ##
2259 ## ----------------- ##"
2260 echo
2261 for ac_var in $ac_subst_vars
2263 eval ac_val=\$$ac_var
2264 case $ac_val in
2265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 esac
2267 $as_echo "$ac_var='\''$ac_val'\''"
2268 done | sort
2269 echo
2271 if test -n "$ac_subst_files"; then
2272 $as_echo "## ------------------- ##
2273 ## File substitutions. ##
2274 ## ------------------- ##"
2275 echo
2276 for ac_var in $ac_subst_files
2278 eval ac_val=\$$ac_var
2279 case $ac_val in
2280 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281 esac
2282 $as_echo "$ac_var='\''$ac_val'\''"
2283 done | sort
2284 echo
2287 if test -s confdefs.h; then
2288 $as_echo "## ----------- ##
2289 ## confdefs.h. ##
2290 ## ----------- ##"
2291 echo
2292 cat confdefs.h
2293 echo
2295 test "$ac_signal" != 0 &&
2296 $as_echo "$as_me: caught signal $ac_signal"
2297 $as_echo "$as_me: exit $exit_status"
2298 } >&5
2299 rm -f core *.core core.conftest.* &&
2300 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301 exit $exit_status
2303 for ac_signal in 1 2 13 15; do
2304 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305 done
2306 ac_signal=0
2308 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2309 rm -f -r conftest* confdefs.h
2311 $as_echo "/* confdefs.h */" > confdefs.h
2313 # Predefined preprocessor variables.
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_NAME "$PACKAGE_NAME"
2317 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321 _ACEOF
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2325 _ACEOF
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_STRING "$PACKAGE_STRING"
2329 _ACEOF
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333 _ACEOF
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_URL "$PACKAGE_URL"
2337 _ACEOF
2340 # Let the site file select an alternate cache file if it wants to.
2341 # Prefer an explicitly selected file to automatically selected ones.
2342 ac_site_file1=NONE
2343 ac_site_file2=NONE
2344 if test -n "$CONFIG_SITE"; then
2345 # We do not want a PATH search for config.site.
2346 case $CONFIG_SITE in #((
2347 -*) ac_site_file1=./$CONFIG_SITE;;
2348 */*) ac_site_file1=$CONFIG_SITE;;
2349 *) ac_site_file1=./$CONFIG_SITE;;
2350 esac
2351 elif test "x$prefix" != xNONE; then
2352 ac_site_file1=$prefix/share/config.site
2353 ac_site_file2=$prefix/etc/config.site
2354 else
2355 ac_site_file1=$ac_default_prefix/share/config.site
2356 ac_site_file2=$ac_default_prefix/etc/config.site
2358 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2360 test "x$ac_site_file" = xNONE && continue
2361 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2364 sed 's/^/| /' "$ac_site_file" >&5
2365 . "$ac_site_file" \
2366 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368 as_fn_error $? "failed to load site script $ac_site_file
2369 See \`config.log' for more details" "$LINENO" 5 ; }
2371 done
2373 if test -r "$cache_file"; then
2374 # Some versions of bash will fail to source /dev/null (special files
2375 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2376 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378 $as_echo "$as_me: loading cache $cache_file" >&6;}
2379 case $cache_file in
2380 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381 *) . "./$cache_file";;
2382 esac
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386 $as_echo "$as_me: creating cache $cache_file" >&6;}
2387 >$cache_file
2390 # Check that the precious variables saved in the cache have kept the same
2391 # value.
2392 ac_cache_corrupted=false
2393 for ac_var in $ac_precious_vars; do
2394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395 eval ac_new_set=\$ac_env_${ac_var}_set
2396 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397 eval ac_new_val=\$ac_env_${ac_var}_value
2398 case $ac_old_set,$ac_new_set in
2399 set,)
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2403 ,set)
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406 ac_cache_corrupted=: ;;
2407 ,);;
2409 if test "x$ac_old_val" != "x$ac_new_val"; then
2410 # differences in whitespace do not lead to failure.
2411 ac_old_val_w=`echo x $ac_old_val`
2412 ac_new_val_w=`echo x $ac_new_val`
2413 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416 ac_cache_corrupted=:
2417 else
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420 eval $ac_var=\$ac_old_val
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2423 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2425 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2426 fi;;
2427 esac
2428 # Pass precious variables to config.status.
2429 if test "$ac_new_set" = set; then
2430 case $ac_new_val in
2431 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 *) ac_arg=$ac_var=$ac_new_val ;;
2433 esac
2434 case " $ac_configure_args " in
2435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2436 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437 esac
2439 done
2440 if $ac_cache_corrupted; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2445 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2447 ## -------------------- ##
2448 ## Main body of script. ##
2449 ## -------------------- ##
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459 ac_config_headers="$ac_config_headers include/config.h"
2461 ac_aux_dir=
2462 for ac_dir in tools "$srcdir"/tools; do
2463 if test -f "$ac_dir/install-sh"; then
2464 ac_aux_dir=$ac_dir
2465 ac_install_sh="$ac_aux_dir/install-sh -c"
2466 break
2467 elif test -f "$ac_dir/install.sh"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/install.sh -c"
2470 break
2471 elif test -f "$ac_dir/shtool"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/shtool install -c"
2474 break
2476 done
2477 if test -z "$ac_aux_dir"; then
2478 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2481 # These three variables are undocumented and unsupported,
2482 # and are intended to be withdrawn in a future Autoconf release.
2483 # They can cause serious problems if a builder's source tree is in a directory
2484 # whose full name contains unusual characters.
2485 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2486 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2487 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2493 # Check whether --enable-win16 was given.
2494 if test "${enable_win16+set}" = set; then :
2495 enableval=$enable_win16;
2498 # Check whether --enable-win64 was given.
2499 if test "${enable_win64+set}" = set; then :
2500 enableval=$enable_win64;
2503 # Check whether --enable-tests was given.
2504 if test "${enable_tests+set}" = set; then :
2505 enableval=$enable_tests;
2508 # Check whether --enable-maintainer-mode was given.
2509 if test "${enable_maintainer_mode+set}" = set; then :
2510 enableval=$enable_maintainer_mode;
2515 # Check whether --with-alsa was given.
2516 if test "${with_alsa+set}" = set; then :
2517 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2521 # Check whether --with-capi was given.
2522 if test "${with_capi+set}" = set; then :
2523 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2527 # Check whether --with-cms was given.
2528 if test "${with_cms+set}" = set; then :
2529 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2533 # Check whether --with-coreaudio was given.
2534 if test "${with_coreaudio+set}" = set; then :
2535 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2539 # Check whether --with-cups was given.
2540 if test "${with_cups+set}" = set; then :
2541 withval=$with_cups;
2545 # Check whether --with-curses was given.
2546 if test "${with_curses+set}" = set; then :
2547 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2551 # Check whether --with-esd was given.
2552 if test "${with_esd+set}" = set; then :
2553 withval=$with_esd;
2557 # Check whether --with-fontconfig was given.
2558 if test "${with_fontconfig+set}" = set; then :
2559 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2563 # Check whether --with-freetype was given.
2564 if test "${with_freetype+set}" = set; then :
2565 withval=$with_freetype;
2569 # Check whether --with-gettextpo was given.
2570 if test "${with_gettextpo+set}" = set; then :
2571 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2575 # Check whether --with-gphoto was given.
2576 if test "${with_gphoto+set}" = set; then :
2577 withval=$with_gphoto;
2581 # Check whether --with-glu was given.
2582 if test "${with_glu+set}" = set; then :
2583 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2587 # Check whether --with-gnutls was given.
2588 if test "${with_gnutls+set}" = set; then :
2589 withval=$with_gnutls;
2593 # Check whether --with-gsm was given.
2594 if test "${with_gsm+set}" = set; then :
2595 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2599 # Check whether --with-gstreamer was given.
2600 if test "${with_gstreamer+set}" = set; then :
2601 withval=$with_gstreamer;
2605 # Check whether --with-hal was given.
2606 if test "${with_hal+set}" = set; then :
2607 withval=$with_hal;
2611 # Check whether --with-jack was given.
2612 if test "${with_jack+set}" = set; then :
2613 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2617 # Check whether --with-jpeg was given.
2618 if test "${with_jpeg+set}" = set; then :
2619 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2623 # Check whether --with-ldap was given.
2624 if test "${with_ldap+set}" = set; then :
2625 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2629 # Check whether --with-mpg123 was given.
2630 if test "${with_mpg123+set}" = set; then :
2631 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2635 # Check whether --with-nas was given.
2636 if test "${with_nas+set}" = set; then :
2637 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2641 # Check whether --with-openal was given.
2642 if test "${with_openal+set}" = set; then :
2643 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2647 # Check whether --with-opencl was given.
2648 if test "${with_opencl+set}" = set; then :
2649 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2653 # Check whether --with-opengl was given.
2654 if test "${with_opengl+set}" = set; then :
2655 withval=$with_opengl;
2659 # Check whether --with-openssl was given.
2660 if test "${with_openssl+set}" = set; then :
2661 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2665 # Check whether --with-oss was given.
2666 if test "${with_oss+set}" = set; then :
2667 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
2671 # Check whether --with-png was given.
2672 if test "${with_png+set}" = set; then :
2673 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2677 # Check whether --with-pthread was given.
2678 if test "${with_pthread+set}" = set; then :
2679 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2683 # Check whether --with-sane was given.
2684 if test "${with_sane+set}" = set; then :
2685 withval=$with_sane;
2689 # Check whether --with-tiff was given.
2690 if test "${with_tiff+set}" = set; then :
2691 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2695 # Check whether --with-v4l was given.
2696 if test "${with_v4l+set}" = set; then :
2697 withval=$with_v4l;
2701 # Check whether --with-xcomposite was given.
2702 if test "${with_xcomposite+set}" = set; then :
2703 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2707 # Check whether --with-xcursor was given.
2708 if test "${with_xcursor+set}" = set; then :
2709 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2713 # Check whether --with-xinerama was given.
2714 if test "${with_xinerama+set}" = set; then :
2715 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2719 # Check whether --with-xinput was given.
2720 if test "${with_xinput+set}" = set; then :
2721 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2725 # Check whether --with-xml was given.
2726 if test "${with_xml+set}" = set; then :
2727 withval=$with_xml;
2731 # Check whether --with-xrandr was given.
2732 if test "${with_xrandr+set}" = set; then :
2733 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2737 # Check whether --with-xrender was given.
2738 if test "${with_xrender+set}" = set; then :
2739 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2743 # Check whether --with-xshape was given.
2744 if test "${with_xshape+set}" = set; then :
2745 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2749 # Check whether --with-xshm was given.
2750 if test "${with_xshm+set}" = set; then :
2751 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2755 # Check whether --with-xslt was given.
2756 if test "${with_xslt+set}" = set; then :
2757 withval=$with_xslt;
2761 # Check whether --with-xxf86vm was given.
2762 if test "${with_xxf86vm+set}" = set; then :
2763 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
2767 # Check whether --with-zlib was given.
2768 if test "${with_zlib+set}" = set; then :
2769 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2774 # Check whether --with-wine-tools was given.
2775 if test "${with_wine_tools+set}" = set; then :
2776 withval=$with_wine_tools;
2780 # Check whether --with-wine64 was given.
2781 if test "${with_wine64+set}" = set; then :
2782 withval=$with_wine64;
2786 # Make sure we can run config.sub.
2787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2788 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2791 $as_echo_n "checking build system type... " >&6; }
2792 if test "${ac_cv_build+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 ac_build_alias=$build_alias
2796 test "x$ac_build_alias" = x &&
2797 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2798 test "x$ac_build_alias" = x &&
2799 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2800 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2801 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2805 $as_echo "$ac_cv_build" >&6; }
2806 case $ac_cv_build in
2807 *-*-*) ;;
2808 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2809 esac
2810 build=$ac_cv_build
2811 ac_save_IFS=$IFS; IFS='-'
2812 set x $ac_cv_build
2813 shift
2814 build_cpu=$1
2815 build_vendor=$2
2816 shift; shift
2817 # Remember, the first character of IFS is used to create $*,
2818 # except with old shells:
2819 build_os=$*
2820 IFS=$ac_save_IFS
2821 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2825 $as_echo_n "checking host system type... " >&6; }
2826 if test "${ac_cv_host+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test "x$host_alias" = x; then
2830 ac_cv_host=$ac_cv_build
2831 else
2832 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2833 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2838 $as_echo "$ac_cv_host" >&6; }
2839 case $ac_cv_host in
2840 *-*-*) ;;
2841 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2842 esac
2843 host=$ac_cv_host
2844 ac_save_IFS=$IFS; IFS='-'
2845 set x $ac_cv_host
2846 shift
2847 host_cpu=$1
2848 host_vendor=$2
2849 shift; shift
2850 # Remember, the first character of IFS is used to create $*,
2851 # except with old shells:
2852 host_os=$*
2853 IFS=$ac_save_IFS
2854 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2858 case "$srcdir" in
2859 .) ;;
2860 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2861 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2862 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2863 fi ;;
2864 esac
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2868 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2869 set x ${MAKE-make}
2870 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2871 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 cat >conftest.make <<\_ACEOF
2875 SHELL = /bin/sh
2876 all:
2877 @echo '@@@%%%=$(MAKE)=@@@%%%'
2878 _ACEOF
2879 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2880 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2881 *@@@%%%=?*=@@@%%%*)
2882 eval ac_cv_prog_make_${ac_make}_set=yes;;
2884 eval ac_cv_prog_make_${ac_make}_set=no;;
2885 esac
2886 rm -f conftest.make
2888 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890 $as_echo "yes" >&6; }
2891 SET_MAKE=
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 SET_MAKE="MAKE=${MAKE-make}"
2898 ac_ext=c
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 if test -n "$ac_tool_prefix"; then
2904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2905 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if test "${ac_cv_prog_CC+set}" = set; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 if test -n "$CC"; then
2912 ac_cv_prog_CC="$CC" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2925 done
2926 done
2927 IFS=$as_save_IFS
2931 CC=$ac_cv_prog_CC
2932 if test -n "$CC"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2934 $as_echo "$CC" >&6; }
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2942 if test -z "$ac_cv_prog_CC"; then
2943 ac_ct_CC=$CC
2944 # Extract the first word of "gcc", so it can be a program name with args.
2945 set dummy gcc; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test -n "$ac_ct_CC"; then
2952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_ac_ct_CC="gcc"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2965 done
2966 done
2967 IFS=$as_save_IFS
2971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2972 if test -n "$ac_ct_CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2974 $as_echo "$ac_ct_CC" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2980 if test "x$ac_ct_CC" = x; then
2981 CC=""
2982 else
2983 case $cross_compiling:$ac_tool_warned in
2984 yes:)
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2987 ac_tool_warned=yes ;;
2988 esac
2989 CC=$ac_ct_CC
2991 else
2992 CC="$ac_cv_prog_CC"
2995 if test -z "$CC"; then
2996 if test -n "$ac_tool_prefix"; then
2997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2998 set dummy ${ac_tool_prefix}cc; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if test "${ac_cv_prog_CC+set}" = set; then :
3002 $as_echo_n "(cached) " >&6
3003 else
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_CC="${ac_tool_prefix}cc"
3015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3018 done
3019 done
3020 IFS=$as_save_IFS
3024 CC=$ac_cv_prog_CC
3025 if test -n "$CC"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3027 $as_echo "$CC" >&6; }
3028 else
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3036 if test -z "$CC"; then
3037 # Extract the first word of "cc", so it can be a program name with args.
3038 set dummy cc; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
3043 else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 ac_prog_rejected=no
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3056 ac_prog_rejected=yes
3057 continue
3059 ac_cv_prog_CC="cc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3063 done
3064 done
3065 IFS=$as_save_IFS
3067 if test $ac_prog_rejected = yes; then
3068 # We found a bogon in the path, so make sure we never use it.
3069 set dummy $ac_cv_prog_CC
3070 shift
3071 if test $# != 0; then
3072 # We chose a different compiler from the bogus one.
3073 # However, it has the same basename, so the bogon will be chosen
3074 # first if we set CC to just the basename; use the full file name.
3075 shift
3076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3092 if test -z "$CC"; then
3093 if test -n "$ac_tool_prefix"; then
3094 for ac_prog in cl.exe
3096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3117 done
3118 done
3119 IFS=$as_save_IFS
3123 CC=$ac_cv_prog_CC
3124 if test -n "$CC"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3127 else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3133 test -n "$CC" && break
3134 done
3136 if test -z "$CC"; then
3137 ac_ct_CC=$CC
3138 for ac_prog in cl.exe
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_prog_ac_ct_CC="$ac_prog"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3163 IFS=$as_save_IFS
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3170 $as_echo "$ac_ct_CC" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3177 test -n "$ac_ct_CC" && break
3178 done
3180 if test "x$ac_ct_CC" = x; then
3181 CC=""
3182 else
3183 case $cross_compiling:$ac_tool_warned in
3184 yes:)
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3187 ac_tool_warned=yes ;;
3188 esac
3189 CC=$ac_ct_CC
3196 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "no acceptable C compiler found in \$PATH
3199 See \`config.log' for more details" "$LINENO" 5 ; }
3201 # Provide some information about the compiler.
3202 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3203 set X $ac_compile
3204 ac_compiler=$2
3205 for ac_option in --version -v -V -qversion; do
3206 { { ac_try="$ac_compiler $ac_option >&5"
3207 case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3214 ac_status=$?
3215 if test -s conftest.err; then
3216 sed '10a\
3217 ... rest of stderr output deleted ...
3218 10q' conftest.err >conftest.er1
3219 cat conftest.er1 >&5
3221 rm -f conftest.er1 conftest.err
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }
3224 done
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3230 main ()
3234 return 0;
3236 _ACEOF
3237 ac_clean_files_save=$ac_clean_files
3238 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3239 # Try to create an executable without -o first, disregard a.out.
3240 # It will help us diagnose broken compilers, and finding out an intuition
3241 # of exeext.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3243 $as_echo_n "checking whether the C compiler works... " >&6; }
3244 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3246 # The possible output files:
3247 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3249 ac_rmfiles=
3250 for ac_file in $ac_files
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3255 esac
3256 done
3257 rm -f $ac_rmfiles
3259 if { { ac_try="$ac_link_default"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link_default") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3271 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3272 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3273 # so that the user can short-circuit this test for compilers unknown to
3274 # Autoconf.
3275 for ac_file in $ac_files ''
3277 test -f "$ac_file" || continue
3278 case $ac_file in
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3281 [ab].out )
3282 # We found the default executable, but exeext='' is most
3283 # certainly right.
3284 break;;
3285 *.* )
3286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3287 then :; else
3288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3290 # We set ac_cv_exeext here because the later test for it is not
3291 # safe: cross compilers may not add the suffix if given an `-o'
3292 # argument, so we may need to know it at that point already.
3293 # Even if this section looks crufty: it has the advantage of
3294 # actually working.
3295 break;;
3297 break;;
3298 esac
3299 done
3300 test "$ac_cv_exeext" = no && ac_cv_exeext=
3302 else
3303 ac_file=''
3305 if test -z "$ac_file"; then :
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error 77 "C compiler cannot create executables
3314 See \`config.log' for more details" "$LINENO" 5 ; }
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3320 $as_echo_n "checking for C compiler default output file name... " >&6; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3322 $as_echo "$ac_file" >&6; }
3323 ac_exeext=$ac_cv_exeext
3325 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3326 ac_clean_files=$ac_clean_files_save
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3328 $as_echo_n "checking for suffix of executables... " >&6; }
3329 if { { ac_try="$ac_link"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_link") 2>&5
3337 ac_status=$?
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }; then :
3340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3341 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3342 # work properly (i.e., refer to `conftest.exe'), while it won't with
3343 # `rm'.
3344 for ac_file in conftest.exe conftest conftest.*; do
3345 test -f "$ac_file" || continue
3346 case $ac_file in
3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 break;;
3350 * ) break;;
3351 esac
3352 done
3353 else
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3357 See \`config.log' for more details" "$LINENO" 5 ; }
3359 rm -f conftest conftest$ac_cv_exeext
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3361 $as_echo "$ac_cv_exeext" >&6; }
3363 rm -f conftest.$ac_ext
3364 EXEEXT=$ac_cv_exeext
3365 ac_exeext=$EXEEXT
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368 #include <stdio.h>
3370 main ()
3372 FILE *f = fopen ("conftest.out", "w");
3373 return ferror (f) || fclose (f) != 0;
3376 return 0;
3378 _ACEOF
3379 ac_clean_files="$ac_clean_files conftest.out"
3380 # Check that the compiler produces executables we can run. If not, either
3381 # the compiler is broken, or we cross compile.
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3383 $as_echo_n "checking whether we are cross compiling... " >&6; }
3384 if test "$cross_compiling" != yes; then
3385 { { ac_try="$ac_link"
3386 case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_link") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }
3396 if { ac_try='./conftest$ac_cv_exeext'
3397 { { case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_try") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; }; then
3407 cross_compiling=no
3408 else
3409 if test "$cross_compiling" = maybe; then
3410 cross_compiling=yes
3411 else
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "cannot run C compiled programs.
3415 If you meant to cross compile, use \`--host'.
3416 See \`config.log' for more details" "$LINENO" 5 ; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3421 $as_echo "$cross_compiling" >&6; }
3423 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3424 ac_clean_files=$ac_clean_files_save
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3426 $as_echo_n "checking for suffix of object files... " >&6; }
3427 if test "${ac_cv_objext+set}" = set; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3434 main ()
3438 return 0;
3440 _ACEOF
3441 rm -f conftest.o conftest.obj
3442 if { { ac_try="$ac_compile"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compile") 2>&5
3450 ac_status=$?
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 for ac_file in conftest.o conftest.obj conftest.*; do
3454 test -f "$ac_file" || continue;
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3458 break;;
3459 esac
3460 done
3461 else
3462 $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error $? "cannot compute suffix of object files: cannot compile
3468 See \`config.log' for more details" "$LINENO" 5 ; }
3470 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3473 $as_echo "$ac_cv_objext" >&6; }
3474 OBJEXT=$ac_cv_objext
3475 ac_objext=$OBJEXT
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3477 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3478 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3485 main ()
3487 #ifndef __GNUC__
3488 choke me
3489 #endif
3492 return 0;
3494 _ACEOF
3495 if ac_fn_c_try_compile "$LINENO"; then :
3496 ac_compiler_gnu=yes
3497 else
3498 ac_compiler_gnu=no
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3505 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3506 if test $ac_compiler_gnu = yes; then
3507 GCC=yes
3508 else
3509 GCC=
3511 ac_test_CFLAGS=${CFLAGS+set}
3512 ac_save_CFLAGS=$CFLAGS
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3514 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3515 if test "${ac_cv_prog_cc_g+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 ac_save_c_werror_flag=$ac_c_werror_flag
3519 ac_c_werror_flag=yes
3520 ac_cv_prog_cc_g=no
3521 CFLAGS="-g"
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3526 main ()
3530 return 0;
3532 _ACEOF
3533 if ac_fn_c_try_compile "$LINENO"; then :
3534 ac_cv_prog_cc_g=yes
3535 else
3536 CFLAGS=""
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3541 main ()
3545 return 0;
3547 _ACEOF
3548 if ac_fn_c_try_compile "$LINENO"; then :
3550 else
3551 ac_c_werror_flag=$ac_save_c_werror_flag
3552 CFLAGS="-g"
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3557 main ()
3561 return 0;
3563 _ACEOF
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_cv_prog_cc_g=yes
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 ac_c_werror_flag=$ac_save_c_werror_flag
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3575 $as_echo "$ac_cv_prog_cc_g" >&6; }
3576 if test "$ac_test_CFLAGS" = set; then
3577 CFLAGS=$ac_save_CFLAGS
3578 elif test $ac_cv_prog_cc_g = yes; then
3579 if test "$GCC" = yes; then
3580 CFLAGS="-g -O2"
3581 else
3582 CFLAGS="-g"
3584 else
3585 if test "$GCC" = yes; then
3586 CFLAGS="-O2"
3587 else
3588 CFLAGS=
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3592 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3593 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 ac_cv_prog_cc_c89=no
3597 ac_save_CC=$CC
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600 #include <stdarg.h>
3601 #include <stdio.h>
3602 #include <sys/types.h>
3603 #include <sys/stat.h>
3604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3605 struct buf { int x; };
3606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607 static char *e (p, i)
3608 char **p;
3609 int i;
3611 return p[i];
3613 static char *f (char * (*g) (char **, int), char **p, ...)
3615 char *s;
3616 va_list v;
3617 va_start (v,p);
3618 s = g (p, va_arg (v,int));
3619 va_end (v);
3620 return s;
3623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3624 function prototypes and stuff, but not '\xHH' hex character constants.
3625 These don't provoke an error unfortunately, instead are silently treated
3626 as 'x'. The following induces an error, until -std is added to get
3627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3628 array size at least. It's necessary to write '\x00'==0 to get something
3629 that's true only with -std. */
3630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633 inside strings and character constants. */
3634 #define FOO(x) 'x'
3635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3637 int test (int i, double x);
3638 struct s1 {int (*f) (int a);};
3639 struct s2 {int (*f) (double a);};
3640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3641 int argc;
3642 char **argv;
3644 main ()
3646 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3648 return 0;
3650 _ACEOF
3651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3654 CC="$ac_save_CC $ac_arg"
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_cv_prog_cc_c89=$ac_arg
3658 rm -f core conftest.err conftest.$ac_objext
3659 test "x$ac_cv_prog_cc_c89" != "xno" && break
3660 done
3661 rm -f conftest.$ac_ext
3662 CC=$ac_save_CC
3665 # AC_CACHE_VAL
3666 case "x$ac_cv_prog_cc_c89" in
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3669 $as_echo "none needed" >&6; } ;;
3670 xno)
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3672 $as_echo "unsupported" >&6; } ;;
3674 CC="$CC $ac_cv_prog_cc_c89"
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3676 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3677 esac
3678 if test "x$ac_cv_prog_cc_c89" != xno; then :
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 ac_ext=cpp
3689 ac_cpp='$CXXCPP $CPPFLAGS'
3690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3693 if test -z "$CXX"; then
3694 if test -n "$CCC"; then
3695 CXX=$CCC
3696 else
3697 if test -n "$ac_tool_prefix"; then
3698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if test "${ac_cv_prog_CXX+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 if test -n "$CXX"; then
3708 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3721 done
3722 done
3723 IFS=$as_save_IFS
3727 CXX=$ac_cv_prog_CXX
3728 if test -n "$CXX"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3730 $as_echo "$CXX" >&6; }
3731 else
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3737 test -n "$CXX" && break
3738 done
3740 if test -z "$CXX"; then
3741 ac_ct_CXX=$CXX
3742 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3744 # Extract the first word of "$ac_prog", so it can be a program name with args.
3745 set dummy $ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 if test -n "$ac_ct_CXX"; then
3752 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761 ac_cv_prog_ac_ct_CXX="$ac_prog"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3765 done
3766 done
3767 IFS=$as_save_IFS
3771 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3772 if test -n "$ac_ct_CXX"; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3774 $as_echo "$ac_ct_CXX" >&6; }
3775 else
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3781 test -n "$ac_ct_CXX" && break
3782 done
3784 if test "x$ac_ct_CXX" = x; then
3785 CXX="g++"
3786 else
3787 case $cross_compiling:$ac_tool_warned in
3788 yes:)
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3791 ac_tool_warned=yes ;;
3792 esac
3793 CXX=$ac_ct_CXX
3799 # Provide some information about the compiler.
3800 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3801 set X $ac_compile
3802 ac_compiler=$2
3803 for ac_option in --version -v -V -qversion; do
3804 { { ac_try="$ac_compiler $ac_option >&5"
3805 case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3812 ac_status=$?
3813 if test -s conftest.err; then
3814 sed '10a\
3815 ... rest of stderr output deleted ...
3816 10q' conftest.err >conftest.er1
3817 cat conftest.er1 >&5
3819 rm -f conftest.er1 conftest.err
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }
3822 done
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3825 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3826 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3833 main ()
3835 #ifndef __GNUC__
3836 choke me
3837 #endif
3840 return 0;
3842 _ACEOF
3843 if ac_fn_cxx_try_compile "$LINENO"; then :
3844 ac_compiler_gnu=yes
3845 else
3846 ac_compiler_gnu=no
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3853 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3854 if test $ac_compiler_gnu = yes; then
3855 GXX=yes
3856 else
3857 GXX=
3859 ac_test_CXXFLAGS=${CXXFLAGS+set}
3860 ac_save_CXXFLAGS=$CXXFLAGS
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3862 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3863 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
3865 else
3866 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3867 ac_cxx_werror_flag=yes
3868 ac_cv_prog_cxx_g=no
3869 CXXFLAGS="-g"
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3874 main ()
3878 return 0;
3880 _ACEOF
3881 if ac_fn_cxx_try_compile "$LINENO"; then :
3882 ac_cv_prog_cxx_g=yes
3883 else
3884 CXXFLAGS=""
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3889 main ()
3893 return 0;
3895 _ACEOF
3896 if ac_fn_cxx_try_compile "$LINENO"; then :
3898 else
3899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3900 CXXFLAGS="-g"
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3905 main ()
3909 return 0;
3911 _ACEOF
3912 if ac_fn_cxx_try_compile "$LINENO"; then :
3913 ac_cv_prog_cxx_g=yes
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3923 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3924 if test "$ac_test_CXXFLAGS" = set; then
3925 CXXFLAGS=$ac_save_CXXFLAGS
3926 elif test $ac_cv_prog_cxx_g = yes; then
3927 if test "$GXX" = yes; then
3928 CXXFLAGS="-g -O2"
3929 else
3930 CXXFLAGS="-g"
3932 else
3933 if test "$GXX" = yes; then
3934 CXXFLAGS="-O2"
3935 else
3936 CXXFLAGS=
3939 ac_ext=c
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945 if test -n "$ac_tool_prefix"; then
3946 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3947 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$CPPBIN"; then
3954 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3967 done
3968 done
3969 IFS=$as_save_IFS
3973 CPPBIN=$ac_cv_prog_CPPBIN
3974 if test -n "$CPPBIN"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3976 $as_echo "$CPPBIN" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3984 if test -z "$ac_cv_prog_CPPBIN"; then
3985 ac_ct_CPPBIN=$CPPBIN
3986 # Extract the first word of "cpp", so it can be a program name with args.
3987 set dummy cpp; ac_word=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 if test -n "$ac_ct_CPPBIN"; then
3994 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4003 ac_cv_prog_ac_ct_CPPBIN="cpp"
4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4007 done
4008 done
4009 IFS=$as_save_IFS
4013 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4014 if test -n "$ac_ct_CPPBIN"; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4016 $as_echo "$ac_ct_CPPBIN" >&6; }
4017 else
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4022 if test "x$ac_ct_CPPBIN" = x; then
4023 CPPBIN="cpp"
4024 else
4025 case $cross_compiling:$ac_tool_warned in
4026 yes:)
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4029 ac_tool_warned=yes ;;
4030 esac
4031 CPPBIN=$ac_ct_CPPBIN
4033 else
4034 CPPBIN="$ac_cv_prog_CPPBIN"
4038 cat >>confdefs.h <<_ACEOF
4039 #define EXEEXT "$ac_exeext"
4040 _ACEOF
4043 case $host in
4044 *-darwin*)
4045 if test "x$enable_win64" = "xyes"
4046 then
4047 CC="$CC -m64"
4048 CXX="$CXX -m64"
4049 LD="${LD:-ld} -arch x86_64"
4050 AS="${AS:-as} -arch x86_64"
4051 host_cpu="x86_64"
4052 notice_platform="64-bit "
4053 TARGETFLAGS="-m64"
4055 else
4056 CC="$CC -m32"
4057 CXX="$CXX -m32"
4058 LD="${LD:-ld} -arch i386"
4059 AS="${AS:-as} -arch i386"
4060 host_cpu="i386"
4061 notice_platform="32-bit "
4062 TARGETFLAGS="-m32"
4064 enable_win16=${enable_win16:-yes}
4067 x86_64*)
4068 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4069 then
4070 CC="$CC -m32"
4071 CXX="$CXX -m32"
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4073 $as_echo_n "checking whether $CC works... " >&6; }
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4079 main ()
4083 return 0;
4085 _ACEOF
4086 if ac_fn_c_try_link "$LINENO"; then :
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4088 $as_echo "yes" >&6; }
4089 else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4092 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4094 rm -f core conftest.err conftest.$ac_objext \
4095 conftest$ac_exeext conftest.$ac_ext
4096 LD="${LD:-ld} -m elf_i386"
4097 AS="${AS:-as} --32"
4098 host_cpu="i386"
4099 notice_platform="32-bit "
4100 TARGETFLAGS="-m32"
4102 enable_win16=${enable_win16:-yes}
4103 else
4104 if test "x${GCC}" = "xyes"
4105 then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4107 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #include <stdarg.h>
4112 main ()
4114 void func(__builtin_ms_va_list *args);
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4121 $as_echo "yes" >&6; }
4122 else
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 TARGETFLAGS="-m64"
4133 *-mingw32*|*-cygwin*)
4134 enable_win16=${enable_win16:-no}
4135 CFLAGS="$CFLAGS -D_WIN32"
4137 i[3456789]86*)
4138 enable_win16=${enable_win16:-yes}
4140 esac
4142 enable_win16=${enable_win16:-no}
4144 enable_winetest=${enable_winetest:-$enable_tests}
4146 if test -n "$with_wine64"
4147 then
4148 if test "x$enable_win64" = "xyes"
4149 then
4150 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4151 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4153 WOW64_DISABLE=\#
4155 enable_fonts=${enable_fonts:-no}
4156 enable_server=${enable_server:-no}
4157 enable_tools=${enable_tools:-no}
4158 elif test "x$enable_win64" = "xyes"
4159 then
4160 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4164 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4165 if test "${wine_cv_toolsdir+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 wine_cv_toolsdir="$with_wine_tools"
4169 if test -z "$with_wine_tools"; then
4170 if test "$cross_compiling" = "yes"; then
4171 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4172 elif test -n "$with_wine64"; then
4173 wine_cv_toolsdir="$with_wine64"
4176 if test -z "$wine_cv_toolsdir"; then
4177 wine_cv_toolsdir="\$(top_builddir)"
4178 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4179 case "$wine_cv_toolsdir" in
4180 /*) ;;
4181 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4182 esac
4183 else
4184 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4188 $as_echo "$wine_cv_toolsdir" >&6; }
4189 TOOLSDIR=$wine_cv_toolsdir
4191 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4192 then
4193 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4197 for ac_prog in flex
4199 # Extract the first word of "$ac_prog", so it can be a program name with args.
4200 set dummy $ac_prog; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if test "${ac_cv_prog_FLEX+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$FLEX"; then
4207 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_FLEX="$ac_prog"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4220 done
4221 done
4222 IFS=$as_save_IFS
4226 FLEX=$ac_cv_prog_FLEX
4227 if test -n "$FLEX"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4229 $as_echo "$FLEX" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4236 test -n "$FLEX" && break
4237 done
4238 test -n "$FLEX" || FLEX="none"
4240 if test "$FLEX" = "none"
4241 then
4242 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4245 $as_echo_n "checking whether flex is recent enough... " >&6; }
4246 cat >conftest.l <<EOF
4247 %top{
4248 #include "prediluvian.h"
4252 if $FLEX -t conftest.l >/dev/null 2>&5
4253 then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4255 $as_echo "yes" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4259 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4262 for ac_prog in bison
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if test "${ac_cv_prog_BISON+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 if test -n "$BISON"; then
4272 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_BISON="$ac_prog"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4285 done
4286 done
4287 IFS=$as_save_IFS
4291 BISON=$ac_cv_prog_BISON
4292 if test -n "$BISON"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4294 $as_echo "$BISON" >&6; }
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4301 test -n "$BISON" && break
4302 done
4303 test -n "$BISON" || BISON="none"
4305 if test "$BISON" = "none"
4306 then
4307 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4310 if test -n "$ac_tool_prefix"; then
4311 for ac_prog in ar gar
4313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if test "${ac_cv_prog_AR+set}" = set; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 if test -n "$AR"; then
4321 ac_cv_prog_AR="$AR" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4330 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4334 done
4335 done
4336 IFS=$as_save_IFS
4340 AR=$ac_cv_prog_AR
4341 if test -n "$AR"; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4343 $as_echo "$AR" >&6; }
4344 else
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 $as_echo "no" >&6; }
4350 test -n "$AR" && break
4351 done
4353 if test -z "$AR"; then
4354 ac_ct_AR=$AR
4355 for ac_prog in ar gar
4357 # Extract the first word of "$ac_prog", so it can be a program name with args.
4358 set dummy $ac_prog; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 if test -n "$ac_ct_AR"; then
4365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_prog_ac_ct_AR="$ac_prog"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4378 done
4379 done
4380 IFS=$as_save_IFS
4384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4385 if test -n "$ac_ct_AR"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4387 $as_echo "$ac_ct_AR" >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4394 test -n "$ac_ct_AR" && break
4395 done
4397 if test "x$ac_ct_AR" = x; then
4398 AR="ar"
4399 else
4400 case $cross_compiling:$ac_tool_warned in
4401 yes:)
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4404 ac_tool_warned=yes ;;
4405 esac
4406 AR=$ac_ct_AR
4410 ARFLAGS=rc
4412 if test -n "$ac_tool_prefix"; then
4413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if test -n "$RANLIB"; then
4421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4434 done
4435 done
4436 IFS=$as_save_IFS
4440 RANLIB=$ac_cv_prog_RANLIB
4441 if test -n "$RANLIB"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4443 $as_echo "$RANLIB" >&6; }
4444 else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4451 if test -z "$ac_cv_prog_RANLIB"; then
4452 ac_ct_RANLIB=$RANLIB
4453 # Extract the first word of "ranlib", so it can be a program name with args.
4454 set dummy ranlib; ac_word=$2
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 $as_echo_n "checking for $ac_word... " >&6; }
4457 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 if test -n "$ac_ct_RANLIB"; then
4461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470 ac_cv_prog_ac_ct_RANLIB="ranlib"
4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4474 done
4475 done
4476 IFS=$as_save_IFS
4480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4481 if test -n "$ac_ct_RANLIB"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4483 $as_echo "$ac_ct_RANLIB" >&6; }
4484 else
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4489 if test "x$ac_ct_RANLIB" = x; then
4490 RANLIB=":"
4491 else
4492 case $cross_compiling:$ac_tool_warned in
4493 yes:)
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496 ac_tool_warned=yes ;;
4497 esac
4498 RANLIB=$ac_ct_RANLIB
4500 else
4501 RANLIB="$ac_cv_prog_RANLIB"
4504 if test -n "$ac_tool_prefix"; then
4505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4506 set dummy ${ac_tool_prefix}strip; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if test "${ac_cv_prog_STRIP+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test -n "$STRIP"; then
4513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4526 done
4527 done
4528 IFS=$as_save_IFS
4532 STRIP=$ac_cv_prog_STRIP
4533 if test -n "$STRIP"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4535 $as_echo "$STRIP" >&6; }
4536 else
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4543 if test -z "$ac_cv_prog_STRIP"; then
4544 ac_ct_STRIP=$STRIP
4545 # Extract the first word of "strip", so it can be a program name with args.
4546 set dummy strip; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if test -n "$ac_ct_STRIP"; then
4553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_ac_ct_STRIP="strip"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4566 done
4567 done
4568 IFS=$as_save_IFS
4572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4573 if test -n "$ac_ct_STRIP"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4575 $as_echo "$ac_ct_STRIP" >&6; }
4576 else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4581 if test "x$ac_ct_STRIP" = x; then
4582 STRIP="strip"
4583 else
4584 case $cross_compiling:$ac_tool_warned in
4585 yes:)
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4588 ac_tool_warned=yes ;;
4589 esac
4590 STRIP=$ac_ct_STRIP
4592 else
4593 STRIP="$ac_cv_prog_STRIP"
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4597 $as_echo_n "checking whether ln -s works... " >&6; }
4598 LN_S=$as_ln_s
4599 if test "$LN_S" = "ln -s"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4601 $as_echo "yes" >&6; }
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4604 $as_echo "no, using $LN_S" >&6; }
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4608 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4609 if test "${ac_cv_path_GREP+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -z "$GREP"; then
4613 ac_path_GREP_found=false
4614 # Loop through the user's path and test for each of PROGNAME-LIST
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_prog in grep ggrep; do
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4623 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4624 # Check for GNU ac_path_GREP and select it if it is found.
4625 # Check for GNU $ac_path_GREP
4626 case `"$ac_path_GREP" --version 2>&1` in
4627 *GNU*)
4628 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4630 ac_count=0
4631 $as_echo_n 0123456789 >"conftest.in"
4632 while :
4634 cat "conftest.in" "conftest.in" >"conftest.tmp"
4635 mv "conftest.tmp" "conftest.in"
4636 cp "conftest.in" "conftest.nl"
4637 $as_echo 'GREP' >> "conftest.nl"
4638 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4640 as_fn_arith $ac_count + 1 && ac_count=$as_val
4641 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4642 # Best one so far, save it but keep looking for a better one
4643 ac_cv_path_GREP="$ac_path_GREP"
4644 ac_path_GREP_max=$ac_count
4646 # 10*(2^10) chars as input seems more than enough
4647 test $ac_count -gt 10 && break
4648 done
4649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4650 esac
4652 $ac_path_GREP_found && break 3
4653 done
4654 done
4655 done
4656 IFS=$as_save_IFS
4657 if test -z "$ac_cv_path_GREP"; then
4658 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660 else
4661 ac_cv_path_GREP=$GREP
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4666 $as_echo "$ac_cv_path_GREP" >&6; }
4667 GREP="$ac_cv_path_GREP"
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4671 $as_echo_n "checking for egrep... " >&6; }
4672 if test "${ac_cv_path_EGREP+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4676 then ac_cv_path_EGREP="$GREP -E"
4677 else
4678 if test -z "$EGREP"; then
4679 ac_path_EGREP_found=false
4680 # Loop through the user's path and test for each of PROGNAME-LIST
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_prog in egrep; do
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4689 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4690 # Check for GNU ac_path_EGREP and select it if it is found.
4691 # Check for GNU $ac_path_EGREP
4692 case `"$ac_path_EGREP" --version 2>&1` in
4693 *GNU*)
4694 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4696 ac_count=0
4697 $as_echo_n 0123456789 >"conftest.in"
4698 while :
4700 cat "conftest.in" "conftest.in" >"conftest.tmp"
4701 mv "conftest.tmp" "conftest.in"
4702 cp "conftest.in" "conftest.nl"
4703 $as_echo 'EGREP' >> "conftest.nl"
4704 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706 as_fn_arith $ac_count + 1 && ac_count=$as_val
4707 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4708 # Best one so far, save it but keep looking for a better one
4709 ac_cv_path_EGREP="$ac_path_EGREP"
4710 ac_path_EGREP_max=$ac_count
4712 # 10*(2^10) chars as input seems more than enough
4713 test $ac_count -gt 10 && break
4714 done
4715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4716 esac
4718 $ac_path_EGREP_found && break 3
4719 done
4720 done
4721 done
4722 IFS=$as_save_IFS
4723 if test -z "$ac_cv_path_EGREP"; then
4724 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4726 else
4727 ac_cv_path_EGREP=$EGREP
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4733 $as_echo "$ac_cv_path_EGREP" >&6; }
4734 EGREP="$ac_cv_path_EGREP"
4737 # Extract the first word of "ldconfig", so it can be a program name with args.
4738 set dummy ldconfig; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 case $LDCONFIG in
4745 [\\/]* | ?:[\\/]*)
4746 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in /sbin /usr/sbin $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4760 done
4761 done
4762 IFS=$as_save_IFS
4764 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4766 esac
4768 LDCONFIG=$ac_cv_path_LDCONFIG
4769 if test -n "$LDCONFIG"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4771 $as_echo "$LDCONFIG" >&6; }
4772 else
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4778 # Find a good install program. We prefer a C program (faster),
4779 # so one script is as good as another. But avoid the broken or
4780 # incompatible versions:
4781 # SysV /etc/install, /usr/sbin/install
4782 # SunOS /usr/etc/install
4783 # IRIX /sbin/install
4784 # AIX /bin/install
4785 # AmigaOS /C/install, which installs bootblocks on floppy discs
4786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4789 # OS/2's system install, which has a completely different semantic
4790 # ./install, which can be erroneously created by make from ./install.sh.
4791 # Reject install programs that cannot install multiple files.
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4793 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4794 if test -z "$INSTALL"; then
4795 if test "${ac_cv_path_install+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
4803 # Account for people who put trailing slashes in PATH elements.
4804 case $as_dir/ in #((
4805 ./ | .// | /[cC]/* | \
4806 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4807 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4808 /usr/ucb/* ) ;;
4810 # OSF1 and SCO ODT 3.0 have their own names for install.
4811 # Don't use installbsd from OSF since it installs stuff as root
4812 # by default.
4813 for ac_prog in ginstall scoinst install; do
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4816 if test $ac_prog = install &&
4817 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4818 # AIX install. It has an incompatible calling convention.
4820 elif test $ac_prog = install &&
4821 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4822 # program-specific install script used by HP pwplus--don't use.
4824 else
4825 rm -rf conftest.one conftest.two conftest.dir
4826 echo one > conftest.one
4827 echo two > conftest.two
4828 mkdir conftest.dir
4829 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4830 test -s conftest.one && test -s conftest.two &&
4831 test -s conftest.dir/conftest.one &&
4832 test -s conftest.dir/conftest.two
4833 then
4834 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4835 break 3
4839 done
4840 done
4842 esac
4844 done
4845 IFS=$as_save_IFS
4847 rm -rf conftest.one conftest.two conftest.dir
4850 if test "${ac_cv_path_install+set}" = set; then
4851 INSTALL=$ac_cv_path_install
4852 else
4853 # As a last resort, use the slow shell script. Don't cache a
4854 # value for INSTALL within a source directory, because that will
4855 # break other packages using the cache if that directory is
4856 # removed, or if the value is a relative name.
4857 INSTALL=$ac_install_sh
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4861 $as_echo "$INSTALL" >&6; }
4863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4864 # It thinks the first close brace ends the variable substitution.
4865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4867 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4869 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4871 case "$INSTALL" in
4872 [\\/$]* | ?:[\\/]* ) ;;
4873 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4874 esac
4876 for ac_prog in lclint lint
4878 # Extract the first word of "$ac_prog", so it can be a program name with args.
4879 set dummy $ac_prog; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_prog_LINT+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test -n "$LINT"; then
4886 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_LINT="$ac_prog"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4899 done
4900 done
4901 IFS=$as_save_IFS
4905 LINT=$ac_cv_prog_LINT
4906 if test -n "$LINT"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4908 $as_echo "$LINT" >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4915 test -n "$LINT" && break
4916 done
4918 if test "$LINT" = "lint"
4919 then
4920 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4925 for ac_prog in fontforge
4927 # Extract the first word of "$ac_prog", so it can be a program name with args.
4928 set dummy $ac_prog; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if test -n "$FONTFORGE"; then
4935 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_prog_FONTFORGE="$ac_prog"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4954 FONTFORGE=$ac_cv_prog_FONTFORGE
4955 if test -n "$FONTFORGE"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4957 $as_echo "$FONTFORGE" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4964 test -n "$FONTFORGE" && break
4965 done
4966 test -n "$FONTFORGE" || FONTFORGE="false"
4968 for ac_prog in pkg-config
4970 # Extract the first word of "$ac_prog", so it can be a program name with args.
4971 set dummy $ac_prog; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 if test -n "$PKG_CONFIG"; then
4978 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987 ac_cv_prog_PKG_CONFIG="$ac_prog"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4991 done
4992 done
4993 IFS=$as_save_IFS
4997 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4998 if test -n "$PKG_CONFIG"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5000 $as_echo "$PKG_CONFIG" >&6; }
5001 else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5007 test -n "$PKG_CONFIG" && break
5008 done
5009 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5011 for ac_prog in rsvg
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014 set dummy $ac_prog; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if test "${ac_cv_prog_RSVG+set}" = set; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -n "$RSVG"; then
5021 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_prog_RSVG="$ac_prog"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5034 done
5035 done
5036 IFS=$as_save_IFS
5040 RSVG=$ac_cv_prog_RSVG
5041 if test -n "$RSVG"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5043 $as_echo "$RSVG" >&6; }
5044 else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5050 test -n "$RSVG" && break
5051 done
5052 test -n "$RSVG" || RSVG="false"
5054 for ac_prog in convert
5056 # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test -n "$CONVERT"; then
5064 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073 ac_cv_prog_CONVERT="$ac_prog"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5079 IFS=$as_save_IFS
5083 CONVERT=$ac_cv_prog_CONVERT
5084 if test -n "$CONVERT"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5086 $as_echo "$CONVERT" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5093 test -n "$CONVERT" && break
5094 done
5095 test -n "$CONVERT" || CONVERT="false"
5097 for ac_prog in icotool
5099 # Extract the first word of "$ac_prog", so it can be a program name with args.
5100 set dummy $ac_prog; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 if test -n "$ICOTOOL"; then
5107 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_ICOTOOL="$ac_prog"
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5120 done
5121 done
5122 IFS=$as_save_IFS
5126 ICOTOOL=$ac_cv_prog_ICOTOOL
5127 if test -n "$ICOTOOL"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5129 $as_echo "$ICOTOOL" >&6; }
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5136 test -n "$ICOTOOL" && break
5137 done
5138 test -n "$ICOTOOL" || ICOTOOL="false"
5141 if test "x$enable_maintainer_mode" != "xyes"
5142 then
5143 MAINTAINER_MODE=\#
5145 else
5146 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5147 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
5149 if test "$CONVERT" = false
5150 then
5151 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5154 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5155 convert_version=`convert --version | head -n1`
5156 if test "x$convert_version" != "x"
5157 then
5158 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5159 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5160 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5161 then
5162 CONVERT=false
5165 if test "$CONVERT" = false
5166 then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5168 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5169 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5172 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5176 if test "$ICOTOOL" = false
5177 then
5178 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5181 $as_echo_n "checking for recent enough icotool... " >&6; }
5182 icotool_version=`icotool --version | head -n1`
5183 if test "x$icotool_version" != "x"
5184 then
5185 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5186 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5187 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5188 then
5189 ICOTOOL=false
5190 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5193 if test "$ICOTOOL" = false
5194 then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5196 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5197 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5200 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5208 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5209 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 ac_check_lib_save_LIBS=$LIBS
5213 LIBS="-li386 $LIBS"
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5217 /* Override any GCC internal prototype to avoid an error.
5218 Use char because int might match the return type of a GCC
5219 builtin and then its argument prototype would still apply. */
5220 #ifdef __cplusplus
5221 extern "C"
5222 #endif
5223 char i386_set_ldt ();
5225 main ()
5227 return i386_set_ldt ();
5229 return 0;
5231 _ACEOF
5232 if ac_fn_c_try_link "$LINENO"; then :
5233 ac_cv_lib_i386_i386_set_ldt=yes
5234 else
5235 ac_cv_lib_i386_i386_set_ldt=no
5237 rm -f core conftest.err conftest.$ac_objext \
5238 conftest$ac_exeext conftest.$ac_ext
5239 LIBS=$ac_check_lib_save_LIBS
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5242 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5243 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5244 cat >>confdefs.h <<_ACEOF
5245 #define HAVE_LIBI386 1
5246 _ACEOF
5248 LIBS="-li386 $LIBS"
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5253 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5254 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 ac_check_lib_save_LIBS=$LIBS
5258 LIBS="-lossaudio $LIBS"
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5262 /* Override any GCC internal prototype to avoid an error.
5263 Use char because int might match the return type of a GCC
5264 builtin and then its argument prototype would still apply. */
5265 #ifdef __cplusplus
5266 extern "C"
5267 #endif
5268 char _oss_ioctl ();
5270 main ()
5272 return _oss_ioctl ();
5274 return 0;
5276 _ACEOF
5277 if ac_fn_c_try_link "$LINENO"; then :
5278 ac_cv_lib_ossaudio__oss_ioctl=yes
5279 else
5280 ac_cv_lib_ossaudio__oss_ioctl=no
5282 rm -f core conftest.err conftest.$ac_objext \
5283 conftest$ac_exeext conftest.$ac_ext
5284 LIBS=$ac_check_lib_save_LIBS
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5287 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5288 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5289 cat >>confdefs.h <<_ACEOF
5290 #define HAVE_LIBOSSAUDIO 1
5291 _ACEOF
5293 LIBS="-lossaudio $LIBS"
5298 XLIB=""
5300 OPENGL_LIBS=""
5304 # Check whether --enable-largefile was given.
5305 if test "${enable_largefile+set}" = set; then :
5306 enableval=$enable_largefile;
5309 if test "$enable_largefile" != no; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5312 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5313 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 ac_cv_sys_largefile_CC=no
5317 if test "$GCC" != yes; then
5318 ac_save_CC=$CC
5319 while :; do
5320 # IRIX 6.2 and later do not support large files by default,
5321 # so use the C compiler's -n32 option if that helps.
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324 #include <sys/types.h>
5325 /* Check that off_t can represent 2**63 - 1 correctly.
5326 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5327 since some C++ compilers masquerading as C compilers
5328 incorrectly reject 9223372036854775807. */
5329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5331 && LARGE_OFF_T % 2147483647 == 1)
5332 ? 1 : -1];
5334 main ()
5338 return 0;
5340 _ACEOF
5341 if ac_fn_c_try_compile "$LINENO"; then :
5342 break
5344 rm -f core conftest.err conftest.$ac_objext
5345 CC="$CC -n32"
5346 if ac_fn_c_try_compile "$LINENO"; then :
5347 ac_cv_sys_largefile_CC=' -n32'; break
5349 rm -f core conftest.err conftest.$ac_objext
5350 break
5351 done
5352 CC=$ac_save_CC
5353 rm -f conftest.$ac_ext
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5357 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5358 if test "$ac_cv_sys_largefile_CC" != no; then
5359 CC=$CC$ac_cv_sys_largefile_CC
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5363 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5364 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 while :; do
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 #include <sys/types.h>
5371 /* Check that off_t can represent 2**63 - 1 correctly.
5372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5373 since some C++ compilers masquerading as C compilers
5374 incorrectly reject 9223372036854775807. */
5375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5377 && LARGE_OFF_T % 2147483647 == 1)
5378 ? 1 : -1];
5380 main ()
5384 return 0;
5386 _ACEOF
5387 if ac_fn_c_try_compile "$LINENO"; then :
5388 ac_cv_sys_file_offset_bits=no; break
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 #define _FILE_OFFSET_BITS 64
5394 #include <sys/types.h>
5395 /* Check that off_t can represent 2**63 - 1 correctly.
5396 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5397 since some C++ compilers masquerading as C compilers
5398 incorrectly reject 9223372036854775807. */
5399 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5401 && LARGE_OFF_T % 2147483647 == 1)
5402 ? 1 : -1];
5404 main ()
5408 return 0;
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 ac_cv_sys_file_offset_bits=64; break
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 ac_cv_sys_file_offset_bits=unknown
5416 break
5417 done
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5420 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5421 case $ac_cv_sys_file_offset_bits in #(
5422 no | unknown) ;;
5424 cat >>confdefs.h <<_ACEOF
5425 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5426 _ACEOF
5428 esac
5429 rm -rf conftest*
5430 if test $ac_cv_sys_file_offset_bits = unknown; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5432 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5433 if test "${ac_cv_sys_large_files+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 while :; do
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 #include <sys/types.h>
5440 /* Check that off_t can represent 2**63 - 1 correctly.
5441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5442 since some C++ compilers masquerading as C compilers
5443 incorrectly reject 9223372036854775807. */
5444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5446 && LARGE_OFF_T % 2147483647 == 1)
5447 ? 1 : -1];
5449 main ()
5453 return 0;
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457 ac_cv_sys_large_files=no; break
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 #define _LARGE_FILES 1
5463 #include <sys/types.h>
5464 /* Check that off_t can represent 2**63 - 1 correctly.
5465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5466 since some C++ compilers masquerading as C compilers
5467 incorrectly reject 9223372036854775807. */
5468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5470 && LARGE_OFF_T % 2147483647 == 1)
5471 ? 1 : -1];
5473 main ()
5477 return 0;
5479 _ACEOF
5480 if ac_fn_c_try_compile "$LINENO"; then :
5481 ac_cv_sys_large_files=1; break
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 ac_cv_sys_large_files=unknown
5485 break
5486 done
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5489 $as_echo "$ac_cv_sys_large_files" >&6; }
5490 case $ac_cv_sys_large_files in #(
5491 no | unknown) ;;
5493 cat >>confdefs.h <<_ACEOF
5494 #define _LARGE_FILES $ac_cv_sys_large_files
5495 _ACEOF
5497 esac
5498 rm -rf conftest*
5503 ac_ext=c
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5509 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5510 # On Suns, sometimes $CPP names a directory.
5511 if test -n "$CPP" && test -d "$CPP"; then
5512 CPP=
5514 if test -z "$CPP"; then
5515 if test "${ac_cv_prog_CPP+set}" = set; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 # Double quotes because CPP needs to be expanded
5519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5521 ac_preproc_ok=false
5522 for ac_c_preproc_warn_flag in '' yes
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 #ifdef __STDC__
5533 # include <limits.h>
5534 #else
5535 # include <assert.h>
5536 #endif
5537 Syntax error
5538 _ACEOF
5539 if ac_fn_c_try_cpp "$LINENO"; then :
5541 else
5542 # Broken: fails on valid input.
5543 continue
5545 rm -f conftest.err conftest.i conftest.$ac_ext
5547 # OK, works on sane cases. Now check whether nonexistent headers
5548 # can be detected and how.
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <ac_nonexistent.h>
5552 _ACEOF
5553 if ac_fn_c_try_cpp "$LINENO"; then :
5554 # Broken: success on invalid input.
5555 continue
5556 else
5557 # Passes both tests.
5558 ac_preproc_ok=:
5559 break
5561 rm -f conftest.err conftest.i conftest.$ac_ext
5563 done
5564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5565 rm -f conftest.i conftest.err conftest.$ac_ext
5566 if $ac_preproc_ok; then :
5567 break
5570 done
5571 ac_cv_prog_CPP=$CPP
5574 CPP=$ac_cv_prog_CPP
5575 else
5576 ac_cv_prog_CPP=$CPP
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5579 $as_echo "$CPP" >&6; }
5580 ac_preproc_ok=false
5581 for ac_c_preproc_warn_flag in '' yes
5583 # Use a header file that comes with gcc, so configuring glibc
5584 # with a fresh cross-compiler works.
5585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586 # <limits.h> exists even on freestanding compilers.
5587 # On the NeXT, cc -E runs the code through the compiler's parser,
5588 # not just through cpp. "Syntax error" is here to catch this case.
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 #ifdef __STDC__
5592 # include <limits.h>
5593 #else
5594 # include <assert.h>
5595 #endif
5596 Syntax error
5597 _ACEOF
5598 if ac_fn_c_try_cpp "$LINENO"; then :
5600 else
5601 # Broken: fails on valid input.
5602 continue
5604 rm -f conftest.err conftest.i conftest.$ac_ext
5606 # OK, works on sane cases. Now check whether nonexistent headers
5607 # can be detected and how.
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #include <ac_nonexistent.h>
5611 _ACEOF
5612 if ac_fn_c_try_cpp "$LINENO"; then :
5613 # Broken: success on invalid input.
5614 continue
5615 else
5616 # Passes both tests.
5617 ac_preproc_ok=:
5618 break
5620 rm -f conftest.err conftest.i conftest.$ac_ext
5622 done
5623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5624 rm -f conftest.i conftest.err conftest.$ac_ext
5625 if $ac_preproc_ok; then :
5627 else
5628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5630 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5631 See \`config.log' for more details" "$LINENO" 5 ; }
5634 ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5642 $as_echo_n "checking for ANSI C header files... " >&6; }
5643 if test "${ac_cv_header_stdc+set}" = set; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #include <stdlib.h>
5649 #include <stdarg.h>
5650 #include <string.h>
5651 #include <float.h>
5654 main ()
5658 return 0;
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 ac_cv_header_stdc=yes
5663 else
5664 ac_cv_header_stdc=no
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 if test $ac_cv_header_stdc = yes; then
5669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 #include <string.h>
5674 _ACEOF
5675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5676 $EGREP "memchr" >/dev/null 2>&1; then :
5678 else
5679 ac_cv_header_stdc=no
5681 rm -f conftest*
5685 if test $ac_cv_header_stdc = yes; then
5686 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <stdlib.h>
5691 _ACEOF
5692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5693 $EGREP "free" >/dev/null 2>&1; then :
5695 else
5696 ac_cv_header_stdc=no
5698 rm -f conftest*
5702 if test $ac_cv_header_stdc = yes; then
5703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5704 if test "$cross_compiling" = yes; then :
5706 else
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 #include <ctype.h>
5710 #include <stdlib.h>
5711 #if ((' ' & 0x0FF) == 0x020)
5712 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5713 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5714 #else
5715 # define ISLOWER(c) \
5716 (('a' <= (c) && (c) <= 'i') \
5717 || ('j' <= (c) && (c) <= 'r') \
5718 || ('s' <= (c) && (c) <= 'z'))
5719 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5720 #endif
5722 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5724 main ()
5726 int i;
5727 for (i = 0; i < 256; i++)
5728 if (XOR (islower (i), ISLOWER (i))
5729 || toupper (i) != TOUPPER (i))
5730 return 2;
5731 return 0;
5733 _ACEOF
5734 if ac_fn_c_try_run "$LINENO"; then :
5736 else
5737 ac_cv_header_stdc=no
5739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5740 conftest.$ac_objext conftest.beam conftest.$ac_ext
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5746 $as_echo "$ac_cv_header_stdc" >&6; }
5747 if test $ac_cv_header_stdc = yes; then
5749 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5753 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5754 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5755 inttypes.h stdint.h unistd.h
5756 do :
5757 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5758 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5760 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5761 cat >>confdefs.h <<_ACEOF
5762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5763 _ACEOF
5767 done
5770 for ac_header in \
5771 AL/al.h \
5772 ApplicationServices/ApplicationServices.h \
5773 AudioToolbox/AudioConverter.h \
5774 AudioUnit/AudioUnit.h \
5775 AudioUnit/AudioComponent.h \
5776 CL/cl.h \
5777 Carbon/Carbon.h \
5778 CoreAudio/CoreAudio.h \
5779 DiskArbitration/DiskArbitration.h \
5780 IOKit/IOKitLib.h \
5781 IOKit/hid/IOHIDLib.h \
5782 OpenAL/al.h \
5783 OpenCL/opencl.h \
5784 QuickTime/ImageCompression.h \
5785 alias.h \
5786 alsa/asoundlib.h \
5787 arpa/inet.h \
5788 arpa/nameser.h \
5789 asm/types.h \
5790 capi20.h \
5791 curses.h \
5792 direct.h \
5793 dirent.h \
5794 dlfcn.h \
5795 elf.h \
5796 float.h \
5797 fnmatch.h \
5798 fontconfig/fontconfig.h \
5799 getopt.h \
5800 gettext-po.h \
5801 grp.h \
5802 gsm.h \
5803 gsm/gsm.h \
5804 ieeefp.h \
5805 inet/mib2.h \
5806 io.h \
5807 jack/jack.h \
5808 jpeglib.h \
5809 kstat.h \
5810 lber.h \
5811 lcms.h \
5812 lcms/lcms.h \
5813 ldap.h \
5814 link.h \
5815 linux/cdrom.h \
5816 linux/compiler.h \
5817 linux/hdreg.h \
5818 linux/input.h \
5819 linux/ioctl.h \
5820 linux/joystick.h \
5821 linux/major.h \
5822 linux/param.h \
5823 linux/serial.h \
5824 linux/types.h \
5825 linux/ucdrom.h \
5826 mach-o/nlist.h \
5827 mach-o/loader.h \
5828 mach/mach.h \
5829 mach/machine.h \
5830 machine/cpu.h \
5831 machine/limits.h \
5832 machine/soundcard.h \
5833 machine/sysarch.h \
5834 mntent.h \
5835 mpg123.h \
5836 ncurses.h \
5837 netdb.h \
5838 netinet/in.h \
5839 netinet/in_systm.h \
5840 netinet/tcp.h \
5841 netinet/tcp_fsm.h \
5842 openssl/err.h \
5843 openssl/ssl.h \
5844 png.h \
5845 poll.h \
5846 port.h \
5847 process.h \
5848 pthread.h \
5849 pwd.h \
5850 regex.h \
5851 sched.h \
5852 scsi/scsi.h \
5853 scsi/scsi_ioctl.h \
5854 scsi/sg.h \
5855 soundcard.h \
5856 stdbool.h \
5857 stdint.h \
5858 strings.h \
5859 stropts.h \
5860 sys/asoundlib.h \
5861 sys/attr.h \
5862 sys/cdio.h \
5863 sys/elf32.h \
5864 sys/epoll.h \
5865 sys/errno.h \
5866 sys/event.h \
5867 sys/exec_elf.h \
5868 sys/filio.h \
5869 sys/inotify.h \
5870 sys/ioctl.h \
5871 sys/ipc.h \
5872 sys/limits.h \
5873 sys/link.h \
5874 sys/mman.h \
5875 sys/modem.h \
5876 sys/msg.h \
5877 sys/mtio.h \
5878 sys/param.h \
5879 sys/poll.h \
5880 sys/prctl.h \
5881 sys/protosw.h \
5882 sys/ptrace.h \
5883 sys/resource.h \
5884 sys/scsiio.h \
5885 sys/shm.h \
5886 sys/signal.h \
5887 sys/socket.h \
5888 sys/socketvar.h \
5889 sys/sockio.h \
5890 sys/soundcard.h \
5891 sys/statvfs.h \
5892 sys/strtio.h \
5893 sys/syscall.h \
5894 sys/tihdr.h \
5895 sys/time.h \
5896 sys/timeout.h \
5897 sys/times.h \
5898 sys/uio.h \
5899 sys/un.h \
5900 sys/utsname.h \
5901 sys/vm86.h \
5902 sys/wait.h \
5903 syscall.h \
5904 termios.h \
5905 tiffio.h \
5906 unistd.h \
5907 utime.h \
5908 valgrind/memcheck.h \
5909 valgrind/valgrind.h \
5910 zlib.h
5912 do :
5913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5914 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5915 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5916 cat >>confdefs.h <<_ACEOF
5917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5918 _ACEOF
5922 done
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5925 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5926 if test "${ac_cv_header_stat_broken+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5931 #include <sys/types.h>
5932 #include <sys/stat.h>
5934 #if defined S_ISBLK && defined S_IFDIR
5935 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5936 #endif
5938 #if defined S_ISBLK && defined S_IFCHR
5939 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5940 #endif
5942 #if defined S_ISLNK && defined S_IFREG
5943 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5944 #endif
5946 #if defined S_ISSOCK && defined S_IFREG
5947 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5948 #endif
5950 _ACEOF
5951 if ac_fn_c_try_compile "$LINENO"; then :
5952 ac_cv_header_stat_broken=no
5953 else
5954 ac_cv_header_stat_broken=yes
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5959 $as_echo "$ac_cv_header_stat_broken" >&6; }
5960 if test $ac_cv_header_stat_broken = yes; then
5962 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5968 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5969 do :
5970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5971 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5972 #ifdef HAVE_SYS_PARAM_H
5973 # include <sys/param.h>
5974 #endif
5976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5977 cat >>confdefs.h <<_ACEOF
5978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5979 _ACEOF
5983 done
5986 for ac_header in \
5987 netinet/ip.h \
5988 net/if.h \
5989 net/if_arp.h \
5990 net/if_dl.h \
5991 net/if_types.h \
5992 net/route.h \
5993 netinet/if_ether.h \
5994 netinet/if_inarp.h \
5995 netinet/in_pcb.h \
5996 netinet/ip_icmp.h \
5997 netinet/ip_var.h \
5998 netinet/udp.h \
5999 netipx/ipx.h \
6001 do :
6002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6003 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6004 #ifdef HAVE_SYS_SOCKET_H
6005 # include <sys/socket.h>
6006 #endif
6007 #ifdef HAVE_SYS_SOCKETVAR_H
6008 # include <sys/socketvar.h>
6009 #endif
6010 #ifdef HAVE_NET_ROUTE_H
6011 # include <net/route.h>
6012 #endif
6013 #ifdef HAVE_NETINET_IN_H
6014 # include <netinet/in.h>
6015 #endif
6016 #ifdef HAVE_NETINET_IN_SYSTM_H
6017 # include <netinet/in_systm.h>
6018 #endif
6019 #ifdef HAVE_NET_IF_H
6020 # include <net/if.h>
6021 #endif
6022 #ifdef HAVE_NETINET_IP_H
6023 # include <netinet/ip.h>
6024 #endif
6026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6027 cat >>confdefs.h <<_ACEOF
6028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6029 _ACEOF
6033 done
6036 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6037 do :
6038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6039 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6040 #ifdef HAVE_ALIAS_H
6041 # include <alias.h>
6042 #endif
6043 #ifdef HAVE_SYS_SOCKET_H
6044 # include <sys/socket.h>
6045 #endif
6046 #ifdef HAVE_SYS_SOCKETVAR_H
6047 # include <sys/socketvar.h>
6048 #endif
6049 #ifdef HAVE_SYS_TIMEOUT_H
6050 # include <sys/timeout.h>
6051 #endif
6052 #ifdef HAVE_NETINET_IN_H
6053 # include <netinet/in.h>
6054 #endif
6055 #ifdef HAVE_NETINET_IN_SYSTM_H
6056 # include <netinet/in_systm.h>
6057 #endif
6058 #ifdef HAVE_NETINET_IP_H
6059 # include <netinet/ip.h>
6060 #endif
6061 #ifdef HAVE_NETINET_IP_VAR_H
6062 # include <netinet/ip_var.h>
6063 #endif
6064 #ifdef HAVE_NETINET_IP_ICMP_H
6065 # include <netinet/ip_icmp.h>
6066 #endif
6067 #ifdef HAVE_NETINET_UDP_H
6068 # include <netinet/udp.h>
6069 #endif
6070 #ifdef HAVE_NETINET_TCP_H
6071 # include <netinet/tcp.h>
6072 #endif
6073 #ifdef HAVE_NETINET_TCP_TIMER_H
6074 #include <netinet/tcp_timer.h>
6075 #endif
6077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6078 cat >>confdefs.h <<_ACEOF
6079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6080 _ACEOF
6084 done
6087 for ac_header in linux/ipx.h linux/irda.h
6088 do :
6089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6090 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6091 #ifdef HAVE_ASM_TYPES_H
6092 # include <asm/types.h>
6093 #endif
6094 #ifdef HAVE_SYS_SOCKET_H
6095 # include <sys/socket.h>
6096 #endif
6097 #ifdef HAVE_LINUX_TYPES_H
6098 # include <linux/types.h>
6099 #endif
6101 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6102 cat >>confdefs.h <<_ACEOF
6103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6104 _ACEOF
6108 done
6111 for ac_header in mach-o/dyld_images.h
6112 do :
6113 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6114 # include <stdbool.h>
6115 #endif
6116 #ifdef HAVE_STDINT_H
6117 # include <stdint.h>
6118 #endif
6120 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6121 cat >>confdefs.h <<_ACEOF
6122 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6123 _ACEOF
6127 done
6130 for ac_header in resolv.h
6131 do :
6132 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6133 #ifdef HAVE_SYS_SOCKET_H
6134 # include <sys/socket.h>
6135 #endif
6136 #ifdef HAVE_NETINET_IN_H
6137 # include <netinet/in.h>
6138 #endif
6139 #ifdef HAVE_ARPA_NAMESER_H
6140 # include <arpa/nameser.h>
6141 #endif
6143 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6144 cat >>confdefs.h <<_ACEOF
6145 #define HAVE_RESOLV_H 1
6146 _ACEOF
6150 done
6153 for ac_header in ifaddrs.h
6154 do :
6155 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6157 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6158 cat >>confdefs.h <<_ACEOF
6159 #define HAVE_IFADDRS_H 1
6160 _ACEOF
6164 done
6167 for ac_header in ucontext.h
6168 do :
6169 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6171 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6172 cat >>confdefs.h <<_ACEOF
6173 #define HAVE_UCONTEXT_H 1
6174 _ACEOF
6178 done
6181 for ac_header in sys/thr.h
6182 do :
6183 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6184 #ifdef HAVE_UCONTEXT_H
6185 #include <ucontext.h>
6186 #endif
6188 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6189 cat >>confdefs.h <<_ACEOF
6190 #define HAVE_SYS_THR_H 1
6191 _ACEOF
6195 done
6198 for ac_header in pthread_np.h
6199 do :
6200 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6201 #include <pthread.h>
6202 #endif
6204 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6205 cat >>confdefs.h <<_ACEOF
6206 #define HAVE_PTHREAD_NP_H 1
6207 _ACEOF
6211 done
6214 for ac_header in linux/videodev.h
6215 do :
6216 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6217 #include <sys/time.h>
6218 #endif
6219 #include <sys/types.h>
6220 #ifdef HAVE_ASM_TYPES_H
6221 #include <asm/types.h>
6222 #endif
6224 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6225 cat >>confdefs.h <<_ACEOF
6226 #define HAVE_LINUX_VIDEODEV_H 1
6227 _ACEOF
6231 done
6234 for ac_header in linux/capi.h
6235 do :
6236 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6238 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6239 cat >>confdefs.h <<_ACEOF
6240 #define HAVE_LINUX_CAPI_H 1
6241 _ACEOF
6245 done
6249 DLLEXT=""
6251 DLLFLAGS="-D_REENTRANT"
6253 LDSHARED=""
6255 LDDLLFLAGS=""
6257 LIBEXT="so"
6259 IMPLIBEXT="def"
6261 LDRPATH_INSTALL=""
6263 LDRPATH_LOCAL=""
6265 STATIC_IMPLIBEXT="def.a"
6266 # Extract the first word of "ldd", so it can be a program name with args.
6267 set dummy ldd; ac_word=$2
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269 $as_echo_n "checking for $ac_word... " >&6; }
6270 if test "${ac_cv_path_LDD+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6272 else
6273 case $LDD in
6274 [\\/]* | ?:[\\/]*)
6275 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 as_dummy="/sbin:/usr/sbin:$PATH"
6280 for as_dir in $as_dummy
6282 IFS=$as_save_IFS
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 break 2
6290 done
6291 done
6292 IFS=$as_save_IFS
6294 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6296 esac
6298 LDD=$ac_cv_path_LDD
6299 if test -n "$LDD"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6301 $as_echo "$LDD" >&6; }
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6309 case $host_os in
6310 cygwin*|mingw32*)
6311 if test -n "$ac_tool_prefix"; then
6312 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6313 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$DLLTOOL"; then
6320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6333 done
6334 done
6335 IFS=$as_save_IFS
6339 DLLTOOL=$ac_cv_prog_DLLTOOL
6340 if test -n "$DLLTOOL"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6342 $as_echo "$DLLTOOL" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6350 if test -z "$ac_cv_prog_DLLTOOL"; then
6351 ac_ct_DLLTOOL=$DLLTOOL
6352 # Extract the first word of "dlltool", so it can be a program name with args.
6353 set dummy dlltool; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$ac_ct_DLLTOOL"; then
6360 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6373 done
6374 done
6375 IFS=$as_save_IFS
6379 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6380 if test -n "$ac_ct_DLLTOOL"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6382 $as_echo "$ac_ct_DLLTOOL" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6388 if test "x$ac_ct_DLLTOOL" = x; then
6389 DLLTOOL="false"
6390 else
6391 case $cross_compiling:$ac_tool_warned in
6392 yes:)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6396 esac
6397 DLLTOOL=$ac_ct_DLLTOOL
6399 else
6400 DLLTOOL="$ac_cv_prog_DLLTOOL"
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$DLLWRAP"; then
6412 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6425 done
6426 done
6427 IFS=$as_save_IFS
6431 DLLWRAP=$ac_cv_prog_DLLWRAP
6432 if test -n "$DLLWRAP"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6434 $as_echo "$DLLWRAP" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6442 if test -z "$ac_cv_prog_DLLWRAP"; then
6443 ac_ct_DLLWRAP=$DLLWRAP
6444 # Extract the first word of "dllwrap", so it can be a program name with args.
6445 set dummy dllwrap; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$ac_ct_DLLWRAP"; then
6452 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6465 done
6466 done
6467 IFS=$as_save_IFS
6471 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6472 if test -n "$ac_ct_DLLWRAP"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6474 $as_echo "$ac_ct_DLLWRAP" >&6; }
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6480 if test "x$ac_ct_DLLWRAP" = x; then
6481 DLLWRAP="false"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489 DLLWRAP=$ac_ct_DLLWRAP
6491 else
6492 DLLWRAP="$ac_cv_prog_DLLWRAP"
6495 if test "$DLLWRAP" = "false"; then
6496 LIBEXT="a"
6497 else
6498 LIBEXT="dll"
6500 IMPLIBEXT="a"
6501 STATIC_IMPLIBEXT="a"
6502 enable_iphlpapi=${enable_iphlpapi:-no}
6503 enable_kernel32=${enable_kernel32:-no}
6504 enable_msvcrt=${enable_msvcrt:-no}
6505 enable_ntdll=${enable_ntdll:-no}
6506 enable_ws2_32=${enable_ws2_32:-no}
6507 enable_loader=${enable_loader:-no}
6508 enable_server=${enable_server:-no}
6509 with_x=${with_x:-no}
6510 with_pthread=${with_pthread:-no}
6512 darwin*|macosx*)
6513 DLLEXT=".so"
6514 LIBEXT="dylib"
6515 DLLFLAGS="$DLLFLAGS -fPIC"
6516 LDDLLFLAGS="-bundle -multiply_defined suppress"
6517 LIBWINE_LDFLAGS="-multiply_defined suppress"
6518 LDSHARED="\$(CC) -dynamiclib"
6519 STRIP="$STRIP -x"
6520 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6521 SECURITYLIB="-framework Security -framework CoreFoundation"
6523 COREFOUNDATIONLIB="-framework CoreFoundation"
6525 IOKITLIB="-framework IOKit -framework CoreFoundation"
6527 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6529 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6531 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6532 then
6533 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6536 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6537 then
6538 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6539 then
6540 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6542 else
6543 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6546 ac_save_LIBS="$LIBS"
6547 LIBS="$LIBS $COREAUDIO"
6548 for ac_func in AUGraphAddNode
6549 do :
6550 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6551 if test "x$ac_cv_func_AUGraphAddNode" = x""yes; then :
6552 cat >>confdefs.h <<_ACEOF
6553 #define HAVE_AUGRAPHADDNODE 1
6554 _ACEOF
6557 done
6559 LIBS="$ac_save_LIBS"
6561 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6562 then
6563 FRAMEWORK_OPENAL="-framework OpenAL"
6566 cat >>confdefs.h <<_ACEOF
6567 #define HAVE_OPENAL 1
6568 _ACEOF
6570 ac_cv_lib_openal=yes
6572 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6573 then
6574 LIBOPENCL="-framework OpenCL"
6576 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6578 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6579 then
6580 ac_save_LIBS="$LIBS"
6581 LIBS="$LIBS $IOKITLIB"
6582 for ac_func in IOHIDManagerCreate
6583 do :
6584 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6585 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6586 cat >>confdefs.h <<_ACEOF
6587 #define HAVE_IOHIDMANAGERCREATE 1
6588 _ACEOF
6591 done
6593 LIBS="$ac_save_LIBS"
6595 case $host_cpu in
6596 *powerpc*)
6597 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6598 esac
6599 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6600 then
6601 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6603 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6604 else
6605 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6607 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6608 then
6609 CARBONLIB="-framework Carbon"
6611 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6613 if test "x$enable_win16" = "xyes"
6614 then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6616 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6617 if test "$cross_compiling" = yes; then :
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6619 $as_echo "cross-compiling, assuming yes" >&6; }
6620 else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 asm(".text\n"
6624 "bad:\tnop;nop\n"
6625 "good:\tnop;nop\n\t"
6626 ".globl _testfunc\n"
6627 "_testfunc:\tcallw good");
6628 extern void testfunc();
6630 main ()
6632 unsigned short *p = (unsigned short *)testfunc;
6633 return p[0] != 0xe866 || p[1] != 0xfffa
6635 return 0;
6637 _ACEOF
6638 if ac_fn_c_try_run "$LINENO"; then :
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6640 $as_echo "yes" >&6; }
6641 else
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 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
6646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6647 conftest.$ac_objext conftest.beam conftest.$ac_ext
6653 DLLFLAGS="$DLLFLAGS -fPIC"
6654 DLLEXT=".so"
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6656 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6657 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 ac_wine_try_cflags_saved=$CFLAGS
6661 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 void myfunc() {}
6665 _ACEOF
6666 if ac_fn_c_try_link "$LINENO"; then :
6667 ac_cv_c_dll_gnuelf="yes"
6668 else
6669 ac_cv_c_dll_gnuelf="no"
6671 rm -f core conftest.err conftest.$ac_objext \
6672 conftest$ac_exeext conftest.$ac_ext
6673 CFLAGS=$ac_wine_try_cflags_saved
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6676 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6677 if test "$ac_cv_c_dll_gnuelf" = "yes"
6678 then
6679 LDSHARED="\$(CC) -shared"
6680 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6682 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6683 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 ac_wine_try_cflags_saved=$CFLAGS
6687 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6690 int main(int argc, char **argv) { return 0; }
6691 _ACEOF
6692 if ac_fn_c_try_link "$LINENO"; then :
6693 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6694 else
6695 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6697 rm -f core conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6699 CFLAGS=$ac_wine_try_cflags_saved
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6702 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6703 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6704 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6705 else
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6707 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6708 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 ac_wine_try_cflags_saved=$CFLAGS
6712 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 int main(int argc, char **argv) { return 0; }
6716 _ACEOF
6717 if ac_fn_c_try_link "$LINENO"; then :
6718 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6719 else
6720 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6722 rm -f core conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
6724 CFLAGS=$ac_wine_try_cflags_saved
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6727 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6728 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6729 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6734 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6735 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 ac_wine_try_cflags_saved=$CFLAGS
6739 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 int main(int argc, char **argv) { return 0; }
6743 _ACEOF
6744 if ac_fn_c_try_link "$LINENO"; then :
6745 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6746 else
6747 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6749 rm -f core conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6751 CFLAGS=$ac_wine_try_cflags_saved
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6754 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6755 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6756 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6759 { $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
6760 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6761 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 ac_wine_try_cflags_saved=$CFLAGS
6765 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 int main(int argc, char **argv) { return 0; }
6769 _ACEOF
6770 if ac_fn_c_try_link "$LINENO"; then :
6771 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6772 else
6773 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6775 rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
6777 CFLAGS=$ac_wine_try_cflags_saved
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6780 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6781 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6782 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6785 echo '{ global: *; };' >conftest.map
6786 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6788 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6789 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 ac_wine_try_cflags_saved=$CFLAGS
6793 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6796 int main(int argc, char **argv) { return 0; }
6797 _ACEOF
6798 if ac_fn_c_try_link "$LINENO"; then :
6799 eval "$as_ac_var=yes"
6800 else
6801 eval "$as_ac_var=no"
6803 rm -f core conftest.err conftest.$ac_objext \
6804 conftest$ac_exeext conftest.$ac_ext
6805 CFLAGS=$ac_wine_try_cflags_saved
6807 eval ac_res=\$$as_ac_var
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6809 $as_echo "$ac_res" >&6; }
6810 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6811 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6813 rm -f conftest.map
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6816 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6817 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 ac_wine_try_cflags_saved=$CFLAGS
6821 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 int main(int argc, char **argv) { return 0; }
6825 _ACEOF
6826 if ac_fn_c_try_link "$LINENO"; then :
6827 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6828 else
6829 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6831 rm -f core conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 CFLAGS=$ac_wine_try_cflags_saved
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6836 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6837 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6838 LDEXECFLAGS="-Wl,--export-dynamic"
6842 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6844 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6845 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 ac_wine_try_cflags_saved=$CFLAGS
6849 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 int main(int argc, char **argv) { return 0; }
6853 _ACEOF
6854 if ac_fn_c_try_link "$LINENO"; then :
6855 eval "$as_ac_var=yes"
6856 else
6857 eval "$as_ac_var=no"
6859 rm -f core conftest.err conftest.$ac_objext \
6860 conftest$ac_exeext conftest.$ac_ext
6861 CFLAGS=$ac_wine_try_cflags_saved
6863 eval ac_res=\$$as_ac_var
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6865 $as_echo "$ac_res" >&6; }
6866 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6867 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6868 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6869 else
6870 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6872 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6873 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 ac_wine_try_cflags_saved=$CFLAGS
6877 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 int main(int argc, char **argv) { return 0; }
6881 _ACEOF
6882 if ac_fn_c_try_link "$LINENO"; then :
6883 eval "$as_ac_var=yes"
6884 else
6885 eval "$as_ac_var=no"
6887 rm -f core conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
6889 CFLAGS=$ac_wine_try_cflags_saved
6891 eval ac_res=\$$as_ac_var
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6893 $as_echo "$ac_res" >&6; }
6894 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6895 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6896 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6901 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6902 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 ac_wine_try_cflags_saved=$CFLAGS
6906 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909 int main(int argc, char **argv) { return 0; }
6910 _ACEOF
6911 if ac_fn_c_try_link "$LINENO"; then :
6912 ac_cv_cflags__Wl___enable_new_dtags=yes
6913 else
6914 ac_cv_cflags__Wl___enable_new_dtags=no
6916 rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918 CFLAGS=$ac_wine_try_cflags_saved
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6921 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6922 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6923 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6926 case $host_cpu in
6927 *i[3456789]86* | x86_64)
6928 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6930 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6931 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 ac_wine_try_cflags_saved=$CFLAGS
6935 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938 int main(int argc, char **argv) { return 0; }
6939 _ACEOF
6940 if ac_fn_c_try_link "$LINENO"; then :
6941 eval "$as_ac_var=yes"
6942 else
6943 eval "$as_ac_var=no"
6945 rm -f core conftest.err conftest.$ac_objext \
6946 conftest$ac_exeext conftest.$ac_ext
6947 CFLAGS=$ac_wine_try_cflags_saved
6949 eval ac_res=\$$as_ac_var
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6951 $as_echo "$ac_res" >&6; }
6952 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6953 case $host_os in
6954 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6955 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6956 esac
6959 # Extract the first word of "prelink", so it can be a program name with args.
6960 set dummy prelink; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if test "${ac_cv_path_PRELINK+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 case $PRELINK in
6967 [\\/]* | ?:[\\/]*)
6968 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in /sbin /usr/sbin $PATH
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6982 done
6983 done
6984 IFS=$as_save_IFS
6986 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6988 esac
6990 PRELINK=$ac_cv_path_PRELINK
6991 if test -n "$PRELINK"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6993 $as_echo "$PRELINK" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
7000 if test "x$PRELINK" = xfalse
7001 then
7002 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7005 esac
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7009 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7010 if test "${ac_cv_c_dll_unixware+set}" = set; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 ac_wine_try_cflags_saved=$CFLAGS
7014 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017 void myfunc() {}
7018 _ACEOF
7019 if ac_fn_c_try_link "$LINENO"; then :
7020 ac_cv_c_dll_unixware="yes"
7021 else
7022 ac_cv_c_dll_unixware="no"
7024 rm -f core conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
7026 CFLAGS=$ac_wine_try_cflags_saved
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7029 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7030 if test "$ac_cv_c_dll_unixware" = "yes"
7031 then
7032 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7033 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7037 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7038 if test "${ac_cv_c_dll_hpux+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 ac_wine_try_cflags_saved=$CFLAGS
7042 CFLAGS="$CFLAGS -shared"
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045 void myfunc() {}
7046 _ACEOF
7047 if ac_fn_c_try_link "$LINENO"; then :
7048 ac_cv_c_dll_hpux="yes"
7049 else
7050 ac_cv_c_dll_hpux="no"
7052 rm -f core conftest.err conftest.$ac_objext \
7053 conftest$ac_exeext conftest.$ac_ext
7054 CFLAGS=$ac_wine_try_cflags_saved
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7057 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7058 if test "$ac_cv_c_dll_hpux" = "yes"
7059 then
7060 LIBEXT="sl"
7061 DLLEXT=".sl"
7062 LDDLLFLAGS="-shared -fPIC"
7063 LDSHARED="\$(CC) -shared"
7068 esac
7070 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7071 enable_winequartz_drv=${enable_winequartz_drv:-no}
7073 if test "$LIBEXT" = "a"; then
7074 as_fn_error $? "could not find a way to build shared libraries.
7075 It is currently not possible to build Wine without shared library
7076 (.so) support to allow transparent switch between .so and .dll files.
7077 If you are using Linux, you will need a newer binutils.
7078 " "$LINENO" 5
7081 CROSSTEST_DISABLE=\#
7083 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7084 then
7085 case "$host_cpu" in
7086 i[3456789]86*)
7087 ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc 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 " ;;
7088 x86_64)
7089 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 " ;;
7091 ac_prefix_list="" ;;
7092 esac
7093 for ac_prog in $ac_prefix_list
7095 # Extract the first word of "$ac_prog", so it can be a program name with args.
7096 set dummy $ac_prog; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102 if test -n "$CROSSCC"; then
7103 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_prog_CROSSCC="$ac_prog"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7116 done
7117 done
7118 IFS=$as_save_IFS
7122 CROSSCC=$ac_cv_prog_CROSSCC
7123 if test -n "$CROSSCC"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7125 $as_echo "$CROSSCC" >&6; }
7126 else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7132 test -n "$CROSSCC" && break
7133 done
7134 test -n "$CROSSCC" || CROSSCC="false"
7136 if test "$CROSSCC" != "false"
7137 then
7138 ac_save_CC="$CC"
7139 CC="$CROSSCC"
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7141 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7146 main ()
7150 return 0;
7152 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7155 $as_echo "yes" >&6; }
7156 set x $CROSSCC
7157 shift
7158 target=""
7159 while test $# -ge 1
7161 case "$1" in
7162 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7163 esac
7164 shift
7165 done
7166 if test -n "$target"
7167 then
7168 CROSSTEST_DISABLE=""
7169 CROSSTARGET="$target"
7172 else
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 CC="$ac_save_CC"
7182 if test "$ac_cv_header_pthread_h" = "yes"
7183 then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7185 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7186 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 ac_check_lib_save_LIBS=$LIBS
7190 LIBS="-lpthread $LIBS"
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7194 /* Override any GCC internal prototype to avoid an error.
7195 Use char because int might match the return type of a GCC
7196 builtin and then its argument prototype would still apply. */
7197 #ifdef __cplusplus
7198 extern "C"
7199 #endif
7200 char pthread_create ();
7202 main ()
7204 return pthread_create ();
7206 return 0;
7208 _ACEOF
7209 if ac_fn_c_try_link "$LINENO"; then :
7210 ac_cv_lib_pthread_pthread_create=yes
7211 else
7212 ac_cv_lib_pthread_pthread_create=no
7214 rm -f core conftest.err conftest.$ac_objext \
7215 conftest$ac_exeext conftest.$ac_ext
7216 LIBS=$ac_check_lib_save_LIBS
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7219 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7220 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7221 LIBPTHREAD="-lpthread"
7226 if test "x$LIBPTHREAD" = "x"; then :
7227 case "x$with_pthread" in
7228 xno) ;;
7229 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7230 Wine cannot support threads without libpthread.
7231 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7232 esac
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7237 $as_echo_n "checking for X... " >&6; }
7240 # Check whether --with-x was given.
7241 if test "${with_x+set}" = set; then :
7242 withval=$with_x;
7245 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7246 if test "x$with_x" = xno; then
7247 # The user explicitly disabled X.
7248 have_x=disabled
7249 else
7250 case $x_includes,$x_libraries in #(
7251 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7252 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 # One or both of the vars are not set, and there is no cached value.
7256 ac_x_includes=no ac_x_libraries=no
7257 rm -f -r conftest.dir
7258 if mkdir conftest.dir; then
7259 cd conftest.dir
7260 cat >Imakefile <<'_ACEOF'
7261 incroot:
7262 @echo incroot='${INCROOT}'
7263 usrlibdir:
7264 @echo usrlibdir='${USRLIBDIR}'
7265 libdir:
7266 @echo libdir='${LIBDIR}'
7267 _ACEOF
7268 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7269 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7270 for ac_var in incroot usrlibdir libdir; do
7271 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7272 done
7273 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7274 for ac_extension in a so sl dylib la dll; do
7275 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7276 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7277 ac_im_usrlibdir=$ac_im_libdir; break
7279 done
7280 # Screen out bogus values from the imake configuration. They are
7281 # bogus both because they are the default anyway, and because
7282 # using them would break gcc on systems where it needs fixed includes.
7283 case $ac_im_incroot in
7284 /usr/include) ac_x_includes= ;;
7285 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7286 esac
7287 case $ac_im_usrlibdir in
7288 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7289 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7290 esac
7292 cd ..
7293 rm -f -r conftest.dir
7296 # Standard set of common directories for X headers.
7297 # Check X11 before X11Rn because it is often a symlink to the current release.
7298 ac_x_header_dirs='
7299 /usr/X11/include
7300 /usr/X11R7/include
7301 /usr/X11R6/include
7302 /usr/X11R5/include
7303 /usr/X11R4/include
7305 /usr/include/X11
7306 /usr/include/X11R7
7307 /usr/include/X11R6
7308 /usr/include/X11R5
7309 /usr/include/X11R4
7311 /usr/local/X11/include
7312 /usr/local/X11R7/include
7313 /usr/local/X11R6/include
7314 /usr/local/X11R5/include
7315 /usr/local/X11R4/include
7317 /usr/local/include/X11
7318 /usr/local/include/X11R7
7319 /usr/local/include/X11R6
7320 /usr/local/include/X11R5
7321 /usr/local/include/X11R4
7323 /usr/X386/include
7324 /usr/x386/include
7325 /usr/XFree86/include/X11
7327 /usr/include
7328 /usr/local/include
7329 /usr/unsupported/include
7330 /usr/athena/include
7331 /usr/local/x11r5/include
7332 /usr/lpp/Xamples/include
7334 /usr/openwin/include
7335 /usr/openwin/share/include'
7337 if test "$ac_x_includes" = no; then
7338 # Guess where to find include files, by looking for Xlib.h.
7339 # First, try using that file with no special directory specified.
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342 #include <X11/Xlib.h>
7343 _ACEOF
7344 if ac_fn_c_try_cpp "$LINENO"; then :
7345 # We can compile using X headers with no special include directory.
7346 ac_x_includes=
7347 else
7348 for ac_dir in $ac_x_header_dirs; do
7349 if test -r "$ac_dir/X11/Xlib.h"; then
7350 ac_x_includes=$ac_dir
7351 break
7353 done
7355 rm -f conftest.err conftest.i conftest.$ac_ext
7356 fi # $ac_x_includes = no
7358 if test "$ac_x_libraries" = no; then
7359 # Check for the libraries.
7360 # See if we find them without any special options.
7361 # Don't add to $LIBS permanently.
7362 ac_save_LIBS=$LIBS
7363 LIBS="-lX11 $LIBS"
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 #include <X11/Xlib.h>
7368 main ()
7370 XrmInitialize ()
7372 return 0;
7374 _ACEOF
7375 if ac_fn_c_try_link "$LINENO"; then :
7376 LIBS=$ac_save_LIBS
7377 # We can link X programs with no special library path.
7378 ac_x_libraries=
7379 else
7380 LIBS=$ac_save_LIBS
7381 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7383 # Don't even attempt the hair of trying to link an X program!
7384 for ac_extension in a so sl dylib la dll; do
7385 if test -r "$ac_dir/libX11.$ac_extension"; then
7386 ac_x_libraries=$ac_dir
7387 break 2
7389 done
7390 done
7392 rm -f core conftest.err conftest.$ac_objext \
7393 conftest$ac_exeext conftest.$ac_ext
7394 fi # $ac_x_libraries = no
7396 case $ac_x_includes,$ac_x_libraries in #(
7397 no,* | *,no | *\'*)
7398 # Didn't find X, or a directory has "'" in its name.
7399 ac_cv_have_x="have_x=no";; #(
7401 # Record where we found X for the cache.
7402 ac_cv_have_x="have_x=yes\
7403 ac_x_includes='$ac_x_includes'\
7404 ac_x_libraries='$ac_x_libraries'"
7405 esac
7407 ;; #(
7408 *) have_x=yes;;
7409 esac
7410 eval "$ac_cv_have_x"
7411 fi # $with_x != no
7413 if test "$have_x" != yes; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7415 $as_echo "$have_x" >&6; }
7416 no_x=yes
7417 else
7418 # If each of the values was on the command line, it overrides each guess.
7419 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7420 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7421 # Update the cache value to reflect the command line values.
7422 ac_cv_have_x="have_x=yes\
7423 ac_x_includes='$x_includes'\
7424 ac_x_libraries='$x_libraries'"
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7426 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7429 if test "$no_x" = yes; then
7430 # Not all programs may use this symbol, but it does not hurt to define it.
7432 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7434 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7435 else
7436 if test -n "$x_includes"; then
7437 X_CFLAGS="$X_CFLAGS -I$x_includes"
7440 # It would also be nice to do this for all -L options, not just this one.
7441 if test -n "$x_libraries"; then
7442 X_LIBS="$X_LIBS -L$x_libraries"
7443 # For Solaris; some versions of Sun CC require a space after -R and
7444 # others require no space. Words are not sufficient . . . .
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7446 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7447 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7448 ac_xsave_c_werror_flag=$ac_c_werror_flag
7449 ac_c_werror_flag=yes
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7454 main ()
7458 return 0;
7460 _ACEOF
7461 if ac_fn_c_try_link "$LINENO"; then :
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7464 X_LIBS="$X_LIBS -R$x_libraries"
7465 else
7466 LIBS="$ac_xsave_LIBS -R $x_libraries"
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7471 main ()
7475 return 0;
7477 _ACEOF
7478 if ac_fn_c_try_link "$LINENO"; then :
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7480 $as_echo "yes" >&6; }
7481 X_LIBS="$X_LIBS -R $x_libraries"
7482 else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7484 $as_echo "neither works" >&6; }
7486 rm -f core conftest.err conftest.$ac_objext \
7487 conftest$ac_exeext conftest.$ac_ext
7489 rm -f core conftest.err conftest.$ac_objext \
7490 conftest$ac_exeext conftest.$ac_ext
7491 ac_c_werror_flag=$ac_xsave_c_werror_flag
7492 LIBS=$ac_xsave_LIBS
7495 # Check for system-dependent libraries X programs must link with.
7496 # Do this before checking for the system-independent R6 libraries
7497 # (-lICE), since we may need -lsocket or whatever for X linking.
7499 if test "$ISC" = yes; then
7500 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7501 else
7502 # Martyn Johnson says this is needed for Ultrix, if the X
7503 # libraries were built with DECnet support. And Karl Berry says
7504 # the Alpha needs dnet_stub (dnet does not exist).
7505 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7509 /* Override any GCC internal prototype to avoid an error.
7510 Use char because int might match the return type of a GCC
7511 builtin and then its argument prototype would still apply. */
7512 #ifdef __cplusplus
7513 extern "C"
7514 #endif
7515 char XOpenDisplay ();
7517 main ()
7519 return XOpenDisplay ();
7521 return 0;
7523 _ACEOF
7524 if ac_fn_c_try_link "$LINENO"; then :
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7528 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7529 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 ac_check_lib_save_LIBS=$LIBS
7533 LIBS="-ldnet $LIBS"
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7537 /* Override any GCC internal prototype to avoid an error.
7538 Use char because int might match the return type of a GCC
7539 builtin and then its argument prototype would still apply. */
7540 #ifdef __cplusplus
7541 extern "C"
7542 #endif
7543 char dnet_ntoa ();
7545 main ()
7547 return dnet_ntoa ();
7549 return 0;
7551 _ACEOF
7552 if ac_fn_c_try_link "$LINENO"; then :
7553 ac_cv_lib_dnet_dnet_ntoa=yes
7554 else
7555 ac_cv_lib_dnet_dnet_ntoa=no
7557 rm -f core conftest.err conftest.$ac_objext \
7558 conftest$ac_exeext conftest.$ac_ext
7559 LIBS=$ac_check_lib_save_LIBS
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7562 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7563 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7564 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7567 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7569 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7570 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 ac_check_lib_save_LIBS=$LIBS
7574 LIBS="-ldnet_stub $LIBS"
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7578 /* Override any GCC internal prototype to avoid an error.
7579 Use char because int might match the return type of a GCC
7580 builtin and then its argument prototype would still apply. */
7581 #ifdef __cplusplus
7582 extern "C"
7583 #endif
7584 char dnet_ntoa ();
7586 main ()
7588 return dnet_ntoa ();
7590 return 0;
7592 _ACEOF
7593 if ac_fn_c_try_link "$LINENO"; then :
7594 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7595 else
7596 ac_cv_lib_dnet_stub_dnet_ntoa=no
7598 rm -f core conftest.err conftest.$ac_objext \
7599 conftest$ac_exeext conftest.$ac_ext
7600 LIBS=$ac_check_lib_save_LIBS
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7603 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7604 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7605 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7610 rm -f core conftest.err conftest.$ac_objext \
7611 conftest$ac_exeext conftest.$ac_ext
7612 LIBS="$ac_xsave_LIBS"
7614 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7615 # to get the SysV transport functions.
7616 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7617 # needs -lnsl.
7618 # The nsl library prevents programs from opening the X display
7619 # on Irix 5.2, according to T.E. Dickey.
7620 # The functions gethostbyname, getservbyname, and inet_addr are
7621 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7622 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7623 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7627 if test $ac_cv_func_gethostbyname = no; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7629 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7630 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 ac_check_lib_save_LIBS=$LIBS
7634 LIBS="-lnsl $LIBS"
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7638 /* Override any GCC internal prototype to avoid an error.
7639 Use char because int might match the return type of a GCC
7640 builtin and then its argument prototype would still apply. */
7641 #ifdef __cplusplus
7642 extern "C"
7643 #endif
7644 char gethostbyname ();
7646 main ()
7648 return gethostbyname ();
7650 return 0;
7652 _ACEOF
7653 if ac_fn_c_try_link "$LINENO"; then :
7654 ac_cv_lib_nsl_gethostbyname=yes
7655 else
7656 ac_cv_lib_nsl_gethostbyname=no
7658 rm -f core conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
7660 LIBS=$ac_check_lib_save_LIBS
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7663 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7664 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7668 if test $ac_cv_lib_nsl_gethostbyname = no; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7670 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7671 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 ac_check_lib_save_LIBS=$LIBS
7675 LIBS="-lbsd $LIBS"
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7679 /* Override any GCC internal prototype to avoid an error.
7680 Use char because int might match the return type of a GCC
7681 builtin and then its argument prototype would still apply. */
7682 #ifdef __cplusplus
7683 extern "C"
7684 #endif
7685 char gethostbyname ();
7687 main ()
7689 return gethostbyname ();
7691 return 0;
7693 _ACEOF
7694 if ac_fn_c_try_link "$LINENO"; then :
7695 ac_cv_lib_bsd_gethostbyname=yes
7696 else
7697 ac_cv_lib_bsd_gethostbyname=no
7699 rm -f core conftest.err conftest.$ac_objext \
7700 conftest$ac_exeext conftest.$ac_ext
7701 LIBS=$ac_check_lib_save_LIBS
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7704 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7705 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7712 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7713 # socket/setsockopt and other routines are undefined under SCO ODT
7714 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7715 # on later versions), says Simon Leinen: it contains gethostby*
7716 # variants that don't use the name server (or something). -lsocket
7717 # must be given before -lnsl if both are needed. We assume that
7718 # if connect needs -lnsl, so does gethostbyname.
7719 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7720 if test "x$ac_cv_func_connect" = x""yes; then :
7724 if test $ac_cv_func_connect = no; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7726 $as_echo_n "checking for connect in -lsocket... " >&6; }
7727 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 ac_check_lib_save_LIBS=$LIBS
7731 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7735 /* Override any GCC internal prototype to avoid an error.
7736 Use char because int might match the return type of a GCC
7737 builtin and then its argument prototype would still apply. */
7738 #ifdef __cplusplus
7739 extern "C"
7740 #endif
7741 char connect ();
7743 main ()
7745 return connect ();
7747 return 0;
7749 _ACEOF
7750 if ac_fn_c_try_link "$LINENO"; then :
7751 ac_cv_lib_socket_connect=yes
7752 else
7753 ac_cv_lib_socket_connect=no
7755 rm -f core conftest.err conftest.$ac_objext \
7756 conftest$ac_exeext conftest.$ac_ext
7757 LIBS=$ac_check_lib_save_LIBS
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7760 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7761 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7762 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7767 # Guillermo Gomez says -lposix is necessary on A/UX.
7768 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7769 if test "x$ac_cv_func_remove" = x""yes; then :
7773 if test $ac_cv_func_remove = no; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7775 $as_echo_n "checking for remove in -lposix... " >&6; }
7776 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 ac_check_lib_save_LIBS=$LIBS
7780 LIBS="-lposix $LIBS"
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7784 /* Override any GCC internal prototype to avoid an error.
7785 Use char because int might match the return type of a GCC
7786 builtin and then its argument prototype would still apply. */
7787 #ifdef __cplusplus
7788 extern "C"
7789 #endif
7790 char remove ();
7792 main ()
7794 return remove ();
7796 return 0;
7798 _ACEOF
7799 if ac_fn_c_try_link "$LINENO"; then :
7800 ac_cv_lib_posix_remove=yes
7801 else
7802 ac_cv_lib_posix_remove=no
7804 rm -f core conftest.err conftest.$ac_objext \
7805 conftest$ac_exeext conftest.$ac_ext
7806 LIBS=$ac_check_lib_save_LIBS
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7809 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7810 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7816 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7817 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7818 if test "x$ac_cv_func_shmat" = x""yes; then :
7822 if test $ac_cv_func_shmat = no; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7824 $as_echo_n "checking for shmat in -lipc... " >&6; }
7825 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 ac_check_lib_save_LIBS=$LIBS
7829 LIBS="-lipc $LIBS"
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7833 /* Override any GCC internal prototype to avoid an error.
7834 Use char because int might match the return type of a GCC
7835 builtin and then its argument prototype would still apply. */
7836 #ifdef __cplusplus
7837 extern "C"
7838 #endif
7839 char shmat ();
7841 main ()
7843 return shmat ();
7845 return 0;
7847 _ACEOF
7848 if ac_fn_c_try_link "$LINENO"; then :
7849 ac_cv_lib_ipc_shmat=yes
7850 else
7851 ac_cv_lib_ipc_shmat=no
7853 rm -f core conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855 LIBS=$ac_check_lib_save_LIBS
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7858 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7859 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7860 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7866 # Check for libraries that X11R6 Xt/Xaw programs need.
7867 ac_save_LDFLAGS=$LDFLAGS
7868 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7869 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7870 # check for ICE first), but we must link in the order -lSM -lICE or
7871 # we get undefined symbols. So assume we have SM if we have ICE.
7872 # These have to be linked with before -lX11, unlike the other
7873 # libraries we check for below, so use a different variable.
7874 # John Interrante, Karl Berry
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7876 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7877 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 ac_check_lib_save_LIBS=$LIBS
7881 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7885 /* Override any GCC internal prototype to avoid an error.
7886 Use char because int might match the return type of a GCC
7887 builtin and then its argument prototype would still apply. */
7888 #ifdef __cplusplus
7889 extern "C"
7890 #endif
7891 char IceConnectionNumber ();
7893 main ()
7895 return IceConnectionNumber ();
7897 return 0;
7899 _ACEOF
7900 if ac_fn_c_try_link "$LINENO"; then :
7901 ac_cv_lib_ICE_IceConnectionNumber=yes
7902 else
7903 ac_cv_lib_ICE_IceConnectionNumber=no
7905 rm -f core conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7907 LIBS=$ac_check_lib_save_LIBS
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7910 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7911 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7912 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7915 LDFLAGS=$ac_save_LDFLAGS
7920 if test "$have_x" = "yes"
7921 then
7922 XLIB="-lX11"
7923 ac_save_CPPFLAGS="$CPPFLAGS"
7924 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7927 $as_echo_n "checking for -lX11... " >&6; }
7928 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 ac_check_soname_save_LIBS=$LIBS
7932 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7936 /* Override any GCC internal prototype to avoid an error.
7937 Use char because int might match the return type of a GCC
7938 builtin and then its argument prototype would still apply. */
7939 #ifdef __cplusplus
7940 extern "C"
7941 #endif
7942 char XCreateWindow ();
7944 main ()
7946 return XCreateWindow ();
7948 return 0;
7950 _ACEOF
7951 if ac_fn_c_try_link "$LINENO"; then :
7952 case "$LIBEXT" in
7953 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7954 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'` ;;
7955 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7956 esac
7958 rm -f core conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
7960 LIBS=$ac_check_soname_save_LIBS
7962 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7964 $as_echo "not found" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7968 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7970 cat >>confdefs.h <<_ACEOF
7971 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7972 _ACEOF
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7977 $as_echo_n "checking for -lXext... " >&6; }
7978 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 ac_check_soname_save_LIBS=$LIBS
7982 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7986 /* Override any GCC internal prototype to avoid an error.
7987 Use char because int might match the return type of a GCC
7988 builtin and then its argument prototype would still apply. */
7989 #ifdef __cplusplus
7990 extern "C"
7991 #endif
7992 char XextCreateExtension ();
7994 main ()
7996 return XextCreateExtension ();
7998 return 0;
8000 _ACEOF
8001 if ac_fn_c_try_link "$LINENO"; then :
8002 case "$LIBEXT" in
8003 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8004 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'` ;;
8005 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8006 esac
8008 rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8010 LIBS=$ac_check_soname_save_LIBS
8012 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8014 $as_echo "not found" >&6; }
8016 else
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8018 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8020 cat >>confdefs.h <<_ACEOF
8021 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8022 _ACEOF
8024 XLIB="-lXext $XLIB"
8027 for ac_header in X11/Xlib.h \
8028 X11/XKBlib.h \
8029 X11/Xutil.h \
8030 X11/Xcursor/Xcursor.h \
8031 X11/extensions/shape.h \
8032 X11/extensions/XInput.h \
8033 X11/extensions/XShm.h \
8034 X11/extensions/Xcomposite.h \
8035 X11/extensions/Xinerama.h \
8036 X11/extensions/Xrandr.h \
8037 X11/extensions/Xrender.h \
8038 X11/extensions/xf86vmode.h \
8039 X11/extensions/xf86vmproto.h
8040 do :
8041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8042 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8043 # include <X11/Xlib.h>
8044 #endif
8045 #ifdef HAVE_X11_XUTIL_H
8046 # include <X11/Xutil.h>
8047 #endif
8049 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8050 cat >>confdefs.h <<_ACEOF
8051 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8052 _ACEOF
8056 done
8059 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8060 then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8062 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8063 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 ac_check_lib_save_LIBS=$LIBS
8067 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8071 /* Override any GCC internal prototype to avoid an error.
8072 Use char because int might match the return type of a GCC
8073 builtin and then its argument prototype would still apply. */
8074 #ifdef __cplusplus
8075 extern "C"
8076 #endif
8077 char XkbQueryExtension ();
8079 main ()
8081 return XkbQueryExtension ();
8083 return 0;
8085 _ACEOF
8086 if ac_fn_c_try_link "$LINENO"; then :
8087 ac_cv_lib_X11_XkbQueryExtension=yes
8088 else
8089 ac_cv_lib_X11_XkbQueryExtension=no
8091 rm -f core conftest.err conftest.$ac_objext \
8092 conftest$ac_exeext conftest.$ac_ext
8093 LIBS=$ac_check_lib_save_LIBS
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8096 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8097 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8099 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8105 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8106 then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8108 $as_echo_n "checking for -lXcursor... " >&6; }
8109 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 ac_check_soname_save_LIBS=$LIBS
8113 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8117 /* Override any GCC internal prototype to avoid an error.
8118 Use char because int might match the return type of a GCC
8119 builtin and then its argument prototype would still apply. */
8120 #ifdef __cplusplus
8121 extern "C"
8122 #endif
8123 char XcursorImageLoadCursor ();
8125 main ()
8127 return XcursorImageLoadCursor ();
8129 return 0;
8131 _ACEOF
8132 if ac_fn_c_try_link "$LINENO"; then :
8133 case "$LIBEXT" in
8134 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8135 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'` ;;
8136 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8137 esac
8139 rm -f core conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8141 LIBS=$ac_check_soname_save_LIBS
8143 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8145 $as_echo "not found" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8149 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8151 cat >>confdefs.h <<_ACEOF
8152 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8153 _ACEOF
8158 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8159 case "x$with_xcursor" in
8160 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8161 xno) ;;
8162 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8163 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8164 esac
8167 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8168 then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8170 $as_echo_n "checking for -lXi... " >&6; }
8171 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 ac_check_soname_save_LIBS=$LIBS
8175 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8179 /* Override any GCC internal prototype to avoid an error.
8180 Use char because int might match the return type of a GCC
8181 builtin and then its argument prototype would still apply. */
8182 #ifdef __cplusplus
8183 extern "C"
8184 #endif
8185 char XOpenDevice ();
8187 main ()
8189 return XOpenDevice ();
8191 return 0;
8193 _ACEOF
8194 if ac_fn_c_try_link "$LINENO"; then :
8195 case "$LIBEXT" in
8196 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8197 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'` ;;
8198 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8199 esac
8201 rm -f core conftest.err conftest.$ac_objext \
8202 conftest$ac_exeext conftest.$ac_ext
8203 LIBS=$ac_check_soname_save_LIBS
8205 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8207 $as_echo "not found" >&6; }
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8211 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8213 cat >>confdefs.h <<_ACEOF
8214 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8215 _ACEOF
8220 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8221 case "x$with_xinput" in
8222 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8223 xno) ;;
8224 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8225 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8226 esac
8229 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8230 then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8232 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8233 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 ac_check_lib_save_LIBS=$LIBS
8237 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8241 /* Override any GCC internal prototype to avoid an error.
8242 Use char because int might match the return type of a GCC
8243 builtin and then its argument prototype would still apply. */
8244 #ifdef __cplusplus
8245 extern "C"
8246 #endif
8247 char XShmQueryExtension ();
8249 main ()
8251 return XShmQueryExtension ();
8253 return 0;
8255 _ACEOF
8256 if ac_fn_c_try_link "$LINENO"; then :
8257 ac_cv_lib_Xext_XShmQueryExtension=yes
8258 else
8259 ac_cv_lib_Xext_XShmQueryExtension=no
8261 rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263 LIBS=$ac_check_lib_save_LIBS
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8266 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8267 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8269 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8274 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8275 case "x$with_xshm" in
8276 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8277 xno) ;;
8278 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8279 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8280 esac
8283 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8284 then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8286 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8287 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 ac_check_lib_save_LIBS=$LIBS
8291 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8295 /* Override any GCC internal prototype to avoid an error.
8296 Use char because int might match the return type of a GCC
8297 builtin and then its argument prototype would still apply. */
8298 #ifdef __cplusplus
8299 extern "C"
8300 #endif
8301 char XShapeQueryExtension ();
8303 main ()
8305 return XShapeQueryExtension ();
8307 return 0;
8309 _ACEOF
8310 if ac_fn_c_try_link "$LINENO"; then :
8311 ac_cv_lib_Xext_XShapeQueryExtension=yes
8312 else
8313 ac_cv_lib_Xext_XShapeQueryExtension=no
8315 rm -f core conftest.err conftest.$ac_objext \
8316 conftest$ac_exeext conftest.$ac_ext
8317 LIBS=$ac_check_lib_save_LIBS
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8320 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8321 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8323 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8328 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8329 case "x$with_xshape" in
8330 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8331 xno) ;;
8332 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8333 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8334 esac
8337 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8338 then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8340 $as_echo_n "checking for -lXxf86vm... " >&6; }
8341 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 ac_check_soname_save_LIBS=$LIBS
8345 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8349 /* Override any GCC internal prototype to avoid an error.
8350 Use char because int might match the return type of a GCC
8351 builtin and then its argument prototype would still apply. */
8352 #ifdef __cplusplus
8353 extern "C"
8354 #endif
8355 char XF86VidModeQueryExtension ();
8357 main ()
8359 return XF86VidModeQueryExtension ();
8361 return 0;
8363 _ACEOF
8364 if ac_fn_c_try_link "$LINENO"; then :
8365 case "$LIBEXT" in
8366 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8367 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'` ;;
8368 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8369 esac
8371 rm -f core conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373 LIBS=$ac_check_soname_save_LIBS
8375 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8377 $as_echo "not found" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8381 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8383 cat >>confdefs.h <<_ACEOF
8384 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8385 _ACEOF
8390 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8391 case "x$with_xxf86vm" in
8392 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8393 xno) ;;
8394 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8395 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8396 esac
8399 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"
8400 then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8402 $as_echo_n "checking for -lXrender... " >&6; }
8403 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 ac_check_soname_save_LIBS=$LIBS
8407 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8411 /* Override any GCC internal prototype to avoid an error.
8412 Use char because int might match the return type of a GCC
8413 builtin and then its argument prototype would still apply. */
8414 #ifdef __cplusplus
8415 extern "C"
8416 #endif
8417 char XRenderQueryExtension ();
8419 main ()
8421 return XRenderQueryExtension ();
8423 return 0;
8425 _ACEOF
8426 if ac_fn_c_try_link "$LINENO"; then :
8427 case "$LIBEXT" in
8428 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8429 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'` ;;
8430 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8431 esac
8433 rm -f core conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8435 LIBS=$ac_check_soname_save_LIBS
8437 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8439 $as_echo "not found" >&6; }
8441 else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8443 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8445 cat >>confdefs.h <<_ACEOF
8446 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8447 _ACEOF
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8450 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8451 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 ac_check_lib_save_LIBS=$LIBS
8455 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8459 /* Override any GCC internal prototype to avoid an error.
8460 Use char because int might match the return type of a GCC
8461 builtin and then its argument prototype would still apply. */
8462 #ifdef __cplusplus
8463 extern "C"
8464 #endif
8465 char XRenderSetPictureTransform ();
8467 main ()
8469 return XRenderSetPictureTransform ();
8471 return 0;
8473 _ACEOF
8474 if ac_fn_c_try_link "$LINENO"; then :
8475 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8476 else
8477 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8479 rm -f core conftest.err conftest.$ac_objext \
8480 conftest$ac_exeext conftest.$ac_ext
8481 LIBS=$ac_check_lib_save_LIBS
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8484 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8485 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8487 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8494 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8495 case "x$with_xrender" in
8496 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8497 xno) ;;
8498 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8499 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8500 esac
8503 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8504 then
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507 #include <X11/Xlib.h>
8508 #include <X11/extensions/Xrandr.h>
8510 main ()
8512 static typeof(XRRSetScreenConfigAndRate) * func;
8514 return 0;
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8519 $as_echo_n "checking for -lXrandr... " >&6; }
8520 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 ac_check_soname_save_LIBS=$LIBS
8524 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8528 /* Override any GCC internal prototype to avoid an error.
8529 Use char because int might match the return type of a GCC
8530 builtin and then its argument prototype would still apply. */
8531 #ifdef __cplusplus
8532 extern "C"
8533 #endif
8534 char XRRQueryExtension ();
8536 main ()
8538 return XRRQueryExtension ();
8540 return 0;
8542 _ACEOF
8543 if ac_fn_c_try_link "$LINENO"; then :
8544 case "$LIBEXT" in
8545 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8546 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'` ;;
8547 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8548 esac
8550 rm -f core conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
8552 LIBS=$ac_check_soname_save_LIBS
8554 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8556 $as_echo "not found" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8560 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8562 cat >>confdefs.h <<_ACEOF
8563 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8564 _ACEOF
8569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8572 case "x$with_xrandr" in
8573 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8574 xno) ;;
8575 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8576 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8577 esac
8580 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8581 then
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 #include <X11/Xlib.h>
8585 #include <X11/extensions/Xinerama.h>
8587 main ()
8589 static typeof(XineramaQueryScreens) * func;
8591 return 0;
8593 _ACEOF
8594 if ac_fn_c_try_compile "$LINENO"; then :
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8596 $as_echo_n "checking for -lXinerama... " >&6; }
8597 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 ac_check_soname_save_LIBS=$LIBS
8601 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8605 /* Override any GCC internal prototype to avoid an error.
8606 Use char because int might match the return type of a GCC
8607 builtin and then its argument prototype would still apply. */
8608 #ifdef __cplusplus
8609 extern "C"
8610 #endif
8611 char XineramaQueryScreens ();
8613 main ()
8615 return XineramaQueryScreens ();
8617 return 0;
8619 _ACEOF
8620 if ac_fn_c_try_link "$LINENO"; then :
8621 case "$LIBEXT" in
8622 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8623 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'` ;;
8624 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8625 esac
8627 rm -f core conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8629 LIBS=$ac_check_soname_save_LIBS
8631 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8633 $as_echo "not found" >&6; }
8635 else
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8637 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8639 cat >>confdefs.h <<_ACEOF
8640 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8641 _ACEOF
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8649 case "x$with_xinerama" in
8650 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8651 xno) ;;
8652 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8653 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8654 esac
8657 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8658 then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8660 $as_echo_n "checking for -lXcomposite... " >&6; }
8661 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 ac_check_soname_save_LIBS=$LIBS
8665 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8669 /* Override any GCC internal prototype to avoid an error.
8670 Use char because int might match the return type of a GCC
8671 builtin and then its argument prototype would still apply. */
8672 #ifdef __cplusplus
8673 extern "C"
8674 #endif
8675 char XCompositeRedirectWindow ();
8677 main ()
8679 return XCompositeRedirectWindow ();
8681 return 0;
8683 _ACEOF
8684 if ac_fn_c_try_link "$LINENO"; then :
8685 case "$LIBEXT" in
8686 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8687 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'` ;;
8688 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8689 esac
8691 rm -f core conftest.err conftest.$ac_objext \
8692 conftest$ac_exeext conftest.$ac_ext
8693 LIBS=$ac_check_soname_save_LIBS
8695 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8697 $as_echo "not found" >&6; }
8699 else
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8701 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8703 cat >>confdefs.h <<_ACEOF
8704 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8705 _ACEOF
8710 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8711 case "x$with_xcomposite" in
8712 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8713 xno) ;;
8714 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8715 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8716 esac
8719 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8720 #include <X11/Xlib.h>
8721 #endif
8723 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_XICCALLBACK_CALLBACK 1
8727 _ACEOF
8734 opengl_msg=""
8735 if test "x$with_opengl" != "xno"
8736 then
8737 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8738 do :
8739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8740 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8741 # include <GL/glx.h>
8742 #endif
8744 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8745 cat >>confdefs.h <<_ACEOF
8746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8747 _ACEOF
8751 done
8753 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8754 then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8756 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8757 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8762 #include <GL/gl.h>
8764 main ()
8766 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8768 return 0;
8770 _ACEOF
8771 if ac_fn_c_try_compile "$LINENO"; then :
8772 wine_cv_opengl_header_version_OK="yes"
8773 else
8774 wine_cv_opengl_header_version_OK="no"
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8779 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8781 if test "$wine_cv_opengl_header_version_OK" = "yes"
8782 then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8784 $as_echo_n "checking for -lGL... " >&6; }
8785 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 ac_check_soname_save_LIBS=$LIBS
8789 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8793 /* Override any GCC internal prototype to avoid an error.
8794 Use char because int might match the return type of a GCC
8795 builtin and then its argument prototype would still apply. */
8796 #ifdef __cplusplus
8797 extern "C"
8798 #endif
8799 char glXCreateContext ();
8801 main ()
8803 return glXCreateContext ();
8805 return 0;
8807 _ACEOF
8808 if ac_fn_c_try_link "$LINENO"; then :
8809 case "$LIBEXT" in
8810 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8811 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'` ;;
8812 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8813 esac
8815 rm -f core conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817 LIBS=$ac_check_soname_save_LIBS
8819 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8821 $as_echo "not found" >&6; }
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8823 $as_echo_n "checking for -lGL... " >&6; }
8824 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 ac_check_soname_save_LIBS=$LIBS
8828 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"
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8832 /* Override any GCC internal prototype to avoid an error.
8833 Use char because int might match the return type of a GCC
8834 builtin and then its argument prototype would still apply. */
8835 #ifdef __cplusplus
8836 extern "C"
8837 #endif
8838 char glXCreateContext ();
8840 main ()
8842 return glXCreateContext ();
8844 return 0;
8846 _ACEOF
8847 if ac_fn_c_try_link "$LINENO"; then :
8848 case "$LIBEXT" in
8849 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8850 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'` ;;
8851 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8852 esac
8854 rm -f core conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
8856 LIBS=$ac_check_soname_save_LIBS
8858 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8860 $as_echo "not found" >&6; }
8861 if test -f /usr/X11R6/lib/libGL.a
8862 then
8863 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8864 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8865 else
8866 opengl_msg="No OpenGL library found on this system."
8868 else
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8870 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8872 cat >>confdefs.h <<_ACEOF
8873 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8874 _ACEOF
8876 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"
8878 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8881 else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8883 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8885 cat >>confdefs.h <<_ACEOF
8886 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8887 _ACEOF
8889 OPENGL_LIBS="-lGL"
8891 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8894 if test "$ac_cv_header_GL_glu_h" = "yes"
8895 then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8897 $as_echo_n "checking for -lGLU... " >&6; }
8898 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 ac_check_soname_save_LIBS=$LIBS
8902 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8906 /* Override any GCC internal prototype to avoid an error.
8907 Use char because int might match the return type of a GCC
8908 builtin and then its argument prototype would still apply. */
8909 #ifdef __cplusplus
8910 extern "C"
8911 #endif
8912 char gluLookAt ();
8914 main ()
8916 return gluLookAt ();
8918 return 0;
8920 _ACEOF
8921 if ac_fn_c_try_link "$LINENO"; then :
8922 case "$LIBEXT" in
8923 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8924 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'` ;;
8925 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8926 esac
8928 rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8930 LIBS=$ac_check_soname_save_LIBS
8932 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8934 $as_echo "not found" >&6; }
8936 else
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8938 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8940 cat >>confdefs.h <<_ACEOF
8941 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8942 _ACEOF
8947 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8948 case "x$with_glu" in
8949 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8950 xno) ;;
8951 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8952 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8953 esac
8955 else
8956 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8958 else
8959 opengl_msg="OpenGL development headers not found."
8961 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8962 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8963 else
8964 enable_opengl32=${enable_opengl32:-no}
8965 enable_glu32=${enable_glu32:-no}
8967 if test -n "$opengl_msg"; then :
8968 case "x$with_opengl" in
8969 x) as_fn_append wine_warnings "|$opengl_msg
8970 OpenGL and Direct3D won't be supported." ;;
8971 xno) ;;
8972 *) as_fn_error $? "$opengl_msg
8973 OpenGL and Direct3D won't be supported.
8974 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8975 esac
8978 NASLIBS=""
8980 for ac_header in audio/audiolib.h
8981 do :
8982 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8983 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8984 cat >>confdefs.h <<_ACEOF
8985 #define HAVE_AUDIO_AUDIOLIB_H 1
8986 _ACEOF
8987 for ac_header in audio/soundlib.h
8988 do :
8989 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8991 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8992 cat >>confdefs.h <<_ACEOF
8993 #define HAVE_AUDIO_SOUNDLIB_H 1
8994 _ACEOF
8998 done
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
9001 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
9002 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 ac_check_lib_save_LIBS=$LIBS
9006 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9010 /* Override any GCC internal prototype to avoid an error.
9011 Use char because int might match the return type of a GCC
9012 builtin and then its argument prototype would still apply. */
9013 #ifdef __cplusplus
9014 extern "C"
9015 #endif
9016 char AuCreateFlow ();
9018 main ()
9020 return AuCreateFlow ();
9022 return 0;
9024 _ACEOF
9025 if ac_fn_c_try_link "$LINENO"; then :
9026 ac_cv_lib_audio_AuCreateFlow=yes
9027 else
9028 ac_cv_lib_audio_AuCreateFlow=no
9030 rm -f core conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
9032 LIBS=$ac_check_lib_save_LIBS
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9035 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9036 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
9038 $as_echo "#define HAVE_NAS 1" >>confdefs.h
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9041 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9042 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 ac_check_lib_save_LIBS=$LIBS
9046 LIBS="-lXau $X_LIBS $LIBS"
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9050 /* Override any GCC internal prototype to avoid an error.
9051 Use char because int might match the return type of a GCC
9052 builtin and then its argument prototype would still apply. */
9053 #ifdef __cplusplus
9054 extern "C"
9055 #endif
9056 char XauGetBestAuthByAddr ();
9058 main ()
9060 return XauGetBestAuthByAddr ();
9062 return 0;
9064 _ACEOF
9065 if ac_fn_c_try_link "$LINENO"; then :
9066 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9067 else
9068 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9070 rm -f core conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9072 LIBS=$ac_check_lib_save_LIBS
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9075 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9076 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9077 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9078 else
9079 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9087 done
9090 CPPFLAGS="$ac_save_CPPFLAGS"
9091 else
9092 XLIB=""
9093 X_CFLAGS=""
9094 X_LIBS=""
9095 enable_winex11_drv=${enable_winex11_drv:-no}
9096 enable_opengl32=${enable_opengl32:-no}
9097 enable_glu32=${enable_glu32:-no}
9099 if test "x$XLIB" = "x"; then :
9100 case "x$with_x" in
9101 xno) ;;
9102 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9103 without X support, which probably isn't what you want. You will need
9104 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9105 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9106 esac
9109 if test "$ac_cv_header_CL_cl_h" = "yes"
9110 then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9112 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9113 if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 ac_check_lib_save_LIBS=$LIBS
9117 LIBS="-lOpenCL $LIBS"
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9121 /* Override any GCC internal prototype to avoid an error.
9122 Use char because int might match the return type of a GCC
9123 builtin and then its argument prototype would still apply. */
9124 #ifdef __cplusplus
9125 extern "C"
9126 #endif
9127 char clGetPlatformInfo ();
9129 main ()
9131 return clGetPlatformInfo ();
9133 return 0;
9135 _ACEOF
9136 if ac_fn_c_try_link "$LINENO"; then :
9137 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9138 else
9139 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9141 rm -f core conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext conftest.$ac_ext
9143 LIBS=$ac_check_lib_save_LIBS
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9146 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9147 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9148 LIBOPENCL="-lOpenCL"
9153 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9154 case "x$with_opencl" in
9155 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9156 xno) ;;
9157 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9158 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9159 esac
9161 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9164 XML2LIBS=""
9166 XML2INCL=""
9168 XSLTINCL=""
9170 if test "x$with_xml" != "xno"
9171 then
9172 ac_save_CPPFLAGS="$CPPFLAGS"
9173 if test "$PKG_CONFIG" != "false"
9174 then
9175 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9176 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9177 else
9178 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9179 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9181 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9182 for ac_header in libxml/parser.h
9183 do :
9184 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9185 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9186 cat >>confdefs.h <<_ACEOF
9187 #define HAVE_LIBXML_PARSER_H 1
9188 _ACEOF
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9190 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9191 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lxml2 $ac_xml_libs $LIBS"
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9199 /* Override any GCC internal prototype to avoid an error.
9200 Use char because int might match the return type of a GCC
9201 builtin and then its argument prototype would still apply. */
9202 #ifdef __cplusplus
9203 extern "C"
9204 #endif
9205 char xmlParseMemory ();
9207 main ()
9209 return xmlParseMemory ();
9211 return 0;
9213 _ACEOF
9214 if ac_fn_c_try_link "$LINENO"; then :
9215 ac_cv_lib_xml2_xmlParseMemory=yes
9216 else
9217 ac_cv_lib_xml2_xmlParseMemory=no
9219 rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221 LIBS=$ac_check_lib_save_LIBS
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9224 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9225 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9227 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9229 XML2LIBS="$ac_xml_libs"
9230 XML2INCL="$ac_xml_cflags"
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9234 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9235 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lxml2 $ac_xml_libs $LIBS"
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9243 /* Override any GCC internal prototype to avoid an error.
9244 Use char because int might match the return type of a GCC
9245 builtin and then its argument prototype would still apply. */
9246 #ifdef __cplusplus
9247 extern "C"
9248 #endif
9249 char xmlReadMemory ();
9251 main ()
9253 return xmlReadMemory ();
9255 return 0;
9257 _ACEOF
9258 if ac_fn_c_try_link "$LINENO"; then :
9259 ac_cv_lib_xml2_xmlReadMemory=yes
9260 else
9261 ac_cv_lib_xml2_xmlReadMemory=no
9263 rm -f core conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9265 LIBS=$ac_check_lib_save_LIBS
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9268 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9269 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9271 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9276 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9277 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-lxml2 $ac_xml_libs $LIBS"
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char xmlNewDocPI ();
9293 main ()
9295 return xmlNewDocPI ();
9297 return 0;
9299 _ACEOF
9300 if ac_fn_c_try_link "$LINENO"; then :
9301 ac_cv_lib_xml2_xmlNewDocPI=yes
9302 else
9303 ac_cv_lib_xml2_xmlNewDocPI=no
9305 rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307 LIBS=$ac_check_lib_save_LIBS
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9310 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9311 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9313 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9318 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9319 if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9321 else
9322 ac_check_lib_save_LIBS=$LIBS
9323 LIBS="-lxml2 $ac_xml_libs $LIBS"
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9327 /* Override any GCC internal prototype to avoid an error.
9328 Use char because int might match the return type of a GCC
9329 builtin and then its argument prototype would still apply. */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 char xmlSchemaSetParserStructuredErrors ();
9335 main ()
9337 return xmlSchemaSetParserStructuredErrors ();
9339 return 0;
9341 _ACEOF
9342 if ac_fn_c_try_link "$LINENO"; then :
9343 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9344 else
9345 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9347 rm -f core conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9349 LIBS=$ac_check_lib_save_LIBS
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9352 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9353 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9355 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9360 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9361 if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 ac_check_lib_save_LIBS=$LIBS
9365 LIBS="-lxml2 $ac_xml_libs $LIBS"
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 char xmlSchemaSetValidStructuredErrors ();
9377 main ()
9379 return xmlSchemaSetValidStructuredErrors ();
9381 return 0;
9383 _ACEOF
9384 if ac_fn_c_try_link "$LINENO"; then :
9385 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9386 else
9387 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9389 rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_check_lib_save_LIBS
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9394 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9395 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9397 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9402 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9403 if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 ac_check_lib_save_LIBS=$LIBS
9407 LIBS="-lxml2 $ac_xml_libs $LIBS"
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9411 /* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9414 #ifdef __cplusplus
9415 extern "C"
9416 #endif
9417 char xmlFirstElementChild ();
9419 main ()
9421 return xmlFirstElementChild ();
9423 return 0;
9425 _ACEOF
9426 if ac_fn_c_try_link "$LINENO"; then :
9427 ac_cv_lib_xml2_xmlFirstElementChild=yes
9428 else
9429 ac_cv_lib_xml2_xmlFirstElementChild=no
9431 rm -f core conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9436 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9437 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9439 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9443 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9445 if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9447 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9454 done
9456 CPPFLAGS="$ac_save_CPPFLAGS"
9458 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9459 case "x$with_xml" in
9460 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9461 xno) ;;
9462 *) as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported.
9463 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9464 esac
9467 if test "x$with_xslt" != "xno"
9468 then
9469 if test "$PKG_CONFIG" != "false"
9470 then
9471 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9472 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9473 else
9474 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9475 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9477 ac_save_CPPFLAGS="$CPPFLAGS"
9478 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9479 for ac_header in libxslt/pattern.h libxslt/transform.h
9480 do :
9481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9482 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9483 # include <libxslt/pattern.h>
9484 #endif
9486 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9487 cat >>confdefs.h <<_ACEOF
9488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9489 _ACEOF
9493 done
9495 CPPFLAGS="$ac_save_CPPFLAGS"
9496 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9497 then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9499 $as_echo_n "checking for -lxslt... " >&6; }
9500 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 ac_check_soname_save_LIBS=$LIBS
9504 LIBS="-lxslt $ac_xslt_libs $LIBS"
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9508 /* Override any GCC internal prototype to avoid an error.
9509 Use char because int might match the return type of a GCC
9510 builtin and then its argument prototype would still apply. */
9511 #ifdef __cplusplus
9512 extern "C"
9513 #endif
9514 char xsltCompilePattern ();
9516 main ()
9518 return xsltCompilePattern ();
9520 return 0;
9522 _ACEOF
9523 if ac_fn_c_try_link "$LINENO"; then :
9524 case "$LIBEXT" in
9525 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9526 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'` ;;
9527 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9528 esac
9530 rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_soname_save_LIBS
9534 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9536 $as_echo "not found" >&6; }
9538 else
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9540 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9542 cat >>confdefs.h <<_ACEOF
9543 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9544 _ACEOF
9546 XSLTINCL="$ac_xslt_cflags"
9550 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9551 case "x$with_xslt" in
9552 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9553 xno) ;;
9554 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9555 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9556 esac
9559 HALINCL=""
9561 if test "x$with_hal" != "xno"
9562 then
9563 ac_save_CPPFLAGS="$CPPFLAGS"
9564 if test "$PKG_CONFIG" != "false"
9565 then
9566 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9567 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9568 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9570 for ac_header in dbus/dbus.h hal/libhal.h
9571 do :
9572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9573 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9574 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9575 cat >>confdefs.h <<_ACEOF
9576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9577 _ACEOF
9581 done
9583 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9584 then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9586 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9587 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 ac_check_lib_save_LIBS=$LIBS
9591 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 char dbus_connection_close ();
9603 main ()
9605 return dbus_connection_close ();
9607 return 0;
9609 _ACEOF
9610 if ac_fn_c_try_link "$LINENO"; then :
9611 ac_cv_lib_dbus_1_dbus_connection_close=yes
9612 else
9613 ac_cv_lib_dbus_1_dbus_connection_close=no
9615 rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9620 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9621 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9623 $as_echo_n "checking for -lhal... " >&6; }
9624 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 ac_check_soname_save_LIBS=$LIBS
9628 LIBS="-lhal $ac_hal_libs $LIBS"
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9632 /* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9635 #ifdef __cplusplus
9636 extern "C"
9637 #endif
9638 char libhal_ctx_new ();
9640 main ()
9642 return libhal_ctx_new ();
9644 return 0;
9646 _ACEOF
9647 if ac_fn_c_try_link "$LINENO"; then :
9648 case "$LIBEXT" in
9649 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9650 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'` ;;
9651 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9652 esac
9654 rm -f core conftest.err conftest.$ac_objext \
9655 conftest$ac_exeext conftest.$ac_ext
9656 LIBS=$ac_check_soname_save_LIBS
9658 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9660 $as_echo "not found" >&6; }
9662 else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9664 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9666 cat >>confdefs.h <<_ACEOF
9667 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9668 _ACEOF
9670 HALINCL="$ac_hal_cflags"
9675 CPPFLAGS="$ac_save_CPPFLAGS"
9677 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9678 case "x$with_hal" in
9679 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9680 xno) ;;
9681 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9682 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9683 esac
9686 if test "x$with_gnutls" != "xno"
9687 then
9688 ac_save_CPPFLAGS="$CPPFLAGS"
9689 if test "$PKG_CONFIG" != "false"
9690 then
9691 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9692 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9693 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9695 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9696 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 #include <gnutls/gnutls.h>
9701 main ()
9703 typeof(gnutls_mac_get_key_size) *pfunc;
9705 return 0;
9707 _ACEOF
9708 if ac_fn_c_try_compile "$LINENO"; then :
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9710 $as_echo_n "checking for -lgnutls... " >&6; }
9711 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 ac_check_soname_save_LIBS=$LIBS
9715 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9719 /* Override any GCC internal prototype to avoid an error.
9720 Use char because int might match the return type of a GCC
9721 builtin and then its argument prototype would still apply. */
9722 #ifdef __cplusplus
9723 extern "C"
9724 #endif
9725 char gnutls_global_init ();
9727 main ()
9729 return gnutls_global_init ();
9731 return 0;
9733 _ACEOF
9734 if ac_fn_c_try_link "$LINENO"; then :
9735 case "$LIBEXT" in
9736 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9737 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'` ;;
9738 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9739 esac
9741 rm -f core conftest.err conftest.$ac_objext \
9742 conftest$ac_exeext conftest.$ac_ext
9743 LIBS=$ac_check_soname_save_LIBS
9745 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9747 $as_echo "not found" >&6; }
9749 else
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9751 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9753 cat >>confdefs.h <<_ACEOF
9754 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9755 _ACEOF
9757 GNUTLSINCL="$ac_gnutls_cflags"
9761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9765 CPPFLAGS="$ac_save_CPPFLAGS"
9767 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9768 case "x$with_gnutls" in
9769 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9770 xno) ;;
9771 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9772 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9773 esac
9776 CURSESLIBS=""
9777 if test "$ac_cv_header_ncurses_h" = "yes"
9778 then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9780 $as_echo_n "checking for -lncurses... " >&6; }
9781 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 ac_check_soname_save_LIBS=$LIBS
9785 LIBS="-lncurses $LIBS"
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9789 /* Override any GCC internal prototype to avoid an error.
9790 Use char because int might match the return type of a GCC
9791 builtin and then its argument prototype would still apply. */
9792 #ifdef __cplusplus
9793 extern "C"
9794 #endif
9795 char waddch ();
9797 main ()
9799 return waddch ();
9801 return 0;
9803 _ACEOF
9804 if ac_fn_c_try_link "$LINENO"; then :
9805 case "$LIBEXT" in
9806 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9807 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'` ;;
9808 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9809 esac
9811 rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_soname_save_LIBS
9815 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9817 $as_echo "not found" >&6; }
9819 else
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9821 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9823 cat >>confdefs.h <<_ACEOF
9824 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9825 _ACEOF
9827 CURSESLIBS="-lncurses"
9829 elif test "$ac_cv_header_curses_h" = "yes"
9830 then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9832 $as_echo_n "checking for -lcurses... " >&6; }
9833 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 ac_check_soname_save_LIBS=$LIBS
9837 LIBS="-lcurses $LIBS"
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9841 /* Override any GCC internal prototype to avoid an error.
9842 Use char because int might match the return type of a GCC
9843 builtin and then its argument prototype would still apply. */
9844 #ifdef __cplusplus
9845 extern "C"
9846 #endif
9847 char waddch ();
9849 main ()
9851 return waddch ();
9853 return 0;
9855 _ACEOF
9856 if ac_fn_c_try_link "$LINENO"; then :
9857 case "$LIBEXT" in
9858 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9859 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'` ;;
9860 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9861 esac
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 LIBS=$ac_check_soname_save_LIBS
9867 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9869 $as_echo "not found" >&6; }
9871 else
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9873 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9875 cat >>confdefs.h <<_ACEOF
9876 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9877 _ACEOF
9879 CURSESLIBS="-lcurses"
9882 ac_save_LIBS="$LIBS"
9883 LIBS="$LIBS $CURSESLIBS"
9884 for ac_func in mousemask
9885 do :
9886 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9887 if test "x$ac_cv_func_mousemask" = x""yes; then :
9888 cat >>confdefs.h <<_ACEOF
9889 #define HAVE_MOUSEMASK 1
9890 _ACEOF
9893 done
9895 LIBS="$ac_save_LIBS"
9896 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9897 case "x$with_curses" in
9898 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9899 xno) ;;
9900 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9901 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9902 esac
9905 if test "x$with_sane" != "xno"
9906 then
9907 ac_save_CPPFLAGS="$CPPFLAGS"
9908 # Extract the first word of "sane-config", so it can be a program name with args.
9909 set dummy sane-config; ac_word=$2
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 if test -n "$sane_devel"; then
9916 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9917 else
9918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919 for as_dir in $PATH
9921 IFS=$as_save_IFS
9922 test -z "$as_dir" && as_dir=.
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925 ac_cv_prog_sane_devel="sane-config"
9926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9927 break 2
9929 done
9930 done
9931 IFS=$as_save_IFS
9933 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9936 sane_devel=$ac_cv_prog_sane_devel
9937 if test -n "$sane_devel"; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9939 $as_echo "$sane_devel" >&6; }
9940 else
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 $as_echo "no" >&6; }
9946 if test "$sane_devel" != "no"
9947 then
9948 ac_sane_incl="`$sane_devel --cflags`"
9949 ac_sane_libs="`$sane_devel --ldflags`"
9950 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9952 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9953 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9955 $as_echo_n "checking for -lsane... " >&6; }
9956 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9957 $as_echo_n "(cached) " >&6
9958 else
9959 ac_check_soname_save_LIBS=$LIBS
9960 LIBS="-lsane $ac_sane_libs $LIBS"
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9964 /* Override any GCC internal prototype to avoid an error.
9965 Use char because int might match the return type of a GCC
9966 builtin and then its argument prototype would still apply. */
9967 #ifdef __cplusplus
9968 extern "C"
9969 #endif
9970 char sane_init ();
9972 main ()
9974 return sane_init ();
9976 return 0;
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"; then :
9980 case "$LIBEXT" in
9981 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9982 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'` ;;
9983 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9984 esac
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 LIBS=$ac_check_soname_save_LIBS
9990 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9992 $as_echo "not found" >&6; }
9994 else
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9996 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9998 cat >>confdefs.h <<_ACEOF
9999 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10000 _ACEOF
10002 SANEINCL="$ac_sane_incl"
10008 CPPFLAGS="$ac_save_CPPFLAGS"
10010 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10011 case "x$with_sane" in
10012 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10013 xno) ;;
10014 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10015 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10016 esac
10019 if test "x$with_v4l" != "xno"
10020 then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10022 $as_echo_n "checking for -lv4l1... " >&6; }
10023 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 ac_check_soname_save_LIBS=$LIBS
10027 LIBS="-lv4l1 $LIBS"
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 char v4l1_open ();
10039 main ()
10041 return v4l1_open ();
10043 return 0;
10045 _ACEOF
10046 if ac_fn_c_try_link "$LINENO"; then :
10047 case "$LIBEXT" in
10048 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10049 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'` ;;
10050 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10051 esac
10053 rm -f core conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10055 LIBS=$ac_check_soname_save_LIBS
10057 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10059 $as_echo "not found" >&6; }
10061 else
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10063 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10065 cat >>confdefs.h <<_ACEOF
10066 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10067 _ACEOF
10072 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10073 case "x$with_v4l" in
10074 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10075 xno) ;;
10076 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10077 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10078 esac
10081 if test "x$with_gphoto" != "xno"
10082 then
10083 ac_save_CPPFLAGS="$CPPFLAGS"
10084 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10085 set dummy gphoto2-config; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 if test -n "$gphoto2_devel"; then
10092 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10093 else
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10101 ac_cv_prog_gphoto2_devel="gphoto2-config"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10105 done
10106 done
10107 IFS=$as_save_IFS
10109 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10112 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10113 if test -n "$gphoto2_devel"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10115 $as_echo "$gphoto2_devel" >&6; }
10116 else
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10122 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10123 set dummy gphoto2-port-config; ac_word=$2
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10125 $as_echo_n "checking for $ac_word... " >&6; }
10126 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
10127 $as_echo_n "(cached) " >&6
10128 else
10129 if test -n "$gphoto2port_devel"; then
10130 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10131 else
10132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133 for as_dir in $PATH
10135 IFS=$as_save_IFS
10136 test -z "$as_dir" && as_dir=.
10137 for ac_exec_ext in '' $ac_executable_extensions; do
10138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10139 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 break 2
10143 done
10144 done
10145 IFS=$as_save_IFS
10147 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10150 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10151 if test -n "$gphoto2port_devel"; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10153 $as_echo "$gphoto2port_devel" >&6; }
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10160 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10161 then
10162 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10163 ac_gphoto2_libs=""
10164 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10166 case "$i" in
10167 -L/usr/lib|-L/usr/lib64) ;;
10168 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10169 esac
10170 done
10171 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10173 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10174 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10175 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10177 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10178 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
10179 $as_echo_n "(cached) " >&6
10180 else
10181 ac_check_lib_save_LIBS=$LIBS
10182 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10186 /* Override any GCC internal prototype to avoid an error.
10187 Use char because int might match the return type of a GCC
10188 builtin and then its argument prototype would still apply. */
10189 #ifdef __cplusplus
10190 extern "C"
10191 #endif
10192 char gp_camera_new ();
10194 main ()
10196 return gp_camera_new ();
10198 return 0;
10200 _ACEOF
10201 if ac_fn_c_try_link "$LINENO"; then :
10202 ac_cv_lib_gphoto2_gp_camera_new=yes
10203 else
10204 ac_cv_lib_gphoto2_gp_camera_new=no
10206 rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208 LIBS=$ac_check_lib_save_LIBS
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10211 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10212 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
10214 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10216 GPHOTO2LIBS="$ac_gphoto2_libs"
10218 GPHOTO2INCL="$ac_gphoto2_incl"
10225 CPPFLAGS="$ac_save_CPPFLAGS"
10227 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10228 case "x$with_gphoto" in
10229 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10230 xno) ;;
10231 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10232 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10233 esac
10237 if test "$ac_cv_header_resolv_h" = "yes"
10238 then
10239 ac_save_LIBS="$LIBS"
10240 for lib in '' -lresolv
10242 LIBS="$lib $ac_save_LIBS"
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 #ifdef HAVE_NETINET_IN_H
10246 #include <netinet/in.h>
10247 #endif
10248 #include <resolv.h>
10250 main ()
10252 res_query("foo",ns_c_in,0,0,0);
10254 return 0;
10256 _ACEOF
10257 if ac_fn_c_try_link "$LINENO"; then :
10259 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10261 RESOLVLIBS="$lib"
10264 rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10266 if test "${RESOLVLIBS+set}" = set; then
10267 break
10269 done
10270 LIBS="$ac_save_LIBS"
10273 LCMSLIBS=""
10275 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10276 then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10278 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10279 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10280 $as_echo_n "(cached) " >&6
10281 else
10282 ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-llcms $LIBS"
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10287 /* Override any GCC internal prototype to avoid an error.
10288 Use char because int might match the return type of a GCC
10289 builtin and then its argument prototype would still apply. */
10290 #ifdef __cplusplus
10291 extern "C"
10292 #endif
10293 char cmsOpenProfileFromFile ();
10295 main ()
10297 return cmsOpenProfileFromFile ();
10299 return 0;
10301 _ACEOF
10302 if ac_fn_c_try_link "$LINENO"; then :
10303 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10304 else
10305 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10307 rm -f core conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10309 LIBS=$ac_check_lib_save_LIBS
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10312 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10313 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10315 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10317 LCMSLIBS="-llcms"
10321 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10322 case "x$with_cms" in
10323 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10324 xno) ;;
10325 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10326 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10327 esac
10330 if test "x$with_freetype" != "xno"
10331 then
10332 for ac_prog in freetype-config freetype2-config
10334 # Extract the first word of "$ac_prog", so it can be a program name with args.
10335 set dummy $ac_prog; ac_word=$2
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337 $as_echo_n "checking for $ac_word... " >&6; }
10338 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 if test -n "$ft_devel"; then
10342 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10343 else
10344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345 for as_dir in $PATH
10347 IFS=$as_save_IFS
10348 test -z "$as_dir" && as_dir=.
10349 for ac_exec_ext in '' $ac_executable_extensions; do
10350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10351 ac_cv_prog_ft_devel="$ac_prog"
10352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10353 break 2
10355 done
10356 done
10357 IFS=$as_save_IFS
10361 ft_devel=$ac_cv_prog_ft_devel
10362 if test -n "$ft_devel"; then
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10364 $as_echo "$ft_devel" >&6; }
10365 else
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367 $as_echo "no" >&6; }
10371 test -n "$ft_devel" && break
10372 done
10373 test -n "$ft_devel" || ft_devel="no"
10375 if test "$ft_devel" != "no"
10376 then
10377 ac_freetype_incl=`$ft_devel --cflags`
10378 ac_freetype_libs=`$ft_devel --libs`
10380 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10382 $as_echo_n "checking for -lfreetype... " >&6; }
10383 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 ac_check_soname_save_LIBS=$LIBS
10387 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10391 /* Override any GCC internal prototype to avoid an error.
10392 Use char because int might match the return type of a GCC
10393 builtin and then its argument prototype would still apply. */
10394 #ifdef __cplusplus
10395 extern "C"
10396 #endif
10397 char FT_Init_FreeType ();
10399 main ()
10401 return FT_Init_FreeType ();
10403 return 0;
10405 _ACEOF
10406 if ac_fn_c_try_link "$LINENO"; then :
10407 case "$LIBEXT" in
10408 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10409 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'` ;;
10410 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10411 esac
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LIBS=$ac_check_soname_save_LIBS
10417 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10419 $as_echo "not found" >&6; }
10420 ft_lib=no
10421 else
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10423 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10425 cat >>confdefs.h <<_ACEOF
10426 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10427 _ACEOF
10429 ft_lib=yes
10431 if test "$ft_lib" = "yes"
10432 then
10433 ac_save_CPPFLAGS="$CPPFLAGS"
10434 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10435 for ac_header in ft2build.h \
10436 freetype/freetype.h \
10437 freetype/ftglyph.h \
10438 freetype/fttypes.h \
10439 freetype/tttables.h \
10440 freetype/ftsnames.h \
10441 freetype/ttnameid.h \
10442 freetype/ftoutln.h \
10443 freetype/ftwinfnt.h \
10444 freetype/ftmodapi.h \
10445 freetype/ftlcdfil.h \
10446 freetype/internal/sfnt.h
10447 do :
10448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10449 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10450 # include <ft2build.h>
10451 #endif
10453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10454 cat >>confdefs.h <<_ACEOF
10455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10456 _ACEOF
10460 done
10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463 /* end confdefs.h. */
10464 #include <ft2build.h>
10465 #include <freetype/fttrigon.h>
10466 _ACEOF
10467 if ac_fn_c_try_cpp "$LINENO"; then :
10469 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10471 wine_cv_fttrigon=yes
10472 else
10473 wine_cv_fttrigon=no
10475 rm -f conftest.err conftest.i conftest.$ac_ext
10476 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10478 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10480 cat >>confdefs.h <<_ACEOF
10481 #define HAVE_FT_TRUETYPEENGINETYPE 1
10482 _ACEOF
10487 ac_save_CFLAGS="$CFLAGS"
10488 CFLAGS="$CFLAGS $ac_freetype_libs"
10489 for ac_func in FT_Load_Sfnt_Table
10490 do :
10491 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10492 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10493 cat >>confdefs.h <<_ACEOF
10494 #define HAVE_FT_LOAD_SFNT_TABLE 1
10495 _ACEOF
10498 done
10500 CFLAGS="$ac_save_CFLAGS"
10501 CPPFLAGS="$ac_save_CPPFLAGS"
10502 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10503 then
10505 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10507 FREETYPELIBS="$ac_freetype_libs"
10509 FREETYPEINCL="$ac_freetype_incl"
10514 if test "x$FREETYPELIBS" = "x"; then :
10515 case "x$with_freetype" in
10516 xno) ;;
10517 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10518 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10519 esac
10521 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10524 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10525 if test "${ac_cv_c_ppdev+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 #ifdef HAVE_SYS_IOCTL_H
10531 # include <sys/ioctl.h>
10532 #endif
10533 #include <linux/ppdev.h>
10535 main ()
10537 ioctl (1,PPCLAIM,0)
10539 return 0;
10541 _ACEOF
10542 if ac_fn_c_try_compile "$LINENO"; then :
10543 ac_cv_c_ppdev="yes"
10544 else
10545 ac_cv_c_ppdev="no"
10547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10550 $as_echo "$ac_cv_c_ppdev" >&6; }
10551 if test "$ac_cv_c_ppdev" = "yes"
10552 then
10554 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10558 ac_wine_check_funcs_save_LIBS="$LIBS"
10559 LIBS="$LIBS $LIBPTHREAD"
10560 for ac_func in \
10561 pthread_attr_get_np \
10562 pthread_getattr_np \
10563 pthread_get_stackaddr_np \
10564 pthread_get_stacksize_np
10565 do :
10566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10567 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10568 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10569 cat >>confdefs.h <<_ACEOF
10570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10571 _ACEOF
10574 done
10576 LIBS="$ac_wine_check_funcs_save_LIBS"
10578 if test "$ac_cv_header_zlib_h" = "yes"
10579 then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10581 $as_echo_n "checking for inflate in -lz... " >&6; }
10582 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 ac_check_lib_save_LIBS=$LIBS
10586 LIBS="-lz $LIBS"
10587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h. */
10590 /* Override any GCC internal prototype to avoid an error.
10591 Use char because int might match the return type of a GCC
10592 builtin and then its argument prototype would still apply. */
10593 #ifdef __cplusplus
10594 extern "C"
10595 #endif
10596 char inflate ();
10598 main ()
10600 return inflate ();
10602 return 0;
10604 _ACEOF
10605 if ac_fn_c_try_link "$LINENO"; then :
10606 ac_cv_lib_z_inflate=yes
10607 else
10608 ac_cv_lib_z_inflate=no
10610 rm -f core conftest.err conftest.$ac_objext \
10611 conftest$ac_exeext conftest.$ac_ext
10612 LIBS=$ac_check_lib_save_LIBS
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10615 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10616 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10618 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10620 ZLIB="-lz"
10625 if test "x$ZLIB" = "x"; then :
10626 case "x$with_zlib" in
10627 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10628 xno) ;;
10629 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10630 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10631 esac
10634 if test "x$enable_tools" != xno
10635 then
10636 if test "$ac_cv_header_gettext_po_h" = "yes"
10637 then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10639 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10640 if test "${ac_cv_lib_gettextpo_po_message_msgctxt+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
10642 else
10643 ac_check_lib_save_LIBS=$LIBS
10644 LIBS="-lgettextpo $LIBS"
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10648 /* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 char po_message_msgctxt ();
10656 main ()
10658 return po_message_msgctxt ();
10660 return 0;
10662 _ACEOF
10663 if ac_fn_c_try_link "$LINENO"; then :
10664 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10665 else
10666 ac_cv_lib_gettextpo_po_message_msgctxt=no
10668 rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670 LIBS=$ac_check_lib_save_LIBS
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10673 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10674 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = x""yes; then :
10676 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10678 LIBGETTEXTPO="-lgettextpo"
10683 if test "x$LIBGETTEXTPO" = "x"; then :
10684 case "x$with_gettextpo" in
10685 x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
10686 xno) ;;
10687 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
10688 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10689 esac
10693 if test "x$with_esd" != xno
10694 then
10695 save_CFLAGS="$CFLAGS"
10696 # Extract the first word of "esd-config", so it can be a program name with args.
10697 set dummy esd-config; ac_word=$2
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699 $as_echo_n "checking for $ac_word... " >&6; }
10700 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 case $ESDCONFIG in
10704 [\\/]* | ?:[\\/]*)
10705 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709 for as_dir in $PATH
10711 IFS=$as_save_IFS
10712 test -z "$as_dir" && as_dir=.
10713 for ac_exec_ext in '' $ac_executable_extensions; do
10714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10715 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 break 2
10719 done
10720 done
10721 IFS=$as_save_IFS
10723 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10725 esac
10727 ESDCONFIG=$ac_cv_path_ESDCONFIG
10728 if test -n "$ESDCONFIG"; then
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10730 $as_echo "$ESDCONFIG" >&6; }
10731 else
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10737 if test "x$ESDCONFIG" != "xno"
10738 then
10739 ac_esd_incl=""
10740 for i in `$ESDCONFIG --cflags`
10742 case "$i" in
10743 -I*) ac_esd_incl="$ac_esd_incl $i";;
10744 esac
10745 done
10746 ac_esd_libs=`$ESDCONFIG --libs`
10747 CFLAGS="$CFLAGS $ac_esd_incl"
10749 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10750 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10751 if test "x$ac_cv_header_esd_h" = x""yes; then :
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10753 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10754 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
10756 else
10757 ac_check_lib_save_LIBS=$LIBS
10758 LIBS="-lesd $ac_esd_libs $LIBS"
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10762 /* Override any GCC internal prototype to avoid an error.
10763 Use char because int might match the return type of a GCC
10764 builtin and then its argument prototype would still apply. */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 char esd_open_sound ();
10770 main ()
10772 return esd_open_sound ();
10774 return 0;
10776 _ACEOF
10777 if ac_fn_c_try_link "$LINENO"; then :
10778 ac_cv_lib_esd_esd_open_sound=yes
10779 else
10780 ac_cv_lib_esd_esd_open_sound=no
10782 rm -f core conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10784 LIBS=$ac_check_lib_save_LIBS
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10787 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10788 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10789 ESDINCL="$ac_esd_incl"
10791 ESDLIBS="$ac_esd_libs"
10794 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10801 CFLAGS="$save_CFLAGS"
10804 if test "x$with_gstreamer" != "xno"
10805 then
10806 ac_save_CPPFLAGS="$CPPFLAGS"
10807 if test "$PKG_CONFIG" != "false"; then
10808 ac_gst_incl=""
10809 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10811 case "$i" in
10812 -I*) ac_gst_incl="$ac_gst_incl $i";;
10813 esac
10814 done
10815 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10816 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10817 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10818 if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10819 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10820 if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10822 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10823 if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-lgstreamer-0.10 $LIBS"
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10834 #ifdef __cplusplus
10835 extern "C"
10836 #endif
10837 char gst_pad_get_caps_reffed ();
10839 main ()
10841 return gst_pad_get_caps_reffed ();
10843 return 0;
10845 _ACEOF
10846 if ac_fn_c_try_link "$LINENO"; then :
10847 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10848 else
10849 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 LIBS=$ac_check_lib_save_LIBS
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10856 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10857 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10859 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10860 if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 ac_check_lib_save_LIBS=$LIBS
10864 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10868 /* Override any GCC internal prototype to avoid an error.
10869 Use char because int might match the return type of a GCC
10870 builtin and then its argument prototype would still apply. */
10871 #ifdef __cplusplus
10872 extern "C"
10873 #endif
10874 char gst_app_buffer_new ();
10876 main ()
10878 return gst_app_buffer_new ();
10880 return 0;
10882 _ACEOF
10883 if ac_fn_c_try_link "$LINENO"; then :
10884 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10885 else
10886 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10890 LIBS=$ac_check_lib_save_LIBS
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10893 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10894 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10895 GSTREAMER_LIBS="$ac_gst_libs"
10897 GSTREAMER_INCL="$ac_gst_incl"
10910 CPPFLAGS="$ac_save_CPPFLAGS"
10912 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10913 case "x$with_gstreamer" in
10914 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10915 xno) ;;
10916 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10917 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10918 esac
10920 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10922 ALSALIBS=""
10924 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10925 then
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10927 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10928 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 ac_check_lib_save_LIBS=$LIBS
10932 LIBS="-lasound $LIBS"
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10936 /* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
10939 #ifdef __cplusplus
10940 extern "C"
10941 #endif
10942 char snd_pcm_hw_params_get_access_mask ();
10944 main ()
10946 return snd_pcm_hw_params_get_access_mask ();
10948 return 0;
10950 _ACEOF
10951 if ac_fn_c_try_link "$LINENO"; then :
10952 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10953 else
10954 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10956 rm -f core conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
10958 LIBS=$ac_check_lib_save_LIBS
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10961 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10962 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = x""yes; then :
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965 #ifdef HAVE_ALSA_ASOUNDLIB_H
10966 #include <alsa/asoundlib.h>
10967 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10968 #include <sys/asoundlib.h>
10969 #endif
10971 main ()
10973 int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
10975 return 0;
10977 _ACEOF
10978 if ac_fn_c_try_compile "$LINENO"; then :
10980 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10982 ALSALIBS="-lasound"
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10991 then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10993 $as_echo_n "checking for -lcapi20... " >&6; }
10994 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 ac_check_soname_save_LIBS=$LIBS
10998 LIBS="-lcapi20 $LIBS"
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 char capi20_register ();
11010 main ()
11012 return capi20_register ();
11014 return 0;
11016 _ACEOF
11017 if ac_fn_c_try_link "$LINENO"; then :
11018 case "$LIBEXT" in
11019 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11020 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'` ;;
11021 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11022 esac
11024 rm -f core conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
11026 LIBS=$ac_check_soname_save_LIBS
11028 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11030 $as_echo "not found" >&6; }
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11034 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11036 cat >>confdefs.h <<_ACEOF
11037 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11038 _ACEOF
11043 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11044 case "x$with_capi" in
11045 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11046 xno) ;;
11047 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11048 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11049 esac
11052 CUPSINCL=""
11054 if test "x$with_cups" != "xno"
11055 then
11056 ac_save_CPPFLAGS="$CPPFLAGS"
11057 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11058 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11059 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11060 for ac_header in cups/cups.h
11061 do :
11062 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11063 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
11064 cat >>confdefs.h <<_ACEOF
11065 #define HAVE_CUPS_CUPS_H 1
11066 _ACEOF
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11068 $as_echo_n "checking for -lcups... " >&6; }
11069 if test "${ac_cv_lib_soname_cups+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 ac_check_soname_save_LIBS=$LIBS
11073 LIBS="-lcups $ac_cups_libs $LIBS"
11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11077 /* Override any GCC internal prototype to avoid an error.
11078 Use char because int might match the return type of a GCC
11079 builtin and then its argument prototype would still apply. */
11080 #ifdef __cplusplus
11081 extern "C"
11082 #endif
11083 char cupsGetDefault ();
11085 main ()
11087 return cupsGetDefault ();
11089 return 0;
11091 _ACEOF
11092 if ac_fn_c_try_link "$LINENO"; then :
11093 case "$LIBEXT" in
11094 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11095 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'` ;;
11096 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11097 esac
11099 rm -f core conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_soname_save_LIBS
11103 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11105 $as_echo "not found" >&6; }
11107 else
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11109 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11111 cat >>confdefs.h <<_ACEOF
11112 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11113 _ACEOF
11115 CUPSINCL="$ac_cups_cflags"
11119 done
11121 CPPFLAGS="$ac_save_CPPFLAGS"
11123 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11124 case "x$with_cups" in
11125 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11126 xno) ;;
11127 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11128 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11129 esac
11132 if test "$ac_cv_header_jack_jack_h" = "yes"
11133 then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11135 $as_echo_n "checking for -ljack... " >&6; }
11136 if test "${ac_cv_lib_soname_jack+set}" = set; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 ac_check_soname_save_LIBS=$LIBS
11140 LIBS="-ljack $LIBS"
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11144 /* Override any GCC internal prototype to avoid an error.
11145 Use char because int might match the return type of a GCC
11146 builtin and then its argument prototype would still apply. */
11147 #ifdef __cplusplus
11148 extern "C"
11149 #endif
11150 char jack_client_new ();
11152 main ()
11154 return jack_client_new ();
11156 return 0;
11158 _ACEOF
11159 if ac_fn_c_try_link "$LINENO"; then :
11160 case "$LIBEXT" in
11161 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11162 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'` ;;
11163 *) 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'` ;;
11164 esac
11166 rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11168 LIBS=$ac_check_soname_save_LIBS
11170 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11172 $as_echo "not found" >&6; }
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11176 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11178 cat >>confdefs.h <<_ACEOF
11179 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11180 _ACEOF
11186 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11187 then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11189 $as_echo_n "checking for -lfontconfig... " >&6; }
11190 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 ac_check_soname_save_LIBS=$LIBS
11194 LIBS="-lfontconfig $LIBS"
11195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11201 #ifdef __cplusplus
11202 extern "C"
11203 #endif
11204 char FcInit ();
11206 main ()
11208 return FcInit ();
11210 return 0;
11212 _ACEOF
11213 if ac_fn_c_try_link "$LINENO"; then :
11214 case "$LIBEXT" in
11215 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11216 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'` ;;
11217 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11218 esac
11220 rm -f core conftest.err conftest.$ac_objext \
11221 conftest$ac_exeext conftest.$ac_ext
11222 LIBS=$ac_check_soname_save_LIBS
11224 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11226 $as_echo "not found" >&6; }
11228 else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11230 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11232 cat >>confdefs.h <<_ACEOF
11233 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11234 _ACEOF
11238 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11239 then
11240 ac_save_CPPFLAGS="$CPPFLAGS"
11241 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11242 $as_unset ac_cv_header_fontconfig_fontconfig_h
11243 for ac_header in fontconfig/fontconfig.h
11244 do :
11245 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11246 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
11247 cat >>confdefs.h <<_ACEOF
11248 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11249 _ACEOF
11253 done
11255 CPPFLAGS="$ac_save_CPPFLAGS"
11256 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11257 then
11258 FONTCONFIGINCL="$X_CFLAGS"
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11261 $as_echo_n "checking for -lfontconfig... " >&6; }
11262 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 ac_check_soname_save_LIBS=$LIBS
11266 LIBS="-lfontconfig $X_LIBS $LIBS"
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11270 /* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 char FcInit ();
11278 main ()
11280 return FcInit ();
11282 return 0;
11284 _ACEOF
11285 if ac_fn_c_try_link "$LINENO"; then :
11286 case "$LIBEXT" in
11287 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11288 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'` ;;
11289 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11290 esac
11292 rm -f core conftest.err conftest.$ac_objext \
11293 conftest$ac_exeext conftest.$ac_ext
11294 LIBS=$ac_check_soname_save_LIBS
11296 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11298 $as_echo "not found" >&6; }
11300 else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11302 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11304 cat >>confdefs.h <<_ACEOF
11305 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11306 _ACEOF
11312 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11313 case "x$with_fontconfig" in
11314 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11315 xno) ;;
11316 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11317 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11318 esac
11321 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11322 then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11324 $as_echo_n "checking for -lssl... " >&6; }
11325 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11328 ac_check_soname_save_LIBS=$LIBS
11329 LIBS="-lssl $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 SSL_library_init ();
11341 main ()
11343 return SSL_library_init ();
11345 return 0;
11347 _ACEOF
11348 if ac_fn_c_try_link "$LINENO"; then :
11349 case "$LIBEXT" in
11350 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11351 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'` ;;
11352 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$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_ssl" = "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_ssl" >&5
11365 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11367 cat >>confdefs.h <<_ACEOF
11368 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11369 _ACEOF
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11374 $as_echo_n "checking for -lcrypto... " >&6; }
11375 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 ac_check_soname_save_LIBS=$LIBS
11379 LIBS="-lcrypto $LIBS"
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11383 /* Override any GCC internal prototype to avoid an error.
11384 Use char because int might match the return type of a GCC
11385 builtin and then its argument prototype would still apply. */
11386 #ifdef __cplusplus
11387 extern "C"
11388 #endif
11389 char BIO_new_socket ();
11391 main ()
11393 return BIO_new_socket ();
11395 return 0;
11397 _ACEOF
11398 if ac_fn_c_try_link "$LINENO"; then :
11399 case "$LIBEXT" in
11400 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11401 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'` ;;
11402 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11403 esac
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_soname_save_LIBS
11409 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11411 $as_echo "not found" >&6; }
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11415 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11417 cat >>confdefs.h <<_ACEOF
11418 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11419 _ACEOF
11424 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11425 case "x$with_openssl" in
11426 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11427 xno) ;;
11428 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11429 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11430 esac
11433 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11434 then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11436 $as_echo_n "checking for -lgsm... " >&6; }
11437 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 ac_check_soname_save_LIBS=$LIBS
11441 LIBS="-lgsm $LIBS"
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11445 /* Override any GCC internal prototype to avoid an error.
11446 Use char because int might match the return type of a GCC
11447 builtin and then its argument prototype would still apply. */
11448 #ifdef __cplusplus
11449 extern "C"
11450 #endif
11451 char gsm_create ();
11453 main ()
11455 return gsm_create ();
11457 return 0;
11459 _ACEOF
11460 if ac_fn_c_try_link "$LINENO"; then :
11461 case "$LIBEXT" in
11462 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11463 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'` ;;
11464 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11465 esac
11467 rm -f core conftest.err conftest.$ac_objext \
11468 conftest$ac_exeext conftest.$ac_ext
11469 LIBS=$ac_check_soname_save_LIBS
11471 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11473 $as_echo "not found" >&6; }
11475 else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11477 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11479 cat >>confdefs.h <<_ACEOF
11480 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11481 _ACEOF
11486 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11487 case "x$with_gsm" in
11488 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11489 xno) ;;
11490 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11491 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11492 esac
11495 if test "$ac_cv_header_jpeglib_h" = "yes"
11496 then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11498 $as_echo_n "checking for -ljpeg... " >&6; }
11499 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 ac_check_soname_save_LIBS=$LIBS
11503 LIBS="-ljpeg $LIBS"
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11507 /* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11510 #ifdef __cplusplus
11511 extern "C"
11512 #endif
11513 char jpeg_start_decompress ();
11515 main ()
11517 return jpeg_start_decompress ();
11519 return 0;
11521 _ACEOF
11522 if ac_fn_c_try_link "$LINENO"; then :
11523 case "$LIBEXT" in
11524 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11525 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'` ;;
11526 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11527 esac
11529 rm -f core conftest.err conftest.$ac_objext \
11530 conftest$ac_exeext conftest.$ac_ext
11531 LIBS=$ac_check_soname_save_LIBS
11533 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11535 $as_echo "not found" >&6; }
11537 else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11539 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11541 cat >>confdefs.h <<_ACEOF
11542 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11543 _ACEOF
11548 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11549 case "x$with_jpeg" in
11550 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11551 xno) ;;
11552 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11553 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11554 esac
11557 if test "$ac_cv_header_png_h" = "yes"
11558 then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11560 $as_echo_n "checking for -lpng... " >&6; }
11561 if test "${ac_cv_lib_soname_png+set}" = set; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 ac_check_soname_save_LIBS=$LIBS
11565 LIBS="-lpng -lm -lz $LIBS"
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char png_create_read_struct ();
11577 main ()
11579 return png_create_read_struct ();
11581 return 0;
11583 _ACEOF
11584 if ac_fn_c_try_link "$LINENO"; then :
11585 case "$LIBEXT" in
11586 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11587 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'` ;;
11588 *) 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'` ;;
11589 esac
11591 rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11593 LIBS=$ac_check_soname_save_LIBS
11595 if test "x$ac_cv_lib_soname_png" = "x"; then :
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11597 $as_echo "not found" >&6; }
11599 else
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11601 $as_echo "$ac_cv_lib_soname_png" >&6; }
11603 cat >>confdefs.h <<_ACEOF
11604 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11605 _ACEOF
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11610 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11611 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614 ac_check_lib_save_LIBS=$LIBS
11615 LIBS="-lpng -lm -lz $LIBS"
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11619 /* Override any GCC internal prototype to avoid an error.
11620 Use char because int might match the return type of a GCC
11621 builtin and then its argument prototype would still apply. */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 char png_set_expand_gray_1_2_4_to_8 ();
11627 main ()
11629 return png_set_expand_gray_1_2_4_to_8 ();
11631 return 0;
11633 _ACEOF
11634 if ac_fn_c_try_link "$LINENO"; then :
11635 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11636 else
11637 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11639 rm -f core conftest.err conftest.$ac_objext \
11640 conftest$ac_exeext conftest.$ac_ext
11641 LIBS=$ac_check_lib_save_LIBS
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11644 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11645 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11647 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11652 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11653 then
11654 ac_save_CPPFLAGS="$CPPFLAGS"
11655 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11656 $as_unset ac_cv_header_png_h
11657 for ac_header in png.h
11658 do :
11659 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11660 if test "x$ac_cv_header_png_h" = x""yes; then :
11661 cat >>confdefs.h <<_ACEOF
11662 #define HAVE_PNG_H 1
11663 _ACEOF
11667 done
11669 CPPFLAGS="$ac_save_CPPFLAGS"
11670 if test "$ac_cv_header_png_h" = "yes"
11671 then
11672 PNGINCL="$X_CFLAGS"
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11675 $as_echo_n "checking for -lpng... " >&6; }
11676 if test "${ac_cv_lib_soname_png+set}" = set; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 ac_check_soname_save_LIBS=$LIBS
11680 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11684 /* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11687 #ifdef __cplusplus
11688 extern "C"
11689 #endif
11690 char png_create_read_struct ();
11692 main ()
11694 return png_create_read_struct ();
11696 return 0;
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"; then :
11700 case "$LIBEXT" in
11701 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11702 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'` ;;
11703 *) 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'` ;;
11704 esac
11706 rm -f core conftest.err conftest.$ac_objext \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_soname_save_LIBS
11710 if test "x$ac_cv_lib_soname_png" = "x"; then :
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11712 $as_echo "not found" >&6; }
11714 else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11716 $as_echo "$ac_cv_lib_soname_png" >&6; }
11718 cat >>confdefs.h <<_ACEOF
11719 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11720 _ACEOF
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11725 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11726 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 ac_check_lib_save_LIBS=$LIBS
11730 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11734 /* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11737 #ifdef __cplusplus
11738 extern "C"
11739 #endif
11740 char png_set_expand_gray_1_2_4_to_8 ();
11742 main ()
11744 return png_set_expand_gray_1_2_4_to_8 ();
11746 return 0;
11748 _ACEOF
11749 if ac_fn_c_try_link "$LINENO"; then :
11750 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11751 else
11752 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11754 rm -f core conftest.err conftest.$ac_objext \
11755 conftest$ac_exeext conftest.$ac_ext
11756 LIBS=$ac_check_lib_save_LIBS
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11759 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11760 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11761 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11767 if test "x$ac_cv_lib_soname_png" = "x"; then :
11768 case "x$with_png" in
11769 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11770 xno) ;;
11771 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11772 This is an error since --with-png was requested." "$LINENO" 5 ;;
11773 esac
11776 if test "$ac_cv_header_tiffio_h" = "yes"
11777 then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11779 $as_echo_n "checking for -ltiff... " >&6; }
11780 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11781 $as_echo_n "(cached) " >&6
11782 else
11783 ac_check_soname_save_LIBS=$LIBS
11784 LIBS="-ltiff $LIBS"
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11788 /* Override any GCC internal prototype to avoid an error.
11789 Use char because int might match the return type of a GCC
11790 builtin and then its argument prototype would still apply. */
11791 #ifdef __cplusplus
11792 extern "C"
11793 #endif
11794 char TIFFClientOpen ();
11796 main ()
11798 return TIFFClientOpen ();
11800 return 0;
11802 _ACEOF
11803 if ac_fn_c_try_link "$LINENO"; then :
11804 case "$LIBEXT" in
11805 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11806 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'` ;;
11807 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11808 esac
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11812 LIBS=$ac_check_soname_save_LIBS
11814 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11816 $as_echo "not found" >&6; }
11818 else
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11820 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11822 cat >>confdefs.h <<_ACEOF
11823 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11824 _ACEOF
11829 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11830 case "x$with_tiff" in
11831 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11832 xno) ;;
11833 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11834 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11835 esac
11838 if test "$ac_cv_header_mpg123_h" = "yes"
11839 then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11841 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11842 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11843 $as_echo_n "(cached) " >&6
11844 else
11845 ac_check_lib_save_LIBS=$LIBS
11846 LIBS="-lmpg123 $LIBS"
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11850 /* Override any GCC internal prototype to avoid an error.
11851 Use char because int might match the return type of a GCC
11852 builtin and then its argument prototype would still apply. */
11853 #ifdef __cplusplus
11854 extern "C"
11855 #endif
11856 char mpg123_feed ();
11858 main ()
11860 return mpg123_feed ();
11862 return 0;
11864 _ACEOF
11865 if ac_fn_c_try_link "$LINENO"; then :
11866 ac_cv_lib_mpg123_mpg123_feed=yes
11867 else
11868 ac_cv_lib_mpg123_mpg123_feed=no
11870 rm -f core conftest.err conftest.$ac_objext \
11871 conftest$ac_exeext conftest.$ac_ext
11872 LIBS=$ac_check_lib_save_LIBS
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11875 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11876 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11877 LIBMPG123="-lmpg123"
11882 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11883 case "x$with_mpg123" in
11884 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11885 xno) ;;
11886 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11887 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11888 esac
11890 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}
11892 if test "$ac_cv_header_AL_al_h" = "yes"
11893 then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11895 $as_echo_n "checking for -lopenal... " >&6; }
11896 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 ac_check_soname_save_LIBS=$LIBS
11900 LIBS="-lopenal $LIBS"
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char alGetSource3i ();
11912 main ()
11914 return alGetSource3i ();
11916 return 0;
11918 _ACEOF
11919 if ac_fn_c_try_link "$LINENO"; then :
11920 case "$LIBEXT" in
11921 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11922 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'` ;;
11923 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11924 esac
11926 rm -f core conftest.err conftest.$ac_objext \
11927 conftest$ac_exeext conftest.$ac_ext
11928 LIBS=$ac_check_soname_save_LIBS
11930 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11932 $as_echo "not found" >&6; }
11934 else
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11936 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11938 cat >>confdefs.h <<_ACEOF
11939 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11940 _ACEOF
11942 LIBOPENAL="-lopenal"
11944 ac_cv_lib_openal=yes
11946 cat >>confdefs.h <<_ACEOF
11947 #define HAVE_OPENAL 1
11948 _ACEOF
11952 if test "x$ac_cv_lib_openal" != xyes; then :
11953 case "x$with_openal" in
11954 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11955 xno) ;;
11956 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11957 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11958 esac
11960 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11962 if test "$ac_cv_header_kstat_h" = "yes"
11963 then
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11965 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11966 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 ac_check_lib_save_LIBS=$LIBS
11970 LIBS="-lkstat $LIBS"
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11974 /* Override any GCC internal prototype to avoid an error.
11975 Use char because int might match the return type of a GCC
11976 builtin and then its argument prototype would still apply. */
11977 #ifdef __cplusplus
11978 extern "C"
11979 #endif
11980 char kstat_open ();
11982 main ()
11984 return kstat_open ();
11986 return 0;
11988 _ACEOF
11989 if ac_fn_c_try_link "$LINENO"; then :
11990 ac_cv_lib_kstat_kstat_open=yes
11991 else
11992 ac_cv_lib_kstat_kstat_open=no
11994 rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
11996 LIBS=$ac_check_lib_save_LIBS
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11999 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12000 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12002 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12004 LIBKSTAT="-lkstat"
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12011 $as_echo_n "checking for -lodbc... " >&6; }
12012 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 ac_check_soname_save_LIBS=$LIBS
12016 LIBS="-lodbc $LIBS"
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12020 /* Override any GCC internal prototype to avoid an error.
12021 Use char because int might match the return type of a GCC
12022 builtin and then its argument prototype would still apply. */
12023 #ifdef __cplusplus
12024 extern "C"
12025 #endif
12026 char SQLConnect ();
12028 main ()
12030 return SQLConnect ();
12032 return 0;
12034 _ACEOF
12035 if ac_fn_c_try_link "$LINENO"; then :
12036 case "$LIBEXT" in
12037 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12038 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'` ;;
12039 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12040 esac
12042 rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_soname_save_LIBS
12046 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12048 $as_echo "not found" >&6; }
12049 cat >>confdefs.h <<_ACEOF
12050 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12051 _ACEOF
12053 else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12055 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12057 cat >>confdefs.h <<_ACEOF
12058 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12059 _ACEOF
12064 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12065 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12066 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12067 "$ac_cv_header_soundcard_h" != "yes" -a \
12068 "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12069 then
12070 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12074 EXTRACFLAGS=""
12076 if test "x${GCC}" = "xyes"
12077 then
12078 EXTRACFLAGS="-Wall -pipe"
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12081 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12082 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 if test "$cross_compiling" = yes; then :
12086 ac_cv_c_gcc_strength_bug="yes"
12087 else
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090 int L[4] = {0,1,2,3};
12092 main ()
12094 static int Array[3];
12095 unsigned int B = 3;
12096 int i;
12097 for(i=0; i<B; i++) Array[i] = i - 3;
12098 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12099 L[i] = 4;
12100 return (Array[1] != -2 || L[2] != 3)
12102 return 0;
12104 _ACEOF
12105 if ac_fn_c_try_run "$LINENO"; then :
12106 ac_cv_c_gcc_strength_bug="no"
12107 else
12108 ac_cv_c_gcc_strength_bug="yes"
12110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12111 conftest.$ac_objext conftest.beam conftest.$ac_ext
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12116 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12117 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12118 then
12119 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12123 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12124 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
12125 $as_echo_n "(cached) " >&6
12126 else
12127 ac_wine_try_cflags_saved=$CFLAGS
12128 CFLAGS="$CFLAGS -fno-builtin"
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12131 int main(int argc, char **argv) { return 0; }
12132 _ACEOF
12133 if ac_fn_c_try_link "$LINENO"; then :
12134 ac_cv_cflags__fno_builtin=yes
12135 else
12136 ac_cv_cflags__fno_builtin=no
12138 rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140 CFLAGS=$ac_wine_try_cflags_saved
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12143 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12144 if test $ac_cv_cflags__fno_builtin = yes; then :
12145 BUILTINFLAG="-fno-builtin"
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12149 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12150 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 ac_wine_try_cflags_saved=$CFLAGS
12154 CFLAGS="$CFLAGS -fno-strict-aliasing"
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12157 int main(int argc, char **argv) { return 0; }
12158 _ACEOF
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 ac_cv_cflags__fno_strict_aliasing=yes
12161 else
12162 ac_cv_cflags__fno_strict_aliasing=no
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 CFLAGS=$ac_wine_try_cflags_saved
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12169 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12170 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12171 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12174 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12175 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 ac_wine_try_cflags_saved=$CFLAGS
12179 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182 int main(int argc, char **argv) { return 0; }
12183 _ACEOF
12184 if ac_fn_c_try_link "$LINENO"; then :
12185 ac_cv_cflags__Wdeclaration_after_statement=yes
12186 else
12187 ac_cv_cflags__Wdeclaration_after_statement=no
12189 rm -f core conftest.err conftest.$ac_objext \
12190 conftest$ac_exeext conftest.$ac_ext
12191 CFLAGS=$ac_wine_try_cflags_saved
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12194 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12195 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12196 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12199 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12200 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 ac_wine_try_cflags_saved=$CFLAGS
12204 CFLAGS="$CFLAGS -Wstrict-prototypes"
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207 int main(int argc, char **argv) { return 0; }
12208 _ACEOF
12209 if ac_fn_c_try_link "$LINENO"; then :
12210 ac_cv_cflags__Wstrict_prototypes=yes
12211 else
12212 ac_cv_cflags__Wstrict_prototypes=no
12214 rm -f core conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12216 CFLAGS=$ac_wine_try_cflags_saved
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12219 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12220 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12221 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12224 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12225 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
12226 $as_echo_n "(cached) " >&6
12227 else
12228 ac_wine_try_cflags_saved=$CFLAGS
12229 CFLAGS="$CFLAGS -Wtype-limits"
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232 int main(int argc, char **argv) { return 0; }
12233 _ACEOF
12234 if ac_fn_c_try_link "$LINENO"; then :
12235 ac_cv_cflags__Wtype_limits=yes
12236 else
12237 ac_cv_cflags__Wtype_limits=no
12239 rm -f core conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12241 CFLAGS=$ac_wine_try_cflags_saved
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12244 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12245 if test $ac_cv_cflags__Wtype_limits = yes; then :
12246 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12249 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12250 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 ac_wine_try_cflags_saved=$CFLAGS
12254 CFLAGS="$CFLAGS -Wwrite-strings"
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12257 int main(int argc, char **argv) { return 0; }
12258 _ACEOF
12259 if ac_fn_c_try_link "$LINENO"; then :
12260 ac_cv_cflags__Wwrite_strings=yes
12261 else
12262 ac_cv_cflags__Wwrite_strings=no
12264 rm -f core conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
12266 CFLAGS=$ac_wine_try_cflags_saved
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12269 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12270 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12271 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12274 saved_CFLAGS="$CFLAGS"
12275 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12277 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12278 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12283 #include <string.h>
12285 main ()
12289 return 0;
12291 _ACEOF
12292 if ac_fn_c_try_compile "$LINENO"; then :
12293 ac_cv_c_string_h_warnings=no
12294 else
12295 ac_cv_c_string_h_warnings=yes
12297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12300 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12301 CFLAGS="$saved_CFLAGS"
12302 if test "$ac_cv_c_string_h_warnings" = "no"
12303 then
12304 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12307 saved_CFLAGS="$CFLAGS"
12308 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12310 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12311 if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12316 #include <string.h>
12318 main ()
12320 char*f(const char *h,char n) {return strchr(h,n);}
12322 return 0;
12324 _ACEOF
12325 if ac_fn_c_try_compile "$LINENO"; then :
12326 ac_cv_c_logicalop_noisy=no
12327 else
12328 ac_cv_c_logicalop_noisy=yes
12330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12333 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12334 CFLAGS="$saved_CFLAGS"
12335 if test "$ac_cv_c_logicalop_noisy" = "no"
12336 then
12337 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12340 if test "x$enable_maintainer_mode" = "xyes"
12341 then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12343 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12344 if test "${ac_cv_cflags__Werror+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 ac_wine_try_cflags_saved=$CFLAGS
12348 CFLAGS="$CFLAGS -Werror"
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12351 int main(int argc, char **argv) { return 0; }
12352 _ACEOF
12353 if ac_fn_c_try_link "$LINENO"; then :
12354 ac_cv_cflags__Werror=yes
12355 else
12356 ac_cv_cflags__Werror=no
12358 rm -f core conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12360 CFLAGS=$ac_wine_try_cflags_saved
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12363 $as_echo "$ac_cv_cflags__Werror" >&6; }
12364 if test $ac_cv_cflags__Werror = yes; then :
12365 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12369 saved_CFLAGS="$CFLAGS"
12370 CFLAGS="$CFLAGS -Werror"
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12372 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12373 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12378 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12380 main ()
12384 return 0;
12386 _ACEOF
12387 if ac_fn_c_try_compile "$LINENO"; then :
12388 ac_cv_have_ms_hook_prologue="yes"
12389 else
12390 ac_cv_have_ms_hook_prologue="no"
12392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12395 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12396 CFLAGS="$saved_CFLAGS"
12397 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12398 then
12400 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12402 else
12403 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12410 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12411 if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12416 #include <string.h>
12418 main ()
12420 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12421 #error Fortify enabled
12422 #endif
12424 return 0;
12426 _ACEOF
12427 if ac_fn_c_try_compile "$LINENO"; then :
12428 ac_cv_c_fortify_enabled=no
12429 else
12430 ac_cv_c_fortify_enabled=yes
12432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12435 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12436 if test "$ac_cv_c_fortify_enabled" = yes
12437 then
12438 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12443 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12444 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12449 extern int ac_test;
12451 main ()
12453 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12455 return 0;
12457 _ACEOF
12458 if ac_fn_c_try_link "$LINENO"; then :
12459 ac_cv_c_extern_prefix="yes"
12460 else
12461 ac_cv_c_extern_prefix="no"
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12467 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12469 case $host_cpu in
12470 *i[3456789]86*)
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12472 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12473 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478 #ifndef _MSC_VER
12479 #define __stdcall __attribute__((__stdcall__))
12480 #endif
12481 int __stdcall ac_test(int i) { return i; }
12483 main ()
12485 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12487 return 0;
12489 _ACEOF
12490 if ac_fn_c_try_link "$LINENO"; then :
12491 ac_cv_c_stdcall_suffix="yes"
12492 else
12493 ac_cv_c_stdcall_suffix="no"
12495 rm -f core conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12499 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12500 *) ac_cv_c_stdcall_suffix="no" ;;
12501 esac
12504 if test "$ac_cv_c_extern_prefix" = "yes"
12505 then
12506 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12508 asm_name_prefix="_"
12509 else
12510 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12512 asm_name_prefix=""
12516 if test "$ac_cv_c_stdcall_suffix" = "yes"
12517 then
12518 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12520 else
12521 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12527 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12528 if test "${ac_cv_asm_func_def+set}" = set; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12535 main ()
12537 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12539 return 0;
12541 _ACEOF
12542 if ac_fn_c_try_link "$LINENO"; then :
12543 ac_cv_asm_func_def=".def"
12544 else
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12549 main ()
12551 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12553 return 0;
12555 _ACEOF
12556 if ac_fn_c_try_link "$LINENO"; then :
12557 ac_cv_asm_func_def=".type @function"
12558 else
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12563 main ()
12565 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12567 return 0;
12569 _ACEOF
12570 if ac_fn_c_try_link "$LINENO"; then :
12571 ac_cv_asm_func_def=".type 2"
12572 else
12573 ac_cv_asm_func_def="unknown"
12575 rm -f core conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12578 rm -f core conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12581 rm -f core conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext conftest.$ac_ext
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12585 $as_echo "$ac_cv_asm_func_def" >&6; }
12588 case "$ac_cv_asm_func_def" in
12589 ".def")
12590 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12592 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12593 ".type @function")
12594 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12596 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12597 ".type 2")
12598 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12600 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12602 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12604 asm_func_header="" ;;
12605 esac
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12608 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12609 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12614 asm(".text\n\t.long 0");
12616 main ()
12620 return 0;
12622 _ACEOF
12623 if ac_fn_c_try_compile "$LINENO"; then :
12624 ac_cv_c_asm_outside_funcs="yes"
12625 else
12626 ac_cv_c_asm_outside_funcs="no"
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12631 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12634 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12635 if test "${ac_cv_c_dot_previous+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12642 main ()
12644 asm(".text\nac_test:\t.long 0\n\t.previous");
12646 return 0;
12648 _ACEOF
12649 if ac_fn_c_try_link "$LINENO"; then :
12650 ac_cv_c_dot_previous="yes"
12651 else
12652 ac_cv_c_dot_previous="no"
12654 rm -f core conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12658 $as_echo "$ac_cv_c_dot_previous" >&6; }
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12661 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12662 if test "${ac_cv_c_cfi_support+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12669 main ()
12673 return 0;
12675 _ACEOF
12676 if ac_fn_c_try_compile "$LINENO"; then :
12677 ac_cv_c_cfi_support="yes"
12678 else
12679 ac_cv_c_cfi_support="no"
12681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12684 $as_echo "$ac_cv_c_cfi_support" >&6; }
12686 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12687 asm_func_trailer=""
12688 if test "$ac_cv_c_dot_previous" = "yes"
12689 then
12690 asm_func_trailer="\\n\\t.previous"
12692 if test "$ac_cv_c_cfi_support" = "yes"
12693 then
12694 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12695 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12697 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12699 UNWINDFLAGS=-fasynchronous-unwind-tables
12701 else
12702 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12706 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12709 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12710 then
12711 cat >>confdefs.h <<_ACEOF
12712 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12713 _ACEOF
12715 else
12716 cat >>confdefs.h <<_ACEOF
12717 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12718 _ACEOF
12722 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12725 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12729 LDPATH=""
12731 case $build_os in
12732 cygwin*|mingw32*)
12733 TOOLSEXT=".exe"
12735 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12737 darwin*|macosx*)
12740 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12742 esac
12744 case $host_os in
12745 mingw32*)
12746 CRTLIBS="-lmsvcrt"
12748 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12751 esac
12753 MAIN_BINARY="wine"
12755 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12757 case $host_os in
12758 linux*)
12759 case $host_cpu in
12760 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12762 x86_64*) EXTRA_BINARIES="wine64-preloader"
12764 esac
12766 esac
12769 ac_save_CFLAGS="$CFLAGS"
12770 CFLAGS="$CFLAGS $BUILTINFLAG"
12771 for ac_func in \
12772 _pclose \
12773 _popen \
12774 _snprintf \
12775 _spawnvp \
12776 _strdup \
12777 _stricmp \
12778 _strnicmp \
12779 _strtoi64 \
12780 _strtoui64 \
12781 _vsnprintf \
12782 asctime_r \
12783 chsize \
12784 dlopen \
12785 epoll_create \
12786 ffs \
12787 finite \
12788 fnmatch \
12789 fork \
12790 fpclass \
12791 fstatfs \
12792 fstatvfs \
12793 ftruncate \
12794 futimes \
12795 futimesat \
12796 getattrlist \
12797 getdirentries \
12798 getopt_long \
12799 getpagesize \
12800 getpwuid \
12801 gettimeofday \
12802 getuid \
12803 kqueue \
12804 lstat \
12805 memmove \
12806 mmap \
12807 pclose \
12808 pipe2 \
12809 poll \
12810 popen \
12811 port_create \
12812 prctl \
12813 pread \
12814 pwrite \
12815 readdir \
12816 readlink \
12817 sched_setaffinity \
12818 sched_yield \
12819 select \
12820 setproctitle \
12821 setrlimit \
12822 settimeofday \
12823 sigaltstack \
12824 sigprocmask \
12825 snprintf \
12826 spawnvp \
12827 statfs \
12828 statvfs \
12829 strcasecmp \
12830 strdup \
12831 strerror \
12832 strncasecmp \
12833 strtold \
12834 strtoll \
12835 strtoull \
12836 symlink \
12837 tcgetattr \
12838 thr_kill2 \
12839 timegm \
12840 usleep \
12841 vsnprintf \
12842 wait4 \
12843 waitpid \
12845 do :
12846 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12847 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12848 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12849 cat >>confdefs.h <<_ACEOF
12850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12851 _ACEOF
12854 done
12856 CFLAGS="$ac_save_CFLAGS"
12858 if test "$ac_cv_func_dlopen" = no
12859 then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12861 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12862 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 ac_check_lib_save_LIBS=$LIBS
12866 LIBS="-ldl $LIBS"
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12870 /* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12873 #ifdef __cplusplus
12874 extern "C"
12875 #endif
12876 char dlopen ();
12878 main ()
12880 return dlopen ();
12882 return 0;
12884 _ACEOF
12885 if ac_fn_c_try_link "$LINENO"; then :
12886 ac_cv_lib_dl_dlopen=yes
12887 else
12888 ac_cv_lib_dl_dlopen=no
12890 rm -f core conftest.err conftest.$ac_objext \
12891 conftest$ac_exeext conftest.$ac_ext
12892 LIBS=$ac_check_lib_save_LIBS
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12895 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12896 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12897 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12898 LIBDL="-ldl"
12903 ac_wine_check_funcs_save_LIBS="$LIBS"
12904 LIBS="$LIBS $LIBDL"
12905 for ac_func in dladdr
12906 do :
12907 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12908 if test "x$ac_cv_func_dladdr" = x""yes; then :
12909 cat >>confdefs.h <<_ACEOF
12910 #define HAVE_DLADDR 1
12911 _ACEOF
12914 done
12916 LIBS="$ac_wine_check_funcs_save_LIBS"
12918 if test "$ac_cv_func_poll" = no
12919 then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12921 $as_echo_n "checking for poll in -lpoll... " >&6; }
12922 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 ac_check_lib_save_LIBS=$LIBS
12926 LIBS="-lpoll $LIBS"
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12930 /* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
12933 #ifdef __cplusplus
12934 extern "C"
12935 #endif
12936 char poll ();
12938 main ()
12940 return poll ();
12942 return 0;
12944 _ACEOF
12945 if ac_fn_c_try_link "$LINENO"; then :
12946 ac_cv_lib_poll_poll=yes
12947 else
12948 ac_cv_lib_poll_poll=no
12950 rm -f core conftest.err conftest.$ac_objext \
12951 conftest$ac_exeext conftest.$ac_ext
12952 LIBS=$ac_check_lib_save_LIBS
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12955 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12956 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12957 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12958 LIBPOLL="-lpoll"
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12965 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12966 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 ac_func_search_save_LIBS=$LIBS
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12973 /* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */
12976 #ifdef __cplusplus
12977 extern "C"
12978 #endif
12979 char gethostbyname ();
12981 main ()
12983 return gethostbyname ();
12985 return 0;
12987 _ACEOF
12988 for ac_lib in '' nsl; do
12989 if test -z "$ac_lib"; then
12990 ac_res="none required"
12991 else
12992 ac_res=-l$ac_lib
12993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12995 if ac_fn_c_try_link "$LINENO"; then :
12996 ac_cv_search_gethostbyname=$ac_res
12998 rm -f core conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext
13000 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13001 break
13003 done
13004 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13006 else
13007 ac_cv_search_gethostbyname=no
13009 rm conftest.$ac_ext
13010 LIBS=$ac_func_search_save_LIBS
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13013 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13014 ac_res=$ac_cv_search_gethostbyname
13015 if test "$ac_res" != no; then :
13016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13022 $as_echo_n "checking for library containing connect... " >&6; }
13023 if test "${ac_cv_search_connect+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 ac_func_search_save_LIBS=$LIBS
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13030 /* Override any GCC internal prototype to avoid an error.
13031 Use char because int might match the return type of a GCC
13032 builtin and then its argument prototype would still apply. */
13033 #ifdef __cplusplus
13034 extern "C"
13035 #endif
13036 char connect ();
13038 main ()
13040 return connect ();
13042 return 0;
13044 _ACEOF
13045 for ac_lib in '' socket; do
13046 if test -z "$ac_lib"; then
13047 ac_res="none required"
13048 else
13049 ac_res=-l$ac_lib
13050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13052 if ac_fn_c_try_link "$LINENO"; then :
13053 ac_cv_search_connect=$ac_res
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext
13057 if test "${ac_cv_search_connect+set}" = set; then :
13058 break
13060 done
13061 if test "${ac_cv_search_connect+set}" = set; then :
13063 else
13064 ac_cv_search_connect=no
13066 rm conftest.$ac_ext
13067 LIBS=$ac_func_search_save_LIBS
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13070 $as_echo "$ac_cv_search_connect" >&6; }
13071 ac_res=$ac_cv_search_connect
13072 if test "$ac_res" != no; then :
13073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13079 $as_echo_n "checking for library containing inet_aton... " >&6; }
13080 if test "${ac_cv_search_inet_aton+set}" = set; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 ac_func_search_save_LIBS=$LIBS
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13087 /* Override any GCC internal prototype to avoid an error.
13088 Use char because int might match the return type of a GCC
13089 builtin and then its argument prototype would still apply. */
13090 #ifdef __cplusplus
13091 extern "C"
13092 #endif
13093 char inet_aton ();
13095 main ()
13097 return inet_aton ();
13099 return 0;
13101 _ACEOF
13102 for ac_lib in '' resolv; do
13103 if test -z "$ac_lib"; then
13104 ac_res="none required"
13105 else
13106 ac_res=-l$ac_lib
13107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13109 if ac_fn_c_try_link "$LINENO"; then :
13110 ac_cv_search_inet_aton=$ac_res
13112 rm -f core conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext
13114 if test "${ac_cv_search_inet_aton+set}" = set; then :
13115 break
13117 done
13118 if test "${ac_cv_search_inet_aton+set}" = set; then :
13120 else
13121 ac_cv_search_inet_aton=no
13123 rm conftest.$ac_ext
13124 LIBS=$ac_func_search_save_LIBS
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13127 $as_echo "$ac_cv_search_inet_aton" >&6; }
13128 ac_res=$ac_cv_search_inet_aton
13129 if test "$ac_res" != no; then :
13130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13135 for ac_func in \
13136 getaddrinfo \
13137 getnameinfo \
13138 getnetbyname \
13139 getprotobyname \
13140 getprotobynumber \
13141 getservbyport \
13142 inet_network \
13143 inet_ntop \
13144 inet_pton \
13145 sendmsg \
13146 socketpair \
13148 do :
13149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13150 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13151 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13152 cat >>confdefs.h <<_ACEOF
13153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13154 _ACEOF
13157 done
13160 LDAPLIBS=""
13162 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13163 then
13164 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13166 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13168 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13169 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
13170 $as_echo_n "(cached) " >&6
13171 else
13172 ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13177 /* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13180 #ifdef __cplusplus
13181 extern "C"
13182 #endif
13183 char ldap_initialize ();
13185 main ()
13187 return ldap_initialize ();
13189 return 0;
13191 _ACEOF
13192 if ac_fn_c_try_link "$LINENO"; then :
13193 ac_cv_lib_ldap_r_ldap_initialize=yes
13194 else
13195 ac_cv_lib_ldap_r_ldap_initialize=no
13197 rm -f core conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
13199 LIBS=$ac_check_lib_save_LIBS
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13202 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13203 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13205 $as_echo_n "checking for ber_init in -llber... " >&6; }
13206 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-llber $LIBPTHREAD $LIBS"
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13214 /* Override any GCC internal prototype to avoid an error.
13215 Use char because int might match the return type of a GCC
13216 builtin and then its argument prototype would still apply. */
13217 #ifdef __cplusplus
13218 extern "C"
13219 #endif
13220 char ber_init ();
13222 main ()
13224 return ber_init ();
13226 return 0;
13228 _ACEOF
13229 if ac_fn_c_try_link "$LINENO"; then :
13230 ac_cv_lib_lber_ber_init=yes
13231 else
13232 ac_cv_lib_lber_ber_init=no
13234 rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext conftest.$ac_ext
13236 LIBS=$ac_check_lib_save_LIBS
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13239 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13240 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
13242 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13244 LDAPLIBS="-lldap_r -llber"
13251 ac_wine_check_funcs_save_LIBS="$LIBS"
13252 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13253 for ac_func in \
13254 ldap_count_references \
13255 ldap_first_reference \
13256 ldap_next_reference \
13257 ldap_parse_reference \
13258 ldap_parse_sort_control \
13259 ldap_parse_sortresponse_control \
13260 ldap_parse_vlv_control \
13261 ldap_parse_vlvresponse_control
13262 do :
13263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13264 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13265 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13266 cat >>confdefs.h <<_ACEOF
13267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13268 _ACEOF
13271 done
13273 LIBS="$ac_wine_check_funcs_save_LIBS"
13275 if test "x$LDAPLIBS" = "x"; then :
13276 case "x$with_ldap" in
13277 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13278 xno) ;;
13279 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13280 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13281 esac
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13285 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13286 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
13287 $as_echo_n "(cached) " >&6
13288 else
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291 #include <sys/stat.h>
13293 main ()
13295 mkdir("foo");
13297 return 0;
13299 _ACEOF
13300 if ac_fn_c_try_compile "$LINENO"; then :
13301 wine_cv_one_arg_mkdir=yes
13302 else
13303 wine_cv_one_arg_mkdir=no
13305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13308 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13309 if test "$wine_cv_one_arg_mkdir" = "yes"
13310 then
13312 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13318 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13319 if test "${ac_cv_c_const+set}" = set; then :
13320 $as_echo_n "(cached) " >&6
13321 else
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13326 main ()
13328 /* FIXME: Include the comments suggested by Paul. */
13329 #ifndef __cplusplus
13330 /* Ultrix mips cc rejects this. */
13331 typedef int charset[2];
13332 const charset cs;
13333 /* SunOS 4.1.1 cc rejects this. */
13334 char const *const *pcpcc;
13335 char **ppc;
13336 /* NEC SVR4.0.2 mips cc rejects this. */
13337 struct point {int x, y;};
13338 static struct point const zero = {0,0};
13339 /* AIX XL C 1.02.0.0 rejects this.
13340 It does not let you subtract one const X* pointer from another in
13341 an arm of an if-expression whose if-part is not a constant
13342 expression */
13343 const char *g = "string";
13344 pcpcc = &g + (g ? g-g : 0);
13345 /* HPUX 7.0 cc rejects these. */
13346 ++pcpcc;
13347 ppc = (char**) pcpcc;
13348 pcpcc = (char const *const *) ppc;
13349 { /* SCO 3.2v4 cc rejects this. */
13350 char *t;
13351 char const *s = 0 ? (char *) 0 : (char const *) 0;
13353 *t++ = 0;
13354 if (s) return 0;
13356 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13357 int x[] = {25, 17};
13358 const int *foo = &x[0];
13359 ++foo;
13361 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13362 typedef const int *iptr;
13363 iptr p = 0;
13364 ++p;
13366 { /* AIX XL C 1.02.0.0 rejects this saying
13367 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13368 struct s { int j; const int *ap[3]; };
13369 struct s *b; b->j = 5;
13371 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13372 const int foo = 10;
13373 if (!foo) return 0;
13375 return !cs[0] && !zero.x;
13376 #endif
13379 return 0;
13381 _ACEOF
13382 if ac_fn_c_try_compile "$LINENO"; then :
13383 ac_cv_c_const=yes
13384 else
13385 ac_cv_c_const=no
13387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13390 $as_echo "$ac_cv_c_const" >&6; }
13391 if test $ac_cv_c_const = no; then
13393 $as_echo "#define const /**/" >>confdefs.h
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13398 $as_echo_n "checking for inline... " >&6; }
13399 if test "${ac_cv_c_inline+set}" = set; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 ac_cv_c_inline=no
13403 for ac_kw in inline __inline__ __inline; do
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13406 #ifndef __cplusplus
13407 typedef int foo_t;
13408 static $ac_kw foo_t static_foo () {return 0; }
13409 $ac_kw foo_t foo () {return 0; }
13410 #endif
13412 _ACEOF
13413 if ac_fn_c_try_compile "$LINENO"; then :
13414 ac_cv_c_inline=$ac_kw
13416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13417 test "$ac_cv_c_inline" != no && break
13418 done
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13422 $as_echo "$ac_cv_c_inline" >&6; }
13424 case $ac_cv_c_inline in
13425 inline | yes) ;;
13427 case $ac_cv_c_inline in
13428 no) ac_val=;;
13429 *) ac_val=$ac_cv_c_inline;;
13430 esac
13431 cat >>confdefs.h <<_ACEOF
13432 #ifndef __cplusplus
13433 #define inline $ac_val
13434 #endif
13435 _ACEOF
13437 esac
13439 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13440 if test "x$ac_cv_type_mode_t" = x""yes; then :
13442 cat >>confdefs.h <<_ACEOF
13443 #define HAVE_MODE_T 1
13444 _ACEOF
13448 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13449 if test "x$ac_cv_type_off_t" = x""yes; then :
13451 cat >>confdefs.h <<_ACEOF
13452 #define HAVE_OFF_T 1
13453 _ACEOF
13457 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13458 if test "x$ac_cv_type_pid_t" = x""yes; then :
13460 cat >>confdefs.h <<_ACEOF
13461 #define HAVE_PID_T 1
13462 _ACEOF
13466 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13467 if test "x$ac_cv_type_size_t" = x""yes; then :
13469 cat >>confdefs.h <<_ACEOF
13470 #define HAVE_SIZE_T 1
13471 _ACEOF
13475 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13476 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13478 cat >>confdefs.h <<_ACEOF
13479 #define HAVE_SSIZE_T 1
13480 _ACEOF
13484 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13485 if test "x$ac_cv_type_long_long" = x""yes; then :
13487 cat >>confdefs.h <<_ACEOF
13488 #define HAVE_LONG_LONG 1
13489 _ACEOF
13493 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13494 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13496 cat >>confdefs.h <<_ACEOF
13497 #define HAVE_FSBLKCNT_T 1
13498 _ACEOF
13502 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13503 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13505 cat >>confdefs.h <<_ACEOF
13506 #define HAVE_FSFILCNT_T 1
13507 _ACEOF
13512 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13513 #include <signal.h>
13515 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13517 cat >>confdefs.h <<_ACEOF
13518 #define HAVE_SIGSET_T 1
13519 _ACEOF
13524 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13526 if test "x$ac_cv_type_request_sense" = x""yes; then :
13528 cat >>confdefs.h <<_ACEOF
13529 #define HAVE_REQUEST_SENSE 1
13530 _ACEOF
13536 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13537 #ifdef HAVE_SYS_SOCKET_H
13538 #include <sys/socket.h>
13539 #endif
13540 #ifdef HAVE_SYS_SOCKETVAR_H
13541 #include <sys/socketvar.h>
13542 #endif
13543 #ifdef HAVE_NET_ROUTE_H
13544 #include <net/route.h>
13545 #endif
13546 #ifdef HAVE_NETINET_IN_H
13547 #include <netinet/in.h>
13548 #endif
13549 #ifdef HAVE_NETINET_IN_SYSTM_H
13550 #include <netinet/in_systm.h>
13551 #endif
13552 #ifdef HAVE_NETINET_IP_H
13553 #include <netinet/ip.h>
13554 #endif
13555 #ifdef HAVE_NETINET_IN_PCB_H
13556 #include <netinet/in_pcb.h>
13557 #endif
13559 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13561 cat >>confdefs.h <<_ACEOF
13562 #define HAVE_STRUCT_XINPGEN 1
13563 _ACEOF
13569 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13570 #include <linux/input.h>
13571 #endif
13573 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13575 cat >>confdefs.h <<_ACEOF
13576 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13577 _ACEOF
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13584 $as_echo_n "checking for sigaddset... " >&6; }
13585 if test "${wine_cv_have_sigaddset+set}" = set; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13590 #include <signal.h>
13592 main ()
13594 sigset_t set; sigaddset(&set,SIGTERM);
13596 return 0;
13598 _ACEOF
13599 if ac_fn_c_try_link "$LINENO"; then :
13600 wine_cv_have_sigaddset=yes
13601 else
13602 wine_cv_have_sigaddset=no
13604 rm -f core conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13608 $as_echo "$wine_cv_have_sigaddset" >&6; }
13609 if test "$wine_cv_have_sigaddset" = "yes"
13610 then
13612 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13618 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13619 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13620 $as_echo_n "(cached) " >&6
13621 else
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13624 #include <netdb.h>
13626 main ()
13629 char *name=0;
13630 struct hostent he;
13631 struct hostent *result;
13632 char *buf=0;
13633 int bufsize=0;
13634 int res,errnr;
13635 char *addr=0;
13636 int addrlen=0;
13637 int addrtype=0;
13638 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13639 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13642 return 0;
13644 _ACEOF
13645 if ac_fn_c_try_link "$LINENO"; then :
13646 wine_cv_linux_gethostbyname_r_6=yes
13647 else
13648 wine_cv_linux_gethostbyname_r_6=no
13651 rm -f core conftest.err conftest.$ac_objext \
13652 conftest$ac_exeext conftest.$ac_ext
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13656 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13657 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13658 then
13660 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13664 if test "$ac_cv_header_linux_joystick_h" = "yes"
13665 then
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13667 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13668 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13674 #include <sys/ioctl.h>
13675 #include <sys/types.h>
13676 #include <linux/joystick.h>
13678 struct js_event blub;
13679 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13680 #error "no 2.2 header"
13681 #endif
13684 main ()
13686 /*empty*/
13688 return 0;
13690 _ACEOF
13691 if ac_fn_c_try_compile "$LINENO"; then :
13692 wine_cv_linux_joystick_22_api=yes
13693 else
13694 wine_cv_linux_joystick_22_api=no
13696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13700 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13701 if test "$wine_cv_linux_joystick_22_api" = "yes"
13702 then
13704 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13710 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13711 #ifdef HAVE_SYS_PARAM_H
13712 # include <sys/param.h>
13713 #endif
13714 #ifdef HAVE_SYS_MOUNT_H
13715 # include <sys/mount.h>
13716 #endif
13717 #ifdef HAVE_SYS_VFS_H
13718 # include <sys/vfs.h>
13719 #endif
13720 #ifdef HAVE_SYS_STATFS_H
13721 # include <sys/statfs.h>
13722 #endif
13724 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13726 cat >>confdefs.h <<_ACEOF
13727 #define HAVE_STRUCT_STATFS_F_BFREE 1
13728 _ACEOF
13732 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13733 #ifdef HAVE_SYS_PARAM_H
13734 # include <sys/param.h>
13735 #endif
13736 #ifdef HAVE_SYS_MOUNT_H
13737 # include <sys/mount.h>
13738 #endif
13739 #ifdef HAVE_SYS_VFS_H
13740 # include <sys/vfs.h>
13741 #endif
13742 #ifdef HAVE_SYS_STATFS_H
13743 # include <sys/statfs.h>
13744 #endif
13746 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13748 cat >>confdefs.h <<_ACEOF
13749 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13750 _ACEOF
13754 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13755 #ifdef HAVE_SYS_PARAM_H
13756 # include <sys/param.h>
13757 #endif
13758 #ifdef HAVE_SYS_MOUNT_H
13759 # include <sys/mount.h>
13760 #endif
13761 #ifdef HAVE_SYS_VFS_H
13762 # include <sys/vfs.h>
13763 #endif
13764 #ifdef HAVE_SYS_STATFS_H
13765 # include <sys/statfs.h>
13766 #endif
13768 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13770 cat >>confdefs.h <<_ACEOF
13771 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13772 _ACEOF
13776 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13777 #ifdef HAVE_SYS_PARAM_H
13778 # include <sys/param.h>
13779 #endif
13780 #ifdef HAVE_SYS_MOUNT_H
13781 # include <sys/mount.h>
13782 #endif
13783 #ifdef HAVE_SYS_VFS_H
13784 # include <sys/vfs.h>
13785 #endif
13786 #ifdef HAVE_SYS_STATFS_H
13787 # include <sys/statfs.h>
13788 #endif
13790 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13792 cat >>confdefs.h <<_ACEOF
13793 #define HAVE_STRUCT_STATFS_F_FFREE 1
13794 _ACEOF
13798 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13799 #ifdef HAVE_SYS_PARAM_H
13800 # include <sys/param.h>
13801 #endif
13802 #ifdef HAVE_SYS_MOUNT_H
13803 # include <sys/mount.h>
13804 #endif
13805 #ifdef HAVE_SYS_VFS_H
13806 # include <sys/vfs.h>
13807 #endif
13808 #ifdef HAVE_SYS_STATFS_H
13809 # include <sys/statfs.h>
13810 #endif
13812 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13814 cat >>confdefs.h <<_ACEOF
13815 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13816 _ACEOF
13820 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13821 #ifdef HAVE_SYS_PARAM_H
13822 # include <sys/param.h>
13823 #endif
13824 #ifdef HAVE_SYS_MOUNT_H
13825 # include <sys/mount.h>
13826 #endif
13827 #ifdef HAVE_SYS_VFS_H
13828 # include <sys/vfs.h>
13829 #endif
13830 #ifdef HAVE_SYS_STATFS_H
13831 # include <sys/statfs.h>
13832 #endif
13834 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13836 cat >>confdefs.h <<_ACEOF
13837 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13838 _ACEOF
13844 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13845 #include <sys/statvfs.h>
13846 #endif
13848 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13850 cat >>confdefs.h <<_ACEOF
13851 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13852 _ACEOF
13858 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13859 #ifdef HAVE_SYS_SOCKET_H
13860 # include <sys/socket.h>
13861 #endif
13862 #ifdef HAVE_SYS_UN_H
13863 # include <sys/un.h>
13864 #endif
13866 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13870 _ACEOF
13874 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13875 #ifdef HAVE_SYS_SOCKET_H
13876 # include <sys/socket.h>
13877 #endif
13878 #ifdef HAVE_SYS_UN_H
13879 # include <sys/un.h>
13880 #endif
13882 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13884 cat >>confdefs.h <<_ACEOF
13885 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13886 _ACEOF
13890 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13891 #ifdef HAVE_SYS_SOCKET_H
13892 # include <sys/socket.h>
13893 #endif
13894 #ifdef HAVE_SYS_UN_H
13895 # include <sys/un.h>
13896 #endif
13898 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13900 cat >>confdefs.h <<_ACEOF
13901 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13902 _ACEOF
13908 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13909 #ifdef HAVE_SCSI_SG_H
13910 #include <scsi/sg.h>
13911 #endif
13913 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_SCSIREQ_T_CMD 1
13917 _ACEOF
13921 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>
13922 #ifdef HAVE_SCSI_SG_H
13923 #include <scsi/sg.h>
13924 #endif
13926 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13928 cat >>confdefs.h <<_ACEOF
13929 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13930 _ACEOF
13936 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13938 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13940 cat >>confdefs.h <<_ACEOF
13941 #define HAVE_SIGINFO_T_SI_FD 1
13942 _ACEOF
13948 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13949 #ifdef HAVE_SYS_MTIO_H
13950 #include <sys/mtio.h>
13951 #endif
13953 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13955 cat >>confdefs.h <<_ACEOF
13956 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13957 _ACEOF
13961 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13962 #ifdef HAVE_SYS_MTIO_H
13963 #include <sys/mtio.h>
13964 #endif
13966 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13968 cat >>confdefs.h <<_ACEOF
13969 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13970 _ACEOF
13974 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13975 #ifdef HAVE_SYS_MTIO_H
13976 #include <sys/mtio.h>
13977 #endif
13979 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13981 cat >>confdefs.h <<_ACEOF
13982 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13983 _ACEOF
13989 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13990 #include <getopt.h>
13991 #endif
13993 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13995 cat >>confdefs.h <<_ACEOF
13996 #define HAVE_STRUCT_OPTION_NAME 1
13997 _ACEOF
14003 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14004 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
14006 cat >>confdefs.h <<_ACEOF
14007 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14008 _ACEOF
14012 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14013 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
14015 cat >>confdefs.h <<_ACEOF
14016 #define HAVE_STRUCT_STAT_ST_MTIM 1
14017 _ACEOF
14021 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14022 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
14024 cat >>confdefs.h <<_ACEOF
14025 #define HAVE_STRUCT_STAT_ST_CTIM 1
14026 _ACEOF
14030 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14031 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
14033 cat >>confdefs.h <<_ACEOF
14034 #define HAVE_STRUCT_STAT_ST_ATIM 1
14035 _ACEOF
14041 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
14042 #include <sys/types.h>
14043 #endif
14044 #ifdef HAVE_NETINET_IN_H
14045 #include <netinet/in.h>
14046 #endif
14048 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14052 _ACEOF
14058 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14059 #include <sys/types.h>
14060 #endif
14061 #ifdef HAVE_NETINET_IN_H
14062 # include <netinet/in.h>
14063 #endif
14064 #ifdef HAVE_ARPA_NAMESER_H
14065 # include <arpa/nameser.h>
14066 #endif
14068 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
14070 cat >>confdefs.h <<_ACEOF
14071 #define HAVE_NS_MSG__MSG_PTR 1
14072 _ACEOF
14078 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14079 #include <sys/types.h>
14080 #endif
14081 #ifdef HAVE_ALIAS_H
14082 #include <alias.h>
14083 #endif
14084 #ifdef HAVE_SYS_SOCKET_H
14085 #include <sys/socket.h>
14086 #endif
14087 #ifdef HAVE_SYS_SOCKETVAR_H
14088 #include <sys/socketvar.h>
14089 #endif
14090 #ifdef HAVE_SYS_TIMEOUT_H
14091 #include <sys/timeout.h>
14092 #endif
14093 #ifdef HAVE_NETINET_IN_H
14094 #include <netinet/in.h>
14095 #endif
14096 #ifdef HAVE_NETINET_IN_SYSTM_H
14097 #include <netinet/in_systm.h>
14098 #endif
14099 #ifdef HAVE_NETINET_IP_H
14100 #include <netinet/ip.h>
14101 #endif
14102 #ifdef HAVE_NETINET_IP_VAR_H
14103 #include <netinet/ip_var.h>
14104 #endif
14105 #ifdef HAVE_NETINET_IP_ICMP_H
14106 #include <netinet/ip_icmp.h>
14107 #endif
14108 #ifdef HAVE_NETINET_ICMP_VAR
14109 #include <netinet/icmp_var.h>
14110 #endif
14112 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
14114 cat >>confdefs.h <<_ACEOF
14115 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14116 _ACEOF
14122 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14123 #include <sys/types.h>
14124 #endif
14125 #ifdef HAVE_NET_IF_H
14126 # include <net/if.h>
14127 #endif
14129 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14131 cat >>confdefs.h <<_ACEOF
14132 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14133 _ACEOF
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14140 $as_echo_n "checking for timezone variable... " >&6; }
14141 if test "${ac_cv_have_timezone+set}" = set; then :
14142 $as_echo_n "(cached) " >&6
14143 else
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <time.h>
14148 main ()
14150 timezone = 1
14152 return 0;
14154 _ACEOF
14155 if ac_fn_c_try_link "$LINENO"; then :
14156 ac_cv_have_timezone="yes"
14157 else
14158 ac_cv_have_timezone="no"
14160 rm -f core conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14164 $as_echo "$ac_cv_have_timezone" >&6; }
14165 if test "$ac_cv_have_timezone" = "yes"
14166 then
14168 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14172 $as_echo_n "checking for daylight variable... " >&6; }
14173 if test "${ac_cv_have_daylight+set}" = set; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14178 #include <time.h>
14180 main ()
14182 daylight = 1
14184 return 0;
14186 _ACEOF
14187 if ac_fn_c_try_link "$LINENO"; then :
14188 ac_cv_have_daylight="yes"
14189 else
14190 ac_cv_have_daylight="no"
14192 rm -f core conftest.err conftest.$ac_objext \
14193 conftest$ac_exeext conftest.$ac_ext
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14196 $as_echo "$ac_cv_have_daylight" >&6; }
14197 if test "$ac_cv_have_daylight" = "yes"
14198 then
14200 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14205 $as_echo_n "checking for isinf... " >&6; }
14206 if test "${ac_cv_have_isinf+set}" = set; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211 #include <math.h>
14213 main ()
14215 float f = 0.0; int i=isinf(f)
14217 return 0;
14219 _ACEOF
14220 if ac_fn_c_try_link "$LINENO"; then :
14221 ac_cv_have_isinf="yes"
14222 else
14223 ac_cv_have_isinf="no"
14225 rm -f core conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14229 $as_echo "$ac_cv_have_isinf" >&6; }
14230 if test "$ac_cv_have_isinf" = "yes"
14231 then
14233 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14238 $as_echo_n "checking for isnan... " >&6; }
14239 if test "${ac_cv_have_isnan+set}" = set; then :
14240 $as_echo_n "(cached) " >&6
14241 else
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14244 #include <math.h>
14246 main ()
14248 float f = 0.0; int i=isnan(f)
14250 return 0;
14252 _ACEOF
14253 if ac_fn_c_try_link "$LINENO"; then :
14254 ac_cv_have_isnan="yes"
14255 else
14256 ac_cv_have_isnan="no"
14258 rm -f core conftest.err conftest.$ac_objext \
14259 conftest$ac_exeext conftest.$ac_ext
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14262 $as_echo "$ac_cv_have_isnan" >&6; }
14263 if test "$ac_cv_have_isnan" = "yes"
14264 then
14266 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14271 case $host_cpu in
14272 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14273 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14274 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279 #ifndef __i386__
14281 #endif
14282 _ACEOF
14283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14284 $EGREP "yes" >/dev/null 2>&1; then :
14285 ac_cv_cpp_def___i386__=yes
14286 else
14287 ac_cv_cpp_def___i386__=no
14289 rm -f conftest*
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14293 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14294 if test $ac_cv_cpp_def___i386__ = yes; then :
14295 CFLAGS="$CFLAGS -D__i386__"
14296 LINTFLAGS="$LINTFLAGS -D__i386__"
14297 fi ;;
14298 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14299 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14300 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
14301 $as_echo_n "(cached) " >&6
14302 else
14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h. */
14305 #ifndef __x86_64__
14307 #endif
14308 _ACEOF
14309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14310 $EGREP "yes" >/dev/null 2>&1; then :
14311 ac_cv_cpp_def___x86_64__=yes
14312 else
14313 ac_cv_cpp_def___x86_64__=no
14315 rm -f conftest*
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14319 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14320 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14321 CFLAGS="$CFLAGS -D__x86_64__"
14322 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14323 fi ;;
14324 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
14325 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
14326 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
14327 $as_echo_n "(cached) " >&6
14328 else
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14331 #ifndef __ALPHA__
14333 #endif
14334 _ACEOF
14335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14336 $EGREP "yes" >/dev/null 2>&1; then :
14337 ac_cv_cpp_def___ALPHA__=yes
14338 else
14339 ac_cv_cpp_def___ALPHA__=no
14341 rm -f conftest*
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
14345 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
14346 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
14347 CFLAGS="$CFLAGS -D__ALPHA__"
14348 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
14349 fi ;;
14350 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14351 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14352 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
14353 $as_echo_n "(cached) " >&6
14354 else
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14357 #ifndef __sparc__
14359 #endif
14360 _ACEOF
14361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14362 $EGREP "yes" >/dev/null 2>&1; then :
14363 ac_cv_cpp_def___sparc__=yes
14364 else
14365 ac_cv_cpp_def___sparc__=no
14367 rm -f conftest*
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14371 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14372 if test $ac_cv_cpp_def___sparc__ = yes; then :
14373 CFLAGS="$CFLAGS -D__sparc__"
14374 LINTFLAGS="$LINTFLAGS -D__sparc__"
14375 fi ;;
14376 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14377 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14378 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14383 #ifndef __powerpc__
14385 #endif
14386 _ACEOF
14387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14388 $EGREP "yes" >/dev/null 2>&1; then :
14389 ac_cv_cpp_def___powerpc__=yes
14390 else
14391 ac_cv_cpp_def___powerpc__=no
14393 rm -f conftest*
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14397 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14398 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14399 CFLAGS="$CFLAGS -D__powerpc__"
14400 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14401 fi ;;
14402 esac
14404 case $host_vendor in
14405 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14406 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14407 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14409 else
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 #ifndef __sun__
14414 #endif
14415 _ACEOF
14416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14417 $EGREP "yes" >/dev/null 2>&1; then :
14418 ac_cv_cpp_def___sun__=yes
14419 else
14420 ac_cv_cpp_def___sun__=no
14422 rm -f conftest*
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14426 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14427 if test $ac_cv_cpp_def___sun__ = yes; then :
14428 CFLAGS="$CFLAGS -D__sun__"
14429 LINTFLAGS="$LINTFLAGS -D__sun__"
14430 fi ;;
14431 esac
14437 ac_config_commands="$ac_config_commands include/stamp-h"
14440 ALL_MAKEFILE_DEPENDS="
14441 # Rules automatically generated by configure
14443 .INIT: Makefile
14444 .MAKEFILEDEPS:
14445 all: Makefile
14446 Makefile: Makefile.in Make.vars.in Make.rules config.status
14447 @./config.status Make.tmp Makefile"
14449 ALL_POT_FILES=""
14450 ALL_WINETEST_DEPENDS="# Test binaries"
14452 ALL_TEST_BINARIES=""
14455 wine_fn_append_file ()
14457 as_fn_append $1 " \\$as_nl $2"
14460 wine_fn_append_rule ()
14462 as_fn_append $1 "$as_nl$2"
14465 wine_fn_has_flag ()
14467 expr ",$2," : ".*,$1,.*" >/dev/null
14470 wine_fn_all_dir_rules ()
14472 ac_dir=$1
14473 ac_alldeps=$2
14474 ac_makedep="\$(MAKEDEP)"
14475 ac_input=Make.vars.in:$ac_dir/Makefile.in
14476 if test $ac_dir != tools
14477 then
14478 ac_alldeps="$2 $ac_makedep"
14480 case $2 in
14481 *.in) ac_input=$ac_input:$2 ;;
14482 *) ac_makedep="$2 $ac_makedep" ;;
14483 esac
14485 wine_fn_append_file ALL_DIRS $ac_dir
14486 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14487 "__clean__: $ac_dir/__clean__
14488 .PHONY: $ac_dir/__clean__
14489 $ac_dir/__clean__: $ac_dir/Makefile
14490 @cd $ac_dir && \$(MAKE) clean
14491 \$(RM) $ac_dir/Makefile
14492 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14493 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14494 depend: $ac_dir/__depend__
14495 .PHONY: $ac_dir/__depend__
14496 $ac_dir/__depend__: $ac_makedep dummy
14497 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14500 wine_fn_config_makefile ()
14502 ac_dir=$1
14503 ac_enable=$2
14504 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14505 return 0
14508 wine_fn_all_dir_rules $ac_dir Make.rules
14509 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14510 "all: $ac_dir
14511 .PHONY: $ac_dir
14512 $ac_dir: $ac_dir/Makefile dummy
14513 @cd $ac_dir && \$(MAKE)
14514 install:: $ac_dir
14515 @cd $ac_dir && \$(MAKE) install
14516 install-lib:: $ac_dir
14517 @cd $ac_dir && \$(MAKE) install-lib
14518 install-dev:: $ac_dir
14519 @cd $ac_dir && \$(MAKE) install-dev
14520 uninstall:: $ac_dir/Makefile
14521 @cd $ac_dir && \$(MAKE) uninstall"
14524 wine_fn_config_lib ()
14526 ac_name=$1
14527 ac_dir=dlls/$ac_name
14528 wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14529 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14530 "all __builddeps__: $ac_dir
14531 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14532 @cd $ac_dir && \$(MAKE)
14533 install install-dev:: $ac_dir
14534 @cd $ac_dir && \$(MAKE) install
14535 uninstall:: $ac_dir/Makefile
14536 @cd $ac_dir && \$(MAKE) uninstall"
14539 wine_fn_config_dll ()
14541 ac_name=$1
14542 ac_dir=dlls/$ac_name
14543 ac_enable=$2
14544 ac_flags=$3
14545 ac_implib=${4:-$ac_name}
14546 ac_file=$ac_dir/lib$ac_implib
14547 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14548 ac_implibflags=""
14550 case $ac_name in
14551 *16) ac_implibflags=" -m16" ;;
14552 esac
14554 wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14556 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14557 test "$ac_enable" != enable_win16 || return 0
14558 else
14559 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14560 "all: $ac_dir
14561 .PHONY: $ac_dir
14562 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14563 @cd $ac_dir && \$(MAKE)
14564 install:: $ac_dir/Makefile __builddeps__
14565 @cd $ac_dir && \$(MAKE) install
14566 install-lib:: $ac_dir/Makefile __builddeps__
14567 @cd $ac_dir && \$(MAKE) install-lib
14568 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14569 @cd $ac_dir && \$(MAKE) \$@"
14571 if test "x$enable_maintainer_mode" = xyes
14572 then
14573 if wine_fn_has_flag mc $ac_flags
14574 then
14575 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14576 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14577 "$ac_dir/msg.pot: $ac_dir"
14579 if wine_fn_has_flag po $ac_flags
14580 then
14581 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14582 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14583 "$ac_dir/rsrc.pot: $ac_dir"
14588 if wine_fn_has_flag staticimplib $ac_flags
14589 then
14590 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14591 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14592 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14593 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14594 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14595 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14596 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14597 install-dev:: $ac_dir/Makefile __builddeps__
14598 @cd $ac_dir && \$(MAKE) install-dev"
14599 if test "x$CROSSTEST_DISABLE" = x
14600 then
14601 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14602 "__builddeps__: $ac_file.cross.a
14603 $ac_file.cross.a: $ac_dir/Makefile dummy
14604 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14607 elif wine_fn_has_flag implib $ac_flags
14608 then
14609 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14610 "__builddeps__: $ac_file.$IMPLIBEXT
14611 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14612 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14613 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14614 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14615 install-dev:: $ac_dir/Makefile __builddeps__
14616 @cd $ac_dir && \$(MAKE) install-dev"
14617 if test "x$CROSSTEST_DISABLE" = x
14618 then
14619 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14620 "__builddeps__: $ac_file.cross.a
14621 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14622 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14625 if test "$ac_name" != "$ac_implib"
14626 then
14627 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14628 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14629 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14630 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14631 clean::
14632 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14633 if test "x$CROSSTEST_DISABLE" = x
14634 then
14635 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14636 "__builddeps__: dlls/lib$ac_implib.cross.a
14637 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14638 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14644 wine_fn_config_program ()
14646 ac_name=$1
14647 ac_dir=programs/$ac_name
14648 ac_enable=$2
14649 ac_flags=$3
14650 wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14652 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14654 else
14655 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14656 "all: $ac_dir
14657 .PHONY: $ac_dir
14658 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14659 @cd $ac_dir && \$(MAKE)"
14661 if test "x$enable_maintainer_mode" = xyes
14662 then
14663 if wine_fn_has_flag mc $ac_flags
14664 then
14665 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14666 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14667 "$ac_dir/msg.pot: $ac_dir"
14669 if wine_fn_has_flag po $ac_flags
14670 then
14671 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14672 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14673 "$ac_dir/rsrc.pot: $ac_dir"
14677 wine_fn_has_flag install $ac_flags || return
14678 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14679 "install install-lib:: $ac_dir/Makefile __builddeps__
14680 @cd $ac_dir && \$(MAKE) install
14681 uninstall:: $ac_dir/Makefile
14682 @cd $ac_dir && \$(MAKE) uninstall"
14683 if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14684 then
14685 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14686 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14687 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14688 uninstall::
14689 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14694 wine_fn_config_test ()
14696 ac_dir=$1
14697 ac_name=$2
14698 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14699 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14700 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14701 cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14702 $ac_name.rc:
14703 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14704 $ac_name.res: $ac_name.rc $ac_name.exe"
14705 wine_fn_all_dir_rules $ac_dir Maketest.rules
14707 if test "x$enable_tests" = x""no; then :
14709 else
14710 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14711 "all programs/winetest: $ac_dir
14712 .PHONY: $ac_dir
14713 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14714 @cd $ac_dir && \$(MAKE)
14715 test: $ac_dir/__test__
14716 .PHONY: $ac_dir/__test__
14717 $ac_dir/__test__: dummy
14718 @cd $ac_dir && \$(MAKE) test
14719 testclean::
14720 \$(RM) $ac_dir/*.ok"
14722 if test "x$CROSSTEST_DISABLE" = x
14723 then
14724 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14725 "crosstest: $ac_dir/__crosstest__
14726 .PHONY: $ac_dir/__crosstest__
14727 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14728 @cd $ac_dir && \$(MAKE) crosstest"
14733 wine_fn_config_tool ()
14735 ac_dir=$1
14736 wine_fn_all_dir_rules $ac_dir Make.rules
14738 if test "x$enable_tools" = x""no; then :
14740 else
14741 case $ac_dir in
14742 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14743 "install:: $ac_dir
14744 @cd $ac_dir && \$(MAKE) install
14745 install-lib:: $ac_dir
14746 @cd $ac_dir && \$(MAKE) install-lib
14747 install-dev:: $ac_dir
14748 @cd $ac_dir && \$(MAKE) install-dev" ;;
14749 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14750 "install install-dev:: $ac_dir
14751 @cd $ac_dir && \$(MAKE) install" ;;
14752 esac
14753 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14754 "uninstall:: $ac_dir/Makefile
14755 @cd $ac_dir && \$(MAKE) uninstall
14756 all __tooldeps__: $ac_dir
14757 .PHONY: $ac_dir
14758 $ac_dir: $ac_dir/Makefile libs/port dummy
14759 @cd $ac_dir && \$(MAKE)"
14760 case $ac_dir in
14761 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14762 esac
14766 wine_fn_config_makerules ()
14768 ac_rules=$1
14769 ac_deps=$2
14770 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14771 "$ac_rules: $ac_rules.in $ac_deps config.status
14772 @./config.status $ac_rules
14773 distclean::
14774 \$(RM) $ac_rules"
14777 wine_fn_config_symlink ()
14779 ac_link=$1
14780 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14781 "$ac_link:
14782 @./config.status $ac_link
14783 distclean::
14784 \$(RM) $ac_link"
14787 if test "x$CROSSTEST_DISABLE" != x
14788 then
14789 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14790 "crosstest:
14791 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14793 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14794 wine_fn_config_symlink dlls/shell32/AUTHORS
14795 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14796 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14797 if test "x$enable_fonts" != xno; then
14798 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14799 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14801 if test "x$enable_fonts" != xno; then
14802 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14803 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14805 if test "x$enable_fonts" != xno; then
14806 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14807 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14809 if test "x$enable_fonts" != xno; then
14810 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14811 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14813 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14814 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14815 ac_config_links="$ac_config_links wine:tools/winewrapper"
14816 wine_fn_config_symlink wine
14818 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14820 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14822 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14824 ac_config_commands="$ac_config_commands dlls/user32/resources"
14826 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14828 ac_config_commands="$ac_config_commands include/wine"
14831 wine_fn_config_makerules Make.rules
14832 MAKE_RULES=Make.rules
14833 ac_config_files="$ac_config_files Make.rules"
14835 wine_fn_config_makerules Maketest.rules Make.rules
14836 MAKE_TEST_RULES=Maketest.rules
14837 ac_config_files="$ac_config_files Maketest.rules"
14839 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14840 MAKE_DLL_RULES=dlls/Makedll.rules
14841 ac_config_files="$ac_config_files dlls/Makedll.rules"
14843 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14844 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14845 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14847 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14848 MAKE_PROG_RULES=programs/Makeprog.rules
14849 ac_config_files="$ac_config_files programs/Makeprog.rules"
14852 wine_fn_config_dll acledit enable_acledit
14853 wine_fn_config_dll aclui enable_aclui implib
14854 wine_fn_config_dll activeds enable_activeds implib
14855 wine_fn_config_dll actxprxy enable_actxprxy
14856 wine_fn_config_lib adsiid
14857 wine_fn_config_dll advapi32 enable_advapi32 implib
14858 wine_fn_config_test dlls/advapi32/tests advapi32_test
14859 wine_fn_config_dll advpack enable_advpack implib
14860 wine_fn_config_test dlls/advpack/tests advpack_test
14861 wine_fn_config_dll amstream enable_amstream
14862 wine_fn_config_test dlls/amstream/tests amstream_test
14863 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14864 wine_fn_config_dll atl enable_atl implib
14865 wine_fn_config_test dlls/atl/tests atl_test
14866 wine_fn_config_dll authz enable_authz
14867 wine_fn_config_dll avicap32 enable_avicap32 implib
14868 wine_fn_config_dll avifil32 enable_avifil32 po,implib
14869 wine_fn_config_test dlls/avifil32/tests avifil32_test
14870 wine_fn_config_dll avifile.dll16 enable_win16
14871 wine_fn_config_dll avrt enable_avrt implib
14872 wine_fn_config_dll bcrypt enable_bcrypt
14873 wine_fn_config_dll browseui enable_browseui po
14874 wine_fn_config_test dlls/browseui/tests browseui_test
14875 wine_fn_config_dll cabinet enable_cabinet implib
14876 wine_fn_config_test dlls/cabinet/tests cabinet_test
14877 wine_fn_config_dll capi2032 enable_capi2032 implib
14878 wine_fn_config_dll cards enable_cards implib
14879 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14880 wine_fn_config_dll clusapi enable_clusapi implib
14881 wine_fn_config_dll comcat enable_comcat
14882 wine_fn_config_test dlls/comcat/tests comcat_test
14883 wine_fn_config_dll comctl32 enable_comctl32 po,implib
14884 wine_fn_config_test dlls/comctl32/tests comctl32_test
14885 wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
14886 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14887 wine_fn_config_dll comm.drv16 enable_win16
14888 wine_fn_config_dll commdlg.dll16 enable_win16
14889 wine_fn_config_dll compobj.dll16 enable_win16
14890 wine_fn_config_dll compstui enable_compstui implib
14891 wine_fn_config_dll credui enable_credui po,implib
14892 wine_fn_config_test dlls/credui/tests credui_test
14893 wine_fn_config_dll crtdll enable_crtdll implib
14894 wine_fn_config_dll crypt32 enable_crypt32 po,implib
14895 wine_fn_config_test dlls/crypt32/tests crypt32_test
14896 wine_fn_config_dll cryptdlg enable_cryptdlg po
14897 wine_fn_config_dll cryptdll enable_cryptdll implib
14898 wine_fn_config_dll cryptnet enable_cryptnet implib
14899 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14900 wine_fn_config_dll cryptui enable_cryptui po,implib
14901 wine_fn_config_test dlls/cryptui/tests cryptui_test
14902 wine_fn_config_dll ctapi32 enable_ctapi32
14903 wine_fn_config_dll ctl3d.dll16 enable_win16
14904 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14905 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14906 wine_fn_config_dll d3d10 enable_d3d10 implib
14907 wine_fn_config_test dlls/d3d10/tests d3d10_test
14908 wine_fn_config_dll d3d10core enable_d3d10core implib
14909 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14910 wine_fn_config_dll d3d8 enable_d3d8 implib
14911 wine_fn_config_test dlls/d3d8/tests d3d8_test
14912 wine_fn_config_dll d3d9 enable_d3d9 implib
14913 wine_fn_config_test dlls/d3d9/tests d3d9_test
14914 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14915 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14916 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14917 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14918 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14919 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14920 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14921 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14922 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14923 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14924 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14925 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14926 wine_fn_config_dll d3dim enable_d3dim implib
14927 wine_fn_config_dll d3drm enable_d3drm implib
14928 wine_fn_config_test dlls/d3drm/tests d3drm_test
14929 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14930 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14931 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14932 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14933 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14934 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14935 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14936 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14937 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14938 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14939 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14940 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14941 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14942 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14943 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14944 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14945 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14946 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14947 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14948 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14949 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14950 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14951 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14952 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14953 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14954 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14955 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14956 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14957 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14958 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14959 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14960 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14961 wine_fn_config_dll d3dxof enable_d3dxof implib
14962 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14963 wine_fn_config_dll dbgeng enable_dbgeng implib
14964 wine_fn_config_dll dbghelp enable_dbghelp implib
14965 wine_fn_config_dll dciman32 enable_dciman32 implib
14966 wine_fn_config_dll ddeml.dll16 enable_win16
14967 wine_fn_config_dll ddraw enable_ddraw implib
14968 wine_fn_config_test dlls/ddraw/tests ddraw_test
14969 wine_fn_config_dll ddrawex enable_ddrawex
14970 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14971 wine_fn_config_dll devenum enable_devenum po
14972 wine_fn_config_dll dinput enable_dinput implib,staticimplib
14973 wine_fn_config_test dlls/dinput/tests dinput_test
14974 wine_fn_config_dll dinput8 enable_dinput8 implib
14975 wine_fn_config_dll dispdib.dll16 enable_win16
14976 wine_fn_config_dll dispex enable_dispex
14977 wine_fn_config_test dlls/dispex/tests dispex_test
14978 wine_fn_config_dll display.drv16 enable_win16
14979 wine_fn_config_dll dmband enable_dmband
14980 wine_fn_config_dll dmcompos enable_dmcompos
14981 wine_fn_config_dll dmime enable_dmime
14982 wine_fn_config_test dlls/dmime/tests dmime_test
14983 wine_fn_config_dll dmloader enable_dmloader
14984 wine_fn_config_test dlls/dmloader/tests dmloader_test
14985 wine_fn_config_dll dmscript enable_dmscript
14986 wine_fn_config_dll dmstyle enable_dmstyle
14987 wine_fn_config_dll dmsynth enable_dmsynth
14988 wine_fn_config_dll dmusic enable_dmusic
14989 wine_fn_config_dll dmusic32 enable_dmusic32 implib
14990 wine_fn_config_dll dnsapi enable_dnsapi implib
14991 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14992 wine_fn_config_dll dplay enable_dplay implib
14993 wine_fn_config_dll dplayx enable_dplayx implib
14994 wine_fn_config_test dlls/dplayx/tests dplayx_test
14995 wine_fn_config_dll dpnaddr enable_dpnaddr
14996 wine_fn_config_dll dpnet enable_dpnet implib
14997 wine_fn_config_dll dpnhpast enable_dpnhpast
14998 wine_fn_config_dll dpnlobby enable_dpnlobby
14999 wine_fn_config_dll dpwsockx enable_dpwsockx
15000 wine_fn_config_dll drmclien enable_drmclien
15001 wine_fn_config_dll dsound enable_dsound implib
15002 wine_fn_config_test dlls/dsound/tests dsound_test
15003 wine_fn_config_dll dssenh enable_dssenh
15004 wine_fn_config_dll dswave enable_dswave
15005 wine_fn_config_dll dwmapi enable_dwmapi implib
15006 wine_fn_config_dll dxdiagn enable_dxdiagn
15007 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15008 wine_fn_config_lib dxerr8
15009 wine_fn_config_lib dxerr9
15010 wine_fn_config_dll dxgi enable_dxgi implib
15011 wine_fn_config_test dlls/dxgi/tests dxgi_test
15012 wine_fn_config_lib dxguid
15013 wine_fn_config_dll explorerframe enable_explorerframe
15014 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15015 wine_fn_config_dll faultrep enable_faultrep implib
15016 wine_fn_config_test dlls/faultrep/tests faultrep_test
15017 wine_fn_config_dll fltlib enable_fltlib
15018 wine_fn_config_dll fusion enable_fusion
15019 wine_fn_config_test dlls/fusion/tests fusion_test
15020 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15021 wine_fn_config_dll gameux enable_gameux
15022 wine_fn_config_test dlls/gameux/tests gameux_test
15023 wine_fn_config_dll gdi.exe16 enable_win16
15024 wine_fn_config_dll gdi32 enable_gdi32 implib
15025 wine_fn_config_test dlls/gdi32/tests gdi32_test
15026 wine_fn_config_dll gdiplus enable_gdiplus implib
15027 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15028 wine_fn_config_dll glu32 enable_glu32 implib
15029 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15030 wine_fn_config_dll gpkcsp enable_gpkcsp
15031 wine_fn_config_dll hal enable_hal
15032 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15033 wine_fn_config_dll hid enable_hid implib
15034 wine_fn_config_dll hlink enable_hlink implib
15035 wine_fn_config_test dlls/hlink/tests hlink_test
15036 wine_fn_config_dll hnetcfg enable_hnetcfg
15037 wine_fn_config_dll httpapi enable_httpapi
15038 wine_fn_config_dll iccvid enable_iccvid po
15039 wine_fn_config_dll icmp enable_icmp
15040 wine_fn_config_dll ifsmgr.vxd enable_win16
15041 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15042 wine_fn_config_dll imagehlp enable_imagehlp implib
15043 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15044 wine_fn_config_dll imm.dll16 enable_win16
15045 wine_fn_config_dll imm32 enable_imm32 implib
15046 wine_fn_config_test dlls/imm32/tests imm32_test
15047 wine_fn_config_dll inetcomm enable_inetcomm implib
15048 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15049 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15050 wine_fn_config_dll inetmib1 enable_inetmib1
15051 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15052 wine_fn_config_dll infosoft enable_infosoft
15053 wine_fn_config_test dlls/infosoft/tests infosoft_test
15054 wine_fn_config_dll initpki enable_initpki
15055 wine_fn_config_dll inkobj enable_inkobj
15056 wine_fn_config_dll inseng enable_inseng
15057 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15058 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15059 wine_fn_config_dll itircl enable_itircl
15060 wine_fn_config_dll itss enable_itss
15061 wine_fn_config_test dlls/itss/tests itss_test
15062 wine_fn_config_dll jscript enable_jscript po
15063 wine_fn_config_test dlls/jscript/tests jscript_test
15064 wine_fn_config_dll kernel32 enable_kernel32 mc,implib
15065 wine_fn_config_test dlls/kernel32/tests kernel32_test
15066 wine_fn_config_dll keyboard.drv16 enable_win16
15067 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15068 wine_fn_config_dll ktmw32 enable_ktmw32
15069 wine_fn_config_dll loadperf enable_loadperf implib
15070 wine_fn_config_dll localspl enable_localspl po
15071 wine_fn_config_test dlls/localspl/tests localspl_test
15072 wine_fn_config_dll localui enable_localui po
15073 wine_fn_config_test dlls/localui/tests localui_test
15074 wine_fn_config_dll lz32 enable_lz32 implib
15075 wine_fn_config_test dlls/lz32/tests lz32_test
15076 wine_fn_config_dll lzexpand.dll16 enable_win16
15077 wine_fn_config_dll mapi32 enable_mapi32 po,implib
15078 wine_fn_config_test dlls/mapi32/tests mapi32_test
15079 wine_fn_config_dll mapistub enable_mapistub
15080 wine_fn_config_dll mciavi32 enable_mciavi32
15081 wine_fn_config_dll mcicda enable_mcicda
15082 wine_fn_config_dll mciqtz32 enable_mciqtz32
15083 wine_fn_config_dll mciseq enable_mciseq
15084 wine_fn_config_dll mciwave enable_mciwave
15085 wine_fn_config_dll midimap enable_midimap
15086 wine_fn_config_dll mlang enable_mlang implib
15087 wine_fn_config_test dlls/mlang/tests mlang_test
15088 wine_fn_config_dll mmdevapi enable_mmdevapi
15089 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15090 wine_fn_config_dll mmdevldr.vxd enable_win16
15091 wine_fn_config_dll mmsystem.dll16 enable_win16
15092 wine_fn_config_dll monodebg.vxd enable_win16
15093 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15094 wine_fn_config_dll mouse.drv16 enable_win16
15095 wine_fn_config_dll mpr enable_mpr po,implib
15096 wine_fn_config_dll mprapi enable_mprapi implib
15097 wine_fn_config_dll msacm.dll16 enable_win16
15098 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15099 wine_fn_config_dll msacm32 enable_msacm32 implib
15100 wine_fn_config_test dlls/msacm32/tests msacm32_test
15101 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15102 wine_fn_config_dll mscat32 enable_mscat32
15103 wine_fn_config_dll mscms enable_mscms implib
15104 wine_fn_config_test dlls/mscms/tests mscms_test
15105 wine_fn_config_dll mscoree enable_mscoree
15106 wine_fn_config_test dlls/mscoree/tests mscoree_test
15107 wine_fn_config_dll msctf enable_msctf
15108 wine_fn_config_test dlls/msctf/tests msctf_test
15109 wine_fn_config_dll msdaps enable_msdaps
15110 wine_fn_config_dll msdmo enable_msdmo implib
15111 wine_fn_config_dll msftedit enable_msftedit
15112 wine_fn_config_dll msg711.acm enable_msg711_acm
15113 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15114 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15115 wine_fn_config_dll mshtml enable_mshtml po,implib
15116 wine_fn_config_test dlls/mshtml/tests mshtml_test
15117 wine_fn_config_dll msi enable_msi po,implib
15118 wine_fn_config_test dlls/msi/tests msi_test
15119 wine_fn_config_dll msimg32 enable_msimg32 implib
15120 wine_fn_config_dll msimtf enable_msimtf
15121 wine_fn_config_dll msisip enable_msisip
15122 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15123 wine_fn_config_dll msnet32 enable_msnet32
15124 wine_fn_config_dll msrle32 enable_msrle32 po
15125 wine_fn_config_dll mssign32 enable_mssign32
15126 wine_fn_config_dll mssip32 enable_mssip32
15127 wine_fn_config_dll mstask enable_mstask
15128 wine_fn_config_test dlls/mstask/tests mstask_test
15129 wine_fn_config_dll msvcirt enable_msvcirt
15130 wine_fn_config_dll msvcp80 enable_msvcp80
15131 wine_fn_config_dll msvcp90 enable_msvcp90
15132 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15133 wine_fn_config_dll msvcr100 enable_msvcr100
15134 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15135 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15136 wine_fn_config_dll msvcr80 enable_msvcr80
15137 wine_fn_config_dll msvcr90 enable_msvcr90
15138 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15139 wine_fn_config_dll msvcrt enable_msvcrt implib
15140 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15141 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15142 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15143 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15144 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15145 wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
15146 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15147 wine_fn_config_dll msvidc32 enable_msvidc32 po
15148 wine_fn_config_dll msvideo.dll16 enable_win16
15149 wine_fn_config_dll mswsock enable_mswsock implib
15150 wine_fn_config_dll msxml enable_msxml
15151 wine_fn_config_dll msxml2 enable_msxml2
15152 wine_fn_config_dll msxml3 enable_msxml3
15153 wine_fn_config_test dlls/msxml3/tests msxml3_test
15154 wine_fn_config_dll msxml4 enable_msxml4
15155 wine_fn_config_dll msxml6 enable_msxml6
15156 wine_fn_config_dll nddeapi enable_nddeapi implib
15157 wine_fn_config_dll netapi32 enable_netapi32 implib
15158 wine_fn_config_test dlls/netapi32/tests netapi32_test
15159 wine_fn_config_dll newdev enable_newdev implib
15160 wine_fn_config_dll normaliz enable_normaliz implib
15161 wine_fn_config_dll npmshtml enable_npmshtml
15162 wine_fn_config_dll ntdll enable_ntdll implib
15163 wine_fn_config_test dlls/ntdll/tests ntdll_test
15164 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15165 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15166 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15167 wine_fn_config_dll ntprint enable_ntprint
15168 wine_fn_config_test dlls/ntprint/tests ntprint_test
15169 wine_fn_config_dll objsel enable_objsel
15170 wine_fn_config_dll odbc32 enable_odbc32 implib
15171 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15172 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15173 wine_fn_config_dll ole2.dll16 enable_win16
15174 wine_fn_config_dll ole2conv.dll16 enable_win16
15175 wine_fn_config_dll ole2disp.dll16 enable_win16
15176 wine_fn_config_dll ole2nls.dll16 enable_win16
15177 wine_fn_config_dll ole2prox.dll16 enable_win16
15178 wine_fn_config_dll ole2thk.dll16 enable_win16
15179 wine_fn_config_dll ole32 enable_ole32 implib
15180 wine_fn_config_test dlls/ole32/tests ole32_test
15181 wine_fn_config_dll oleacc enable_oleacc po,implib
15182 wine_fn_config_test dlls/oleacc/tests oleacc_test
15183 wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
15184 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15185 wine_fn_config_dll olecli.dll16 enable_win16
15186 wine_fn_config_dll olecli32 enable_olecli32 implib
15187 wine_fn_config_dll oledb32 enable_oledb32
15188 wine_fn_config_test dlls/oledb32/tests oledb32_test
15189 wine_fn_config_dll oledlg enable_oledlg po,implib
15190 wine_fn_config_dll olepro32 enable_olepro32 implib
15191 wine_fn_config_dll olesvr.dll16 enable_win16
15192 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15193 wine_fn_config_dll olethk32 enable_olethk32
15194 wine_fn_config_dll openal32 enable_openal32
15195 wine_fn_config_dll opencl enable_opencl
15196 wine_fn_config_dll opengl32 enable_opengl32 implib
15197 wine_fn_config_test dlls/opengl32/tests opengl32_test
15198 wine_fn_config_dll pdh enable_pdh implib
15199 wine_fn_config_test dlls/pdh/tests pdh_test
15200 wine_fn_config_dll pidgen enable_pidgen
15201 wine_fn_config_dll powrprof enable_powrprof implib
15202 wine_fn_config_dll printui enable_printui
15203 wine_fn_config_dll propsys enable_propsys implib
15204 wine_fn_config_test dlls/propsys/tests propsys_test
15205 wine_fn_config_dll psapi enable_psapi implib
15206 wine_fn_config_test dlls/psapi/tests psapi_test
15207 wine_fn_config_dll pstorec enable_pstorec
15208 wine_fn_config_dll qcap enable_qcap
15209 wine_fn_config_dll qedit enable_qedit
15210 wine_fn_config_test dlls/qedit/tests qedit_test
15211 wine_fn_config_dll qmgr enable_qmgr
15212 wine_fn_config_test dlls/qmgr/tests qmgr_test
15213 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15214 wine_fn_config_dll quartz enable_quartz implib
15215 wine_fn_config_test dlls/quartz/tests quartz_test
15216 wine_fn_config_dll query enable_query
15217 wine_fn_config_dll rasapi16.dll16 enable_win16
15218 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15219 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15220 wine_fn_config_dll rasdlg enable_rasdlg implib
15221 wine_fn_config_dll resutils enable_resutils implib
15222 wine_fn_config_dll riched20 enable_riched20 implib
15223 wine_fn_config_test dlls/riched20/tests riched20_test
15224 wine_fn_config_dll riched32 enable_riched32
15225 wine_fn_config_test dlls/riched32/tests riched32_test
15226 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15227 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15228 wine_fn_config_dll rsabase enable_rsabase
15229 wine_fn_config_dll rsaenh enable_rsaenh implib
15230 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15231 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15232 wine_fn_config_dll rtutils enable_rtutils implib
15233 wine_fn_config_dll samlib enable_samlib
15234 wine_fn_config_dll sane.ds enable_sane_ds po
15235 wine_fn_config_dll sccbase enable_sccbase
15236 wine_fn_config_dll schannel enable_schannel
15237 wine_fn_config_test dlls/schannel/tests schannel_test
15238 wine_fn_config_dll secur32 enable_secur32 implib
15239 wine_fn_config_test dlls/secur32/tests secur32_test
15240 wine_fn_config_dll security enable_security
15241 wine_fn_config_dll sensapi enable_sensapi implib
15242 wine_fn_config_dll serialui enable_serialui implib
15243 wine_fn_config_test dlls/serialui/tests serialui_test
15244 wine_fn_config_dll setupapi enable_setupapi po,implib
15245 wine_fn_config_test dlls/setupapi/tests setupapi_test
15246 wine_fn_config_dll setupx.dll16 enable_win16
15247 wine_fn_config_dll sfc enable_sfc implib
15248 wine_fn_config_dll sfc_os enable_sfc_os implib
15249 wine_fn_config_dll shdoclc enable_shdoclc po
15250 wine_fn_config_dll shdocvw enable_shdocvw po,implib
15251 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15252 wine_fn_config_dll shell.dll16 enable_win16
15253 wine_fn_config_dll shell32 enable_shell32 po,implib
15254 wine_fn_config_test dlls/shell32/tests shell32_test
15255 wine_fn_config_dll shfolder enable_shfolder implib
15256 wine_fn_config_dll shlwapi enable_shlwapi po,implib
15257 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15258 wine_fn_config_dll slbcsp enable_slbcsp
15259 wine_fn_config_dll slc enable_slc implib
15260 wine_fn_config_dll snmpapi enable_snmpapi implib
15261 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15262 wine_fn_config_dll softpub enable_softpub
15263 wine_fn_config_dll sound.drv16 enable_win16
15264 wine_fn_config_dll spoolss enable_spoolss implib
15265 wine_fn_config_test dlls/spoolss/tests spoolss_test
15266 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15267 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15268 wine_fn_config_dll sti enable_sti implib
15269 wine_fn_config_test dlls/sti/tests sti_test
15270 wine_fn_config_dll storage.dll16 enable_win16
15271 wine_fn_config_dll stress.dll16 enable_win16
15272 wine_fn_config_lib strmbase
15273 wine_fn_config_lib strmiids
15274 wine_fn_config_dll svrapi enable_svrapi
15275 wine_fn_config_dll sxs enable_sxs
15276 wine_fn_config_dll system.drv16 enable_win16
15277 wine_fn_config_dll t2embed enable_t2embed
15278 wine_fn_config_dll tapi32 enable_tapi32 implib
15279 wine_fn_config_dll toolhelp.dll16 enable_win16
15280 wine_fn_config_dll traffic enable_traffic
15281 wine_fn_config_dll twain.dll16 enable_win16
15282 wine_fn_config_dll twain_32 enable_twain_32
15283 wine_fn_config_test dlls/twain_32/tests twain_32_test
15284 wine_fn_config_dll typelib.dll16 enable_win16
15285 wine_fn_config_dll unicows enable_unicows implib
15286 wine_fn_config_dll updspapi enable_updspapi
15287 wine_fn_config_dll url enable_url implib
15288 wine_fn_config_dll urlmon enable_urlmon implib
15289 wine_fn_config_test dlls/urlmon/tests urlmon_test
15290 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15291 wine_fn_config_dll user.exe16 enable_win16
15292 wine_fn_config_dll user32 enable_user32 po,implib
15293 wine_fn_config_test dlls/user32/tests user32_test
15294 wine_fn_config_dll userenv enable_userenv implib
15295 wine_fn_config_test dlls/userenv/tests userenv_test
15296 wine_fn_config_dll usp10 enable_usp10 implib
15297 wine_fn_config_test dlls/usp10/tests usp10_test
15298 wine_fn_config_lib uuid
15299 wine_fn_config_dll uxtheme enable_uxtheme implib
15300 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15301 wine_fn_config_dll vdhcp.vxd enable_win16
15302 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15303 wine_fn_config_dll ver.dll16 enable_win16
15304 wine_fn_config_dll version enable_version implib
15305 wine_fn_config_test dlls/version/tests version_test
15306 wine_fn_config_dll vmm.vxd enable_win16
15307 wine_fn_config_dll vnbt.vxd enable_win16
15308 wine_fn_config_dll vnetbios.vxd enable_win16
15309 wine_fn_config_dll vtdapi.vxd enable_win16
15310 wine_fn_config_dll vwin32.vxd enable_win16
15311 wine_fn_config_dll w32skrnl enable_win16
15312 wine_fn_config_dll w32sys.dll16 enable_win16
15313 wine_fn_config_dll wbemprox enable_wbemprox
15314 wine_fn_config_dll wer enable_wer implib
15315 wine_fn_config_test dlls/wer/tests wer_test
15316 wine_fn_config_dll wiaservc enable_wiaservc
15317 wine_fn_config_dll win32s16.dll16 enable_win16
15318 wine_fn_config_dll win87em.dll16 enable_win16
15319 wine_fn_config_dll winaspi.dll16 enable_win16
15320 wine_fn_config_dll windebug.dll16 enable_win16
15321 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15322 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15323 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15324 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15325 wine_fn_config_lib winecrt0
15326 wine_fn_config_dll wined3d enable_wined3d implib
15327 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15328 wine_fn_config_dll winegstreamer enable_winegstreamer
15329 wine_fn_config_dll winejack.drv enable_winejack_drv
15330 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15331 wine_fn_config_dll winemapi enable_winemapi
15332 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15333 wine_fn_config_dll winenas.drv enable_winenas_drv
15334 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15335 wine_fn_config_dll wineps.drv enable_wineps_drv
15336 wine_fn_config_dll wineps16.drv16 enable_win16
15337 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15338 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15339 wine_fn_config_dll winex11.drv enable_winex11_drv
15340 wine_fn_config_dll wing.dll16 enable_win16
15341 wine_fn_config_dll wing32 enable_wing32
15342 wine_fn_config_dll winhttp enable_winhttp implib
15343 wine_fn_config_test dlls/winhttp/tests winhttp_test
15344 wine_fn_config_dll wininet enable_wininet po,implib
15345 wine_fn_config_test dlls/wininet/tests wininet_test
15346 wine_fn_config_dll winmm enable_winmm po,implib
15347 wine_fn_config_test dlls/winmm/tests winmm_test
15348 wine_fn_config_dll winnls.dll16 enable_win16
15349 wine_fn_config_dll winnls32 enable_winnls32 implib
15350 wine_fn_config_dll winscard enable_winscard implib
15351 wine_fn_config_dll winsock.dll16 enable_win16
15352 wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
15353 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15354 wine_fn_config_dll wintab.dll16 enable_win16
15355 wine_fn_config_dll wintab32 enable_wintab32 implib
15356 wine_fn_config_test dlls/wintab32/tests wintab32_test
15357 wine_fn_config_dll wintrust enable_wintrust implib
15358 wine_fn_config_test dlls/wintrust/tests wintrust_test
15359 wine_fn_config_dll wlanapi enable_wlanapi
15360 wine_fn_config_dll wldap32 enable_wldap32 po,implib
15361 wine_fn_config_test dlls/wldap32/tests wldap32_test
15362 wine_fn_config_dll wmi enable_wmi
15363 wine_fn_config_dll wmiutils enable_wmiutils
15364 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15365 wine_fn_config_dll wow32 enable_win16 implib
15366 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15367 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15368 wine_fn_config_dll wsock32 enable_wsock32 implib
15369 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15370 wine_fn_config_dll wuapi enable_wuapi
15371 wine_fn_config_dll wuaueng enable_wuaueng
15372 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15373 wine_fn_config_dll xinput1_1 enable_xinput1_1
15374 wine_fn_config_dll xinput1_2 enable_xinput1_2
15375 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15376 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15377 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15378 wine_fn_config_dll xmllite enable_xmllite
15379 wine_fn_config_test dlls/xmllite/tests xmllite_test
15380 wine_fn_config_makefile documentation enable_documentation
15381 wine_fn_config_makefile fonts enable_fonts
15382 wine_fn_config_makefile include enable_include
15383 wine_fn_config_makefile libs/port enable_libs_port
15384 wine_fn_config_makefile libs/wine enable_libs_wine
15385 wine_fn_config_makefile libs/wpp enable_libs_wpp
15386 wine_fn_config_makefile loader enable_loader
15387 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15388 wine_fn_config_program attrib enable_attrib install
15389 wine_fn_config_program cabarc enable_cabarc install
15390 wine_fn_config_program cacls enable_cacls install
15391 wine_fn_config_program clock enable_clock po,install
15392 wine_fn_config_program cmd enable_cmd po,install
15393 wine_fn_config_test programs/cmd/tests cmd.exe_test
15394 wine_fn_config_program cmdlgtst enable_cmdlgtst
15395 wine_fn_config_program control enable_control install
15396 wine_fn_config_program dxdiag enable_dxdiag install
15397 wine_fn_config_program eject enable_eject install
15398 wine_fn_config_program expand enable_expand install
15399 wine_fn_config_program explorer enable_explorer install
15400 wine_fn_config_program extrac32 enable_extrac32 install
15401 wine_fn_config_program hh enable_hh install
15402 wine_fn_config_program icinfo enable_icinfo install
15403 wine_fn_config_program iexplore enable_iexplore install
15404 wine_fn_config_program ipconfig enable_ipconfig po,install
15405 wine_fn_config_program lodctr enable_lodctr install
15406 wine_fn_config_program mofcomp enable_mofcomp install
15407 wine_fn_config_program mshta enable_mshta install
15408 wine_fn_config_program msiexec enable_msiexec install,installbin
15409 wine_fn_config_program net enable_net po,install
15410 wine_fn_config_program netsh enable_netsh install
15411 wine_fn_config_program ngen enable_ngen install
15412 wine_fn_config_program notepad enable_notepad po,install,installbin
15413 wine_fn_config_program oleview enable_oleview po,install
15414 wine_fn_config_program ping enable_ping install
15415 wine_fn_config_program plugplay enable_plugplay install
15416 wine_fn_config_program progman enable_progman po,install
15417 wine_fn_config_program reg enable_reg po,install
15418 wine_fn_config_program regedit enable_regedit po,install,installbin
15419 wine_fn_config_test programs/regedit/tests regedit.exe_test
15420 wine_fn_config_program regsvcs enable_regsvcs install
15421 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15422 wine_fn_config_program rpcss enable_rpcss install
15423 wine_fn_config_program rundll.exe16 enable_win16 install
15424 wine_fn_config_program rundll32 enable_rundll32 install
15425 wine_fn_config_program sc enable_sc install
15426 wine_fn_config_program secedit enable_secedit install
15427 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15428 wine_fn_config_program services enable_services install
15429 wine_fn_config_program spoolsv enable_spoolsv install
15430 wine_fn_config_program start enable_start po,install
15431 wine_fn_config_program svchost enable_svchost install
15432 wine_fn_config_program taskkill enable_taskkill po,install
15433 wine_fn_config_program taskmgr enable_taskmgr po,install
15434 wine_fn_config_program termsv enable_termsv install
15435 wine_fn_config_program uninstaller enable_uninstaller po,install
15436 wine_fn_config_program unlodctr enable_unlodctr install
15437 wine_fn_config_program view enable_view po
15438 wine_fn_config_program wineboot enable_wineboot install,installbin
15439 wine_fn_config_program winebrowser enable_winebrowser install
15440 wine_fn_config_program winecfg enable_winecfg po,install,installbin
15441 wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
15442 wine_fn_config_program winedbg enable_winedbg po,install,installbin
15443 wine_fn_config_program winedevice enable_winedevice install
15444 wine_fn_config_program winefile enable_winefile po,install,installbin
15445 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15446 wine_fn_config_program winemine enable_winemine po,install,installbin
15447 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15448 wine_fn_config_program winepath enable_winepath install,installbin
15449 wine_fn_config_program winetest enable_winetest
15450 wine_fn_config_program winevdm enable_win16 install
15451 wine_fn_config_program winhelp.exe16 enable_win16 install
15452 wine_fn_config_program winhlp32 enable_winhlp32 po,install
15453 wine_fn_config_program winoldap.mod16 enable_win16 install
15454 wine_fn_config_program winver enable_winver install
15455 wine_fn_config_program wmic enable_wmic install
15456 wine_fn_config_program wordpad enable_wordpad po,install
15457 wine_fn_config_program write enable_write po,install
15458 wine_fn_config_program wscript enable_wscript install
15459 wine_fn_config_program xcopy enable_xcopy po,install
15460 wine_fn_config_makefile server enable_server
15461 wine_fn_config_tool tools
15462 wine_fn_config_tool tools/widl
15463 wine_fn_config_tool tools/winebuild
15464 wine_fn_config_tool tools/winedump
15465 wine_fn_config_tool tools/winegcc
15466 wine_fn_config_tool tools/wmc
15467 wine_fn_config_tool tools/wrc
15469 LINGUAS="\
15470 ar \
15471 bg \
15472 ca \
15473 cs \
15474 da \
15475 de \
15476 el \
15477 en \
15478 en_US \
15479 eo \
15480 es \
15481 fa \
15482 fi \
15483 fr \
15484 he \
15485 hi \
15486 hu \
15487 it \
15488 ja \
15489 ko \
15490 lt \
15491 ml \
15492 nb_NO \
15493 nl \
15494 or \
15495 pa \
15496 pl \
15497 pt_BR \
15498 pt_PT \
15499 rm \
15500 ro \
15501 ru \
15502 sk \
15503 sl \
15504 sr_RS@cyrillic \
15505 sr_RS@latin \
15506 sv \
15507 te \
15508 th \
15509 tr \
15510 uk \
15511 wa \
15512 zh_CN \
15513 zh_TW"
15517 ac_config_commands="$ac_config_commands Makefile"
15520 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15524 if test "x$enable_maintainer_mode" = xyes
15525 then
15526 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15527 cd \$(srcdir) && autoconf --warnings=all
15528 \$(srcdir)/include/config.h.in: include/stamp-h.in
15529 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15530 cd \$(srcdir) && autoheader --warnings=all
15531 @echo timestamp > \$@
15533 ALL_POT_FILES =$ALL_POT_FILES
15534 all: \$(ALL_PO_FILES)
15535 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15536 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15537 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15538 msgcat -o \$@ \$(ALL_POT_FILES)"
15541 if test -n "$with_wine64"
15542 then
15543 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15544 fonts server:
15545 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15546 $with_wine64/loader/wine:
15547 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15548 $with_wine64/loader/wine-preloader:
15549 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15550 clean::
15551 \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15554 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15555 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15557 cat >confcache <<\_ACEOF
15558 # This file is a shell script that caches the results of configure
15559 # tests run on this system so they can be shared between configure
15560 # scripts and configure runs, see configure's option --config-cache.
15561 # It is not useful on other systems. If it contains results you don't
15562 # want to keep, you may remove or edit it.
15564 # config.status only pays attention to the cache file if you give it
15565 # the --recheck option to rerun configure.
15567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15569 # following values.
15571 _ACEOF
15573 # The following way of writing the cache mishandles newlines in values,
15574 # but we know of no workaround that is simple, portable, and efficient.
15575 # So, we kill variables containing newlines.
15576 # Ultrix sh set writes to stderr and can't be redirected directly,
15577 # and sets the high bit in the cache file unless we assign to the vars.
15579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15580 eval ac_val=\$$ac_var
15581 case $ac_val in #(
15582 *${as_nl}*)
15583 case $ac_var in #(
15584 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15585 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15586 esac
15587 case $ac_var in #(
15588 _ | IFS | as_nl) ;; #(
15589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15590 *) { eval $ac_var=; unset $ac_var;} ;;
15591 esac ;;
15592 esac
15593 done
15595 (set) 2>&1 |
15596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15597 *${as_nl}ac_space=\ *)
15598 # `set' does not quote correctly, so add quotes: double-quote
15599 # substitution turns \\\\ into \\, and sed turns \\ into \.
15600 sed -n \
15601 "s/'/'\\\\''/g;
15602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15603 ;; #(
15605 # `set' quotes correctly as required by POSIX, so do not add quotes.
15606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15608 esac |
15609 sort
15611 sed '
15612 /^ac_cv_env_/b end
15613 t clear
15614 :clear
15615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15616 t end
15617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15618 :end' >>confcache
15619 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15620 if test -w "$cache_file"; then
15621 test "x$cache_file" != "x/dev/null" &&
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15623 $as_echo "$as_me: updating cache $cache_file" >&6;}
15624 cat confcache >$cache_file
15625 else
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15627 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15630 rm -f confcache
15632 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15633 # Let make expand exec_prefix.
15634 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15636 DEFS=-DHAVE_CONFIG_H
15638 ac_libobjs=
15639 ac_ltlibobjs=
15641 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15642 # 1. Remove the extension, and $U if already installed.
15643 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15644 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15645 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15646 # will be set to the directory where LIBOBJS objects are built.
15647 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15648 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15649 done
15650 LIBOBJS=$ac_libobjs
15652 LTLIBOBJS=$ac_ltlibobjs
15656 : ${CONFIG_STATUS=./config.status}
15657 ac_write_fail=0
15658 ac_clean_files_save=$ac_clean_files
15659 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15661 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15662 as_write_fail=0
15663 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15664 #! $SHELL
15665 # Generated by $as_me.
15666 # Run this file to recreate the current configuration.
15667 # Compiler output produced by configure, useful for debugging
15668 # configure, is in config.log if it exists.
15670 debug=false
15671 ac_cs_recheck=false
15672 ac_cs_silent=false
15674 SHELL=\${CONFIG_SHELL-$SHELL}
15675 export SHELL
15676 _ASEOF
15677 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15678 ## -------------------- ##
15679 ## M4sh Initialization. ##
15680 ## -------------------- ##
15682 # Be more Bourne compatible
15683 DUALCASE=1; export DUALCASE # for MKS sh
15684 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15685 emulate sh
15686 NULLCMD=:
15687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15688 # is contrary to our usage. Disable this feature.
15689 alias -g '${1+"$@"}'='"$@"'
15690 setopt NO_GLOB_SUBST
15691 else
15692 case `(set -o) 2>/dev/null` in #(
15693 *posix*) :
15694 set -o posix ;; #(
15695 *) :
15697 esac
15701 as_nl='
15703 export as_nl
15704 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15705 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15706 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15708 # Prefer a ksh shell builtin over an external printf program on Solaris,
15709 # but without wasting forks for bash or zsh.
15710 if test -z "$BASH_VERSION$ZSH_VERSION" \
15711 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15712 as_echo='print -r --'
15713 as_echo_n='print -rn --'
15714 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15715 as_echo='printf %s\n'
15716 as_echo_n='printf %s'
15717 else
15718 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15719 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15720 as_echo_n='/usr/ucb/echo -n'
15721 else
15722 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15723 as_echo_n_body='eval
15724 arg=$1;
15725 case $arg in #(
15726 *"$as_nl"*)
15727 expr "X$arg" : "X\\(.*\\)$as_nl";
15728 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15729 esac;
15730 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15732 export as_echo_n_body
15733 as_echo_n='sh -c $as_echo_n_body as_echo'
15735 export as_echo_body
15736 as_echo='sh -c $as_echo_body as_echo'
15739 # The user is always right.
15740 if test "${PATH_SEPARATOR+set}" != set; then
15741 PATH_SEPARATOR=:
15742 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15743 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15744 PATH_SEPARATOR=';'
15749 # IFS
15750 # We need space, tab and new line, in precisely that order. Quoting is
15751 # there to prevent editors from complaining about space-tab.
15752 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15753 # splitting by setting IFS to empty value.)
15754 IFS=" "" $as_nl"
15756 # Find who we are. Look in the path if we contain no directory separator.
15757 case $0 in #((
15758 *[\\/]* ) as_myself=$0 ;;
15759 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15760 for as_dir in $PATH
15762 IFS=$as_save_IFS
15763 test -z "$as_dir" && as_dir=.
15764 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15765 done
15766 IFS=$as_save_IFS
15769 esac
15770 # We did not find ourselves, most probably we were run as `sh COMMAND'
15771 # in which case we are not to be found in the path.
15772 if test "x$as_myself" = x; then
15773 as_myself=$0
15775 if test ! -f "$as_myself"; then
15776 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15777 exit 1
15780 # Unset variables that we do not need and which cause bugs (e.g. in
15781 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15782 # suppresses any "Segmentation fault" message there. '((' could
15783 # trigger a bug in pdksh 5.2.14.
15784 for as_var in BASH_ENV ENV MAIL MAILPATH
15785 do eval test x\${$as_var+set} = xset \
15786 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15787 done
15788 PS1='$ '
15789 PS2='> '
15790 PS4='+ '
15792 # NLS nuisances.
15793 LC_ALL=C
15794 export LC_ALL
15795 LANGUAGE=C
15796 export LANGUAGE
15798 # CDPATH.
15799 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15802 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15803 # ----------------------------------------
15804 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15805 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15806 # script with STATUS, using 1 if that was 0.
15807 as_fn_error ()
15809 as_status=$1; test $as_status -eq 0 && as_status=1
15810 if test "$4"; then
15811 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15812 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15814 $as_echo "$as_me: error: $2" >&2
15815 as_fn_exit $as_status
15816 } # as_fn_error
15819 # as_fn_set_status STATUS
15820 # -----------------------
15821 # Set $? to STATUS, without forking.
15822 as_fn_set_status ()
15824 return $1
15825 } # as_fn_set_status
15827 # as_fn_exit STATUS
15828 # -----------------
15829 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15830 as_fn_exit ()
15832 set +e
15833 as_fn_set_status $1
15834 exit $1
15835 } # as_fn_exit
15837 # as_fn_unset VAR
15838 # ---------------
15839 # Portably unset VAR.
15840 as_fn_unset ()
15842 { eval $1=; unset $1;}
15844 as_unset=as_fn_unset
15845 # as_fn_append VAR VALUE
15846 # ----------------------
15847 # Append the text in VALUE to the end of the definition contained in VAR. Take
15848 # advantage of any shell optimizations that allow amortized linear growth over
15849 # repeated appends, instead of the typical quadratic growth present in naive
15850 # implementations.
15851 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15852 eval 'as_fn_append ()
15854 eval $1+=\$2
15856 else
15857 as_fn_append ()
15859 eval $1=\$$1\$2
15861 fi # as_fn_append
15863 # as_fn_arith ARG...
15864 # ------------------
15865 # Perform arithmetic evaluation on the ARGs, and store the result in the
15866 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15867 # must be portable across $(()) and expr.
15868 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15869 eval 'as_fn_arith ()
15871 as_val=$(( $* ))
15873 else
15874 as_fn_arith ()
15876 as_val=`expr "$@" || test $? -eq 1`
15878 fi # as_fn_arith
15881 if expr a : '\(a\)' >/dev/null 2>&1 &&
15882 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15883 as_expr=expr
15884 else
15885 as_expr=false
15888 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15889 as_basename=basename
15890 else
15891 as_basename=false
15894 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15895 as_dirname=dirname
15896 else
15897 as_dirname=false
15900 as_me=`$as_basename -- "$0" ||
15901 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15902 X"$0" : 'X\(//\)$' \| \
15903 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15904 $as_echo X/"$0" |
15905 sed '/^.*\/\([^/][^/]*\)\/*$/{
15906 s//\1/
15909 /^X\/\(\/\/\)$/{
15910 s//\1/
15913 /^X\/\(\/\).*/{
15914 s//\1/
15917 s/.*/./; q'`
15919 # Avoid depending upon Character Ranges.
15920 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15921 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15922 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15923 as_cr_digits='0123456789'
15924 as_cr_alnum=$as_cr_Letters$as_cr_digits
15926 ECHO_C= ECHO_N= ECHO_T=
15927 case `echo -n x` in #(((((
15928 -n*)
15929 case `echo 'xy\c'` in
15930 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15931 xy) ECHO_C='\c';;
15932 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15933 ECHO_T=' ';;
15934 esac;;
15936 ECHO_N='-n';;
15937 esac
15939 rm -f conf$$ conf$$.exe conf$$.file
15940 if test -d conf$$.dir; then
15941 rm -f conf$$.dir/conf$$.file
15942 else
15943 rm -f conf$$.dir
15944 mkdir conf$$.dir 2>/dev/null
15946 if (echo >conf$$.file) 2>/dev/null; then
15947 if ln -s conf$$.file conf$$ 2>/dev/null; then
15948 as_ln_s='ln -s'
15949 # ... but there are two gotchas:
15950 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15951 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15952 # In both cases, we have to default to `cp -p'.
15953 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15954 as_ln_s='cp -p'
15955 elif ln conf$$.file conf$$ 2>/dev/null; then
15956 as_ln_s=ln
15957 else
15958 as_ln_s='cp -p'
15960 else
15961 as_ln_s='cp -p'
15963 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15964 rmdir conf$$.dir 2>/dev/null
15967 # as_fn_mkdir_p
15968 # -------------
15969 # Create "$as_dir" as a directory, including parents if necessary.
15970 as_fn_mkdir_p ()
15973 case $as_dir in #(
15974 -*) as_dir=./$as_dir;;
15975 esac
15976 test -d "$as_dir" || eval $as_mkdir_p || {
15977 as_dirs=
15978 while :; do
15979 case $as_dir in #(
15980 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15981 *) as_qdir=$as_dir;;
15982 esac
15983 as_dirs="'$as_qdir' $as_dirs"
15984 as_dir=`$as_dirname -- "$as_dir" ||
15985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15986 X"$as_dir" : 'X\(//\)[^/]' \| \
15987 X"$as_dir" : 'X\(//\)$' \| \
15988 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15989 $as_echo X"$as_dir" |
15990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15991 s//\1/
15994 /^X\(\/\/\)[^/].*/{
15995 s//\1/
15998 /^X\(\/\/\)$/{
15999 s//\1/
16002 /^X\(\/\).*/{
16003 s//\1/
16006 s/.*/./; q'`
16007 test -d "$as_dir" && break
16008 done
16009 test -z "$as_dirs" || eval "mkdir $as_dirs"
16010 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16013 } # as_fn_mkdir_p
16014 if mkdir -p . 2>/dev/null; then
16015 as_mkdir_p='mkdir -p "$as_dir"'
16016 else
16017 test -d ./-p && rmdir ./-p
16018 as_mkdir_p=false
16021 if test -x / >/dev/null 2>&1; then
16022 as_test_x='test -x'
16023 else
16024 if ls -dL / >/dev/null 2>&1; then
16025 as_ls_L_option=L
16026 else
16027 as_ls_L_option=
16029 as_test_x='
16030 eval sh -c '\''
16031 if test -d "$1"; then
16032 test -d "$1/.";
16033 else
16034 case $1 in #(
16035 -*)set "./$1";;
16036 esac;
16037 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16038 ???[sx]*):;;*)false;;esac;fi
16039 '\'' sh
16042 as_executable_p=$as_test_x
16044 # Sed expression to map a string onto a valid CPP name.
16045 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16047 # Sed expression to map a string onto a valid variable name.
16048 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16051 exec 6>&1
16052 ## ----------------------------------- ##
16053 ## Main body of $CONFIG_STATUS script. ##
16054 ## ----------------------------------- ##
16055 _ASEOF
16056 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16059 # Save the log message, to keep $0 and so on meaningful, and to
16060 # report actual input values of CONFIG_FILES etc. instead of their
16061 # values after options handling.
16062 ac_log="
16063 This file was extended by Wine $as_me 1.3.13, which was
16064 generated by GNU Autoconf 2.67. Invocation command line was
16066 CONFIG_FILES = $CONFIG_FILES
16067 CONFIG_HEADERS = $CONFIG_HEADERS
16068 CONFIG_LINKS = $CONFIG_LINKS
16069 CONFIG_COMMANDS = $CONFIG_COMMANDS
16070 $ $0 $@
16072 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16075 _ACEOF
16077 case $ac_config_files in *"
16078 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16079 esac
16081 case $ac_config_headers in *"
16082 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16083 esac
16086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16087 # Files that config.status was made for.
16088 config_files="$ac_config_files"
16089 config_headers="$ac_config_headers"
16090 config_links="$ac_config_links"
16091 config_commands="$ac_config_commands"
16093 _ACEOF
16095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16096 ac_cs_usage="\
16097 \`$as_me' instantiates files and other configuration actions
16098 from templates according to the current configuration. Unless the files
16099 and actions are specified as TAGs, all are instantiated by default.
16101 Usage: $0 [OPTION]... [TAG]...
16103 -h, --help print this help, then exit
16104 -V, --version print version number and configuration settings, then exit
16105 --config print configuration, then exit
16106 -q, --quiet, --silent
16107 do not print progress messages
16108 -d, --debug don't remove temporary files
16109 --recheck update $as_me by reconfiguring in the same conditions
16110 --file=FILE[:TEMPLATE]
16111 instantiate the configuration file FILE
16112 --header=FILE[:TEMPLATE]
16113 instantiate the configuration header FILE
16115 Configuration files:
16116 $config_files
16118 Configuration headers:
16119 $config_headers
16121 Configuration links:
16122 $config_links
16124 Configuration commands:
16125 $config_commands
16127 Report bugs to <wine-devel@winehq.org>.
16128 Wine home page: <http://www.winehq.org>."
16130 _ACEOF
16131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16132 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16133 ac_cs_version="\\
16134 Wine config.status 1.3.13
16135 configured by $0, generated by GNU Autoconf 2.67,
16136 with options \\"\$ac_cs_config\\"
16138 Copyright (C) 2010 Free Software Foundation, Inc.
16139 This config.status script is free software; the Free Software Foundation
16140 gives unlimited permission to copy, distribute and modify it."
16142 ac_pwd='$ac_pwd'
16143 srcdir='$srcdir'
16144 INSTALL='$INSTALL'
16145 test -n "\$AWK" || AWK=awk
16146 _ACEOF
16148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16149 # The default lists apply if the user does not specify any file.
16150 ac_need_defaults=:
16151 while test $# != 0
16153 case $1 in
16154 --*=?*)
16155 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16156 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16157 ac_shift=:
16159 --*=)
16160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16161 ac_optarg=
16162 ac_shift=:
16165 ac_option=$1
16166 ac_optarg=$2
16167 ac_shift=shift
16169 esac
16171 case $ac_option in
16172 # Handling of the options.
16173 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16174 ac_cs_recheck=: ;;
16175 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16176 $as_echo "$ac_cs_version"; exit ;;
16177 --config | --confi | --conf | --con | --co | --c )
16178 $as_echo "$ac_cs_config"; exit ;;
16179 --debug | --debu | --deb | --de | --d | -d )
16180 debug=: ;;
16181 --file | --fil | --fi | --f )
16182 $ac_shift
16183 case $ac_optarg in
16184 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16185 '') as_fn_error $? "missing file argument" ;;
16186 esac
16187 as_fn_append CONFIG_FILES " '$ac_optarg'"
16188 ac_need_defaults=false;;
16189 --header | --heade | --head | --hea )
16190 $ac_shift
16191 case $ac_optarg in
16192 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16193 esac
16194 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16195 ac_need_defaults=false;;
16196 --he | --h)
16197 # Conflict between --help and --header
16198 as_fn_error $? "ambiguous option: \`$1'
16199 Try \`$0 --help' for more information.";;
16200 --help | --hel | -h )
16201 $as_echo "$ac_cs_usage"; exit ;;
16202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16203 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16204 ac_cs_silent=: ;;
16206 # This is an error.
16207 -*) as_fn_error $? "unrecognized option: \`$1'
16208 Try \`$0 --help' for more information." ;;
16210 *) as_fn_append ac_config_targets " $1"
16211 ac_need_defaults=false ;;
16213 esac
16214 shift
16215 done
16217 ac_configure_extra_args=
16219 if $ac_cs_silent; then
16220 exec 6>/dev/null
16221 ac_configure_extra_args="$ac_configure_extra_args --silent"
16224 _ACEOF
16225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16226 if \$ac_cs_recheck; then
16227 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16228 shift
16229 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16230 CONFIG_SHELL='$SHELL'
16231 export CONFIG_SHELL
16232 exec "\$@"
16235 _ACEOF
16236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16237 exec 5>>config.log
16239 echo
16240 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16241 ## Running $as_me. ##
16242 _ASBOX
16243 $as_echo "$ac_log"
16244 } >&5
16246 _ACEOF
16247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16249 # INIT-COMMANDS
16251 wine_fn_output_makefile ()
16253 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16254 $ALL_MAKEFILE_DEPENDS
16255 _WINE_EOF
16256 as_fn_error $? "could not create Makefile" "$LINENO" 5
16259 _ACEOF
16261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16263 # Handling of arguments.
16264 for ac_config_target in $ac_config_targets
16266 case $ac_config_target in
16267 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16268 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16269 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16270 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16271 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16272 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16273 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16274 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16275 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16276 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16277 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16278 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16279 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16280 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16281 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16282 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16283 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16284 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16285 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16286 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16287 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16288 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16289 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16291 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16292 esac
16293 done
16296 # If the user did not use the arguments to specify the items to instantiate,
16297 # then the envvar interface is used. Set only those that are not.
16298 # We use the long form for the default assignment because of an extremely
16299 # bizarre bug on SunOS 4.1.3.
16300 if $ac_need_defaults; then
16301 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16302 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16303 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16307 # Have a temporary directory for convenience. Make it in the build tree
16308 # simply because there is no reason against having it here, and in addition,
16309 # creating and moving files from /tmp can sometimes cause problems.
16310 # Hook for its removal unless debugging.
16311 # Note that there is a small window in which the directory will not be cleaned:
16312 # after its creation but before its name has been assigned to `$tmp'.
16313 $debug ||
16315 tmp=
16316 trap 'exit_status=$?
16317 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16319 trap 'as_fn_exit 1' 1 2 13 15
16321 # Create a (secure) tmp directory for tmp files.
16324 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16325 test -n "$tmp" && test -d "$tmp"
16326 } ||
16328 tmp=./conf$$-$RANDOM
16329 (umask 077 && mkdir "$tmp")
16330 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16332 # Set up the scripts for CONFIG_FILES section.
16333 # No need to generate them if there are no CONFIG_FILES.
16334 # This happens for instance with `./config.status config.h'.
16335 if test -n "$CONFIG_FILES"; then
16337 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16338 ac_cs_awk_getline=:
16339 ac_cs_awk_pipe_init=
16340 ac_cs_awk_read_file='
16341 while ((getline aline < (F[key])) > 0)
16342 print(aline)
16343 close(F[key])'
16344 ac_cs_awk_pipe_fini=
16345 else
16346 ac_cs_awk_getline=false
16347 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16348 ac_cs_awk_read_file='
16349 print "|#_!!_#|"
16350 print "cat " F[key] " &&"
16351 '$ac_cs_awk_pipe_init
16352 # The final `:' finishes the AND list.
16353 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16355 ac_cr=`echo X | tr X '\015'`
16356 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16357 # But we know of no other shell where ac_cr would be empty at this
16358 # point, so we can use a bashism as a fallback.
16359 if test "x$ac_cr" = x; then
16360 eval ac_cr=\$\'\\r\'
16362 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16363 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16364 ac_cs_awk_cr='\\r'
16365 else
16366 ac_cs_awk_cr=$ac_cr
16369 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16370 _ACEOF
16372 # Create commands to substitute file output variables.
16374 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16375 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16376 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16377 echo "_ACAWK" &&
16378 echo "_ACEOF"
16379 } >conf$$files.sh &&
16380 . ./conf$$files.sh ||
16381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16382 rm -f conf$$files.sh
16385 echo "cat >conf$$subs.awk <<_ACEOF" &&
16386 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16387 echo "_ACEOF"
16388 } >conf$$subs.sh ||
16389 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16390 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16391 ac_delim='%!_!# '
16392 for ac_last_try in false false false false false :; do
16393 . ./conf$$subs.sh ||
16394 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16397 if test $ac_delim_n = $ac_delim_num; then
16398 break
16399 elif $ac_last_try; then
16400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16401 else
16402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16404 done
16405 rm -f conf$$subs.sh
16407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16408 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16409 _ACEOF
16410 sed -n '
16412 s/^/S["/; s/!.*/"]=/
16415 s/^[^!]*!//
16416 :repl
16417 t repl
16418 s/'"$ac_delim"'$//
16419 t delim
16422 s/\(.\{148\}\)..*/\1/
16423 t more1
16424 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16427 b repl
16428 :more1
16429 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16432 s/.\{148\}//
16433 t nl
16434 :delim
16436 s/\(.\{148\}\)..*/\1/
16437 t more2
16438 s/["\\]/\\&/g; s/^/"/; s/$/"/
16441 :more2
16442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16445 s/.\{148\}//
16446 t delim
16447 ' <conf$$subs.awk | sed '
16448 /^[^""]/{
16450 s/\n//
16452 ' >>$CONFIG_STATUS || ac_write_fail=1
16453 rm -f conf$$subs.awk
16454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16455 _ACAWK
16456 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16457 for (key in S) S_is_set[key] = 1
16458 FS = "\a"
16459 \$ac_cs_awk_pipe_init
16462 line = $ 0
16463 nfields = split(line, field, "@")
16464 substed = 0
16465 len = length(field[1])
16466 for (i = 2; i < nfields; i++) {
16467 key = field[i]
16468 keylen = length(key)
16469 if (S_is_set[key]) {
16470 value = S[key]
16471 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16472 len += length(value) + length(field[++i])
16473 substed = 1
16474 } else
16475 len += 1 + keylen
16477 if (nfields == 3 && !substed) {
16478 key = field[2]
16479 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16480 \$ac_cs_awk_read_file
16481 next
16484 print line
16486 \$ac_cs_awk_pipe_fini
16487 _ACAWK
16488 _ACEOF
16489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16490 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16491 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16492 else
16494 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16495 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16496 _ACEOF
16498 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16499 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16500 # trailing colons and then remove the whole line if VPATH becomes empty
16501 # (actually we leave an empty line to preserve line numbers).
16502 if test "x$srcdir" = x.; then
16503 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16505 s///
16506 s/^/:/
16507 s/[ ]*$/:/
16508 s/:\$(srcdir):/:/g
16509 s/:\${srcdir}:/:/g
16510 s/:@srcdir@:/:/g
16511 s/^:*//
16512 s/:*$//
16514 s/\(=[ ]*\).*/\1/
16516 s/\n//
16517 s/^[^=]*=[ ]*$//
16521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16522 fi # test -n "$CONFIG_FILES"
16524 # Set up the scripts for CONFIG_HEADERS section.
16525 # No need to generate them if there are no CONFIG_HEADERS.
16526 # This happens for instance with `./config.status Makefile'.
16527 if test -n "$CONFIG_HEADERS"; then
16528 cat >"$tmp/defines.awk" <<\_ACAWK ||
16529 BEGIN {
16530 _ACEOF
16532 # Transform confdefs.h into an awk script `defines.awk', embedded as
16533 # here-document in config.status, that substitutes the proper values into
16534 # config.h.in to produce config.h.
16536 # Create a delimiter string that does not exist in confdefs.h, to ease
16537 # handling of long lines.
16538 ac_delim='%!_!# '
16539 for ac_last_try in false false :; do
16540 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16541 if test -z "$ac_t"; then
16542 break
16543 elif $ac_last_try; then
16544 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16545 else
16546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16548 done
16550 # For the awk script, D is an array of macro values keyed by name,
16551 # likewise P contains macro parameters if any. Preserve backslash
16552 # newline sequences.
16554 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16555 sed -n '
16556 s/.\{148\}/&'"$ac_delim"'/g
16557 t rset
16558 :rset
16559 s/^[ ]*#[ ]*define[ ][ ]*/ /
16560 t def
16562 :def
16563 s/\\$//
16564 t bsnl
16565 s/["\\]/\\&/g
16566 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16567 D["\1"]=" \3"/p
16568 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16570 :bsnl
16571 s/["\\]/\\&/g
16572 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16573 D["\1"]=" \3\\\\\\n"\\/p
16574 t cont
16575 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16576 t cont
16578 :cont
16580 s/.\{148\}/&'"$ac_delim"'/g
16581 t clear
16582 :clear
16583 s/\\$//
16584 t bsnlc
16585 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16587 :bsnlc
16588 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16589 b cont
16590 ' <confdefs.h | sed '
16591 s/'"$ac_delim"'/"\\\
16592 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16595 for (key in D) D_is_set[key] = 1
16596 FS = "\a"
16598 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16599 line = \$ 0
16600 split(line, arg, " ")
16601 if (arg[1] == "#") {
16602 defundef = arg[2]
16603 mac1 = arg[3]
16604 } else {
16605 defundef = substr(arg[1], 2)
16606 mac1 = arg[2]
16608 split(mac1, mac2, "(") #)
16609 macro = mac2[1]
16610 prefix = substr(line, 1, index(line, defundef) - 1)
16611 if (D_is_set[macro]) {
16612 # Preserve the white space surrounding the "#".
16613 print prefix "define", macro P[macro] D[macro]
16614 next
16615 } else {
16616 # Replace #undef with comments. This is necessary, for example,
16617 # in the case of _POSIX_SOURCE, which is predefined and required
16618 # on some systems where configure will not decide to define it.
16619 if (defundef == "undef") {
16620 print "/*", prefix defundef, macro, "*/"
16621 next
16625 { print }
16626 _ACAWK
16627 _ACEOF
16628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16629 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16630 fi # test -n "$CONFIG_HEADERS"
16633 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16634 shift
16635 for ac_tag
16637 case $ac_tag in
16638 :[FHLC]) ac_mode=$ac_tag; continue;;
16639 esac
16640 case $ac_mode$ac_tag in
16641 :[FHL]*:*);;
16642 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16643 :[FH]-) ac_tag=-:-;;
16644 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16645 esac
16646 ac_save_IFS=$IFS
16647 IFS=:
16648 set x $ac_tag
16649 IFS=$ac_save_IFS
16650 shift
16651 ac_file=$1
16652 shift
16654 case $ac_mode in
16655 :L) ac_source=$1;;
16656 :[FH])
16657 ac_file_inputs=
16658 for ac_f
16660 case $ac_f in
16661 -) ac_f="$tmp/stdin";;
16662 *) # Look for the file first in the build tree, then in the source tree
16663 # (if the path is not absolute). The absolute path cannot be DOS-style,
16664 # because $ac_f cannot contain `:'.
16665 test -f "$ac_f" ||
16666 case $ac_f in
16667 [\\/$]*) false;;
16668 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16669 esac ||
16670 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16671 esac
16672 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16673 as_fn_append ac_file_inputs " '$ac_f'"
16674 done
16676 # Let's still pretend it is `configure' which instantiates (i.e., don't
16677 # use $as_me), people would be surprised to read:
16678 # /* config.h. Generated by config.status. */
16679 configure_input='Generated from '`
16680 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16681 `' by configure.'
16682 if test x"$ac_file" != x-; then
16683 configure_input="$ac_file. $configure_input"
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16685 $as_echo "$as_me: creating $ac_file" >&6;}
16687 # Neutralize special characters interpreted by sed in replacement strings.
16688 case $configure_input in #(
16689 *\&* | *\|* | *\\* )
16690 ac_sed_conf_input=`$as_echo "$configure_input" |
16691 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16692 *) ac_sed_conf_input=$configure_input;;
16693 esac
16695 case $ac_tag in
16696 *:-:* | *:-) cat >"$tmp/stdin" \
16697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16698 esac
16700 esac
16702 ac_dir=`$as_dirname -- "$ac_file" ||
16703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16704 X"$ac_file" : 'X\(//\)[^/]' \| \
16705 X"$ac_file" : 'X\(//\)$' \| \
16706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16707 $as_echo X"$ac_file" |
16708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16709 s//\1/
16712 /^X\(\/\/\)[^/].*/{
16713 s//\1/
16716 /^X\(\/\/\)$/{
16717 s//\1/
16720 /^X\(\/\).*/{
16721 s//\1/
16724 s/.*/./; q'`
16725 as_dir="$ac_dir"; as_fn_mkdir_p
16726 ac_builddir=.
16728 case "$ac_dir" in
16729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16731 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16732 # A ".." for each directory in $ac_dir_suffix.
16733 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16734 case $ac_top_builddir_sub in
16735 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16736 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16737 esac ;;
16738 esac
16739 ac_abs_top_builddir=$ac_pwd
16740 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16741 # for backward compatibility:
16742 ac_top_builddir=$ac_top_build_prefix
16744 case $srcdir in
16745 .) # We are building in place.
16746 ac_srcdir=.
16747 ac_top_srcdir=$ac_top_builddir_sub
16748 ac_abs_top_srcdir=$ac_pwd ;;
16749 [\\/]* | ?:[\\/]* ) # Absolute name.
16750 ac_srcdir=$srcdir$ac_dir_suffix;
16751 ac_top_srcdir=$srcdir
16752 ac_abs_top_srcdir=$srcdir ;;
16753 *) # Relative name.
16754 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16755 ac_top_srcdir=$ac_top_build_prefix$srcdir
16756 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16757 esac
16758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16761 case $ac_mode in
16764 # CONFIG_FILE
16767 case $INSTALL in
16768 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16769 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16770 esac
16771 _ACEOF
16773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16774 # If the template does not know about datarootdir, expand it.
16775 # FIXME: This hack should be removed a few years after 2.60.
16776 ac_datarootdir_hack=; ac_datarootdir_seen=
16777 ac_sed_dataroot='
16778 /datarootdir/ {
16782 /@datadir@/p
16783 /@docdir@/p
16784 /@infodir@/p
16785 /@localedir@/p
16786 /@mandir@/p'
16787 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16788 *datarootdir*) ac_datarootdir_seen=yes;;
16789 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16791 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16792 _ACEOF
16793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16794 ac_datarootdir_hack='
16795 s&@datadir@&$datadir&g
16796 s&@docdir@&$docdir&g
16797 s&@infodir@&$infodir&g
16798 s&@localedir@&$localedir&g
16799 s&@mandir@&$mandir&g
16800 s&\\\${datarootdir}&$datarootdir&g' ;;
16801 esac
16802 _ACEOF
16804 # Neutralize VPATH when `$srcdir' = `.'.
16805 # Shell code in configure.ac might set extrasub.
16806 # FIXME: do we really want to maintain this feature?
16807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16808 ac_sed_extra="$ac_vpsub
16809 $extrasub
16810 _ACEOF
16811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16814 s|@configure_input@|$ac_sed_conf_input|;t t
16815 s&@top_builddir@&$ac_top_builddir_sub&;t t
16816 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16817 s&@srcdir@&$ac_srcdir&;t t
16818 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16819 s&@top_srcdir@&$ac_top_srcdir&;t t
16820 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16821 s&@builddir@&$ac_builddir&;t t
16822 s&@abs_builddir@&$ac_abs_builddir&;t t
16823 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16824 s&@INSTALL@&$ac_INSTALL&;t t
16825 $ac_datarootdir_hack
16827 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16828 if $ac_cs_awk_getline; then
16829 $AWK -f "$tmp/subs.awk"
16830 else
16831 $AWK -f "$tmp/subs.awk" | $SHELL
16832 fi >$tmp/out \
16833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16835 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16836 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16837 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16839 which seems to be undefined. Please make sure it is defined" >&5
16840 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16841 which seems to be undefined. Please make sure it is defined" >&2;}
16843 rm -f "$tmp/stdin"
16844 case $ac_file in
16845 -) cat "$tmp/out" && rm -f "$tmp/out";;
16846 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16847 esac \
16848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16852 # CONFIG_HEADER
16854 if test x"$ac_file" != x-; then
16856 $as_echo "/* $configure_input */" \
16857 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16858 } >"$tmp/config.h" \
16859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16860 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16862 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16863 else
16864 rm -f "$ac_file"
16865 mv "$tmp/config.h" "$ac_file" \
16866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16868 else
16869 $as_echo "/* $configure_input */" \
16870 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16871 || as_fn_error $? "could not create -" "$LINENO" 5
16876 # CONFIG_LINK
16879 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16881 else
16882 # Prefer the file from the source tree if names are identical.
16883 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16884 ac_source=$srcdir/$ac_source
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16888 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16890 if test ! -r "$ac_source"; then
16891 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16893 rm -f "$ac_file"
16895 # Try a relative symlink, then a hard link, then a copy.
16896 case $ac_source in
16897 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16898 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16899 esac
16900 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16901 ln "$ac_source" "$ac_file" 2>/dev/null ||
16902 cp -p "$ac_source" "$ac_file" ||
16903 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16906 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16907 $as_echo "$as_me: executing $ac_file commands" >&6;}
16909 esac
16912 case $ac_file$ac_mode in
16913 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16914 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16915 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16916 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16917 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16918 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16919 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16920 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16921 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16922 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16923 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16924 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16925 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16926 "Makefile":C) wine_fn_output_makefile Makefile ;;
16928 esac
16929 done # for ac_tag
16932 as_fn_exit 0
16933 _ACEOF
16934 ac_clean_files=$ac_clean_files_save
16936 test $ac_write_fail = 0 ||
16937 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16940 # configure is writing to config.log, and then calls config.status.
16941 # config.status does its own redirection, appending to config.log.
16942 # Unfortunately, on DOS this fails, as config.log is still kept open
16943 # by configure, so config.status won't be able to write to it; its
16944 # output is simply discarded. So we exec the FD to /dev/null,
16945 # effectively closing config.log, so it can be properly (re)opened and
16946 # appended to by config.status. When coming back to configure, we
16947 # need to make the FD available again.
16948 if test "$no_create" != yes; then
16949 ac_cs_success=:
16950 ac_config_status_args=
16951 test "$silent" = yes &&
16952 ac_config_status_args="$ac_config_status_args --quiet"
16953 exec 5>/dev/null
16954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16955 exec 5>>config.log
16956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16957 # would make configure fail if this is the last instruction.
16958 $ac_cs_success || as_fn_exit 1
16960 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16962 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16966 if test "$no_create" = "yes"
16967 then
16968 exit 0
16971 ac_save_IFS="$IFS"
16972 if test "x$wine_notices != "x; then
16973 echo >&6
16974 IFS="|"
16975 for msg in $wine_notices; do
16976 IFS="$ac_save_IFS"
16977 if test -n "$msg"; then
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16979 $as_echo "$as_me: $msg" >&6;}
16981 done
16983 IFS="|"
16984 for msg in $wine_warnings; do
16985 IFS="$ac_save_IFS"
16986 if test -n "$msg"; then
16987 echo >&2
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16989 $as_echo "$as_me: WARNING: $msg" >&2;}
16991 done
16992 IFS="$ac_save_IFS"
16994 echo "
16995 $as_me: Finished. Do '${ac_make}' to compile Wine.
16996 " >&6