winhlp32: Simplify code that happened to work by chance (PVS-Studio).
[wine.git] / configure
blob726a247d33ed161484bebaf1eff8567878f7e792
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.37.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.7.37'
584 PACKAGE_STRING='Wine 1.7.37'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 LINGUAS
628 ALL_VARS_RULES
629 LDAP_LIBS
630 RT_LIBS
631 POLL_LIBS
632 DL_LIBS
633 TOOLSEXT
634 UNWINDFLAGS
635 BUILTINFLAG
636 EXTRACFLAGS
637 PROCSTAT_LIBS
638 KSTAT_LIBS
639 MPG123_LIBS
640 MPG123_CFLAGS
641 TIFF_LIBS
642 TIFF_CFLAGS
643 PNG_LIBS
644 PNG_CFLAGS
645 JPEG_LIBS
646 JPEG_CFLAGS
647 FONTCONFIG_LIBS
648 FONTCONFIG_CFLAGS
649 CUPS_CFLAGS
650 CAPI20_LIBS
651 CAPI20_CFLAGS
652 OSS4_CFLAGS
653 ALSA_LIBS
654 GSTREAMER_LIBS
655 GSTREAMER_CFLAGS
656 GETTEXTPO_LIBS
657 Z_LIBS
658 FREETYPE_LIBS
659 FREETYPE_CFLAGS
660 LCMS2_LIBS
661 LCMS2_CFLAGS
662 RESOLV_LIBS
663 GPHOTO2_PORT_LIBS
664 GPHOTO2_PORT_CFLAGS
665 GPHOTO2_LIBS
666 GPHOTO2_CFLAGS
667 SANE_LIBS
668 SANE_CFLAGS
669 GNUTLS_LIBS
670 GNUTLS_CFLAGS
671 HAL_LIBS
672 HAL_CFLAGS
673 DBUS_LIBS
674 DBUS_CFLAGS
675 XSLT_LIBS
676 XSLT_CFLAGS
677 XML2_LIBS
678 XML2_CFLAGS
679 LIBPCAP
680 X_EXTRA_LIBS
681 X_LIBS
682 X_PRE_LIBS
683 X_CFLAGS
684 XMKMF
685 PTHREAD_LIBS
686 CROSSCC
687 CROSSTARGET
688 PRELINK
689 CARBON_LIBS
690 QUICKTIME_LIBS
691 OPENCL_LIBS
692 OPENAL_LIBS
693 COREAUDIO_LIBS
694 SECURITY_LIBS
695 DISKARBITRATION_LIBS
696 APPKIT_LIBS
697 CORESERVICES_LIBS
698 APPLICATIONSERVICES_LIBS
699 FORCEFEEDBACK_LIBS
700 IOKIT_LIBS
701 COREFOUNDATION_LIBS
702 LIBWINE_RULES
703 SOCKET_LIBS
704 DLLTOOL
705 LOADER_RULES
706 ALL_TEST_RESOURCES
707 READELF
709 LDRPATH_LOCAL
710 LDRPATH_INSTALL
711 DLLFLAGS
712 DLLPREFIX
713 dlldir
715 OPENGL_LIBS
716 ICOTOOL
717 CONVERT
718 RSVG
719 FONTFORGE
720 PKG_CONFIG
721 MSGFMT
722 LDCONFIG
723 EGREP
724 GREP
725 LN_S
726 RANLIB
727 ARFLAGS
728 STRIP
729 ac_ct_AR
731 BISON
732 FLEX
733 TOOLSDIR
734 TARGETFLAGS
736 CPPBIN
737 ac_ct_CXX
738 CXXFLAGS
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
747 SET_MAKE
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_win16
798 enable_win64
799 enable_tests
800 enable_maintainer_mode
801 with_alsa
802 with_capi
803 with_cms
804 with_coreaudio
805 with_cups
806 with_curses
807 with_dbus
808 with_fontconfig
809 with_freetype
810 with_gettext
811 with_gettextpo
812 with_gphoto
813 with_glu
814 with_gnutls
815 with_gsm
816 with_gstreamer
817 with_hal
818 with_jpeg
819 with_ldap
820 with_mpg123
821 with_netapi
822 with_openal
823 with_opencl
824 with_opengl
825 with_osmesa
826 with_oss
827 with_pcap
828 with_png
829 with_pthread
830 with_sane
831 with_tiff
832 with_v4l
833 with_xcomposite
834 with_xcursor
835 with_xinerama
836 with_xinput
837 with_xinput2
838 with_xml
839 with_xrandr
840 with_xrender
841 with_xshape
842 with_xshm
843 with_xslt
844 with_xxf86vm
845 with_zlib
846 with_wine_tools
847 with_wine64
848 enable_largefile
849 with_x
850 enable_acledit
851 enable_aclui
852 enable_activeds
853 enable_actxprxy
854 enable_advapi32
855 enable_advpack
856 enable_amstream
857 enable_api_ms_win_core_com_l1_1_0
858 enable_api_ms_win_core_console_l1_1_0
859 enable_api_ms_win_core_datetime_l1_1_0
860 enable_api_ms_win_core_datetime_l1_1_1
861 enable_api_ms_win_core_debug_l1_1_1
862 enable_api_ms_win_core_errorhandling_l1_1_1
863 enable_api_ms_win_core_errorhandling_l1_1_2
864 enable_api_ms_win_core_fibers_l1_1_0
865 enable_api_ms_win_core_fibers_l1_1_1
866 enable_api_ms_win_core_file_l1_2_0
867 enable_api_ms_win_core_file_l2_1_0
868 enable_api_ms_win_core_file_l2_1_1
869 enable_api_ms_win_core_handle_l1_1_0
870 enable_api_ms_win_core_heap_l1_2_0
871 enable_api_ms_win_core_heap_obsolete_l1_1_0
872 enable_api_ms_win_core_interlocked_l1_2_0
873 enable_api_ms_win_core_io_l1_1_1
874 enable_api_ms_win_core_kernel32_legacy_l1_1_0
875 enable_api_ms_win_core_libraryloader_l1_1_1
876 enable_api_ms_win_core_localization_l1_2_0
877 enable_api_ms_win_core_localization_l1_2_1
878 enable_api_ms_win_core_localization_obsolete_l1_1_0
879 enable_api_ms_win_core_localregistry_l1_1_0
880 enable_api_ms_win_core_memory_l1_1_1
881 enable_api_ms_win_core_namedpipe_l1_2_0
882 enable_api_ms_win_core_processenvironment_l1_2_0
883 enable_api_ms_win_core_processthreads_l1_1_0
884 enable_api_ms_win_core_processthreads_l1_1_1
885 enable_api_ms_win_core_processthreads_l1_1_2
886 enable_api_ms_win_core_profile_l1_1_0
887 enable_api_ms_win_core_psapi_l1_1_0
888 enable_api_ms_win_core_registry_l1_1_0
889 enable_api_ms_win_core_rtlsupport_l1_2_0
890 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
891 enable_api_ms_win_core_string_l1_1_0
892 enable_api_ms_win_core_synch_l1_2_0
893 enable_api_ms_win_core_sysinfo_l1_2_0
894 enable_api_ms_win_core_sysinfo_l1_2_1
895 enable_api_ms_win_core_threadpool_legacy_l1_1_0
896 enable_api_ms_win_core_timezone_l1_1_0
897 enable_api_ms_win_core_url_l1_1_0
898 enable_api_ms_win_core_util_l1_1_0
899 enable_api_ms_win_core_winrt_error_l1_1_0
900 enable_api_ms_win_core_winrt_error_l1_1_1
901 enable_api_ms_win_core_winrt_l1_1_0
902 enable_api_ms_win_core_winrt_string_l1_1_0
903 enable_api_ms_win_core_xstate_l2_1_0
904 enable_api_ms_win_downlevel_advapi32_l1_1_0
905 enable_api_ms_win_downlevel_advapi32_l2_1_0
906 enable_api_ms_win_downlevel_normaliz_l1_1_0
907 enable_api_ms_win_downlevel_ole32_l1_1_0
908 enable_api_ms_win_downlevel_shell32_l1_1_0
909 enable_api_ms_win_downlevel_shlwapi_l1_1_0
910 enable_api_ms_win_downlevel_shlwapi_l2_1_0
911 enable_api_ms_win_downlevel_user32_l1_1_0
912 enable_api_ms_win_downlevel_version_l1_1_0
913 enable_api_ms_win_eventing_provider_l1_1_0
914 enable_api_ms_win_ntuser_dc_access_l1_1_0
915 enable_api_ms_win_security_base_l1_1_0
916 enable_api_ms_win_security_base_l1_2_0
917 enable_api_ms_win_security_sddl_l1_1_0
918 enable_api_ms_win_service_core_l1_1_1
919 enable_api_ms_win_service_management_l1_1_0
920 enable_api_ms_win_service_winsvc_l1_2_0
921 enable_apphelp
922 enable_appwiz_cpl
923 enable_atl
924 enable_atl100
925 enable_atl110
926 enable_atl80
927 enable_atl90
928 enable_authz
929 enable_avicap32
930 enable_avifil32
931 enable_avrt
932 enable_bcrypt
933 enable_browseui
934 enable_cabinet
935 enable_capi2032
936 enable_cards
937 enable_cfgmgr32
938 enable_clusapi
939 enable_combase
940 enable_comcat
941 enable_comctl32
942 enable_comdlg32
943 enable_compstui
944 enable_comsvcs
945 enable_connect
946 enable_credui
947 enable_crtdll
948 enable_crypt32
949 enable_cryptdlg
950 enable_cryptdll
951 enable_cryptext
952 enable_cryptnet
953 enable_cryptui
954 enable_ctapi32
955 enable_ctl3d32
956 enable_d2d1
957 enable_d3d10
958 enable_d3d10_1
959 enable_d3d10core
960 enable_d3d11
961 enable_d3d8
962 enable_d3d9
963 enable_d3dcompiler_33
964 enable_d3dcompiler_34
965 enable_d3dcompiler_35
966 enable_d3dcompiler_36
967 enable_d3dcompiler_37
968 enable_d3dcompiler_38
969 enable_d3dcompiler_39
970 enable_d3dcompiler_40
971 enable_d3dcompiler_41
972 enable_d3dcompiler_42
973 enable_d3dcompiler_43
974 enable_d3dim
975 enable_d3drm
976 enable_d3dx10_33
977 enable_d3dx10_34
978 enable_d3dx10_35
979 enable_d3dx10_36
980 enable_d3dx10_37
981 enable_d3dx10_38
982 enable_d3dx10_39
983 enable_d3dx10_40
984 enable_d3dx10_41
985 enable_d3dx10_42
986 enable_d3dx10_43
987 enable_d3dx11_42
988 enable_d3dx11_43
989 enable_d3dx9_24
990 enable_d3dx9_25
991 enable_d3dx9_26
992 enable_d3dx9_27
993 enable_d3dx9_28
994 enable_d3dx9_29
995 enable_d3dx9_30
996 enable_d3dx9_31
997 enable_d3dx9_32
998 enable_d3dx9_33
999 enable_d3dx9_34
1000 enable_d3dx9_35
1001 enable_d3dx9_36
1002 enable_d3dx9_37
1003 enable_d3dx9_38
1004 enable_d3dx9_39
1005 enable_d3dx9_40
1006 enable_d3dx9_41
1007 enable_d3dx9_42
1008 enable_d3dx9_43
1009 enable_d3dxof
1010 enable_dbgeng
1011 enable_dbghelp
1012 enable_dciman32
1013 enable_ddraw
1014 enable_ddrawex
1015 enable_devenum
1016 enable_dhcpcsvc
1017 enable_difxapi
1018 enable_dinput
1019 enable_dinput8
1020 enable_dispex
1021 enable_dmband
1022 enable_dmcompos
1023 enable_dmime
1024 enable_dmloader
1025 enable_dmscript
1026 enable_dmstyle
1027 enable_dmsynth
1028 enable_dmusic
1029 enable_dmusic32
1030 enable_dnsapi
1031 enable_dplay
1032 enable_dplayx
1033 enable_dpnaddr
1034 enable_dpnet
1035 enable_dpnhpast
1036 enable_dpnlobby
1037 enable_dpvoice
1038 enable_dpwsockx
1039 enable_drmclien
1040 enable_dsound
1041 enable_dssenh
1042 enable_dswave
1043 enable_dwmapi
1044 enable_dwrite
1045 enable_dxdiagn
1046 enable_dxgi
1047 enable_dxva2
1048 enable_evr
1049 enable_explorerframe
1050 enable_ext_ms_win_gdi_devcaps_l1_1_0
1051 enable_faultrep
1052 enable_fltlib
1053 enable_fntcache
1054 enable_fontsub
1055 enable_fusion
1056 enable_fwpuclnt
1057 enable_gameux
1058 enable_gdi32
1059 enable_gdiplus
1060 enable_glu32
1061 enable_gphoto2_ds
1062 enable_gpkcsp
1063 enable_hal
1064 enable_hhctrl_ocx
1065 enable_hid
1066 enable_hlink
1067 enable_hnetcfg
1068 enable_httpapi
1069 enable_iccvid
1070 enable_icmp
1071 enable_ieframe
1072 enable_imaadp32_acm
1073 enable_imagehlp
1074 enable_imm32
1075 enable_inetcomm
1076 enable_inetcpl_cpl
1077 enable_inetmib1
1078 enable_infosoft
1079 enable_initpki
1080 enable_inkobj
1081 enable_inseng
1082 enable_iphlpapi
1083 enable_itircl
1084 enable_itss
1085 enable_joy_cpl
1086 enable_jscript
1087 enable_jsproxy
1088 enable_kernel32
1089 enable_ksuser
1090 enable_ktmw32
1091 enable_loadperf
1092 enable_localspl
1093 enable_localui
1094 enable_lz32
1095 enable_mapi32
1096 enable_mapistub
1097 enable_mciavi32
1098 enable_mcicda
1099 enable_mciqtz32
1100 enable_mciseq
1101 enable_mciwave
1102 enable_mf
1103 enable_mfplat
1104 enable_mfreadwrite
1105 enable_mgmtapi
1106 enable_midimap
1107 enable_mlang
1108 enable_mmcndmgr
1109 enable_mmdevapi
1110 enable_mountmgr_sys
1111 enable_mpr
1112 enable_mprapi
1113 enable_msacm32_drv
1114 enable_msacm32
1115 enable_msadp32_acm
1116 enable_msasn1
1117 enable_mscat32
1118 enable_mscms
1119 enable_mscoree
1120 enable_msctf
1121 enable_msdaps
1122 enable_msdmo
1123 enable_msftedit
1124 enable_msg711_acm
1125 enable_msgsm32_acm
1126 enable_mshtml_tlb
1127 enable_mshtml
1128 enable_msi
1129 enable_msident
1130 enable_msimg32
1131 enable_msimsg
1132 enable_msimtf
1133 enable_msisip
1134 enable_msisys_ocx
1135 enable_msls31
1136 enable_msnet32
1137 enable_mspatcha
1138 enable_msrle32
1139 enable_mssign32
1140 enable_mssip32
1141 enable_mstask
1142 enable_msvcirt
1143 enable_msvcm80
1144 enable_msvcm90
1145 enable_msvcp100
1146 enable_msvcp110
1147 enable_msvcp120
1148 enable_msvcp120_app
1149 enable_msvcp60
1150 enable_msvcp70
1151 enable_msvcp71
1152 enable_msvcp80
1153 enable_msvcp90
1154 enable_msvcr100
1155 enable_msvcr110
1156 enable_msvcr120
1157 enable_msvcr120_app
1158 enable_msvcr70
1159 enable_msvcr71
1160 enable_msvcr80
1161 enable_msvcr90
1162 enable_msvcrt
1163 enable_msvcrt20
1164 enable_msvcrt40
1165 enable_msvcrtd
1166 enable_msvfw32
1167 enable_msvidc32
1168 enable_mswsock
1169 enable_msxml
1170 enable_msxml2
1171 enable_msxml3
1172 enable_msxml4
1173 enable_msxml6
1174 enable_nddeapi
1175 enable_ndis_sys
1176 enable_netapi32
1177 enable_netcfgx
1178 enable_netprofm
1179 enable_newdev
1180 enable_normaliz
1181 enable_npmshtml
1182 enable_npptools
1183 enable_ntdll
1184 enable_ntdsapi
1185 enable_ntoskrnl_exe
1186 enable_ntprint
1187 enable_objsel
1188 enable_odbc32
1189 enable_odbccp32
1190 enable_odbccu32
1191 enable_ole32
1192 enable_oleacc
1193 enable_oleaut32
1194 enable_olecli32
1195 enable_oledb32
1196 enable_oledlg
1197 enable_olepro32
1198 enable_olesvr32
1199 enable_olethk32
1200 enable_openal32
1201 enable_opencl
1202 enable_opengl32
1203 enable_packager
1204 enable_pdh
1205 enable_photometadatahandler
1206 enable_pidgen
1207 enable_powrprof
1208 enable_printui
1209 enable_prntvpt
1210 enable_propsys
1211 enable_psapi
1212 enable_pstorec
1213 enable_qcap
1214 enable_qedit
1215 enable_qmgr
1216 enable_qmgrprxy
1217 enable_quartz
1218 enable_query
1219 enable_rasapi32
1220 enable_rasdlg
1221 enable_regapi
1222 enable_resutils
1223 enable_riched20
1224 enable_riched32
1225 enable_rpcrt4
1226 enable_rsabase
1227 enable_rsaenh
1228 enable_rstrtmgr
1229 enable_rtutils
1230 enable_samlib
1231 enable_sane_ds
1232 enable_scarddlg
1233 enable_sccbase
1234 enable_schannel
1235 enable_schedsvc
1236 enable_scrrun
1237 enable_scsiport_sys
1238 enable_secur32
1239 enable_security
1240 enable_sensapi
1241 enable_serialui
1242 enable_setupapi
1243 enable_sfc
1244 enable_sfc_os
1245 enable_shdoclc
1246 enable_shdocvw
1247 enable_shell32
1248 enable_shfolder
1249 enable_shlwapi
1250 enable_slbcsp
1251 enable_slc
1252 enable_snmpapi
1253 enable_softpub
1254 enable_spoolss
1255 enable_stdole2_tlb
1256 enable_stdole32_tlb
1257 enable_sti
1258 enable_svrapi
1259 enable_sxs
1260 enable_t2embed
1261 enable_tapi32
1262 enable_taskschd
1263 enable_traffic
1264 enable_twain_32
1265 enable_unicows
1266 enable_updspapi
1267 enable_url
1268 enable_urlmon
1269 enable_usbd_sys
1270 enable_user32
1271 enable_userenv
1272 enable_usp10
1273 enable_uxtheme
1274 enable_vbscript
1275 enable_vcomp
1276 enable_vcomp100
1277 enable_vcomp90
1278 enable_vdmdbg
1279 enable_version
1280 enable_vssapi
1281 enable_wbemdisp
1282 enable_wbemprox
1283 enable_webservices
1284 enable_wer
1285 enable_wevtapi
1286 enable_wiaservc
1287 enable_windowscodecs
1288 enable_windowscodecsext
1289 enable_winealsa_drv
1290 enable_winecoreaudio_drv
1291 enable_wined3d
1292 enable_winegstreamer
1293 enable_winejoystick_drv
1294 enable_winemac_drv
1295 enable_winemapi
1296 enable_winemp3_acm
1297 enable_wineoss_drv
1298 enable_wineps_drv
1299 enable_wineqtdecoder
1300 enable_winex11_drv
1301 enable_wing32
1302 enable_winhttp
1303 enable_wininet
1304 enable_winmm
1305 enable_winnls32
1306 enable_winscard
1307 enable_winspool_drv
1308 enable_winsta
1309 enable_wintab32
1310 enable_wintrust
1311 enable_wlanapi
1312 enable_wldap32
1313 enable_wmi
1314 enable_wmiutils
1315 enable_wmp
1316 enable_wmvcore
1317 enable_wnaspi32
1318 enable_wpcap
1319 enable_ws2_32
1320 enable_wshom_ocx
1321 enable_wsnmp32
1322 enable_wsock32
1323 enable_wtsapi32
1324 enable_wuapi
1325 enable_wuaueng
1326 enable_x3daudio1_1
1327 enable_x3daudio1_2
1328 enable_x3daudio1_3
1329 enable_x3daudio1_4
1330 enable_x3daudio1_5
1331 enable_x3daudio1_6
1332 enable_x3daudio1_7
1333 enable_xapofx1_1
1334 enable_xapofx1_3
1335 enable_xapofx1_4
1336 enable_xapofx1_5
1337 enable_xaudio2_7
1338 enable_xinput1_1
1339 enable_xinput1_2
1340 enable_xinput1_3
1341 enable_xinput1_4
1342 enable_xinput9_1_0
1343 enable_xmllite
1344 enable_xolehlp
1345 enable_xpsprint
1346 enable_xpssvcs
1347 enable_documentation
1348 enable_fonts
1349 enable_include
1350 enable_libs_port
1351 enable_libs_wine
1352 enable_libs_wpp
1353 enable_loader
1354 enable_arp
1355 enable_aspnet_regiis
1356 enable_attrib
1357 enable_cabarc
1358 enable_cacls
1359 enable_clock
1360 enable_cmd
1361 enable_conhost
1362 enable_control
1363 enable_cscript
1364 enable_dpnsvr
1365 enable_dxdiag
1366 enable_eject
1367 enable_expand
1368 enable_explorer
1369 enable_extrac32
1370 enable_findstr
1371 enable_hh
1372 enable_hostname
1373 enable_icinfo
1374 enable_iexplore
1375 enable_ipconfig
1376 enable_lodctr
1377 enable_mofcomp
1378 enable_mshta
1379 enable_msiexec
1380 enable_net
1381 enable_netsh
1382 enable_netstat
1383 enable_ngen
1384 enable_notepad
1385 enable_oleview
1386 enable_ping
1387 enable_plugplay
1388 enable_presentationfontcache
1389 enable_progman
1390 enable_reg
1391 enable_regasm
1392 enable_regedit
1393 enable_regsvcs
1394 enable_regsvr32
1395 enable_rpcss
1396 enable_rundll32
1397 enable_sc
1398 enable_schtasks
1399 enable_sdbinst
1400 enable_secedit
1401 enable_servicemodelreg
1402 enable_services
1403 enable_spoolsv
1404 enable_start
1405 enable_svchost
1406 enable_systeminfo
1407 enable_taskkill
1408 enable_tasklist
1409 enable_taskmgr
1410 enable_termsv
1411 enable_uninstaller
1412 enable_unlodctr
1413 enable_view
1414 enable_wevtutil
1415 enable_wineboot
1416 enable_winebrowser
1417 enable_winecfg
1418 enable_wineconsole
1419 enable_winedbg
1420 enable_winedevice
1421 enable_winefile
1422 enable_winemenubuilder
1423 enable_winemine
1424 enable_winemsibuilder
1425 enable_winepath
1426 enable_winetest
1427 enable_winhlp32
1428 enable_winver
1429 enable_wmic
1430 enable_wordpad
1431 enable_write
1432 enable_wscript
1433 enable_wusa
1434 enable_xcopy
1435 enable_server
1436 enable_tools
1438 ac_precious_vars='build_alias
1439 host_alias
1440 target_alias
1442 CFLAGS
1443 LDFLAGS
1444 LIBS
1445 CPPFLAGS
1447 CXXFLAGS
1450 XMKMF
1451 XML2_CFLAGS
1452 XML2_LIBS
1453 XSLT_CFLAGS
1454 XSLT_LIBS
1455 DBUS_CFLAGS
1456 DBUS_LIBS
1457 HAL_CFLAGS
1458 HAL_LIBS
1459 GNUTLS_CFLAGS
1460 GNUTLS_LIBS
1461 SANE_CFLAGS
1462 SANE_LIBS
1463 GPHOTO2_CFLAGS
1464 GPHOTO2_LIBS
1465 GPHOTO2_PORT_CFLAGS
1466 GPHOTO2_PORT_LIBS
1467 LCMS2_CFLAGS
1468 LCMS2_LIBS
1469 FREETYPE_CFLAGS
1470 FREETYPE_LIBS
1471 GSTREAMER_CFLAGS
1472 GSTREAMER_LIBS
1473 CAPI20_CFLAGS
1474 CAPI20_LIBS
1475 FONTCONFIG_CFLAGS
1476 FONTCONFIG_LIBS
1477 JPEG_CFLAGS
1478 JPEG_LIBS
1479 PNG_CFLAGS
1480 PNG_LIBS
1481 TIFF_CFLAGS
1482 TIFF_LIBS
1483 MPG123_CFLAGS
1484 MPG123_LIBS'
1487 # Initialize some variables set by options.
1488 ac_init_help=
1489 ac_init_version=false
1490 ac_unrecognized_opts=
1491 ac_unrecognized_sep=
1492 # The variables have the same names as the options, with
1493 # dashes changed to underlines.
1494 cache_file=/dev/null
1495 exec_prefix=NONE
1496 no_create=
1497 no_recursion=
1498 prefix=NONE
1499 program_prefix=NONE
1500 program_suffix=NONE
1501 program_transform_name=s,x,x,
1502 silent=
1503 site=
1504 srcdir=
1505 verbose=
1506 x_includes=NONE
1507 x_libraries=NONE
1509 # Installation directory options.
1510 # These are left unexpanded so users can "make install exec_prefix=/foo"
1511 # and all the variables that are supposed to be based on exec_prefix
1512 # by default will actually change.
1513 # Use braces instead of parens because sh, perl, etc. also accept them.
1514 # (The list follows the same order as the GNU Coding Standards.)
1515 bindir='${exec_prefix}/bin'
1516 sbindir='${exec_prefix}/sbin'
1517 libexecdir='${exec_prefix}/libexec'
1518 datarootdir='${prefix}/share'
1519 datadir='${datarootdir}'
1520 sysconfdir='${prefix}/etc'
1521 sharedstatedir='${prefix}/com'
1522 localstatedir='${prefix}/var'
1523 includedir='${prefix}/include'
1524 oldincludedir='/usr/include'
1525 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1526 infodir='${datarootdir}/info'
1527 htmldir='${docdir}'
1528 dvidir='${docdir}'
1529 pdfdir='${docdir}'
1530 psdir='${docdir}'
1531 libdir='${exec_prefix}/lib'
1532 localedir='${datarootdir}/locale'
1533 mandir='${datarootdir}/man'
1535 ac_prev=
1536 ac_dashdash=
1537 for ac_option
1539 # If the previous option needs an argument, assign it.
1540 if test -n "$ac_prev"; then
1541 eval $ac_prev=\$ac_option
1542 ac_prev=
1543 continue
1546 case $ac_option in
1547 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1548 *=) ac_optarg= ;;
1549 *) ac_optarg=yes ;;
1550 esac
1552 # Accept the important Cygnus configure options, so we can diagnose typos.
1554 case $ac_dashdash$ac_option in
1556 ac_dashdash=yes ;;
1558 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1559 ac_prev=bindir ;;
1560 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1561 bindir=$ac_optarg ;;
1563 -build | --build | --buil | --bui | --bu)
1564 ac_prev=build_alias ;;
1565 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1566 build_alias=$ac_optarg ;;
1568 -cache-file | --cache-file | --cache-fil | --cache-fi \
1569 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1570 ac_prev=cache_file ;;
1571 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1572 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1573 cache_file=$ac_optarg ;;
1575 --config-cache | -C)
1576 cache_file=config.cache ;;
1578 -datadir | --datadir | --datadi | --datad)
1579 ac_prev=datadir ;;
1580 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1581 datadir=$ac_optarg ;;
1583 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1584 | --dataroo | --dataro | --datar)
1585 ac_prev=datarootdir ;;
1586 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1587 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1588 datarootdir=$ac_optarg ;;
1590 -disable-* | --disable-*)
1591 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1592 # Reject names that are not valid shell variable names.
1593 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1594 as_fn_error $? "invalid feature name: $ac_useropt"
1595 ac_useropt_orig=$ac_useropt
1596 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1597 case $ac_user_opts in
1599 "enable_$ac_useropt"
1600 "*) ;;
1601 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1602 ac_unrecognized_sep=', ';;
1603 esac
1604 eval enable_$ac_useropt=no ;;
1606 -docdir | --docdir | --docdi | --doc | --do)
1607 ac_prev=docdir ;;
1608 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1609 docdir=$ac_optarg ;;
1611 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1612 ac_prev=dvidir ;;
1613 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1614 dvidir=$ac_optarg ;;
1616 -enable-* | --enable-*)
1617 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1618 # Reject names that are not valid shell variable names.
1619 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1620 as_fn_error $? "invalid feature name: $ac_useropt"
1621 ac_useropt_orig=$ac_useropt
1622 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1623 case $ac_user_opts in
1625 "enable_$ac_useropt"
1626 "*) ;;
1627 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1628 ac_unrecognized_sep=', ';;
1629 esac
1630 eval enable_$ac_useropt=\$ac_optarg ;;
1632 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1633 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1634 | --exec | --exe | --ex)
1635 ac_prev=exec_prefix ;;
1636 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1637 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1638 | --exec=* | --exe=* | --ex=*)
1639 exec_prefix=$ac_optarg ;;
1641 -gas | --gas | --ga | --g)
1642 # Obsolete; use --with-gas.
1643 with_gas=yes ;;
1645 -help | --help | --hel | --he | -h)
1646 ac_init_help=long ;;
1647 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1648 ac_init_help=recursive ;;
1649 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1650 ac_init_help=short ;;
1652 -host | --host | --hos | --ho)
1653 ac_prev=host_alias ;;
1654 -host=* | --host=* | --hos=* | --ho=*)
1655 host_alias=$ac_optarg ;;
1657 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1658 ac_prev=htmldir ;;
1659 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1660 | --ht=*)
1661 htmldir=$ac_optarg ;;
1663 -includedir | --includedir | --includedi | --included | --include \
1664 | --includ | --inclu | --incl | --inc)
1665 ac_prev=includedir ;;
1666 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1667 | --includ=* | --inclu=* | --incl=* | --inc=*)
1668 includedir=$ac_optarg ;;
1670 -infodir | --infodir | --infodi | --infod | --info | --inf)
1671 ac_prev=infodir ;;
1672 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1673 infodir=$ac_optarg ;;
1675 -libdir | --libdir | --libdi | --libd)
1676 ac_prev=libdir ;;
1677 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1678 libdir=$ac_optarg ;;
1680 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1681 | --libexe | --libex | --libe)
1682 ac_prev=libexecdir ;;
1683 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1684 | --libexe=* | --libex=* | --libe=*)
1685 libexecdir=$ac_optarg ;;
1687 -localedir | --localedir | --localedi | --localed | --locale)
1688 ac_prev=localedir ;;
1689 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1690 localedir=$ac_optarg ;;
1692 -localstatedir | --localstatedir | --localstatedi | --localstated \
1693 | --localstate | --localstat | --localsta | --localst | --locals)
1694 ac_prev=localstatedir ;;
1695 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1696 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1697 localstatedir=$ac_optarg ;;
1699 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1700 ac_prev=mandir ;;
1701 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1702 mandir=$ac_optarg ;;
1704 -nfp | --nfp | --nf)
1705 # Obsolete; use --without-fp.
1706 with_fp=no ;;
1708 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1709 | --no-cr | --no-c | -n)
1710 no_create=yes ;;
1712 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1713 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1714 no_recursion=yes ;;
1716 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1717 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1718 | --oldin | --oldi | --old | --ol | --o)
1719 ac_prev=oldincludedir ;;
1720 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1721 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1722 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1723 oldincludedir=$ac_optarg ;;
1725 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1726 ac_prev=prefix ;;
1727 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1728 prefix=$ac_optarg ;;
1730 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1731 | --program-pre | --program-pr | --program-p)
1732 ac_prev=program_prefix ;;
1733 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1734 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1735 program_prefix=$ac_optarg ;;
1737 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1738 | --program-suf | --program-su | --program-s)
1739 ac_prev=program_suffix ;;
1740 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1741 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1742 program_suffix=$ac_optarg ;;
1744 -program-transform-name | --program-transform-name \
1745 | --program-transform-nam | --program-transform-na \
1746 | --program-transform-n | --program-transform- \
1747 | --program-transform | --program-transfor \
1748 | --program-transfo | --program-transf \
1749 | --program-trans | --program-tran \
1750 | --progr-tra | --program-tr | --program-t)
1751 ac_prev=program_transform_name ;;
1752 -program-transform-name=* | --program-transform-name=* \
1753 | --program-transform-nam=* | --program-transform-na=* \
1754 | --program-transform-n=* | --program-transform-=* \
1755 | --program-transform=* | --program-transfor=* \
1756 | --program-transfo=* | --program-transf=* \
1757 | --program-trans=* | --program-tran=* \
1758 | --progr-tra=* | --program-tr=* | --program-t=*)
1759 program_transform_name=$ac_optarg ;;
1761 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1762 ac_prev=pdfdir ;;
1763 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1764 pdfdir=$ac_optarg ;;
1766 -psdir | --psdir | --psdi | --psd | --ps)
1767 ac_prev=psdir ;;
1768 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1769 psdir=$ac_optarg ;;
1771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1772 | -silent | --silent | --silen | --sile | --sil)
1773 silent=yes ;;
1775 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1776 ac_prev=sbindir ;;
1777 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1778 | --sbi=* | --sb=*)
1779 sbindir=$ac_optarg ;;
1781 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1782 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1783 | --sharedst | --shareds | --shared | --share | --shar \
1784 | --sha | --sh)
1785 ac_prev=sharedstatedir ;;
1786 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1787 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1788 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1789 | --sha=* | --sh=*)
1790 sharedstatedir=$ac_optarg ;;
1792 -site | --site | --sit)
1793 ac_prev=site ;;
1794 -site=* | --site=* | --sit=*)
1795 site=$ac_optarg ;;
1797 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1798 ac_prev=srcdir ;;
1799 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1800 srcdir=$ac_optarg ;;
1802 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1803 | --syscon | --sysco | --sysc | --sys | --sy)
1804 ac_prev=sysconfdir ;;
1805 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1806 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1807 sysconfdir=$ac_optarg ;;
1809 -target | --target | --targe | --targ | --tar | --ta | --t)
1810 ac_prev=target_alias ;;
1811 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1812 target_alias=$ac_optarg ;;
1814 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1815 verbose=yes ;;
1817 -version | --version | --versio | --versi | --vers | -V)
1818 ac_init_version=: ;;
1820 -with-* | --with-*)
1821 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1822 # Reject names that are not valid shell variable names.
1823 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1824 as_fn_error $? "invalid package name: $ac_useropt"
1825 ac_useropt_orig=$ac_useropt
1826 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1827 case $ac_user_opts in
1829 "with_$ac_useropt"
1830 "*) ;;
1831 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1832 ac_unrecognized_sep=', ';;
1833 esac
1834 eval with_$ac_useropt=\$ac_optarg ;;
1836 -without-* | --without-*)
1837 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1838 # Reject names that are not valid shell variable names.
1839 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1840 as_fn_error $? "invalid package name: $ac_useropt"
1841 ac_useropt_orig=$ac_useropt
1842 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1843 case $ac_user_opts in
1845 "with_$ac_useropt"
1846 "*) ;;
1847 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1848 ac_unrecognized_sep=', ';;
1849 esac
1850 eval with_$ac_useropt=no ;;
1852 --x)
1853 # Obsolete; use --with-x.
1854 with_x=yes ;;
1856 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1857 | --x-incl | --x-inc | --x-in | --x-i)
1858 ac_prev=x_includes ;;
1859 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1860 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1861 x_includes=$ac_optarg ;;
1863 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1864 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1865 ac_prev=x_libraries ;;
1866 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1867 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1868 x_libraries=$ac_optarg ;;
1870 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1871 Try \`$0 --help' for more information"
1874 *=*)
1875 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1876 # Reject names that are not valid shell variable names.
1877 case $ac_envvar in #(
1878 '' | [0-9]* | *[!_$as_cr_alnum]* )
1879 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1880 esac
1881 eval $ac_envvar=\$ac_optarg
1882 export $ac_envvar ;;
1885 # FIXME: should be removed in autoconf 3.0.
1886 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1887 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1888 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1889 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1892 esac
1893 done
1895 if test -n "$ac_prev"; then
1896 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1897 as_fn_error $? "missing argument to $ac_option"
1900 if test -n "$ac_unrecognized_opts"; then
1901 case $enable_option_checking in
1902 no) ;;
1903 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1904 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1905 esac
1908 # Check all directory arguments for consistency.
1909 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1910 datadir sysconfdir sharedstatedir localstatedir includedir \
1911 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1912 libdir localedir mandir
1914 eval ac_val=\$$ac_var
1915 # Remove trailing slashes.
1916 case $ac_val in
1917 */ )
1918 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1919 eval $ac_var=\$ac_val;;
1920 esac
1921 # Be sure to have absolute directory names.
1922 case $ac_val in
1923 [\\/$]* | ?:[\\/]* ) continue;;
1924 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1925 esac
1926 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1927 done
1929 # There might be people who depend on the old broken behavior: `$host'
1930 # used to hold the argument of --host etc.
1931 # FIXME: To remove some day.
1932 build=$build_alias
1933 host=$host_alias
1934 target=$target_alias
1936 # FIXME: To remove some day.
1937 if test "x$host_alias" != x; then
1938 if test "x$build_alias" = x; then
1939 cross_compiling=maybe
1940 elif test "x$build_alias" != "x$host_alias"; then
1941 cross_compiling=yes
1945 ac_tool_prefix=
1946 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1948 test "$silent" = yes && exec 6>/dev/null
1951 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1952 ac_ls_di=`ls -di .` &&
1953 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1954 as_fn_error $? "working directory cannot be determined"
1955 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1956 as_fn_error $? "pwd does not report name of working directory"
1959 # Find the source files, if location was not specified.
1960 if test -z "$srcdir"; then
1961 ac_srcdir_defaulted=yes
1962 # Try the directory containing this script, then the parent directory.
1963 ac_confdir=`$as_dirname -- "$as_myself" ||
1964 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1965 X"$as_myself" : 'X\(//\)[^/]' \| \
1966 X"$as_myself" : 'X\(//\)$' \| \
1967 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1968 $as_echo X"$as_myself" |
1969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1970 s//\1/
1973 /^X\(\/\/\)[^/].*/{
1974 s//\1/
1977 /^X\(\/\/\)$/{
1978 s//\1/
1981 /^X\(\/\).*/{
1982 s//\1/
1985 s/.*/./; q'`
1986 srcdir=$ac_confdir
1987 if test ! -r "$srcdir/$ac_unique_file"; then
1988 srcdir=..
1990 else
1991 ac_srcdir_defaulted=no
1993 if test ! -r "$srcdir/$ac_unique_file"; then
1994 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1995 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1997 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1998 ac_abs_confdir=`(
1999 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2000 pwd)`
2001 # When building in place, set srcdir=.
2002 if test "$ac_abs_confdir" = "$ac_pwd"; then
2003 srcdir=.
2005 # Remove unnecessary trailing slashes from srcdir.
2006 # Double slashes in file names in object file debugging info
2007 # mess up M-x gdb in Emacs.
2008 case $srcdir in
2009 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2010 esac
2011 for ac_var in $ac_precious_vars; do
2012 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2013 eval ac_env_${ac_var}_value=\$${ac_var}
2014 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2015 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2016 done
2019 # Report the --help message.
2021 if test "$ac_init_help" = "long"; then
2022 # Omit some internal or obsolete options to make the list less imposing.
2023 # This message is too long to be a string in the A/UX 3.1 sh.
2024 cat <<_ACEOF
2025 \`configure' configures Wine 1.7.37 to adapt to many kinds of systems.
2027 Usage: $0 [OPTION]... [VAR=VALUE]...
2029 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2030 VAR=VALUE. See below for descriptions of some of the useful variables.
2032 Defaults for the options are specified in brackets.
2034 Configuration:
2035 -h, --help display this help and exit
2036 --help=short display options specific to this package
2037 --help=recursive display the short help of all the included packages
2038 -V, --version display version information and exit
2039 -q, --quiet, --silent do not print \`checking ...' messages
2040 --cache-file=FILE cache test results in FILE [disabled]
2041 -C, --config-cache alias for \`--cache-file=config.cache'
2042 -n, --no-create do not create output files
2043 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2045 Installation directories:
2046 --prefix=PREFIX install architecture-independent files in PREFIX
2047 [$ac_default_prefix]
2048 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2049 [PREFIX]
2051 By default, \`make install' will install all the files in
2052 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2053 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2054 for instance \`--prefix=\$HOME'.
2056 For better control, use the options below.
2058 Fine tuning of the installation directories:
2059 --bindir=DIR user executables [EPREFIX/bin]
2060 --sbindir=DIR system admin executables [EPREFIX/sbin]
2061 --libexecdir=DIR program executables [EPREFIX/libexec]
2062 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2063 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2064 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2065 --libdir=DIR object code libraries [EPREFIX/lib]
2066 --includedir=DIR C header files [PREFIX/include]
2067 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2068 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2069 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2070 --infodir=DIR info documentation [DATAROOTDIR/info]
2071 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2072 --mandir=DIR man documentation [DATAROOTDIR/man]
2073 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
2074 --htmldir=DIR html documentation [DOCDIR]
2075 --dvidir=DIR dvi documentation [DOCDIR]
2076 --pdfdir=DIR pdf documentation [DOCDIR]
2077 --psdir=DIR ps documentation [DOCDIR]
2078 _ACEOF
2080 cat <<\_ACEOF
2082 X features:
2083 --x-includes=DIR X include files are in DIR
2084 --x-libraries=DIR X library files are in DIR
2086 System types:
2087 --build=BUILD configure for building on BUILD [guessed]
2088 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2089 _ACEOF
2092 if test -n "$ac_init_help"; then
2093 case $ac_init_help in
2094 short | recursive ) echo "Configuration of Wine 1.7.37:";;
2095 esac
2096 cat <<\_ACEOF
2098 Optional Features:
2099 --disable-option-checking ignore unrecognized --enable/--with options
2100 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2101 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2102 --disable-win16 do not include Win16 support
2103 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2104 binaries)
2105 --disable-tests do not build the regression tests
2106 --enable-maintainer-mode
2107 enable maintainer-specific build rules
2108 --disable-largefile omit support for large files
2110 Optional Packages:
2111 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2112 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2113 --without-alsa do not use the Alsa sound support
2114 --without-capi do not use CAPI (ISDN support)
2115 --without-cms do not use CMS (color management support)
2116 --without-coreaudio do not use the CoreAudio sound support
2117 --without-cups do not use CUPS
2118 --without-curses do not use (n)curses
2119 --without-dbus do not use DBus (dynamic device support)
2120 --without-fontconfig do not use fontconfig
2121 --without-freetype do not use the FreeType library
2122 --without-gettext do not use gettext
2123 --with-gettextpo use the GetTextPO library to rebuild po files
2124 --without-gphoto do not use gphoto (Digital Camera support)
2125 --without-glu do not use the GLU library
2126 --without-gnutls do not use GnuTLS (schannel support)
2127 --without-gsm do not use libgsm (GSM 06.10 codec support)
2128 --without-gstreamer do not use GStreamer (codecs support)
2129 --without-hal do not use HAL (dynamic device support)
2130 --without-jpeg do not use JPEG
2131 --without-ldap do not use LDAP
2132 --without-mpg123 do not use the mpg123 library
2133 --without-netapi do not use the Samba NetAPI library
2134 --without-openal do not use OpenAL
2135 --without-opencl do not use OpenCL
2136 --without-opengl do not use OpenGL
2137 --without-osmesa do not use the OSMesa library
2138 --without-oss do not use the OSS sound support
2139 --without-pcap do not use the Packet Capture library
2140 --without-png do not use PNG
2141 --without-pthread do not use the pthread library
2142 --without-sane do not use SANE (scanner support)
2143 --without-tiff do not use TIFF
2144 --without-v4l do not use v4l1 (v4l support)
2145 --without-xcomposite do not use the Xcomposite extension
2146 --without-xcursor do not use the Xcursor extension
2147 --without-xinerama do not use Xinerama (multi-monitor support)
2148 --without-xinput do not use the Xinput extension
2149 --without-xinput2 do not use the Xinput 2 extension
2150 --without-xml do not use XML
2151 --without-xrandr do not use Xrandr (resolution changes)
2152 --without-xrender do not use the Xrender extension
2153 --without-xshape do not use the Xshape extension
2154 --without-xshm do not use XShm (shared memory extension)
2155 --without-xslt do not use XSLT
2156 --without-xxf86vm do not use XFree video mode extension
2157 --without-zlib do not use Zlib (data compression)
2158 --with-wine-tools=DIR use Wine tools from directory DIR
2159 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2160 --with-x use the X Window System
2162 Some influential environment variables:
2163 CC C compiler command
2164 CFLAGS C compiler flags
2165 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2166 nonstandard directory <lib dir>
2167 LIBS libraries to pass to the linker, e.g. -l<library>
2168 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2169 you have headers in a nonstandard directory <include dir>
2170 CXX C++ compiler command
2171 CXXFLAGS C++ compiler flags
2172 CPP C preprocessor
2173 XMKMF Path to xmkmf, Makefile generator for X Window System
2174 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2175 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2176 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2177 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2178 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2179 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2180 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2181 HAL_LIBS Linker flags for hal, overriding pkg-config
2182 GNUTLS_CFLAGS
2183 C compiler flags for gnutls, overriding pkg-config
2184 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2185 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2186 SANE_LIBS Linker flags for libsane, overriding pkg-config
2187 GPHOTO2_CFLAGS
2188 C compiler flags for libgphoto2, overriding pkg-config
2189 GPHOTO2_LIBS
2190 Linker flags for libgphoto2, overriding pkg-config
2191 GPHOTO2_PORT_CFLAGS
2192 C compiler flags for libgphoto2_port, overriding pkg-config
2193 GPHOTO2_PORT_LIBS
2194 Linker flags for libgphoto2_port, overriding pkg-config
2195 LCMS2_CFLAGS
2196 C compiler flags for lcms2, overriding pkg-config
2197 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2198 FREETYPE_CFLAGS
2199 C compiler flags for freetype2, overriding pkg-config
2200 FREETYPE_LIBS
2201 Linker flags for freetype2, overriding pkg-config
2202 GSTREAMER_CFLAGS
2203 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2204 GSTREAMER_LIBS
2205 Linker flags for gstreamer-app-0.10, overriding pkg-config
2206 CAPI20_CFLAGS
2207 C compiler flags for capi20, overriding pkg-config
2208 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2209 FONTCONFIG_CFLAGS
2210 C compiler flags for fontconfig, overriding pkg-config
2211 FONTCONFIG_LIBS
2212 Linker flags for fontconfig, overriding pkg-config
2213 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2214 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2215 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2216 PNG_LIBS Linker flags for libpng, overriding pkg-config
2217 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2218 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2219 MPG123_CFLAGS
2220 C compiler flags for libmpg123, overriding pkg-config
2221 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2223 Use these variables to override the choices made by `configure' or to help
2224 it to find libraries and programs with nonstandard names/locations.
2226 Report bugs to <wine-devel@winehq.org>.
2227 Wine home page: <http://www.winehq.org>.
2228 _ACEOF
2229 ac_status=$?
2232 if test "$ac_init_help" = "recursive"; then
2233 # If there are subdirs, report their specific --help.
2234 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2235 test -d "$ac_dir" ||
2236 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2237 continue
2238 ac_builddir=.
2240 case "$ac_dir" in
2241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2243 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2244 # A ".." for each directory in $ac_dir_suffix.
2245 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2246 case $ac_top_builddir_sub in
2247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2249 esac ;;
2250 esac
2251 ac_abs_top_builddir=$ac_pwd
2252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2253 # for backward compatibility:
2254 ac_top_builddir=$ac_top_build_prefix
2256 case $srcdir in
2257 .) # We are building in place.
2258 ac_srcdir=.
2259 ac_top_srcdir=$ac_top_builddir_sub
2260 ac_abs_top_srcdir=$ac_pwd ;;
2261 [\\/]* | ?:[\\/]* ) # Absolute name.
2262 ac_srcdir=$srcdir$ac_dir_suffix;
2263 ac_top_srcdir=$srcdir
2264 ac_abs_top_srcdir=$srcdir ;;
2265 *) # Relative name.
2266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2267 ac_top_srcdir=$ac_top_build_prefix$srcdir
2268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2269 esac
2270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2272 cd "$ac_dir" || { ac_status=$?; continue; }
2273 # Check for guested configure.
2274 if test -f "$ac_srcdir/configure.gnu"; then
2275 echo &&
2276 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2277 elif test -f "$ac_srcdir/configure"; then
2278 echo &&
2279 $SHELL "$ac_srcdir/configure" --help=recursive
2280 else
2281 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2282 fi || ac_status=$?
2283 cd "$ac_pwd" || { ac_status=$?; break; }
2284 done
2287 test -n "$ac_init_help" && exit $ac_status
2288 if $ac_init_version; then
2289 cat <<\_ACEOF
2290 Wine configure 1.7.37
2291 generated by GNU Autoconf 2.69
2293 Copyright (C) 2012 Free Software Foundation, Inc.
2294 This configure script is free software; the Free Software Foundation
2295 gives unlimited permission to copy, distribute and modify it.
2296 _ACEOF
2297 exit
2300 ## ------------------------ ##
2301 ## Autoconf initialization. ##
2302 ## ------------------------ ##
2304 # ac_fn_c_try_compile LINENO
2305 # --------------------------
2306 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2307 ac_fn_c_try_compile ()
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 rm -f conftest.$ac_objext
2311 if { { ac_try="$ac_compile"
2312 case "(($ac_try" in
2313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2314 *) ac_try_echo=$ac_try;;
2315 esac
2316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2317 $as_echo "$ac_try_echo"; } >&5
2318 (eval "$ac_compile") 2>conftest.err
2319 ac_status=$?
2320 if test -s conftest.err; then
2321 grep -v '^ *+' conftest.err >conftest.er1
2322 cat conftest.er1 >&5
2323 mv -f conftest.er1 conftest.err
2325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2326 test $ac_status = 0; } && {
2327 test -z "$ac_c_werror_flag" ||
2328 test ! -s conftest.err
2329 } && test -s conftest.$ac_objext; then :
2330 ac_retval=0
2331 else
2332 $as_echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 ac_retval=1
2337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338 as_fn_set_status $ac_retval
2340 } # ac_fn_c_try_compile
2342 # ac_fn_cxx_try_compile LINENO
2343 # ----------------------------
2344 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2345 ac_fn_cxx_try_compile ()
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 rm -f conftest.$ac_objext
2349 if { { ac_try="$ac_compile"
2350 case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 $as_echo "$ac_try_echo"; } >&5
2356 (eval "$ac_compile") 2>conftest.err
2357 ac_status=$?
2358 if test -s conftest.err; then
2359 grep -v '^ *+' conftest.err >conftest.er1
2360 cat conftest.er1 >&5
2361 mv -f conftest.er1 conftest.err
2363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364 test $ac_status = 0; } && {
2365 test -z "$ac_cxx_werror_flag" ||
2366 test ! -s conftest.err
2367 } && test -s conftest.$ac_objext; then :
2368 ac_retval=0
2369 else
2370 $as_echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2373 ac_retval=1
2375 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2376 as_fn_set_status $ac_retval
2378 } # ac_fn_cxx_try_compile
2380 # ac_fn_c_try_link LINENO
2381 # -----------------------
2382 # Try to link conftest.$ac_ext, and return whether this succeeded.
2383 ac_fn_c_try_link ()
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 rm -f conftest.$ac_objext conftest$ac_exeext
2387 if { { ac_try="$ac_link"
2388 case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391 esac
2392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393 $as_echo "$ac_try_echo"; } >&5
2394 (eval "$ac_link") 2>conftest.err
2395 ac_status=$?
2396 if test -s conftest.err; then
2397 grep -v '^ *+' conftest.err >conftest.er1
2398 cat conftest.er1 >&5
2399 mv -f conftest.er1 conftest.err
2401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402 test $ac_status = 0; } && {
2403 test -z "$ac_c_werror_flag" ||
2404 test ! -s conftest.err
2405 } && test -s conftest$ac_exeext && {
2406 test "$cross_compiling" = yes ||
2407 test -x conftest$ac_exeext
2408 }; then :
2409 ac_retval=0
2410 else
2411 $as_echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2414 ac_retval=1
2416 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2417 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2418 # interfere with the next link command; also delete a directory that is
2419 # left behind by Apple's compiler. We do this before executing the actions.
2420 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422 as_fn_set_status $ac_retval
2424 } # ac_fn_c_try_link
2426 # ac_fn_c_try_cpp LINENO
2427 # ----------------------
2428 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2429 ac_fn_c_try_cpp ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 if { { ac_try="$ac_cpp conftest.$ac_ext"
2433 case "(($ac_try" in
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2440 ac_status=$?
2441 if test -s conftest.err; then
2442 grep -v '^ *+' conftest.err >conftest.er1
2443 cat conftest.er1 >&5
2444 mv -f conftest.er1 conftest.err
2446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447 test $ac_status = 0; } > conftest.i && {
2448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2449 test ! -s conftest.err
2450 }; then :
2451 ac_retval=0
2452 else
2453 $as_echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2456 ac_retval=1
2458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459 as_fn_set_status $ac_retval
2461 } # ac_fn_c_try_cpp
2463 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2464 # -------------------------------------------------------
2465 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2466 # the include files in INCLUDES and setting the cache variable VAR
2467 # accordingly.
2468 ac_fn_c_check_header_mongrel ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 if eval \${$3+:} false; then :
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2473 $as_echo_n "checking for $2... " >&6; }
2474 if eval \${$3+:} false; then :
2475 $as_echo_n "(cached) " >&6
2477 eval ac_res=\$$3
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480 else
2481 # Is the header compilable?
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2483 $as_echo_n "checking $2 usability... " >&6; }
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2487 #include <$2>
2488 _ACEOF
2489 if ac_fn_c_try_compile "$LINENO"; then :
2490 ac_header_compiler=yes
2491 else
2492 ac_header_compiler=no
2494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2496 $as_echo "$ac_header_compiler" >&6; }
2498 # Is the header present?
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2500 $as_echo_n "checking $2 presence... " >&6; }
2501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h. */
2503 #include <$2>
2504 _ACEOF
2505 if ac_fn_c_try_cpp "$LINENO"; then :
2506 ac_header_preproc=yes
2507 else
2508 ac_header_preproc=no
2510 rm -f conftest.err conftest.i conftest.$ac_ext
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2512 $as_echo "$ac_header_preproc" >&6; }
2514 # So? What about this header?
2515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2516 yes:no: )
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2518 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2520 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2522 no:yes:* )
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2524 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2526 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2528 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2530 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2532 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2533 ( $as_echo "## ------------------------------------ ##
2534 ## Report this to wine-devel@winehq.org ##
2535 ## ------------------------------------ ##"
2536 ) | sed "s/^/$as_me: WARNING: /" >&2
2538 esac
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2540 $as_echo_n "checking for $2... " >&6; }
2541 if eval \${$3+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 eval "$3=\$ac_header_compiler"
2546 eval ac_res=\$$3
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2548 $as_echo "$ac_res" >&6; }
2550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2552 } # ac_fn_c_check_header_mongrel
2554 # ac_fn_c_try_run LINENO
2555 # ----------------------
2556 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2557 # that executables *can* be run.
2558 ac_fn_c_try_run ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 if { { ac_try="$ac_link"
2562 case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565 esac
2566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2567 $as_echo "$ac_try_echo"; } >&5
2568 (eval "$ac_link") 2>&5
2569 ac_status=$?
2570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2572 { { case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575 esac
2576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2577 $as_echo "$ac_try_echo"; } >&5
2578 (eval "$ac_try") 2>&5
2579 ac_status=$?
2580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581 test $ac_status = 0; }; }; then :
2582 ac_retval=0
2583 else
2584 $as_echo "$as_me: program exited with status $ac_status" >&5
2585 $as_echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2588 ac_retval=$ac_status
2590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2592 as_fn_set_status $ac_retval
2594 } # ac_fn_c_try_run
2596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2597 # -------------------------------------------------------
2598 # Tests whether HEADER exists and can be compiled using the include files in
2599 # INCLUDES, setting the cache variable VAR accordingly.
2600 ac_fn_c_check_header_compile ()
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2604 $as_echo_n "checking for $2... " >&6; }
2605 if eval \${$3+:} false; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2611 #include <$2>
2612 _ACEOF
2613 if ac_fn_c_try_compile "$LINENO"; then :
2614 eval "$3=yes"
2615 else
2616 eval "$3=no"
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 eval ac_res=\$$3
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2622 $as_echo "$ac_res" >&6; }
2623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2625 } # ac_fn_c_check_header_compile
2627 # ac_fn_c_check_func LINENO FUNC VAR
2628 # ----------------------------------
2629 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2630 ac_fn_c_check_func ()
2632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2634 $as_echo_n "checking for $2... " >&6; }
2635 if eval \${$3+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2640 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2642 #define $2 innocuous_$2
2644 /* System header to define __stub macros and hopefully few prototypes,
2645 which can conflict with char $2 (); below.
2646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2647 <limits.h> exists even on freestanding compilers. */
2649 #ifdef __STDC__
2650 # include <limits.h>
2651 #else
2652 # include <assert.h>
2653 #endif
2655 #undef $2
2657 /* Override any GCC internal prototype to avoid an error.
2658 Use char because int might match the return type of a GCC
2659 builtin and then its argument prototype would still apply. */
2660 #ifdef __cplusplus
2661 extern "C"
2662 #endif
2663 char $2 ();
2664 /* The GNU C library defines this for functions which it implements
2665 to always fail with ENOSYS. Some functions are actually named
2666 something starting with __ and the normal name is an alias. */
2667 #if defined __stub_$2 || defined __stub___$2
2668 choke me
2669 #endif
2672 main ()
2674 return $2 ();
2676 return 0;
2678 _ACEOF
2679 if ac_fn_c_try_link "$LINENO"; then :
2680 eval "$3=yes"
2681 else
2682 eval "$3=no"
2684 rm -f core conftest.err conftest.$ac_objext \
2685 conftest$ac_exeext conftest.$ac_ext
2687 eval ac_res=\$$3
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689 $as_echo "$ac_res" >&6; }
2690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692 } # ac_fn_c_check_func
2694 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2695 # ----------------------------------------------------
2696 # Tries to find if the field MEMBER exists in type AGGR, after including
2697 # INCLUDES, setting cache variable VAR accordingly.
2698 ac_fn_c_check_member ()
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2702 $as_echo_n "checking for $2.$3... " >&6; }
2703 if eval \${$4+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2710 main ()
2712 static $2 ac_aggr;
2713 if (ac_aggr.$3)
2714 return 0;
2716 return 0;
2718 _ACEOF
2719 if ac_fn_c_try_compile "$LINENO"; then :
2720 eval "$4=yes"
2721 else
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h. */
2726 main ()
2728 static $2 ac_aggr;
2729 if (sizeof ac_aggr.$3)
2730 return 0;
2732 return 0;
2734 _ACEOF
2735 if ac_fn_c_try_compile "$LINENO"; then :
2736 eval "$4=yes"
2737 else
2738 eval "$4=no"
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 eval ac_res=\$$4
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746 $as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2749 } # ac_fn_c_check_member
2751 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2752 # -------------------------------------------
2753 # Tests whether TYPE exists after having included INCLUDES, setting cache
2754 # variable VAR accordingly.
2755 ac_fn_c_check_type ()
2757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2759 $as_echo_n "checking for $2... " >&6; }
2760 if eval \${$3+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 eval "$3=no"
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2768 main ()
2770 if (sizeof ($2))
2771 return 0;
2773 return 0;
2775 _ACEOF
2776 if ac_fn_c_try_compile "$LINENO"; then :
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2781 main ()
2783 if (sizeof (($2)))
2784 return 0;
2786 return 0;
2788 _ACEOF
2789 if ac_fn_c_try_compile "$LINENO"; then :
2791 else
2792 eval "$3=yes"
2794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798 eval ac_res=\$$3
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2800 $as_echo "$ac_res" >&6; }
2801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2803 } # ac_fn_c_check_type
2804 cat >config.log <<_ACEOF
2805 This file contains any messages produced by compilers while
2806 running configure, to aid debugging if configure makes a mistake.
2808 It was created by Wine $as_me 1.7.37, which was
2809 generated by GNU Autoconf 2.69. Invocation command line was
2811 $ $0 $@
2813 _ACEOF
2814 exec 5>>config.log
2816 cat <<_ASUNAME
2817 ## --------- ##
2818 ## Platform. ##
2819 ## --------- ##
2821 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2822 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2823 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2824 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2825 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2827 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2828 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2830 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2831 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2832 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2833 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2834 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2835 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2836 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2838 _ASUNAME
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 $as_echo "PATH: $as_dir"
2846 done
2847 IFS=$as_save_IFS
2849 } >&5
2851 cat >&5 <<_ACEOF
2854 ## ----------- ##
2855 ## Core tests. ##
2856 ## ----------- ##
2858 _ACEOF
2861 # Keep a trace of the command line.
2862 # Strip out --no-create and --no-recursion so they do not pile up.
2863 # Strip out --silent because we don't want to record it for future runs.
2864 # Also quote any args containing shell meta-characters.
2865 # Make two passes to allow for proper duplicate-argument suppression.
2866 ac_configure_args=
2867 ac_configure_args0=
2868 ac_configure_args1=
2869 ac_must_keep_next=false
2870 for ac_pass in 1 2
2872 for ac_arg
2874 case $ac_arg in
2875 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2877 | -silent | --silent | --silen | --sile | --sil)
2878 continue ;;
2879 *\'*)
2880 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2881 esac
2882 case $ac_pass in
2883 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2885 as_fn_append ac_configure_args1 " '$ac_arg'"
2886 if test $ac_must_keep_next = true; then
2887 ac_must_keep_next=false # Got value, back to normal.
2888 else
2889 case $ac_arg in
2890 *=* | --config-cache | -C | -disable-* | --disable-* \
2891 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2892 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2893 | -with-* | --with-* | -without-* | --without-* | --x)
2894 case "$ac_configure_args0 " in
2895 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2896 esac
2898 -* ) ac_must_keep_next=true ;;
2899 esac
2901 as_fn_append ac_configure_args " '$ac_arg'"
2903 esac
2904 done
2905 done
2906 { ac_configure_args0=; unset ac_configure_args0;}
2907 { ac_configure_args1=; unset ac_configure_args1;}
2909 # When interrupted or exit'd, cleanup temporary files, and complete
2910 # config.log. We remove comments because anyway the quotes in there
2911 # would cause problems or look ugly.
2912 # WARNING: Use '\'' to represent an apostrophe within the trap.
2913 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2914 trap 'exit_status=$?
2915 # Save into config.log some information that might help in debugging.
2917 echo
2919 $as_echo "## ---------------- ##
2920 ## Cache variables. ##
2921 ## ---------------- ##"
2922 echo
2923 # The following way of writing the cache mishandles newlines in values,
2925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2926 eval ac_val=\$$ac_var
2927 case $ac_val in #(
2928 *${as_nl}*)
2929 case $ac_var in #(
2930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2932 esac
2933 case $ac_var in #(
2934 _ | IFS | as_nl) ;; #(
2935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2936 *) { eval $ac_var=; unset $ac_var;} ;;
2937 esac ;;
2938 esac
2939 done
2940 (set) 2>&1 |
2941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2942 *${as_nl}ac_space=\ *)
2943 sed -n \
2944 "s/'\''/'\''\\\\'\'''\''/g;
2945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2946 ;; #(
2948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2950 esac |
2951 sort
2953 echo
2955 $as_echo "## ----------------- ##
2956 ## Output variables. ##
2957 ## ----------------- ##"
2958 echo
2959 for ac_var in $ac_subst_vars
2961 eval ac_val=\$$ac_var
2962 case $ac_val in
2963 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2964 esac
2965 $as_echo "$ac_var='\''$ac_val'\''"
2966 done | sort
2967 echo
2969 if test -n "$ac_subst_files"; then
2970 $as_echo "## ------------------- ##
2971 ## File substitutions. ##
2972 ## ------------------- ##"
2973 echo
2974 for ac_var in $ac_subst_files
2976 eval ac_val=\$$ac_var
2977 case $ac_val in
2978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2979 esac
2980 $as_echo "$ac_var='\''$ac_val'\''"
2981 done | sort
2982 echo
2985 if test -s confdefs.h; then
2986 $as_echo "## ----------- ##
2987 ## confdefs.h. ##
2988 ## ----------- ##"
2989 echo
2990 cat confdefs.h
2991 echo
2993 test "$ac_signal" != 0 &&
2994 $as_echo "$as_me: caught signal $ac_signal"
2995 $as_echo "$as_me: exit $exit_status"
2996 } >&5
2997 rm -f core *.core core.conftest.* &&
2998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2999 exit $exit_status
3001 for ac_signal in 1 2 13 15; do
3002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3003 done
3004 ac_signal=0
3006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3007 rm -f -r conftest* confdefs.h
3009 $as_echo "/* confdefs.h */" > confdefs.h
3011 # Predefined preprocessor variables.
3013 cat >>confdefs.h <<_ACEOF
3014 #define PACKAGE_NAME "$PACKAGE_NAME"
3015 _ACEOF
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3019 _ACEOF
3021 cat >>confdefs.h <<_ACEOF
3022 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3023 _ACEOF
3025 cat >>confdefs.h <<_ACEOF
3026 #define PACKAGE_STRING "$PACKAGE_STRING"
3027 _ACEOF
3029 cat >>confdefs.h <<_ACEOF
3030 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3031 _ACEOF
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE_URL "$PACKAGE_URL"
3035 _ACEOF
3038 # Let the site file select an alternate cache file if it wants to.
3039 # Prefer an explicitly selected file to automatically selected ones.
3040 ac_site_file1=NONE
3041 ac_site_file2=NONE
3042 if test -n "$CONFIG_SITE"; then
3043 # We do not want a PATH search for config.site.
3044 case $CONFIG_SITE in #((
3045 -*) ac_site_file1=./$CONFIG_SITE;;
3046 */*) ac_site_file1=$CONFIG_SITE;;
3047 *) ac_site_file1=./$CONFIG_SITE;;
3048 esac
3049 elif test "x$prefix" != xNONE; then
3050 ac_site_file1=$prefix/share/config.site
3051 ac_site_file2=$prefix/etc/config.site
3052 else
3053 ac_site_file1=$ac_default_prefix/share/config.site
3054 ac_site_file2=$ac_default_prefix/etc/config.site
3056 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3058 test "x$ac_site_file" = xNONE && continue
3059 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3061 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3062 sed 's/^/| /' "$ac_site_file" >&5
3063 . "$ac_site_file" \
3064 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 as_fn_error $? "failed to load site script $ac_site_file
3067 See \`config.log' for more details" "$LINENO" 5; }
3069 done
3071 if test -r "$cache_file"; then
3072 # Some versions of bash will fail to source /dev/null (special files
3073 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3076 $as_echo "$as_me: loading cache $cache_file" >&6;}
3077 case $cache_file in
3078 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3079 *) . "./$cache_file";;
3080 esac
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3084 $as_echo "$as_me: creating cache $cache_file" >&6;}
3085 >$cache_file
3088 # Check that the precious variables saved in the cache have kept the same
3089 # value.
3090 ac_cache_corrupted=false
3091 for ac_var in $ac_precious_vars; do
3092 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3093 eval ac_new_set=\$ac_env_${ac_var}_set
3094 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3095 eval ac_new_val=\$ac_env_${ac_var}_value
3096 case $ac_old_set,$ac_new_set in
3097 set,)
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3099 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3100 ac_cache_corrupted=: ;;
3101 ,set)
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3103 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3104 ac_cache_corrupted=: ;;
3105 ,);;
3107 if test "x$ac_old_val" != "x$ac_new_val"; then
3108 # differences in whitespace do not lead to failure.
3109 ac_old_val_w=`echo x $ac_old_val`
3110 ac_new_val_w=`echo x $ac_new_val`
3111 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3113 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3114 ac_cache_corrupted=:
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3117 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3118 eval $ac_var=\$ac_old_val
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3121 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3123 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3124 fi;;
3125 esac
3126 # Pass precious variables to config.status.
3127 if test "$ac_new_set" = set; then
3128 case $ac_new_val in
3129 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3130 *) ac_arg=$ac_var=$ac_new_val ;;
3131 esac
3132 case " $ac_configure_args " in
3133 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3134 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3135 esac
3137 done
3138 if $ac_cache_corrupted; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3142 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3143 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3145 ## -------------------- ##
3146 ## Main body of script. ##
3147 ## -------------------- ##
3149 ac_ext=c
3150 ac_cpp='$CPP $CPPFLAGS'
3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157 ac_config_headers="$ac_config_headers include/config.h"
3159 ac_aux_dir=
3160 for ac_dir in tools "$srcdir"/tools; do
3161 if test -f "$ac_dir/install-sh"; then
3162 ac_aux_dir=$ac_dir
3163 ac_install_sh="$ac_aux_dir/install-sh -c"
3164 break
3165 elif test -f "$ac_dir/install.sh"; then
3166 ac_aux_dir=$ac_dir
3167 ac_install_sh="$ac_aux_dir/install.sh -c"
3168 break
3169 elif test -f "$ac_dir/shtool"; then
3170 ac_aux_dir=$ac_dir
3171 ac_install_sh="$ac_aux_dir/shtool install -c"
3172 break
3174 done
3175 if test -z "$ac_aux_dir"; then
3176 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3179 # These three variables are undocumented and unsupported,
3180 # and are intended to be withdrawn in a future Autoconf release.
3181 # They can cause serious problems if a builder's source tree is in a directory
3182 # whose full name contains unusual characters.
3183 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3184 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3185 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3189 libwine_version="1.0"
3193 # Check whether --enable-win16 was given.
3194 if test "${enable_win16+set}" = set; then :
3195 enableval=$enable_win16;
3198 # Check whether --enable-win64 was given.
3199 if test "${enable_win64+set}" = set; then :
3200 enableval=$enable_win64;
3203 # Check whether --enable-tests was given.
3204 if test "${enable_tests+set}" = set; then :
3205 enableval=$enable_tests;
3208 # Check whether --enable-maintainer-mode was given.
3209 if test "${enable_maintainer_mode+set}" = set; then :
3210 enableval=$enable_maintainer_mode;
3215 # Check whether --with-alsa was given.
3216 if test "${with_alsa+set}" = set; then :
3217 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3221 # Check whether --with-capi was given.
3222 if test "${with_capi+set}" = set; then :
3223 withval=$with_capi;
3227 # Check whether --with-cms was given.
3228 if test "${with_cms+set}" = set; then :
3229 withval=$with_cms;
3233 # Check whether --with-coreaudio was given.
3234 if test "${with_coreaudio+set}" = set; then :
3235 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3239 # Check whether --with-cups was given.
3240 if test "${with_cups+set}" = set; then :
3241 withval=$with_cups;
3245 # Check whether --with-curses was given.
3246 if test "${with_curses+set}" = set; then :
3247 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3251 # Check whether --with-dbus was given.
3252 if test "${with_dbus+set}" = set; then :
3253 withval=$with_dbus;
3257 # Check whether --with-fontconfig was given.
3258 if test "${with_fontconfig+set}" = set; then :
3259 withval=$with_fontconfig;
3263 # Check whether --with-freetype was given.
3264 if test "${with_freetype+set}" = set; then :
3265 withval=$with_freetype;
3269 # Check whether --with-gettext was given.
3270 if test "${with_gettext+set}" = set; then :
3271 withval=$with_gettext;
3275 # Check whether --with-gettextpo was given.
3276 if test "${with_gettextpo+set}" = set; then :
3277 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3281 # Check whether --with-gphoto was given.
3282 if test "${with_gphoto+set}" = set; then :
3283 withval=$with_gphoto;
3287 # Check whether --with-glu was given.
3288 if test "${with_glu+set}" = set; then :
3289 withval=$with_glu;
3293 # Check whether --with-gnutls was given.
3294 if test "${with_gnutls+set}" = set; then :
3295 withval=$with_gnutls;
3299 # Check whether --with-gsm was given.
3300 if test "${with_gsm+set}" = set; then :
3301 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3305 # Check whether --with-gstreamer was given.
3306 if test "${with_gstreamer+set}" = set; then :
3307 withval=$with_gstreamer;
3311 # Check whether --with-hal was given.
3312 if test "${with_hal+set}" = set; then :
3313 withval=$with_hal;
3317 # Check whether --with-jpeg was given.
3318 if test "${with_jpeg+set}" = set; then :
3319 withval=$with_jpeg;
3323 # Check whether --with-ldap was given.
3324 if test "${with_ldap+set}" = set; then :
3325 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3329 # Check whether --with-mpg123 was given.
3330 if test "${with_mpg123+set}" = set; then :
3331 withval=$with_mpg123;
3335 # Check whether --with-netapi was given.
3336 if test "${with_netapi+set}" = set; then :
3337 withval=$with_netapi;
3341 # Check whether --with-openal was given.
3342 if test "${with_openal+set}" = set; then :
3343 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3347 # Check whether --with-opencl was given.
3348 if test "${with_opencl+set}" = set; then :
3349 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3353 # Check whether --with-opengl was given.
3354 if test "${with_opengl+set}" = set; then :
3355 withval=$with_opengl;
3359 # Check whether --with-osmesa was given.
3360 if test "${with_osmesa+set}" = set; then :
3361 withval=$with_osmesa;
3365 # Check whether --with-oss was given.
3366 if test "${with_oss+set}" = set; then :
3367 withval=$with_oss;
3371 # Check whether --with-pcap was given.
3372 if test "${with_pcap+set}" = set; then :
3373 withval=$with_pcap; if test "x$withval" = "xno"; then ac_cv_header_pcap_pcap_h=no; fi
3377 # Check whether --with-png was given.
3378 if test "${with_png+set}" = set; then :
3379 withval=$with_png;
3383 # Check whether --with-pthread was given.
3384 if test "${with_pthread+set}" = set; then :
3385 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3389 # Check whether --with-sane was given.
3390 if test "${with_sane+set}" = set; then :
3391 withval=$with_sane;
3395 # Check whether --with-tiff was given.
3396 if test "${with_tiff+set}" = set; then :
3397 withval=$with_tiff;
3401 # Check whether --with-v4l was given.
3402 if test "${with_v4l+set}" = set; then :
3403 withval=$with_v4l;
3407 # Check whether --with-xcomposite was given.
3408 if test "${with_xcomposite+set}" = set; then :
3409 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3413 # Check whether --with-xcursor was given.
3414 if test "${with_xcursor+set}" = set; then :
3415 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3419 # Check whether --with-xinerama was given.
3420 if test "${with_xinerama+set}" = set; then :
3421 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3425 # Check whether --with-xinput was given.
3426 if test "${with_xinput+set}" = set; then :
3427 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3431 # Check whether --with-xinput2 was given.
3432 if test "${with_xinput2+set}" = set; then :
3433 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3437 # Check whether --with-xml was given.
3438 if test "${with_xml+set}" = set; then :
3439 withval=$with_xml;
3443 # Check whether --with-xrandr was given.
3444 if test "${with_xrandr+set}" = set; then :
3445 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3449 # Check whether --with-xrender was given.
3450 if test "${with_xrender+set}" = set; then :
3451 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3455 # Check whether --with-xshape was given.
3456 if test "${with_xshape+set}" = set; then :
3457 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3461 # Check whether --with-xshm was given.
3462 if test "${with_xshm+set}" = set; then :
3463 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3467 # Check whether --with-xslt was given.
3468 if test "${with_xslt+set}" = set; then :
3469 withval=$with_xslt;
3473 # Check whether --with-xxf86vm was given.
3474 if test "${with_xxf86vm+set}" = set; then :
3475 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
3479 # Check whether --with-zlib was given.
3480 if test "${with_zlib+set}" = set; then :
3481 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3486 # Check whether --with-wine-tools was given.
3487 if test "${with_wine_tools+set}" = set; then :
3488 withval=$with_wine_tools;
3492 # Check whether --with-wine64 was given.
3493 if test "${with_wine64+set}" = set; then :
3494 withval=$with_wine64;
3498 # Make sure we can run config.sub.
3499 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3503 $as_echo_n "checking build system type... " >&6; }
3504 if ${ac_cv_build+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 ac_build_alias=$build_alias
3508 test "x$ac_build_alias" = x &&
3509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3510 test "x$ac_build_alias" = x &&
3511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3517 $as_echo "$ac_cv_build" >&6; }
3518 case $ac_cv_build in
3519 *-*-*) ;;
3520 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3521 esac
3522 build=$ac_cv_build
3523 ac_save_IFS=$IFS; IFS='-'
3524 set x $ac_cv_build
3525 shift
3526 build_cpu=$1
3527 build_vendor=$2
3528 shift; shift
3529 # Remember, the first character of IFS is used to create $*,
3530 # except with old shells:
3531 build_os=$*
3532 IFS=$ac_save_IFS
3533 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3537 $as_echo_n "checking host system type... " >&6; }
3538 if ${ac_cv_host+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test "x$host_alias" = x; then
3542 ac_cv_host=$ac_cv_build
3543 else
3544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3550 $as_echo "$ac_cv_host" >&6; }
3551 case $ac_cv_host in
3552 *-*-*) ;;
3553 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3554 esac
3555 host=$ac_cv_host
3556 ac_save_IFS=$IFS; IFS='-'
3557 set x $ac_cv_host
3558 shift
3559 host_cpu=$1
3560 host_vendor=$2
3561 shift; shift
3562 # Remember, the first character of IFS is used to create $*,
3563 # except with old shells:
3564 host_os=$*
3565 IFS=$ac_save_IFS
3566 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3570 case "$srcdir" in
3571 .) ;;
3572 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3573 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3574 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3575 fi ;;
3576 esac
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3580 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3581 set x ${MAKE-make}
3582 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3583 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 cat >conftest.make <<\_ACEOF
3587 SHELL = /bin/sh
3588 all:
3589 @echo '@@@%%%=$(MAKE)=@@@%%%'
3590 _ACEOF
3591 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3592 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3593 *@@@%%%=?*=@@@%%%*)
3594 eval ac_cv_prog_make_${ac_make}_set=yes;;
3596 eval ac_cv_prog_make_${ac_make}_set=no;;
3597 esac
3598 rm -f conftest.make
3600 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3602 $as_echo "yes" >&6; }
3603 SET_MAKE=
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3607 SET_MAKE="MAKE=${MAKE-make}"
3610 ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 if test -n "$ac_tool_prefix"; then
3616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if ${ac_cv_prog_CC+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3637 done
3638 done
3639 IFS=$as_save_IFS
3643 CC=$ac_cv_prog_CC
3644 if test -n "$CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646 $as_echo "$CC" >&6; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3654 if test -z "$ac_cv_prog_CC"; then
3655 ac_ct_CC=$CC
3656 # Extract the first word of "gcc", so it can be a program name with args.
3657 set dummy gcc; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -n "$ac_ct_CC"; then
3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_ac_ct_CC="gcc"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3677 done
3678 done
3679 IFS=$as_save_IFS
3683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684 if test -n "$ac_ct_CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3686 $as_echo "$ac_ct_CC" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3692 if test "x$ac_ct_CC" = x; then
3693 CC=""
3694 else
3695 case $cross_compiling:$ac_tool_warned in
3696 yes:)
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699 ac_tool_warned=yes ;;
3700 esac
3701 CC=$ac_ct_CC
3703 else
3704 CC="$ac_cv_prog_CC"
3707 if test -z "$CC"; then
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}cc; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_CC+:} false; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 if test -n "$CC"; then
3717 ac_cv_prog_CC="$CC" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_CC="${ac_tool_prefix}cc"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 break 2
3730 done
3731 done
3732 IFS=$as_save_IFS
3736 CC=$ac_cv_prog_CC
3737 if test -n "$CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739 $as_echo "$CC" >&6; }
3740 else
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3748 if test -z "$CC"; then
3749 # Extract the first word of "cc", so it can be a program name with args.
3750 set dummy cc; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_CC+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758 else
3759 ac_prog_rejected=no
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3768 ac_prog_rejected=yes
3769 continue
3771 ac_cv_prog_CC="cc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3775 done
3776 done
3777 IFS=$as_save_IFS
3779 if test $ac_prog_rejected = yes; then
3780 # We found a bogon in the path, so make sure we never use it.
3781 set dummy $ac_cv_prog_CC
3782 shift
3783 if test $# != 0; then
3784 # We chose a different compiler from the bogus one.
3785 # However, it has the same basename, so the bogon will be chosen
3786 # first if we set CC to just the basename; use the full file name.
3787 shift
3788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3797 else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3804 if test -z "$CC"; then
3805 if test -n "$ac_tool_prefix"; then
3806 for ac_prog in cl.exe
3808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if ${ac_cv_prog_CC+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 break 2
3829 done
3830 done
3831 IFS=$as_save_IFS
3835 CC=$ac_cv_prog_CC
3836 if test -n "$CC"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838 $as_echo "$CC" >&6; }
3839 else
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3845 test -n "$CC" && break
3846 done
3848 if test -z "$CC"; then
3849 ac_ct_CC=$CC
3850 for ac_prog in cl.exe
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 if test -n "$ac_ct_CC"; then
3860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_ac_ct_CC="$ac_prog"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3873 done
3874 done
3875 IFS=$as_save_IFS
3879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880 if test -n "$ac_ct_CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882 $as_echo "$ac_ct_CC" >&6; }
3883 else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3889 test -n "$ac_ct_CC" && break
3890 done
3892 if test "x$ac_ct_CC" = x; then
3893 CC=""
3894 else
3895 case $cross_compiling:$ac_tool_warned in
3896 yes:)
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899 ac_tool_warned=yes ;;
3900 esac
3901 CC=$ac_ct_CC
3908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error $? "no acceptable C compiler found in \$PATH
3911 See \`config.log' for more details" "$LINENO" 5; }
3913 # Provide some information about the compiler.
3914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3915 set X $ac_compile
3916 ac_compiler=$2
3917 for ac_option in --version -v -V -qversion; do
3918 { { ac_try="$ac_compiler $ac_option >&5"
3919 case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3926 ac_status=$?
3927 if test -s conftest.err; then
3928 sed '10a\
3929 ... rest of stderr output deleted ...
3930 10q' conftest.err >conftest.er1
3931 cat conftest.er1 >&5
3933 rm -f conftest.er1 conftest.err
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936 done
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3942 main ()
3946 return 0;
3948 _ACEOF
3949 ac_clean_files_save=$ac_clean_files
3950 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3951 # Try to create an executable without -o first, disregard a.out.
3952 # It will help us diagnose broken compilers, and finding out an intuition
3953 # of exeext.
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3955 $as_echo_n "checking whether the C compiler works... " >&6; }
3956 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3958 # The possible output files:
3959 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3961 ac_rmfiles=
3962 for ac_file in $ac_files
3964 case $ac_file in
3965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3967 esac
3968 done
3969 rm -f $ac_rmfiles
3971 if { { ac_try="$ac_link_default"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_link_default") 2>&5
3979 ac_status=$?
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3983 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3984 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3985 # so that the user can short-circuit this test for compilers unknown to
3986 # Autoconf.
3987 for ac_file in $ac_files ''
3989 test -f "$ac_file" || continue
3990 case $ac_file in
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3993 [ab].out )
3994 # We found the default executable, but exeext='' is most
3995 # certainly right.
3996 break;;
3997 *.* )
3998 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3999 then :; else
4000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4002 # We set ac_cv_exeext here because the later test for it is not
4003 # safe: cross compilers may not add the suffix if given an `-o'
4004 # argument, so we may need to know it at that point already.
4005 # Even if this section looks crufty: it has the advantage of
4006 # actually working.
4007 break;;
4009 break;;
4010 esac
4011 done
4012 test "$ac_cv_exeext" = no && ac_cv_exeext=
4014 else
4015 ac_file=''
4017 if test -z "$ac_file"; then :
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4020 $as_echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error 77 "C compiler cannot create executables
4026 See \`config.log' for more details" "$LINENO" 5; }
4027 else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4029 $as_echo "yes" >&6; }
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4032 $as_echo_n "checking for C compiler default output file name... " >&6; }
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4034 $as_echo "$ac_file" >&6; }
4035 ac_exeext=$ac_cv_exeext
4037 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4038 ac_clean_files=$ac_clean_files_save
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4040 $as_echo_n "checking for suffix of executables... " >&6; }
4041 if { { ac_try="$ac_link"
4042 case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045 esac
4046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 $as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_link") 2>&5
4049 ac_status=$?
4050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }; then :
4052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4053 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4054 # work properly (i.e., refer to `conftest.exe'), while it won't with
4055 # `rm'.
4056 for ac_file in conftest.exe conftest conftest.*; do
4057 test -f "$ac_file" || continue
4058 case $ac_file in
4059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4061 break;;
4062 * ) break;;
4063 esac
4064 done
4065 else
4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4068 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4069 See \`config.log' for more details" "$LINENO" 5; }
4071 rm -f conftest conftest$ac_cv_exeext
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4073 $as_echo "$ac_cv_exeext" >&6; }
4075 rm -f conftest.$ac_ext
4076 EXEEXT=$ac_cv_exeext
4077 ac_exeext=$EXEEXT
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <stdio.h>
4082 main ()
4084 FILE *f = fopen ("conftest.out", "w");
4085 return ferror (f) || fclose (f) != 0;
4088 return 0;
4090 _ACEOF
4091 ac_clean_files="$ac_clean_files conftest.out"
4092 # Check that the compiler produces executables we can run. If not, either
4093 # the compiler is broken, or we cross compile.
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4095 $as_echo_n "checking whether we are cross compiling... " >&6; }
4096 if test "$cross_compiling" != yes; then
4097 { { ac_try="$ac_link"
4098 case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101 esac
4102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103 $as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_link") 2>&5
4105 ac_status=$?
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }
4108 if { ac_try='./conftest$ac_cv_exeext'
4109 { { case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112 esac
4113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4114 $as_echo "$ac_try_echo"; } >&5
4115 (eval "$ac_try") 2>&5
4116 ac_status=$?
4117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; }; }; then
4119 cross_compiling=no
4120 else
4121 if test "$cross_compiling" = maybe; then
4122 cross_compiling=yes
4123 else
4124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4126 as_fn_error $? "cannot run C compiled programs.
4127 If you meant to cross compile, use \`--host'.
4128 See \`config.log' for more details" "$LINENO" 5; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4133 $as_echo "$cross_compiling" >&6; }
4135 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4136 ac_clean_files=$ac_clean_files_save
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4138 $as_echo_n "checking for suffix of object files... " >&6; }
4139 if ${ac_cv_objext+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4146 main ()
4150 return 0;
4152 _ACEOF
4153 rm -f conftest.o conftest.obj
4154 if { { ac_try="$ac_compile"
4155 case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160 $as_echo "$ac_try_echo"; } >&5
4161 (eval "$ac_compile") 2>&5
4162 ac_status=$?
4163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4164 test $ac_status = 0; }; then :
4165 for ac_file in conftest.o conftest.obj conftest.*; do
4166 test -f "$ac_file" || continue;
4167 case $ac_file in
4168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4169 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4170 break;;
4171 esac
4172 done
4173 else
4174 $as_echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error $? "cannot compute suffix of object files: cannot compile
4180 See \`config.log' for more details" "$LINENO" 5; }
4182 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4185 $as_echo "$ac_cv_objext" >&6; }
4186 OBJEXT=$ac_cv_objext
4187 ac_objext=$OBJEXT
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4189 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4190 if ${ac_cv_c_compiler_gnu+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4197 main ()
4199 #ifndef __GNUC__
4200 choke me
4201 #endif
4204 return 0;
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_compiler_gnu=yes
4209 else
4210 ac_compiler_gnu=no
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4217 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4218 if test $ac_compiler_gnu = yes; then
4219 GCC=yes
4220 else
4221 GCC=
4223 ac_test_CFLAGS=${CFLAGS+set}
4224 ac_save_CFLAGS=$CFLAGS
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4226 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4227 if ${ac_cv_prog_cc_g+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 ac_save_c_werror_flag=$ac_c_werror_flag
4231 ac_c_werror_flag=yes
4232 ac_cv_prog_cc_g=no
4233 CFLAGS="-g"
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4238 main ()
4242 return 0;
4244 _ACEOF
4245 if ac_fn_c_try_compile "$LINENO"; then :
4246 ac_cv_prog_cc_g=yes
4247 else
4248 CFLAGS=""
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4253 main ()
4257 return 0;
4259 _ACEOF
4260 if ac_fn_c_try_compile "$LINENO"; then :
4262 else
4263 ac_c_werror_flag=$ac_save_c_werror_flag
4264 CFLAGS="-g"
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4269 main ()
4273 return 0;
4275 _ACEOF
4276 if ac_fn_c_try_compile "$LINENO"; then :
4277 ac_cv_prog_cc_g=yes
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 ac_c_werror_flag=$ac_save_c_werror_flag
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4287 $as_echo "$ac_cv_prog_cc_g" >&6; }
4288 if test "$ac_test_CFLAGS" = set; then
4289 CFLAGS=$ac_save_CFLAGS
4290 elif test $ac_cv_prog_cc_g = yes; then
4291 if test "$GCC" = yes; then
4292 CFLAGS="-g -O2"
4293 else
4294 CFLAGS="-g"
4296 else
4297 if test "$GCC" = yes; then
4298 CFLAGS="-O2"
4299 else
4300 CFLAGS=
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4304 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4305 if ${ac_cv_prog_cc_c89+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 ac_cv_prog_cc_c89=no
4309 ac_save_CC=$CC
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312 #include <stdarg.h>
4313 #include <stdio.h>
4314 struct stat;
4315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4316 struct buf { int x; };
4317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4318 static char *e (p, i)
4319 char **p;
4320 int i;
4322 return p[i];
4324 static char *f (char * (*g) (char **, int), char **p, ...)
4326 char *s;
4327 va_list v;
4328 va_start (v,p);
4329 s = g (p, va_arg (v,int));
4330 va_end (v);
4331 return s;
4334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4335 function prototypes and stuff, but not '\xHH' hex character constants.
4336 These don't provoke an error unfortunately, instead are silently treated
4337 as 'x'. The following induces an error, until -std is added to get
4338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4339 array size at least. It's necessary to write '\x00'==0 to get something
4340 that's true only with -std. */
4341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4344 inside strings and character constants. */
4345 #define FOO(x) 'x'
4346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4348 int test (int i, double x);
4349 struct s1 {int (*f) (int a);};
4350 struct s2 {int (*f) (double a);};
4351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4352 int argc;
4353 char **argv;
4355 main ()
4357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4359 return 0;
4361 _ACEOF
4362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4365 CC="$ac_save_CC $ac_arg"
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367 ac_cv_prog_cc_c89=$ac_arg
4369 rm -f core conftest.err conftest.$ac_objext
4370 test "x$ac_cv_prog_cc_c89" != "xno" && break
4371 done
4372 rm -f conftest.$ac_ext
4373 CC=$ac_save_CC
4376 # AC_CACHE_VAL
4377 case "x$ac_cv_prog_cc_c89" in
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4380 $as_echo "none needed" >&6; } ;;
4381 xno)
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4383 $as_echo "unsupported" >&6; } ;;
4385 CC="$CC $ac_cv_prog_cc_c89"
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4387 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4388 esac
4389 if test "x$ac_cv_prog_cc_c89" != xno; then :
4393 ac_ext=c
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399 ac_ext=cpp
4400 ac_cpp='$CXXCPP $CPPFLAGS'
4401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4404 if test -z "$CXX"; then
4405 if test -n "$CCC"; then
4406 CXX=$CCC
4407 else
4408 if test -n "$ac_tool_prefix"; then
4409 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if ${ac_cv_prog_CXX+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$CXX"; then
4419 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 CXX=$ac_cv_prog_CXX
4439 if test -n "$CXX"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4441 $as_echo "$CXX" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4448 test -n "$CXX" && break
4449 done
4451 if test -z "$CXX"; then
4452 ac_ct_CXX=$CXX
4453 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4455 # Extract the first word of "$ac_prog", so it can be a program name with args.
4456 set dummy $ac_prog; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$ac_ct_CXX"; then
4463 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_ac_ct_CXX="$ac_prog"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4476 done
4477 done
4478 IFS=$as_save_IFS
4482 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4483 if test -n "$ac_ct_CXX"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4485 $as_echo "$ac_ct_CXX" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4492 test -n "$ac_ct_CXX" && break
4493 done
4495 if test "x$ac_ct_CXX" = x; then
4496 CXX="g++"
4497 else
4498 case $cross_compiling:$ac_tool_warned in
4499 yes:)
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4502 ac_tool_warned=yes ;;
4503 esac
4504 CXX=$ac_ct_CXX
4510 # Provide some information about the compiler.
4511 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4512 set X $ac_compile
4513 ac_compiler=$2
4514 for ac_option in --version -v -V -qversion; do
4515 { { ac_try="$ac_compiler $ac_option >&5"
4516 case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519 esac
4520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521 $as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4523 ac_status=$?
4524 if test -s conftest.err; then
4525 sed '10a\
4526 ... rest of stderr output deleted ...
4527 10q' conftest.err >conftest.er1
4528 cat conftest.er1 >&5
4530 rm -f conftest.er1 conftest.err
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }
4533 done
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4536 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4537 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4544 main ()
4546 #ifndef __GNUC__
4547 choke me
4548 #endif
4551 return 0;
4553 _ACEOF
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4555 ac_compiler_gnu=yes
4556 else
4557 ac_compiler_gnu=no
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4564 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4565 if test $ac_compiler_gnu = yes; then
4566 GXX=yes
4567 else
4568 GXX=
4570 ac_test_CXXFLAGS=${CXXFLAGS+set}
4571 ac_save_CXXFLAGS=$CXXFLAGS
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4573 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4574 if ${ac_cv_prog_cxx_g+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4578 ac_cxx_werror_flag=yes
4579 ac_cv_prog_cxx_g=no
4580 CXXFLAGS="-g"
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4585 main ()
4589 return 0;
4591 _ACEOF
4592 if ac_fn_cxx_try_compile "$LINENO"; then :
4593 ac_cv_prog_cxx_g=yes
4594 else
4595 CXXFLAGS=""
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4600 main ()
4604 return 0;
4606 _ACEOF
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4609 else
4610 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4611 CXXFLAGS="-g"
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4616 main ()
4620 return 0;
4622 _ACEOF
4623 if ac_fn_cxx_try_compile "$LINENO"; then :
4624 ac_cv_prog_cxx_g=yes
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4634 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4635 if test "$ac_test_CXXFLAGS" = set; then
4636 CXXFLAGS=$ac_save_CXXFLAGS
4637 elif test $ac_cv_prog_cxx_g = yes; then
4638 if test "$GXX" = yes; then
4639 CXXFLAGS="-g -O2"
4640 else
4641 CXXFLAGS="-g"
4643 else
4644 if test "$GXX" = yes; then
4645 CXXFLAGS="-O2"
4646 else
4647 CXXFLAGS=
4650 ac_ext=c
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 if test -n "$ac_tool_prefix"; then
4657 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if ${ac_cv_prog_CPPBIN+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if test -n "$CPPBIN"; then
4665 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4678 done
4679 done
4680 IFS=$as_save_IFS
4684 CPPBIN=$ac_cv_prog_CPPBIN
4685 if test -n "$CPPBIN"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4687 $as_echo "$CPPBIN" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4695 if test -z "$ac_cv_prog_CPPBIN"; then
4696 ac_ct_CPPBIN=$CPPBIN
4697 # Extract the first word of "cpp", so it can be a program name with args.
4698 set dummy cpp; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$ac_ct_CPPBIN"; then
4705 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_ac_ct_CPPBIN="cpp"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4718 done
4719 done
4720 IFS=$as_save_IFS
4724 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4725 if test -n "$ac_ct_CPPBIN"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4727 $as_echo "$ac_ct_CPPBIN" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4733 if test "x$ac_ct_CPPBIN" = x; then
4734 CPPBIN="cpp"
4735 else
4736 case $cross_compiling:$ac_tool_warned in
4737 yes:)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740 ac_tool_warned=yes ;;
4741 esac
4742 CPPBIN=$ac_ct_CPPBIN
4744 else
4745 CPPBIN="$ac_cv_prog_CPPBIN"
4749 cat >>confdefs.h <<_ACEOF
4750 #define EXEEXT "$ac_exeext"
4751 _ACEOF
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4755 set dummy ${ac_tool_prefix}ld; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if ${ac_cv_prog_LD+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -n "$LD"; then
4762 ac_cv_prog_LD="$LD" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_LD="${ac_tool_prefix}ld"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4777 IFS=$as_save_IFS
4781 LD=$ac_cv_prog_LD
4782 if test -n "$LD"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4784 $as_echo "$LD" >&6; }
4785 else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4792 if test -z "$ac_cv_prog_LD"; then
4793 ac_ct_LD=$LD
4794 # Extract the first word of "ld", so it can be a program name with args.
4795 set dummy ld; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_prog_ac_ct_LD+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -n "$ac_ct_LD"; then
4802 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_ac_ct_LD="ld"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4815 done
4816 done
4817 IFS=$as_save_IFS
4821 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4822 if test -n "$ac_ct_LD"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
4824 $as_echo "$ac_ct_LD" >&6; }
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4830 if test "x$ac_ct_LD" = x; then
4831 LD=""
4832 else
4833 case $cross_compiling:$ac_tool_warned in
4834 yes:)
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837 ac_tool_warned=yes ;;
4838 esac
4839 LD=$ac_ct_LD
4841 else
4842 LD="$ac_cv_prog_LD"
4846 case $host in
4847 *-darwin*)
4848 if test "x$enable_win64" = "xyes"
4849 then
4850 CC="$CC -m64"
4851 CXX="$CXX -m64"
4852 host_cpu="x86_64"
4853 notice_platform="64-bit "
4854 TARGETFLAGS="-m64"
4856 else
4857 CC="$CC -m32"
4858 CXX="$CXX -m32"
4859 host_cpu="i386"
4860 notice_platform="32-bit "
4861 TARGETFLAGS="-m32"
4863 enable_win16=${enable_win16:-yes}
4865 with_fontconfig=${with_fontconfig:-no}
4867 x86_64*)
4868 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4869 then
4870 CC="$CC -m32"
4871 CXX="$CXX -m32"
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4873 $as_echo_n "checking whether $CC works... " >&6; }
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4879 main ()
4883 return 0;
4885 _ACEOF
4886 if ac_fn_c_try_link "$LINENO"; then :
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4888 $as_echo "yes" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4892 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4894 rm -f core conftest.err conftest.$ac_objext \
4895 conftest$ac_exeext conftest.$ac_ext
4896 host_cpu="i386"
4897 notice_platform="32-bit "
4898 TARGETFLAGS="-m32"
4900 enable_win16=${enable_win16:-yes}
4901 else
4902 if test "x${GCC}" = "xyes"
4903 then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4905 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908 #include <stdarg.h>
4910 main ()
4912 void func(__builtin_ms_va_list *args);
4914 return 0;
4916 _ACEOF
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919 $as_echo "yes" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 TARGETFLAGS="-m64"
4931 arm*)
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4933 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4936 int ac_test(int i) { return i; }
4938 main ()
4940 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4942 return 0;
4944 _ACEOF
4945 if ac_fn_c_try_link "$LINENO"; then :
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4947 $as_echo "yes" >&6; }
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4951 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4953 rm -f core conftest.err conftest.$ac_objext \
4954 conftest$ac_exeext conftest.$ac_ext
4955 CFLAGS="$CFLAGS -marm"
4956 TARGETFLAGS="-marm"
4959 *-mingw32*|*-cygwin*)
4960 enable_win16=${enable_win16:-no}
4961 CFLAGS="$CFLAGS -D_WIN32"
4963 i[3456789]86*)
4964 enable_win16=${enable_win16:-yes}
4966 esac
4968 enable_win16=${enable_win16:-no}
4969 enable_win64=${enable_win64:-no}
4971 enable_winetest=${enable_winetest:-$enable_tests}
4973 if test -n "$with_wine64"
4974 then
4975 if test "x$enable_win64" = "xyes"
4976 then
4977 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4978 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4980 enable_fonts=${enable_fonts:-no}
4981 enable_server=${enable_server:-no}
4982 elif test "x$enable_win64" = "xyes"
4983 then
4984 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4988 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4989 if ${wine_cv_toolsdir+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 wine_cv_toolsdir="$with_wine_tools"
4993 if test -z "$with_wine_tools"; then
4994 if test "$cross_compiling" = "yes"; then
4995 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4996 elif test -n "$with_wine64"; then
4997 wine_cv_toolsdir="$with_wine64"
5000 if test -z "$wine_cv_toolsdir"; then
5001 wine_makedep=tools/makedep
5002 wine_cv_toolsdir="\$(top_builddir)"
5003 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
5004 wine_makedep=$wine_cv_toolsdir/tools/makedep
5005 case "$wine_cv_toolsdir" in
5006 /*) ;;
5007 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
5008 esac
5009 enable_tools=${enable_tools:-no}
5010 test -f "$wine_makedep" || as_fn_error $? "the Wine tools have not yet been built in $wine_cv_toolsdir" "$LINENO" 5
5011 else
5012 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
5016 $as_echo "$wine_cv_toolsdir" >&6; }
5017 TOOLSDIR=$wine_cv_toolsdir
5019 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
5020 then
5021 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
5025 for ac_prog in flex
5027 # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy $ac_prog; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_FLEX+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -n "$FLEX"; then
5035 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_FLEX="$ac_prog"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5048 done
5049 done
5050 IFS=$as_save_IFS
5054 FLEX=$ac_cv_prog_FLEX
5055 if test -n "$FLEX"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5057 $as_echo "$FLEX" >&6; }
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5064 test -n "$FLEX" && break
5065 done
5066 test -n "$FLEX" || FLEX="none"
5068 if test "$FLEX" = "none"
5069 then
5070 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
5073 $as_echo_n "checking whether flex is recent enough... " >&6; }
5074 cat >conftest.l <<EOF
5075 %top{
5076 #include "prediluvian.h"
5080 if $FLEX -t conftest.l >/dev/null 2>&5
5081 then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5083 $as_echo "yes" >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
5090 for ac_prog in bison
5092 # Extract the first word of "$ac_prog", so it can be a program name with args.
5093 set dummy $ac_prog; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if ${ac_cv_prog_BISON+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if test -n "$BISON"; then
5100 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5101 else
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5109 ac_cv_prog_BISON="$ac_prog"
5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5113 done
5114 done
5115 IFS=$as_save_IFS
5119 BISON=$ac_cv_prog_BISON
5120 if test -n "$BISON"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5122 $as_echo "$BISON" >&6; }
5123 else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5129 test -n "$BISON" && break
5130 done
5131 test -n "$BISON" || BISON="none"
5133 if test "$BISON" = "none"
5134 then
5135 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
5138 if test -n "$ac_tool_prefix"; then
5139 for ac_prog in ar gar
5141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if ${ac_cv_prog_AR+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 if test -n "$AR"; then
5149 ac_cv_prog_AR="$AR" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5162 done
5163 done
5164 IFS=$as_save_IFS
5168 AR=$ac_cv_prog_AR
5169 if test -n "$AR"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5171 $as_echo "$AR" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5178 test -n "$AR" && break
5179 done
5181 if test -z "$AR"; then
5182 ac_ct_AR=$AR
5183 for ac_prog in ar gar
5185 # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$ac_ct_AR"; then
5193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_AR="$ac_prog"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5206 done
5207 done
5208 IFS=$as_save_IFS
5212 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5213 if test -n "$ac_ct_AR"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5215 $as_echo "$ac_ct_AR" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5222 test -n "$ac_ct_AR" && break
5223 done
5225 if test "x$ac_ct_AR" = x; then
5226 AR="ar"
5227 else
5228 case $cross_compiling:$ac_tool_warned in
5229 yes:)
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232 ac_tool_warned=yes ;;
5233 esac
5234 AR=$ac_ct_AR
5238 if test -n "$ac_tool_prefix"; then
5239 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5240 set dummy ${ac_tool_prefix}strip; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if ${ac_cv_prog_STRIP+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test -n "$STRIP"; then
5247 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5260 done
5261 done
5262 IFS=$as_save_IFS
5266 STRIP=$ac_cv_prog_STRIP
5267 if test -n "$STRIP"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5269 $as_echo "$STRIP" >&6; }
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5277 if test -z "$ac_cv_prog_STRIP"; then
5278 ac_ct_STRIP=$STRIP
5279 # Extract the first word of "strip", so it can be a program name with args.
5280 set dummy strip; ac_word=$2
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 if test -n "$ac_ct_STRIP"; then
5287 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5296 ac_cv_prog_ac_ct_STRIP="strip"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5300 done
5301 done
5302 IFS=$as_save_IFS
5306 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5307 if test -n "$ac_ct_STRIP"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5309 $as_echo "$ac_ct_STRIP" >&6; }
5310 else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5315 if test "x$ac_ct_STRIP" = x; then
5316 STRIP="strip"
5317 else
5318 case $cross_compiling:$ac_tool_warned in
5319 yes:)
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5322 ac_tool_warned=yes ;;
5323 esac
5324 STRIP=$ac_ct_STRIP
5326 else
5327 STRIP="$ac_cv_prog_STRIP"
5330 ARFLAGS=rc
5332 if test -n "$ac_tool_prefix"; then
5333 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5334 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if ${ac_cv_prog_RANLIB+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 if test -n "$RANLIB"; then
5341 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5356 IFS=$as_save_IFS
5360 RANLIB=$ac_cv_prog_RANLIB
5361 if test -n "$RANLIB"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5363 $as_echo "$RANLIB" >&6; }
5364 else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5371 if test -z "$ac_cv_prog_RANLIB"; then
5372 ac_ct_RANLIB=$RANLIB
5373 # Extract the first word of "ranlib", so it can be a program name with args.
5374 set dummy ranlib; ac_word=$2
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376 $as_echo_n "checking for $ac_word... " >&6; }
5377 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 if test -n "$ac_ct_RANLIB"; then
5381 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5382 else
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390 ac_cv_prog_ac_ct_RANLIB="ranlib"
5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 break 2
5394 done
5395 done
5396 IFS=$as_save_IFS
5400 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5401 if test -n "$ac_ct_RANLIB"; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5403 $as_echo "$ac_ct_RANLIB" >&6; }
5404 else
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5409 if test "x$ac_ct_RANLIB" = x; then
5410 RANLIB=":"
5411 else
5412 case $cross_compiling:$ac_tool_warned in
5413 yes:)
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5416 ac_tool_warned=yes ;;
5417 esac
5418 RANLIB=$ac_ct_RANLIB
5420 else
5421 RANLIB="$ac_cv_prog_RANLIB"
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5425 $as_echo_n "checking whether ln -s works... " >&6; }
5426 LN_S=$as_ln_s
5427 if test "$LN_S" = "ln -s"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429 $as_echo "yes" >&6; }
5430 else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5432 $as_echo "no, using $LN_S" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5436 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5437 if ${ac_cv_path_GREP+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if test -z "$GREP"; then
5441 ac_path_GREP_found=false
5442 # Loop through the user's path and test for each of PROGNAME-LIST
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_prog in grep ggrep; do
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5451 as_fn_executable_p "$ac_path_GREP" || continue
5452 # Check for GNU ac_path_GREP and select it if it is found.
5453 # Check for GNU $ac_path_GREP
5454 case `"$ac_path_GREP" --version 2>&1` in
5455 *GNU*)
5456 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5458 ac_count=0
5459 $as_echo_n 0123456789 >"conftest.in"
5460 while :
5462 cat "conftest.in" "conftest.in" >"conftest.tmp"
5463 mv "conftest.tmp" "conftest.in"
5464 cp "conftest.in" "conftest.nl"
5465 $as_echo 'GREP' >> "conftest.nl"
5466 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5468 as_fn_arith $ac_count + 1 && ac_count=$as_val
5469 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5470 # Best one so far, save it but keep looking for a better one
5471 ac_cv_path_GREP="$ac_path_GREP"
5472 ac_path_GREP_max=$ac_count
5474 # 10*(2^10) chars as input seems more than enough
5475 test $ac_count -gt 10 && break
5476 done
5477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5478 esac
5480 $ac_path_GREP_found && break 3
5481 done
5482 done
5483 done
5484 IFS=$as_save_IFS
5485 if test -z "$ac_cv_path_GREP"; then
5486 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5488 else
5489 ac_cv_path_GREP=$GREP
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5494 $as_echo "$ac_cv_path_GREP" >&6; }
5495 GREP="$ac_cv_path_GREP"
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5499 $as_echo_n "checking for egrep... " >&6; }
5500 if ${ac_cv_path_EGREP+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5504 then ac_cv_path_EGREP="$GREP -E"
5505 else
5506 if test -z "$EGREP"; then
5507 ac_path_EGREP_found=false
5508 # Loop through the user's path and test for each of PROGNAME-LIST
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_prog in egrep; do
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5517 as_fn_executable_p "$ac_path_EGREP" || continue
5518 # Check for GNU ac_path_EGREP and select it if it is found.
5519 # Check for GNU $ac_path_EGREP
5520 case `"$ac_path_EGREP" --version 2>&1` in
5521 *GNU*)
5522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5524 ac_count=0
5525 $as_echo_n 0123456789 >"conftest.in"
5526 while :
5528 cat "conftest.in" "conftest.in" >"conftest.tmp"
5529 mv "conftest.tmp" "conftest.in"
5530 cp "conftest.in" "conftest.nl"
5531 $as_echo 'EGREP' >> "conftest.nl"
5532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5534 as_fn_arith $ac_count + 1 && ac_count=$as_val
5535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5536 # Best one so far, save it but keep looking for a better one
5537 ac_cv_path_EGREP="$ac_path_EGREP"
5538 ac_path_EGREP_max=$ac_count
5540 # 10*(2^10) chars as input seems more than enough
5541 test $ac_count -gt 10 && break
5542 done
5543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5544 esac
5546 $ac_path_EGREP_found && break 3
5547 done
5548 done
5549 done
5550 IFS=$as_save_IFS
5551 if test -z "$ac_cv_path_EGREP"; then
5552 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5554 else
5555 ac_cv_path_EGREP=$EGREP
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5561 $as_echo "$ac_cv_path_EGREP" >&6; }
5562 EGREP="$ac_cv_path_EGREP"
5565 # Extract the first word of "ldconfig", so it can be a program name with args.
5566 set dummy ldconfig; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_path_LDCONFIG+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 case $LDCONFIG in
5573 [\\/]* | ?:[\\/]*)
5574 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in /sbin /usr/sbin $PATH
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5588 done
5589 done
5590 IFS=$as_save_IFS
5592 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5594 esac
5596 LDCONFIG=$ac_cv_path_LDCONFIG
5597 if test -n "$LDCONFIG"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5599 $as_echo "$LDCONFIG" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5606 for ac_prog in msgfmt
5608 # Extract the first word of "$ac_prog", so it can be a program name with args.
5609 set dummy $ac_prog; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if ${ac_cv_prog_MSGFMT+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$MSGFMT"; then
5616 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625 ac_cv_prog_MSGFMT="$ac_prog"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5629 done
5630 done
5631 IFS=$as_save_IFS
5635 MSGFMT=$ac_cv_prog_MSGFMT
5636 if test -n "$MSGFMT"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5638 $as_echo "$MSGFMT" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5645 test -n "$MSGFMT" && break
5646 done
5647 test -n "$MSGFMT" || MSGFMT="false"
5649 if ${ac_tool_prefix+:} false; then :
5650 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5651 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 if test -n "$PKG_CONFIG"; then
5658 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5671 done
5672 done
5673 IFS=$as_save_IFS
5677 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5678 if test -n "$PKG_CONFIG"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5680 $as_echo "$PKG_CONFIG" >&6; }
5681 else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5688 if ${ac_cv_prog_PKG_CONFIG:+false} :; then :
5689 if test "x$cross_compiling" = xyes; then :
5691 else
5692 { ac_cv_prog_PKG_CONFIG=; unset ac_cv_prog_PKG_CONFIG;}
5693 # Extract the first word of "pkg-config", so it can be a program name with args.
5694 set dummy pkg-config; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -n "$PKG_CONFIG"; then
5701 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_PKG_CONFIG="pkg-config"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5714 done
5715 done
5716 IFS=$as_save_IFS
5720 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5721 if test -n "$PKG_CONFIG"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5723 $as_echo "$PKG_CONFIG" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5731 else
5732 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5735 if test "x$enable_maintainer_mode" != "xyes"
5736 then
5737 FONTFORGE=""
5738 RSVG=""
5739 CONVERT=""
5740 ICOTOOL=""
5741 else
5742 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5743 for ac_prog in fontforge
5745 # Extract the first word of "$ac_prog", so it can be a program name with args.
5746 set dummy $ac_prog; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if ${ac_cv_prog_FONTFORGE+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$FONTFORGE"; then
5753 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762 ac_cv_prog_FONTFORGE="$ac_prog"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5766 done
5767 done
5768 IFS=$as_save_IFS
5772 FONTFORGE=$ac_cv_prog_FONTFORGE
5773 if test -n "$FONTFORGE"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5775 $as_echo "$FONTFORGE" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5782 test -n "$FONTFORGE" && break
5783 done
5784 test -n "$FONTFORGE" || FONTFORGE="false"
5786 for ac_prog in rsvg-convert rsvg
5788 # Extract the first word of "$ac_prog", so it can be a program name with args.
5789 set dummy $ac_prog; ac_word=$2
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791 $as_echo_n "checking for $ac_word... " >&6; }
5792 if ${ac_cv_prog_RSVG+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if test -n "$RSVG"; then
5796 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5797 else
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5805 ac_cv_prog_RSVG="$ac_prog"
5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5809 done
5810 done
5811 IFS=$as_save_IFS
5815 RSVG=$ac_cv_prog_RSVG
5816 if test -n "$RSVG"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5818 $as_echo "$RSVG" >&6; }
5819 else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }
5825 test -n "$RSVG" && break
5826 done
5827 test -n "$RSVG" || RSVG="false"
5829 for ac_prog in convert
5831 # Extract the first word of "$ac_prog", so it can be a program name with args.
5832 set dummy $ac_prog; ac_word=$2
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834 $as_echo_n "checking for $ac_word... " >&6; }
5835 if ${ac_cv_prog_CONVERT+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if test -n "$CONVERT"; then
5839 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_CONVERT="$ac_prog"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5852 done
5853 done
5854 IFS=$as_save_IFS
5858 CONVERT=$ac_cv_prog_CONVERT
5859 if test -n "$CONVERT"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5861 $as_echo "$CONVERT" >&6; }
5862 else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5868 test -n "$CONVERT" && break
5869 done
5870 test -n "$CONVERT" || CONVERT="false"
5872 for ac_prog in icotool
5874 # Extract the first word of "$ac_prog", so it can be a program name with args.
5875 set dummy $ac_prog; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_ICOTOOL+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if test -n "$ICOTOOL"; then
5882 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_ICOTOOL="$ac_prog"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5895 done
5896 done
5897 IFS=$as_save_IFS
5901 ICOTOOL=$ac_cv_prog_ICOTOOL
5902 if test -n "$ICOTOOL"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5904 $as_echo "$ICOTOOL" >&6; }
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5911 test -n "$ICOTOOL" && break
5912 done
5913 test -n "$ICOTOOL" || ICOTOOL="false"
5915 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5916 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5918 if test "$CONVERT" = false
5919 then
5920 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5921 else
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5923 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5924 convert_version=`convert --version | head -n1`
5925 if test "x$convert_version" != "x"
5926 then
5927 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5928 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5929 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5930 then
5931 CONVERT=false
5934 if test "$CONVERT" = false
5935 then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5937 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5938 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5939 else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5941 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5945 if test "$ICOTOOL" = false
5946 then
5947 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5948 else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5950 $as_echo_n "checking for recent enough icotool... " >&6; }
5951 icotool_version=`icotool --version | head -n1`
5952 if test "x$icotool_version" != "x"
5953 then
5954 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5955 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5956 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5957 then
5958 ICOTOOL=false
5959 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5962 if test "$ICOTOOL" = false
5963 then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5965 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5966 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5967 else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5969 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5973 with_gettext=yes
5974 with_gettextpo=yes
5975 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5978 test "x$with_gettext" != xno || MSGFMT=false
5979 if test "$MSGFMT" != "false"
5980 then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5982 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5983 cat >conftest.po <<EOF
5984 # comment
5985 msgctxt "ctxt"
5986 msgid "id"
5987 msgstr "str"
5989 if $MSGFMT -o /dev/null conftest.po 2>&5
5990 then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5992 $as_echo "yes" >&6; }
5993 else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 MSGFMT=false
5999 if test "$MSGFMT" = false; then :
6000 case "x$with_gettext" in
6001 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
6002 xno) ;;
6003 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
6004 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
6005 esac
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
6010 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
6011 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 ac_check_lib_save_LIBS=$LIBS
6015 LIBS="-li386 $LIBS"
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6019 /* Override any GCC internal prototype to avoid an error.
6020 Use char because int might match the return type of a GCC
6021 builtin and then its argument prototype would still apply. */
6022 #ifdef __cplusplus
6023 extern "C"
6024 #endif
6025 char i386_set_ldt ();
6027 main ()
6029 return i386_set_ldt ();
6031 return 0;
6033 _ACEOF
6034 if ac_fn_c_try_link "$LINENO"; then :
6035 ac_cv_lib_i386_i386_set_ldt=yes
6036 else
6037 ac_cv_lib_i386_i386_set_ldt=no
6039 rm -f core conftest.err conftest.$ac_objext \
6040 conftest$ac_exeext conftest.$ac_ext
6041 LIBS=$ac_check_lib_save_LIBS
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6044 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
6045 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
6046 cat >>confdefs.h <<_ACEOF
6047 #define HAVE_LIBI386 1
6048 _ACEOF
6050 LIBS="-li386 $LIBS"
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6055 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6056 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 ac_check_lib_save_LIBS=$LIBS
6060 LIBS="-lossaudio $LIBS"
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6064 /* Override any GCC internal prototype to avoid an error.
6065 Use char because int might match the return type of a GCC
6066 builtin and then its argument prototype would still apply. */
6067 #ifdef __cplusplus
6068 extern "C"
6069 #endif
6070 char _oss_ioctl ();
6072 main ()
6074 return _oss_ioctl ();
6076 return 0;
6078 _ACEOF
6079 if ac_fn_c_try_link "$LINENO"; then :
6080 ac_cv_lib_ossaudio__oss_ioctl=yes
6081 else
6082 ac_cv_lib_ossaudio__oss_ioctl=no
6084 rm -f core conftest.err conftest.$ac_objext \
6085 conftest$ac_exeext conftest.$ac_ext
6086 LIBS=$ac_check_lib_save_LIBS
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6089 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6090 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6091 cat >>confdefs.h <<_ACEOF
6092 #define HAVE_LIBOSSAUDIO 1
6093 _ACEOF
6095 LIBS="-lossaudio $LIBS"
6100 OPENGL_LIBS=""
6104 # Check whether --enable-largefile was given.
6105 if test "${enable_largefile+set}" = set; then :
6106 enableval=$enable_largefile;
6109 if test "$enable_largefile" != no; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6112 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6113 if ${ac_cv_sys_largefile_CC+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 ac_cv_sys_largefile_CC=no
6117 if test "$GCC" != yes; then
6118 ac_save_CC=$CC
6119 while :; do
6120 # IRIX 6.2 and later do not support large files by default,
6121 # so use the C compiler's -n32 option if that helps.
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 #include <sys/types.h>
6125 /* Check that off_t can represent 2**63 - 1 correctly.
6126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6127 since some C++ compilers masquerading as C compilers
6128 incorrectly reject 9223372036854775807. */
6129 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6131 && LARGE_OFF_T % 2147483647 == 1)
6132 ? 1 : -1];
6134 main ()
6138 return 0;
6140 _ACEOF
6141 if ac_fn_c_try_compile "$LINENO"; then :
6142 break
6144 rm -f core conftest.err conftest.$ac_objext
6145 CC="$CC -n32"
6146 if ac_fn_c_try_compile "$LINENO"; then :
6147 ac_cv_sys_largefile_CC=' -n32'; break
6149 rm -f core conftest.err conftest.$ac_objext
6150 break
6151 done
6152 CC=$ac_save_CC
6153 rm -f conftest.$ac_ext
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6157 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6158 if test "$ac_cv_sys_largefile_CC" != no; then
6159 CC=$CC$ac_cv_sys_largefile_CC
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6163 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6164 if ${ac_cv_sys_file_offset_bits+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 while :; do
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6170 #include <sys/types.h>
6171 /* Check that off_t can represent 2**63 - 1 correctly.
6172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6173 since some C++ compilers masquerading as C compilers
6174 incorrectly reject 9223372036854775807. */
6175 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6177 && LARGE_OFF_T % 2147483647 == 1)
6178 ? 1 : -1];
6180 main ()
6184 return 0;
6186 _ACEOF
6187 if ac_fn_c_try_compile "$LINENO"; then :
6188 ac_cv_sys_file_offset_bits=no; break
6190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #define _FILE_OFFSET_BITS 64
6194 #include <sys/types.h>
6195 /* Check that off_t can represent 2**63 - 1 correctly.
6196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6197 since some C++ compilers masquerading as C compilers
6198 incorrectly reject 9223372036854775807. */
6199 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6201 && LARGE_OFF_T % 2147483647 == 1)
6202 ? 1 : -1];
6204 main ()
6208 return 0;
6210 _ACEOF
6211 if ac_fn_c_try_compile "$LINENO"; then :
6212 ac_cv_sys_file_offset_bits=64; break
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 ac_cv_sys_file_offset_bits=unknown
6216 break
6217 done
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6220 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6221 case $ac_cv_sys_file_offset_bits in #(
6222 no | unknown) ;;
6224 cat >>confdefs.h <<_ACEOF
6225 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6226 _ACEOF
6228 esac
6229 rm -rf conftest*
6230 if test $ac_cv_sys_file_offset_bits = unknown; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6232 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6233 if ${ac_cv_sys_large_files+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 while :; do
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 #include <sys/types.h>
6240 /* Check that off_t can represent 2**63 - 1 correctly.
6241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6242 since some C++ compilers masquerading as C compilers
6243 incorrectly reject 9223372036854775807. */
6244 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6246 && LARGE_OFF_T % 2147483647 == 1)
6247 ? 1 : -1];
6249 main ()
6253 return 0;
6255 _ACEOF
6256 if ac_fn_c_try_compile "$LINENO"; then :
6257 ac_cv_sys_large_files=no; break
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #define _LARGE_FILES 1
6263 #include <sys/types.h>
6264 /* Check that off_t can represent 2**63 - 1 correctly.
6265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6266 since some C++ compilers masquerading as C compilers
6267 incorrectly reject 9223372036854775807. */
6268 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6270 && LARGE_OFF_T % 2147483647 == 1)
6271 ? 1 : -1];
6273 main ()
6277 return 0;
6279 _ACEOF
6280 if ac_fn_c_try_compile "$LINENO"; then :
6281 ac_cv_sys_large_files=1; break
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 ac_cv_sys_large_files=unknown
6285 break
6286 done
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6289 $as_echo "$ac_cv_sys_large_files" >&6; }
6290 case $ac_cv_sys_large_files in #(
6291 no | unknown) ;;
6293 cat >>confdefs.h <<_ACEOF
6294 #define _LARGE_FILES $ac_cv_sys_large_files
6295 _ACEOF
6297 esac
6298 rm -rf conftest*
6305 ac_ext=c
6306 ac_cpp='$CPP $CPPFLAGS'
6307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6311 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6312 # On Suns, sometimes $CPP names a directory.
6313 if test -n "$CPP" && test -d "$CPP"; then
6314 CPP=
6316 if test -z "$CPP"; then
6317 if ${ac_cv_prog_CPP+:} false; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 # Double quotes because CPP needs to be expanded
6321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6323 ac_preproc_ok=false
6324 for ac_c_preproc_warn_flag in '' yes
6326 # Use a header file that comes with gcc, so configuring glibc
6327 # with a fresh cross-compiler works.
6328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6329 # <limits.h> exists even on freestanding compilers.
6330 # On the NeXT, cc -E runs the code through the compiler's parser,
6331 # not just through cpp. "Syntax error" is here to catch this case.
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334 #ifdef __STDC__
6335 # include <limits.h>
6336 #else
6337 # include <assert.h>
6338 #endif
6339 Syntax error
6340 _ACEOF
6341 if ac_fn_c_try_cpp "$LINENO"; then :
6343 else
6344 # Broken: fails on valid input.
6345 continue
6347 rm -f conftest.err conftest.i conftest.$ac_ext
6349 # OK, works on sane cases. Now check whether nonexistent headers
6350 # can be detected and how.
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 #include <ac_nonexistent.h>
6354 _ACEOF
6355 if ac_fn_c_try_cpp "$LINENO"; then :
6356 # Broken: success on invalid input.
6357 continue
6358 else
6359 # Passes both tests.
6360 ac_preproc_ok=:
6361 break
6363 rm -f conftest.err conftest.i conftest.$ac_ext
6365 done
6366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6367 rm -f conftest.i conftest.err conftest.$ac_ext
6368 if $ac_preproc_ok; then :
6369 break
6372 done
6373 ac_cv_prog_CPP=$CPP
6376 CPP=$ac_cv_prog_CPP
6377 else
6378 ac_cv_prog_CPP=$CPP
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6381 $as_echo "$CPP" >&6; }
6382 ac_preproc_ok=false
6383 for ac_c_preproc_warn_flag in '' yes
6385 # Use a header file that comes with gcc, so configuring glibc
6386 # with a fresh cross-compiler works.
6387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6388 # <limits.h> exists even on freestanding compilers.
6389 # On the NeXT, cc -E runs the code through the compiler's parser,
6390 # not just through cpp. "Syntax error" is here to catch this case.
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 #ifdef __STDC__
6394 # include <limits.h>
6395 #else
6396 # include <assert.h>
6397 #endif
6398 Syntax error
6399 _ACEOF
6400 if ac_fn_c_try_cpp "$LINENO"; then :
6402 else
6403 # Broken: fails on valid input.
6404 continue
6406 rm -f conftest.err conftest.i conftest.$ac_ext
6408 # OK, works on sane cases. Now check whether nonexistent headers
6409 # can be detected and how.
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6412 #include <ac_nonexistent.h>
6413 _ACEOF
6414 if ac_fn_c_try_cpp "$LINENO"; then :
6415 # Broken: success on invalid input.
6416 continue
6417 else
6418 # Passes both tests.
6419 ac_preproc_ok=:
6420 break
6422 rm -f conftest.err conftest.i conftest.$ac_ext
6424 done
6425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6426 rm -f conftest.i conftest.err conftest.$ac_ext
6427 if $ac_preproc_ok; then :
6429 else
6430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6433 See \`config.log' for more details" "$LINENO" 5; }
6436 ac_ext=c
6437 ac_cpp='$CPP $CPPFLAGS'
6438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6444 $as_echo_n "checking for ANSI C header files... " >&6; }
6445 if ${ac_cv_header_stdc+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 #include <stdlib.h>
6451 #include <stdarg.h>
6452 #include <string.h>
6453 #include <float.h>
6456 main ()
6460 return 0;
6462 _ACEOF
6463 if ac_fn_c_try_compile "$LINENO"; then :
6464 ac_cv_header_stdc=yes
6465 else
6466 ac_cv_header_stdc=no
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 if test $ac_cv_header_stdc = yes; then
6471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 #include <string.h>
6476 _ACEOF
6477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6478 $EGREP "memchr" >/dev/null 2>&1; then :
6480 else
6481 ac_cv_header_stdc=no
6483 rm -f conftest*
6487 if test $ac_cv_header_stdc = yes; then
6488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 #include <stdlib.h>
6493 _ACEOF
6494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6495 $EGREP "free" >/dev/null 2>&1; then :
6497 else
6498 ac_cv_header_stdc=no
6500 rm -f conftest*
6504 if test $ac_cv_header_stdc = yes; then
6505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6506 if test "$cross_compiling" = yes; then :
6508 else
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 #include <ctype.h>
6512 #include <stdlib.h>
6513 #if ((' ' & 0x0FF) == 0x020)
6514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6516 #else
6517 # define ISLOWER(c) \
6518 (('a' <= (c) && (c) <= 'i') \
6519 || ('j' <= (c) && (c) <= 'r') \
6520 || ('s' <= (c) && (c) <= 'z'))
6521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6522 #endif
6524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6526 main ()
6528 int i;
6529 for (i = 0; i < 256; i++)
6530 if (XOR (islower (i), ISLOWER (i))
6531 || toupper (i) != TOUPPER (i))
6532 return 2;
6533 return 0;
6535 _ACEOF
6536 if ac_fn_c_try_run "$LINENO"; then :
6538 else
6539 ac_cv_header_stdc=no
6541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6542 conftest.$ac_objext conftest.beam conftest.$ac_ext
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6548 $as_echo "$ac_cv_header_stdc" >&6; }
6549 if test $ac_cv_header_stdc = yes; then
6551 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6555 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6556 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6557 inttypes.h stdint.h unistd.h
6558 do :
6559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6560 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6562 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6563 cat >>confdefs.h <<_ACEOF
6564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6565 _ACEOF
6569 done
6572 for ac_header in \
6573 AL/al.h \
6574 ApplicationServices/ApplicationServices.h \
6575 AudioToolbox/AudioConverter.h \
6576 AudioUnit/AudioUnit.h \
6577 AudioUnit/AudioComponent.h \
6578 CL/cl.h \
6579 Carbon/Carbon.h \
6580 CoreAudio/CoreAudio.h \
6581 CoreServices/CoreServices.h \
6582 DiskArbitration/DiskArbitration.h \
6583 IOKit/IOKitLib.h \
6584 IOKit/hid/IOHIDLib.h \
6585 OpenAL/al.h \
6586 OpenCL/opencl.h \
6587 QuickTime/ImageCompression.h \
6588 Security/Security.h \
6589 alias.h \
6590 alsa/asoundlib.h \
6591 arpa/inet.h \
6592 arpa/nameser.h \
6593 asm/types.h \
6594 asm/user.h \
6595 curses.h \
6596 direct.h \
6597 dirent.h \
6598 dlfcn.h \
6599 elf.h \
6600 float.h \
6601 fnmatch.h \
6602 getopt.h \
6603 gettext-po.h \
6604 grp.h \
6605 gsm.h \
6606 gsm/gsm.h \
6607 ieeefp.h \
6608 inet/mib2.h \
6609 io.h \
6610 kstat.h \
6611 lber.h \
6612 ldap.h \
6613 libproc.h \
6614 link.h \
6615 linux/cdrom.h \
6616 linux/compiler.h \
6617 linux/filter.h \
6618 linux/hdreg.h \
6619 linux/input.h \
6620 linux/ioctl.h \
6621 linux/joystick.h \
6622 linux/major.h \
6623 linux/param.h \
6624 linux/serial.h \
6625 linux/types.h \
6626 linux/ucdrom.h \
6627 lwp.h \
6628 mach-o/nlist.h \
6629 mach-o/loader.h \
6630 mach/mach.h \
6631 mach/machine.h \
6632 machine/cpu.h \
6633 machine/limits.h \
6634 machine/sysarch.h \
6635 mntent.h \
6636 ncurses.h \
6637 netdb.h \
6638 netinet/in.h \
6639 netinet/in_systm.h \
6640 netinet/tcp.h \
6641 netinet/tcp_fsm.h \
6642 pcap/pcap.h \
6643 poll.h \
6644 port.h \
6645 process.h \
6646 pthread.h \
6647 pwd.h \
6648 sched.h \
6649 scsi/scsi.h \
6650 scsi/scsi_ioctl.h \
6651 scsi/sg.h \
6652 stdbool.h \
6653 stdint.h \
6654 stropts.h \
6655 sys/asoundlib.h \
6656 sys/attr.h \
6657 sys/cdio.h \
6658 sys/elf32.h \
6659 sys/epoll.h \
6660 sys/event.h \
6661 sys/exec_elf.h \
6662 sys/filio.h \
6663 sys/inotify.h \
6664 sys/ioctl.h \
6665 sys/ipc.h \
6666 sys/limits.h \
6667 sys/link.h \
6668 sys/mman.h \
6669 sys/modem.h \
6670 sys/msg.h \
6671 sys/mtio.h \
6672 sys/param.h \
6673 sys/poll.h \
6674 sys/prctl.h \
6675 sys/protosw.h \
6676 sys/ptrace.h \
6677 sys/queue.h \
6678 sys/resource.h \
6679 sys/scsiio.h \
6680 sys/shm.h \
6681 sys/signal.h \
6682 sys/socket.h \
6683 sys/socketvar.h \
6684 sys/sockio.h \
6685 sys/statvfs.h \
6686 sys/strtio.h \
6687 sys/syscall.h \
6688 sys/tihdr.h \
6689 sys/time.h \
6690 sys/timeout.h \
6691 sys/times.h \
6692 sys/uio.h \
6693 sys/user.h \
6694 sys/utsname.h \
6695 sys/vm86.h \
6696 sys/wait.h \
6697 syscall.h \
6698 termios.h \
6699 unistd.h \
6700 utime.h \
6701 valgrind/memcheck.h \
6702 valgrind/valgrind.h \
6703 zlib.h
6705 do :
6706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6707 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6708 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6709 cat >>confdefs.h <<_ACEOF
6710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6711 _ACEOF
6715 done
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6718 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6719 if ${ac_cv_header_stat_broken+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724 #include <sys/types.h>
6725 #include <sys/stat.h>
6727 #if defined S_ISBLK && defined S_IFDIR
6728 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6729 #endif
6731 #if defined S_ISBLK && defined S_IFCHR
6732 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6733 #endif
6735 #if defined S_ISLNK && defined S_IFREG
6736 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6737 #endif
6739 #if defined S_ISSOCK && defined S_IFREG
6740 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6741 #endif
6743 _ACEOF
6744 if ac_fn_c_try_compile "$LINENO"; then :
6745 ac_cv_header_stat_broken=no
6746 else
6747 ac_cv_header_stat_broken=yes
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6752 $as_echo "$ac_cv_header_stat_broken" >&6; }
6753 if test $ac_cv_header_stat_broken = yes; then
6755 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6761 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6762 do :
6763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6764 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6765 #ifdef HAVE_SYS_PARAM_H
6766 # include <sys/param.h>
6767 #endif
6769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6770 cat >>confdefs.h <<_ACEOF
6771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6772 _ACEOF
6776 done
6779 for ac_header in \
6780 netinet/ip.h \
6781 net/if.h \
6782 net/if_arp.h \
6783 net/if_dl.h \
6784 net/if_types.h \
6785 net/route.h \
6786 netinet/if_ether.h \
6787 netinet/if_inarp.h \
6788 netinet/in_pcb.h \
6789 netinet/ip_icmp.h \
6790 netinet/ip_var.h \
6791 netinet/udp.h \
6792 netipx/ipx.h \
6793 sys/un.h \
6795 do :
6796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6797 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6798 #ifdef HAVE_SYS_SOCKET_H
6799 # include <sys/socket.h>
6800 #endif
6801 #ifdef HAVE_SYS_SOCKETVAR_H
6802 # include <sys/socketvar.h>
6803 #endif
6804 #ifdef HAVE_NET_ROUTE_H
6805 # include <net/route.h>
6806 #endif
6807 #ifdef HAVE_NETINET_IN_H
6808 # include <netinet/in.h>
6809 #endif
6810 #ifdef HAVE_NETINET_IN_SYSTM_H
6811 # include <netinet/in_systm.h>
6812 #endif
6813 #ifdef HAVE_NET_IF_H
6814 # include <net/if.h>
6815 #endif
6816 #ifdef HAVE_NETINET_IP_H
6817 # include <netinet/ip.h>
6818 #endif
6820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6821 cat >>confdefs.h <<_ACEOF
6822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6823 _ACEOF
6827 done
6830 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6831 do :
6832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6834 #ifdef HAVE_ALIAS_H
6835 # include <alias.h>
6836 #endif
6837 #ifdef HAVE_SYS_SOCKET_H
6838 # include <sys/socket.h>
6839 #endif
6840 #ifdef HAVE_SYS_SOCKETVAR_H
6841 # include <sys/socketvar.h>
6842 #endif
6843 #ifdef HAVE_SYS_TIMEOUT_H
6844 # include <sys/timeout.h>
6845 #endif
6846 #ifdef HAVE_NETINET_IN_H
6847 # include <netinet/in.h>
6848 #endif
6849 #ifdef HAVE_NETINET_IN_SYSTM_H
6850 # include <netinet/in_systm.h>
6851 #endif
6852 #ifdef HAVE_NETINET_IP_H
6853 # include <netinet/ip.h>
6854 #endif
6855 #ifdef HAVE_NETINET_IP_VAR_H
6856 # include <netinet/ip_var.h>
6857 #endif
6858 #ifdef HAVE_NETINET_IP_ICMP_H
6859 # include <netinet/ip_icmp.h>
6860 #endif
6861 #ifdef HAVE_NETINET_UDP_H
6862 # include <netinet/udp.h>
6863 #endif
6864 #ifdef HAVE_NETINET_TCP_H
6865 # include <netinet/tcp.h>
6866 #endif
6867 #ifdef HAVE_NETINET_TCP_TIMER_H
6868 #include <netinet/tcp_timer.h>
6869 #endif
6871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6872 cat >>confdefs.h <<_ACEOF
6873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6874 _ACEOF
6878 done
6881 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6882 do :
6883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6884 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6885 #ifdef HAVE_ASM_TYPES_H
6886 # include <asm/types.h>
6887 #endif
6888 #ifdef HAVE_SYS_SOCKET_H
6889 # include <sys/socket.h>
6890 #endif
6891 #ifdef HAVE_LINUX_TYPES_H
6892 # include <linux/types.h>
6893 #endif
6895 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6896 cat >>confdefs.h <<_ACEOF
6897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6898 _ACEOF
6902 done
6905 for ac_header in mach-o/dyld_images.h
6906 do :
6907 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6908 # include <stdbool.h>
6909 #endif
6910 #ifdef HAVE_STDINT_H
6911 # include <stdint.h>
6912 #endif
6914 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6915 cat >>confdefs.h <<_ACEOF
6916 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6917 _ACEOF
6921 done
6924 for ac_header in resolv.h
6925 do :
6926 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6927 #ifdef HAVE_SYS_SOCKET_H
6928 # include <sys/socket.h>
6929 #endif
6930 #ifdef HAVE_NETINET_IN_H
6931 # include <netinet/in.h>
6932 #endif
6933 #ifdef HAVE_ARPA_NAMESER_H
6934 # include <arpa/nameser.h>
6935 #endif
6937 if test "x$ac_cv_header_resolv_h" = xyes; then :
6938 cat >>confdefs.h <<_ACEOF
6939 #define HAVE_RESOLV_H 1
6940 _ACEOF
6944 done
6947 for ac_header in ifaddrs.h
6948 do :
6949 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6951 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6952 cat >>confdefs.h <<_ACEOF
6953 #define HAVE_IFADDRS_H 1
6954 _ACEOF
6958 done
6961 for ac_header in sys/ucontext.h
6962 do :
6963 ac_fn_c_check_header_compile "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "#include <signal.h>
6965 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
6966 cat >>confdefs.h <<_ACEOF
6967 #define HAVE_SYS_UCONTEXT_H 1
6968 _ACEOF
6972 done
6975 for ac_header in sys/thr.h
6976 do :
6977 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6978 #ifdef HAVE_SYS_UCONTEXT_H
6979 #include <sys/ucontext.h>
6980 #endif
6982 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6983 cat >>confdefs.h <<_ACEOF
6984 #define HAVE_SYS_THR_H 1
6985 _ACEOF
6989 done
6992 for ac_header in pthread_np.h
6993 do :
6994 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6995 #include <pthread.h>
6996 #endif
6998 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6999 cat >>confdefs.h <<_ACEOF
7000 #define HAVE_PTHREAD_NP_H 1
7001 _ACEOF
7005 done
7008 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
7009 do :
7010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7011 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
7012 #include <sys/time.h>
7013 #endif
7014 #include <sys/types.h>
7015 #ifdef HAVE_ASM_TYPES_H
7016 #include <asm/types.h>
7017 #endif
7019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7020 cat >>confdefs.h <<_ACEOF
7021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7022 _ACEOF
7026 done
7029 for ac_header in libprocstat.h
7030 do :
7031 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
7032 #include <sys/param.h>
7033 #endif
7034 #ifdef HAVE_SYS_QUEUE_H
7035 #include <sys/queue.h>
7036 #endif
7037 #ifdef HAVE_SYS_SOCKET_H
7038 #include <sys/socket.h>
7039 #endif
7041 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
7042 cat >>confdefs.h <<_ACEOF
7043 #define HAVE_LIBPROCSTAT_H 1
7044 _ACEOF
7048 done
7052 dlldir="\${libdir}/wine"
7054 DLLPREFIX=""
7056 DLLFLAGS="-D_REENTRANT"
7058 LDRPATH_INSTALL=""
7060 LDRPATH_LOCAL=""
7062 LIBEXT="so"
7063 DLLEXT=".so"
7064 IMPLIBEXT="def"
7065 STATIC_IMPLIBEXT="def.a"
7066 # Extract the first word of "ldd", so it can be a program name with args.
7067 set dummy ldd; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_path_LDD+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 case $LDD in
7074 [\\/]* | ?:[\\/]*)
7075 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 as_dummy="/sbin:/usr/sbin:$PATH"
7080 for as_dir in $as_dummy
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7090 done
7091 done
7092 IFS=$as_save_IFS
7094 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
7096 esac
7098 LDD=$ac_cv_path_LDD
7099 if test -n "$LDD"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
7101 $as_echo "$LDD" >&6; }
7102 else
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7108 if test -n "$ac_tool_prefix"; then
7109 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
7110 set dummy ${ac_tool_prefix}readelf; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_READELF+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 if test -n "$READELF"; then
7117 ac_cv_prog_READELF="$READELF" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7130 done
7131 done
7132 IFS=$as_save_IFS
7136 READELF=$ac_cv_prog_READELF
7137 if test -n "$READELF"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
7139 $as_echo "$READELF" >&6; }
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7147 if test -z "$ac_cv_prog_READELF"; then
7148 ac_ct_READELF=$READELF
7149 # Extract the first word of "readelf", so it can be a program name with args.
7150 set dummy readelf; ac_word=$2
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152 $as_echo_n "checking for $ac_word... " >&6; }
7153 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 if test -n "$ac_ct_READELF"; then
7157 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
7158 else
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 for as_dir in $PATH
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166 ac_cv_prog_ac_ct_READELF="readelf"
7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7170 done
7171 done
7172 IFS=$as_save_IFS
7176 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7177 if test -n "$ac_ct_READELF"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7179 $as_echo "$ac_ct_READELF" >&6; }
7180 else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7185 if test "x$ac_ct_READELF" = x; then
7186 READELF="true"
7187 else
7188 case $cross_compiling:$ac_tool_warned in
7189 yes:)
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192 ac_tool_warned=yes ;;
7193 esac
7194 READELF=$ac_ct_READELF
7196 else
7197 READELF="$ac_cv_prog_READELF"
7200 wine_rules_file=conf$$rules.make
7201 rm -f $wine_rules_file
7202 ALL_POT_FILES=""
7203 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7204 ALL_TEST_RESOURCES=""
7207 wine_fn_append_file ()
7209 as_fn_append $1 " \\$as_nl $2"
7212 wine_fn_ignore_file ()
7214 case "$1" in
7215 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7216 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7217 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7218 esac
7221 wine_fn_append_rule ()
7223 $as_echo "$1" >>$wine_rules_file
7226 wine_fn_has_flag ()
7228 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7231 wine_fn_depend_rules ()
7233 wine_fn_append_rule \
7234 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
7235 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir
7236 depend: $ac_dir/depend
7237 .PHONY: $ac_dir/depend
7238 $ac_dir/depend: \$(MAKEDEP) dummy
7239 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir"
7242 wine_fn_pot_rules ()
7244 test "x$with_gettextpo" = xyes || return
7246 if wine_fn_has_flag mc
7247 then
7248 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7249 wine_fn_append_rule \
7250 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7251 @cd $ac_dir && \$(MAKE) msg.pot
7252 $ac_dir/msg.pot: tools/wmc include"
7254 if wine_fn_has_flag po
7255 then
7256 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7257 wine_fn_append_rule \
7258 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7259 @cd $ac_dir && \$(MAKE) rsrc.pot
7260 $ac_dir/rsrc.pot: tools/wrc include"
7264 wine_fn_all_rules ()
7266 wine_fn_depend_rules
7267 wine_fn_append_rule \
7268 "all: $ac_dir
7269 .PHONY: $ac_dir
7270 $ac_dir: $ac_dir/Makefile dummy
7271 @cd $ac_dir && \$(MAKE)"
7274 wine_fn_install_rules ()
7276 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7278 wine_fn_append_rule \
7279 ".PHONY: $ac_dir/install $ac_dir/uninstall
7280 $ac_dir/install:: $ac_dir
7281 @cd $ac_dir && \$(MAKE) install
7282 $ac_dir/uninstall:: $ac_dir/Makefile
7283 @cd $ac_dir && \$(MAKE) uninstall
7284 install:: $ac_dir/install
7285 __uninstall__: $ac_dir/uninstall"
7287 if wine_fn_has_flag install-lib
7288 then
7289 wine_fn_append_rule \
7290 ".PHONY: $ac_dir/install-lib
7291 $ac_dir/install-lib:: $ac_dir
7292 @cd $ac_dir && \$(MAKE) install-lib
7293 install-lib:: $ac_dir/install-lib"
7296 if wine_fn_has_flag install-dev
7297 then
7298 wine_fn_append_rule \
7299 ".PHONY: $ac_dir/install-dev
7300 $ac_dir/install-dev:: $ac_dir
7301 @cd $ac_dir && \$(MAKE) install-dev
7302 install-dev:: $ac_dir/install-dev"
7306 wine_fn_clean_rules ()
7308 ac_clean=$@
7309 ac_extraclean="$ac_dir/Makefile"
7310 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7311 case $ac_dir in
7312 */tests) ac_extraclean="$ac_extraclean $ac_dir/testlist.c" ;;
7313 esac
7315 if wine_fn_has_flag clean
7316 then
7317 wine_fn_append_rule \
7318 "__clean__: $ac_dir/clean
7319 .PHONY: $ac_dir/clean
7320 $ac_dir/clean: $ac_dir/Makefile
7321 @cd $ac_dir && \$(MAKE) clean
7322 \$(RM) $ac_extraclean"
7323 else
7324 wine_fn_append_rule \
7325 "__clean__: $ac_dir/clean
7326 .PHONY: $ac_dir/clean
7327 $ac_dir/clean: dummy
7328 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7332 wine_fn_disabled_rules ()
7334 ac_clean=$@
7335 ac_extraclean="$ac_dir/Makefile"
7336 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7338 wine_fn_append_rule \
7339 "__clean__: $ac_dir/clean
7340 .PHONY: $ac_dir/clean
7341 $ac_dir/clean: dummy
7342 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7345 wine_fn_config_makefile ()
7347 ac_dir=$1
7348 ac_enable=$2
7349 ac_flags=$3
7351 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7352 wine_fn_disabled_rules; return
7354 wine_fn_all_rules
7355 wine_fn_install_rules
7356 wine_fn_clean_rules
7359 wine_fn_config_lib ()
7361 ac_name=$1
7362 ac_flags=$2
7363 ac_dir=dlls/$ac_name
7364 ac_deps="include"
7366 if test "x$enable_tools" = xno; then :
7368 else
7369 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7371 wine_fn_all_rules
7372 wine_fn_clean_rules
7374 wine_fn_append_rule \
7375 ".PHONY: $ac_dir/install $ac_dir/uninstall
7376 $ac_dir/install:: $ac_dir
7377 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7378 $ac_dir/uninstall::
7379 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7380 install install-dev:: $ac_dir/install
7381 __uninstall__: $ac_dir/uninstall
7382 __builddeps__: $ac_dir
7383 $ac_dir: $ac_deps"
7386 wine_fn_config_dll ()
7388 ac_name=$1
7389 ac_dir=dlls/$ac_name
7390 ac_enable=$2
7391 ac_flags=$3
7392 ac_implib=${4:-$ac_name}
7393 ac_file=$ac_dir/lib$ac_implib
7394 ac_dll=$ac_name
7395 ac_deps="include"
7396 ac_implibflags=""
7398 if test "x$enable_tools" = xno; then :
7400 else
7401 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7403 case $ac_name in
7404 *16) ac_implibflags=" -m16" ;;
7405 *.*) ;;
7406 *) ac_dll=$ac_dll.dll ;;
7407 esac
7409 ac_clean=
7410 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7411 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7412 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7413 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7415 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7416 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7417 then
7418 wine_fn_depend_rules
7419 wine_fn_clean_rules $ac_clean
7420 else
7421 wine_fn_disabled_rules $ac_clean
7422 return
7424 else
7425 wine_fn_all_rules
7426 wine_fn_clean_rules $ac_clean
7427 wine_fn_append_rule \
7428 "$ac_dir: __builddeps__
7429 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7430 @cd $ac_dir && \$(MAKE) \$@
7431 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7432 install install-lib:: $ac_dir/install-lib
7433 __uninstall__: $ac_dir/uninstall"
7434 if test -n "$DLLEXT"
7435 then
7436 wine_fn_append_rule \
7437 "$ac_dir/install-lib:: $ac_dir
7438 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7439 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7440 $ac_dir/uninstall::
7441 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7442 else
7443 wine_fn_append_rule \
7444 "$ac_dir/install-lib:: $ac_dir
7445 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7446 $ac_dir/uninstall::
7447 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7450 wine_fn_pot_rules
7453 if wine_fn_has_flag staticimplib
7454 then
7455 wine_fn_append_rule \
7456 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7457 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7458 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7459 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7460 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7461 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7462 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7463 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7464 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7465 $ac_dir/uninstall::
7466 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7467 install install-dev:: $ac_dir/install-dev
7468 __uninstall__: $ac_dir/uninstall"
7470 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7471 then
7472 wine_fn_append_rule \
7473 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7474 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7475 $ac_dir/uninstall::
7476 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7479 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7480 then
7481 wine_fn_append_rule \
7482 "__builddeps__: $ac_file.cross.a
7483 $ac_file.cross.a: $ac_dir/Makefile dummy
7484 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7487 elif wine_fn_has_flag implib
7488 then
7489 wine_fn_append_rule \
7490 "__builddeps__: $ac_file.$IMPLIBEXT
7491 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7492 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7493 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7494 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7495 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7496 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7497 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7498 $ac_dir/uninstall::
7499 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7500 install install-dev:: $ac_dir/install-dev
7501 __uninstall__: $ac_dir/uninstall"
7502 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7503 then
7504 wine_fn_append_rule \
7505 "__builddeps__: $ac_file.cross.a
7506 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7507 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7510 if test "$ac_name" != "$ac_implib"
7511 then
7512 wine_fn_append_rule \
7513 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7514 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7515 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7516 clean::
7517 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7518 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7519 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7520 then
7521 wine_fn_append_rule \
7522 "__builddeps__: dlls/lib$ac_implib.cross.a
7523 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7524 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7525 clean::
7526 \$(RM) dlls/lib$ac_implib.cross.a"
7527 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7533 wine_fn_config_program ()
7535 ac_name=$1
7536 ac_dir=programs/$ac_name
7537 ac_enable=$2
7538 ac_flags=$3
7539 ac_program=$ac_name
7541 case $ac_name in
7542 *.*) ;;
7543 *) ac_program=$ac_program.exe ;;
7544 esac
7546 ac_clean=
7547 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7548 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7549 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7550 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7552 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7553 wine_fn_disabled_rules $ac_clean; return
7556 wine_fn_all_rules
7557 wine_fn_clean_rules $ac_clean
7558 wine_fn_append_rule "$ac_dir: __builddeps__"
7559 wine_fn_pot_rules
7561 wine_fn_has_flag install || return
7562 wine_fn_append_rule \
7563 ".PHONY: $ac_dir/install $ac_dir/uninstall
7564 install install-lib:: $ac_dir/install
7565 __uninstall__: $ac_dir/uninstall"
7567 if test -n "$DLLEXT"
7568 then
7569 wine_fn_append_rule \
7570 "$ac_dir/install:: $ac_dir
7571 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7572 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7573 $ac_dir/uninstall::
7574 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7576 if test -z "$with_wine64" && wine_fn_has_flag installbin
7577 then
7578 wine_fn_append_rule \
7579 "$ac_dir/install:: __tooldeps__
7580 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7581 $ac_dir/uninstall::
7582 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7584 else
7585 wine_fn_append_rule \
7586 "$ac_dir/install:: $ac_dir
7587 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7588 $ac_dir/uninstall::
7589 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7592 if test -z "$with_wine64" && wine_fn_has_flag manpage
7593 then
7594 wine_fn_append_rule \
7595 "$ac_dir/install:: $ac_dir
7596 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7597 $ac_dir/uninstall::
7598 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7602 wine_fn_config_test ()
7604 ac_dir=$1
7605 ac_name=$2
7606 ac_flags=$3
7608 ac_clean=
7609 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7610 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7612 if test "x$enable_tests" = xno; then :
7613 wine_fn_disabled_rules $ac_clean; return
7616 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7617 wine_fn_all_rules
7618 wine_fn_clean_rules $ac_clean
7620 wine_fn_append_rule \
7621 "$ac_dir: programs/winetest/Makefile __builddeps__
7622 programs/winetest: $ac_dir
7623 check test: $ac_dir/test
7624 .PHONY: $ac_dir/test
7625 $ac_dir/test: dummy
7626 @cd $ac_dir && \$(MAKE) test
7627 testclean::
7628 \$(RM) $ac_dir/*.ok"
7630 if test -n "$CROSSTARGET"
7631 then
7632 wine_fn_append_rule \
7633 "crosstest: $ac_dir/crosstest
7634 .PHONY: $ac_dir/crosstest
7635 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7636 @cd $ac_dir && \$(MAKE) crosstest"
7640 wine_fn_config_tool ()
7642 ac_dir=$1
7643 ac_flags=$2
7644 if test "x$enable_tools" = xno; then :
7645 return
7648 wine_fn_all_rules
7649 wine_fn_install_rules
7650 wine_fn_clean_rules
7652 wine_fn_append_rule "__tooldeps__: $ac_dir"
7653 wine_fn_append_rule "$ac_dir: libs/port"
7654 case $ac_dir in
7655 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7656 esac
7659 wine_fn_config_symlink ()
7661 ac_linkdir=
7662 if test "x$1" = "x-d"
7663 then
7664 ac_linkdir=$2
7665 shift; shift
7667 ac_links=$@
7668 wine_fn_append_rule \
7669 "$ac_links:
7670 @./config.status \$@
7671 distclean::
7672 \$(RM) $ac_links"
7673 for f in $ac_links; do wine_fn_ignore_file $f; done
7674 test -n "$ac_linkdir" || return
7675 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7678 wine_binary="wine"
7679 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7680 loader_programs="$wine_binary wine-installed"
7681 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7683 LOADER_RULES="
7684 all: wine.inf
7686 install install-lib:: wine-installed
7687 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7689 uninstall::
7690 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7694 case $host_os in
7695 cygwin*|mingw32*)
7696 if test -n "$ac_tool_prefix"; then
7697 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if ${ac_cv_prog_DLLTOOL+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test -n "$DLLTOOL"; then
7705 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7718 done
7719 done
7720 IFS=$as_save_IFS
7724 DLLTOOL=$ac_cv_prog_DLLTOOL
7725 if test -n "$DLLTOOL"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7727 $as_echo "$DLLTOOL" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7735 if test -z "$ac_cv_prog_DLLTOOL"; then
7736 ac_ct_DLLTOOL=$DLLTOOL
7737 # Extract the first word of "dlltool", so it can be a program name with args.
7738 set dummy dlltool; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 if test -n "$ac_ct_DLLTOOL"; then
7745 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7758 done
7759 done
7760 IFS=$as_save_IFS
7764 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7765 if test -n "$ac_ct_DLLTOOL"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7767 $as_echo "$ac_ct_DLLTOOL" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7773 if test "x$ac_ct_DLLTOOL" = x; then
7774 DLLTOOL="false"
7775 else
7776 case $cross_compiling:$ac_tool_warned in
7777 yes:)
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7780 ac_tool_warned=yes ;;
7781 esac
7782 DLLTOOL=$ac_ct_DLLTOOL
7784 else
7785 DLLTOOL="$ac_cv_prog_DLLTOOL"
7788 LIBEXT="dll"
7789 DLLEXT=""
7790 IMPLIBEXT="a"
7791 STATIC_IMPLIBEXT="a"
7792 enable_iphlpapi=${enable_iphlpapi:-no}
7793 enable_kernel32=${enable_kernel32:-no}
7794 enable_msvcrt=${enable_msvcrt:-no}
7795 enable_ntdll=${enable_ntdll:-no}
7796 enable_ws2_32=${enable_ws2_32:-no}
7797 enable_loader=${enable_loader:-no}
7798 enable_server=${enable_server:-no}
7799 with_x=${with_x:-no}
7800 with_pthread=${with_pthread:-no}
7802 crtlibs=""
7803 case $host_os in
7804 mingw32*)
7805 crtlibs="-lmsvcrt"
7806 SOCKET_LIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7808 esac
7810 libwine_targets="libwine.dll libwine.a"
7811 LIBWINE_RULES="
7812 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7814 all: libwine.dll libwine.a
7816 libwine.a: \$(srcdir)/wine.def
7817 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7819 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7820 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7822 install install-lib:: libwine.dll
7823 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7825 install install-dev:: libwine.a
7826 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7828 uninstall::
7829 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7834 darwin*|macosx*)
7835 LIBEXT="dylib"
7836 DLLFLAGS="$DLLFLAGS -fPIC"
7837 LIBWINE_LDFLAGS="-multiply_defined suppress"
7838 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7839 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7840 COREFOUNDATION_LIBS="-framework CoreFoundation"
7842 IOKIT_LIBS="-framework IOKit -framework CoreFoundation"
7844 FORCEFEEDBACK_LIBS="-framework ForceFeedback -framework CoreFoundation"
7846 APPLICATIONSERVICES_LIBS="-framework ApplicationServices"
7848 CORESERVICES_LIBS="-framework CoreServices"
7850 APPKIT_LIBS="-framework AppKit"
7852 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-no_pie" >&5
7854 $as_echo_n "checking whether the compiler supports -Wl,-no_pie... " >&6; }
7855 if ${ac_cv_cflags__Wl__no_pie+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 ac_wine_try_cflags_saved=$CFLAGS
7859 CFLAGS="$CFLAGS -Wl,-no_pie"
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862 int main(int argc, char **argv) { return 0; }
7863 _ACEOF
7864 if ac_fn_c_try_link "$LINENO"; then :
7865 ac_cv_cflags__Wl__no_pie=yes
7866 else
7867 ac_cv_cflags__Wl__no_pie=no
7869 rm -f core conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
7871 CFLAGS=$ac_wine_try_cflags_saved
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl__no_pie" >&5
7874 $as_echo "$ac_cv_cflags__Wl__no_pie" >&6; }
7875 if test "x$ac_cv_cflags__Wl__no_pie" = xyes; then :
7876 LDEXECFLAGS="-Wl,-no_pie $LDEXECFLAGS"
7878 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7879 then
7880 DISKARBITRATION_LIBS="-framework DiskArbitration -framework CoreFoundation"
7883 if test "$ac_cv_header_Security_Security_h" = "yes"
7884 then
7885 SECURITY_LIBS="-framework Security -framework CoreFoundation"
7887 ac_save_LIBS="$LIBS"
7888 LIBS="$LIBS $SECURITY_LIBS"
7889 for ac_func in SSLCopyPeerCertificates
7890 do :
7891 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7892 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7893 cat >>confdefs.h <<_ACEOF
7894 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7895 _ACEOF
7898 done
7900 LIBS="$ac_save_LIBS"
7901 with_gnutls=${with_gnutls:-no}
7903 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7904 then
7905 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7906 then
7907 COREAUDIO_LIBS="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7909 else
7910 COREAUDIO_LIBS="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7913 ac_save_LIBS="$LIBS"
7914 LIBS="$LIBS $COREAUDIO_LIBS"
7915 for ac_func in AUGraphAddNode
7916 do :
7917 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7918 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7919 cat >>confdefs.h <<_ACEOF
7920 #define HAVE_AUGRAPHADDNODE 1
7921 _ACEOF
7924 done
7926 LIBS="$ac_save_LIBS"
7928 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7929 then
7930 OPENAL_LIBS="-framework OpenAL"
7933 cat >>confdefs.h <<_ACEOF
7934 #define HAVE_OPENAL 1
7935 _ACEOF
7937 ac_cv_lib_openal=yes
7939 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7940 then
7941 OPENCL_LIBS="-framework OpenCL"
7943 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7945 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7946 then
7947 ac_save_LIBS="$LIBS"
7948 LIBS="$LIBS $IOKIT_LIBS"
7949 for ac_func in IOHIDManagerCreate
7950 do :
7951 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7952 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7953 cat >>confdefs.h <<_ACEOF
7954 #define HAVE_IOHIDMANAGERCREATE 1
7955 _ACEOF
7958 done
7960 LIBS="$ac_save_LIBS"
7962 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7963 then
7964 ac_save_LIBS="$LIBS"
7965 LIBS="-framework QuickTime -framework ApplicationServices -framework CoreVideo $LIBS"
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QuickTime framework" >&5
7967 $as_echo_n "checking for the QuickTime framework... " >&6; }
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 #include <QuickTime/ImageCompression.h>
7972 main ()
7974 CodecManagerVersion(NULL);
7976 return 0;
7978 _ACEOF
7979 if ac_fn_c_try_link "$LINENO"; then :
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7981 $as_echo "yes" >&6; }
7982 QUICKTIME_LIBS="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7984 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7988 ac_cv_header_QuickTime_ImageCompression_h=no
7990 rm -f core conftest.err conftest.$ac_objext \
7991 conftest$ac_exeext conftest.$ac_ext
7992 LIBS="$ac_save_LIBS"
7994 if test "$ac_cv_header_QuickTime_ImageCompression_h" != "yes"
7995 then
7996 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7998 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7999 then
8000 CARBON_LIBS="-framework Carbon"
8004 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
8005 then
8006 ac_save_LIBS="$LIBS"
8007 LIBS="$LIBS $APPLICATIONSERVICES_LIBS"
8008 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
8009 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
8010 enable_winemac_drv=${enable_winemac_drv:-yes}
8013 LIBS="$ac_save_LIBS"
8016 if test "x$enable_win16" = "xyes"
8017 then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
8019 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
8020 if test "$cross_compiling" = yes; then :
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
8022 $as_echo "cross-compiling, assuming yes" >&6; }
8023 else
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026 asm(".text\n"
8027 "bad:\tnop;nop\n"
8028 "good:\tnop;nop\n\t"
8029 ".globl _testfunc\n"
8030 "_testfunc:\tcallw good");
8031 extern void testfunc();
8033 main ()
8035 unsigned short *p = (unsigned short *)testfunc;
8036 return p[0] != 0xe866 || p[1] != 0xfffa
8038 return 0;
8040 _ACEOF
8041 if ac_fn_c_try_run "$LINENO"; then :
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8043 $as_echo "yes" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8047 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
8049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8050 conftest.$ac_objext conftest.beam conftest.$ac_ext
8055 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
8056 LIBWINE_RULES="
8057 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8059 all: libwine.dylib
8061 libwine.$libwine_version.dylib: \$(OBJS)
8062 \$(CC) -dynamiclib -install_name @rpath/libwine.$libwine_soversion.dylib -Wl,-rpath,@loader_path/ -compatibility_version $libwine_soversion -current_version $libwine_version \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8064 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
8065 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
8067 libwine.dylib: libwine.$libwine_soversion.dylib
8068 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
8070 install install-lib:: libwine.$libwine_version.dylib
8071 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
8072 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
8074 install install-dev::
8075 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
8077 uninstall::
8078 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
8082 as_fn_append LOADER_RULES "
8083 $wine_binary: main.o wine_info.plist
8084 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8086 wine-installed: main.o wine_info.plist
8087 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8091 linux-android*)
8092 DLLFLAGS="$DLLFLAGS -fPIC"
8093 DLLPREFIX="lib"
8094 LDEXECFLAGS=""
8095 dlldir="\${libdir}"
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8097 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8098 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 ac_wine_try_cflags_saved=$CFLAGS
8102 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 int main(int argc, char **argv) { return 0; }
8106 _ACEOF
8107 if ac_fn_c_try_link "$LINENO"; then :
8108 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8109 else
8110 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8112 rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114 CFLAGS=$ac_wine_try_cflags_saved
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8117 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8118 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
8119 LDEXECFLAGS="-Wl,--export-dynamic"
8121 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8123 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8124 if eval \${$as_ac_var+:} false; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 ac_wine_try_cflags_saved=$CFLAGS
8128 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8131 int main(int argc, char **argv) { return 0; }
8132 _ACEOF
8133 if ac_fn_c_try_link "$LINENO"; then :
8134 eval "$as_ac_var=yes"
8135 else
8136 eval "$as_ac_var=no"
8138 rm -f core conftest.err conftest.$ac_objext \
8139 conftest$ac_exeext conftest.$ac_ext
8140 CFLAGS=$ac_wine_try_cflags_saved
8142 eval ac_res=\$$as_ac_var
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8144 $as_echo "$ac_res" >&6; }
8145 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8146 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8147 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8148 else
8149 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8151 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8152 if eval \${$as_ac_var+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 ac_wine_try_cflags_saved=$CFLAGS
8156 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159 int main(int argc, char **argv) { return 0; }
8160 _ACEOF
8161 if ac_fn_c_try_link "$LINENO"; then :
8162 eval "$as_ac_var=yes"
8163 else
8164 eval "$as_ac_var=no"
8166 rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8168 CFLAGS=$ac_wine_try_cflags_saved
8170 eval ac_res=\$$as_ac_var
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8172 $as_echo "$ac_res" >&6; }
8173 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8174 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8175 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8180 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8181 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 ac_wine_try_cflags_saved=$CFLAGS
8185 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8188 int main(int argc, char **argv) { return 0; }
8189 _ACEOF
8190 if ac_fn_c_try_link "$LINENO"; then :
8191 ac_cv_cflags__Wl___enable_new_dtags=yes
8192 else
8193 ac_cv_cflags__Wl___enable_new_dtags=no
8195 rm -f core conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197 CFLAGS=$ac_wine_try_cflags_saved
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8200 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8201 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
8202 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8205 case $host_cpu in
8206 *i[3456789]86* | x86_64)
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8208 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8209 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 ac_wine_try_cflags_saved=$CFLAGS
8213 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 int main(int argc, char **argv) { return 0; }
8217 _ACEOF
8218 if ac_fn_c_try_link "$LINENO"; then :
8219 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8220 else
8221 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8223 rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
8225 CFLAGS=$ac_wine_try_cflags_saved
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8228 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8229 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8230 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8233 esac
8235 libwine_targets="libwine.so"
8236 LIBWINE_RULES="
8237 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8239 all: libwine.so
8241 libwine.so: \$(OBJS)
8242 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8244 install install-lib:: libwine.so
8245 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8247 uninstall::
8248 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8252 as_fn_append LOADER_RULES "
8253 $wine_binary: main.o
8254 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8256 wine-installed: main.o
8257 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8262 DLLFLAGS="$DLLFLAGS -fPIC"
8263 LDEXECFLAGS=""
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8265 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8266 if ${ac_cv_c_dll_gnuelf+:} false; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 ac_wine_try_cflags_saved=$CFLAGS
8270 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 void myfunc() {}
8274 _ACEOF
8275 if ac_fn_c_try_link "$LINENO"; then :
8276 ac_cv_c_dll_gnuelf="yes"
8277 else
8278 ac_cv_c_dll_gnuelf="no"
8280 rm -f core conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8282 CFLAGS=$ac_wine_try_cflags_saved
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8285 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8286 if test "$ac_cv_c_dll_gnuelf" = "yes"
8287 then
8288 LDSHARED="\$(CC) -shared"
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8290 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8291 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 ac_wine_try_cflags_saved=$CFLAGS
8295 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8298 int main(int argc, char **argv) { return 0; }
8299 _ACEOF
8300 if ac_fn_c_try_link "$LINENO"; then :
8301 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8302 else
8303 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8305 rm -f core conftest.err conftest.$ac_objext \
8306 conftest$ac_exeext conftest.$ac_ext
8307 CFLAGS=$ac_wine_try_cflags_saved
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8310 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8311 if test "x$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" = xyes; then :
8312 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8313 else
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8315 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8316 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 ac_wine_try_cflags_saved=$CFLAGS
8320 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 int main(int argc, char **argv) { return 0; }
8324 _ACEOF
8325 if ac_fn_c_try_link "$LINENO"; then :
8326 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8327 else
8328 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8330 rm -f core conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8332 CFLAGS=$ac_wine_try_cflags_saved
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8335 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8336 if test "x$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" = xyes; then :
8337 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8341 echo '{ global: *; };' >conftest.map
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8343 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8344 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 ac_wine_try_cflags_saved=$CFLAGS
8348 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351 int main(int argc, char **argv) { return 0; }
8352 _ACEOF
8353 if ac_fn_c_try_link "$LINENO"; then :
8354 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8355 else
8356 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8358 rm -f core conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext conftest.$ac_ext
8360 CFLAGS=$ac_wine_try_cflags_saved
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8363 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8364 if test "x$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" = xyes; then :
8365 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8367 rm -f conftest.map
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8370 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8371 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 ac_wine_try_cflags_saved=$CFLAGS
8375 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 int main(int argc, char **argv) { return 0; }
8379 _ACEOF
8380 if ac_fn_c_try_link "$LINENO"; then :
8381 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8382 else
8383 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8385 rm -f core conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8387 CFLAGS=$ac_wine_try_cflags_saved
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8390 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8391 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
8392 LDEXECFLAGS="-Wl,--export-dynamic"
8395 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8397 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8398 if eval \${$as_ac_var+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 ac_wine_try_cflags_saved=$CFLAGS
8402 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405 int main(int argc, char **argv) { return 0; }
8406 _ACEOF
8407 if ac_fn_c_try_link "$LINENO"; then :
8408 eval "$as_ac_var=yes"
8409 else
8410 eval "$as_ac_var=no"
8412 rm -f core conftest.err conftest.$ac_objext \
8413 conftest$ac_exeext conftest.$ac_ext
8414 CFLAGS=$ac_wine_try_cflags_saved
8416 eval ac_res=\$$as_ac_var
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8418 $as_echo "$ac_res" >&6; }
8419 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8420 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8421 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8422 else
8423 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8425 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8426 if eval \${$as_ac_var+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 ac_wine_try_cflags_saved=$CFLAGS
8430 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 int main(int argc, char **argv) { return 0; }
8434 _ACEOF
8435 if ac_fn_c_try_link "$LINENO"; then :
8436 eval "$as_ac_var=yes"
8437 else
8438 eval "$as_ac_var=no"
8440 rm -f core conftest.err conftest.$ac_objext \
8441 conftest$ac_exeext conftest.$ac_ext
8442 CFLAGS=$ac_wine_try_cflags_saved
8444 eval ac_res=\$$as_ac_var
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8446 $as_echo "$ac_res" >&6; }
8447 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8448 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8449 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8454 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8455 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 ac_wine_try_cflags_saved=$CFLAGS
8459 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 int main(int argc, char **argv) { return 0; }
8463 _ACEOF
8464 if ac_fn_c_try_link "$LINENO"; then :
8465 ac_cv_cflags__Wl___enable_new_dtags=yes
8466 else
8467 ac_cv_cflags__Wl___enable_new_dtags=no
8469 rm -f core conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 CFLAGS=$ac_wine_try_cflags_saved
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8474 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8475 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
8476 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8479 case $host_cpu in
8480 *i[3456789]86* | x86_64)
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8482 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8483 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 ac_wine_try_cflags_saved=$CFLAGS
8487 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 int main(int argc, char **argv) { return 0; }
8491 _ACEOF
8492 if ac_fn_c_try_link "$LINENO"; then :
8493 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8494 else
8495 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8497 rm -f core conftest.err conftest.$ac_objext \
8498 conftest$ac_exeext conftest.$ac_ext
8499 CFLAGS=$ac_wine_try_cflags_saved
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8502 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8503 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8504 case $host_os in
8505 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8506 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8507 esac
8510 # Extract the first word of "prelink", so it can be a program name with args.
8511 set dummy prelink; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if ${ac_cv_path_PRELINK+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 case $PRELINK in
8518 [\\/]* | ?:[\\/]*)
8519 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in /sbin /usr/sbin $PATH
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8533 done
8534 done
8535 IFS=$as_save_IFS
8537 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8539 esac
8541 PRELINK=$ac_cv_path_PRELINK
8542 if test -n "$PRELINK"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8544 $as_echo "$PRELINK" >&6; }
8545 else
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8551 if test "x$PRELINK" = xfalse
8552 then
8553 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8556 esac
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8560 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8561 if ${ac_cv_c_dll_unixware+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 ac_wine_try_cflags_saved=$CFLAGS
8565 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 void myfunc() {}
8569 _ACEOF
8570 if ac_fn_c_try_link "$LINENO"; then :
8571 ac_cv_c_dll_unixware="yes"
8572 else
8573 ac_cv_c_dll_unixware="no"
8575 rm -f core conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577 CFLAGS=$ac_wine_try_cflags_saved
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8580 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8581 if test "$ac_cv_c_dll_unixware" = "yes"
8582 then
8583 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8586 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8587 LIBWINE_RULES="
8588 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8590 all: libwine.so
8592 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8593 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8595 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8596 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8598 libwine.so: libwine.so.$libwine_soversion
8599 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8601 install install-lib:: libwine.so.$libwine_version
8602 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8603 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8605 install install-dev::
8606 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8608 uninstall::
8609 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8613 as_fn_append LOADER_RULES "
8614 $wine_binary: main.o
8615 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8617 wine-installed: main.o
8618 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8621 esac
8623 as_fn_append LIBWINE_RULES "
8624 EXTRA_TARGETS = $libwine_targets
8627 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8628 enable_winemac_drv=${enable_winemac_drv:-no}
8630 CROSSTARGET=""
8632 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8633 then
8634 case "$host_cpu" in
8635 i[3456789]86*)
8636 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
8637 mingw32-gcc" ;;
8638 x86_64)
8639 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 " ;;
8641 ac_prefix_list="" ;;
8642 esac
8643 for ac_prog in $ac_prefix_list
8645 # Extract the first word of "$ac_prog", so it can be a program name with args.
8646 set dummy $ac_prog; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if ${ac_cv_prog_CROSSCC+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 if test -n "$CROSSCC"; then
8653 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8654 else
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_prog_CROSSCC="$ac_prog"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8666 done
8667 done
8668 IFS=$as_save_IFS
8672 CROSSCC=$ac_cv_prog_CROSSCC
8673 if test -n "$CROSSCC"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8675 $as_echo "$CROSSCC" >&6; }
8676 else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8682 test -n "$CROSSCC" && break
8683 done
8684 test -n "$CROSSCC" || CROSSCC="false"
8686 if test "$CROSSCC" != "false"
8687 then
8688 ac_save_CC="$CC"
8689 CC="$CROSSCC"
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8691 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8696 main ()
8700 return 0;
8702 _ACEOF
8703 if ac_fn_c_try_compile "$LINENO"; then :
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8705 $as_echo "yes" >&6; }
8706 set x $CROSSCC
8707 shift
8708 while test $# -ge 1
8710 case "$1" in
8711 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8712 esac
8713 shift
8714 done
8715 else
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 CC="$ac_save_CC"
8725 if test "$ac_cv_header_pthread_h" = "yes"
8726 then
8727 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8728 if test "x$ac_cv_func_pthread_create" = xyes; then :
8730 else
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8732 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8733 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 ac_check_lib_save_LIBS=$LIBS
8737 LIBS="-lpthread $LIBS"
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8741 /* Override any GCC internal prototype to avoid an error.
8742 Use char because int might match the return type of a GCC
8743 builtin and then its argument prototype would still apply. */
8744 #ifdef __cplusplus
8745 extern "C"
8746 #endif
8747 char pthread_create ();
8749 main ()
8751 return pthread_create ();
8753 return 0;
8755 _ACEOF
8756 if ac_fn_c_try_link "$LINENO"; then :
8757 ac_cv_lib_pthread_pthread_create=yes
8758 else
8759 ac_cv_lib_pthread_pthread_create=no
8761 rm -f core conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext conftest.$ac_ext
8763 LIBS=$ac_check_lib_save_LIBS
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8766 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8767 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8768 PTHREAD_LIBS="-lpthread"
8775 if test "x$ac_cv_func_pthread_create" != xyes -a "x$PTHREAD_LIBS" = x; then :
8776 case "x$with_pthread" in
8777 xno) ;;
8778 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8779 Wine cannot support threads without libpthread.
8780 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8781 esac
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8786 $as_echo_n "checking for X... " >&6; }
8789 # Check whether --with-x was given.
8790 if test "${with_x+set}" = set; then :
8791 withval=$with_x;
8794 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8795 if test "x$with_x" = xno; then
8796 # The user explicitly disabled X.
8797 have_x=disabled
8798 else
8799 case $x_includes,$x_libraries in #(
8800 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8801 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 # One or both of the vars are not set, and there is no cached value.
8805 ac_x_includes=no ac_x_libraries=no
8806 rm -f -r conftest.dir
8807 if mkdir conftest.dir; then
8808 cd conftest.dir
8809 cat >Imakefile <<'_ACEOF'
8810 incroot:
8811 @echo incroot='${INCROOT}'
8812 usrlibdir:
8813 @echo usrlibdir='${USRLIBDIR}'
8814 libdir:
8815 @echo libdir='${LIBDIR}'
8816 _ACEOF
8817 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8818 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8819 for ac_var in incroot usrlibdir libdir; do
8820 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8821 done
8822 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8823 for ac_extension in a so sl dylib la dll; do
8824 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8825 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8826 ac_im_usrlibdir=$ac_im_libdir; break
8828 done
8829 # Screen out bogus values from the imake configuration. They are
8830 # bogus both because they are the default anyway, and because
8831 # using them would break gcc on systems where it needs fixed includes.
8832 case $ac_im_incroot in
8833 /usr/include) ac_x_includes= ;;
8834 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8835 esac
8836 case $ac_im_usrlibdir in
8837 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8838 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8839 esac
8841 cd ..
8842 rm -f -r conftest.dir
8845 # Standard set of common directories for X headers.
8846 # Check X11 before X11Rn because it is often a symlink to the current release.
8847 ac_x_header_dirs='
8848 /usr/X11/include
8849 /usr/X11R7/include
8850 /usr/X11R6/include
8851 /usr/X11R5/include
8852 /usr/X11R4/include
8854 /usr/include/X11
8855 /usr/include/X11R7
8856 /usr/include/X11R6
8857 /usr/include/X11R5
8858 /usr/include/X11R4
8860 /usr/local/X11/include
8861 /usr/local/X11R7/include
8862 /usr/local/X11R6/include
8863 /usr/local/X11R5/include
8864 /usr/local/X11R4/include
8866 /usr/local/include/X11
8867 /usr/local/include/X11R7
8868 /usr/local/include/X11R6
8869 /usr/local/include/X11R5
8870 /usr/local/include/X11R4
8872 /usr/X386/include
8873 /usr/x386/include
8874 /usr/XFree86/include/X11
8876 /usr/include
8877 /usr/local/include
8878 /usr/unsupported/include
8879 /usr/athena/include
8880 /usr/local/x11r5/include
8881 /usr/lpp/Xamples/include
8883 /usr/openwin/include
8884 /usr/openwin/share/include'
8886 if test "$ac_x_includes" = no; then
8887 # Guess where to find include files, by looking for Xlib.h.
8888 # First, try using that file with no special directory specified.
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 #include <X11/Xlib.h>
8892 _ACEOF
8893 if ac_fn_c_try_cpp "$LINENO"; then :
8894 # We can compile using X headers with no special include directory.
8895 ac_x_includes=
8896 else
8897 for ac_dir in $ac_x_header_dirs; do
8898 if test -r "$ac_dir/X11/Xlib.h"; then
8899 ac_x_includes=$ac_dir
8900 break
8902 done
8904 rm -f conftest.err conftest.i conftest.$ac_ext
8905 fi # $ac_x_includes = no
8907 if test "$ac_x_libraries" = no; then
8908 # Check for the libraries.
8909 # See if we find them without any special options.
8910 # Don't add to $LIBS permanently.
8911 ac_save_LIBS=$LIBS
8912 LIBS="-lX11 $LIBS"
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 #include <X11/Xlib.h>
8917 main ()
8919 XrmInitialize ()
8921 return 0;
8923 _ACEOF
8924 if ac_fn_c_try_link "$LINENO"; then :
8925 LIBS=$ac_save_LIBS
8926 # We can link X programs with no special library path.
8927 ac_x_libraries=
8928 else
8929 LIBS=$ac_save_LIBS
8930 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8932 # Don't even attempt the hair of trying to link an X program!
8933 for ac_extension in a so sl dylib la dll; do
8934 if test -r "$ac_dir/libX11.$ac_extension"; then
8935 ac_x_libraries=$ac_dir
8936 break 2
8938 done
8939 done
8941 rm -f core conftest.err conftest.$ac_objext \
8942 conftest$ac_exeext conftest.$ac_ext
8943 fi # $ac_x_libraries = no
8945 case $ac_x_includes,$ac_x_libraries in #(
8946 no,* | *,no | *\'*)
8947 # Didn't find X, or a directory has "'" in its name.
8948 ac_cv_have_x="have_x=no";; #(
8950 # Record where we found X for the cache.
8951 ac_cv_have_x="have_x=yes\
8952 ac_x_includes='$ac_x_includes'\
8953 ac_x_libraries='$ac_x_libraries'"
8954 esac
8956 ;; #(
8957 *) have_x=yes;;
8958 esac
8959 eval "$ac_cv_have_x"
8960 fi # $with_x != no
8962 if test "$have_x" != yes; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8964 $as_echo "$have_x" >&6; }
8965 no_x=yes
8966 else
8967 # If each of the values was on the command line, it overrides each guess.
8968 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8969 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8970 # Update the cache value to reflect the command line values.
8971 ac_cv_have_x="have_x=yes\
8972 ac_x_includes='$x_includes'\
8973 ac_x_libraries='$x_libraries'"
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8975 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8978 if test "$no_x" = yes; then
8979 # Not all programs may use this symbol, but it does not hurt to define it.
8981 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8983 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8984 else
8985 if test -n "$x_includes"; then
8986 X_CFLAGS="$X_CFLAGS -I$x_includes"
8989 # It would also be nice to do this for all -L options, not just this one.
8990 if test -n "$x_libraries"; then
8991 X_LIBS="$X_LIBS -L$x_libraries"
8992 # For Solaris; some versions of Sun CC require a space after -R and
8993 # others require no space. Words are not sufficient . . . .
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8995 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8996 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8997 ac_xsave_c_werror_flag=$ac_c_werror_flag
8998 ac_c_werror_flag=yes
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9003 main ()
9007 return 0;
9009 _ACEOF
9010 if ac_fn_c_try_link "$LINENO"; then :
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9013 X_LIBS="$X_LIBS -R$x_libraries"
9014 else
9015 LIBS="$ac_xsave_LIBS -R $x_libraries"
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9020 main ()
9024 return 0;
9026 _ACEOF
9027 if ac_fn_c_try_link "$LINENO"; then :
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9029 $as_echo "yes" >&6; }
9030 X_LIBS="$X_LIBS -R $x_libraries"
9031 else
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
9033 $as_echo "neither works" >&6; }
9035 rm -f core conftest.err conftest.$ac_objext \
9036 conftest$ac_exeext conftest.$ac_ext
9038 rm -f core conftest.err conftest.$ac_objext \
9039 conftest$ac_exeext conftest.$ac_ext
9040 ac_c_werror_flag=$ac_xsave_c_werror_flag
9041 LIBS=$ac_xsave_LIBS
9044 # Check for system-dependent libraries X programs must link with.
9045 # Do this before checking for the system-independent R6 libraries
9046 # (-lICE), since we may need -lsocket or whatever for X linking.
9048 if test "$ISC" = yes; then
9049 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9050 else
9051 # Martyn Johnson says this is needed for Ultrix, if the X
9052 # libraries were built with DECnet support. And Karl Berry says
9053 # the Alpha needs dnet_stub (dnet does not exist).
9054 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9058 /* Override any GCC internal prototype to avoid an error.
9059 Use char because int might match the return type of a GCC
9060 builtin and then its argument prototype would still apply. */
9061 #ifdef __cplusplus
9062 extern "C"
9063 #endif
9064 char XOpenDisplay ();
9066 main ()
9068 return XOpenDisplay ();
9070 return 0;
9072 _ACEOF
9073 if ac_fn_c_try_link "$LINENO"; then :
9075 else
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9077 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9078 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 ac_check_lib_save_LIBS=$LIBS
9082 LIBS="-ldnet $LIBS"
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9086 /* Override any GCC internal prototype to avoid an error.
9087 Use char because int might match the return type of a GCC
9088 builtin and then its argument prototype would still apply. */
9089 #ifdef __cplusplus
9090 extern "C"
9091 #endif
9092 char dnet_ntoa ();
9094 main ()
9096 return dnet_ntoa ();
9098 return 0;
9100 _ACEOF
9101 if ac_fn_c_try_link "$LINENO"; then :
9102 ac_cv_lib_dnet_dnet_ntoa=yes
9103 else
9104 ac_cv_lib_dnet_dnet_ntoa=no
9106 rm -f core conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
9108 LIBS=$ac_check_lib_save_LIBS
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9111 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9112 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9113 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9116 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
9118 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
9119 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 ac_check_lib_save_LIBS=$LIBS
9123 LIBS="-ldnet_stub $LIBS"
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9127 /* Override any GCC internal prototype to avoid an error.
9128 Use char because int might match the return type of a GCC
9129 builtin and then its argument prototype would still apply. */
9130 #ifdef __cplusplus
9131 extern "C"
9132 #endif
9133 char dnet_ntoa ();
9135 main ()
9137 return dnet_ntoa ();
9139 return 0;
9141 _ACEOF
9142 if ac_fn_c_try_link "$LINENO"; then :
9143 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9144 else
9145 ac_cv_lib_dnet_stub_dnet_ntoa=no
9147 rm -f core conftest.err conftest.$ac_objext \
9148 conftest$ac_exeext conftest.$ac_ext
9149 LIBS=$ac_check_lib_save_LIBS
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9152 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
9153 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
9154 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9159 rm -f core conftest.err conftest.$ac_objext \
9160 conftest$ac_exeext conftest.$ac_ext
9161 LIBS="$ac_xsave_LIBS"
9163 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9164 # to get the SysV transport functions.
9165 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9166 # needs -lnsl.
9167 # The nsl library prevents programs from opening the X display
9168 # on Irix 5.2, according to T.E. Dickey.
9169 # The functions gethostbyname, getservbyname, and inet_addr are
9170 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9171 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9172 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9176 if test $ac_cv_func_gethostbyname = no; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9178 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9179 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9180 $as_echo_n "(cached) " >&6
9181 else
9182 ac_check_lib_save_LIBS=$LIBS
9183 LIBS="-lnsl $LIBS"
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9187 /* Override any GCC internal prototype to avoid an error.
9188 Use char because int might match the return type of a GCC
9189 builtin and then its argument prototype would still apply. */
9190 #ifdef __cplusplus
9191 extern "C"
9192 #endif
9193 char gethostbyname ();
9195 main ()
9197 return gethostbyname ();
9199 return 0;
9201 _ACEOF
9202 if ac_fn_c_try_link "$LINENO"; then :
9203 ac_cv_lib_nsl_gethostbyname=yes
9204 else
9205 ac_cv_lib_nsl_gethostbyname=no
9207 rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 LIBS=$ac_check_lib_save_LIBS
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9212 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9213 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9214 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9217 if test $ac_cv_lib_nsl_gethostbyname = no; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
9219 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9220 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 ac_check_lib_save_LIBS=$LIBS
9224 LIBS="-lbsd $LIBS"
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9228 /* Override any GCC internal prototype to avoid an error.
9229 Use char because int might match the return type of a GCC
9230 builtin and then its argument prototype would still apply. */
9231 #ifdef __cplusplus
9232 extern "C"
9233 #endif
9234 char gethostbyname ();
9236 main ()
9238 return gethostbyname ();
9240 return 0;
9242 _ACEOF
9243 if ac_fn_c_try_link "$LINENO"; then :
9244 ac_cv_lib_bsd_gethostbyname=yes
9245 else
9246 ac_cv_lib_bsd_gethostbyname=no
9248 rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 LIBS=$ac_check_lib_save_LIBS
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9253 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9254 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9255 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9261 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9262 # socket/setsockopt and other routines are undefined under SCO ODT
9263 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9264 # on later versions), says Simon Leinen: it contains gethostby*
9265 # variants that don't use the name server (or something). -lsocket
9266 # must be given before -lnsl if both are needed. We assume that
9267 # if connect needs -lnsl, so does gethostbyname.
9268 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9269 if test "x$ac_cv_func_connect" = xyes; then :
9273 if test $ac_cv_func_connect = no; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9275 $as_echo_n "checking for connect in -lsocket... " >&6; }
9276 if ${ac_cv_lib_socket_connect+:} false; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 ac_check_lib_save_LIBS=$LIBS
9280 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9284 /* Override any GCC internal prototype to avoid an error.
9285 Use char because int might match the return type of a GCC
9286 builtin and then its argument prototype would still apply. */
9287 #ifdef __cplusplus
9288 extern "C"
9289 #endif
9290 char connect ();
9292 main ()
9294 return connect ();
9296 return 0;
9298 _ACEOF
9299 if ac_fn_c_try_link "$LINENO"; then :
9300 ac_cv_lib_socket_connect=yes
9301 else
9302 ac_cv_lib_socket_connect=no
9304 rm -f core conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9309 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9310 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9311 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9316 # Guillermo Gomez says -lposix is necessary on A/UX.
9317 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9318 if test "x$ac_cv_func_remove" = xyes; then :
9322 if test $ac_cv_func_remove = no; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9324 $as_echo_n "checking for remove in -lposix... " >&6; }
9325 if ${ac_cv_lib_posix_remove+:} false; then :
9326 $as_echo_n "(cached) " >&6
9327 else
9328 ac_check_lib_save_LIBS=$LIBS
9329 LIBS="-lposix $LIBS"
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9333 /* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
9336 #ifdef __cplusplus
9337 extern "C"
9338 #endif
9339 char remove ();
9341 main ()
9343 return remove ();
9345 return 0;
9347 _ACEOF
9348 if ac_fn_c_try_link "$LINENO"; then :
9349 ac_cv_lib_posix_remove=yes
9350 else
9351 ac_cv_lib_posix_remove=no
9353 rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355 LIBS=$ac_check_lib_save_LIBS
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9358 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9359 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9365 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9366 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9367 if test "x$ac_cv_func_shmat" = xyes; then :
9371 if test $ac_cv_func_shmat = no; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9373 $as_echo_n "checking for shmat in -lipc... " >&6; }
9374 if ${ac_cv_lib_ipc_shmat+:} false; then :
9375 $as_echo_n "(cached) " >&6
9376 else
9377 ac_check_lib_save_LIBS=$LIBS
9378 LIBS="-lipc $LIBS"
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9382 /* Override any GCC internal prototype to avoid an error.
9383 Use char because int might match the return type of a GCC
9384 builtin and then its argument prototype would still apply. */
9385 #ifdef __cplusplus
9386 extern "C"
9387 #endif
9388 char shmat ();
9390 main ()
9392 return shmat ();
9394 return 0;
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"; then :
9398 ac_cv_lib_ipc_shmat=yes
9399 else
9400 ac_cv_lib_ipc_shmat=no
9402 rm -f core conftest.err conftest.$ac_objext \
9403 conftest$ac_exeext conftest.$ac_ext
9404 LIBS=$ac_check_lib_save_LIBS
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9407 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9408 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9409 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9415 # Check for libraries that X11R6 Xt/Xaw programs need.
9416 ac_save_LDFLAGS=$LDFLAGS
9417 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9418 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9419 # check for ICE first), but we must link in the order -lSM -lICE or
9420 # we get undefined symbols. So assume we have SM if we have ICE.
9421 # These have to be linked with before -lX11, unlike the other
9422 # libraries we check for below, so use a different variable.
9423 # John Interrante, Karl Berry
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9425 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9426 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 ac_check_lib_save_LIBS=$LIBS
9430 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9434 /* Override any GCC internal prototype to avoid an error.
9435 Use char because int might match the return type of a GCC
9436 builtin and then its argument prototype would still apply. */
9437 #ifdef __cplusplus
9438 extern "C"
9439 #endif
9440 char IceConnectionNumber ();
9442 main ()
9444 return IceConnectionNumber ();
9446 return 0;
9448 _ACEOF
9449 if ac_fn_c_try_link "$LINENO"; then :
9450 ac_cv_lib_ICE_IceConnectionNumber=yes
9451 else
9452 ac_cv_lib_ICE_IceConnectionNumber=no
9454 rm -f core conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9456 LIBS=$ac_check_lib_save_LIBS
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9459 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9460 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9461 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9464 LDFLAGS=$ac_save_LDFLAGS
9469 if test "$have_x" = "yes"
9470 then
9471 ac_save_CPPFLAGS="$CPPFLAGS"
9472 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9475 $as_echo_n "checking for -lX11... " >&6; }
9476 if ${ac_cv_lib_soname_X11+:} false; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 ac_check_soname_save_LIBS=$LIBS
9480 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9487 #ifdef __cplusplus
9488 extern "C"
9489 #endif
9490 char XCreateWindow ();
9492 main ()
9494 return XCreateWindow ();
9496 return 0;
9498 _ACEOF
9499 if ac_fn_c_try_link "$LINENO"; then :
9500 case "$LIBEXT" in
9501 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9502 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'` ;;
9503 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9504 if ${ac_cv_lib_soname_X11:+false} :; then :
9505 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9506 fi ;;
9507 esac
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511 LIBS=$ac_check_soname_save_LIBS
9513 if ${ac_cv_lib_soname_X11:+false} :; then :
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9515 $as_echo "not found" >&6; }
9517 else
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9519 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9521 cat >>confdefs.h <<_ACEOF
9522 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9523 _ACEOF
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9528 $as_echo_n "checking for -lXext... " >&6; }
9529 if ${ac_cv_lib_soname_Xext+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 ac_check_soname_save_LIBS=$LIBS
9533 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9537 /* Override any GCC internal prototype to avoid an error.
9538 Use char because int might match the return type of a GCC
9539 builtin and then its argument prototype would still apply. */
9540 #ifdef __cplusplus
9541 extern "C"
9542 #endif
9543 char XextCreateExtension ();
9545 main ()
9547 return XextCreateExtension ();
9549 return 0;
9551 _ACEOF
9552 if ac_fn_c_try_link "$LINENO"; then :
9553 case "$LIBEXT" in
9554 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9555 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'` ;;
9556 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9557 if ${ac_cv_lib_soname_Xext:+false} :; then :
9558 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9559 fi ;;
9560 esac
9562 rm -f core conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9564 LIBS=$ac_check_soname_save_LIBS
9566 if ${ac_cv_lib_soname_Xext:+false} :; then :
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9568 $as_echo "not found" >&6; }
9570 else
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9572 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9574 cat >>confdefs.h <<_ACEOF
9575 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9576 _ACEOF
9578 X_LIBS="$X_LIBS -lXext"
9580 X_LIBS="$X_LIBS -lX11"
9582 for ac_header in X11/Xlib.h \
9583 X11/XKBlib.h \
9584 X11/Xutil.h \
9585 X11/Xcursor/Xcursor.h \
9586 X11/extensions/shape.h \
9587 X11/extensions/XInput.h \
9588 X11/extensions/XInput2.h \
9589 X11/extensions/XShm.h \
9590 X11/extensions/Xcomposite.h \
9591 X11/extensions/Xinerama.h \
9592 X11/extensions/Xrandr.h \
9593 X11/extensions/Xrender.h \
9594 X11/extensions/xf86vmode.h \
9595 X11/extensions/xf86vmproto.h
9596 do :
9597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9598 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9599 # include <X11/Xlib.h>
9600 #endif
9601 #ifdef HAVE_X11_XUTIL_H
9602 # include <X11/Xutil.h>
9603 #endif
9605 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9606 cat >>confdefs.h <<_ACEOF
9607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9608 _ACEOF
9612 done
9615 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9616 then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9618 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9619 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 ac_check_lib_save_LIBS=$LIBS
9623 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9627 /* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply. */
9630 #ifdef __cplusplus
9631 extern "C"
9632 #endif
9633 char XkbQueryExtension ();
9635 main ()
9637 return XkbQueryExtension ();
9639 return 0;
9641 _ACEOF
9642 if ac_fn_c_try_link "$LINENO"; then :
9643 ac_cv_lib_X11_XkbQueryExtension=yes
9644 else
9645 ac_cv_lib_X11_XkbQueryExtension=no
9647 rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_lib_save_LIBS
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9652 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9653 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9655 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9661 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9662 then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9664 $as_echo_n "checking for -lXcursor... " >&6; }
9665 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 ac_check_soname_save_LIBS=$LIBS
9669 LIBS="-lXcursor $X_LIBS $X_EXTRA_LIBS $LIBS"
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9673 /* Override any GCC internal prototype to avoid an error.
9674 Use char because int might match the return type of a GCC
9675 builtin and then its argument prototype would still apply. */
9676 #ifdef __cplusplus
9677 extern "C"
9678 #endif
9679 char XcursorImageLoadCursor ();
9681 main ()
9683 return XcursorImageLoadCursor ();
9685 return 0;
9687 _ACEOF
9688 if ac_fn_c_try_link "$LINENO"; then :
9689 case "$LIBEXT" in
9690 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9691 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'` ;;
9692 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9693 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9694 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9695 fi ;;
9696 esac
9698 rm -f core conftest.err conftest.$ac_objext \
9699 conftest$ac_exeext conftest.$ac_ext
9700 LIBS=$ac_check_soname_save_LIBS
9702 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9704 $as_echo "not found" >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9708 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9710 cat >>confdefs.h <<_ACEOF
9711 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9712 _ACEOF
9717 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9718 case "x$with_xcursor" in
9719 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9720 xno) ;;
9721 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9722 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9723 esac
9726 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9727 then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9729 $as_echo_n "checking for -lXi... " >&6; }
9730 if ${ac_cv_lib_soname_Xi+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 ac_check_soname_save_LIBS=$LIBS
9734 LIBS="-lXi $X_LIBS $X_EXTRA_LIBS $LIBS"
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9741 #ifdef __cplusplus
9742 extern "C"
9743 #endif
9744 char XOpenDevice ();
9746 main ()
9748 return XOpenDevice ();
9750 return 0;
9752 _ACEOF
9753 if ac_fn_c_try_link "$LINENO"; then :
9754 case "$LIBEXT" in
9755 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9756 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'` ;;
9757 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9758 if ${ac_cv_lib_soname_Xi:+false} :; then :
9759 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9760 fi ;;
9761 esac
9763 rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_soname_save_LIBS
9767 if ${ac_cv_lib_soname_Xi:+false} :; then :
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9769 $as_echo "not found" >&6; }
9771 else
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9773 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9775 cat >>confdefs.h <<_ACEOF
9776 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9777 _ACEOF
9782 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9783 case "x$with_xinput" in
9784 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9785 xno) ;;
9786 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9787 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9788 esac
9791 if test "x$ac_cv_lib_soname_Xi" != x
9792 then
9793 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9794 case "x$with_xinput2" in
9795 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9796 xno) ;;
9797 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9798 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9799 esac
9803 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9804 then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9806 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9807 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 ac_check_lib_save_LIBS=$LIBS
9811 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9815 /* Override any GCC internal prototype to avoid an error.
9816 Use char because int might match the return type of a GCC
9817 builtin and then its argument prototype would still apply. */
9818 #ifdef __cplusplus
9819 extern "C"
9820 #endif
9821 char XShmQueryExtension ();
9823 main ()
9825 return XShmQueryExtension ();
9827 return 0;
9829 _ACEOF
9830 if ac_fn_c_try_link "$LINENO"; then :
9831 ac_cv_lib_Xext_XShmQueryExtension=yes
9832 else
9833 ac_cv_lib_Xext_XShmQueryExtension=no
9835 rm -f core conftest.err conftest.$ac_objext \
9836 conftest$ac_exeext conftest.$ac_ext
9837 LIBS=$ac_check_lib_save_LIBS
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9840 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9841 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9843 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9848 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9849 case "x$with_xshm" in
9850 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9851 xno) ;;
9852 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9853 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9854 esac
9857 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9858 then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9860 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9861 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 ac_check_lib_save_LIBS=$LIBS
9865 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9869 /* Override any GCC internal prototype to avoid an error.
9870 Use char because int might match the return type of a GCC
9871 builtin and then its argument prototype would still apply. */
9872 #ifdef __cplusplus
9873 extern "C"
9874 #endif
9875 char XShapeQueryExtension ();
9877 main ()
9879 return XShapeQueryExtension ();
9881 return 0;
9883 _ACEOF
9884 if ac_fn_c_try_link "$LINENO"; then :
9885 ac_cv_lib_Xext_XShapeQueryExtension=yes
9886 else
9887 ac_cv_lib_Xext_XShapeQueryExtension=no
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_check_lib_save_LIBS
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9894 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9895 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9897 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9902 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9903 case "x$with_xshape" in
9904 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9905 xno) ;;
9906 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9907 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9908 esac
9911 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9912 then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9914 $as_echo_n "checking for -lXxf86vm... " >&6; }
9915 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 ac_check_soname_save_LIBS=$LIBS
9919 LIBS="-lXxf86vm $X_LIBS $X_EXTRA_LIBS $LIBS"
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char XF86VidModeQueryExtension ();
9931 main ()
9933 return XF86VidModeQueryExtension ();
9935 return 0;
9937 _ACEOF
9938 if ac_fn_c_try_link "$LINENO"; then :
9939 case "$LIBEXT" in
9940 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9941 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'` ;;
9942 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9943 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9944 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9945 fi ;;
9946 esac
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_soname_save_LIBS
9952 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9954 $as_echo "not found" >&6; }
9956 else
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9958 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9960 cat >>confdefs.h <<_ACEOF
9961 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9962 _ACEOF
9967 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9968 case "x$with_xxf86vm" in
9969 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9970 xno) ;;
9971 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9972 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9973 esac
9976 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x"
9977 then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9979 $as_echo_n "checking for -lXrender... " >&6; }
9980 if ${ac_cv_lib_soname_Xrender+:} false; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 ac_check_soname_save_LIBS=$LIBS
9984 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9988 /* Override any GCC internal prototype to avoid an error.
9989 Use char because int might match the return type of a GCC
9990 builtin and then its argument prototype would still apply. */
9991 #ifdef __cplusplus
9992 extern "C"
9993 #endif
9994 char XRenderQueryExtension ();
9996 main ()
9998 return XRenderQueryExtension ();
10000 return 0;
10002 _ACEOF
10003 if ac_fn_c_try_link "$LINENO"; then :
10004 case "$LIBEXT" in
10005 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10006 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'` ;;
10007 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10008 if ${ac_cv_lib_soname_Xrender:+false} :; then :
10009 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10010 fi ;;
10011 esac
10013 rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
10015 LIBS=$ac_check_soname_save_LIBS
10017 if ${ac_cv_lib_soname_Xrender:+false} :; then :
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10019 $as_echo "not found" >&6; }
10021 else
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
10023 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
10025 cat >>confdefs.h <<_ACEOF
10026 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10027 _ACEOF
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
10030 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
10031 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 ac_check_lib_save_LIBS=$LIBS
10035 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10042 #ifdef __cplusplus
10043 extern "C"
10044 #endif
10045 char XRenderSetPictureTransform ();
10047 main ()
10049 return XRenderSetPictureTransform ();
10051 return 0;
10053 _ACEOF
10054 if ac_fn_c_try_link "$LINENO"; then :
10055 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
10056 else
10057 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
10064 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
10065 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
10067 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
10072 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
10073 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
10074 $as_echo_n "(cached) " >&6
10075 else
10076 ac_check_lib_save_LIBS=$LIBS
10077 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 char XRenderCreateLinearGradient ();
10089 main ()
10091 return XRenderCreateLinearGradient ();
10093 return 0;
10095 _ACEOF
10096 if ac_fn_c_try_link "$LINENO"; then :
10097 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
10098 else
10099 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
10101 rm -f core conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10103 LIBS=$ac_check_lib_save_LIBS
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
10106 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
10107 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
10109 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
10116 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
10117 case "x$with_xrender" in
10118 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
10119 xno) ;;
10120 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
10121 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
10122 esac
10125 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
10126 then
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 #include <X11/Xlib.h>
10130 #include <X11/extensions/Xrandr.h>
10132 main ()
10134 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
10136 return 0;
10138 _ACEOF
10139 if ac_fn_c_try_compile "$LINENO"; then :
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
10141 $as_echo_n "checking for -lXrandr... " >&6; }
10142 if ${ac_cv_lib_soname_Xrandr+:} false; then :
10143 $as_echo_n "(cached) " >&6
10144 else
10145 ac_check_soname_save_LIBS=$LIBS
10146 LIBS="-lXrandr $X_LIBS $X_EXTRA_LIBS $LIBS"
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10150 /* Override any GCC internal prototype to avoid an error.
10151 Use char because int might match the return type of a GCC
10152 builtin and then its argument prototype would still apply. */
10153 #ifdef __cplusplus
10154 extern "C"
10155 #endif
10156 char XRRQueryExtension ();
10158 main ()
10160 return XRRQueryExtension ();
10162 return 0;
10164 _ACEOF
10165 if ac_fn_c_try_link "$LINENO"; then :
10166 case "$LIBEXT" in
10167 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10168 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'` ;;
10169 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10170 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
10171 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10172 fi ;;
10173 esac
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_soname_save_LIBS
10179 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10181 $as_echo "not found" >&6; }
10183 else
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
10185 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
10187 cat >>confdefs.h <<_ACEOF
10188 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
10189 _ACEOF
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193 #include <X11/Xlib.h>
10194 #include <X11/extensions/Xrandr.h>
10196 main ()
10198 static typeof(XRRGetScreenResources) *f; if (f) return 0;
10200 return 0;
10202 _ACEOF
10203 if ac_fn_c_try_compile "$LINENO"; then :
10205 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
10208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
10214 case "x$with_xrandr" in
10215 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
10216 xno) ;;
10217 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
10218 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
10219 esac
10222 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10223 then
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226 #include <X11/Xlib.h>
10227 #include <X11/extensions/Xinerama.h>
10229 main ()
10231 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10233 return 0;
10235 _ACEOF
10236 if ac_fn_c_try_compile "$LINENO"; then :
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10238 $as_echo_n "checking for -lXinerama... " >&6; }
10239 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 ac_check_soname_save_LIBS=$LIBS
10243 LIBS="-lXinerama $X_LIBS $X_EXTRA_LIBS $LIBS"
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10247 /* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10250 #ifdef __cplusplus
10251 extern "C"
10252 #endif
10253 char XineramaQueryScreens ();
10255 main ()
10257 return XineramaQueryScreens ();
10259 return 0;
10261 _ACEOF
10262 if ac_fn_c_try_link "$LINENO"; then :
10263 case "$LIBEXT" in
10264 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10265 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'` ;;
10266 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10267 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10268 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10269 fi ;;
10270 esac
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_soname_save_LIBS
10276 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10278 $as_echo "not found" >&6; }
10280 else
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10282 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10284 cat >>confdefs.h <<_ACEOF
10285 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10286 _ACEOF
10291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10293 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10294 case "x$with_xinerama" in
10295 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10296 xno) ;;
10297 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10298 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10299 esac
10302 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10303 then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10305 $as_echo_n "checking for -lXcomposite... " >&6; }
10306 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 ac_check_soname_save_LIBS=$LIBS
10310 LIBS="-lXcomposite $X_LIBS $X_EXTRA_LIBS $LIBS"
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10314 /* Override any GCC internal prototype to avoid an error.
10315 Use char because int might match the return type of a GCC
10316 builtin and then its argument prototype would still apply. */
10317 #ifdef __cplusplus
10318 extern "C"
10319 #endif
10320 char XCompositeRedirectWindow ();
10322 main ()
10324 return XCompositeRedirectWindow ();
10326 return 0;
10328 _ACEOF
10329 if ac_fn_c_try_link "$LINENO"; then :
10330 case "$LIBEXT" in
10331 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10332 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'` ;;
10333 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10334 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10335 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10336 fi ;;
10337 esac
10339 rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341 LIBS=$ac_check_soname_save_LIBS
10343 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10345 $as_echo "not found" >&6; }
10347 else
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10349 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10351 cat >>confdefs.h <<_ACEOF
10352 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10353 _ACEOF
10358 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10359 case "x$with_xcomposite" in
10360 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10361 xno) ;;
10362 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10363 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10364 esac
10367 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10368 #include <X11/Xlib.h>
10369 #endif
10371 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10373 cat >>confdefs.h <<_ACEOF
10374 #define HAVE_XICCALLBACK_CALLBACK 1
10375 _ACEOF
10379 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10380 #include <X11/Xlib.h>
10381 #endif
10383 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10385 cat >>confdefs.h <<_ACEOF
10386 #define HAVE_XEVENT_XCOOKIE 1
10387 _ACEOF
10394 opengl_msg=""
10395 if test "x$with_opengl" != "xno"
10396 then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10398 $as_echo_n "checking for -lGL... " >&6; }
10399 if ${ac_cv_lib_soname_GL+:} false; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 ac_check_soname_save_LIBS=$LIBS
10403 LIBS="-lGL $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10407 /* Override any GCC internal prototype to avoid an error.
10408 Use char because int might match the return type of a GCC
10409 builtin and then its argument prototype would still apply. */
10410 #ifdef __cplusplus
10411 extern "C"
10412 #endif
10413 char glXCreateContext ();
10415 main ()
10417 return glXCreateContext ();
10419 return 0;
10421 _ACEOF
10422 if ac_fn_c_try_link "$LINENO"; then :
10423 case "$LIBEXT" in
10424 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10425 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'` ;;
10426 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10427 if ${ac_cv_lib_soname_GL:+false} :; then :
10428 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10429 fi ;;
10430 esac
10432 rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434 LIBS=$ac_check_soname_save_LIBS
10436 if ${ac_cv_lib_soname_GL:+false} :; then :
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10438 $as_echo "not found" >&6; }
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10440 $as_echo_n "checking for -lGL... " >&6; }
10441 if ${ac_cv_lib_soname_GL+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 ac_check_soname_save_LIBS=$LIBS
10445 LIBS="-lGL $X_LIBS -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"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10449 /* Override any GCC internal prototype to avoid an error.
10450 Use char because int might match the return type of a GCC
10451 builtin and then its argument prototype would still apply. */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 char glXCreateContext ();
10457 main ()
10459 return glXCreateContext ();
10461 return 0;
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then :
10465 case "$LIBEXT" in
10466 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10467 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'` ;;
10468 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10469 if ${ac_cv_lib_soname_GL:+false} :; then :
10470 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10471 fi ;;
10472 esac
10474 rm -f core conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 LIBS=$ac_check_soname_save_LIBS
10478 if ${ac_cv_lib_soname_GL:+false} :; then :
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10480 $as_echo "not found" >&6; }
10481 if test -f /usr/X11R6/lib/libGL.a
10482 then
10483 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10484 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10485 else
10486 opengl_msg="No OpenGL library found on this system."
10488 else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10490 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10492 cat >>confdefs.h <<_ACEOF
10493 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10494 _ACEOF
10496 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"
10498 else
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10500 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10502 cat >>confdefs.h <<_ACEOF
10503 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10504 _ACEOF
10506 OPENGL_LIBS="-lGL"
10508 if test "x$with_glu" != "xno"
10509 then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10511 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10512 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 ac_check_lib_save_LIBS=$LIBS
10516 LIBS="-lGLU $OPENGL_LIBS $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10520 /* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10523 #ifdef __cplusplus
10524 extern "C"
10525 #endif
10526 char gluLookAt ();
10528 main ()
10530 return gluLookAt ();
10532 return 0;
10534 _ACEOF
10535 if ac_fn_c_try_link "$LINENO"; then :
10536 ac_cv_lib_GLU_gluLookAt=yes
10537 else
10538 ac_cv_lib_GLU_gluLookAt=no
10540 rm -f core conftest.err conftest.$ac_objext \
10541 conftest$ac_exeext conftest.$ac_ext
10542 LIBS=$ac_check_lib_save_LIBS
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10545 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10546 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10550 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10551 case "x$with_glu" in
10552 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10553 xno) ;;
10554 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10555 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10556 esac
10560 if test "x$with_osmesa" != "xno"
10561 then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10563 $as_echo_n "checking for -lOSMesa... " >&6; }
10564 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 ac_check_soname_save_LIBS=$LIBS
10568 LIBS="-lOSMesa $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10572 /* Override any GCC internal prototype to avoid an error.
10573 Use char because int might match the return type of a GCC
10574 builtin and then its argument prototype would still apply. */
10575 #ifdef __cplusplus
10576 extern "C"
10577 #endif
10578 char glAccum ();
10580 main ()
10582 return glAccum ();
10584 return 0;
10586 _ACEOF
10587 if ac_fn_c_try_link "$LINENO"; then :
10588 case "$LIBEXT" in
10589 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10590 dylib) ac_cv_lib_soname_OSMesa=`otool -L conftest$ac_exeext | grep "libOSMesa\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libOSMesa\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10591 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10592 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10593 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10594 fi ;;
10595 esac
10597 rm -f core conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_soname_save_LIBS
10601 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10603 $as_echo "not found" >&6; }
10605 else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10607 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10609 cat >>confdefs.h <<_ACEOF
10610 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10611 _ACEOF
10615 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10616 case "x$with_osmesa" in
10617 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10618 xno) ;;
10619 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10620 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10621 esac
10625 if test -n "$opengl_msg"; then :
10626 case "x$with_opengl" in
10627 x) as_fn_append wine_warnings "|$opengl_msg
10628 OpenGL and Direct3D won't be supported." ;;
10629 xno) ;;
10630 *) as_fn_error $? "$opengl_msg
10631 OpenGL and Direct3D won't be supported.
10632 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10633 esac
10636 CPPFLAGS="$ac_save_CPPFLAGS"
10637 else
10638 X_CFLAGS=""
10639 X_LIBS=""
10640 enable_winex11_drv=${enable_winex11_drv:-no}
10642 if test "x$X_LIBS" = "x"; then :
10643 case "x$with_x" in
10644 xno) ;;
10645 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10646 without X support, which probably isn't what you want. You will need
10647 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10648 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10649 esac
10652 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10654 if test "$ac_cv_header_CL_cl_h" = "yes"
10655 then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10657 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10658 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10659 $as_echo_n "(cached) " >&6
10660 else
10661 ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-lOpenCL $LIBS"
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10669 #ifdef __cplusplus
10670 extern "C"
10671 #endif
10672 char clGetPlatformInfo ();
10674 main ()
10676 return clGetPlatformInfo ();
10678 return 0;
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"; then :
10682 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10683 else
10684 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688 LIBS=$ac_check_lib_save_LIBS
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10691 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10692 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10693 OPENCL_LIBS="-lOpenCL"
10698 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10699 case "x$with_opencl" in
10700 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10701 xno) ;;
10702 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10703 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10704 esac
10706 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10708 if test "$ac_cv_header_pcap_pcap_h" = "yes"
10709 then
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
10711 $as_echo_n "checking for pcap_create in -lpcap... " >&6; }
10712 if ${ac_cv_lib_pcap_pcap_create+:} false; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 ac_check_lib_save_LIBS=$LIBS
10716 LIBS="-lpcap $LIBS"
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10720 /* Override any GCC internal prototype to avoid an error.
10721 Use char because int might match the return type of a GCC
10722 builtin and then its argument prototype would still apply. */
10723 #ifdef __cplusplus
10724 extern "C"
10725 #endif
10726 char pcap_create ();
10728 main ()
10730 return pcap_create ();
10732 return 0;
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10736 ac_cv_lib_pcap_pcap_create=yes
10737 else
10738 ac_cv_lib_pcap_pcap_create=no
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
10745 $as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
10746 if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
10747 LIBPCAP="-lpcap"
10752 if test "x$ac_cv_lib_pcap_pcap_create" != xyes; then :
10753 case "x$with_pcap" in
10754 x) as_fn_append wine_notices "|pcap ${notice_platform}development files not found, wpcap won't be supported." ;;
10755 xno) ;;
10756 *) as_fn_error $? "pcap ${notice_platform}development files not found, wpcap won't be supported.
10757 This is an error since --with-pcap was requested." "$LINENO" 5 ;;
10758 esac
10760 test "x$ac_cv_lib_pcap_pcap_create" != xyes && enable_wpcap=${enable_wpcap:-no}
10763 if test "x$with_xml" != "xno"
10764 then
10765 if ${XML2_CFLAGS:+false} :; then :
10766 if ${PKG_CONFIG+:} false; then :
10767 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10770 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10771 if ${XML2_LIBS:+false} :; then :
10772 if ${PKG_CONFIG+:} false; then :
10773 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10776 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10777 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10778 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 cflags: $XML2_CFLAGS" >&5
10779 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 libs: $XML2_LIBS" >&5
10780 ac_save_CPPFLAGS=$CPPFLAGS
10781 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10782 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10783 do :
10784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10785 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10787 cat >>confdefs.h <<_ACEOF
10788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10789 _ACEOF
10793 done
10795 if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
10796 then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10798 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10799 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 ac_check_lib_save_LIBS=$LIBS
10803 LIBS="-lxml2 $XML2_LIBS $LIBS"
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10807 /* Override any GCC internal prototype to avoid an error.
10808 Use char because int might match the return type of a GCC
10809 builtin and then its argument prototype would still apply. */
10810 #ifdef __cplusplus
10811 extern "C"
10812 #endif
10813 char xmlParseMemory ();
10815 main ()
10817 return xmlParseMemory ();
10819 return 0;
10821 _ACEOF
10822 if ac_fn_c_try_link "$LINENO"; then :
10823 ac_cv_lib_xml2_xmlParseMemory=yes
10824 else
10825 ac_cv_lib_xml2_xmlParseMemory=no
10827 rm -f core conftest.err conftest.$ac_objext \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10832 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10833 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10835 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10837 else
10838 XML2_LIBS=""
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10842 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10843 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 ac_check_lib_save_LIBS=$LIBS
10847 LIBS="-lxml2 $XML2_LIBS $LIBS"
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10851 /* Override any GCC internal prototype to avoid an error.
10852 Use char because int might match the return type of a GCC
10853 builtin and then its argument prototype would still apply. */
10854 #ifdef __cplusplus
10855 extern "C"
10856 #endif
10857 char xmlReadMemory ();
10859 main ()
10861 return xmlReadMemory ();
10863 return 0;
10865 _ACEOF
10866 if ac_fn_c_try_link "$LINENO"; then :
10867 ac_cv_lib_xml2_xmlReadMemory=yes
10868 else
10869 ac_cv_lib_xml2_xmlReadMemory=no
10871 rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10873 LIBS=$ac_check_lib_save_LIBS
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10876 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10877 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10879 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10884 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10885 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 ac_check_lib_save_LIBS=$LIBS
10889 LIBS="-lxml2 $XML2_LIBS $LIBS"
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 char xmlNewDocPI ();
10901 main ()
10903 return xmlNewDocPI ();
10905 return 0;
10907 _ACEOF
10908 if ac_fn_c_try_link "$LINENO"; then :
10909 ac_cv_lib_xml2_xmlNewDocPI=yes
10910 else
10911 ac_cv_lib_xml2_xmlNewDocPI=no
10913 rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_lib_save_LIBS
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10918 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10919 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10921 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10926 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10927 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10928 $as_echo_n "(cached) " >&6
10929 else
10930 ac_check_lib_save_LIBS=$LIBS
10931 LIBS="-lxml2 $XML2_LIBS $LIBS"
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10935 /* Override any GCC internal prototype to avoid an error.
10936 Use char because int might match the return type of a GCC
10937 builtin and then its argument prototype would still apply. */
10938 #ifdef __cplusplus
10939 extern "C"
10940 #endif
10941 char xmlSchemaSetParserStructuredErrors ();
10943 main ()
10945 return xmlSchemaSetParserStructuredErrors ();
10947 return 0;
10949 _ACEOF
10950 if ac_fn_c_try_link "$LINENO"; then :
10951 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10952 else
10953 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10957 LIBS=$ac_check_lib_save_LIBS
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10960 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10961 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10963 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10968 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10969 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 ac_check_lib_save_LIBS=$LIBS
10973 LIBS="-lxml2 $XML2_LIBS $LIBS"
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10977 /* Override any GCC internal prototype to avoid an error.
10978 Use char because int might match the return type of a GCC
10979 builtin and then its argument prototype would still apply. */
10980 #ifdef __cplusplus
10981 extern "C"
10982 #endif
10983 char xmlSchemaSetValidStructuredErrors ();
10985 main ()
10987 return xmlSchemaSetValidStructuredErrors ();
10989 return 0;
10991 _ACEOF
10992 if ac_fn_c_try_link "$LINENO"; then :
10993 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10994 else
10995 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
10997 rm -f core conftest.err conftest.$ac_objext \
10998 conftest$ac_exeext conftest.$ac_ext
10999 LIBS=$ac_check_lib_save_LIBS
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
11002 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
11003 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
11005 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
11010 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
11011 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 ac_check_lib_save_LIBS=$LIBS
11015 LIBS="-lxml2 $XML2_LIBS $LIBS"
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11019 /* Override any GCC internal prototype to avoid an error.
11020 Use char because int might match the return type of a GCC
11021 builtin and then its argument prototype would still apply. */
11022 #ifdef __cplusplus
11023 extern "C"
11024 #endif
11025 char xmlFirstElementChild ();
11027 main ()
11029 return xmlFirstElementChild ();
11031 return 0;
11033 _ACEOF
11034 if ac_fn_c_try_link "$LINENO"; then :
11035 ac_cv_lib_xml2_xmlFirstElementChild=yes
11036 else
11037 ac_cv_lib_xml2_xmlFirstElementChild=no
11039 rm -f core conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11041 LIBS=$ac_check_lib_save_LIBS
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
11044 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
11045 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
11047 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
11051 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
11053 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
11055 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
11059 else
11060 XML2_CFLAGS=""
11061 XML2_LIBS=""
11063 CPPFLAGS=$ac_save_CPPFLAGS
11064 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11065 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11068 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
11069 case "x$with_xml" in
11070 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
11071 xno) ;;
11072 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
11073 This is an error since --with-xml was requested." "$LINENO" 5 ;;
11074 esac
11077 if test "x$with_xslt" != "xno"
11078 then
11079 if ${XSLT_CFLAGS:+false} :; then :
11080 if ${PKG_CONFIG+:} false; then :
11081 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
11084 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
11085 if ${XSLT_LIBS:+false} :; then :
11086 if ${PKG_CONFIG+:} false; then :
11087 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
11090 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
11091 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
11092 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt cflags: $XSLT_CFLAGS" >&5
11093 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt libs: $XSLT_LIBS" >&5
11094 ac_save_CPPFLAGS=$CPPFLAGS
11095 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
11096 for ac_header in libxslt/pattern.h libxslt/transform.h
11097 do :
11098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
11100 # include <libxslt/pattern.h>
11101 #endif
11103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11104 cat >>confdefs.h <<_ACEOF
11105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11106 _ACEOF
11110 done
11112 if test "$ac_cv_header_libxslt_transform_h" = "yes"
11113 then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
11115 $as_echo_n "checking for -lxslt... " >&6; }
11116 if ${ac_cv_lib_soname_xslt+:} false; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 ac_check_soname_save_LIBS=$LIBS
11120 LIBS="-lxslt $XSLT_LIBS $LIBS"
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11124 /* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11127 #ifdef __cplusplus
11128 extern "C"
11129 #endif
11130 char xsltCompilePattern ();
11132 main ()
11134 return xsltCompilePattern ();
11136 return 0;
11138 _ACEOF
11139 if ac_fn_c_try_link "$LINENO"; then :
11140 case "$LIBEXT" in
11141 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11142 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'` ;;
11143 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11144 if ${ac_cv_lib_soname_xslt:+false} :; then :
11145 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11146 fi ;;
11147 esac
11149 rm -f core conftest.err conftest.$ac_objext \
11150 conftest$ac_exeext conftest.$ac_ext
11151 LIBS=$ac_check_soname_save_LIBS
11153 if ${ac_cv_lib_soname_xslt:+false} :; then :
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11155 $as_echo "not found" >&6; }
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
11159 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
11161 cat >>confdefs.h <<_ACEOF
11162 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
11163 _ACEOF
11167 else
11168 XSLT_CFLAGS=""
11170 CPPFLAGS=$ac_save_CPPFLAGS
11171 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11172 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11175 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
11176 case "x$with_xslt" in
11177 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
11178 xno) ;;
11179 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
11180 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
11181 esac
11184 if test "x$with_dbus" != "xno"
11185 then
11186 if ${DBUS_CFLAGS:+false} :; then :
11187 if ${PKG_CONFIG+:} false; then :
11188 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
11192 if ${DBUS_LIBS:+false} :; then :
11193 if ${PKG_CONFIG+:} false; then :
11194 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
11199 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 cflags: $DBUS_CFLAGS" >&5
11200 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 libs: $DBUS_LIBS" >&5
11201 ac_save_CPPFLAGS=$CPPFLAGS
11202 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
11203 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
11204 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
11206 $as_echo_n "checking for -ldbus-1... " >&6; }
11207 if ${ac_cv_lib_soname_dbus_1+:} false; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 ac_check_soname_save_LIBS=$LIBS
11211 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11215 /* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
11218 #ifdef __cplusplus
11219 extern "C"
11220 #endif
11221 char dbus_connection_close ();
11223 main ()
11225 return dbus_connection_close ();
11227 return 0;
11229 _ACEOF
11230 if ac_fn_c_try_link "$LINENO"; then :
11231 case "$LIBEXT" in
11232 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11233 dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11234 *) ac_cv_lib_soname_dbus_1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libdbus-1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libdbus-1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11235 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
11236 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11237 fi ;;
11238 esac
11240 rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11242 LIBS=$ac_check_soname_save_LIBS
11244 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11246 $as_echo "not found" >&6; }
11247 DBUS_CFLAGS=""
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
11250 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
11252 cat >>confdefs.h <<_ACEOF
11253 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
11254 _ACEOF
11258 else
11259 DBUS_CFLAGS=""
11263 CPPFLAGS=$ac_save_CPPFLAGS
11264 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11265 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11268 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
11269 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11270 case "x$with_dbus" in
11271 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
11272 xno) ;;
11273 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
11274 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
11275 esac
11278 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
11279 then
11280 if ${HAL_CFLAGS:+false} :; then :
11281 if ${PKG_CONFIG+:} false; then :
11282 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11286 if ${HAL_LIBS:+false} :; then :
11287 if ${PKG_CONFIG+:} false; then :
11288 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11292 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11293 $as_echo "$as_me:${as_lineno-$LINENO}: hal cflags: $HAL_CFLAGS" >&5
11294 $as_echo "$as_me:${as_lineno-$LINENO}: hal libs: $HAL_LIBS" >&5
11295 ac_save_CPPFLAGS=$CPPFLAGS
11296 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11297 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11298 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11300 $as_echo_n "checking for -lhal... " >&6; }
11301 if ${ac_cv_lib_soname_hal+:} false; then :
11302 $as_echo_n "(cached) " >&6
11303 else
11304 ac_check_soname_save_LIBS=$LIBS
11305 LIBS="-lhal $HAL_LIBS $LIBS"
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11309 /* Override any GCC internal prototype to avoid an error.
11310 Use char because int might match the return type of a GCC
11311 builtin and then its argument prototype would still apply. */
11312 #ifdef __cplusplus
11313 extern "C"
11314 #endif
11315 char libhal_ctx_new ();
11317 main ()
11319 return libhal_ctx_new ();
11321 return 0;
11323 _ACEOF
11324 if ac_fn_c_try_link "$LINENO"; then :
11325 case "$LIBEXT" in
11326 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11327 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'` ;;
11328 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11329 if ${ac_cv_lib_soname_hal:+false} :; then :
11330 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11331 fi ;;
11332 esac
11334 rm -f core conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
11336 LIBS=$ac_check_soname_save_LIBS
11338 if ${ac_cv_lib_soname_hal:+false} :; then :
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11340 $as_echo "not found" >&6; }
11341 HAL_CFLAGS=""
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11344 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11346 cat >>confdefs.h <<_ACEOF
11347 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11348 _ACEOF
11352 else
11353 HAL_CFLAGS=""
11357 CPPFLAGS=$ac_save_CPPFLAGS
11358 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11359 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11361 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11362 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11363 case "x$with_hal" in
11364 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11365 xno) ;;
11366 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11367 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11368 esac
11372 if test "x$with_gnutls" != "xno"
11373 then
11374 if ${GNUTLS_CFLAGS:+false} :; then :
11375 if ${PKG_CONFIG+:} false; then :
11376 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11380 if ${GNUTLS_LIBS:+false} :; then :
11381 if ${PKG_CONFIG+:} false; then :
11382 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11387 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls cflags: $GNUTLS_CFLAGS" >&5
11388 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls libs: $GNUTLS_LIBS" >&5
11389 ac_save_CPPFLAGS=$CPPFLAGS
11390 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11391 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11392 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11395 #include <gnutls/gnutls.h>
11396 #include <gnutls/crypto.h>
11398 main ()
11400 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11402 return 0;
11404 _ACEOF
11405 if ac_fn_c_try_compile "$LINENO"; then :
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11407 $as_echo_n "checking for -lgnutls... " >&6; }
11408 if ${ac_cv_lib_soname_gnutls+:} false; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 ac_check_soname_save_LIBS=$LIBS
11412 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11416 /* Override any GCC internal prototype to avoid an error.
11417 Use char because int might match the return type of a GCC
11418 builtin and then its argument prototype would still apply. */
11419 #ifdef __cplusplus
11420 extern "C"
11421 #endif
11422 char gnutls_global_init ();
11424 main ()
11426 return gnutls_global_init ();
11428 return 0;
11430 _ACEOF
11431 if ac_fn_c_try_link "$LINENO"; then :
11432 case "$LIBEXT" in
11433 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11434 dylib) ac_cv_lib_soname_gnutls=`otool -L conftest$ac_exeext | grep "libgnutls\\(-deb0\\)\\{0,1\\}\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgnutls\\(-deb0\\)\\{0,1\\}\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11435 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\(-deb0\\)\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\(-deb0\\)\\{0,1\\}\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11436 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11437 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\(-deb0\\)\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\\(-deb0\\)\\{0,1\\}\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11438 fi ;;
11439 esac
11441 rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443 LIBS=$ac_check_soname_save_LIBS
11445 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11447 $as_echo "not found" >&6; }
11448 GNUTLS_CFLAGS=""
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11451 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11453 cat >>confdefs.h <<_ACEOF
11454 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11455 _ACEOF
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 else
11462 GNUTLS_CFLAGS=""
11466 CPPFLAGS=$ac_save_CPPFLAGS
11467 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11468 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11471 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11472 case "x$with_gnutls" in
11473 x) as_fn_append wine_warnings "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11474 xno) ;;
11475 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11476 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11477 esac
11480 CURSES_LIBS=""
11481 if test "$ac_cv_header_ncurses_h" = "yes"
11482 then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11484 $as_echo_n "checking for -lncurses... " >&6; }
11485 if ${ac_cv_lib_soname_ncurses+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 ac_check_soname_save_LIBS=$LIBS
11489 LIBS="-lncurses $LIBS"
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11493 /* Override any GCC internal prototype to avoid an error.
11494 Use char because int might match the return type of a GCC
11495 builtin and then its argument prototype would still apply. */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 char waddch ();
11501 main ()
11503 return waddch ();
11505 return 0;
11507 _ACEOF
11508 if ac_fn_c_try_link "$LINENO"; then :
11509 case "$LIBEXT" in
11510 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11511 dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep "libncursesw\\{0,1\\}\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libncursesw\\{0,1\\}\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11512 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncursesw\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncursesw\\{0,1\\}\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11513 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11514 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncursesw\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\(libncursesw\\{0,1\\}\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11515 fi ;;
11516 esac
11518 rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 LIBS=$ac_check_soname_save_LIBS
11522 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11524 $as_echo "not found" >&6; }
11526 else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11528 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11530 cat >>confdefs.h <<_ACEOF
11531 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11532 _ACEOF
11534 CURSES_LIBS="-lncurses"
11536 elif test "$ac_cv_header_curses_h" = "yes"
11537 then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11539 $as_echo_n "checking for -lcurses... " >&6; }
11540 if ${ac_cv_lib_soname_curses+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 ac_check_soname_save_LIBS=$LIBS
11544 LIBS="-lcurses $LIBS"
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11548 /* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11551 #ifdef __cplusplus
11552 extern "C"
11553 #endif
11554 char waddch ();
11556 main ()
11558 return waddch ();
11560 return 0;
11562 _ACEOF
11563 if ac_fn_c_try_link "$LINENO"; then :
11564 case "$LIBEXT" in
11565 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11566 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'` ;;
11567 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11568 if ${ac_cv_lib_soname_curses:+false} :; then :
11569 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11570 fi ;;
11571 esac
11573 rm -f core conftest.err conftest.$ac_objext \
11574 conftest$ac_exeext conftest.$ac_ext
11575 LIBS=$ac_check_soname_save_LIBS
11577 if ${ac_cv_lib_soname_curses:+false} :; then :
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11579 $as_echo "not found" >&6; }
11581 else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11583 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11585 cat >>confdefs.h <<_ACEOF
11586 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11587 _ACEOF
11589 CURSES_LIBS="-lcurses"
11592 ac_save_LIBS="$LIBS"
11593 LIBS="$LIBS $CURSES_LIBS"
11594 for ac_func in mousemask
11595 do :
11596 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11597 if test "x$ac_cv_func_mousemask" = xyes; then :
11598 cat >>confdefs.h <<_ACEOF
11599 #define HAVE_MOUSEMASK 1
11600 _ACEOF
11603 done
11605 LIBS="$ac_save_LIBS"
11606 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11607 case "x$with_curses" in
11608 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11609 xno) ;;
11610 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11611 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11612 esac
11615 if test "x$with_sane" != "xno"
11616 then
11617 if ${SANE_CFLAGS:+false} :; then :
11618 if ${PKG_CONFIG+:} false; then :
11619 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11622 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11623 if ${SANE_LIBS:+false} :; then :
11624 if ${PKG_CONFIG+:} false; then :
11625 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11628 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11630 $as_echo "$as_me:${as_lineno-$LINENO}: libsane cflags: $SANE_CFLAGS" >&5
11631 $as_echo "$as_me:${as_lineno-$LINENO}: libsane libs: $SANE_LIBS" >&5
11632 ac_save_CPPFLAGS=$CPPFLAGS
11633 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11634 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11635 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11637 $as_echo_n "checking for -lsane... " >&6; }
11638 if ${ac_cv_lib_soname_sane+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 ac_check_soname_save_LIBS=$LIBS
11642 LIBS="-lsane $SANE_LIBS $LIBS"
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11646 /* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 char sane_init ();
11654 main ()
11656 return sane_init ();
11658 return 0;
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662 case "$LIBEXT" in
11663 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11664 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'` ;;
11665 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11666 if ${ac_cv_lib_soname_sane:+false} :; then :
11667 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11668 fi ;;
11669 esac
11671 rm -f core conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11673 LIBS=$ac_check_soname_save_LIBS
11675 if ${ac_cv_lib_soname_sane:+false} :; then :
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11677 $as_echo "not found" >&6; }
11678 SANE_CFLAGS=""
11679 else
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11681 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11683 cat >>confdefs.h <<_ACEOF
11684 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11685 _ACEOF
11689 else
11690 SANE_CFLAGS=""
11694 CPPFLAGS=$ac_save_CPPFLAGS
11695 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11696 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11699 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11700 case "x$with_sane" in
11701 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11702 xno) ;;
11703 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11704 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11705 esac
11708 if test "x$with_v4l" != "xno"
11709 then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11711 $as_echo_n "checking for -lv4l1... " >&6; }
11712 if ${ac_cv_lib_soname_v4l1+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714 else
11715 ac_check_soname_save_LIBS=$LIBS
11716 LIBS="-lv4l1 $LIBS"
11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11720 /* Override any GCC internal prototype to avoid an error.
11721 Use char because int might match the return type of a GCC
11722 builtin and then its argument prototype would still apply. */
11723 #ifdef __cplusplus
11724 extern "C"
11725 #endif
11726 char v4l1_open ();
11728 main ()
11730 return v4l1_open ();
11732 return 0;
11734 _ACEOF
11735 if ac_fn_c_try_link "$LINENO"; then :
11736 case "$LIBEXT" in
11737 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11738 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'` ;;
11739 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11740 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11741 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11742 fi ;;
11743 esac
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_soname_save_LIBS
11749 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11751 $as_echo "not found" >&6; }
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11755 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11757 cat >>confdefs.h <<_ACEOF
11758 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11759 _ACEOF
11764 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11765 case "x$with_v4l" in
11766 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11767 xno) ;;
11768 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11769 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11770 esac
11773 if test "x$with_gphoto" != "xno"
11774 then
11775 if ${GPHOTO2_CFLAGS:+false} :; then :
11776 if ${PKG_CONFIG+:} false; then :
11777 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11780 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11781 if ${GPHOTO2_LIBS:+false} :; then :
11782 if ${PKG_CONFIG+:} false; then :
11783 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11786 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11787 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11788 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 cflags: $GPHOTO2_CFLAGS" >&5
11789 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 libs: $GPHOTO2_LIBS" >&5
11790 ac_save_CPPFLAGS=$CPPFLAGS
11791 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11792 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11793 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11795 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11796 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 ac_check_lib_save_LIBS=$LIBS
11800 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h. */
11804 /* Override any GCC internal prototype to avoid an error.
11805 Use char because int might match the return type of a GCC
11806 builtin and then its argument prototype would still apply. */
11807 #ifdef __cplusplus
11808 extern "C"
11809 #endif
11810 char gp_camera_new ();
11812 main ()
11814 return gp_camera_new ();
11816 return 0;
11818 _ACEOF
11819 if ac_fn_c_try_link "$LINENO"; then :
11820 ac_cv_lib_gphoto2_gp_camera_new=yes
11821 else
11822 ac_cv_lib_gphoto2_gp_camera_new=no
11824 rm -f core conftest.err conftest.$ac_objext \
11825 conftest$ac_exeext conftest.$ac_ext
11826 LIBS=$ac_check_lib_save_LIBS
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11829 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11830 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11832 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11834 else
11835 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11838 else
11839 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11843 CPPFLAGS=$ac_save_CPPFLAGS
11844 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11845 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11847 if ${GPHOTO2_PORT_CFLAGS:+false} :; then :
11848 if ${PKG_CONFIG+:} false; then :
11849 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11852 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11853 if ${GPHOTO2_PORT_LIBS:+false} :; then :
11854 if ${PKG_CONFIG+:} false; then :
11855 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11858 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11859 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11860 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port cflags: $GPHOTO2_PORT_CFLAGS" >&5
11861 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port libs: $GPHOTO2_PORT_LIBS" >&5
11862 ac_save_CPPFLAGS=$CPPFLAGS
11863 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11864 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11865 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11867 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11868 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 ac_check_lib_save_LIBS=$LIBS
11872 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11876 /* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 char gp_port_info_list_new ();
11884 main ()
11886 return gp_port_info_list_new ();
11888 return 0;
11890 _ACEOF
11891 if ac_fn_c_try_link "$LINENO"; then :
11892 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11893 else
11894 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11896 rm -f core conftest.err conftest.$ac_objext \
11897 conftest$ac_exeext conftest.$ac_ext
11898 LIBS=$ac_check_lib_save_LIBS
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11901 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11902 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11904 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11906 else
11907 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11910 else
11911 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11915 CPPFLAGS=$ac_save_CPPFLAGS
11916 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11917 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11920 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11921 case "x$with_gphoto" in
11922 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11923 xno) ;;
11924 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11925 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11926 esac
11928 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11929 case "x$with_gphoto" in
11930 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11931 xno) ;;
11932 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11933 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11934 esac
11938 if test "$ac_cv_header_resolv_h" = "yes"
11939 then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver library" >&5
11941 $as_echo_n "checking for resolver library... " >&6; }
11942 if ${ac_cv_have_resolv+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 ac_save_LIBS="$LIBS"
11946 for lib in '' -lresolv
11948 LIBS="$lib $ac_save_LIBS"
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11951 #ifdef HAVE_NETINET_IN_H
11952 #include <netinet/in.h>
11953 #endif
11954 #include <resolv.h>
11956 main ()
11958 if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0)
11960 return 0;
11962 _ACEOF
11963 if ac_fn_c_try_link "$LINENO"; then :
11964 ac_cv_have_resolv=${lib:-"none required"}
11965 else
11966 ac_cv_have_resolv="not found"
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11970 test "x$ac_cv_have_resolv" = "xnot found" || break
11971 done
11972 LIBS="$ac_save_LIBS"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_resolv" >&5
11975 $as_echo "$ac_cv_have_resolv" >&6; }
11977 case "$ac_cv_have_resolv" in
11978 "not found") ;;
11979 "none required")
11981 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11984 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11986 RESOLV_LIBS=$ac_cv_have_resolv
11988 esac
11991 if test "x$with_cms" != "xno"
11992 then
11993 if ${LCMS2_CFLAGS:+false} :; then :
11994 if ${PKG_CONFIG+:} false; then :
11995 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11999 if ${LCMS2_LIBS:+false} :; then :
12000 if ${PKG_CONFIG+:} false; then :
12001 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
12005 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
12006 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 cflags: $LCMS2_CFLAGS" >&5
12007 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 libs: $LCMS2_LIBS" >&5
12008 ac_save_CPPFLAGS=$CPPFLAGS
12009 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
12010 for ac_header in lcms2.h
12011 do :
12012 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
12013 if test "x$ac_cv_header_lcms2_h" = xyes; then :
12014 cat >>confdefs.h <<_ACEOF
12015 #define HAVE_LCMS2_H 1
12016 _ACEOF
12020 done
12022 if test "$ac_cv_header_lcms2_h" = "yes"
12023 then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
12025 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
12026 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 ac_check_lib_save_LIBS=$LIBS
12030 LIBS="-llcms2 $LCMS2_LIBS $LIBS"
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12034 /* Override any GCC internal prototype to avoid an error.
12035 Use char because int might match the return type of a GCC
12036 builtin and then its argument prototype would still apply. */
12037 #ifdef __cplusplus
12038 extern "C"
12039 #endif
12040 char cmsOpenProfileFromFile ();
12042 main ()
12044 return cmsOpenProfileFromFile ();
12046 return 0;
12048 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"; then :
12050 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
12051 else
12052 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12056 LIBS=$ac_check_lib_save_LIBS
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
12059 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
12060 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
12062 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
12064 else
12065 LCMS2_LIBS=""
12068 else
12069 LCMS2_CFLAGS=""
12070 LCMS2_LIBS=""
12072 CPPFLAGS=$ac_save_CPPFLAGS
12073 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12074 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12077 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
12078 case "x$with_cms" in
12079 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
12080 xno) ;;
12081 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
12082 This is an error since --with-cms was requested." "$LINENO" 5 ;;
12083 esac
12086 if test "x$with_freetype" != "xno"
12087 then
12088 if ${FREETYPE_CFLAGS:+false} :; then :
12089 if ${PKG_CONFIG+:} false; then :
12090 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
12093 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
12094 if ${FREETYPE_LIBS:+false} :; then :
12095 if ${PKG_CONFIG+:} false; then :
12096 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
12099 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
12100 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
12101 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 cflags: $FREETYPE_CFLAGS" >&5
12102 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 libs: $FREETYPE_LIBS" >&5
12103 ac_save_CPPFLAGS=$CPPFLAGS
12104 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
12105 for ac_header in ft2build.h
12106 do :
12107 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
12108 if test "x$ac_cv_header_ft2build_h" = xyes; then :
12109 cat >>confdefs.h <<_ACEOF
12110 #define HAVE_FT2BUILD_H 1
12111 _ACEOF
12115 done
12117 if test "$ac_cv_header_ft2build_h" = "yes"
12118 then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
12120 $as_echo_n "checking for -lfreetype... " >&6; }
12121 if ${ac_cv_lib_soname_freetype+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 ac_check_soname_save_LIBS=$LIBS
12125 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12129 /* Override any GCC internal prototype to avoid an error.
12130 Use char because int might match the return type of a GCC
12131 builtin and then its argument prototype would still apply. */
12132 #ifdef __cplusplus
12133 extern "C"
12134 #endif
12135 char FT_Init_FreeType ();
12137 main ()
12139 return FT_Init_FreeType ();
12141 return 0;
12143 _ACEOF
12144 if ac_fn_c_try_link "$LINENO"; then :
12145 case "$LIBEXT" in
12146 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12147 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'` ;;
12148 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12149 if ${ac_cv_lib_soname_freetype:+false} :; then :
12150 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12151 fi ;;
12152 esac
12154 rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_soname_save_LIBS
12158 if ${ac_cv_lib_soname_freetype:+false} :; then :
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12160 $as_echo "not found" >&6; }
12161 FREETYPE_LIBS=""
12162 else
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
12164 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
12166 cat >>confdefs.h <<_ACEOF
12167 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12168 _ACEOF
12171 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12173 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
12174 #include FT_MODULE_H
12176 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
12178 cat >>confdefs.h <<_ACEOF
12179 #define HAVE_FT_TRUETYPEENGINETYPE 1
12180 _ACEOF
12186 else
12187 FREETYPE_CFLAGS=""
12188 FREETYPE_LIBS=""
12190 CPPFLAGS=$ac_save_CPPFLAGS
12191 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12192 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12195 if test "x$ac_cv_lib_soname_freetype" = x; then :
12196 case "x$with_freetype" in
12197 xno) ;;
12198 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
12199 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
12200 esac
12202 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
12205 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
12206 if ${ac_cv_c_ppdev+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211 #ifdef HAVE_SYS_IOCTL_H
12212 # include <sys/ioctl.h>
12213 #endif
12214 #include <linux/ppdev.h>
12216 main ()
12218 ioctl (1,PPCLAIM,0)
12220 return 0;
12222 _ACEOF
12223 if ac_fn_c_try_compile "$LINENO"; then :
12224 ac_cv_c_ppdev="yes"
12225 else
12226 ac_cv_c_ppdev="no"
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
12231 $as_echo "$ac_cv_c_ppdev" >&6; }
12232 if test "$ac_cv_c_ppdev" = "yes"
12233 then
12235 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
12239 ac_wine_check_funcs_save_LIBS="$LIBS"
12240 LIBS="$LIBS $PTHREAD_LIBS"
12241 for ac_func in \
12242 pthread_attr_get_np \
12243 pthread_getattr_np \
12244 pthread_getthreadid_np \
12245 pthread_get_stackaddr_np \
12246 pthread_get_stacksize_np
12247 do :
12248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12249 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12250 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12251 cat >>confdefs.h <<_ACEOF
12252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12253 _ACEOF
12256 done
12258 LIBS="$ac_wine_check_funcs_save_LIBS"
12260 if test "$ac_cv_header_zlib_h" = "yes"
12261 then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12263 $as_echo_n "checking for inflate in -lz... " >&6; }
12264 if ${ac_cv_lib_z_inflate+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 ac_check_lib_save_LIBS=$LIBS
12268 LIBS="-lz $LIBS"
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12272 /* Override any GCC internal prototype to avoid an error.
12273 Use char because int might match the return type of a GCC
12274 builtin and then its argument prototype would still apply. */
12275 #ifdef __cplusplus
12276 extern "C"
12277 #endif
12278 char inflate ();
12280 main ()
12282 return inflate ();
12284 return 0;
12286 _ACEOF
12287 if ac_fn_c_try_link "$LINENO"; then :
12288 ac_cv_lib_z_inflate=yes
12289 else
12290 ac_cv_lib_z_inflate=no
12292 rm -f core conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12297 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12298 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12300 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12302 Z_LIBS="-lz"
12307 if test "x$Z_LIBS" = "x"; then :
12308 case "x$with_zlib" in
12309 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12310 xno) ;;
12311 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12312 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12313 esac
12316 if test "x$enable_tools" != xno
12317 then
12318 if test "$ac_cv_header_gettext_po_h" = "yes"
12319 then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12321 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12322 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lgettextpo $LIBS"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12330 /* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12333 #ifdef __cplusplus
12334 extern "C"
12335 #endif
12336 char po_message_msgctxt ();
12338 main ()
12340 return po_message_msgctxt ();
12342 return 0;
12344 _ACEOF
12345 if ac_fn_c_try_link "$LINENO"; then :
12346 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12347 else
12348 ac_cv_lib_gettextpo_po_message_msgctxt=no
12350 rm -f core conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352 LIBS=$ac_check_lib_save_LIBS
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12355 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12356 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12358 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12360 GETTEXTPO_LIBS="-lgettextpo"
12365 test "x$with_gettextpo" != xyes || if test "x$GETTEXTPO_LIBS" = "x"; then :
12366 case "x$with_gettextpo" in
12367 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12368 xno) ;;
12369 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12370 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12371 esac
12375 if test "x$with_gstreamer" != "xno"
12376 then
12377 if ${GSTREAMER_CFLAGS:+false} :; then :
12378 if ${PKG_CONFIG+:} false; then :
12379 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12383 if ${GSTREAMER_LIBS:+false} :; then :
12384 if ${PKG_CONFIG+:} false; then :
12385 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12390 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 cflags: $GSTREAMER_CFLAGS" >&5
12391 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 libs: $GSTREAMER_LIBS" >&5
12392 ac_save_CPPFLAGS=$CPPFLAGS
12393 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12394 ac_gst_incl=""
12395 for i in $GSTREAMER_CFLAGS
12397 case "$i" in
12398 -I*) ac_gst_incl="$ac_gst_incl $i";;
12399 esac
12400 done
12401 GSTREAMER_CFLAGS=$ac_gst_incl
12402 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12403 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12404 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12405 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12406 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12408 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12411 #include <gst/app/gstappsink.h>
12413 main ()
12415 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12417 return 0;
12419 _ACEOF
12420 if ac_fn_c_try_compile "$LINENO"; then :
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12422 $as_echo "yes" >&6; }
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12424 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12425 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 ac_check_lib_save_LIBS=$LIBS
12429 LIBS="-lgstreamer-0.10 $LIBS"
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436 #ifdef __cplusplus
12437 extern "C"
12438 #endif
12439 char gst_pad_get_caps_reffed ();
12441 main ()
12443 return gst_pad_get_caps_reffed ();
12445 return 0;
12447 _ACEOF
12448 if ac_fn_c_try_link "$LINENO"; then :
12449 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12450 else
12451 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12453 rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12458 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12459 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12461 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12462 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12463 $as_echo_n "(cached) " >&6
12464 else
12465 ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12470 /* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */
12473 #ifdef __cplusplus
12474 extern "C"
12475 #endif
12476 char gst_app_buffer_new ();
12478 main ()
12480 return gst_app_buffer_new ();
12482 return 0;
12484 _ACEOF
12485 if ac_fn_c_try_link "$LINENO"; then :
12486 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12487 else
12488 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12490 rm -f core conftest.err conftest.$ac_objext \
12491 conftest$ac_exeext conftest.$ac_ext
12492 LIBS=$ac_check_lib_save_LIBS
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12495 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12496 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12502 else
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504 $as_echo "no" >&6; }
12506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510 else
12511 GSTREAMER_CFLAGS=""
12515 CPPFLAGS=$ac_save_CPPFLAGS
12516 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12517 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12520 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12521 case "x$with_gstreamer" in
12522 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12523 xno) ;;
12524 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12525 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12526 esac
12528 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12530 ALSA_LIBS=""
12532 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12533 then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12535 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12536 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 ac_check_lib_save_LIBS=$LIBS
12540 LIBS="-lasound $LIBS"
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12544 /* Override any GCC internal prototype to avoid an error.
12545 Use char because int might match the return type of a GCC
12546 builtin and then its argument prototype would still apply. */
12547 #ifdef __cplusplus
12548 extern "C"
12549 #endif
12550 char snd_pcm_hw_params_get_access_mask ();
12552 main ()
12554 return snd_pcm_hw_params_get_access_mask ();
12556 return 0;
12558 _ACEOF
12559 if ac_fn_c_try_link "$LINENO"; then :
12560 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12561 else
12562 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12564 rm -f core conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12569 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12570 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12573 #ifdef HAVE_ALSA_ASOUNDLIB_H
12574 #include <alsa/asoundlib.h>
12575 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12576 #include <sys/asoundlib.h>
12577 #endif
12579 main ()
12581 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12583 return 0;
12585 _ACEOF
12586 if ac_fn_c_try_compile "$LINENO"; then :
12587 ALSA_LIBS="-lasound"
12589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594 if test "x$with_oss" != xno
12595 then
12596 ac_save_CPPFLAGS="$CPPFLAGS"
12597 if test -f /etc/oss.conf
12598 then
12599 . /etc/oss.conf
12601 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12602 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12603 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12604 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12605 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12607 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12609 cat >>confdefs.h <<_ACEOF
12610 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12611 _ACEOF
12613 OSS4_CFLAGS="$ac_oss_incl"
12620 CPPFLAGS="$ac_save_CPPFLAGS"
12621 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12622 then
12623 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12627 if test "x$with_capi" != "xno"
12628 then
12629 if ${CAPI20_CFLAGS:+false} :; then :
12630 if ${PKG_CONFIG+:} false; then :
12631 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12635 if ${CAPI20_LIBS:+false} :; then :
12636 if ${PKG_CONFIG+:} false; then :
12637 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12642 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 cflags: $CAPI20_CFLAGS" >&5
12643 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 libs: $CAPI20_LIBS" >&5
12644 ac_save_CPPFLAGS=$CPPFLAGS
12645 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12646 for ac_header in capi20.h linux/capi.h
12647 do :
12648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12649 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12651 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12652 cat >>confdefs.h <<_ACEOF
12653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12654 _ACEOF
12658 done
12660 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12661 then
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12663 $as_echo_n "checking for -lcapi20... " >&6; }
12664 if ${ac_cv_lib_soname_capi20+:} false; then :
12665 $as_echo_n "(cached) " >&6
12666 else
12667 ac_check_soname_save_LIBS=$LIBS
12668 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h. */
12672 /* Override any GCC internal prototype to avoid an error.
12673 Use char because int might match the return type of a GCC
12674 builtin and then its argument prototype would still apply. */
12675 #ifdef __cplusplus
12676 extern "C"
12677 #endif
12678 char capi20_register ();
12680 main ()
12682 return capi20_register ();
12684 return 0;
12686 _ACEOF
12687 if ac_fn_c_try_link "$LINENO"; then :
12688 case "$LIBEXT" in
12689 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12690 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'` ;;
12691 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12692 if ${ac_cv_lib_soname_capi20:+false} :; then :
12693 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12694 fi ;;
12695 esac
12697 rm -f core conftest.err conftest.$ac_objext \
12698 conftest$ac_exeext conftest.$ac_ext
12699 LIBS=$ac_check_soname_save_LIBS
12701 if ${ac_cv_lib_soname_capi20:+false} :; then :
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12703 $as_echo "not found" >&6; }
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12707 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12709 cat >>confdefs.h <<_ACEOF
12710 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12711 _ACEOF
12716 CPPFLAGS=$ac_save_CPPFLAGS
12717 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12718 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12721 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12722 case "x$with_capi" in
12723 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12724 xno) ;;
12725 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12726 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12727 esac
12730 CUPS_CFLAGS=""
12732 if test "x$with_cups" != "xno"
12733 then
12734 ac_save_CPPFLAGS="$CPPFLAGS"
12735 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12736 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12737 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12738 for ac_header in cups/cups.h
12739 do :
12740 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12741 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12742 cat >>confdefs.h <<_ACEOF
12743 #define HAVE_CUPS_CUPS_H 1
12744 _ACEOF
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12746 $as_echo_n "checking for -lcups... " >&6; }
12747 if ${ac_cv_lib_soname_cups+:} false; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 ac_check_soname_save_LIBS=$LIBS
12751 LIBS="-lcups $ac_cups_libs $LIBS"
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12755 /* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12758 #ifdef __cplusplus
12759 extern "C"
12760 #endif
12761 char cupsGetDefault ();
12763 main ()
12765 return cupsGetDefault ();
12767 return 0;
12769 _ACEOF
12770 if ac_fn_c_try_link "$LINENO"; then :
12771 case "$LIBEXT" in
12772 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12773 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'` ;;
12774 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12775 if ${ac_cv_lib_soname_cups:+false} :; then :
12776 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12777 fi ;;
12778 esac
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_soname_save_LIBS
12784 if ${ac_cv_lib_soname_cups:+false} :; then :
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12786 $as_echo "not found" >&6; }
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12790 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12792 cat >>confdefs.h <<_ACEOF
12793 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12794 _ACEOF
12796 CUPS_CFLAGS="$ac_cups_cflags"
12800 done
12802 CPPFLAGS="$ac_save_CPPFLAGS"
12804 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12805 case "x$with_cups" in
12806 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12807 xno) ;;
12808 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12809 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12810 esac
12813 if test "x$with_fontconfig" != "xno"
12814 then
12815 if ${FONTCONFIG_CFLAGS:+false} :; then :
12816 if ${PKG_CONFIG+:} false; then :
12817 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags fontconfig 2>/dev/null`
12820 test "$cross_compiling" = yes || FONTCONFIG_CFLAGS=${FONTCONFIG_CFLAGS:-$X_CFLAGS}
12821 if ${FONTCONFIG_LIBS:+false} :; then :
12822 if ${PKG_CONFIG+:} false; then :
12823 FONTCONFIG_LIBS=`$PKG_CONFIG --libs fontconfig 2>/dev/null`
12826 test "$cross_compiling" = yes || FONTCONFIG_LIBS=${FONTCONFIG_LIBS:-$X_LIBS}
12828 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig cflags: $FONTCONFIG_CFLAGS" >&5
12829 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig libs: $FONTCONFIG_LIBS" >&5
12830 ac_save_CPPFLAGS=$CPPFLAGS
12831 CPPFLAGS="$CPPFLAGS $FONTCONFIG_CFLAGS"
12832 for ac_header in fontconfig/fontconfig.h
12833 do :
12834 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12835 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12836 cat >>confdefs.h <<_ACEOF
12837 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12838 _ACEOF
12842 done
12844 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12845 then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12847 $as_echo_n "checking for -lfontconfig... " >&6; }
12848 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 ac_check_soname_save_LIBS=$LIBS
12852 LIBS="-lfontconfig $FONTCONFIG_LIBS $LIBS"
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12856 /* Override any GCC internal prototype to avoid an error.
12857 Use char because int might match the return type of a GCC
12858 builtin and then its argument prototype would still apply. */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 char FcInit ();
12864 main ()
12866 return FcInit ();
12868 return 0;
12870 _ACEOF
12871 if ac_fn_c_try_link "$LINENO"; then :
12872 case "$LIBEXT" in
12873 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12874 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'` ;;
12875 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12876 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12877 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12878 fi ;;
12879 esac
12881 rm -f core conftest.err conftest.$ac_objext \
12882 conftest$ac_exeext conftest.$ac_ext
12883 LIBS=$ac_check_soname_save_LIBS
12885 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12887 $as_echo "not found" >&6; }
12888 FONTCONFIG_CFLAGS=""
12889 else
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12891 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12893 cat >>confdefs.h <<_ACEOF
12894 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12895 _ACEOF
12899 else
12900 FONTCONFIG_CFLAGS=""
12902 CPPFLAGS=$ac_save_CPPFLAGS
12903 test -z "$FONTCONFIG_CFLAGS" || FONTCONFIG_CFLAGS=`echo " $FONTCONFIG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12904 test -z "$FONTCONFIG_LIBS" || FONTCONFIG_LIBS=`echo " $FONTCONFIG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12907 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12908 case "x$with_fontconfig" in
12909 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12910 xno) ;;
12911 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12912 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12913 esac
12916 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12917 then
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12919 $as_echo_n "checking for -lgsm... " >&6; }
12920 if ${ac_cv_lib_soname_gsm+:} false; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 ac_check_soname_save_LIBS=$LIBS
12924 LIBS="-lgsm $LIBS"
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12928 /* Override any GCC internal prototype to avoid an error.
12929 Use char because int might match the return type of a GCC
12930 builtin and then its argument prototype would still apply. */
12931 #ifdef __cplusplus
12932 extern "C"
12933 #endif
12934 char gsm_create ();
12936 main ()
12938 return gsm_create ();
12940 return 0;
12942 _ACEOF
12943 if ac_fn_c_try_link "$LINENO"; then :
12944 case "$LIBEXT" in
12945 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12946 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'` ;;
12947 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12948 if ${ac_cv_lib_soname_gsm:+false} :; then :
12949 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12950 fi ;;
12951 esac
12953 rm -f core conftest.err conftest.$ac_objext \
12954 conftest$ac_exeext conftest.$ac_ext
12955 LIBS=$ac_check_soname_save_LIBS
12957 if ${ac_cv_lib_soname_gsm:+false} :; then :
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12959 $as_echo "not found" >&6; }
12961 else
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12963 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12965 cat >>confdefs.h <<_ACEOF
12966 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12967 _ACEOF
12972 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12973 case "x$with_gsm" in
12974 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12975 xno) ;;
12976 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12977 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12978 esac
12981 if test "x$with_jpeg" != "xno"
12982 then
12983 if ${JPEG_CFLAGS:+false} :; then :
12984 if ${PKG_CONFIG+:} false; then :
12985 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12989 if ${JPEG_LIBS:+false} :; then :
12990 if ${PKG_CONFIG+:} false; then :
12991 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12996 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg cflags: $JPEG_CFLAGS" >&5
12997 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg libs: $JPEG_LIBS" >&5
12998 ac_save_CPPFLAGS=$CPPFLAGS
12999 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
13000 for ac_header in jpeglib.h
13001 do :
13002 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
13003 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
13004 cat >>confdefs.h <<_ACEOF
13005 #define HAVE_JPEGLIB_H 1
13006 _ACEOF
13010 done
13012 if test "$ac_cv_header_jpeglib_h" = "yes"
13013 then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
13015 $as_echo_n "checking for -ljpeg... " >&6; }
13016 if ${ac_cv_lib_soname_jpeg+:} false; then :
13017 $as_echo_n "(cached) " >&6
13018 else
13019 ac_check_soname_save_LIBS=$LIBS
13020 LIBS="-ljpeg $JPEG_LIBS $LIBS"
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13024 /* Override any GCC internal prototype to avoid an error.
13025 Use char because int might match the return type of a GCC
13026 builtin and then its argument prototype would still apply. */
13027 #ifdef __cplusplus
13028 extern "C"
13029 #endif
13030 char jpeg_start_decompress ();
13032 main ()
13034 return jpeg_start_decompress ();
13036 return 0;
13038 _ACEOF
13039 if ac_fn_c_try_link "$LINENO"; then :
13040 case "$LIBEXT" in
13041 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13042 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'` ;;
13043 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13044 if ${ac_cv_lib_soname_jpeg:+false} :; then :
13045 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13046 fi ;;
13047 esac
13049 rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13051 LIBS=$ac_check_soname_save_LIBS
13053 if ${ac_cv_lib_soname_jpeg:+false} :; then :
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13055 $as_echo "not found" >&6; }
13056 JPEG_CFLAGS=""
13057 else
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
13059 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
13061 cat >>confdefs.h <<_ACEOF
13062 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
13063 _ACEOF
13067 else
13068 JPEG_CFLAGS=""
13070 CPPFLAGS=$ac_save_CPPFLAGS
13071 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13072 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13075 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
13076 case "x$with_jpeg" in
13077 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
13078 xno) ;;
13079 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
13080 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
13081 esac
13084 if test "x$with_png" != "xno"
13085 then
13086 if ${PNG_CFLAGS:+false} :; then :
13087 if ${PKG_CONFIG+:} false; then :
13088 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
13091 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
13092 if ${PNG_LIBS:+false} :; then :
13093 if ${PKG_CONFIG+:} false; then :
13094 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
13097 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
13099 $as_echo "$as_me:${as_lineno-$LINENO}: libpng cflags: $PNG_CFLAGS" >&5
13100 $as_echo "$as_me:${as_lineno-$LINENO}: libpng libs: $PNG_LIBS" >&5
13101 ac_save_CPPFLAGS=$CPPFLAGS
13102 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
13103 for ac_header in png.h
13104 do :
13105 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13106 if test "x$ac_cv_header_png_h" = xyes; then :
13107 cat >>confdefs.h <<_ACEOF
13108 #define HAVE_PNG_H 1
13109 _ACEOF
13113 done
13115 if test "$ac_cv_header_png_h" = "yes"
13116 then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
13118 $as_echo_n "checking for -lpng... " >&6; }
13119 if ${ac_cv_lib_soname_png+:} false; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 ac_check_soname_save_LIBS=$LIBS
13123 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13127 /* Override any GCC internal prototype to avoid an error.
13128 Use char because int might match the return type of a GCC
13129 builtin and then its argument prototype would still apply. */
13130 #ifdef __cplusplus
13131 extern "C"
13132 #endif
13133 char png_create_read_struct ();
13135 main ()
13137 return png_create_read_struct ();
13139 return 0;
13141 _ACEOF
13142 if ac_fn_c_try_link "$LINENO"; then :
13143 case "$LIBEXT" in
13144 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13145 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'` ;;
13146 *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13147 if ${ac_cv_lib_soname_png:+false} :; then :
13148 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13149 fi ;;
13150 esac
13152 rm -f core conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13154 LIBS=$ac_check_soname_save_LIBS
13156 if ${ac_cv_lib_soname_png:+false} :; then :
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13158 $as_echo "not found" >&6; }
13159 PNG_CFLAGS=""
13160 else
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
13162 $as_echo "$ac_cv_lib_soname_png" >&6; }
13164 cat >>confdefs.h <<_ACEOF
13165 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
13166 _ACEOF
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170 #include <png.h>
13172 main ()
13174 typeof(png_set_expand_gray_1_2_4_to_8) *p
13176 return 0;
13178 _ACEOF
13179 if ac_fn_c_try_compile "$LINENO"; then :
13181 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13186 else
13187 PNG_CFLAGS=""
13189 CPPFLAGS=$ac_save_CPPFLAGS
13190 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13191 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13194 if test "x$ac_cv_lib_soname_png" = "x"; then :
13195 case "x$with_png" in
13196 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
13197 xno) ;;
13198 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
13199 This is an error since --with-png was requested." "$LINENO" 5 ;;
13200 esac
13203 if test "x$with_tiff" != "xno"
13204 then
13205 if ${TIFF_CFLAGS:+false} :; then :
13206 if ${PKG_CONFIG+:} false; then :
13207 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
13211 if ${TIFF_LIBS:+false} :; then :
13212 if ${PKG_CONFIG+:} false; then :
13213 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
13218 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff cflags: $TIFF_CFLAGS" >&5
13219 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff libs: $TIFF_LIBS" >&5
13220 ac_save_CPPFLAGS=$CPPFLAGS
13221 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
13222 for ac_header in tiffio.h
13223 do :
13224 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13225 if test "x$ac_cv_header_tiffio_h" = xyes; then :
13226 cat >>confdefs.h <<_ACEOF
13227 #define HAVE_TIFFIO_H 1
13228 _ACEOF
13232 done
13234 if test "$ac_cv_header_tiffio_h" = "yes"
13235 then
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
13237 $as_echo_n "checking for -ltiff... " >&6; }
13238 if ${ac_cv_lib_soname_tiff+:} false; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 ac_check_soname_save_LIBS=$LIBS
13242 LIBS="-ltiff $TIFF_LIBS $LIBS"
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13246 /* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13249 #ifdef __cplusplus
13250 extern "C"
13251 #endif
13252 char TIFFClientOpen ();
13254 main ()
13256 return TIFFClientOpen ();
13258 return 0;
13260 _ACEOF
13261 if ac_fn_c_try_link "$LINENO"; then :
13262 case "$LIBEXT" in
13263 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13264 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'` ;;
13265 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13266 if ${ac_cv_lib_soname_tiff:+false} :; then :
13267 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13268 fi ;;
13269 esac
13271 rm -f core conftest.err conftest.$ac_objext \
13272 conftest$ac_exeext conftest.$ac_ext
13273 LIBS=$ac_check_soname_save_LIBS
13275 if ${ac_cv_lib_soname_tiff:+false} :; then :
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13277 $as_echo "not found" >&6; }
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
13281 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
13283 cat >>confdefs.h <<_ACEOF
13284 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
13285 _ACEOF
13290 CPPFLAGS=$ac_save_CPPFLAGS
13291 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13292 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13295 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13296 case "x$with_tiff" in
13297 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
13298 xno) ;;
13299 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13300 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13301 esac
13304 if test "x$with_mpg123" != "xno"
13305 then
13306 if ${MPG123_CFLAGS:+false} :; then :
13307 if ${PKG_CONFIG+:} false; then :
13308 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13312 if ${MPG123_LIBS:+false} :; then :
13313 if ${PKG_CONFIG+:} false; then :
13314 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13318 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13319 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 cflags: $MPG123_CFLAGS" >&5
13320 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 libs: $MPG123_LIBS" >&5
13321 ac_save_CPPFLAGS=$CPPFLAGS
13322 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13323 for ac_header in mpg123.h
13324 do :
13325 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13326 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13327 cat >>confdefs.h <<_ACEOF
13328 #define HAVE_MPG123_H 1
13329 _ACEOF
13333 done
13335 if test "$ac_cv_header_mpg123_h" = "yes"
13336 then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13338 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13339 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 ac_check_lib_save_LIBS=$LIBS
13343 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13347 /* Override any GCC internal prototype to avoid an error.
13348 Use char because int might match the return type of a GCC
13349 builtin and then its argument prototype would still apply. */
13350 #ifdef __cplusplus
13351 extern "C"
13352 #endif
13353 char mpg123_feed ();
13355 main ()
13357 return mpg123_feed ();
13359 return 0;
13361 _ACEOF
13362 if ac_fn_c_try_link "$LINENO"; then :
13363 ac_cv_lib_mpg123_mpg123_feed=yes
13364 else
13365 ac_cv_lib_mpg123_mpg123_feed=no
13367 rm -f core conftest.err conftest.$ac_objext \
13368 conftest$ac_exeext conftest.$ac_ext
13369 LIBS=$ac_check_lib_save_LIBS
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13372 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13373 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13375 else
13376 MPG123_LIBS=""
13379 else
13380 MPG123_CFLAGS=""
13381 MPG123_LIBS=""
13383 CPPFLAGS=$ac_save_CPPFLAGS
13384 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13385 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13388 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13389 case "x$with_mpg123" in
13390 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13391 xno) ;;
13392 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13393 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13394 esac
13396 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}
13398 if test "$ac_cv_header_AL_al_h" = "yes"
13399 then
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13401 $as_echo_n "checking for -lopenal... " >&6; }
13402 if ${ac_cv_lib_soname_openal+:} false; then :
13403 $as_echo_n "(cached) " >&6
13404 else
13405 ac_check_soname_save_LIBS=$LIBS
13406 LIBS="-lopenal $LIBS"
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13410 /* Override any GCC internal prototype to avoid an error.
13411 Use char because int might match the return type of a GCC
13412 builtin and then its argument prototype would still apply. */
13413 #ifdef __cplusplus
13414 extern "C"
13415 #endif
13416 char alGetSource3i ();
13418 main ()
13420 return alGetSource3i ();
13422 return 0;
13424 _ACEOF
13425 if ac_fn_c_try_link "$LINENO"; then :
13426 case "$LIBEXT" in
13427 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13428 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'` ;;
13429 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13430 if ${ac_cv_lib_soname_openal:+false} :; then :
13431 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13432 fi ;;
13433 esac
13435 rm -f core conftest.err conftest.$ac_objext \
13436 conftest$ac_exeext conftest.$ac_ext
13437 LIBS=$ac_check_soname_save_LIBS
13439 if ${ac_cv_lib_soname_openal:+false} :; then :
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13441 $as_echo "not found" >&6; }
13443 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13445 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13447 cat >>confdefs.h <<_ACEOF
13448 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13449 _ACEOF
13451 OPENAL_LIBS="-lopenal"
13453 ac_cv_lib_openal=yes
13455 cat >>confdefs.h <<_ACEOF
13456 #define HAVE_OPENAL 1
13457 _ACEOF
13461 if test "x$ac_cv_lib_openal" != xyes; then :
13462 case "x$with_openal" in
13463 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13464 xno) ;;
13465 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13466 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13467 esac
13469 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13471 if test "$ac_cv_header_kstat_h" = "yes"
13472 then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13474 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13475 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-lkstat $LIBS"
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13483 /* Override any GCC internal prototype to avoid an error.
13484 Use char because int might match the return type of a GCC
13485 builtin and then its argument prototype would still apply. */
13486 #ifdef __cplusplus
13487 extern "C"
13488 #endif
13489 char kstat_open ();
13491 main ()
13493 return kstat_open ();
13495 return 0;
13497 _ACEOF
13498 if ac_fn_c_try_link "$LINENO"; then :
13499 ac_cv_lib_kstat_kstat_open=yes
13500 else
13501 ac_cv_lib_kstat_kstat_open=no
13503 rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13505 LIBS=$ac_check_lib_save_LIBS
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13508 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13509 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13511 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13513 KSTAT_LIBS="-lkstat"
13519 if test "$ac_cv_header_libprocstat_h" = "yes"
13520 then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13522 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13523 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 ac_check_lib_save_LIBS=$LIBS
13527 LIBS="-lprocstat $LIBS"
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13531 /* Override any GCC internal prototype to avoid an error.
13532 Use char because int might match the return type of a GCC
13533 builtin and then its argument prototype would still apply. */
13534 #ifdef __cplusplus
13535 extern "C"
13536 #endif
13537 char procstat_open_sysctl ();
13539 main ()
13541 return procstat_open_sysctl ();
13543 return 0;
13545 _ACEOF
13546 if ac_fn_c_try_link "$LINENO"; then :
13547 ac_cv_lib_procstat_procstat_open_sysctl=yes
13548 else
13549 ac_cv_lib_procstat_procstat_open_sysctl=no
13551 rm -f core conftest.err conftest.$ac_objext \
13552 conftest$ac_exeext conftest.$ac_ext
13553 LIBS=$ac_check_lib_save_LIBS
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13556 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13557 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13559 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13561 PROCSTAT_LIBS="-lprocstat"
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13568 $as_echo_n "checking for -lodbc... " >&6; }
13569 if ${ac_cv_lib_soname_odbc+:} false; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 ac_check_soname_save_LIBS=$LIBS
13573 LIBS="-lodbc $LIBS"
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13580 #ifdef __cplusplus
13581 extern "C"
13582 #endif
13583 char SQLConnect ();
13585 main ()
13587 return SQLConnect ();
13589 return 0;
13591 _ACEOF
13592 if ac_fn_c_try_link "$LINENO"; then :
13593 case "$LIBEXT" in
13594 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13595 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'` ;;
13596 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13597 if ${ac_cv_lib_soname_odbc:+false} :; then :
13598 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13599 fi ;;
13600 esac
13602 rm -f core conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
13604 LIBS=$ac_check_soname_save_LIBS
13606 if ${ac_cv_lib_soname_odbc:+false} :; then :
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13608 $as_echo "not found" >&6; }
13609 cat >>confdefs.h <<_ACEOF
13610 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13611 _ACEOF
13613 else
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13615 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13617 cat >>confdefs.h <<_ACEOF
13618 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13619 _ACEOF
13624 if test "x$with_netapi" != "xno"
13625 then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13627 $as_echo_n "checking for -lnetapi... " >&6; }
13628 if ${ac_cv_lib_soname_netapi+:} false; then :
13629 $as_echo_n "(cached) " >&6
13630 else
13631 ac_check_soname_save_LIBS=$LIBS
13632 LIBS="-lnetapi $LIBS"
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13636 /* Override any GCC internal prototype to avoid an error.
13637 Use char because int might match the return type of a GCC
13638 builtin and then its argument prototype would still apply. */
13639 #ifdef __cplusplus
13640 extern "C"
13641 #endif
13642 char libnetapi_init ();
13644 main ()
13646 return libnetapi_init ();
13648 return 0;
13650 _ACEOF
13651 if ac_fn_c_try_link "$LINENO"; then :
13652 case "$LIBEXT" in
13653 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13654 dylib) ac_cv_lib_soname_netapi=`otool -L conftest$ac_exeext | grep "libnetapi\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libnetapi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
13655 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13656 if ${ac_cv_lib_soname_netapi:+false} :; then :
13657 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13658 fi ;;
13659 esac
13661 rm -f core conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13663 LIBS=$ac_check_soname_save_LIBS
13665 if ${ac_cv_lib_soname_netapi:+false} :; then :
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13667 $as_echo "not found" >&6; }
13668 cat >>confdefs.h <<_ACEOF
13669 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13670 _ACEOF
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13674 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13676 cat >>confdefs.h <<_ACEOF
13677 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13678 _ACEOF
13684 test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13685 test -n "$COREAUDIO_LIBS" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13686 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13687 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13689 if test "x$ALSA_LIBS$COREAUDIO_LIBS" = "x" -a \
13690 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13691 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13692 then
13693 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13697 EXTRACFLAGS=""
13699 if test "x${GCC}" = "xyes"
13700 then
13701 EXTRACFLAGS="-Wall -pipe"
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13704 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13705 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13706 $as_echo_n "(cached) " >&6
13707 else
13708 if test "$cross_compiling" = yes; then :
13709 ac_cv_c_gcc_strength_bug="yes"
13710 else
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13713 int L[4] = {0,1,2,3};
13715 main ()
13717 static int Array[3];
13718 unsigned int B = 3;
13719 int i;
13720 for(i=0; i<B; i++) Array[i] = i - 3;
13721 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13722 L[i] = 4;
13723 return (Array[1] != -2 || L[2] != 3)
13725 return 0;
13727 _ACEOF
13728 if ac_fn_c_try_run "$LINENO"; then :
13729 ac_cv_c_gcc_strength_bug="no"
13730 else
13731 ac_cv_c_gcc_strength_bug="yes"
13733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13734 conftest.$ac_objext conftest.beam conftest.$ac_ext
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13739 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13740 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13741 then
13742 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13746 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13747 if ${ac_cv_cflags__fno_builtin+:} false; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 ac_wine_try_cflags_saved=$CFLAGS
13751 CFLAGS="$CFLAGS -fno-builtin"
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 int main(int argc, char **argv) { return 0; }
13755 _ACEOF
13756 if ac_fn_c_try_link "$LINENO"; then :
13757 ac_cv_cflags__fno_builtin=yes
13758 else
13759 ac_cv_cflags__fno_builtin=no
13761 rm -f core conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13763 CFLAGS=$ac_wine_try_cflags_saved
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13766 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13767 if test "x$ac_cv_cflags__fno_builtin" = xyes; then :
13768 BUILTINFLAG="-fno-builtin"
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13772 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13773 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13774 $as_echo_n "(cached) " >&6
13775 else
13776 ac_wine_try_cflags_saved=$CFLAGS
13777 CFLAGS="$CFLAGS -fno-strict-aliasing"
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780 int main(int argc, char **argv) { return 0; }
13781 _ACEOF
13782 if ac_fn_c_try_link "$LINENO"; then :
13783 ac_cv_cflags__fno_strict_aliasing=yes
13784 else
13785 ac_cv_cflags__fno_strict_aliasing=no
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13789 CFLAGS=$ac_wine_try_cflags_saved
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13792 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13793 if test "x$ac_cv_cflags__fno_strict_aliasing" = xyes; then :
13794 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13796 saved_CFLAGS=$CFLAGS
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13798 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13799 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13800 $as_echo_n "(cached) " >&6
13801 else
13802 ac_wine_try_cflags_saved=$CFLAGS
13803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13806 int main(int argc, char **argv) { return 0; }
13807 _ACEOF
13808 if ac_fn_c_try_link "$LINENO"; then :
13809 ac_cv_cflags__Werror_unknown_warning_option=yes
13810 else
13811 ac_cv_cflags__Werror_unknown_warning_option=no
13813 rm -f core conftest.err conftest.$ac_objext \
13814 conftest$ac_exeext conftest.$ac_ext
13815 CFLAGS=$ac_wine_try_cflags_saved
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13818 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13819 if test "x$ac_cv_cflags__Werror_unknown_warning_option" = xyes; then :
13820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13823 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13824 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13825 $as_echo_n "(cached) " >&6
13826 else
13827 ac_wine_try_cflags_saved=$CFLAGS
13828 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831 int main(int argc, char **argv) { return 0; }
13832 _ACEOF
13833 if ac_fn_c_try_link "$LINENO"; then :
13834 ac_cv_cflags__Wdeclaration_after_statement=yes
13835 else
13836 ac_cv_cflags__Wdeclaration_after_statement=no
13838 rm -f core conftest.err conftest.$ac_objext \
13839 conftest$ac_exeext conftest.$ac_ext
13840 CFLAGS=$ac_wine_try_cflags_saved
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13843 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13844 if test "x$ac_cv_cflags__Wdeclaration_after_statement" = xyes; then :
13845 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13848 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13849 if ${ac_cv_cflags__Wempty_body+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 ac_wine_try_cflags_saved=$CFLAGS
13853 CFLAGS="$CFLAGS -Wempty-body"
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13856 int main(int argc, char **argv) { return 0; }
13857 _ACEOF
13858 if ac_fn_c_try_link "$LINENO"; then :
13859 ac_cv_cflags__Wempty_body=yes
13860 else
13861 ac_cv_cflags__Wempty_body=no
13863 rm -f core conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
13865 CFLAGS=$ac_wine_try_cflags_saved
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13868 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13869 if test "x$ac_cv_cflags__Wempty_body" = xyes; then :
13870 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13873 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13874 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 ac_wine_try_cflags_saved=$CFLAGS
13878 CFLAGS="$CFLAGS -Wignored-qualifiers"
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13881 int main(int argc, char **argv) { return 0; }
13882 _ACEOF
13883 if ac_fn_c_try_link "$LINENO"; then :
13884 ac_cv_cflags__Wignored_qualifiers=yes
13885 else
13886 ac_cv_cflags__Wignored_qualifiers=no
13888 rm -f core conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13890 CFLAGS=$ac_wine_try_cflags_saved
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13893 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13894 if test "x$ac_cv_cflags__Wignored_qualifiers" = xyes; then :
13895 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13898 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13899 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13900 $as_echo_n "(cached) " >&6
13901 else
13902 ac_wine_try_cflags_saved=$CFLAGS
13903 CFLAGS="$CFLAGS -Wstrict-prototypes"
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906 int main(int argc, char **argv) { return 0; }
13907 _ACEOF
13908 if ac_fn_c_try_link "$LINENO"; then :
13909 ac_cv_cflags__Wstrict_prototypes=yes
13910 else
13911 ac_cv_cflags__Wstrict_prototypes=no
13913 rm -f core conftest.err conftest.$ac_objext \
13914 conftest$ac_exeext conftest.$ac_ext
13915 CFLAGS=$ac_wine_try_cflags_saved
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13918 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13919 if test "x$ac_cv_cflags__Wstrict_prototypes" = xyes; then :
13920 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13923 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13924 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13925 $as_echo_n "(cached) " >&6
13926 else
13927 ac_wine_try_cflags_saved=$CFLAGS
13928 CFLAGS="$CFLAGS -Wtype-limits"
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931 int main(int argc, char **argv) { return 0; }
13932 _ACEOF
13933 if ac_fn_c_try_link "$LINENO"; then :
13934 ac_cv_cflags__Wtype_limits=yes
13935 else
13936 ac_cv_cflags__Wtype_limits=no
13938 rm -f core conftest.err conftest.$ac_objext \
13939 conftest$ac_exeext conftest.$ac_ext
13940 CFLAGS=$ac_wine_try_cflags_saved
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13943 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13944 if test "x$ac_cv_cflags__Wtype_limits" = xyes; then :
13945 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13948 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13949 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13950 $as_echo_n "(cached) " >&6
13951 else
13952 ac_wine_try_cflags_saved=$CFLAGS
13953 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13956 int main(int argc, char **argv) { return 0; }
13957 _ACEOF
13958 if ac_fn_c_try_link "$LINENO"; then :
13959 ac_cv_cflags__Wunused_but_set_parameter=yes
13960 else
13961 ac_cv_cflags__Wunused_but_set_parameter=no
13963 rm -f core conftest.err conftest.$ac_objext \
13964 conftest$ac_exeext conftest.$ac_ext
13965 CFLAGS=$ac_wine_try_cflags_saved
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13968 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13969 if test "x$ac_cv_cflags__Wunused_but_set_parameter" = xyes; then :
13970 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wvla" >&5
13973 $as_echo_n "checking whether the compiler supports -Wvla... " >&6; }
13974 if ${ac_cv_cflags__Wvla+:} false; then :
13975 $as_echo_n "(cached) " >&6
13976 else
13977 ac_wine_try_cflags_saved=$CFLAGS
13978 CFLAGS="$CFLAGS -Wvla"
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13981 int main(int argc, char **argv) { return 0; }
13982 _ACEOF
13983 if ac_fn_c_try_link "$LINENO"; then :
13984 ac_cv_cflags__Wvla=yes
13985 else
13986 ac_cv_cflags__Wvla=no
13988 rm -f core conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext conftest.$ac_ext
13990 CFLAGS=$ac_wine_try_cflags_saved
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wvla" >&5
13993 $as_echo "$ac_cv_cflags__Wvla" >&6; }
13994 if test "x$ac_cv_cflags__Wvla" = xyes; then :
13995 EXTRACFLAGS="$EXTRACFLAGS -Wvla"
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13998 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13999 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
14000 $as_echo_n "(cached) " >&6
14001 else
14002 ac_wine_try_cflags_saved=$CFLAGS
14003 CFLAGS="$CFLAGS -Wwrite-strings"
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006 int main(int argc, char **argv) { return 0; }
14007 _ACEOF
14008 if ac_fn_c_try_link "$LINENO"; then :
14009 ac_cv_cflags__Wwrite_strings=yes
14010 else
14011 ac_cv_cflags__Wwrite_strings=no
14013 rm -f core conftest.err conftest.$ac_objext \
14014 conftest$ac_exeext conftest.$ac_ext
14015 CFLAGS=$ac_wine_try_cflags_saved
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
14018 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
14019 if test "x$ac_cv_cflags__Wwrite_strings" = xyes; then :
14020 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
14024 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
14025 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 ac_wine_try_cflags_saved=$CFLAGS
14029 CFLAGS="$CFLAGS -Wpointer-arith"
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032 int main(int argc, char **argv) { return 0; }
14033 _ACEOF
14034 if ac_fn_c_try_link "$LINENO"; then :
14035 ac_cv_cflags__Wpointer_arith=yes
14036 else
14037 ac_cv_cflags__Wpointer_arith=no
14039 rm -f core conftest.err conftest.$ac_objext \
14040 conftest$ac_exeext conftest.$ac_ext
14041 CFLAGS=$ac_wine_try_cflags_saved
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
14044 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
14045 if test "x$ac_cv_cflags__Wpointer_arith" = xyes; then :
14046 saved_string_h_CFLAGS=$CFLAGS
14047 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
14049 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
14050 if ${ac_cv_c_string_h_warnings+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 #include <string.h>
14057 main ()
14061 return 0;
14063 _ACEOF
14064 if ac_fn_c_try_compile "$LINENO"; then :
14065 ac_cv_c_string_h_warnings=no
14066 else
14067 ac_cv_c_string_h_warnings=yes
14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
14072 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
14073 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
14074 CFLAGS=$saved_string_h_CFLAGS
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
14078 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
14079 if ${ac_cv_cflags__Wlogical_op+:} false; then :
14080 $as_echo_n "(cached) " >&6
14081 else
14082 ac_wine_try_cflags_saved=$CFLAGS
14083 CFLAGS="$CFLAGS -Wlogical-op"
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14086 int main(int argc, char **argv) { return 0; }
14087 _ACEOF
14088 if ac_fn_c_try_link "$LINENO"; then :
14089 ac_cv_cflags__Wlogical_op=yes
14090 else
14091 ac_cv_cflags__Wlogical_op=no
14093 rm -f core conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
14095 CFLAGS=$ac_wine_try_cflags_saved
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
14098 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
14099 if test "x$ac_cv_cflags__Wlogical_op" = xyes; then :
14100 saved_string_h_CFLAGS=$CFLAGS
14101 CFLAGS="$CFLAGS -Wlogical-op -Werror"
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
14103 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
14104 if ${ac_cv_c_logicalop_noisy+:} false; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109 #include <string.h>
14110 char*f(const char *h,char n) {return strchr(h,n);}
14112 main ()
14116 return 0;
14118 _ACEOF
14119 if ac_fn_c_try_compile "$LINENO"; then :
14120 ac_cv_c_logicalop_noisy=no
14121 else
14122 ac_cv_c_logicalop_noisy=yes
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
14127 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
14128 CFLAGS=$saved_string_h_CFLAGS
14129 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
14132 CFLAGS=$saved_CFLAGS
14134 for ac_flag in $CFLAGS; do
14135 case $ac_flag in
14136 -g) case $host_os in
14137 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
14138 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
14139 if ${ac_cv_cflags__gstabsp+:} false; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 ac_wine_try_cflags_saved=$CFLAGS
14143 CFLAGS="$CFLAGS -gstabs+"
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 int main(int argc, char **argv) { return 0; }
14147 _ACEOF
14148 if ac_fn_c_try_link "$LINENO"; then :
14149 ac_cv_cflags__gstabsp=yes
14150 else
14151 ac_cv_cflags__gstabsp=no
14153 rm -f core conftest.err conftest.$ac_objext \
14154 conftest$ac_exeext conftest.$ac_ext
14155 CFLAGS=$ac_wine_try_cflags_saved
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
14158 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
14159 if test "x$ac_cv_cflags__gstabsp" = xyes; then :
14160 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
14161 fi ;;
14162 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
14163 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
14164 if ${ac_cv_cflags__gdwarf_2+:} false; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 ac_wine_try_cflags_saved=$CFLAGS
14168 CFLAGS="$CFLAGS -gdwarf-2"
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 int main(int argc, char **argv) { return 0; }
14172 _ACEOF
14173 if ac_fn_c_try_link "$LINENO"; then :
14174 ac_cv_cflags__gdwarf_2=yes
14175 else
14176 ac_cv_cflags__gdwarf_2=no
14178 rm -f core conftest.err conftest.$ac_objext \
14179 conftest$ac_exeext conftest.$ac_ext
14180 CFLAGS=$ac_wine_try_cflags_saved
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
14183 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
14184 if test "x$ac_cv_cflags__gdwarf_2" = xyes; then :
14185 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
14188 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
14189 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 ac_wine_try_cflags_saved=$CFLAGS
14193 CFLAGS="$CFLAGS -gstrict-dwarf"
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 int main(int argc, char **argv) { return 0; }
14197 _ACEOF
14198 if ac_fn_c_try_link "$LINENO"; then :
14199 ac_cv_cflags__gstrict_dwarf=yes
14200 else
14201 ac_cv_cflags__gstrict_dwarf=no
14203 rm -f core conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
14205 CFLAGS=$ac_wine_try_cflags_saved
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
14208 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
14209 if test "x$ac_cv_cflags__gstrict_dwarf" = xyes; then :
14210 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
14211 fi ;;
14212 esac ;;
14213 esac
14214 done
14216 case $host_cpu in
14217 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
14218 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
14219 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
14220 $as_echo_n "(cached) " >&6
14221 else
14222 ac_wine_try_cflags_saved=$CFLAGS
14223 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 int main(int argc, char **argv) { return 0; }
14227 _ACEOF
14228 if ac_fn_c_try_link "$LINENO"; then :
14229 ac_cv_cflags__fno_omit_frame_pointer=yes
14230 else
14231 ac_cv_cflags__fno_omit_frame_pointer=no
14233 rm -f core conftest.err conftest.$ac_objext \
14234 conftest$ac_exeext conftest.$ac_ext
14235 CFLAGS=$ac_wine_try_cflags_saved
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
14238 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
14239 if test "x$ac_cv_cflags__fno_omit_frame_pointer" = xyes; then :
14240 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
14241 fi ;;
14242 esac
14244 case $host in
14245 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
14246 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
14247 if ${ac_cv_cflags__Wno_format+:} false; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 ac_wine_try_cflags_saved=$CFLAGS
14251 CFLAGS="$CFLAGS -Wno-format"
14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14254 int main(int argc, char **argv) { return 0; }
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257 ac_cv_cflags__Wno_format=yes
14258 else
14259 ac_cv_cflags__Wno_format=no
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14263 CFLAGS=$ac_wine_try_cflags_saved
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
14266 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
14267 if test "x$ac_cv_cflags__Wno_format" = xyes; then :
14268 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
14269 fi ;;
14270 esac
14272 if test "x$enable_maintainer_mode" = "xyes"
14273 then
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
14275 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
14276 if ${ac_cv_cflags__Werror+:} false; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 ac_wine_try_cflags_saved=$CFLAGS
14280 CFLAGS="$CFLAGS -Werror"
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14283 int main(int argc, char **argv) { return 0; }
14284 _ACEOF
14285 if ac_fn_c_try_link "$LINENO"; then :
14286 ac_cv_cflags__Werror=yes
14287 else
14288 ac_cv_cflags__Werror=no
14290 rm -f core conftest.err conftest.$ac_objext \
14291 conftest$ac_exeext conftest.$ac_ext
14292 CFLAGS=$ac_wine_try_cflags_saved
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
14295 $as_echo "$ac_cv_cflags__Werror" >&6; }
14296 if test "x$ac_cv_cflags__Werror" = xyes; then :
14297 EXTRACFLAGS="$EXTRACFLAGS -Werror"
14301 saved_CFLAGS="$CFLAGS"
14302 CFLAGS="$CFLAGS -Werror"
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
14304 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
14305 if ${ac_cv_have_ms_hook_prologue+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14310 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
14312 main ()
14316 return 0;
14318 _ACEOF
14319 if ac_fn_c_try_compile "$LINENO"; then :
14320 ac_cv_have_ms_hook_prologue="yes"
14321 else
14322 ac_cv_have_ms_hook_prologue="no"
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14327 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14328 CFLAGS="$saved_CFLAGS"
14329 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14330 then
14332 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14334 else
14335 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14342 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14343 if ${ac_cv_c_fortify_enabled+:} false; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14348 #include <string.h>
14350 main ()
14352 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14353 #error Fortify enabled
14354 #endif
14356 return 0;
14358 _ACEOF
14359 if ac_fn_c_try_compile "$LINENO"; then :
14360 ac_cv_c_fortify_enabled=no
14361 else
14362 ac_cv_c_fortify_enabled=yes
14364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14367 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14368 if test "$ac_cv_c_fortify_enabled" = yes
14369 then
14370 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14375 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14376 if ${ac_cv_c_extern_prefix+:} false; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14381 extern int ac_test;
14383 main ()
14385 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14387 return 0;
14389 _ACEOF
14390 if ac_fn_c_try_link "$LINENO"; then :
14391 ac_cv_c_extern_prefix="yes"
14392 else
14393 ac_cv_c_extern_prefix="no"
14395 rm -f core conftest.err conftest.$ac_objext \
14396 conftest$ac_exeext conftest.$ac_ext
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14399 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14401 case $host_cpu in
14402 *i[3456789]86*)
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14404 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14405 if ${ac_cv_c_stdcall_suffix+:} false; then :
14406 $as_echo_n "(cached) " >&6
14407 else
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14410 #ifndef _MSC_VER
14411 #define __stdcall __attribute__((__stdcall__))
14412 #endif
14413 int __stdcall ac_test(int i) { return i; }
14415 main ()
14417 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14419 return 0;
14421 _ACEOF
14422 if ac_fn_c_try_link "$LINENO"; then :
14423 ac_cv_c_stdcall_suffix="yes"
14424 else
14425 ac_cv_c_stdcall_suffix="no"
14427 rm -f core conftest.err conftest.$ac_objext \
14428 conftest$ac_exeext conftest.$ac_ext
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14431 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14432 *) ac_cv_c_stdcall_suffix="no" ;;
14433 esac
14436 if test "$ac_cv_c_extern_prefix" = "yes"
14437 then
14438 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14440 asm_name_prefix="_"
14441 else
14442 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14444 asm_name_prefix=""
14448 if test "$ac_cv_c_stdcall_suffix" = "yes"
14449 then
14450 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14452 else
14453 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14459 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14460 if ${ac_cv_asm_func_def+:} false; then :
14461 $as_echo_n "(cached) " >&6
14462 else
14463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464 /* end confdefs.h. */
14467 main ()
14469 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14471 return 0;
14473 _ACEOF
14474 if ac_fn_c_try_link "$LINENO"; then :
14475 ac_cv_asm_func_def=".def"
14476 else
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14481 main ()
14483 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14485 return 0;
14487 _ACEOF
14488 if ac_fn_c_try_link "$LINENO"; then :
14489 ac_cv_asm_func_def=".type @function"
14490 else
14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14495 main ()
14497 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14499 return 0;
14501 _ACEOF
14502 if ac_fn_c_try_link "$LINENO"; then :
14503 ac_cv_asm_func_def=".type 2"
14504 else
14505 ac_cv_asm_func_def="unknown"
14507 rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14510 rm -f core conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14513 rm -f core conftest.err conftest.$ac_objext \
14514 conftest$ac_exeext conftest.$ac_ext
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14517 $as_echo "$ac_cv_asm_func_def" >&6; }
14520 case "$ac_cv_asm_func_def" in
14521 ".def")
14522 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14524 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14525 ".type @function")
14526 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14528 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14529 ".type 2")
14530 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14532 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14534 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14536 asm_func_header="" ;;
14537 esac
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14540 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14541 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14542 $as_echo_n "(cached) " >&6
14543 else
14544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545 /* end confdefs.h. */
14546 asm(".text\n\t.long 0");
14548 main ()
14552 return 0;
14554 _ACEOF
14555 if ac_fn_c_try_compile "$LINENO"; then :
14556 ac_cv_c_asm_outside_funcs="yes"
14557 else
14558 ac_cv_c_asm_outside_funcs="no"
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14563 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14566 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14567 if ${ac_cv_c_dot_previous+:} false; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14574 main ()
14576 asm(".text\nac_test:\t.long 0\n\t.previous");
14578 return 0;
14580 _ACEOF
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 ac_cv_c_dot_previous="yes"
14583 else
14584 ac_cv_c_dot_previous="no"
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14590 $as_echo "$ac_cv_c_dot_previous" >&6; }
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14593 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14594 if ${ac_cv_c_cfi_support+:} false; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14601 main ()
14605 return 0;
14607 _ACEOF
14608 if ac_fn_c_try_compile "$LINENO"; then :
14609 ac_cv_c_cfi_support="yes"
14610 else
14611 ac_cv_c_cfi_support="no"
14613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14616 $as_echo "$ac_cv_c_cfi_support" >&6; }
14618 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14619 asm_func_trailer=""
14620 if test "$ac_cv_c_dot_previous" = "yes"
14621 then
14622 asm_func_trailer="\\n\\t.previous"
14624 if test "$ac_cv_c_cfi_support" = "yes"
14625 then
14626 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14627 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14629 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14631 UNWINDFLAGS=-fasynchronous-unwind-tables
14633 else
14634 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14638 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14641 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14642 then
14643 cat >>confdefs.h <<_ACEOF
14644 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14645 _ACEOF
14647 else
14648 cat >>confdefs.h <<_ACEOF
14649 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14650 _ACEOF
14654 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14657 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14661 case $build_os in
14662 cygwin*|mingw32*) TOOLSEXT=".exe"
14664 esac
14666 case $host_os in
14667 linux*)
14668 case $host_cpu in
14669 *i[3456789]86*|x86_64*)
14670 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14671 loader_programs="$loader_programs $wine_binary-preloader"
14672 as_fn_append LOADER_RULES "
14673 $wine_binary-preloader: preloader.o
14674 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14676 install install-lib:: $wine_binary-preloader
14677 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14679 uninstall::
14680 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14682 preloader_EXTRADEFS = $BUILTINFLAG
14683 " ;;
14684 esac
14686 esac
14687 as_fn_append LOADER_RULES "
14688 PROGRAMS = $loader_programs
14692 ac_save_CFLAGS="$CFLAGS"
14693 CFLAGS="$CFLAGS $BUILTINFLAG"
14694 for ac_func in \
14695 __res_get_state \
14696 __res_getservers \
14697 _finite \
14698 _isnan \
14699 _pclose \
14700 _popen \
14701 _snprintf \
14702 _spawnvp \
14703 _strdup \
14704 _stricmp \
14705 _strnicmp \
14706 _strtoi64 \
14707 _strtoui64 \
14708 _vsnprintf \
14709 asctime_r \
14710 chsize \
14711 dlopen \
14712 epoll_create \
14713 ffs \
14714 finitef \
14715 fnmatch \
14716 fork \
14717 fpclass \
14718 fstatfs \
14719 fstatvfs \
14720 ftruncate \
14721 futimens \
14722 futimes \
14723 futimesat \
14724 getattrlist \
14725 getdirentries \
14726 getopt_long_only \
14727 getpwuid \
14728 gettimeofday \
14729 getuid \
14730 if_nameindex \
14731 isnanf \
14732 kqueue \
14733 lstat \
14734 memmove \
14735 mmap \
14736 pclose \
14737 pipe2 \
14738 poll \
14739 popen \
14740 port_create \
14741 prctl \
14742 pread \
14743 proc_pidinfo \
14744 pwrite \
14745 readdir \
14746 readlink \
14747 sched_yield \
14748 select \
14749 setproctitle \
14750 setrlimit \
14751 settimeofday \
14752 sigaltstack \
14753 sigprocmask \
14754 snprintf \
14755 statfs \
14756 statvfs \
14757 strcasecmp \
14758 strdup \
14759 strerror \
14760 strncasecmp \
14761 strtold \
14762 strtoll \
14763 strtoull \
14764 symlink \
14765 tcdrain \
14766 thr_kill2 \
14767 timegm \
14768 usleep \
14769 vsnprintf
14771 do :
14772 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14773 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14774 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14775 cat >>confdefs.h <<_ACEOF
14776 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14777 _ACEOF
14780 done
14782 CFLAGS="$ac_save_CFLAGS"
14784 if test "$ac_cv_func_dlopen" = no
14785 then
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14787 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14788 if ${ac_cv_lib_dl_dlopen+:} false; then :
14789 $as_echo_n "(cached) " >&6
14790 else
14791 ac_check_lib_save_LIBS=$LIBS
14792 LIBS="-ldl $LIBS"
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14796 /* Override any GCC internal prototype to avoid an error.
14797 Use char because int might match the return type of a GCC
14798 builtin and then its argument prototype would still apply. */
14799 #ifdef __cplusplus
14800 extern "C"
14801 #endif
14802 char dlopen ();
14804 main ()
14806 return dlopen ();
14808 return 0;
14810 _ACEOF
14811 if ac_fn_c_try_link "$LINENO"; then :
14812 ac_cv_lib_dl_dlopen=yes
14813 else
14814 ac_cv_lib_dl_dlopen=no
14816 rm -f core conftest.err conftest.$ac_objext \
14817 conftest$ac_exeext conftest.$ac_ext
14818 LIBS=$ac_check_lib_save_LIBS
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14821 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14822 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14823 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14824 DL_LIBS="-ldl"
14829 ac_wine_check_funcs_save_LIBS="$LIBS"
14830 LIBS="$LIBS $DL_LIBS"
14831 for ac_func in dladdr
14832 do :
14833 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14834 if test "x$ac_cv_func_dladdr" = xyes; then :
14835 cat >>confdefs.h <<_ACEOF
14836 #define HAVE_DLADDR 1
14837 _ACEOF
14840 done
14842 LIBS="$ac_wine_check_funcs_save_LIBS"
14844 if test "$ac_cv_func_poll" = no
14845 then
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14847 $as_echo_n "checking for poll in -lpoll... " >&6; }
14848 if ${ac_cv_lib_poll_poll+:} false; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 ac_check_lib_save_LIBS=$LIBS
14852 LIBS="-lpoll $LIBS"
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14856 /* Override any GCC internal prototype to avoid an error.
14857 Use char because int might match the return type of a GCC
14858 builtin and then its argument prototype would still apply. */
14859 #ifdef __cplusplus
14860 extern "C"
14861 #endif
14862 char poll ();
14864 main ()
14866 return poll ();
14868 return 0;
14870 _ACEOF
14871 if ac_fn_c_try_link "$LINENO"; then :
14872 ac_cv_lib_poll_poll=yes
14873 else
14874 ac_cv_lib_poll_poll=no
14876 rm -f core conftest.err conftest.$ac_objext \
14877 conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14881 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14882 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14883 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14884 POLL_LIBS="-lpoll"
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14891 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14892 if ${ac_cv_search_gethostbyname+:} false; then :
14893 $as_echo_n "(cached) " >&6
14894 else
14895 ac_func_search_save_LIBS=$LIBS
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14899 /* Override any GCC internal prototype to avoid an error.
14900 Use char because int might match the return type of a GCC
14901 builtin and then its argument prototype would still apply. */
14902 #ifdef __cplusplus
14903 extern "C"
14904 #endif
14905 char gethostbyname ();
14907 main ()
14909 return gethostbyname ();
14911 return 0;
14913 _ACEOF
14914 for ac_lib in '' nsl; do
14915 if test -z "$ac_lib"; then
14916 ac_res="none required"
14917 else
14918 ac_res=-l$ac_lib
14919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14921 if ac_fn_c_try_link "$LINENO"; then :
14922 ac_cv_search_gethostbyname=$ac_res
14924 rm -f core conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext
14926 if ${ac_cv_search_gethostbyname+:} false; then :
14927 break
14929 done
14930 if ${ac_cv_search_gethostbyname+:} false; then :
14932 else
14933 ac_cv_search_gethostbyname=no
14935 rm conftest.$ac_ext
14936 LIBS=$ac_func_search_save_LIBS
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14939 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14940 ac_res=$ac_cv_search_gethostbyname
14941 if test "$ac_res" != no; then :
14942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14948 $as_echo_n "checking for library containing connect... " >&6; }
14949 if ${ac_cv_search_connect+:} false; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 ac_func_search_save_LIBS=$LIBS
14953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14954 /* end confdefs.h. */
14956 /* Override any GCC internal prototype to avoid an error.
14957 Use char because int might match the return type of a GCC
14958 builtin and then its argument prototype would still apply. */
14959 #ifdef __cplusplus
14960 extern "C"
14961 #endif
14962 char connect ();
14964 main ()
14966 return connect ();
14968 return 0;
14970 _ACEOF
14971 for ac_lib in '' socket; do
14972 if test -z "$ac_lib"; then
14973 ac_res="none required"
14974 else
14975 ac_res=-l$ac_lib
14976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14978 if ac_fn_c_try_link "$LINENO"; then :
14979 ac_cv_search_connect=$ac_res
14981 rm -f core conftest.err conftest.$ac_objext \
14982 conftest$ac_exeext
14983 if ${ac_cv_search_connect+:} false; then :
14984 break
14986 done
14987 if ${ac_cv_search_connect+:} false; then :
14989 else
14990 ac_cv_search_connect=no
14992 rm conftest.$ac_ext
14993 LIBS=$ac_func_search_save_LIBS
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14996 $as_echo "$ac_cv_search_connect" >&6; }
14997 ac_res=$ac_cv_search_connect
14998 if test "$ac_res" != no; then :
14999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
15005 $as_echo_n "checking for library containing inet_aton... " >&6; }
15006 if ${ac_cv_search_inet_aton+:} false; then :
15007 $as_echo_n "(cached) " >&6
15008 else
15009 ac_func_search_save_LIBS=$LIBS
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15013 /* Override any GCC internal prototype to avoid an error.
15014 Use char because int might match the return type of a GCC
15015 builtin and then its argument prototype would still apply. */
15016 #ifdef __cplusplus
15017 extern "C"
15018 #endif
15019 char inet_aton ();
15021 main ()
15023 return inet_aton ();
15025 return 0;
15027 _ACEOF
15028 for ac_lib in '' resolv; do
15029 if test -z "$ac_lib"; then
15030 ac_res="none required"
15031 else
15032 ac_res=-l$ac_lib
15033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15035 if ac_fn_c_try_link "$LINENO"; then :
15036 ac_cv_search_inet_aton=$ac_res
15038 rm -f core conftest.err conftest.$ac_objext \
15039 conftest$ac_exeext
15040 if ${ac_cv_search_inet_aton+:} false; then :
15041 break
15043 done
15044 if ${ac_cv_search_inet_aton+:} false; then :
15046 else
15047 ac_cv_search_inet_aton=no
15049 rm conftest.$ac_ext
15050 LIBS=$ac_func_search_save_LIBS
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
15053 $as_echo "$ac_cv_search_inet_aton" >&6; }
15054 ac_res=$ac_cv_search_inet_aton
15055 if test "$ac_res" != no; then :
15056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15061 for ac_func in \
15062 getaddrinfo \
15063 getnameinfo \
15064 getnetbyname \
15065 getprotobyname \
15066 getprotobynumber \
15067 getservbyport \
15068 inet_addr \
15069 inet_network \
15070 inet_ntop \
15071 inet_pton \
15072 sendmsg \
15073 socketpair \
15075 do :
15076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15077 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15078 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15079 cat >>confdefs.h <<_ACEOF
15080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15081 _ACEOF
15084 done
15087 ac_save_LIBS=$LIBS
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15089 $as_echo_n "checking for library containing clock_gettime... " >&6; }
15090 if ${ac_cv_search_clock_gettime+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 ac_func_search_save_LIBS=$LIBS
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15097 /* Override any GCC internal prototype to avoid an error.
15098 Use char because int might match the return type of a GCC
15099 builtin and then its argument prototype would still apply. */
15100 #ifdef __cplusplus
15101 extern "C"
15102 #endif
15103 char clock_gettime ();
15105 main ()
15107 return clock_gettime ();
15109 return 0;
15111 _ACEOF
15112 for ac_lib in '' rt; do
15113 if test -z "$ac_lib"; then
15114 ac_res="none required"
15115 else
15116 ac_res=-l$ac_lib
15117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15119 if ac_fn_c_try_link "$LINENO"; then :
15120 ac_cv_search_clock_gettime=$ac_res
15122 rm -f core conftest.err conftest.$ac_objext \
15123 conftest$ac_exeext
15124 if ${ac_cv_search_clock_gettime+:} false; then :
15125 break
15127 done
15128 if ${ac_cv_search_clock_gettime+:} false; then :
15130 else
15131 ac_cv_search_clock_gettime=no
15133 rm conftest.$ac_ext
15134 LIBS=$ac_func_search_save_LIBS
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15137 $as_echo "$ac_cv_search_clock_gettime" >&6; }
15138 ac_res=$ac_cv_search_clock_gettime
15139 if test "$ac_res" != no; then :
15140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15142 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15144 test "$ac_res" = "none required" || RT_LIBS="$ac_res"
15148 LIBS=$ac_save_LIBS
15150 LDAP_LIBS=""
15152 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
15153 then
15154 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
15156 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
15158 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
15159 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
15160 $as_echo_n "(cached) " >&6
15161 else
15162 ac_check_lib_save_LIBS=$LIBS
15163 LIBS="-lldap_r $PTHREAD_LIBS $LIBS"
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15167 /* Override any GCC internal prototype to avoid an error.
15168 Use char because int might match the return type of a GCC
15169 builtin and then its argument prototype would still apply. */
15170 #ifdef __cplusplus
15171 extern "C"
15172 #endif
15173 char ldap_initialize ();
15175 main ()
15177 return ldap_initialize ();
15179 return 0;
15181 _ACEOF
15182 if ac_fn_c_try_link "$LINENO"; then :
15183 ac_cv_lib_ldap_r_ldap_initialize=yes
15184 else
15185 ac_cv_lib_ldap_r_ldap_initialize=no
15187 rm -f core conftest.err conftest.$ac_objext \
15188 conftest$ac_exeext conftest.$ac_ext
15189 LIBS=$ac_check_lib_save_LIBS
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
15192 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
15193 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
15195 $as_echo_n "checking for ber_init in -llber... " >&6; }
15196 if ${ac_cv_lib_lber_ber_init+:} false; then :
15197 $as_echo_n "(cached) " >&6
15198 else
15199 ac_check_lib_save_LIBS=$LIBS
15200 LIBS="-llber $PTHREAD_LIBS $LIBS"
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15204 /* Override any GCC internal prototype to avoid an error.
15205 Use char because int might match the return type of a GCC
15206 builtin and then its argument prototype would still apply. */
15207 #ifdef __cplusplus
15208 extern "C"
15209 #endif
15210 char ber_init ();
15212 main ()
15214 return ber_init ();
15216 return 0;
15218 _ACEOF
15219 if ac_fn_c_try_link "$LINENO"; then :
15220 ac_cv_lib_lber_ber_init=yes
15221 else
15222 ac_cv_lib_lber_ber_init=no
15224 rm -f core conftest.err conftest.$ac_objext \
15225 conftest$ac_exeext conftest.$ac_ext
15226 LIBS=$ac_check_lib_save_LIBS
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
15229 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
15230 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
15232 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
15234 LDAP_LIBS="-lldap_r -llber"
15241 ac_wine_check_funcs_save_LIBS="$LIBS"
15242 LIBS="$LIBS $LDAP_LIBS $PTHREAD_LIBS"
15243 for ac_func in \
15244 ldap_count_references \
15245 ldap_first_reference \
15246 ldap_next_reference \
15247 ldap_parse_reference \
15248 ldap_parse_sort_control \
15249 ldap_parse_sortresponse_control \
15250 ldap_parse_vlv_control \
15251 ldap_parse_vlvresponse_control
15252 do :
15253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15255 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15256 cat >>confdefs.h <<_ACEOF
15257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15258 _ACEOF
15261 done
15263 LIBS="$ac_wine_check_funcs_save_LIBS"
15265 if test "x$LDAP_LIBS" = "x"; then :
15266 case "x$with_ldap" in
15267 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
15268 xno) ;;
15269 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
15270 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
15271 esac
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
15275 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
15276 if ${wine_cv_one_arg_mkdir+:} false; then :
15277 $as_echo_n "(cached) " >&6
15278 else
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15281 #include <sys/stat.h>
15283 main ()
15285 mkdir("foo");
15287 return 0;
15289 _ACEOF
15290 if ac_fn_c_try_compile "$LINENO"; then :
15291 wine_cv_one_arg_mkdir=yes
15292 else
15293 wine_cv_one_arg_mkdir=no
15295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
15298 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
15299 if test "$wine_cv_one_arg_mkdir" = "yes"
15300 then
15302 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
15307 $as_echo_n "checking for sched_setaffinity... " >&6; }
15308 if ${wine_cv_have_sched_setaffinity+:} false; then :
15309 $as_echo_n "(cached) " >&6
15310 else
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 #define _GNU_SOURCE
15314 #include <sched.h>
15316 main ()
15318 sched_setaffinity(0, 0, 0);
15320 return 0;
15322 _ACEOF
15323 if ac_fn_c_try_link "$LINENO"; then :
15324 wine_cv_have_sched_setaffinity=yes
15325 else
15326 wine_cv_have_sched_setaffinity=no
15328 rm -f core conftest.err conftest.$ac_objext \
15329 conftest$ac_exeext conftest.$ac_ext
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
15332 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15333 if test "$wine_cv_have_sched_setaffinity" = "yes"
15334 then
15336 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15341 $as_echo_n "checking for fallocate... " >&6; }
15342 if ${wine_cv_have_fallocate+:} false; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347 #define _GNU_SOURCE
15348 #include <fcntl.h>
15350 main ()
15352 fallocate(-1, 0, 0, 0);
15354 return 0;
15356 _ACEOF
15357 if ac_fn_c_try_link "$LINENO"; then :
15358 wine_cv_have_fallocate=yes
15359 else
15360 wine_cv_have_fallocate=no
15362 rm -f core conftest.err conftest.$ac_objext \
15363 conftest$ac_exeext conftest.$ac_ext
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15366 $as_echo "$wine_cv_have_fallocate" >&6; }
15367 if test "$wine_cv_have_fallocate" = "yes"
15368 then
15370 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15376 $as_echo_n "checking for inline... " >&6; }
15377 if ${ac_cv_c_inline+:} false; then :
15378 $as_echo_n "(cached) " >&6
15379 else
15380 ac_cv_c_inline=no
15381 for ac_kw in inline __inline__ __inline; do
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15384 #ifndef __cplusplus
15385 typedef int foo_t;
15386 static $ac_kw foo_t static_foo () {return 0; }
15387 $ac_kw foo_t foo () {return 0; }
15388 #endif
15390 _ACEOF
15391 if ac_fn_c_try_compile "$LINENO"; then :
15392 ac_cv_c_inline=$ac_kw
15394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395 test "$ac_cv_c_inline" != no && break
15396 done
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15400 $as_echo "$ac_cv_c_inline" >&6; }
15402 case $ac_cv_c_inline in
15403 inline | yes) ;;
15405 case $ac_cv_c_inline in
15406 no) ac_val=;;
15407 *) ac_val=$ac_cv_c_inline;;
15408 esac
15409 cat >>confdefs.h <<_ACEOF
15410 #ifndef __cplusplus
15411 #define inline $ac_val
15412 #endif
15413 _ACEOF
15415 esac
15417 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15418 if test "x$ac_cv_type_mode_t" = xyes; then :
15420 cat >>confdefs.h <<_ACEOF
15421 #define HAVE_MODE_T 1
15422 _ACEOF
15426 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15427 if test "x$ac_cv_type_off_t" = xyes; then :
15429 cat >>confdefs.h <<_ACEOF
15430 #define HAVE_OFF_T 1
15431 _ACEOF
15435 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15436 if test "x$ac_cv_type_pid_t" = xyes; then :
15438 cat >>confdefs.h <<_ACEOF
15439 #define HAVE_PID_T 1
15440 _ACEOF
15444 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15445 if test "x$ac_cv_type_size_t" = xyes; then :
15447 cat >>confdefs.h <<_ACEOF
15448 #define HAVE_SIZE_T 1
15449 _ACEOF
15453 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15454 if test "x$ac_cv_type_ssize_t" = xyes; then :
15456 cat >>confdefs.h <<_ACEOF
15457 #define HAVE_SSIZE_T 1
15458 _ACEOF
15462 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15463 if test "x$ac_cv_type_long_long" = xyes; then :
15465 cat >>confdefs.h <<_ACEOF
15466 #define HAVE_LONG_LONG 1
15467 _ACEOF
15471 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15472 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15474 cat >>confdefs.h <<_ACEOF
15475 #define HAVE_FSBLKCNT_T 1
15476 _ACEOF
15480 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15481 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15483 cat >>confdefs.h <<_ACEOF
15484 #define HAVE_FSFILCNT_T 1
15485 _ACEOF
15490 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15491 #include <signal.h>
15493 if test "x$ac_cv_type_sigset_t" = xyes; then :
15495 cat >>confdefs.h <<_ACEOF
15496 #define HAVE_SIGSET_T 1
15497 _ACEOF
15502 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15504 if test "x$ac_cv_type_request_sense" = xyes; then :
15506 cat >>confdefs.h <<_ACEOF
15507 #define HAVE_REQUEST_SENSE 1
15508 _ACEOF
15514 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15515 #ifdef HAVE_SYS_SOCKET_H
15516 #include <sys/socket.h>
15517 #endif
15518 #ifdef HAVE_SYS_SOCKETVAR_H
15519 #include <sys/socketvar.h>
15520 #endif
15521 #ifdef HAVE_NET_ROUTE_H
15522 #include <net/route.h>
15523 #endif
15524 #ifdef HAVE_NETINET_IN_H
15525 #include <netinet/in.h>
15526 #endif
15527 #ifdef HAVE_NETINET_IN_SYSTM_H
15528 #include <netinet/in_systm.h>
15529 #endif
15530 #ifdef HAVE_NETINET_IP_H
15531 #include <netinet/ip.h>
15532 #endif
15533 #ifdef HAVE_NETINET_IN_PCB_H
15534 #include <netinet/in_pcb.h>
15535 #endif
15537 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15539 cat >>confdefs.h <<_ACEOF
15540 #define HAVE_STRUCT_XINPGEN 1
15541 _ACEOF
15547 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15548 #include <link.h>
15549 #endif
15550 #ifdef HAVE_SYS_LINK_H
15551 #include <sys/link.h>
15552 #endif
15554 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15556 cat >>confdefs.h <<_ACEOF
15557 #define HAVE_STRUCT_R_DEBUG 1
15558 _ACEOF
15562 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15563 #include <link.h>
15564 #endif
15565 #ifdef HAVE_SYS_LINK_H
15566 #include <sys/link.h>
15567 #endif
15569 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15571 cat >>confdefs.h <<_ACEOF
15572 #define HAVE_STRUCT_LINK_MAP 1
15573 _ACEOF
15579 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15580 #include <linux/input.h>
15581 #endif
15583 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15585 cat >>confdefs.h <<_ACEOF
15586 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15587 _ACEOF
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15594 $as_echo_n "checking for sigaddset... " >&6; }
15595 if ${wine_cv_have_sigaddset+:} false; then :
15596 $as_echo_n "(cached) " >&6
15597 else
15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15600 #include <signal.h>
15602 main ()
15604 sigset_t set; sigaddset(&set,SIGTERM);
15606 return 0;
15608 _ACEOF
15609 if ac_fn_c_try_link "$LINENO"; then :
15610 wine_cv_have_sigaddset=yes
15611 else
15612 wine_cv_have_sigaddset=no
15614 rm -f core conftest.err conftest.$ac_objext \
15615 conftest$ac_exeext conftest.$ac_ext
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15618 $as_echo "$wine_cv_have_sigaddset" >&6; }
15619 if test "$wine_cv_have_sigaddset" = "yes"
15620 then
15622 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15628 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15629 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 #include <netdb.h>
15636 main ()
15639 char *name=0;
15640 struct hostent he;
15641 struct hostent *result;
15642 char *buf=0;
15643 int bufsize=0;
15644 int errnr;
15645 char *addr=0;
15646 int addrlen=0;
15647 int addrtype=0;
15648 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15649 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15652 return 0;
15654 _ACEOF
15655 if ac_fn_c_try_link "$LINENO"; then :
15656 wine_cv_linux_gethostbyname_r_6=yes
15657 else
15658 wine_cv_linux_gethostbyname_r_6=no
15661 rm -f core conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext conftest.$ac_ext
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15666 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15667 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15668 then
15670 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15674 if test "$ac_cv_header_linux_joystick_h" = "yes"
15675 then
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15677 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15678 if ${wine_cv_linux_joystick_22_api+:} false; then :
15679 $as_echo_n "(cached) " >&6
15680 else
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15684 #include <sys/ioctl.h>
15685 #include <sys/types.h>
15686 #include <linux/joystick.h>
15688 struct js_event blub;
15689 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15690 #error "no 2.2 header"
15691 #endif
15694 main ()
15696 /*empty*/
15698 return 0;
15700 _ACEOF
15701 if ac_fn_c_try_compile "$LINENO"; then :
15702 wine_cv_linux_joystick_22_api=yes
15703 else
15704 wine_cv_linux_joystick_22_api=no
15706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15710 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15711 if test "$wine_cv_linux_joystick_22_api" = "yes"
15712 then
15714 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15720 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15721 #ifdef HAVE_SYS_PARAM_H
15722 # include <sys/param.h>
15723 #endif
15724 #ifdef HAVE_SYS_MOUNT_H
15725 # include <sys/mount.h>
15726 #endif
15727 #ifdef HAVE_SYS_VFS_H
15728 # include <sys/vfs.h>
15729 #endif
15730 #ifdef HAVE_SYS_STATFS_H
15731 # include <sys/statfs.h>
15732 #endif
15734 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15736 cat >>confdefs.h <<_ACEOF
15737 #define HAVE_STRUCT_STATFS_F_BFREE 1
15738 _ACEOF
15742 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15743 #ifdef HAVE_SYS_PARAM_H
15744 # include <sys/param.h>
15745 #endif
15746 #ifdef HAVE_SYS_MOUNT_H
15747 # include <sys/mount.h>
15748 #endif
15749 #ifdef HAVE_SYS_VFS_H
15750 # include <sys/vfs.h>
15751 #endif
15752 #ifdef HAVE_SYS_STATFS_H
15753 # include <sys/statfs.h>
15754 #endif
15756 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15758 cat >>confdefs.h <<_ACEOF
15759 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15760 _ACEOF
15764 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15765 #ifdef HAVE_SYS_PARAM_H
15766 # include <sys/param.h>
15767 #endif
15768 #ifdef HAVE_SYS_MOUNT_H
15769 # include <sys/mount.h>
15770 #endif
15771 #ifdef HAVE_SYS_VFS_H
15772 # include <sys/vfs.h>
15773 #endif
15774 #ifdef HAVE_SYS_STATFS_H
15775 # include <sys/statfs.h>
15776 #endif
15778 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15780 cat >>confdefs.h <<_ACEOF
15781 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15782 _ACEOF
15786 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15787 #ifdef HAVE_SYS_PARAM_H
15788 # include <sys/param.h>
15789 #endif
15790 #ifdef HAVE_SYS_MOUNT_H
15791 # include <sys/mount.h>
15792 #endif
15793 #ifdef HAVE_SYS_VFS_H
15794 # include <sys/vfs.h>
15795 #endif
15796 #ifdef HAVE_SYS_STATFS_H
15797 # include <sys/statfs.h>
15798 #endif
15800 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15802 cat >>confdefs.h <<_ACEOF
15803 #define HAVE_STRUCT_STATFS_F_FFREE 1
15804 _ACEOF
15808 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15809 #ifdef HAVE_SYS_PARAM_H
15810 # include <sys/param.h>
15811 #endif
15812 #ifdef HAVE_SYS_MOUNT_H
15813 # include <sys/mount.h>
15814 #endif
15815 #ifdef HAVE_SYS_VFS_H
15816 # include <sys/vfs.h>
15817 #endif
15818 #ifdef HAVE_SYS_STATFS_H
15819 # include <sys/statfs.h>
15820 #endif
15822 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15824 cat >>confdefs.h <<_ACEOF
15825 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15826 _ACEOF
15830 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15831 #ifdef HAVE_SYS_PARAM_H
15832 # include <sys/param.h>
15833 #endif
15834 #ifdef HAVE_SYS_MOUNT_H
15835 # include <sys/mount.h>
15836 #endif
15837 #ifdef HAVE_SYS_VFS_H
15838 # include <sys/vfs.h>
15839 #endif
15840 #ifdef HAVE_SYS_STATFS_H
15841 # include <sys/statfs.h>
15842 #endif
15844 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15846 cat >>confdefs.h <<_ACEOF
15847 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15848 _ACEOF
15854 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15855 #include <sys/statvfs.h>
15856 #endif
15858 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15860 cat >>confdefs.h <<_ACEOF
15861 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15862 _ACEOF
15868 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15869 #include <dirent.h>
15870 #endif
15872 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15874 cat >>confdefs.h <<_ACEOF
15875 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15876 _ACEOF
15882 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15883 #ifdef HAVE_SYS_SOCKET_H
15884 # include <sys/socket.h>
15885 #endif
15886 #ifdef HAVE_SYS_UN_H
15887 # include <sys/un.h>
15888 #endif
15890 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15892 cat >>confdefs.h <<_ACEOF
15893 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15894 _ACEOF
15898 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15899 #ifdef HAVE_SYS_SOCKET_H
15900 # include <sys/socket.h>
15901 #endif
15902 #ifdef HAVE_SYS_UN_H
15903 # include <sys/un.h>
15904 #endif
15906 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15908 cat >>confdefs.h <<_ACEOF
15909 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15910 _ACEOF
15914 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15915 #ifdef HAVE_SYS_SOCKET_H
15916 # include <sys/socket.h>
15917 #endif
15918 #ifdef HAVE_SYS_UN_H
15919 # include <sys/un.h>
15920 #endif
15922 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15924 cat >>confdefs.h <<_ACEOF
15925 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15926 _ACEOF
15932 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15933 #ifdef HAVE_SCSI_SG_H
15934 #include <scsi/sg.h>
15935 #endif
15937 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15939 cat >>confdefs.h <<_ACEOF
15940 #define HAVE_SCSIREQ_T_CMD 1
15941 _ACEOF
15945 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>
15946 #ifdef HAVE_SCSI_SG_H
15947 #include <scsi/sg.h>
15948 #endif
15950 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15952 cat >>confdefs.h <<_ACEOF
15953 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15954 _ACEOF
15960 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15962 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15964 cat >>confdefs.h <<_ACEOF
15965 #define HAVE_SIGINFO_T_SI_FD 1
15966 _ACEOF
15972 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15973 #ifdef HAVE_SYS_MTIO_H
15974 #include <sys/mtio.h>
15975 #endif
15977 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15979 cat >>confdefs.h <<_ACEOF
15980 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15981 _ACEOF
15985 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15986 #ifdef HAVE_SYS_MTIO_H
15987 #include <sys/mtio.h>
15988 #endif
15990 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15992 cat >>confdefs.h <<_ACEOF
15993 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15994 _ACEOF
15998 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15999 #ifdef HAVE_SYS_MTIO_H
16000 #include <sys/mtio.h>
16001 #endif
16003 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
16005 cat >>confdefs.h <<_ACEOF
16006 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
16007 _ACEOF
16013 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
16014 #include <getopt.h>
16015 #endif
16017 if test "x$ac_cv_member_struct_option_name" = xyes; then :
16019 cat >>confdefs.h <<_ACEOF
16020 #define HAVE_STRUCT_OPTION_NAME 1
16021 _ACEOF
16027 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16028 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
16030 cat >>confdefs.h <<_ACEOF
16031 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16032 _ACEOF
16036 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16037 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
16039 cat >>confdefs.h <<_ACEOF
16040 #define HAVE_STRUCT_STAT_ST_MTIM 1
16041 _ACEOF
16045 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
16046 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
16048 cat >>confdefs.h <<_ACEOF
16049 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
16050 _ACEOF
16054 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
16055 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
16057 cat >>confdefs.h <<_ACEOF
16058 #define HAVE_STRUCT_STAT_ST_CTIM 1
16059 _ACEOF
16063 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
16064 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
16066 cat >>confdefs.h <<_ACEOF
16067 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
16068 _ACEOF
16072 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
16073 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
16075 cat >>confdefs.h <<_ACEOF
16076 #define HAVE_STRUCT_STAT_ST_ATIM 1
16077 _ACEOF
16081 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
16082 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
16084 cat >>confdefs.h <<_ACEOF
16085 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
16086 _ACEOF
16090 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
16091 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
16093 cat >>confdefs.h <<_ACEOF
16094 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
16095 _ACEOF
16099 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
16100 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
16102 cat >>confdefs.h <<_ACEOF
16103 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
16104 _ACEOF
16108 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
16109 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
16111 cat >>confdefs.h <<_ACEOF
16112 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
16113 _ACEOF
16117 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
16118 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
16120 cat >>confdefs.h <<_ACEOF
16121 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
16122 _ACEOF
16126 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
16127 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
16129 cat >>confdefs.h <<_ACEOF
16130 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
16131 _ACEOF
16137 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
16138 #include <sys/types.h>
16139 #endif
16140 #ifdef HAVE_NETINET_IN_H
16141 #include <netinet/in.h>
16142 #endif
16144 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
16146 cat >>confdefs.h <<_ACEOF
16147 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
16148 _ACEOF
16154 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
16155 #include <resolv.h>
16156 #endif
16158 if test "x$ac_cv_type_struct___res_state" = xyes; then :
16160 cat >>confdefs.h <<_ACEOF
16161 #define HAVE_STRUCT___RES_STATE 1
16162 _ACEOF
16168 ac_fn_c_check_member "$LINENO" "struct __res_state" "_u._ext.nscount6" "ac_cv_member_struct___res_state__u__ext_nscount6" "#ifdef HAVE_RESOLV_H
16169 #include <resolv.h>
16170 #endif
16172 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
16174 cat >>confdefs.h <<_ACEOF
16175 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
16176 _ACEOF
16182 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
16183 #include <sys/types.h>
16184 #endif
16185 #ifdef HAVE_NETINET_IN_H
16186 # include <netinet/in.h>
16187 #endif
16188 #ifdef HAVE_ARPA_NAMESER_H
16189 # include <arpa/nameser.h>
16190 #endif
16192 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
16194 cat >>confdefs.h <<_ACEOF
16195 #define HAVE_NS_MSG__MSG_PTR 1
16196 _ACEOF
16202 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
16203 #include <sys/types.h>
16204 #endif
16205 #ifdef HAVE_NETINET_IP_H
16206 #include <netinet/ip.h>
16207 #endif
16208 #ifdef HAVE_NETINET_IP_ICMP_H
16209 #include <netinet/ip_icmp.h>
16210 #endif
16211 #ifdef HAVE_NETINET_ICMP_VAR_H
16212 #include <netinet/icmp_var.h>
16213 #endif
16215 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
16217 cat >>confdefs.h <<_ACEOF
16218 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
16219 _ACEOF
16225 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
16226 #include <sys/types.h>
16227 #endif
16228 #ifdef HAVE_ALIAS_H
16229 #include <alias.h>
16230 #endif
16231 #ifdef HAVE_SYS_SOCKET_H
16232 #include <sys/socket.h>
16233 #endif
16234 #ifdef HAVE_SYS_SOCKETVAR_H
16235 #include <sys/socketvar.h>
16236 #endif
16237 #ifdef HAVE_SYS_TIMEOUT_H
16238 #include <sys/timeout.h>
16239 #endif
16240 #ifdef HAVE_NETINET_IN_H
16241 #include <netinet/in.h>
16242 #endif
16243 #ifdef HAVE_NETINET_IN_SYSTM_H
16244 #include <netinet/in_systm.h>
16245 #endif
16246 #ifdef HAVE_NETINET_IP_H
16247 #include <netinet/ip.h>
16248 #endif
16249 #ifdef HAVE_NETINET_IP_VAR_H
16250 #include <netinet/ip_var.h>
16251 #endif
16252 #ifdef HAVE_NETINET_IP_ICMP_H
16253 #include <netinet/ip_icmp.h>
16254 #endif
16255 #ifdef HAVE_NETINET_ICMP_VAR_H
16256 #include <netinet/icmp_var.h>
16257 #endif
16259 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
16261 cat >>confdefs.h <<_ACEOF
16262 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
16263 _ACEOF
16269 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
16270 #include <sys/types.h>
16271 #endif
16272 #ifdef HAVE_SYS_SOCKETVAR_H
16273 #include <sys/socketvar.h>
16274 #endif
16275 #ifdef HAVE_NETINET_IN_H
16276 #include <netinet/in.h>
16277 #endif
16278 #ifdef HAVE_NETINET_IP_VAR_H
16279 #include <netinet/ip_var.h>
16280 #endif
16282 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
16284 cat >>confdefs.h <<_ACEOF
16285 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
16286 _ACEOF
16292 ac_fn_c_check_member "$LINENO" "struct ip_stats" "ips_total" "ac_cv_member_struct_ip_stats_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H
16293 #include <netinet/ip_var.h>
16294 #endif
16296 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
16298 cat >>confdefs.h <<_ACEOF
16299 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
16300 _ACEOF
16306 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
16307 #include <sys/types.h>
16308 #endif
16309 #ifdef HAVE_SYS_SOCKETVAR_H
16310 #include <sys/socketvar.h>
16311 #endif
16312 #ifdef HAVE_NETINET_IN_H
16313 #include <netinet/in.h>
16314 #endif
16315 #ifdef HAVE_NETINET_TCP_H
16316 #include <netinet/tcp.h>
16317 #endif
16318 #ifdef HAVE_NETINET_TCP_VAR_H
16319 #include <netinet/tcp_var.h>
16320 #endif
16322 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
16324 cat >>confdefs.h <<_ACEOF
16325 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
16326 _ACEOF
16332 ac_fn_c_check_member "$LINENO" "struct tcp_stats" "tcps_connattempt" "ac_cv_member_struct_tcp_stats_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H
16333 #include <netinet/tcp_var.h>
16334 #endif
16336 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16338 cat >>confdefs.h <<_ACEOF
16339 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16340 _ACEOF
16346 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16347 #include <sys/types.h>
16348 #endif
16349 #ifdef HAVE_NETINET_IN_H
16350 #include <netinet/in.h>
16351 #endif
16352 #ifdef HAVE_NETINET_IP_VAR_H
16353 #include <netinet/ip_var.h>
16354 #endif
16355 #ifdef HAVE_NETINET_UDP_H
16356 #include <netinet/udp.h>
16357 #endif
16358 #ifdef HAVE_NETINET_UDP_VAR_H
16359 #include <netinet/udp_var.h>
16360 #endif
16362 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16364 cat >>confdefs.h <<_ACEOF
16365 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16366 _ACEOF
16372 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16373 #include <sys/types.h>
16374 #endif
16375 #ifdef HAVE_NET_IF_H
16376 # include <net/if.h>
16377 #endif
16379 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16381 cat >>confdefs.h <<_ACEOF
16382 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16383 _ACEOF
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16390 $as_echo_n "checking for timezone variable... " >&6; }
16391 if ${ac_cv_have_timezone+:} false; then :
16392 $as_echo_n "(cached) " >&6
16393 else
16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16396 #include <time.h>
16398 main ()
16400 timezone = 1
16402 return 0;
16404 _ACEOF
16405 if ac_fn_c_try_link "$LINENO"; then :
16406 ac_cv_have_timezone="yes"
16407 else
16408 ac_cv_have_timezone="no"
16410 rm -f core conftest.err conftest.$ac_objext \
16411 conftest$ac_exeext conftest.$ac_ext
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16414 $as_echo "$ac_cv_have_timezone" >&6; }
16415 if test "$ac_cv_have_timezone" = "yes"
16416 then
16418 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16422 $as_echo_n "checking for daylight variable... " >&6; }
16423 if ${ac_cv_have_daylight+:} false; then :
16424 $as_echo_n "(cached) " >&6
16425 else
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428 #include <time.h>
16430 main ()
16432 daylight = 1
16434 return 0;
16436 _ACEOF
16437 if ac_fn_c_try_link "$LINENO"; then :
16438 ac_cv_have_daylight="yes"
16439 else
16440 ac_cv_have_daylight="no"
16442 rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16446 $as_echo "$ac_cv_have_daylight" >&6; }
16447 if test "$ac_cv_have_daylight" = "yes"
16448 then
16450 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16454 ac_save_LIBS="$LIBS"
16455 LIBS="$LIBS -lm"
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16457 $as_echo_n "checking for isfinite... " >&6; }
16458 if ${ac_cv_have_isfinite+:} false; then :
16459 $as_echo_n "(cached) " >&6
16460 else
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16463 #define _GNU_SOURCE
16464 #include <math.h>
16466 main ()
16468 float f = 0.0; return isfinite(f)
16470 return 0;
16472 _ACEOF
16473 if ac_fn_c_try_link "$LINENO"; then :
16474 ac_cv_have_isfinite="yes"
16475 else
16476 ac_cv_have_isfinite="no"
16478 rm -f core conftest.err conftest.$ac_objext \
16479 conftest$ac_exeext conftest.$ac_ext
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16482 $as_echo "$ac_cv_have_isfinite" >&6; }
16483 if test "$ac_cv_have_isfinite" = "yes"
16484 then
16486 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16491 $as_echo_n "checking for isinf... " >&6; }
16492 if ${ac_cv_have_isinf+:} false; then :
16493 $as_echo_n "(cached) " >&6
16494 else
16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496 /* end confdefs.h. */
16497 #include <math.h>
16499 main ()
16501 float f = 0.0; return isinf(f)
16503 return 0;
16505 _ACEOF
16506 if ac_fn_c_try_link "$LINENO"; then :
16507 ac_cv_have_isinf="yes"
16508 else
16509 ac_cv_have_isinf="no"
16511 rm -f core conftest.err conftest.$ac_objext \
16512 conftest$ac_exeext conftest.$ac_ext
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16515 $as_echo "$ac_cv_have_isinf" >&6; }
16516 if test "$ac_cv_have_isinf" = "yes"
16517 then
16519 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16524 $as_echo_n "checking for isnan... " >&6; }
16525 if ${ac_cv_have_isnan+:} false; then :
16526 $as_echo_n "(cached) " >&6
16527 else
16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16530 #include <math.h>
16532 main ()
16534 float f = 0.0; return isnan(f)
16536 return 0;
16538 _ACEOF
16539 if ac_fn_c_try_link "$LINENO"; then :
16540 ac_cv_have_isnan="yes"
16541 else
16542 ac_cv_have_isnan="no"
16544 rm -f core conftest.err conftest.$ac_objext \
16545 conftest$ac_exeext conftest.$ac_ext
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16548 $as_echo "$ac_cv_have_isnan" >&6; }
16549 if test "$ac_cv_have_isnan" = "yes"
16550 then
16552 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16556 for ac_func in \
16557 cbrt \
16558 cbrtf \
16559 exp2 \
16560 exp2f \
16561 llrint \
16562 llrintf \
16563 llround \
16564 llroundf \
16565 log2 \
16566 log2f \
16567 lrint \
16568 lrintf \
16569 lround \
16570 lroundf \
16571 rint \
16572 rintf \
16573 round \
16574 roundf \
16575 trunc \
16576 truncf
16578 do :
16579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16580 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16581 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16582 cat >>confdefs.h <<_ACEOF
16583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16584 _ACEOF
16587 done
16589 LIBS="$ac_save_LIBS"
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
16592 $as_echo_n "checking for __builtin_clz... " >&6; }
16593 if ${ac_cv_have___builtin_clz+:} false; then :
16594 $as_echo_n "(cached) " >&6
16595 else
16596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597 /* end confdefs.h. */
16600 main ()
16602 return __builtin_clz(1)
16604 return 0;
16606 _ACEOF
16607 if ac_fn_c_try_link "$LINENO"; then :
16608 ac_cv_have___builtin_clz="yes"
16609 else
16610 ac_cv_have___builtin_clz="no"
16612 rm -f core conftest.err conftest.$ac_objext \
16613 conftest$ac_exeext conftest.$ac_ext
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clz" >&5
16616 $as_echo "$ac_cv_have___builtin_clz" >&6; }
16617 if test "$ac_cv_have___builtin_clz" = "yes"
16618 then
16620 $as_echo "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
16625 case $host_cpu in
16626 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16627 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16628 if ${ac_cv_cpp_def___i386__+:} false; then :
16629 $as_echo_n "(cached) " >&6
16630 else
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16633 #ifndef __i386__
16635 #endif
16636 _ACEOF
16637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16638 $EGREP "yes" >/dev/null 2>&1; then :
16639 ac_cv_cpp_def___i386__=yes
16640 else
16641 ac_cv_cpp_def___i386__=no
16643 rm -f conftest*
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16647 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16648 if test "x$ac_cv_cpp_def___i386__" = xyes; then :
16649 CFLAGS="$CFLAGS -D__i386__"
16650 LINTFLAGS="$LINTFLAGS -D__i386__"
16651 fi ;;
16652 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16653 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16654 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16655 $as_echo_n "(cached) " >&6
16656 else
16657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16658 /* end confdefs.h. */
16659 #ifndef __x86_64__
16661 #endif
16662 _ACEOF
16663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16664 $EGREP "yes" >/dev/null 2>&1; then :
16665 ac_cv_cpp_def___x86_64__=yes
16666 else
16667 ac_cv_cpp_def___x86_64__=no
16669 rm -f conftest*
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16673 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16674 if test "x$ac_cv_cpp_def___x86_64__" = xyes; then :
16675 CFLAGS="$CFLAGS -D__x86_64__"
16676 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16677 fi ;;
16678 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16679 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16680 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16681 $as_echo_n "(cached) " >&6
16682 else
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16685 #ifndef __sparc64__
16687 #endif
16688 _ACEOF
16689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16690 $EGREP "yes" >/dev/null 2>&1; then :
16691 ac_cv_cpp_def___sparc64__=yes
16692 else
16693 ac_cv_cpp_def___sparc64__=no
16695 rm -f conftest*
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16699 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16700 if test "x$ac_cv_cpp_def___sparc64__" = xyes; then :
16701 CFLAGS="$CFLAGS -D__sparc64__"
16702 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16703 fi ;;
16704 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16705 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16706 if ${ac_cv_cpp_def___sparc__+:} false; then :
16707 $as_echo_n "(cached) " >&6
16708 else
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16711 #ifndef __sparc__
16713 #endif
16714 _ACEOF
16715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16716 $EGREP "yes" >/dev/null 2>&1; then :
16717 ac_cv_cpp_def___sparc__=yes
16718 else
16719 ac_cv_cpp_def___sparc__=no
16721 rm -f conftest*
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16725 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16726 if test "x$ac_cv_cpp_def___sparc__" = xyes; then :
16727 CFLAGS="$CFLAGS -D__sparc__"
16728 LINTFLAGS="$LINTFLAGS -D__sparc__"
16729 fi ;;
16730 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16731 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16732 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16733 $as_echo_n "(cached) " >&6
16734 else
16735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736 /* end confdefs.h. */
16737 #ifndef __powerpc64__
16739 #endif
16740 _ACEOF
16741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16742 $EGREP "yes" >/dev/null 2>&1; then :
16743 ac_cv_cpp_def___powerpc64__=yes
16744 else
16745 ac_cv_cpp_def___powerpc64__=no
16747 rm -f conftest*
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16751 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16752 if test "x$ac_cv_cpp_def___powerpc64__" = xyes; then :
16753 CFLAGS="$CFLAGS -D__powerpc64__"
16754 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16755 fi ;;
16756 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16757 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16758 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16759 $as_echo_n "(cached) " >&6
16760 else
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762 /* end confdefs.h. */
16763 #ifndef __powerpc__
16765 #endif
16766 _ACEOF
16767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16768 $EGREP "yes" >/dev/null 2>&1; then :
16769 ac_cv_cpp_def___powerpc__=yes
16770 else
16771 ac_cv_cpp_def___powerpc__=no
16773 rm -f conftest*
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16777 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16778 if test "x$ac_cv_cpp_def___powerpc__" = xyes; then :
16779 CFLAGS="$CFLAGS -D__powerpc__"
16780 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16781 fi ;;
16782 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16783 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16784 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16785 $as_echo_n "(cached) " >&6
16786 else
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h. */
16789 #ifndef __aarch64__
16791 #endif
16792 _ACEOF
16793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16794 $EGREP "yes" >/dev/null 2>&1; then :
16795 ac_cv_cpp_def___aarch64__=yes
16796 else
16797 ac_cv_cpp_def___aarch64__=no
16799 rm -f conftest*
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16803 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16804 if test "x$ac_cv_cpp_def___aarch64__" = xyes; then :
16805 CFLAGS="$CFLAGS -D__aarch64__"
16806 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16807 fi ;;
16808 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16809 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16810 if ${ac_cv_cpp_def___arm__+:} false; then :
16811 $as_echo_n "(cached) " >&6
16812 else
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16815 #ifndef __arm__
16817 #endif
16818 _ACEOF
16819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16820 $EGREP "yes" >/dev/null 2>&1; then :
16821 ac_cv_cpp_def___arm__=yes
16822 else
16823 ac_cv_cpp_def___arm__=no
16825 rm -f conftest*
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16829 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16830 if test "x$ac_cv_cpp_def___arm__" = xyes; then :
16831 CFLAGS="$CFLAGS -D__arm__"
16832 LINTFLAGS="$LINTFLAGS -D__arm__"
16833 fi ;;
16834 esac
16836 case $host_vendor in
16837 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16838 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16839 if ${ac_cv_cpp_def___sun__+:} false; then :
16840 $as_echo_n "(cached) " >&6
16841 else
16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16844 #ifndef __sun__
16846 #endif
16847 _ACEOF
16848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16849 $EGREP "yes" >/dev/null 2>&1; then :
16850 ac_cv_cpp_def___sun__=yes
16851 else
16852 ac_cv_cpp_def___sun__=no
16854 rm -f conftest*
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16858 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16859 if test "x$ac_cv_cpp_def___sun__" = xyes; then :
16860 CFLAGS="$CFLAGS -D__sun__"
16861 LINTFLAGS="$LINTFLAGS -D__sun__"
16862 fi ;;
16863 esac
16869 ac_config_commands="$ac_config_commands include/stamp-h"
16871 $as_echo_n "creating Makefile rules..." >&6
16873 ALL_VARS_RULES="OPENGL_LIBS = $OPENGL_LIBS
16874 SOCKET_LIBS = $SOCKET_LIBS
16875 COREFOUNDATION_LIBS = $COREFOUNDATION_LIBS
16876 IOKIT_LIBS = $IOKIT_LIBS
16877 FORCEFEEDBACK_LIBS = $FORCEFEEDBACK_LIBS
16878 APPLICATIONSERVICES_LIBS = $APPLICATIONSERVICES_LIBS
16879 CORESERVICES_LIBS = $CORESERVICES_LIBS
16880 APPKIT_LIBS = $APPKIT_LIBS
16881 DISKARBITRATION_LIBS = $DISKARBITRATION_LIBS
16882 SECURITY_LIBS = $SECURITY_LIBS
16883 COREAUDIO_LIBS = $COREAUDIO_LIBS
16884 OPENAL_LIBS = $OPENAL_LIBS
16885 OPENCL_LIBS = $OPENCL_LIBS
16886 QUICKTIME_LIBS = $QUICKTIME_LIBS
16887 CARBON_LIBS = $CARBON_LIBS
16888 PTHREAD_LIBS = $PTHREAD_LIBS
16889 X_CFLAGS = $X_CFLAGS
16890 X_PRE_LIBS = $X_PRE_LIBS
16891 X_LIBS = $X_LIBS
16892 X_EXTRA_LIBS = $X_EXTRA_LIBS
16893 XML2_CFLAGS = $XML2_CFLAGS
16894 XML2_LIBS = $XML2_LIBS
16895 XSLT_CFLAGS = $XSLT_CFLAGS
16896 XSLT_LIBS = $XSLT_LIBS
16897 DBUS_CFLAGS = $DBUS_CFLAGS
16898 DBUS_LIBS = $DBUS_LIBS
16899 HAL_CFLAGS = $HAL_CFLAGS
16900 HAL_LIBS = $HAL_LIBS
16901 GNUTLS_CFLAGS = $GNUTLS_CFLAGS
16902 GNUTLS_LIBS = $GNUTLS_LIBS
16903 SANE_CFLAGS = $SANE_CFLAGS
16904 SANE_LIBS = $SANE_LIBS
16905 GPHOTO2_CFLAGS = $GPHOTO2_CFLAGS
16906 GPHOTO2_LIBS = $GPHOTO2_LIBS
16907 GPHOTO2_PORT_CFLAGS = $GPHOTO2_PORT_CFLAGS
16908 GPHOTO2_PORT_LIBS = $GPHOTO2_PORT_LIBS
16909 RESOLV_LIBS = $RESOLV_LIBS
16910 LCMS2_CFLAGS = $LCMS2_CFLAGS
16911 LCMS2_LIBS = $LCMS2_LIBS
16912 FREETYPE_CFLAGS = $FREETYPE_CFLAGS
16913 FREETYPE_LIBS = $FREETYPE_LIBS
16914 Z_LIBS = $Z_LIBS
16915 GETTEXTPO_LIBS = $GETTEXTPO_LIBS
16916 GSTREAMER_CFLAGS = $GSTREAMER_CFLAGS
16917 GSTREAMER_LIBS = $GSTREAMER_LIBS
16918 ALSA_LIBS = $ALSA_LIBS
16919 OSS4_CFLAGS = $OSS4_CFLAGS
16920 CAPI20_CFLAGS = $CAPI20_CFLAGS
16921 CAPI20_LIBS = $CAPI20_LIBS
16922 CUPS_CFLAGS = $CUPS_CFLAGS
16923 FONTCONFIG_CFLAGS = $FONTCONFIG_CFLAGS
16924 FONTCONFIG_LIBS = $FONTCONFIG_LIBS
16925 JPEG_CFLAGS = $JPEG_CFLAGS
16926 JPEG_LIBS = $JPEG_LIBS
16927 PNG_CFLAGS = $PNG_CFLAGS
16928 PNG_LIBS = $PNG_LIBS
16929 TIFF_CFLAGS = $TIFF_CFLAGS
16930 TIFF_LIBS = $TIFF_LIBS
16931 MPG123_CFLAGS = $MPG123_CFLAGS
16932 MPG123_LIBS = $MPG123_LIBS
16933 KSTAT_LIBS = $KSTAT_LIBS
16934 PROCSTAT_LIBS = $PROCSTAT_LIBS
16935 DL_LIBS = $DL_LIBS
16936 POLL_LIBS = $POLL_LIBS
16937 RT_LIBS = $RT_LIBS
16938 LDAP_LIBS = $LDAP_LIBS
16943 wine_fn_append_rule "
16944 # Rules automatically generated by configure
16946 CLEAN_FILES = *.o *.a *.so *.res *.fake *.ok *.tab.[ch] *.yy.c
16948 .INIT: Makefile
16949 .MAKEFILEDEPS:
16950 all: Makefile
16951 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
16952 @./config.status Make.tmp Makefile"
16954 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16955 .gitignore: config.status
16956 @./config.status .gitignore"
16958 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16959 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16961 if test "x$enable_fonts" != xno; then
16962 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16963 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16964 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16965 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16966 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16968 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16969 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16970 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16971 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16972 ac_config_links="$ac_config_links wine:tools/winewrapper"
16973 wine_fn_config_symlink wine
16974 if test "x$enable_win64" != xno; then
16975 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16976 wine_fn_config_symlink wine64
16979 wine_fn_config_dll acledit enable_acledit
16980 wine_fn_config_dll aclui enable_aclui implib
16981 wine_fn_config_dll activeds enable_activeds implib
16982 wine_fn_config_dll actxprxy enable_actxprxy clean
16983 wine_fn_config_lib adsiid
16984 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16985 wine_fn_config_test dlls/advapi32/tests advapi32_test
16986 wine_fn_config_dll advpack enable_advpack implib
16987 wine_fn_config_test dlls/advpack/tests advpack_test
16988 wine_fn_config_dll amstream enable_amstream clean
16989 wine_fn_config_test dlls/amstream/tests amstream_test
16990 wine_fn_config_dll api-ms-win-core-com-l1-1-0 enable_api_ms_win_core_com_l1_1_0
16991 wine_fn_config_dll api-ms-win-core-console-l1-1-0 enable_api_ms_win_core_console_l1_1_0
16992 wine_fn_config_dll api-ms-win-core-datetime-l1-1-0 enable_api_ms_win_core_datetime_l1_1_0
16993 wine_fn_config_dll api-ms-win-core-datetime-l1-1-1 enable_api_ms_win_core_datetime_l1_1_1
16994 wine_fn_config_dll api-ms-win-core-debug-l1-1-1 enable_api_ms_win_core_debug_l1_1_1
16995 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-1 enable_api_ms_win_core_errorhandling_l1_1_1
16996 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-2 enable_api_ms_win_core_errorhandling_l1_1_2
16997 wine_fn_config_dll api-ms-win-core-fibers-l1-1-0 enable_api_ms_win_core_fibers_l1_1_0
16998 wine_fn_config_dll api-ms-win-core-fibers-l1-1-1 enable_api_ms_win_core_fibers_l1_1_1
16999 wine_fn_config_dll api-ms-win-core-file-l1-2-0 enable_api_ms_win_core_file_l1_2_0
17000 wine_fn_config_dll api-ms-win-core-file-l2-1-0 enable_api_ms_win_core_file_l2_1_0
17001 wine_fn_config_dll api-ms-win-core-file-l2-1-1 enable_api_ms_win_core_file_l2_1_1
17002 wine_fn_config_dll api-ms-win-core-handle-l1-1-0 enable_api_ms_win_core_handle_l1_1_0
17003 wine_fn_config_dll api-ms-win-core-heap-l1-2-0 enable_api_ms_win_core_heap_l1_2_0
17004 wine_fn_config_dll api-ms-win-core-heap-obsolete-l1-1-0 enable_api_ms_win_core_heap_obsolete_l1_1_0
17005 wine_fn_config_dll api-ms-win-core-interlocked-l1-2-0 enable_api_ms_win_core_interlocked_l1_2_0
17006 wine_fn_config_dll api-ms-win-core-io-l1-1-1 enable_api_ms_win_core_io_l1_1_1
17007 wine_fn_config_dll api-ms-win-core-kernel32-legacy-l1-1-0 enable_api_ms_win_core_kernel32_legacy_l1_1_0
17008 wine_fn_config_dll api-ms-win-core-libraryloader-l1-1-1 enable_api_ms_win_core_libraryloader_l1_1_1
17009 wine_fn_config_dll api-ms-win-core-localization-l1-2-0 enable_api_ms_win_core_localization_l1_2_0
17010 wine_fn_config_dll api-ms-win-core-localization-l1-2-1 enable_api_ms_win_core_localization_l1_2_1
17011 wine_fn_config_dll api-ms-win-core-localization-obsolete-l1-1-0 enable_api_ms_win_core_localization_obsolete_l1_1_0
17012 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
17013 wine_fn_config_dll api-ms-win-core-memory-l1-1-1 enable_api_ms_win_core_memory_l1_1_1
17014 wine_fn_config_dll api-ms-win-core-namedpipe-l1-2-0 enable_api_ms_win_core_namedpipe_l1_2_0
17015 wine_fn_config_dll api-ms-win-core-processenvironment-l1-2-0 enable_api_ms_win_core_processenvironment_l1_2_0
17016 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
17017 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-1 enable_api_ms_win_core_processthreads_l1_1_1
17018 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-2 enable_api_ms_win_core_processthreads_l1_1_2
17019 wine_fn_config_dll api-ms-win-core-profile-l1-1-0 enable_api_ms_win_core_profile_l1_1_0
17020 wine_fn_config_dll api-ms-win-core-psapi-l1-1-0 enable_api_ms_win_core_psapi_l1_1_0
17021 wine_fn_config_dll api-ms-win-core-registry-l1-1-0 enable_api_ms_win_core_registry_l1_1_0
17022 wine_fn_config_dll api-ms-win-core-rtlsupport-l1-2-0 enable_api_ms_win_core_rtlsupport_l1_2_0
17023 wine_fn_config_dll api-ms-win-core-shlwapi-legacy-l1-1-0 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
17024 wine_fn_config_dll api-ms-win-core-string-l1-1-0 enable_api_ms_win_core_string_l1_1_0
17025 wine_fn_config_dll api-ms-win-core-synch-l1-2-0 enable_api_ms_win_core_synch_l1_2_0
17026 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-0 enable_api_ms_win_core_sysinfo_l1_2_0
17027 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-1 enable_api_ms_win_core_sysinfo_l1_2_1
17028 wine_fn_config_dll api-ms-win-core-threadpool-legacy-l1-1-0 enable_api_ms_win_core_threadpool_legacy_l1_1_0
17029 wine_fn_config_dll api-ms-win-core-timezone-l1-1-0 enable_api_ms_win_core_timezone_l1_1_0
17030 wine_fn_config_dll api-ms-win-core-url-l1-1-0 enable_api_ms_win_core_url_l1_1_0
17031 wine_fn_config_dll api-ms-win-core-util-l1-1-0 enable_api_ms_win_core_util_l1_1_0
17032 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
17033 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-1 enable_api_ms_win_core_winrt_error_l1_1_1
17034 wine_fn_config_dll api-ms-win-core-winrt-l1-1-0 enable_api_ms_win_core_winrt_l1_1_0
17035 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
17036 wine_fn_config_dll api-ms-win-core-xstate-l2-1-0 enable_api_ms_win_core_xstate_l2_1_0
17037 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
17038 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
17039 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
17040 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
17041 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
17042 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
17043 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
17044 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
17045 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
17046 wine_fn_config_dll api-ms-win-eventing-provider-l1-1-0 enable_api_ms_win_eventing_provider_l1_1_0
17047 wine_fn_config_dll api-ms-win-ntuser-dc-access-l1-1-0 enable_api_ms_win_ntuser_dc_access_l1_1_0
17048 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
17049 wine_fn_config_dll api-ms-win-security-base-l1-2-0 enable_api_ms_win_security_base_l1_2_0
17050 wine_fn_config_dll api-ms-win-security-sddl-l1-1-0 enable_api_ms_win_security_sddl_l1_1_0
17051 wine_fn_config_dll api-ms-win-service-core-l1-1-1 enable_api_ms_win_service_core_l1_1_1
17052 wine_fn_config_dll api-ms-win-service-management-l1-1-0 enable_api_ms_win_service_management_l1_1_0
17053 wine_fn_config_dll api-ms-win-service-winsvc-l1-2-0 enable_api_ms_win_service_winsvc_l1_2_0
17054 wine_fn_config_dll apphelp enable_apphelp
17055 wine_fn_config_test dlls/apphelp/tests apphelp_test
17056 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
17057 wine_fn_config_dll atl enable_atl clean,implib
17058 wine_fn_config_test dlls/atl/tests atl_test
17059 wine_fn_config_dll atl100 enable_atl100 clean,implib
17060 wine_fn_config_test dlls/atl100/tests atl100_test
17061 wine_fn_config_dll atl110 enable_atl110 clean
17062 wine_fn_config_dll atl80 enable_atl80 clean,implib
17063 wine_fn_config_test dlls/atl80/tests atl80_test
17064 wine_fn_config_dll atl90 enable_atl90 clean
17065 wine_fn_config_dll authz enable_authz
17066 wine_fn_config_dll avicap32 enable_avicap32 implib
17067 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
17068 wine_fn_config_test dlls/avifil32/tests avifil32_test
17069 wine_fn_config_dll avifile.dll16 enable_win16
17070 wine_fn_config_dll avrt enable_avrt implib
17071 wine_fn_config_dll bcrypt enable_bcrypt
17072 wine_fn_config_test dlls/bcrypt/tests bcrypt_test
17073 wine_fn_config_dll browseui enable_browseui clean,po
17074 wine_fn_config_test dlls/browseui/tests browseui_test
17075 wine_fn_config_dll cabinet enable_cabinet implib
17076 wine_fn_config_test dlls/cabinet/tests cabinet_test
17077 wine_fn_config_dll capi2032 enable_capi2032 implib
17078 wine_fn_config_dll cards enable_cards implib
17079 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
17080 wine_fn_config_dll clusapi enable_clusapi implib
17081 wine_fn_config_dll combase enable_combase
17082 wine_fn_config_test dlls/combase/tests combase_test
17083 wine_fn_config_dll comcat enable_comcat
17084 wine_fn_config_test dlls/comcat/tests comcat_test
17085 wine_fn_config_dll comctl32 enable_comctl32 implib,po
17086 wine_fn_config_test dlls/comctl32/tests comctl32_test
17087 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
17088 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
17089 wine_fn_config_dll comm.drv16 enable_win16
17090 wine_fn_config_dll commdlg.dll16 enable_win16
17091 wine_fn_config_dll compobj.dll16 enable_win16
17092 wine_fn_config_dll compstui enable_compstui implib
17093 wine_fn_config_dll comsvcs enable_comsvcs implib
17094 wine_fn_config_dll connect enable_connect
17095 wine_fn_config_dll credui enable_credui implib,po
17096 wine_fn_config_test dlls/credui/tests credui_test
17097 wine_fn_config_dll crtdll enable_crtdll implib
17098 wine_fn_config_dll crypt32 enable_crypt32 implib,po
17099 wine_fn_config_test dlls/crypt32/tests crypt32_test
17100 wine_fn_config_dll cryptdlg enable_cryptdlg po
17101 wine_fn_config_dll cryptdll enable_cryptdll implib
17102 wine_fn_config_dll cryptext enable_cryptext
17103 wine_fn_config_dll cryptnet enable_cryptnet implib
17104 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
17105 wine_fn_config_dll cryptui enable_cryptui implib,po
17106 wine_fn_config_test dlls/cryptui/tests cryptui_test
17107 wine_fn_config_dll ctapi32 enable_ctapi32
17108 wine_fn_config_dll ctl3d.dll16 enable_win16
17109 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
17110 wine_fn_config_dll ctl3dv2.dll16 enable_win16
17111 wine_fn_config_dll d2d1 enable_d2d1 implib
17112 wine_fn_config_test dlls/d2d1/tests d2d1_test
17113 wine_fn_config_dll d3d10 enable_d3d10 implib
17114 wine_fn_config_test dlls/d3d10/tests d3d10_test
17115 wine_fn_config_dll d3d10_1 enable_d3d10_1 implib
17116 wine_fn_config_dll d3d10core enable_d3d10core implib
17117 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
17118 wine_fn_config_dll d3d11 enable_d3d11
17119 wine_fn_config_dll d3d8 enable_d3d8 implib
17120 wine_fn_config_test dlls/d3d8/tests d3d8_test
17121 wine_fn_config_dll d3d9 enable_d3d9 implib
17122 wine_fn_config_test dlls/d3d9/tests d3d9_test
17123 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
17124 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
17125 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
17126 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
17127 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
17128 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
17129 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
17130 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
17131 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
17132 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
17133 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
17134 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
17135 wine_fn_config_dll d3dim enable_d3dim implib
17136 wine_fn_config_dll d3drm enable_d3drm implib
17137 wine_fn_config_test dlls/d3drm/tests d3drm_test
17138 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
17139 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
17140 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
17141 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
17142 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
17143 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
17144 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
17145 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
17146 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
17147 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
17148 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
17149 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
17150 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
17151 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
17152 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
17153 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
17154 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
17155 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
17156 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
17157 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
17158 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
17159 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
17160 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
17161 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
17162 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
17163 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
17164 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
17165 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
17166 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
17167 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
17168 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
17169 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
17170 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
17171 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
17172 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
17173 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
17174 wine_fn_config_dll dbgeng enable_dbgeng implib
17175 wine_fn_config_dll dbghelp enable_dbghelp implib
17176 wine_fn_config_dll dciman32 enable_dciman32 implib
17177 wine_fn_config_dll ddeml.dll16 enable_win16
17178 wine_fn_config_dll ddraw enable_ddraw clean,implib
17179 wine_fn_config_test dlls/ddraw/tests ddraw_test
17180 wine_fn_config_dll ddrawex enable_ddrawex clean
17181 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
17182 wine_fn_config_dll devenum enable_devenum clean,po
17183 wine_fn_config_test dlls/devenum/tests devenum_test
17184 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
17185 wine_fn_config_dll difxapi enable_difxapi
17186 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
17187 wine_fn_config_test dlls/dinput/tests dinput_test
17188 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
17189 wine_fn_config_test dlls/dinput8/tests dinput8_test
17190 wine_fn_config_dll dispdib.dll16 enable_win16
17191 wine_fn_config_dll dispex enable_dispex clean
17192 wine_fn_config_test dlls/dispex/tests dispex_test
17193 wine_fn_config_dll display.drv16 enable_win16
17194 wine_fn_config_dll dmband enable_dmband clean
17195 wine_fn_config_test dlls/dmband/tests dmband_test
17196 wine_fn_config_dll dmcompos enable_dmcompos clean
17197 wine_fn_config_test dlls/dmcompos/tests dmcompos_test
17198 wine_fn_config_dll dmime enable_dmime clean
17199 wine_fn_config_test dlls/dmime/tests dmime_test
17200 wine_fn_config_dll dmloader enable_dmloader clean
17201 wine_fn_config_test dlls/dmloader/tests dmloader_test
17202 wine_fn_config_dll dmscript enable_dmscript clean
17203 wine_fn_config_test dlls/dmscript/tests dmscript_test
17204 wine_fn_config_dll dmstyle enable_dmstyle clean
17205 wine_fn_config_test dlls/dmstyle/tests dmstyle_test
17206 wine_fn_config_dll dmsynth enable_dmsynth clean
17207 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
17208 wine_fn_config_dll dmusic enable_dmusic clean
17209 wine_fn_config_test dlls/dmusic/tests dmusic_test
17210 wine_fn_config_dll dmusic32 enable_dmusic32 implib
17211 wine_fn_config_dll dnsapi enable_dnsapi implib
17212 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
17213 wine_fn_config_dll dplay enable_dplay implib
17214 wine_fn_config_dll dplayx enable_dplayx clean,implib
17215 wine_fn_config_test dlls/dplayx/tests dplayx_test
17216 wine_fn_config_dll dpnaddr enable_dpnaddr
17217 wine_fn_config_dll dpnet enable_dpnet clean,implib
17218 wine_fn_config_test dlls/dpnet/tests dpnet_test
17219 wine_fn_config_dll dpnhpast enable_dpnhpast
17220 wine_fn_config_dll dpnlobby enable_dpnlobby
17221 wine_fn_config_dll dpvoice enable_dpvoice clean
17222 wine_fn_config_test dlls/dpvoice/tests dpvoice_test
17223 wine_fn_config_dll dpwsockx enable_dpwsockx
17224 wine_fn_config_dll drmclien enable_drmclien
17225 wine_fn_config_dll dsound enable_dsound clean,implib
17226 wine_fn_config_test dlls/dsound/tests dsound_test
17227 wine_fn_config_dll dssenh enable_dssenh
17228 wine_fn_config_test dlls/dssenh/tests dssenh_test
17229 wine_fn_config_dll dswave enable_dswave clean
17230 wine_fn_config_test dlls/dswave/tests dswave_test
17231 wine_fn_config_dll dwmapi enable_dwmapi implib
17232 wine_fn_config_dll dwrite enable_dwrite implib
17233 wine_fn_config_test dlls/dwrite/tests dwrite_test
17234 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
17235 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
17236 wine_fn_config_lib dxerr8
17237 wine_fn_config_lib dxerr9
17238 wine_fn_config_dll dxgi enable_dxgi implib
17239 wine_fn_config_test dlls/dxgi/tests dxgi_test
17240 wine_fn_config_lib dxguid
17241 wine_fn_config_dll dxva2 enable_dxva2
17242 wine_fn_config_dll evr enable_evr
17243 wine_fn_config_dll explorerframe enable_explorerframe clean
17244 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
17245 wine_fn_config_dll ext-ms-win-gdi-devcaps-l1-1-0 enable_ext_ms_win_gdi_devcaps_l1_1_0
17246 wine_fn_config_dll faultrep enable_faultrep implib
17247 wine_fn_config_test dlls/faultrep/tests faultrep_test
17248 wine_fn_config_dll fltlib enable_fltlib
17249 wine_fn_config_dll fntcache enable_fntcache
17250 wine_fn_config_dll fontsub enable_fontsub
17251 wine_fn_config_dll fusion enable_fusion
17252 wine_fn_config_test dlls/fusion/tests fusion_test
17253 wine_fn_config_dll fwpuclnt enable_fwpuclnt
17254 wine_fn_config_dll gameux enable_gameux clean
17255 wine_fn_config_test dlls/gameux/tests gameux_test
17256 wine_fn_config_dll gdi.exe16 enable_win16
17257 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
17258 wine_fn_config_test dlls/gdi32/tests gdi32_test
17259 wine_fn_config_dll gdiplus enable_gdiplus implib
17260 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
17261 wine_fn_config_dll glu32 enable_glu32 implib
17262 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
17263 wine_fn_config_dll gpkcsp enable_gpkcsp
17264 wine_fn_config_dll hal enable_hal
17265 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
17266 wine_fn_config_dll hid enable_hid implib
17267 wine_fn_config_dll hlink enable_hlink clean,implib
17268 wine_fn_config_test dlls/hlink/tests hlink_test
17269 wine_fn_config_dll hnetcfg enable_hnetcfg clean
17270 wine_fn_config_dll httpapi enable_httpapi
17271 wine_fn_config_dll iccvid enable_iccvid po
17272 wine_fn_config_dll icmp enable_icmp
17273 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
17274 wine_fn_config_test dlls/ieframe/tests ieframe_test
17275 wine_fn_config_dll ifsmgr.vxd enable_win16
17276 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
17277 wine_fn_config_dll imagehlp enable_imagehlp implib
17278 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
17279 wine_fn_config_dll imm.dll16 enable_win16
17280 wine_fn_config_dll imm32 enable_imm32 implib
17281 wine_fn_config_test dlls/imm32/tests imm32_test
17282 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
17283 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
17284 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
17285 wine_fn_config_dll inetmib1 enable_inetmib1
17286 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
17287 wine_fn_config_dll infosoft enable_infosoft clean
17288 wine_fn_config_test dlls/infosoft/tests infosoft_test
17289 wine_fn_config_dll initpki enable_initpki
17290 wine_fn_config_dll inkobj enable_inkobj
17291 wine_fn_config_dll inseng enable_inseng clean
17292 wine_fn_config_dll iphlpapi enable_iphlpapi implib
17293 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
17294 wine_fn_config_dll itircl enable_itircl
17295 wine_fn_config_dll itss enable_itss clean
17296 wine_fn_config_test dlls/itss/tests itss_test
17297 wine_fn_config_dll joy.cpl enable_joy_cpl po
17298 wine_fn_config_dll jscript enable_jscript clean,po
17299 wine_fn_config_test dlls/jscript/tests jscript_test
17300 wine_fn_config_dll jsproxy enable_jsproxy implib
17301 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
17302 wine_fn_config_test dlls/kernel32/tests kernel32_test
17303 wine_fn_config_dll keyboard.drv16 enable_win16
17304 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
17305 wine_fn_config_dll ksuser enable_ksuser
17306 wine_fn_config_dll ktmw32 enable_ktmw32
17307 wine_fn_config_dll loadperf enable_loadperf implib
17308 wine_fn_config_dll localspl enable_localspl po
17309 wine_fn_config_test dlls/localspl/tests localspl_test
17310 wine_fn_config_dll localui enable_localui po
17311 wine_fn_config_test dlls/localui/tests localui_test
17312 wine_fn_config_dll lz32 enable_lz32 implib
17313 wine_fn_config_test dlls/lz32/tests lz32_test
17314 wine_fn_config_dll lzexpand.dll16 enable_win16
17315 wine_fn_config_dll mapi32 enable_mapi32 implib,po
17316 wine_fn_config_test dlls/mapi32/tests mapi32_test
17317 wine_fn_config_dll mapistub enable_mapistub
17318 wine_fn_config_dll mciavi32 enable_mciavi32
17319 wine_fn_config_dll mcicda enable_mcicda
17320 wine_fn_config_dll mciqtz32 enable_mciqtz32
17321 wine_fn_config_dll mciseq enable_mciseq
17322 wine_fn_config_dll mciwave enable_mciwave
17323 wine_fn_config_dll mf enable_mf
17324 wine_fn_config_dll mfplat enable_mfplat
17325 wine_fn_config_dll mfreadwrite enable_mfreadwrite
17326 wine_fn_config_dll mgmtapi enable_mgmtapi
17327 wine_fn_config_dll midimap enable_midimap
17328 wine_fn_config_dll mlang enable_mlang clean,implib
17329 wine_fn_config_test dlls/mlang/tests mlang_test
17330 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
17331 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
17332 wine_fn_config_dll mmdevapi enable_mmdevapi clean
17333 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
17334 wine_fn_config_dll mmdevldr.vxd enable_win16
17335 wine_fn_config_dll mmsystem.dll16 enable_win16
17336 wine_fn_config_dll monodebg.vxd enable_win16
17337 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
17338 wine_fn_config_dll mouse.drv16 enable_win16
17339 wine_fn_config_dll mpr enable_mpr implib,po
17340 wine_fn_config_test dlls/mpr/tests mpr_test
17341 wine_fn_config_dll mprapi enable_mprapi implib
17342 wine_fn_config_dll msacm.dll16 enable_win16
17343 wine_fn_config_dll msacm32.drv enable_msacm32_drv
17344 wine_fn_config_dll msacm32 enable_msacm32 implib,po
17345 wine_fn_config_test dlls/msacm32/tests msacm32_test
17346 wine_fn_config_dll msadp32.acm enable_msadp32_acm
17347 wine_fn_config_dll msasn1 enable_msasn1 implib
17348 wine_fn_config_dll mscat32 enable_mscat32
17349 wine_fn_config_dll mscms enable_mscms implib
17350 wine_fn_config_test dlls/mscms/tests mscms_test
17351 wine_fn_config_dll mscoree enable_mscoree clean
17352 wine_fn_config_test dlls/mscoree/tests mscoree_test
17353 wine_fn_config_dll msctf enable_msctf clean
17354 wine_fn_config_test dlls/msctf/tests msctf_test
17355 wine_fn_config_dll msdaps enable_msdaps clean
17356 wine_fn_config_dll msdmo enable_msdmo implib
17357 wine_fn_config_test dlls/msdmo/tests msdmo_test
17358 wine_fn_config_dll msftedit enable_msftedit
17359 wine_fn_config_dll msg711.acm enable_msg711_acm
17360 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
17361 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
17362 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
17363 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
17364 wine_fn_config_dll msi enable_msi clean,implib,po
17365 wine_fn_config_test dlls/msi/tests msi_test
17366 wine_fn_config_dll msident enable_msident clean
17367 wine_fn_config_dll msimg32 enable_msimg32 implib
17368 wine_fn_config_dll msimsg enable_msimsg
17369 wine_fn_config_dll msimtf enable_msimtf clean
17370 wine_fn_config_dll msisip enable_msisip
17371 wine_fn_config_dll msisys.ocx enable_msisys_ocx
17372 wine_fn_config_dll msls31 enable_msls31
17373 wine_fn_config_dll msnet32 enable_msnet32
17374 wine_fn_config_dll mspatcha enable_mspatcha
17375 wine_fn_config_dll msrle32 enable_msrle32 po
17376 wine_fn_config_test dlls/msrle32/tests msrle32_test
17377 wine_fn_config_dll mssign32 enable_mssign32
17378 wine_fn_config_dll mssip32 enable_mssip32
17379 wine_fn_config_dll mstask enable_mstask clean
17380 wine_fn_config_test dlls/mstask/tests mstask_test
17381 wine_fn_config_dll msvcirt enable_msvcirt
17382 wine_fn_config_dll msvcm80 enable_msvcm80
17383 wine_fn_config_dll msvcm90 enable_msvcm90
17384 wine_fn_config_dll msvcp100 enable_msvcp100
17385 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
17386 wine_fn_config_dll msvcp110 enable_msvcp110
17387 wine_fn_config_dll msvcp120 enable_msvcp120
17388 wine_fn_config_test dlls/msvcp120/tests msvcp120_test
17389 wine_fn_config_dll msvcp120_app enable_msvcp120_app
17390 wine_fn_config_dll msvcp60 enable_msvcp60
17391 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
17392 wine_fn_config_dll msvcp70 enable_msvcp70
17393 wine_fn_config_dll msvcp71 enable_msvcp71
17394 wine_fn_config_dll msvcp80 enable_msvcp80
17395 wine_fn_config_dll msvcp90 enable_msvcp90
17396 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
17397 wine_fn_config_dll msvcr100 enable_msvcr100 implib
17398 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
17399 wine_fn_config_dll msvcr110 enable_msvcr110 implib
17400 wine_fn_config_dll msvcr120 enable_msvcr120 implib
17401 wine_fn_config_test dlls/msvcr120/tests msvcr120_test
17402 wine_fn_config_dll msvcr120_app enable_msvcr120_app
17403 wine_fn_config_dll msvcr70 enable_msvcr70 implib
17404 wine_fn_config_dll msvcr71 enable_msvcr71 implib
17405 wine_fn_config_dll msvcr80 enable_msvcr80 implib
17406 wine_fn_config_dll msvcr90 enable_msvcr90 implib
17407 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
17408 wine_fn_config_dll msvcrt enable_msvcrt implib
17409 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
17410 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
17411 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
17412 wine_fn_config_dll msvcrtd enable_msvcrtd implib
17413 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
17414 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
17415 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
17416 wine_fn_config_dll msvidc32 enable_msvidc32 po
17417 wine_fn_config_dll msvideo.dll16 enable_win16
17418 wine_fn_config_dll mswsock enable_mswsock implib
17419 wine_fn_config_dll msxml enable_msxml clean
17420 wine_fn_config_dll msxml2 enable_msxml2 clean
17421 wine_fn_config_dll msxml3 enable_msxml3 clean
17422 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
17423 wine_fn_config_dll msxml4 enable_msxml4 clean
17424 wine_fn_config_dll msxml6 enable_msxml6 clean
17425 wine_fn_config_dll nddeapi enable_nddeapi implib
17426 wine_fn_config_dll ndis.sys enable_ndis_sys
17427 wine_fn_config_dll netapi32 enable_netapi32 implib
17428 wine_fn_config_test dlls/netapi32/tests netapi32_test
17429 wine_fn_config_dll netcfgx enable_netcfgx clean
17430 wine_fn_config_test dlls/netcfgx/tests netcfgx_test
17431 wine_fn_config_dll netprofm enable_netprofm clean
17432 wine_fn_config_test dlls/netprofm/tests netprofm_test
17433 wine_fn_config_dll newdev enable_newdev implib
17434 wine_fn_config_dll normaliz enable_normaliz implib
17435 wine_fn_config_dll npmshtml enable_npmshtml
17436 wine_fn_config_dll npptools enable_npptools
17437 wine_fn_config_dll ntdll enable_ntdll implib
17438 wine_fn_config_test dlls/ntdll/tests ntdll_test
17439 wine_fn_config_dll ntdsapi enable_ntdsapi implib
17440 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
17441 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
17442 wine_fn_config_dll ntprint enable_ntprint
17443 wine_fn_config_test dlls/ntprint/tests ntprint_test
17444 wine_fn_config_dll objsel enable_objsel clean
17445 wine_fn_config_dll odbc32 enable_odbc32 implib
17446 wine_fn_config_dll odbccp32 enable_odbccp32 implib
17447 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
17448 wine_fn_config_dll odbccu32 enable_odbccu32
17449 wine_fn_config_dll ole2.dll16 enable_win16
17450 wine_fn_config_dll ole2conv.dll16 enable_win16
17451 wine_fn_config_dll ole2disp.dll16 enable_win16
17452 wine_fn_config_dll ole2nls.dll16 enable_win16
17453 wine_fn_config_dll ole2prox.dll16 enable_win16
17454 wine_fn_config_dll ole2thk.dll16 enable_win16
17455 wine_fn_config_dll ole32 enable_ole32 clean,implib
17456 wine_fn_config_test dlls/ole32/tests ole32_test
17457 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
17458 wine_fn_config_test dlls/oleacc/tests oleacc_test
17459 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
17460 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
17461 wine_fn_config_dll olecli.dll16 enable_win16
17462 wine_fn_config_dll olecli32 enable_olecli32 implib
17463 wine_fn_config_dll oledb32 enable_oledb32 clean
17464 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
17465 wine_fn_config_dll oledlg enable_oledlg implib,po
17466 wine_fn_config_dll olepro32 enable_olepro32 implib
17467 wine_fn_config_dll olesvr.dll16 enable_win16
17468 wine_fn_config_dll olesvr32 enable_olesvr32 implib
17469 wine_fn_config_dll olethk32 enable_olethk32
17470 wine_fn_config_dll openal32 enable_openal32
17471 wine_fn_config_dll opencl enable_opencl
17472 wine_fn_config_dll opengl32 enable_opengl32 implib
17473 wine_fn_config_test dlls/opengl32/tests opengl32_test
17474 wine_fn_config_dll packager enable_packager clean
17475 wine_fn_config_test dlls/packager/tests packager_test
17476 wine_fn_config_dll pdh enable_pdh implib
17477 wine_fn_config_test dlls/pdh/tests pdh_test
17478 wine_fn_config_dll photometadatahandler enable_photometadatahandler
17479 wine_fn_config_dll pidgen enable_pidgen
17480 wine_fn_config_dll powrprof enable_powrprof implib
17481 wine_fn_config_dll printui enable_printui
17482 wine_fn_config_dll prntvpt enable_prntvpt
17483 wine_fn_config_dll propsys enable_propsys clean,implib
17484 wine_fn_config_test dlls/propsys/tests propsys_test
17485 wine_fn_config_dll psapi enable_psapi implib
17486 wine_fn_config_test dlls/psapi/tests psapi_test
17487 wine_fn_config_dll pstorec enable_pstorec clean
17488 wine_fn_config_dll qcap enable_qcap
17489 wine_fn_config_test dlls/qcap/tests qcap_test
17490 wine_fn_config_dll qedit enable_qedit clean
17491 wine_fn_config_test dlls/qedit/tests qedit_test
17492 wine_fn_config_dll qmgr enable_qmgr clean
17493 wine_fn_config_test dlls/qmgr/tests qmgr_test
17494 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
17495 wine_fn_config_dll quartz enable_quartz clean,implib
17496 wine_fn_config_test dlls/quartz/tests quartz_test clean
17497 wine_fn_config_dll query enable_query
17498 wine_fn_config_dll rasapi16.dll16 enable_win16
17499 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17500 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17501 wine_fn_config_dll rasdlg enable_rasdlg implib
17502 wine_fn_config_dll regapi enable_regapi
17503 wine_fn_config_dll resutils enable_resutils implib
17504 wine_fn_config_dll riched20 enable_riched20 implib
17505 wine_fn_config_test dlls/riched20/tests riched20_test
17506 wine_fn_config_dll riched32 enable_riched32
17507 wine_fn_config_test dlls/riched32/tests riched32_test
17508 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17509 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17510 wine_fn_config_dll rsabase enable_rsabase
17511 wine_fn_config_dll rsaenh enable_rsaenh implib
17512 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17513 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17514 wine_fn_config_dll rtutils enable_rtutils implib
17515 wine_fn_config_dll samlib enable_samlib
17516 wine_fn_config_dll sane.ds enable_sane_ds po
17517 wine_fn_config_dll scarddlg enable_scarddlg
17518 wine_fn_config_dll sccbase enable_sccbase
17519 wine_fn_config_dll schannel enable_schannel
17520 wine_fn_config_test dlls/schannel/tests schannel_test
17521 wine_fn_config_dll schedsvc enable_schedsvc clean
17522 wine_fn_config_test dlls/schedsvc/tests schedsvc_test clean
17523 wine_fn_config_dll scrrun enable_scrrun clean
17524 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17525 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17526 wine_fn_config_dll secur32 enable_secur32 implib
17527 wine_fn_config_test dlls/secur32/tests secur32_test
17528 wine_fn_config_dll security enable_security
17529 wine_fn_config_dll sensapi enable_sensapi implib
17530 wine_fn_config_dll serialui enable_serialui implib,po
17531 wine_fn_config_test dlls/serialui/tests serialui_test
17532 wine_fn_config_dll setupapi enable_setupapi implib,po
17533 wine_fn_config_test dlls/setupapi/tests setupapi_test
17534 wine_fn_config_dll setupx.dll16 enable_win16
17535 wine_fn_config_dll sfc enable_sfc implib
17536 wine_fn_config_dll sfc_os enable_sfc_os implib
17537 wine_fn_config_dll shdoclc enable_shdoclc po
17538 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17539 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17540 wine_fn_config_dll shell.dll16 enable_win16
17541 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17542 wine_fn_config_test dlls/shell32/tests shell32_test
17543 wine_fn_config_dll shfolder enable_shfolder implib
17544 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17545 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17546 wine_fn_config_dll slbcsp enable_slbcsp
17547 wine_fn_config_dll slc enable_slc implib
17548 wine_fn_config_test dlls/slc/tests slc_test
17549 wine_fn_config_dll snmpapi enable_snmpapi implib
17550 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17551 wine_fn_config_dll softpub enable_softpub
17552 wine_fn_config_dll sound.drv16 enable_win16
17553 wine_fn_config_dll spoolss enable_spoolss implib
17554 wine_fn_config_test dlls/spoolss/tests spoolss_test
17555 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17556 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17557 wine_fn_config_dll sti enable_sti clean,implib
17558 wine_fn_config_test dlls/sti/tests sti_test
17559 wine_fn_config_dll storage.dll16 enable_win16
17560 wine_fn_config_dll stress.dll16 enable_win16
17561 wine_fn_config_lib strmbase
17562 wine_fn_config_lib strmiids
17563 wine_fn_config_dll svrapi enable_svrapi
17564 wine_fn_config_dll sxs enable_sxs implib
17565 wine_fn_config_test dlls/sxs/tests sxs_test
17566 wine_fn_config_dll system.drv16 enable_win16
17567 wine_fn_config_dll t2embed enable_t2embed
17568 wine_fn_config_dll tapi32 enable_tapi32 implib
17569 wine_fn_config_dll taskschd enable_taskschd clean
17570 wine_fn_config_test dlls/taskschd/tests taskschd_test
17571 wine_fn_config_dll toolhelp.dll16 enable_win16
17572 wine_fn_config_dll traffic enable_traffic
17573 wine_fn_config_dll twain.dll16 enable_win16
17574 wine_fn_config_dll twain_32 enable_twain_32
17575 wine_fn_config_test dlls/twain_32/tests twain_32_test
17576 wine_fn_config_dll typelib.dll16 enable_win16
17577 wine_fn_config_dll unicows enable_unicows implib
17578 wine_fn_config_dll updspapi enable_updspapi
17579 wine_fn_config_dll url enable_url implib
17580 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17581 wine_fn_config_test dlls/urlmon/tests urlmon_test
17582 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17583 wine_fn_config_dll user.exe16 enable_win16
17584 wine_fn_config_dll user32 enable_user32 clean,implib,po
17585 wine_fn_config_test dlls/user32/tests user32_test
17586 wine_fn_config_dll userenv enable_userenv implib
17587 wine_fn_config_test dlls/userenv/tests userenv_test
17588 wine_fn_config_dll usp10 enable_usp10 implib
17589 wine_fn_config_test dlls/usp10/tests usp10_test
17590 wine_fn_config_lib uuid
17591 wine_fn_config_dll uxtheme enable_uxtheme implib
17592 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17593 wine_fn_config_dll vbscript enable_vbscript clean
17594 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17595 wine_fn_config_dll vcomp enable_vcomp
17596 wine_fn_config_dll vcomp100 enable_vcomp100
17597 wine_fn_config_dll vcomp90 enable_vcomp90
17598 wine_fn_config_dll vdhcp.vxd enable_win16
17599 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17600 wine_fn_config_dll ver.dll16 enable_win16
17601 wine_fn_config_dll version enable_version implib
17602 wine_fn_config_test dlls/version/tests version_test
17603 wine_fn_config_dll vmm.vxd enable_win16
17604 wine_fn_config_dll vnbt.vxd enable_win16
17605 wine_fn_config_dll vnetbios.vxd enable_win16
17606 wine_fn_config_dll vssapi enable_vssapi
17607 wine_fn_config_dll vtdapi.vxd enable_win16
17608 wine_fn_config_dll vwin32.vxd enable_win16
17609 wine_fn_config_dll w32skrnl enable_win16
17610 wine_fn_config_dll w32sys.dll16 enable_win16
17611 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17612 wine_fn_config_test dlls/wbemdisp/tests wbemdisp_test
17613 wine_fn_config_dll wbemprox enable_wbemprox clean
17614 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17615 wine_fn_config_dll webservices enable_webservices implib
17616 wine_fn_config_dll wer enable_wer implib
17617 wine_fn_config_test dlls/wer/tests wer_test
17618 wine_fn_config_dll wevtapi enable_wevtapi
17619 wine_fn_config_dll wiaservc enable_wiaservc clean
17620 wine_fn_config_dll win32s16.dll16 enable_win16
17621 wine_fn_config_dll win87em.dll16 enable_win16
17622 wine_fn_config_dll winaspi.dll16 enable_win16
17623 wine_fn_config_dll windebug.dll16 enable_win16
17624 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17625 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17626 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17627 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17628 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17629 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17630 wine_fn_config_lib winecrt0
17631 wine_fn_config_dll wined3d enable_wined3d implib
17632 wine_fn_config_dll winegstreamer enable_winegstreamer
17633 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17634 wine_fn_config_dll winemac.drv enable_winemac_drv
17635 wine_fn_config_dll winemapi enable_winemapi
17636 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17637 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17638 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17639 wine_fn_config_dll wineps16.drv16 enable_win16
17640 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17641 wine_fn_config_dll winex11.drv enable_winex11_drv
17642 wine_fn_config_dll wing.dll16 enable_win16
17643 wine_fn_config_dll wing32 enable_wing32
17644 wine_fn_config_dll winhttp enable_winhttp clean,implib
17645 wine_fn_config_test dlls/winhttp/tests winhttp_test
17646 wine_fn_config_dll wininet enable_wininet implib,po
17647 wine_fn_config_test dlls/wininet/tests wininet_test
17648 wine_fn_config_dll winmm enable_winmm implib,po
17649 wine_fn_config_test dlls/winmm/tests winmm_test
17650 wine_fn_config_dll winnls.dll16 enable_win16
17651 wine_fn_config_dll winnls32 enable_winnls32 implib
17652 wine_fn_config_dll winscard enable_winscard implib
17653 wine_fn_config_dll winsock.dll16 enable_win16
17654 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17655 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17656 wine_fn_config_dll winsta enable_winsta
17657 wine_fn_config_dll wintab.dll16 enable_win16
17658 wine_fn_config_dll wintab32 enable_wintab32 implib
17659 wine_fn_config_test dlls/wintab32/tests wintab32_test
17660 wine_fn_config_dll wintrust enable_wintrust implib
17661 wine_fn_config_test dlls/wintrust/tests wintrust_test
17662 wine_fn_config_dll wlanapi enable_wlanapi
17663 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17664 wine_fn_config_test dlls/wldap32/tests wldap32_test
17665 wine_fn_config_dll wmi enable_wmi
17666 wine_fn_config_dll wmiutils enable_wmiutils clean
17667 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17668 wine_fn_config_dll wmp enable_wmp clean
17669 wine_fn_config_test dlls/wmp/tests wmp_test
17670 wine_fn_config_dll wmvcore enable_wmvcore
17671 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17672 wine_fn_config_dll wow32 enable_win16 implib
17673 wine_fn_config_dll wpcap enable_wpcap
17674 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17675 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17676 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17677 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17678 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17679 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17680 wine_fn_config_dll wsock32 enable_wsock32 implib
17681 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17682 wine_fn_config_test dlls/wtsapi32/tests wtsapi32_test
17683 wine_fn_config_dll wuapi enable_wuapi clean
17684 wine_fn_config_dll wuaueng enable_wuaueng
17685 wine_fn_config_dll x3daudio1_1 enable_x3daudio1_1
17686 wine_fn_config_dll x3daudio1_2 enable_x3daudio1_2
17687 wine_fn_config_dll x3daudio1_3 enable_x3daudio1_3
17688 wine_fn_config_dll x3daudio1_4 enable_x3daudio1_4
17689 wine_fn_config_dll x3daudio1_5 enable_x3daudio1_5
17690 wine_fn_config_dll x3daudio1_6 enable_x3daudio1_6
17691 wine_fn_config_dll x3daudio1_7 enable_x3daudio1_7
17692 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17693 wine_fn_config_dll xapofx1_3 enable_xapofx1_3
17694 wine_fn_config_dll xapofx1_4 enable_xapofx1_4
17695 wine_fn_config_dll xapofx1_5 enable_xapofx1_5
17696 wine_fn_config_dll xaudio2_7 enable_xaudio2_7
17697 wine_fn_config_dll xinput1_1 enable_xinput1_1
17698 wine_fn_config_dll xinput1_2 enable_xinput1_2
17699 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17700 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17701 wine_fn_config_dll xinput1_4 enable_xinput1_4
17702 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17703 wine_fn_config_dll xmllite enable_xmllite implib
17704 wine_fn_config_test dlls/xmllite/tests xmllite_test
17705 wine_fn_config_dll xolehlp enable_xolehlp
17706 wine_fn_config_dll xpsprint enable_xpsprint
17707 wine_fn_config_dll xpssvcs enable_xpssvcs
17708 wine_fn_config_makefile documentation enable_documentation clean
17709 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17710 wine_fn_config_makefile include enable_include clean,install-dev
17711 wine_fn_config_makefile libs/port enable_libs_port
17712 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17713 wine_fn_config_makefile libs/wpp enable_libs_wpp
17714 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17715 wine_fn_config_program arp enable_arp install
17716 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17717 wine_fn_config_program attrib enable_attrib install,po
17718 wine_fn_config_program cabarc enable_cabarc install
17719 wine_fn_config_program cacls enable_cacls install
17720 wine_fn_config_program clock enable_clock install,po
17721 wine_fn_config_program cmd enable_cmd install,po
17722 wine_fn_config_test programs/cmd/tests cmd.exe_test
17723 wine_fn_config_program conhost enable_conhost install
17724 wine_fn_config_program control enable_control install
17725 wine_fn_config_program cscript enable_cscript clean,install
17726 wine_fn_config_program dpnsvr enable_dpnsvr install
17727 wine_fn_config_program dxdiag enable_dxdiag install,po
17728 wine_fn_config_program eject enable_eject install
17729 wine_fn_config_program expand enable_expand install
17730 wine_fn_config_program explorer enable_explorer install,po
17731 wine_fn_config_program extrac32 enable_extrac32 install
17732 wine_fn_config_program findstr enable_findstr install
17733 wine_fn_config_program hh enable_hh install
17734 wine_fn_config_program hostname enable_hostname install,po
17735 wine_fn_config_program icinfo enable_icinfo install
17736 wine_fn_config_program iexplore enable_iexplore install
17737 wine_fn_config_program ipconfig enable_ipconfig install,po
17738 wine_fn_config_program lodctr enable_lodctr install
17739 wine_fn_config_program mofcomp enable_mofcomp install
17740 wine_fn_config_program mshta enable_mshta install
17741 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17742 wine_fn_config_program net enable_net install,po
17743 wine_fn_config_program netsh enable_netsh install
17744 wine_fn_config_program netstat enable_netstat install,po
17745 wine_fn_config_program ngen enable_ngen install
17746 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17747 wine_fn_config_program oleview enable_oleview install,po
17748 wine_fn_config_program ping enable_ping install
17749 wine_fn_config_program plugplay enable_plugplay install
17750 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17751 wine_fn_config_program progman enable_progman install,po
17752 wine_fn_config_program reg enable_reg install,po
17753 wine_fn_config_test programs/reg/tests reg.exe_test
17754 wine_fn_config_program regasm enable_regasm install
17755 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17756 wine_fn_config_test programs/regedit/tests regedit.exe_test
17757 wine_fn_config_program regsvcs enable_regsvcs install
17758 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage,po
17759 wine_fn_config_program rpcss enable_rpcss clean,install
17760 wine_fn_config_program rundll.exe16 enable_win16 install
17761 wine_fn_config_program rundll32 enable_rundll32 install
17762 wine_fn_config_program sc enable_sc install
17763 wine_fn_config_program schtasks enable_schtasks install
17764 wine_fn_config_program sdbinst enable_sdbinst install
17765 wine_fn_config_program secedit enable_secedit install
17766 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17767 wine_fn_config_program services enable_services clean,install
17768 wine_fn_config_test programs/services/tests services.exe_test
17769 wine_fn_config_program spoolsv enable_spoolsv install
17770 wine_fn_config_program start enable_start install,po
17771 wine_fn_config_program svchost enable_svchost install
17772 wine_fn_config_program systeminfo enable_systeminfo install
17773 wine_fn_config_program taskkill enable_taskkill install,po
17774 wine_fn_config_program tasklist enable_tasklist install
17775 wine_fn_config_program taskmgr enable_taskmgr install,po
17776 wine_fn_config_program termsv enable_termsv install
17777 wine_fn_config_program uninstaller enable_uninstaller install,po
17778 wine_fn_config_program unlodctr enable_unlodctr install
17779 wine_fn_config_program view enable_view install,po
17780 wine_fn_config_program wevtutil enable_wevtutil install
17781 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17782 wine_fn_config_program winebrowser enable_winebrowser install
17783 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17784 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17785 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17786 wine_fn_config_program winedevice enable_winedevice install
17787 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17788 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17789 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17790 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17791 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17792 wine_fn_config_program winetest enable_winetest clean
17793 wine_fn_config_program winevdm enable_win16 install
17794 wine_fn_config_program winhelp.exe16 enable_win16 install
17795 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17796 wine_fn_config_program winoldap.mod16 enable_win16 install
17797 wine_fn_config_program winver enable_winver install
17798 wine_fn_config_program wmic enable_wmic install,po
17799 wine_fn_config_program wordpad enable_wordpad install,po
17800 wine_fn_config_program write enable_write install,po
17801 wine_fn_config_program wscript enable_wscript clean,install
17802 wine_fn_config_test programs/wscript/tests wscript.exe_test
17803 wine_fn_config_program wusa enable_wusa install
17804 wine_fn_config_program xcopy enable_xcopy install,po
17805 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17806 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17807 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17808 wine_fn_config_tool tools/sfnt2fon clean
17809 wine_fn_config_tool tools/widl clean,install-dev,manpage
17810 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17811 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17812 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17813 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17814 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17816 LINGUAS="\
17817 ar \
17818 bg \
17819 ca \
17820 cs \
17821 da \
17822 de \
17823 el \
17824 en \
17825 en_US \
17826 eo \
17827 es \
17828 fa \
17829 fi \
17830 fr \
17831 he \
17832 hi \
17833 hr \
17834 hu \
17835 it \
17836 ja \
17837 ko \
17838 lt \
17839 ml \
17840 nb_NO \
17841 nl \
17842 or \
17843 pa \
17844 pl \
17845 pt_BR \
17846 pt_PT \
17847 rm \
17848 ro \
17849 ru \
17850 sk \
17851 sl \
17852 sr_RS@cyrillic \
17853 sr_RS@latin \
17854 sv \
17855 te \
17856 th \
17857 tr \
17858 uk \
17859 wa \
17860 zh_CN \
17861 zh_TW"
17866 wine_fn_ignore_file ".gitignore"
17867 wine_fn_ignore_file "Makefile"
17868 wine_fn_ignore_file "TAGS"
17869 wine_fn_ignore_file "tags"
17870 wine_fn_ignore_file "autom4te.cache"
17871 wine_fn_ignore_file "config.cache"
17872 wine_fn_ignore_file "config.log"
17873 wine_fn_ignore_file "config.status"
17874 wine_fn_ignore_file "configure.lineno"
17875 wine_fn_ignore_file "include/config.h"
17876 wine_fn_ignore_file "include/stamp-h"
17877 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17879 if test "x$enable_tools" != xno
17880 then
17881 wine_fn_ignore_file "tools/makedep$ac_exeext"
17882 ac_config_commands="$ac_config_commands tools/makedep"
17886 ac_config_commands="$ac_config_commands Makefile"
17889 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17893 if test "x$enable_maintainer_mode" = xyes
17894 then
17895 wine_fn_append_rule "configure: configure.ac aclocal.m4
17896 autoconf --warnings=all
17897 include/config.h.in: include/stamp-h.in
17898 include/stamp-h.in: configure.ac aclocal.m4
17899 autoheader --warnings=all
17900 @echo timestamp > \$@"
17903 if test "x$with_gettextpo" = xyes
17904 then
17905 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17906 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17907 \$(LINGUAS:%=po/%.po): po/wine.pot
17908 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17909 po/wine.pot: \$(ALL_POT_FILES)
17910 msgcat -o \$@ \$(ALL_POT_FILES)"
17913 if test "$MSGFMT" != false
17914 then
17915 wine_fn_append_rule "__builddeps__: \$(LINGUAS:%=po/%.mo)
17916 clean::
17917 \$(RM) \$(LINGUAS:%=po/%.mo)"
17919 posrc="po"
17920 test "$srcdir" = . || posrc="$srcdir/po"
17921 for i in $LINGUAS
17923 wine_fn_ignore_file "po/$i.mo"
17924 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17925 \$(MSGFMT) -o \$@ $posrc/$i.po"
17926 done
17927 else
17928 LINGUAS=
17931 if test "x$enable_tools" != xno
17932 then
17933 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h config.status
17934 @./config.status tools/makedep
17935 Makefile: tools/makedep$ac_exeext
17936 distclean:: clean
17937 \$(RM) tools/makedep$ac_exeext"
17938 else
17939 wine_fn_append_rule "\$(MAKEDEP):
17940 @echo \"You need to run make in $TOOLSDIR first\" && false"
17943 if test -n "$with_wine64"
17944 then
17945 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17946 fonts server tools:
17947 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17948 $with_wine64/loader/wine:
17949 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17950 $with_wine64/loader/wine-preloader:
17951 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17952 clean::
17953 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17954 else
17955 as_fn_append LOADER_RULES "
17956 install install-lib:: wine.inf install-man-pages
17957 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17958 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17960 uninstall::
17961 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17965 if test "$srcdir" = .
17966 then
17967 ac_config_commands="$ac_config_commands .gitignore"
17971 $as_echo " done" >&6
17972 cat >confcache <<\_ACEOF
17973 # This file is a shell script that caches the results of configure
17974 # tests run on this system so they can be shared between configure
17975 # scripts and configure runs, see configure's option --config-cache.
17976 # It is not useful on other systems. If it contains results you don't
17977 # want to keep, you may remove or edit it.
17979 # config.status only pays attention to the cache file if you give it
17980 # the --recheck option to rerun configure.
17982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17984 # following values.
17986 _ACEOF
17988 # The following way of writing the cache mishandles newlines in values,
17989 # but we know of no workaround that is simple, portable, and efficient.
17990 # So, we kill variables containing newlines.
17991 # Ultrix sh set writes to stderr and can't be redirected directly,
17992 # and sets the high bit in the cache file unless we assign to the vars.
17994 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17995 eval ac_val=\$$ac_var
17996 case $ac_val in #(
17997 *${as_nl}*)
17998 case $ac_var in #(
17999 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18000 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18001 esac
18002 case $ac_var in #(
18003 _ | IFS | as_nl) ;; #(
18004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18005 *) { eval $ac_var=; unset $ac_var;} ;;
18006 esac ;;
18007 esac
18008 done
18010 (set) 2>&1 |
18011 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18012 *${as_nl}ac_space=\ *)
18013 # `set' does not quote correctly, so add quotes: double-quote
18014 # substitution turns \\\\ into \\, and sed turns \\ into \.
18015 sed -n \
18016 "s/'/'\\\\''/g;
18017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18018 ;; #(
18020 # `set' quotes correctly as required by POSIX, so do not add quotes.
18021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18023 esac |
18024 sort
18026 sed '
18027 /^ac_cv_env_/b end
18028 t clear
18029 :clear
18030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18031 t end
18032 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18033 :end' >>confcache
18034 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18035 if test -w "$cache_file"; then
18036 if test "x$cache_file" != "x/dev/null"; then
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18038 $as_echo "$as_me: updating cache $cache_file" >&6;}
18039 if test ! -f "$cache_file" || test -h "$cache_file"; then
18040 cat confcache >"$cache_file"
18041 else
18042 case $cache_file in #(
18043 */* | ?:*)
18044 mv -f confcache "$cache_file"$$ &&
18045 mv -f "$cache_file"$$ "$cache_file" ;; #(
18047 mv -f confcache "$cache_file" ;;
18048 esac
18051 else
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18053 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18056 rm -f confcache
18058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18059 # Let make expand exec_prefix.
18060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18062 DEFS=-DHAVE_CONFIG_H
18064 ac_libobjs=
18065 ac_ltlibobjs=
18067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18068 # 1. Remove the extension, and $U if already installed.
18069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18070 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18072 # will be set to the directory where LIBOBJS objects are built.
18073 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18074 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18075 done
18076 LIBOBJS=$ac_libobjs
18078 LTLIBOBJS=$ac_ltlibobjs
18082 : "${CONFIG_STATUS=./config.status}"
18083 ac_write_fail=0
18084 ac_clean_files_save=$ac_clean_files
18085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18087 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18088 as_write_fail=0
18089 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18090 #! $SHELL
18091 # Generated by $as_me.
18092 # Run this file to recreate the current configuration.
18093 # Compiler output produced by configure, useful for debugging
18094 # configure, is in config.log if it exists.
18096 debug=false
18097 ac_cs_recheck=false
18098 ac_cs_silent=false
18100 SHELL=\${CONFIG_SHELL-$SHELL}
18101 export SHELL
18102 _ASEOF
18103 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18104 ## -------------------- ##
18105 ## M4sh Initialization. ##
18106 ## -------------------- ##
18108 # Be more Bourne compatible
18109 DUALCASE=1; export DUALCASE # for MKS sh
18110 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18111 emulate sh
18112 NULLCMD=:
18113 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18114 # is contrary to our usage. Disable this feature.
18115 alias -g '${1+"$@"}'='"$@"'
18116 setopt NO_GLOB_SUBST
18117 else
18118 case `(set -o) 2>/dev/null` in #(
18119 *posix*) :
18120 set -o posix ;; #(
18121 *) :
18123 esac
18127 as_nl='
18129 export as_nl
18130 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18131 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18134 # Prefer a ksh shell builtin over an external printf program on Solaris,
18135 # but without wasting forks for bash or zsh.
18136 if test -z "$BASH_VERSION$ZSH_VERSION" \
18137 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18138 as_echo='print -r --'
18139 as_echo_n='print -rn --'
18140 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18141 as_echo='printf %s\n'
18142 as_echo_n='printf %s'
18143 else
18144 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18145 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18146 as_echo_n='/usr/ucb/echo -n'
18147 else
18148 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18149 as_echo_n_body='eval
18150 arg=$1;
18151 case $arg in #(
18152 *"$as_nl"*)
18153 expr "X$arg" : "X\\(.*\\)$as_nl";
18154 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18155 esac;
18156 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18158 export as_echo_n_body
18159 as_echo_n='sh -c $as_echo_n_body as_echo'
18161 export as_echo_body
18162 as_echo='sh -c $as_echo_body as_echo'
18165 # The user is always right.
18166 if test "${PATH_SEPARATOR+set}" != set; then
18167 PATH_SEPARATOR=:
18168 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18169 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18170 PATH_SEPARATOR=';'
18175 # IFS
18176 # We need space, tab and new line, in precisely that order. Quoting is
18177 # there to prevent editors from complaining about space-tab.
18178 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18179 # splitting by setting IFS to empty value.)
18180 IFS=" "" $as_nl"
18182 # Find who we are. Look in the path if we contain no directory separator.
18183 as_myself=
18184 case $0 in #((
18185 *[\\/]* ) as_myself=$0 ;;
18186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18187 for as_dir in $PATH
18189 IFS=$as_save_IFS
18190 test -z "$as_dir" && as_dir=.
18191 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18192 done
18193 IFS=$as_save_IFS
18196 esac
18197 # We did not find ourselves, most probably we were run as `sh COMMAND'
18198 # in which case we are not to be found in the path.
18199 if test "x$as_myself" = x; then
18200 as_myself=$0
18202 if test ! -f "$as_myself"; then
18203 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18204 exit 1
18207 # Unset variables that we do not need and which cause bugs (e.g. in
18208 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18209 # suppresses any "Segmentation fault" message there. '((' could
18210 # trigger a bug in pdksh 5.2.14.
18211 for as_var in BASH_ENV ENV MAIL MAILPATH
18212 do eval test x\${$as_var+set} = xset \
18213 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18214 done
18215 PS1='$ '
18216 PS2='> '
18217 PS4='+ '
18219 # NLS nuisances.
18220 LC_ALL=C
18221 export LC_ALL
18222 LANGUAGE=C
18223 export LANGUAGE
18225 # CDPATH.
18226 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18229 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18230 # ----------------------------------------
18231 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18232 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18233 # script with STATUS, using 1 if that was 0.
18234 as_fn_error ()
18236 as_status=$1; test $as_status -eq 0 && as_status=1
18237 if test "$4"; then
18238 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18239 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18241 $as_echo "$as_me: error: $2" >&2
18242 as_fn_exit $as_status
18243 } # as_fn_error
18246 # as_fn_set_status STATUS
18247 # -----------------------
18248 # Set $? to STATUS, without forking.
18249 as_fn_set_status ()
18251 return $1
18252 } # as_fn_set_status
18254 # as_fn_exit STATUS
18255 # -----------------
18256 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18257 as_fn_exit ()
18259 set +e
18260 as_fn_set_status $1
18261 exit $1
18262 } # as_fn_exit
18264 # as_fn_unset VAR
18265 # ---------------
18266 # Portably unset VAR.
18267 as_fn_unset ()
18269 { eval $1=; unset $1;}
18271 as_unset=as_fn_unset
18272 # as_fn_append VAR VALUE
18273 # ----------------------
18274 # Append the text in VALUE to the end of the definition contained in VAR. Take
18275 # advantage of any shell optimizations that allow amortized linear growth over
18276 # repeated appends, instead of the typical quadratic growth present in naive
18277 # implementations.
18278 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18279 eval 'as_fn_append ()
18281 eval $1+=\$2
18283 else
18284 as_fn_append ()
18286 eval $1=\$$1\$2
18288 fi # as_fn_append
18290 # as_fn_arith ARG...
18291 # ------------------
18292 # Perform arithmetic evaluation on the ARGs, and store the result in the
18293 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18294 # must be portable across $(()) and expr.
18295 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18296 eval 'as_fn_arith ()
18298 as_val=$(( $* ))
18300 else
18301 as_fn_arith ()
18303 as_val=`expr "$@" || test $? -eq 1`
18305 fi # as_fn_arith
18308 if expr a : '\(a\)' >/dev/null 2>&1 &&
18309 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18310 as_expr=expr
18311 else
18312 as_expr=false
18315 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18316 as_basename=basename
18317 else
18318 as_basename=false
18321 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18322 as_dirname=dirname
18323 else
18324 as_dirname=false
18327 as_me=`$as_basename -- "$0" ||
18328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18329 X"$0" : 'X\(//\)$' \| \
18330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18331 $as_echo X/"$0" |
18332 sed '/^.*\/\([^/][^/]*\)\/*$/{
18333 s//\1/
18336 /^X\/\(\/\/\)$/{
18337 s//\1/
18340 /^X\/\(\/\).*/{
18341 s//\1/
18344 s/.*/./; q'`
18346 # Avoid depending upon Character Ranges.
18347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18350 as_cr_digits='0123456789'
18351 as_cr_alnum=$as_cr_Letters$as_cr_digits
18353 ECHO_C= ECHO_N= ECHO_T=
18354 case `echo -n x` in #(((((
18355 -n*)
18356 case `echo 'xy\c'` in
18357 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18358 xy) ECHO_C='\c';;
18359 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18360 ECHO_T=' ';;
18361 esac;;
18363 ECHO_N='-n';;
18364 esac
18366 rm -f conf$$ conf$$.exe conf$$.file
18367 if test -d conf$$.dir; then
18368 rm -f conf$$.dir/conf$$.file
18369 else
18370 rm -f conf$$.dir
18371 mkdir conf$$.dir 2>/dev/null
18373 if (echo >conf$$.file) 2>/dev/null; then
18374 if ln -s conf$$.file conf$$ 2>/dev/null; then
18375 as_ln_s='ln -s'
18376 # ... but there are two gotchas:
18377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18379 # In both cases, we have to default to `cp -pR'.
18380 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18381 as_ln_s='cp -pR'
18382 elif ln conf$$.file conf$$ 2>/dev/null; then
18383 as_ln_s=ln
18384 else
18385 as_ln_s='cp -pR'
18387 else
18388 as_ln_s='cp -pR'
18390 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18391 rmdir conf$$.dir 2>/dev/null
18394 # as_fn_mkdir_p
18395 # -------------
18396 # Create "$as_dir" as a directory, including parents if necessary.
18397 as_fn_mkdir_p ()
18400 case $as_dir in #(
18401 -*) as_dir=./$as_dir;;
18402 esac
18403 test -d "$as_dir" || eval $as_mkdir_p || {
18404 as_dirs=
18405 while :; do
18406 case $as_dir in #(
18407 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18408 *) as_qdir=$as_dir;;
18409 esac
18410 as_dirs="'$as_qdir' $as_dirs"
18411 as_dir=`$as_dirname -- "$as_dir" ||
18412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18413 X"$as_dir" : 'X\(//\)[^/]' \| \
18414 X"$as_dir" : 'X\(//\)$' \| \
18415 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18416 $as_echo X"$as_dir" |
18417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18418 s//\1/
18421 /^X\(\/\/\)[^/].*/{
18422 s//\1/
18425 /^X\(\/\/\)$/{
18426 s//\1/
18429 /^X\(\/\).*/{
18430 s//\1/
18433 s/.*/./; q'`
18434 test -d "$as_dir" && break
18435 done
18436 test -z "$as_dirs" || eval "mkdir $as_dirs"
18437 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18440 } # as_fn_mkdir_p
18441 if mkdir -p . 2>/dev/null; then
18442 as_mkdir_p='mkdir -p "$as_dir"'
18443 else
18444 test -d ./-p && rmdir ./-p
18445 as_mkdir_p=false
18449 # as_fn_executable_p FILE
18450 # -----------------------
18451 # Test if FILE is an executable regular file.
18452 as_fn_executable_p ()
18454 test -f "$1" && test -x "$1"
18455 } # as_fn_executable_p
18456 as_test_x='test -x'
18457 as_executable_p=as_fn_executable_p
18459 # Sed expression to map a string onto a valid CPP name.
18460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18462 # Sed expression to map a string onto a valid variable name.
18463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18466 exec 6>&1
18467 ## ----------------------------------- ##
18468 ## Main body of $CONFIG_STATUS script. ##
18469 ## ----------------------------------- ##
18470 _ASEOF
18471 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18474 # Save the log message, to keep $0 and so on meaningful, and to
18475 # report actual input values of CONFIG_FILES etc. instead of their
18476 # values after options handling.
18477 ac_log="
18478 This file was extended by Wine $as_me 1.7.37, which was
18479 generated by GNU Autoconf 2.69. Invocation command line was
18481 CONFIG_FILES = $CONFIG_FILES
18482 CONFIG_HEADERS = $CONFIG_HEADERS
18483 CONFIG_LINKS = $CONFIG_LINKS
18484 CONFIG_COMMANDS = $CONFIG_COMMANDS
18485 $ $0 $@
18487 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18490 _ACEOF
18492 case $ac_config_files in *"
18493 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18494 esac
18496 case $ac_config_headers in *"
18497 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18498 esac
18501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18502 # Files that config.status was made for.
18503 config_files="$ac_config_files"
18504 config_headers="$ac_config_headers"
18505 config_links="$ac_config_links"
18506 config_commands="$ac_config_commands"
18508 _ACEOF
18510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18511 ac_cs_usage="\
18512 \`$as_me' instantiates files and other configuration actions
18513 from templates according to the current configuration. Unless the files
18514 and actions are specified as TAGs, all are instantiated by default.
18516 Usage: $0 [OPTION]... [TAG]...
18518 -h, --help print this help, then exit
18519 -V, --version print version number and configuration settings, then exit
18520 --config print configuration, then exit
18521 -q, --quiet, --silent
18522 do not print progress messages
18523 -d, --debug don't remove temporary files
18524 --recheck update $as_me by reconfiguring in the same conditions
18525 --file=FILE[:TEMPLATE]
18526 instantiate the configuration file FILE
18527 --header=FILE[:TEMPLATE]
18528 instantiate the configuration header FILE
18530 Configuration files:
18531 $config_files
18533 Configuration headers:
18534 $config_headers
18536 Configuration links:
18537 $config_links
18539 Configuration commands:
18540 $config_commands
18542 Report bugs to <wine-devel@winehq.org>.
18543 Wine home page: <http://www.winehq.org>."
18545 _ACEOF
18546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18547 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18548 ac_cs_version="\\
18549 Wine config.status 1.7.37
18550 configured by $0, generated by GNU Autoconf 2.69,
18551 with options \\"\$ac_cs_config\\"
18553 Copyright (C) 2012 Free Software Foundation, Inc.
18554 This config.status script is free software; the Free Software Foundation
18555 gives unlimited permission to copy, distribute and modify it."
18557 ac_pwd='$ac_pwd'
18558 srcdir='$srcdir'
18559 test -n "\$AWK" || AWK=awk
18560 _ACEOF
18562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18563 # The default lists apply if the user does not specify any file.
18564 ac_need_defaults=:
18565 while test $# != 0
18567 case $1 in
18568 --*=?*)
18569 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18570 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18571 ac_shift=:
18573 --*=)
18574 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18575 ac_optarg=
18576 ac_shift=:
18579 ac_option=$1
18580 ac_optarg=$2
18581 ac_shift=shift
18583 esac
18585 case $ac_option in
18586 # Handling of the options.
18587 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18588 ac_cs_recheck=: ;;
18589 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18590 $as_echo "$ac_cs_version"; exit ;;
18591 --config | --confi | --conf | --con | --co | --c )
18592 $as_echo "$ac_cs_config"; exit ;;
18593 --debug | --debu | --deb | --de | --d | -d )
18594 debug=: ;;
18595 --file | --fil | --fi | --f )
18596 $ac_shift
18597 case $ac_optarg in
18598 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18599 '') as_fn_error $? "missing file argument" ;;
18600 esac
18601 as_fn_append CONFIG_FILES " '$ac_optarg'"
18602 ac_need_defaults=false;;
18603 --header | --heade | --head | --hea )
18604 $ac_shift
18605 case $ac_optarg in
18606 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18607 esac
18608 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18609 ac_need_defaults=false;;
18610 --he | --h)
18611 # Conflict between --help and --header
18612 as_fn_error $? "ambiguous option: \`$1'
18613 Try \`$0 --help' for more information.";;
18614 --help | --hel | -h )
18615 $as_echo "$ac_cs_usage"; exit ;;
18616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18617 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18618 ac_cs_silent=: ;;
18620 # This is an error.
18621 -*) as_fn_error $? "unrecognized option: \`$1'
18622 Try \`$0 --help' for more information." ;;
18624 *) as_fn_append ac_config_targets " $1"
18625 ac_need_defaults=false ;;
18627 esac
18628 shift
18629 done
18631 ac_configure_extra_args=
18633 if $ac_cs_silent; then
18634 exec 6>/dev/null
18635 ac_configure_extra_args="$ac_configure_extra_args --silent"
18638 _ACEOF
18639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18640 if \$ac_cs_recheck; then
18641 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18642 shift
18643 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18644 CONFIG_SHELL='$SHELL'
18645 export CONFIG_SHELL
18646 exec "\$@"
18649 _ACEOF
18650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18651 exec 5>>config.log
18653 echo
18654 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18655 ## Running $as_me. ##
18656 _ASBOX
18657 $as_echo "$ac_log"
18658 } >&5
18660 _ACEOF
18661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18663 # INIT-COMMANDS
18665 wine_fn_output_makedep ()
18667 as_dir=tools; as_fn_mkdir_p
18668 $CC -Iinclude -I$srcdir/include -D__WINESRC__ $EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext $srcdir/tools/makedep.c $LDFLAGS
18670 wine_fn_output_makefile ()
18672 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && "$wine_makedep" . && return
18673 `cat $wine_rules_file`
18674 _WINE_EOF
18675 as_fn_error $? "could not create Makefile" "$LINENO" 5
18677 wine_fn_output_gitignore ()
18679 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18680 $GITIGNORE
18681 _WINE_EOF
18682 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18685 _ACEOF
18687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18689 # Handling of arguments.
18690 for ac_config_target in $ac_config_targets
18692 case $ac_config_target in
18693 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18694 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18695 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18696 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18697 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18698 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18699 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18700 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18701 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18702 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18703 "tools/makedep") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/makedep" ;;
18704 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18705 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18706 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18708 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18709 esac
18710 done
18713 # If the user did not use the arguments to specify the items to instantiate,
18714 # then the envvar interface is used. Set only those that are not.
18715 # We use the long form for the default assignment because of an extremely
18716 # bizarre bug on SunOS 4.1.3.
18717 if $ac_need_defaults; then
18718 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18719 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18720 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18721 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18724 # Have a temporary directory for convenience. Make it in the build tree
18725 # simply because there is no reason against having it here, and in addition,
18726 # creating and moving files from /tmp can sometimes cause problems.
18727 # Hook for its removal unless debugging.
18728 # Note that there is a small window in which the directory will not be cleaned:
18729 # after its creation but before its name has been assigned to `$tmp'.
18730 $debug ||
18732 tmp= ac_tmp=
18733 trap 'exit_status=$?
18734 : "${ac_tmp:=$tmp}"
18735 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18737 trap 'as_fn_exit 1' 1 2 13 15
18739 # Create a (secure) tmp directory for tmp files.
18742 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18743 test -d "$tmp"
18744 } ||
18746 tmp=./conf$$-$RANDOM
18747 (umask 077 && mkdir "$tmp")
18748 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18749 ac_tmp=$tmp
18751 # Set up the scripts for CONFIG_FILES section.
18752 # No need to generate them if there are no CONFIG_FILES.
18753 # This happens for instance with `./config.status config.h'.
18754 if test -n "$CONFIG_FILES"; then
18757 ac_cr=`echo X | tr X '\015'`
18758 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18759 # But we know of no other shell where ac_cr would be empty at this
18760 # point, so we can use a bashism as a fallback.
18761 if test "x$ac_cr" = x; then
18762 eval ac_cr=\$\'\\r\'
18764 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18765 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18766 ac_cs_awk_cr='\\r'
18767 else
18768 ac_cs_awk_cr=$ac_cr
18771 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18772 _ACEOF
18776 echo "cat >conf$$subs.awk <<_ACEOF" &&
18777 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18778 echo "_ACEOF"
18779 } >conf$$subs.sh ||
18780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18781 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18782 ac_delim='%!_!# '
18783 for ac_last_try in false false false false false :; do
18784 . ./conf$$subs.sh ||
18785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18787 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18788 if test $ac_delim_n = $ac_delim_num; then
18789 break
18790 elif $ac_last_try; then
18791 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18792 else
18793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18795 done
18796 rm -f conf$$subs.sh
18798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18799 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18800 _ACEOF
18801 sed -n '
18803 s/^/S["/; s/!.*/"]=/
18806 s/^[^!]*!//
18807 :repl
18808 t repl
18809 s/'"$ac_delim"'$//
18810 t delim
18813 s/\(.\{148\}\)..*/\1/
18814 t more1
18815 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18818 b repl
18819 :more1
18820 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18823 s/.\{148\}//
18824 t nl
18825 :delim
18827 s/\(.\{148\}\)..*/\1/
18828 t more2
18829 s/["\\]/\\&/g; s/^/"/; s/$/"/
18832 :more2
18833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18836 s/.\{148\}//
18837 t delim
18838 ' <conf$$subs.awk | sed '
18839 /^[^""]/{
18841 s/\n//
18843 ' >>$CONFIG_STATUS || ac_write_fail=1
18844 rm -f conf$$subs.awk
18845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18846 _ACAWK
18847 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18848 for (key in S) S_is_set[key] = 1
18849 FS = "\a"
18853 line = $ 0
18854 nfields = split(line, field, "@")
18855 substed = 0
18856 len = length(field[1])
18857 for (i = 2; i < nfields; i++) {
18858 key = field[i]
18859 keylen = length(key)
18860 if (S_is_set[key]) {
18861 value = S[key]
18862 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18863 len += length(value) + length(field[++i])
18864 substed = 1
18865 } else
18866 len += 1 + keylen
18869 print line
18872 _ACAWK
18873 _ACEOF
18874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18875 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18876 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18877 else
18879 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18880 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18881 _ACEOF
18883 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18884 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18885 # trailing colons and then remove the whole line if VPATH becomes empty
18886 # (actually we leave an empty line to preserve line numbers).
18887 if test "x$srcdir" = x.; then
18888 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18890 s///
18891 s/^/:/
18892 s/[ ]*$/:/
18893 s/:\$(srcdir):/:/g
18894 s/:\${srcdir}:/:/g
18895 s/:@srcdir@:/:/g
18896 s/^:*//
18897 s/:*$//
18899 s/\(=[ ]*\).*/\1/
18901 s/\n//
18902 s/^[^=]*=[ ]*$//
18906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18907 fi # test -n "$CONFIG_FILES"
18909 # Set up the scripts for CONFIG_HEADERS section.
18910 # No need to generate them if there are no CONFIG_HEADERS.
18911 # This happens for instance with `./config.status Makefile'.
18912 if test -n "$CONFIG_HEADERS"; then
18913 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18914 BEGIN {
18915 _ACEOF
18917 # Transform confdefs.h into an awk script `defines.awk', embedded as
18918 # here-document in config.status, that substitutes the proper values into
18919 # config.h.in to produce config.h.
18921 # Create a delimiter string that does not exist in confdefs.h, to ease
18922 # handling of long lines.
18923 ac_delim='%!_!# '
18924 for ac_last_try in false false :; do
18925 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18926 if test -z "$ac_tt"; then
18927 break
18928 elif $ac_last_try; then
18929 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18930 else
18931 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18933 done
18935 # For the awk script, D is an array of macro values keyed by name,
18936 # likewise P contains macro parameters if any. Preserve backslash
18937 # newline sequences.
18939 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18940 sed -n '
18941 s/.\{148\}/&'"$ac_delim"'/g
18942 t rset
18943 :rset
18944 s/^[ ]*#[ ]*define[ ][ ]*/ /
18945 t def
18947 :def
18948 s/\\$//
18949 t bsnl
18950 s/["\\]/\\&/g
18951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18952 D["\1"]=" \3"/p
18953 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18955 :bsnl
18956 s/["\\]/\\&/g
18957 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18958 D["\1"]=" \3\\\\\\n"\\/p
18959 t cont
18960 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18961 t cont
18963 :cont
18965 s/.\{148\}/&'"$ac_delim"'/g
18966 t clear
18967 :clear
18968 s/\\$//
18969 t bsnlc
18970 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18972 :bsnlc
18973 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18974 b cont
18975 ' <confdefs.h | sed '
18976 s/'"$ac_delim"'/"\\\
18977 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18980 for (key in D) D_is_set[key] = 1
18981 FS = "\a"
18983 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18984 line = \$ 0
18985 split(line, arg, " ")
18986 if (arg[1] == "#") {
18987 defundef = arg[2]
18988 mac1 = arg[3]
18989 } else {
18990 defundef = substr(arg[1], 2)
18991 mac1 = arg[2]
18993 split(mac1, mac2, "(") #)
18994 macro = mac2[1]
18995 prefix = substr(line, 1, index(line, defundef) - 1)
18996 if (D_is_set[macro]) {
18997 # Preserve the white space surrounding the "#".
18998 print prefix "define", macro P[macro] D[macro]
18999 next
19000 } else {
19001 # Replace #undef with comments. This is necessary, for example,
19002 # in the case of _POSIX_SOURCE, which is predefined and required
19003 # on some systems where configure will not decide to define it.
19004 if (defundef == "undef") {
19005 print "/*", prefix defundef, macro, "*/"
19006 next
19010 { print }
19011 _ACAWK
19012 _ACEOF
19013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19014 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19015 fi # test -n "$CONFIG_HEADERS"
19018 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
19019 shift
19020 for ac_tag
19022 case $ac_tag in
19023 :[FHLC]) ac_mode=$ac_tag; continue;;
19024 esac
19025 case $ac_mode$ac_tag in
19026 :[FHL]*:*);;
19027 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19028 :[FH]-) ac_tag=-:-;;
19029 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19030 esac
19031 ac_save_IFS=$IFS
19032 IFS=:
19033 set x $ac_tag
19034 IFS=$ac_save_IFS
19035 shift
19036 ac_file=$1
19037 shift
19039 case $ac_mode in
19040 :L) ac_source=$1;;
19041 :[FH])
19042 ac_file_inputs=
19043 for ac_f
19045 case $ac_f in
19046 -) ac_f="$ac_tmp/stdin";;
19047 *) # Look for the file first in the build tree, then in the source tree
19048 # (if the path is not absolute). The absolute path cannot be DOS-style,
19049 # because $ac_f cannot contain `:'.
19050 test -f "$ac_f" ||
19051 case $ac_f in
19052 [\\/$]*) false;;
19053 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19054 esac ||
19055 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19056 esac
19057 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19058 as_fn_append ac_file_inputs " '$ac_f'"
19059 done
19061 # Let's still pretend it is `configure' which instantiates (i.e., don't
19062 # use $as_me), people would be surprised to read:
19063 # /* config.h. Generated by config.status. */
19064 configure_input='Generated from '`
19065 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19066 `' by configure.'
19067 if test x"$ac_file" != x-; then
19068 configure_input="$ac_file. $configure_input"
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19070 $as_echo "$as_me: creating $ac_file" >&6;}
19072 # Neutralize special characters interpreted by sed in replacement strings.
19073 case $configure_input in #(
19074 *\&* | *\|* | *\\* )
19075 ac_sed_conf_input=`$as_echo "$configure_input" |
19076 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19077 *) ac_sed_conf_input=$configure_input;;
19078 esac
19080 case $ac_tag in
19081 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19083 esac
19085 esac
19087 ac_dir=`$as_dirname -- "$ac_file" ||
19088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19089 X"$ac_file" : 'X\(//\)[^/]' \| \
19090 X"$ac_file" : 'X\(//\)$' \| \
19091 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19092 $as_echo X"$ac_file" |
19093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19094 s//\1/
19097 /^X\(\/\/\)[^/].*/{
19098 s//\1/
19101 /^X\(\/\/\)$/{
19102 s//\1/
19105 /^X\(\/\).*/{
19106 s//\1/
19109 s/.*/./; q'`
19110 as_dir="$ac_dir"; as_fn_mkdir_p
19111 ac_builddir=.
19113 case "$ac_dir" in
19114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19116 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19117 # A ".." for each directory in $ac_dir_suffix.
19118 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19119 case $ac_top_builddir_sub in
19120 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19121 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19122 esac ;;
19123 esac
19124 ac_abs_top_builddir=$ac_pwd
19125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19126 # for backward compatibility:
19127 ac_top_builddir=$ac_top_build_prefix
19129 case $srcdir in
19130 .) # We are building in place.
19131 ac_srcdir=.
19132 ac_top_srcdir=$ac_top_builddir_sub
19133 ac_abs_top_srcdir=$ac_pwd ;;
19134 [\\/]* | ?:[\\/]* ) # Absolute name.
19135 ac_srcdir=$srcdir$ac_dir_suffix;
19136 ac_top_srcdir=$srcdir
19137 ac_abs_top_srcdir=$srcdir ;;
19138 *) # Relative name.
19139 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19140 ac_top_srcdir=$ac_top_build_prefix$srcdir
19141 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19142 esac
19143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19146 case $ac_mode in
19149 # CONFIG_FILE
19152 _ACEOF
19154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19155 # If the template does not know about datarootdir, expand it.
19156 # FIXME: This hack should be removed a few years after 2.60.
19157 ac_datarootdir_hack=; ac_datarootdir_seen=
19158 ac_sed_dataroot='
19159 /datarootdir/ {
19163 /@datadir@/p
19164 /@docdir@/p
19165 /@infodir@/p
19166 /@localedir@/p
19167 /@mandir@/p'
19168 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19169 *datarootdir*) ac_datarootdir_seen=yes;;
19170 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19172 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19173 _ACEOF
19174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19175 ac_datarootdir_hack='
19176 s&@datadir@&$datadir&g
19177 s&@docdir@&$docdir&g
19178 s&@infodir@&$infodir&g
19179 s&@localedir@&$localedir&g
19180 s&@mandir@&$mandir&g
19181 s&\\\${datarootdir}&$datarootdir&g' ;;
19182 esac
19183 _ACEOF
19185 # Neutralize VPATH when `$srcdir' = `.'.
19186 # Shell code in configure.ac might set extrasub.
19187 # FIXME: do we really want to maintain this feature?
19188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19189 ac_sed_extra="$ac_vpsub
19190 $extrasub
19191 _ACEOF
19192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19194 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19195 s|@configure_input@|$ac_sed_conf_input|;t t
19196 s&@top_builddir@&$ac_top_builddir_sub&;t t
19197 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19198 s&@srcdir@&$ac_srcdir&;t t
19199 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19200 s&@top_srcdir@&$ac_top_srcdir&;t t
19201 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19202 s&@builddir@&$ac_builddir&;t t
19203 s&@abs_builddir@&$ac_abs_builddir&;t t
19204 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19205 $ac_datarootdir_hack
19207 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19213 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19215 which seems to be undefined. Please make sure it is defined" >&5
19216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19217 which seems to be undefined. Please make sure it is defined" >&2;}
19219 rm -f "$ac_tmp/stdin"
19220 case $ac_file in
19221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19223 esac \
19224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19228 # CONFIG_HEADER
19230 if test x"$ac_file" != x-; then
19232 $as_echo "/* $configure_input */" \
19233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19234 } >"$ac_tmp/config.h" \
19235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19236 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19238 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19239 else
19240 rm -f "$ac_file"
19241 mv "$ac_tmp/config.h" "$ac_file" \
19242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19244 else
19245 $as_echo "/* $configure_input */" \
19246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19247 || as_fn_error $? "could not create -" "$LINENO" 5
19252 # CONFIG_LINK
19255 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19257 else
19258 # Prefer the file from the source tree if names are identical.
19259 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19260 ac_source=$srcdir/$ac_source
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19264 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19266 if test ! -r "$ac_source"; then
19267 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19269 rm -f "$ac_file"
19271 # Try a relative symlink, then a hard link, then a copy.
19272 case $ac_source in
19273 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19274 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19275 esac
19276 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19277 ln "$ac_source" "$ac_file" 2>/dev/null ||
19278 cp -p "$ac_source" "$ac_file" ||
19279 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19282 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19283 $as_echo "$as_me: executing $ac_file commands" >&6;}
19285 esac
19288 case $ac_file$ac_mode in
19289 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
19290 "tools/makedep":C) wine_fn_output_makedep || as_fn_exit $? ;;
19291 "Makefile":C) wine_fn_output_makefile Makefile ;;
19292 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
19294 esac
19295 done # for ac_tag
19298 as_fn_exit 0
19299 _ACEOF
19300 ac_clean_files=$ac_clean_files_save
19302 test $ac_write_fail = 0 ||
19303 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19306 # configure is writing to config.log, and then calls config.status.
19307 # config.status does its own redirection, appending to config.log.
19308 # Unfortunately, on DOS this fails, as config.log is still kept open
19309 # by configure, so config.status won't be able to write to it; its
19310 # output is simply discarded. So we exec the FD to /dev/null,
19311 # effectively closing config.log, so it can be properly (re)opened and
19312 # appended to by config.status. When coming back to configure, we
19313 # need to make the FD available again.
19314 if test "$no_create" != yes; then
19315 ac_cs_success=:
19316 ac_config_status_args=
19317 test "$silent" = yes &&
19318 ac_config_status_args="$ac_config_status_args --quiet"
19319 exec 5>/dev/null
19320 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19321 exec 5>>config.log
19322 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19323 # would make configure fail if this is the last instruction.
19324 $ac_cs_success || as_fn_exit 1
19326 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19328 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19332 if test "$no_create" = "yes"
19333 then
19334 exit 0
19337 ac_save_IFS="$IFS"
19338 if test "x$wine_notices != "x; then
19339 echo >&6
19340 IFS="|"
19341 for msg in $wine_notices; do
19342 IFS="$ac_save_IFS"
19343 if ${msg:+false} :; then :
19345 else
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
19347 $as_echo "$as_me: $msg" >&6;}
19349 done
19351 IFS="|"
19352 for msg in $wine_warnings; do
19353 IFS="$ac_save_IFS"
19354 if ${msg:+false} :; then :
19356 else
19357 echo >&2
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
19359 $as_echo "$as_me: WARNING: $msg" >&2;}
19361 done
19362 IFS="$ac_save_IFS"
19364 $as_echo "
19365 $as_me: Finished. Do '${ac_make}' to compile Wine.
19366 " >&6