kernel32: Get rid of the hardcoded NUL device in QueryDosDeviceW.
[wine.git] / configure
blobde5f9421083706cd39b75fea97e62dd27f7947c4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.43.
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.43'
584 PACKAGE_STRING='Wine 1.7.43'
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_0
862 enable_api_ms_win_core_debug_l1_1_1
863 enable_api_ms_win_core_errorhandling_l1_1_0
864 enable_api_ms_win_core_errorhandling_l1_1_1
865 enable_api_ms_win_core_errorhandling_l1_1_2
866 enable_api_ms_win_core_fibers_l1_1_0
867 enable_api_ms_win_core_fibers_l1_1_1
868 enable_api_ms_win_core_file_l1_1_0
869 enable_api_ms_win_core_file_l1_2_0
870 enable_api_ms_win_core_file_l2_1_0
871 enable_api_ms_win_core_file_l2_1_1
872 enable_api_ms_win_core_handle_l1_1_0
873 enable_api_ms_win_core_heap_l1_1_0
874 enable_api_ms_win_core_heap_l1_2_0
875 enable_api_ms_win_core_heap_obsolete_l1_1_0
876 enable_api_ms_win_core_interlocked_l1_1_0
877 enable_api_ms_win_core_interlocked_l1_2_0
878 enable_api_ms_win_core_io_l1_1_1
879 enable_api_ms_win_core_kernel32_legacy_l1_1_0
880 enable_api_ms_win_core_libraryloader_l1_1_0
881 enable_api_ms_win_core_libraryloader_l1_1_1
882 enable_api_ms_win_core_localization_l1_2_0
883 enable_api_ms_win_core_localization_l1_2_1
884 enable_api_ms_win_core_localization_obsolete_l1_1_0
885 enable_api_ms_win_core_localregistry_l1_1_0
886 enable_api_ms_win_core_memory_l1_1_0
887 enable_api_ms_win_core_memory_l1_1_1
888 enable_api_ms_win_core_namedpipe_l1_1_0
889 enable_api_ms_win_core_namedpipe_l1_2_0
890 enable_api_ms_win_core_processenvironment_l1_1_0
891 enable_api_ms_win_core_processenvironment_l1_2_0
892 enable_api_ms_win_core_processthreads_l1_1_0
893 enable_api_ms_win_core_processthreads_l1_1_1
894 enable_api_ms_win_core_processthreads_l1_1_2
895 enable_api_ms_win_core_profile_l1_1_0
896 enable_api_ms_win_core_psapi_l1_1_0
897 enable_api_ms_win_core_registry_l1_1_0
898 enable_api_ms_win_core_rtlsupport_l1_1_0
899 enable_api_ms_win_core_rtlsupport_l1_2_0
900 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
901 enable_api_ms_win_core_string_l1_1_0
902 enable_api_ms_win_core_synch_l1_1_0
903 enable_api_ms_win_core_synch_l1_2_0
904 enable_api_ms_win_core_sysinfo_l1_1_0
905 enable_api_ms_win_core_sysinfo_l1_2_0
906 enable_api_ms_win_core_sysinfo_l1_2_1
907 enable_api_ms_win_core_threadpool_legacy_l1_1_0
908 enable_api_ms_win_core_timezone_l1_1_0
909 enable_api_ms_win_core_url_l1_1_0
910 enable_api_ms_win_core_util_l1_1_0
911 enable_api_ms_win_core_winrt_error_l1_1_0
912 enable_api_ms_win_core_winrt_error_l1_1_1
913 enable_api_ms_win_core_winrt_l1_1_0
914 enable_api_ms_win_core_winrt_string_l1_1_0
915 enable_api_ms_win_core_xstate_l2_1_0
916 enable_api_ms_win_downlevel_advapi32_l1_1_0
917 enable_api_ms_win_downlevel_advapi32_l2_1_0
918 enable_api_ms_win_downlevel_normaliz_l1_1_0
919 enable_api_ms_win_downlevel_ole32_l1_1_0
920 enable_api_ms_win_downlevel_shell32_l1_1_0
921 enable_api_ms_win_downlevel_shlwapi_l1_1_0
922 enable_api_ms_win_downlevel_shlwapi_l2_1_0
923 enable_api_ms_win_downlevel_user32_l1_1_0
924 enable_api_ms_win_downlevel_version_l1_1_0
925 enable_api_ms_win_eventing_provider_l1_1_0
926 enable_api_ms_win_ntuser_dc_access_l1_1_0
927 enable_api_ms_win_security_base_l1_1_0
928 enable_api_ms_win_security_base_l1_2_0
929 enable_api_ms_win_security_sddl_l1_1_0
930 enable_api_ms_win_service_core_l1_1_1
931 enable_api_ms_win_service_management_l1_1_0
932 enable_api_ms_win_service_winsvc_l1_2_0
933 enable_apphelp
934 enable_appwiz_cpl
935 enable_atl
936 enable_atl100
937 enable_atl110
938 enable_atl80
939 enable_atl90
940 enable_authz
941 enable_avicap32
942 enable_avifil32
943 enable_avrt
944 enable_bcrypt
945 enable_browseui
946 enable_cabinet
947 enable_capi2032
948 enable_cards
949 enable_cfgmgr32
950 enable_clusapi
951 enable_combase
952 enable_comcat
953 enable_comctl32
954 enable_comdlg32
955 enable_compstui
956 enable_comsvcs
957 enable_connect
958 enable_credui
959 enable_crtdll
960 enable_crypt32
961 enable_cryptdlg
962 enable_cryptdll
963 enable_cryptext
964 enable_cryptnet
965 enable_cryptui
966 enable_ctapi32
967 enable_ctl3d32
968 enable_d2d1
969 enable_d3d10
970 enable_d3d10_1
971 enable_d3d10core
972 enable_d3d11
973 enable_d3d8
974 enable_d3d9
975 enable_d3dcompiler_33
976 enable_d3dcompiler_34
977 enable_d3dcompiler_35
978 enable_d3dcompiler_36
979 enable_d3dcompiler_37
980 enable_d3dcompiler_38
981 enable_d3dcompiler_39
982 enable_d3dcompiler_40
983 enable_d3dcompiler_41
984 enable_d3dcompiler_42
985 enable_d3dcompiler_43
986 enable_d3dim
987 enable_d3drm
988 enable_d3dx10_33
989 enable_d3dx10_34
990 enable_d3dx10_35
991 enable_d3dx10_36
992 enable_d3dx10_37
993 enable_d3dx10_38
994 enable_d3dx10_39
995 enable_d3dx10_40
996 enable_d3dx10_41
997 enable_d3dx10_42
998 enable_d3dx10_43
999 enable_d3dx11_42
1000 enable_d3dx11_43
1001 enable_d3dx9_24
1002 enable_d3dx9_25
1003 enable_d3dx9_26
1004 enable_d3dx9_27
1005 enable_d3dx9_28
1006 enable_d3dx9_29
1007 enable_d3dx9_30
1008 enable_d3dx9_31
1009 enable_d3dx9_32
1010 enable_d3dx9_33
1011 enable_d3dx9_34
1012 enable_d3dx9_35
1013 enable_d3dx9_36
1014 enable_d3dx9_37
1015 enable_d3dx9_38
1016 enable_d3dx9_39
1017 enable_d3dx9_40
1018 enable_d3dx9_41
1019 enable_d3dx9_42
1020 enable_d3dx9_43
1021 enable_d3dxof
1022 enable_dbgeng
1023 enable_dbghelp
1024 enable_dciman32
1025 enable_ddraw
1026 enable_ddrawex
1027 enable_devenum
1028 enable_dhcpcsvc
1029 enable_difxapi
1030 enable_dinput
1031 enable_dinput8
1032 enable_dispex
1033 enable_dmband
1034 enable_dmcompos
1035 enable_dmime
1036 enable_dmloader
1037 enable_dmscript
1038 enable_dmstyle
1039 enable_dmsynth
1040 enable_dmusic
1041 enable_dmusic32
1042 enable_dnsapi
1043 enable_dplay
1044 enable_dplayx
1045 enable_dpnaddr
1046 enable_dpnet
1047 enable_dpnhpast
1048 enable_dpnlobby
1049 enable_dpvoice
1050 enable_dpwsockx
1051 enable_drmclien
1052 enable_dsound
1053 enable_dssenh
1054 enable_dswave
1055 enable_dwmapi
1056 enable_dwrite
1057 enable_dxdiagn
1058 enable_dxgi
1059 enable_dxva2
1060 enable_evr
1061 enable_explorerframe
1062 enable_ext_ms_win_gdi_devcaps_l1_1_0
1063 enable_faultrep
1064 enable_fltlib
1065 enable_fntcache
1066 enable_fontsub
1067 enable_fusion
1068 enable_fwpuclnt
1069 enable_gameux
1070 enable_gdi32
1071 enable_gdiplus
1072 enable_glu32
1073 enable_gphoto2_ds
1074 enable_gpkcsp
1075 enable_hal
1076 enable_hhctrl_ocx
1077 enable_hid
1078 enable_hlink
1079 enable_hnetcfg
1080 enable_httpapi
1081 enable_iccvid
1082 enable_icmp
1083 enable_ieframe
1084 enable_imaadp32_acm
1085 enable_imagehlp
1086 enable_imm32
1087 enable_inetcomm
1088 enable_inetcpl_cpl
1089 enable_inetmib1
1090 enable_infosoft
1091 enable_initpki
1092 enable_inkobj
1093 enable_inseng
1094 enable_iphlpapi
1095 enable_itircl
1096 enable_itss
1097 enable_joy_cpl
1098 enable_jscript
1099 enable_jsproxy
1100 enable_kernel32
1101 enable_ksuser
1102 enable_ktmw32
1103 enable_loadperf
1104 enable_localspl
1105 enable_localui
1106 enable_lz32
1107 enable_mapi32
1108 enable_mapistub
1109 enable_mciavi32
1110 enable_mcicda
1111 enable_mciqtz32
1112 enable_mciseq
1113 enable_mciwave
1114 enable_mf
1115 enable_mfplat
1116 enable_mfreadwrite
1117 enable_mgmtapi
1118 enable_midimap
1119 enable_mlang
1120 enable_mmcndmgr
1121 enable_mmdevapi
1122 enable_mountmgr_sys
1123 enable_mpr
1124 enable_mprapi
1125 enable_msacm32_drv
1126 enable_msacm32
1127 enable_msadp32_acm
1128 enable_msasn1
1129 enable_mscat32
1130 enable_mscms
1131 enable_mscoree
1132 enable_msctf
1133 enable_msctfp
1134 enable_msdaps
1135 enable_msdmo
1136 enable_msftedit
1137 enable_msg711_acm
1138 enable_msgsm32_acm
1139 enable_mshtml_tlb
1140 enable_mshtml
1141 enable_msi
1142 enable_msident
1143 enable_msimg32
1144 enable_msimsg
1145 enable_msimtf
1146 enable_msisip
1147 enable_msisys_ocx
1148 enable_msls31
1149 enable_msnet32
1150 enable_mspatcha
1151 enable_msrle32
1152 enable_mssign32
1153 enable_mssip32
1154 enable_mstask
1155 enable_msvcirt
1156 enable_msvcm80
1157 enable_msvcm90
1158 enable_msvcp100
1159 enable_msvcp110
1160 enable_msvcp120
1161 enable_msvcp120_app
1162 enable_msvcp60
1163 enable_msvcp70
1164 enable_msvcp71
1165 enable_msvcp80
1166 enable_msvcp90
1167 enable_msvcr100
1168 enable_msvcr110
1169 enable_msvcr120
1170 enable_msvcr120_app
1171 enable_msvcr70
1172 enable_msvcr71
1173 enable_msvcr80
1174 enable_msvcr90
1175 enable_msvcrt
1176 enable_msvcrt20
1177 enable_msvcrt40
1178 enable_msvcrtd
1179 enable_msvfw32
1180 enable_msvidc32
1181 enable_mswsock
1182 enable_msxml
1183 enable_msxml2
1184 enable_msxml3
1185 enable_msxml4
1186 enable_msxml6
1187 enable_nddeapi
1188 enable_ndis_sys
1189 enable_netapi32
1190 enable_netcfgx
1191 enable_netprofm
1192 enable_newdev
1193 enable_normaliz
1194 enable_npmshtml
1195 enable_npptools
1196 enable_ntdll
1197 enable_ntdsapi
1198 enable_ntoskrnl_exe
1199 enable_ntprint
1200 enable_objsel
1201 enable_odbc32
1202 enable_odbccp32
1203 enable_odbccu32
1204 enable_ole32
1205 enable_oleacc
1206 enable_oleaut32
1207 enable_olecli32
1208 enable_oledb32
1209 enable_oledlg
1210 enable_olepro32
1211 enable_olesvr32
1212 enable_olethk32
1213 enable_openal32
1214 enable_opencl
1215 enable_opengl32
1216 enable_packager
1217 enable_pdh
1218 enable_photometadatahandler
1219 enable_pidgen
1220 enable_powrprof
1221 enable_printui
1222 enable_prntvpt
1223 enable_propsys
1224 enable_psapi
1225 enable_pstorec
1226 enable_qcap
1227 enable_qedit
1228 enable_qmgr
1229 enable_qmgrprxy
1230 enable_quartz
1231 enable_query
1232 enable_rasapi32
1233 enable_rasdlg
1234 enable_regapi
1235 enable_resutils
1236 enable_riched20
1237 enable_riched32
1238 enable_rpcrt4
1239 enable_rsabase
1240 enable_rsaenh
1241 enable_rstrtmgr
1242 enable_rtutils
1243 enable_samlib
1244 enable_sane_ds
1245 enable_scarddlg
1246 enable_sccbase
1247 enable_schannel
1248 enable_schedsvc
1249 enable_scrrun
1250 enable_scsiport_sys
1251 enable_secur32
1252 enable_security
1253 enable_sensapi
1254 enable_serialui
1255 enable_setupapi
1256 enable_sfc
1257 enable_sfc_os
1258 enable_shdoclc
1259 enable_shdocvw
1260 enable_shell32
1261 enable_shfolder
1262 enable_shlwapi
1263 enable_slbcsp
1264 enable_slc
1265 enable_snmpapi
1266 enable_softpub
1267 enable_spoolss
1268 enable_stdole2_tlb
1269 enable_stdole32_tlb
1270 enable_sti
1271 enable_svrapi
1272 enable_sxs
1273 enable_t2embed
1274 enable_tapi32
1275 enable_taskschd
1276 enable_traffic
1277 enable_twain_32
1278 enable_unicows
1279 enable_updspapi
1280 enable_url
1281 enable_urlmon
1282 enable_usbd_sys
1283 enable_user32
1284 enable_userenv
1285 enable_usp10
1286 enable_uxtheme
1287 enable_vbscript
1288 enable_vcomp
1289 enable_vcomp100
1290 enable_vcomp90
1291 enable_vdmdbg
1292 enable_version
1293 enable_vssapi
1294 enable_wbemdisp
1295 enable_wbemprox
1296 enable_webservices
1297 enable_wer
1298 enable_wevtapi
1299 enable_wiaservc
1300 enable_windowscodecs
1301 enable_windowscodecsext
1302 enable_winealsa_drv
1303 enable_winecoreaudio_drv
1304 enable_wined3d
1305 enable_winegstreamer
1306 enable_winejoystick_drv
1307 enable_winemac_drv
1308 enable_winemapi
1309 enable_winemp3_acm
1310 enable_wineoss_drv
1311 enable_wineps_drv
1312 enable_wineqtdecoder
1313 enable_winex11_drv
1314 enable_wing32
1315 enable_winhttp
1316 enable_wininet
1317 enable_winmm
1318 enable_winnls32
1319 enable_winscard
1320 enable_winspool_drv
1321 enable_winsta
1322 enable_wintab32
1323 enable_wintrust
1324 enable_wlanapi
1325 enable_wldap32
1326 enable_wmi
1327 enable_wmiutils
1328 enable_wmp
1329 enable_wmvcore
1330 enable_wnaspi32
1331 enable_wpcap
1332 enable_ws2_32
1333 enable_wshom_ocx
1334 enable_wsnmp32
1335 enable_wsock32
1336 enable_wtsapi32
1337 enable_wuapi
1338 enable_wuaueng
1339 enable_x3daudio1_1
1340 enable_x3daudio1_2
1341 enable_x3daudio1_3
1342 enable_x3daudio1_4
1343 enable_x3daudio1_5
1344 enable_x3daudio1_6
1345 enable_x3daudio1_7
1346 enable_xapofx1_1
1347 enable_xapofx1_3
1348 enable_xapofx1_4
1349 enable_xapofx1_5
1350 enable_xaudio2_7
1351 enable_xinput1_1
1352 enable_xinput1_2
1353 enable_xinput1_3
1354 enable_xinput1_4
1355 enable_xinput9_1_0
1356 enable_xmllite
1357 enable_xolehlp
1358 enable_xpsprint
1359 enable_xpssvcs
1360 enable_documentation
1361 enable_fonts
1362 enable_include
1363 enable_libs_port
1364 enable_libs_wine
1365 enable_libs_wpp
1366 enable_loader
1367 enable_arp
1368 enable_aspnet_regiis
1369 enable_attrib
1370 enable_cabarc
1371 enable_cacls
1372 enable_clock
1373 enable_cmd
1374 enable_conhost
1375 enable_control
1376 enable_cscript
1377 enable_dpnsvr
1378 enable_dxdiag
1379 enable_eject
1380 enable_expand
1381 enable_explorer
1382 enable_extrac32
1383 enable_findstr
1384 enable_hh
1385 enable_hostname
1386 enable_icinfo
1387 enable_iexplore
1388 enable_ipconfig
1389 enable_lodctr
1390 enable_mofcomp
1391 enable_mshta
1392 enable_msiexec
1393 enable_net
1394 enable_netsh
1395 enable_netstat
1396 enable_ngen
1397 enable_notepad
1398 enable_oleview
1399 enable_ping
1400 enable_plugplay
1401 enable_presentationfontcache
1402 enable_progman
1403 enable_reg
1404 enable_regasm
1405 enable_regedit
1406 enable_regsvcs
1407 enable_regsvr32
1408 enable_rpcss
1409 enable_rundll32
1410 enable_sc
1411 enable_schtasks
1412 enable_sdbinst
1413 enable_secedit
1414 enable_servicemodelreg
1415 enable_services
1416 enable_spoolsv
1417 enable_start
1418 enable_svchost
1419 enable_systeminfo
1420 enable_taskkill
1421 enable_tasklist
1422 enable_taskmgr
1423 enable_termsv
1424 enable_uninstaller
1425 enable_unlodctr
1426 enable_view
1427 enable_wevtutil
1428 enable_wineboot
1429 enable_winebrowser
1430 enable_winecfg
1431 enable_wineconsole
1432 enable_winedbg
1433 enable_winedevice
1434 enable_winefile
1435 enable_winemenubuilder
1436 enable_winemine
1437 enable_winemsibuilder
1438 enable_winepath
1439 enable_winetest
1440 enable_winhlp32
1441 enable_winver
1442 enable_wmic
1443 enable_wordpad
1444 enable_write
1445 enable_wscript
1446 enable_wusa
1447 enable_xcopy
1448 enable_server
1449 enable_tools
1451 ac_precious_vars='build_alias
1452 host_alias
1453 target_alias
1455 CFLAGS
1456 LDFLAGS
1457 LIBS
1458 CPPFLAGS
1460 CXXFLAGS
1463 XMKMF
1464 XML2_CFLAGS
1465 XML2_LIBS
1466 XSLT_CFLAGS
1467 XSLT_LIBS
1468 DBUS_CFLAGS
1469 DBUS_LIBS
1470 HAL_CFLAGS
1471 HAL_LIBS
1472 GNUTLS_CFLAGS
1473 GNUTLS_LIBS
1474 SANE_CFLAGS
1475 SANE_LIBS
1476 GPHOTO2_CFLAGS
1477 GPHOTO2_LIBS
1478 GPHOTO2_PORT_CFLAGS
1479 GPHOTO2_PORT_LIBS
1480 LCMS2_CFLAGS
1481 LCMS2_LIBS
1482 FREETYPE_CFLAGS
1483 FREETYPE_LIBS
1484 GSTREAMER_CFLAGS
1485 GSTREAMER_LIBS
1486 CAPI20_CFLAGS
1487 CAPI20_LIBS
1488 FONTCONFIG_CFLAGS
1489 FONTCONFIG_LIBS
1490 JPEG_CFLAGS
1491 JPEG_LIBS
1492 PNG_CFLAGS
1493 PNG_LIBS
1494 TIFF_CFLAGS
1495 TIFF_LIBS
1496 MPG123_CFLAGS
1497 MPG123_LIBS'
1500 # Initialize some variables set by options.
1501 ac_init_help=
1502 ac_init_version=false
1503 ac_unrecognized_opts=
1504 ac_unrecognized_sep=
1505 # The variables have the same names as the options, with
1506 # dashes changed to underlines.
1507 cache_file=/dev/null
1508 exec_prefix=NONE
1509 no_create=
1510 no_recursion=
1511 prefix=NONE
1512 program_prefix=NONE
1513 program_suffix=NONE
1514 program_transform_name=s,x,x,
1515 silent=
1516 site=
1517 srcdir=
1518 verbose=
1519 x_includes=NONE
1520 x_libraries=NONE
1522 # Installation directory options.
1523 # These are left unexpanded so users can "make install exec_prefix=/foo"
1524 # and all the variables that are supposed to be based on exec_prefix
1525 # by default will actually change.
1526 # Use braces instead of parens because sh, perl, etc. also accept them.
1527 # (The list follows the same order as the GNU Coding Standards.)
1528 bindir='${exec_prefix}/bin'
1529 sbindir='${exec_prefix}/sbin'
1530 libexecdir='${exec_prefix}/libexec'
1531 datarootdir='${prefix}/share'
1532 datadir='${datarootdir}'
1533 sysconfdir='${prefix}/etc'
1534 sharedstatedir='${prefix}/com'
1535 localstatedir='${prefix}/var'
1536 includedir='${prefix}/include'
1537 oldincludedir='/usr/include'
1538 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1539 infodir='${datarootdir}/info'
1540 htmldir='${docdir}'
1541 dvidir='${docdir}'
1542 pdfdir='${docdir}'
1543 psdir='${docdir}'
1544 libdir='${exec_prefix}/lib'
1545 localedir='${datarootdir}/locale'
1546 mandir='${datarootdir}/man'
1548 ac_prev=
1549 ac_dashdash=
1550 for ac_option
1552 # If the previous option needs an argument, assign it.
1553 if test -n "$ac_prev"; then
1554 eval $ac_prev=\$ac_option
1555 ac_prev=
1556 continue
1559 case $ac_option in
1560 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1561 *=) ac_optarg= ;;
1562 *) ac_optarg=yes ;;
1563 esac
1565 # Accept the important Cygnus configure options, so we can diagnose typos.
1567 case $ac_dashdash$ac_option in
1569 ac_dashdash=yes ;;
1571 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1572 ac_prev=bindir ;;
1573 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1574 bindir=$ac_optarg ;;
1576 -build | --build | --buil | --bui | --bu)
1577 ac_prev=build_alias ;;
1578 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1579 build_alias=$ac_optarg ;;
1581 -cache-file | --cache-file | --cache-fil | --cache-fi \
1582 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1583 ac_prev=cache_file ;;
1584 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1585 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1586 cache_file=$ac_optarg ;;
1588 --config-cache | -C)
1589 cache_file=config.cache ;;
1591 -datadir | --datadir | --datadi | --datad)
1592 ac_prev=datadir ;;
1593 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1594 datadir=$ac_optarg ;;
1596 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1597 | --dataroo | --dataro | --datar)
1598 ac_prev=datarootdir ;;
1599 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1600 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1601 datarootdir=$ac_optarg ;;
1603 -disable-* | --disable-*)
1604 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1605 # Reject names that are not valid shell variable names.
1606 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1607 as_fn_error $? "invalid feature name: $ac_useropt"
1608 ac_useropt_orig=$ac_useropt
1609 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1610 case $ac_user_opts in
1612 "enable_$ac_useropt"
1613 "*) ;;
1614 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1615 ac_unrecognized_sep=', ';;
1616 esac
1617 eval enable_$ac_useropt=no ;;
1619 -docdir | --docdir | --docdi | --doc | --do)
1620 ac_prev=docdir ;;
1621 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1622 docdir=$ac_optarg ;;
1624 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1625 ac_prev=dvidir ;;
1626 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1627 dvidir=$ac_optarg ;;
1629 -enable-* | --enable-*)
1630 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1631 # Reject names that are not valid shell variable names.
1632 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1633 as_fn_error $? "invalid feature name: $ac_useropt"
1634 ac_useropt_orig=$ac_useropt
1635 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1636 case $ac_user_opts in
1638 "enable_$ac_useropt"
1639 "*) ;;
1640 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1641 ac_unrecognized_sep=', ';;
1642 esac
1643 eval enable_$ac_useropt=\$ac_optarg ;;
1645 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1646 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1647 | --exec | --exe | --ex)
1648 ac_prev=exec_prefix ;;
1649 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1650 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1651 | --exec=* | --exe=* | --ex=*)
1652 exec_prefix=$ac_optarg ;;
1654 -gas | --gas | --ga | --g)
1655 # Obsolete; use --with-gas.
1656 with_gas=yes ;;
1658 -help | --help | --hel | --he | -h)
1659 ac_init_help=long ;;
1660 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1661 ac_init_help=recursive ;;
1662 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1663 ac_init_help=short ;;
1665 -host | --host | --hos | --ho)
1666 ac_prev=host_alias ;;
1667 -host=* | --host=* | --hos=* | --ho=*)
1668 host_alias=$ac_optarg ;;
1670 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1671 ac_prev=htmldir ;;
1672 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1673 | --ht=*)
1674 htmldir=$ac_optarg ;;
1676 -includedir | --includedir | --includedi | --included | --include \
1677 | --includ | --inclu | --incl | --inc)
1678 ac_prev=includedir ;;
1679 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1680 | --includ=* | --inclu=* | --incl=* | --inc=*)
1681 includedir=$ac_optarg ;;
1683 -infodir | --infodir | --infodi | --infod | --info | --inf)
1684 ac_prev=infodir ;;
1685 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1686 infodir=$ac_optarg ;;
1688 -libdir | --libdir | --libdi | --libd)
1689 ac_prev=libdir ;;
1690 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1691 libdir=$ac_optarg ;;
1693 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1694 | --libexe | --libex | --libe)
1695 ac_prev=libexecdir ;;
1696 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1697 | --libexe=* | --libex=* | --libe=*)
1698 libexecdir=$ac_optarg ;;
1700 -localedir | --localedir | --localedi | --localed | --locale)
1701 ac_prev=localedir ;;
1702 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1703 localedir=$ac_optarg ;;
1705 -localstatedir | --localstatedir | --localstatedi | --localstated \
1706 | --localstate | --localstat | --localsta | --localst | --locals)
1707 ac_prev=localstatedir ;;
1708 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1709 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1710 localstatedir=$ac_optarg ;;
1712 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1713 ac_prev=mandir ;;
1714 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1715 mandir=$ac_optarg ;;
1717 -nfp | --nfp | --nf)
1718 # Obsolete; use --without-fp.
1719 with_fp=no ;;
1721 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1722 | --no-cr | --no-c | -n)
1723 no_create=yes ;;
1725 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1726 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1727 no_recursion=yes ;;
1729 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1730 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1731 | --oldin | --oldi | --old | --ol | --o)
1732 ac_prev=oldincludedir ;;
1733 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1734 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1735 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1736 oldincludedir=$ac_optarg ;;
1738 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1739 ac_prev=prefix ;;
1740 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1741 prefix=$ac_optarg ;;
1743 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1744 | --program-pre | --program-pr | --program-p)
1745 ac_prev=program_prefix ;;
1746 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1747 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1748 program_prefix=$ac_optarg ;;
1750 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1751 | --program-suf | --program-su | --program-s)
1752 ac_prev=program_suffix ;;
1753 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1754 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1755 program_suffix=$ac_optarg ;;
1757 -program-transform-name | --program-transform-name \
1758 | --program-transform-nam | --program-transform-na \
1759 | --program-transform-n | --program-transform- \
1760 | --program-transform | --program-transfor \
1761 | --program-transfo | --program-transf \
1762 | --program-trans | --program-tran \
1763 | --progr-tra | --program-tr | --program-t)
1764 ac_prev=program_transform_name ;;
1765 -program-transform-name=* | --program-transform-name=* \
1766 | --program-transform-nam=* | --program-transform-na=* \
1767 | --program-transform-n=* | --program-transform-=* \
1768 | --program-transform=* | --program-transfor=* \
1769 | --program-transfo=* | --program-transf=* \
1770 | --program-trans=* | --program-tran=* \
1771 | --progr-tra=* | --program-tr=* | --program-t=*)
1772 program_transform_name=$ac_optarg ;;
1774 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1775 ac_prev=pdfdir ;;
1776 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1777 pdfdir=$ac_optarg ;;
1779 -psdir | --psdir | --psdi | --psd | --ps)
1780 ac_prev=psdir ;;
1781 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1782 psdir=$ac_optarg ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1786 silent=yes ;;
1788 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1789 ac_prev=sbindir ;;
1790 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1791 | --sbi=* | --sb=*)
1792 sbindir=$ac_optarg ;;
1794 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1795 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1796 | --sharedst | --shareds | --shared | --share | --shar \
1797 | --sha | --sh)
1798 ac_prev=sharedstatedir ;;
1799 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1800 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1801 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1802 | --sha=* | --sh=*)
1803 sharedstatedir=$ac_optarg ;;
1805 -site | --site | --sit)
1806 ac_prev=site ;;
1807 -site=* | --site=* | --sit=*)
1808 site=$ac_optarg ;;
1810 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1811 ac_prev=srcdir ;;
1812 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1813 srcdir=$ac_optarg ;;
1815 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1816 | --syscon | --sysco | --sysc | --sys | --sy)
1817 ac_prev=sysconfdir ;;
1818 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1819 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1820 sysconfdir=$ac_optarg ;;
1822 -target | --target | --targe | --targ | --tar | --ta | --t)
1823 ac_prev=target_alias ;;
1824 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1825 target_alias=$ac_optarg ;;
1827 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1828 verbose=yes ;;
1830 -version | --version | --versio | --versi | --vers | -V)
1831 ac_init_version=: ;;
1833 -with-* | --with-*)
1834 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1835 # Reject names that are not valid shell variable names.
1836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1837 as_fn_error $? "invalid package name: $ac_useropt"
1838 ac_useropt_orig=$ac_useropt
1839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1840 case $ac_user_opts in
1842 "with_$ac_useropt"
1843 "*) ;;
1844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1845 ac_unrecognized_sep=', ';;
1846 esac
1847 eval with_$ac_useropt=\$ac_optarg ;;
1849 -without-* | --without-*)
1850 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1851 # Reject names that are not valid shell variable names.
1852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1853 as_fn_error $? "invalid package name: $ac_useropt"
1854 ac_useropt_orig=$ac_useropt
1855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1856 case $ac_user_opts in
1858 "with_$ac_useropt"
1859 "*) ;;
1860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1861 ac_unrecognized_sep=', ';;
1862 esac
1863 eval with_$ac_useropt=no ;;
1865 --x)
1866 # Obsolete; use --with-x.
1867 with_x=yes ;;
1869 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1870 | --x-incl | --x-inc | --x-in | --x-i)
1871 ac_prev=x_includes ;;
1872 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1873 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1874 x_includes=$ac_optarg ;;
1876 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1877 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1878 ac_prev=x_libraries ;;
1879 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1880 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1881 x_libraries=$ac_optarg ;;
1883 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1884 Try \`$0 --help' for more information"
1887 *=*)
1888 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1889 # Reject names that are not valid shell variable names.
1890 case $ac_envvar in #(
1891 '' | [0-9]* | *[!_$as_cr_alnum]* )
1892 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1893 esac
1894 eval $ac_envvar=\$ac_optarg
1895 export $ac_envvar ;;
1898 # FIXME: should be removed in autoconf 3.0.
1899 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1900 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1901 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1902 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1905 esac
1906 done
1908 if test -n "$ac_prev"; then
1909 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1910 as_fn_error $? "missing argument to $ac_option"
1913 if test -n "$ac_unrecognized_opts"; then
1914 case $enable_option_checking in
1915 no) ;;
1916 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1917 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1918 esac
1921 # Check all directory arguments for consistency.
1922 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1923 datadir sysconfdir sharedstatedir localstatedir includedir \
1924 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1925 libdir localedir mandir
1927 eval ac_val=\$$ac_var
1928 # Remove trailing slashes.
1929 case $ac_val in
1930 */ )
1931 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1932 eval $ac_var=\$ac_val;;
1933 esac
1934 # Be sure to have absolute directory names.
1935 case $ac_val in
1936 [\\/$]* | ?:[\\/]* ) continue;;
1937 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1938 esac
1939 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1940 done
1942 # There might be people who depend on the old broken behavior: `$host'
1943 # used to hold the argument of --host etc.
1944 # FIXME: To remove some day.
1945 build=$build_alias
1946 host=$host_alias
1947 target=$target_alias
1949 # FIXME: To remove some day.
1950 if test "x$host_alias" != x; then
1951 if test "x$build_alias" = x; then
1952 cross_compiling=maybe
1953 elif test "x$build_alias" != "x$host_alias"; then
1954 cross_compiling=yes
1958 ac_tool_prefix=
1959 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1961 test "$silent" = yes && exec 6>/dev/null
1964 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1965 ac_ls_di=`ls -di .` &&
1966 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1967 as_fn_error $? "working directory cannot be determined"
1968 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1969 as_fn_error $? "pwd does not report name of working directory"
1972 # Find the source files, if location was not specified.
1973 if test -z "$srcdir"; then
1974 ac_srcdir_defaulted=yes
1975 # Try the directory containing this script, then the parent directory.
1976 ac_confdir=`$as_dirname -- "$as_myself" ||
1977 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1978 X"$as_myself" : 'X\(//\)[^/]' \| \
1979 X"$as_myself" : 'X\(//\)$' \| \
1980 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1981 $as_echo X"$as_myself" |
1982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1983 s//\1/
1986 /^X\(\/\/\)[^/].*/{
1987 s//\1/
1990 /^X\(\/\/\)$/{
1991 s//\1/
1994 /^X\(\/\).*/{
1995 s//\1/
1998 s/.*/./; q'`
1999 srcdir=$ac_confdir
2000 if test ! -r "$srcdir/$ac_unique_file"; then
2001 srcdir=..
2003 else
2004 ac_srcdir_defaulted=no
2006 if test ! -r "$srcdir/$ac_unique_file"; then
2007 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2008 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2010 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2011 ac_abs_confdir=`(
2012 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2013 pwd)`
2014 # When building in place, set srcdir=.
2015 if test "$ac_abs_confdir" = "$ac_pwd"; then
2016 srcdir=.
2018 # Remove unnecessary trailing slashes from srcdir.
2019 # Double slashes in file names in object file debugging info
2020 # mess up M-x gdb in Emacs.
2021 case $srcdir in
2022 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2023 esac
2024 for ac_var in $ac_precious_vars; do
2025 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2026 eval ac_env_${ac_var}_value=\$${ac_var}
2027 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2028 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2029 done
2032 # Report the --help message.
2034 if test "$ac_init_help" = "long"; then
2035 # Omit some internal or obsolete options to make the list less imposing.
2036 # This message is too long to be a string in the A/UX 3.1 sh.
2037 cat <<_ACEOF
2038 \`configure' configures Wine 1.7.43 to adapt to many kinds of systems.
2040 Usage: $0 [OPTION]... [VAR=VALUE]...
2042 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2043 VAR=VALUE. See below for descriptions of some of the useful variables.
2045 Defaults for the options are specified in brackets.
2047 Configuration:
2048 -h, --help display this help and exit
2049 --help=short display options specific to this package
2050 --help=recursive display the short help of all the included packages
2051 -V, --version display version information and exit
2052 -q, --quiet, --silent do not print \`checking ...' messages
2053 --cache-file=FILE cache test results in FILE [disabled]
2054 -C, --config-cache alias for \`--cache-file=config.cache'
2055 -n, --no-create do not create output files
2056 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2058 Installation directories:
2059 --prefix=PREFIX install architecture-independent files in PREFIX
2060 [$ac_default_prefix]
2061 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2062 [PREFIX]
2064 By default, \`make install' will install all the files in
2065 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2066 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2067 for instance \`--prefix=\$HOME'.
2069 For better control, use the options below.
2071 Fine tuning of the installation directories:
2072 --bindir=DIR user executables [EPREFIX/bin]
2073 --sbindir=DIR system admin executables [EPREFIX/sbin]
2074 --libexecdir=DIR program executables [EPREFIX/libexec]
2075 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2076 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2077 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2078 --libdir=DIR object code libraries [EPREFIX/lib]
2079 --includedir=DIR C header files [PREFIX/include]
2080 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2081 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2082 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2083 --infodir=DIR info documentation [DATAROOTDIR/info]
2084 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2085 --mandir=DIR man documentation [DATAROOTDIR/man]
2086 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
2087 --htmldir=DIR html documentation [DOCDIR]
2088 --dvidir=DIR dvi documentation [DOCDIR]
2089 --pdfdir=DIR pdf documentation [DOCDIR]
2090 --psdir=DIR ps documentation [DOCDIR]
2091 _ACEOF
2093 cat <<\_ACEOF
2095 X features:
2096 --x-includes=DIR X include files are in DIR
2097 --x-libraries=DIR X library files are in DIR
2099 System types:
2100 --build=BUILD configure for building on BUILD [guessed]
2101 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2102 _ACEOF
2105 if test -n "$ac_init_help"; then
2106 case $ac_init_help in
2107 short | recursive ) echo "Configuration of Wine 1.7.43:";;
2108 esac
2109 cat <<\_ACEOF
2111 Optional Features:
2112 --disable-option-checking ignore unrecognized --enable/--with options
2113 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2114 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2115 --disable-win16 do not include Win16 support
2116 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2117 binaries)
2118 --disable-tests do not build the regression tests
2119 --enable-maintainer-mode
2120 enable maintainer-specific build rules
2121 --disable-largefile omit support for large files
2123 Optional Packages:
2124 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2125 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2126 --without-alsa do not use the Alsa sound support
2127 --without-capi do not use CAPI (ISDN support)
2128 --without-cms do not use CMS (color management support)
2129 --without-coreaudio do not use the CoreAudio sound support
2130 --without-cups do not use CUPS
2131 --without-curses do not use (n)curses
2132 --without-dbus do not use DBus (dynamic device support)
2133 --without-fontconfig do not use fontconfig
2134 --without-freetype do not use the FreeType library
2135 --without-gettext do not use gettext
2136 --with-gettextpo use the GetTextPO library to rebuild po files
2137 --without-gphoto do not use gphoto (Digital Camera support)
2138 --without-glu do not use the GLU library
2139 --without-gnutls do not use GnuTLS (schannel support)
2140 --without-gsm do not use libgsm (GSM 06.10 codec support)
2141 --without-gstreamer do not use GStreamer (codecs support)
2142 --without-hal do not use HAL (dynamic device support)
2143 --without-jpeg do not use JPEG
2144 --without-ldap do not use LDAP
2145 --without-mpg123 do not use the mpg123 library
2146 --without-netapi do not use the Samba NetAPI library
2147 --without-openal do not use OpenAL
2148 --without-opencl do not use OpenCL
2149 --without-opengl do not use OpenGL
2150 --without-osmesa do not use the OSMesa library
2151 --without-oss do not use the OSS sound support
2152 --without-pcap do not use the Packet Capture library
2153 --without-png do not use PNG
2154 --without-pthread do not use the pthread library
2155 --without-sane do not use SANE (scanner support)
2156 --without-tiff do not use TIFF
2157 --without-v4l do not use v4l1 (v4l support)
2158 --without-xcomposite do not use the Xcomposite extension
2159 --without-xcursor do not use the Xcursor extension
2160 --without-xinerama do not use Xinerama (multi-monitor support)
2161 --without-xinput do not use the Xinput extension
2162 --without-xinput2 do not use the Xinput 2 extension
2163 --without-xml do not use XML
2164 --without-xrandr do not use Xrandr (resolution changes)
2165 --without-xrender do not use the Xrender extension
2166 --without-xshape do not use the Xshape extension
2167 --without-xshm do not use XShm (shared memory extension)
2168 --without-xslt do not use XSLT
2169 --without-xxf86vm do not use XFree video mode extension
2170 --without-zlib do not use Zlib (data compression)
2171 --with-wine-tools=DIR use Wine tools from directory DIR
2172 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2173 --with-x use the X Window System
2175 Some influential environment variables:
2176 CC C compiler command
2177 CFLAGS C compiler flags
2178 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2179 nonstandard directory <lib dir>
2180 LIBS libraries to pass to the linker, e.g. -l<library>
2181 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2182 you have headers in a nonstandard directory <include dir>
2183 CXX C++ compiler command
2184 CXXFLAGS C++ compiler flags
2185 CPP C preprocessor
2186 XMKMF Path to xmkmf, Makefile generator for X Window System
2187 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2188 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2189 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2190 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2191 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2192 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2193 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2194 HAL_LIBS Linker flags for hal, overriding pkg-config
2195 GNUTLS_CFLAGS
2196 C compiler flags for gnutls, overriding pkg-config
2197 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2198 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2199 SANE_LIBS Linker flags for libsane, overriding pkg-config
2200 GPHOTO2_CFLAGS
2201 C compiler flags for libgphoto2, overriding pkg-config
2202 GPHOTO2_LIBS
2203 Linker flags for libgphoto2, overriding pkg-config
2204 GPHOTO2_PORT_CFLAGS
2205 C compiler flags for libgphoto2_port, overriding pkg-config
2206 GPHOTO2_PORT_LIBS
2207 Linker flags for libgphoto2_port, overriding pkg-config
2208 LCMS2_CFLAGS
2209 C compiler flags for lcms2, overriding pkg-config
2210 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2211 FREETYPE_CFLAGS
2212 C compiler flags for freetype2, overriding pkg-config
2213 FREETYPE_LIBS
2214 Linker flags for freetype2, overriding pkg-config
2215 GSTREAMER_CFLAGS
2216 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2217 GSTREAMER_LIBS
2218 Linker flags for gstreamer-app-0.10, overriding pkg-config
2219 CAPI20_CFLAGS
2220 C compiler flags for capi20, overriding pkg-config
2221 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2222 FONTCONFIG_CFLAGS
2223 C compiler flags for fontconfig, overriding pkg-config
2224 FONTCONFIG_LIBS
2225 Linker flags for fontconfig, overriding pkg-config
2226 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2227 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2228 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2229 PNG_LIBS Linker flags for libpng, overriding pkg-config
2230 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2231 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2232 MPG123_CFLAGS
2233 C compiler flags for libmpg123, overriding pkg-config
2234 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2236 Use these variables to override the choices made by `configure' or to help
2237 it to find libraries and programs with nonstandard names/locations.
2239 Report bugs to <wine-devel@winehq.org>.
2240 Wine home page: <http://www.winehq.org>.
2241 _ACEOF
2242 ac_status=$?
2245 if test "$ac_init_help" = "recursive"; then
2246 # If there are subdirs, report their specific --help.
2247 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2248 test -d "$ac_dir" ||
2249 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2250 continue
2251 ac_builddir=.
2253 case "$ac_dir" in
2254 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2257 # A ".." for each directory in $ac_dir_suffix.
2258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2259 case $ac_top_builddir_sub in
2260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2262 esac ;;
2263 esac
2264 ac_abs_top_builddir=$ac_pwd
2265 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2266 # for backward compatibility:
2267 ac_top_builddir=$ac_top_build_prefix
2269 case $srcdir in
2270 .) # We are building in place.
2271 ac_srcdir=.
2272 ac_top_srcdir=$ac_top_builddir_sub
2273 ac_abs_top_srcdir=$ac_pwd ;;
2274 [\\/]* | ?:[\\/]* ) # Absolute name.
2275 ac_srcdir=$srcdir$ac_dir_suffix;
2276 ac_top_srcdir=$srcdir
2277 ac_abs_top_srcdir=$srcdir ;;
2278 *) # Relative name.
2279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2280 ac_top_srcdir=$ac_top_build_prefix$srcdir
2281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2282 esac
2283 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2285 cd "$ac_dir" || { ac_status=$?; continue; }
2286 # Check for guested configure.
2287 if test -f "$ac_srcdir/configure.gnu"; then
2288 echo &&
2289 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2290 elif test -f "$ac_srcdir/configure"; then
2291 echo &&
2292 $SHELL "$ac_srcdir/configure" --help=recursive
2293 else
2294 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2295 fi || ac_status=$?
2296 cd "$ac_pwd" || { ac_status=$?; break; }
2297 done
2300 test -n "$ac_init_help" && exit $ac_status
2301 if $ac_init_version; then
2302 cat <<\_ACEOF
2303 Wine configure 1.7.43
2304 generated by GNU Autoconf 2.69
2306 Copyright (C) 2012 Free Software Foundation, Inc.
2307 This configure script is free software; the Free Software Foundation
2308 gives unlimited permission to copy, distribute and modify it.
2309 _ACEOF
2310 exit
2313 ## ------------------------ ##
2314 ## Autoconf initialization. ##
2315 ## ------------------------ ##
2317 # ac_fn_c_try_compile LINENO
2318 # --------------------------
2319 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2320 ac_fn_c_try_compile ()
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 rm -f conftest.$ac_objext
2324 if { { ac_try="$ac_compile"
2325 case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328 esac
2329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330 $as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_compile") 2>conftest.err
2332 ac_status=$?
2333 if test -s conftest.err; then
2334 grep -v '^ *+' conftest.err >conftest.er1
2335 cat conftest.er1 >&5
2336 mv -f conftest.er1 conftest.err
2338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2339 test $ac_status = 0; } && {
2340 test -z "$ac_c_werror_flag" ||
2341 test ! -s conftest.err
2342 } && test -s conftest.$ac_objext; then :
2343 ac_retval=0
2344 else
2345 $as_echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2348 ac_retval=1
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351 as_fn_set_status $ac_retval
2353 } # ac_fn_c_try_compile
2355 # ac_fn_cxx_try_compile LINENO
2356 # ----------------------------
2357 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2358 ac_fn_cxx_try_compile ()
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 rm -f conftest.$ac_objext
2362 if { { ac_try="$ac_compile"
2363 case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366 esac
2367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368 $as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_compile") 2>conftest.err
2370 ac_status=$?
2371 if test -s conftest.err; then
2372 grep -v '^ *+' conftest.err >conftest.er1
2373 cat conftest.er1 >&5
2374 mv -f conftest.er1 conftest.err
2376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377 test $ac_status = 0; } && {
2378 test -z "$ac_cxx_werror_flag" ||
2379 test ! -s conftest.err
2380 } && test -s conftest.$ac_objext; then :
2381 ac_retval=0
2382 else
2383 $as_echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2386 ac_retval=1
2388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2389 as_fn_set_status $ac_retval
2391 } # ac_fn_cxx_try_compile
2393 # ac_fn_c_try_link LINENO
2394 # -----------------------
2395 # Try to link conftest.$ac_ext, and return whether this succeeded.
2396 ac_fn_c_try_link ()
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 rm -f conftest.$ac_objext conftest$ac_exeext
2400 if { { ac_try="$ac_link"
2401 case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404 esac
2405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2406 $as_echo "$ac_try_echo"; } >&5
2407 (eval "$ac_link") 2>conftest.err
2408 ac_status=$?
2409 if test -s conftest.err; then
2410 grep -v '^ *+' conftest.err >conftest.er1
2411 cat conftest.er1 >&5
2412 mv -f conftest.er1 conftest.err
2414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415 test $ac_status = 0; } && {
2416 test -z "$ac_c_werror_flag" ||
2417 test ! -s conftest.err
2418 } && test -s conftest$ac_exeext && {
2419 test "$cross_compiling" = yes ||
2420 test -x conftest$ac_exeext
2421 }; then :
2422 ac_retval=0
2423 else
2424 $as_echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2427 ac_retval=1
2429 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2430 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2431 # interfere with the next link command; also delete a directory that is
2432 # left behind by Apple's compiler. We do this before executing the actions.
2433 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435 as_fn_set_status $ac_retval
2437 } # ac_fn_c_try_link
2439 # ac_fn_c_try_cpp LINENO
2440 # ----------------------
2441 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2442 ac_fn_c_try_cpp ()
2444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445 if { { ac_try="$ac_cpp conftest.$ac_ext"
2446 case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449 esac
2450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2451 $as_echo "$ac_try_echo"; } >&5
2452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2453 ac_status=$?
2454 if test -s conftest.err; then
2455 grep -v '^ *+' conftest.err >conftest.er1
2456 cat conftest.er1 >&5
2457 mv -f conftest.er1 conftest.err
2459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2460 test $ac_status = 0; } > conftest.i && {
2461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2462 test ! -s conftest.err
2463 }; then :
2464 ac_retval=0
2465 else
2466 $as_echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2469 ac_retval=1
2471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2472 as_fn_set_status $ac_retval
2474 } # ac_fn_c_try_cpp
2476 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2477 # -------------------------------------------------------
2478 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2479 # the include files in INCLUDES and setting the cache variable VAR
2480 # accordingly.
2481 ac_fn_c_check_header_mongrel ()
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 if eval \${$3+:} false; then :
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2486 $as_echo_n "checking for $2... " >&6; }
2487 if eval \${$3+:} false; then :
2488 $as_echo_n "(cached) " >&6
2490 eval ac_res=\$$3
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492 $as_echo "$ac_res" >&6; }
2493 else
2494 # Is the header compilable?
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2496 $as_echo_n "checking $2 usability... " >&6; }
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2500 #include <$2>
2501 _ACEOF
2502 if ac_fn_c_try_compile "$LINENO"; then :
2503 ac_header_compiler=yes
2504 else
2505 ac_header_compiler=no
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2509 $as_echo "$ac_header_compiler" >&6; }
2511 # Is the header present?
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2513 $as_echo_n "checking $2 presence... " >&6; }
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 #include <$2>
2517 _ACEOF
2518 if ac_fn_c_try_cpp "$LINENO"; then :
2519 ac_header_preproc=yes
2520 else
2521 ac_header_preproc=no
2523 rm -f conftest.err conftest.i conftest.$ac_ext
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2525 $as_echo "$ac_header_preproc" >&6; }
2527 # So? What about this header?
2528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2529 yes:no: )
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2531 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2533 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2535 no:yes:* )
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2537 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2539 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2541 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2543 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2545 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2546 ( $as_echo "## ------------------------------------ ##
2547 ## Report this to wine-devel@winehq.org ##
2548 ## ------------------------------------ ##"
2549 ) | sed "s/^/$as_me: WARNING: /" >&2
2551 esac
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553 $as_echo_n "checking for $2... " >&6; }
2554 if eval \${$3+:} false; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 eval "$3=\$ac_header_compiler"
2559 eval ac_res=\$$3
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565 } # ac_fn_c_check_header_mongrel
2567 # ac_fn_c_try_run LINENO
2568 # ----------------------
2569 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2570 # that executables *can* be run.
2571 ac_fn_c_try_run ()
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 if { { ac_try="$ac_link"
2575 case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578 esac
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_link") 2>&5
2582 ac_status=$?
2583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2584 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2585 { { case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588 esac
2589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2590 $as_echo "$ac_try_echo"; } >&5
2591 (eval "$ac_try") 2>&5
2592 ac_status=$?
2593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2594 test $ac_status = 0; }; }; then :
2595 ac_retval=0
2596 else
2597 $as_echo "$as_me: program exited with status $ac_status" >&5
2598 $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2601 ac_retval=$ac_status
2603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2605 as_fn_set_status $ac_retval
2607 } # ac_fn_c_try_run
2609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2610 # -------------------------------------------------------
2611 # Tests whether HEADER exists and can be compiled using the include files in
2612 # INCLUDES, setting the cache variable VAR accordingly.
2613 ac_fn_c_check_header_compile ()
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2617 $as_echo_n "checking for $2... " >&6; }
2618 if eval \${$3+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2624 #include <$2>
2625 _ACEOF
2626 if ac_fn_c_try_compile "$LINENO"; then :
2627 eval "$3=yes"
2628 else
2629 eval "$3=no"
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 eval ac_res=\$$3
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2635 $as_echo "$ac_res" >&6; }
2636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2638 } # ac_fn_c_check_header_compile
2640 # ac_fn_c_check_func LINENO FUNC VAR
2641 # ----------------------------------
2642 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2643 ac_fn_c_check_func ()
2645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2647 $as_echo_n "checking for $2... " >&6; }
2648 if eval \${$3+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2653 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2655 #define $2 innocuous_$2
2657 /* System header to define __stub macros and hopefully few prototypes,
2658 which can conflict with char $2 (); below.
2659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2660 <limits.h> exists even on freestanding compilers. */
2662 #ifdef __STDC__
2663 # include <limits.h>
2664 #else
2665 # include <assert.h>
2666 #endif
2668 #undef $2
2670 /* Override any GCC internal prototype to avoid an error.
2671 Use char because int might match the return type of a GCC
2672 builtin and then its argument prototype would still apply. */
2673 #ifdef __cplusplus
2674 extern "C"
2675 #endif
2676 char $2 ();
2677 /* The GNU C library defines this for functions which it implements
2678 to always fail with ENOSYS. Some functions are actually named
2679 something starting with __ and the normal name is an alias. */
2680 #if defined __stub_$2 || defined __stub___$2
2681 choke me
2682 #endif
2685 main ()
2687 return $2 ();
2689 return 0;
2691 _ACEOF
2692 if ac_fn_c_try_link "$LINENO"; then :
2693 eval "$3=yes"
2694 else
2695 eval "$3=no"
2697 rm -f core conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
2700 eval ac_res=\$$3
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2702 $as_echo "$ac_res" >&6; }
2703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2705 } # ac_fn_c_check_func
2707 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2708 # ----------------------------------------------------
2709 # Tries to find if the field MEMBER exists in type AGGR, after including
2710 # INCLUDES, setting cache variable VAR accordingly.
2711 ac_fn_c_check_member ()
2713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2715 $as_echo_n "checking for $2.$3... " >&6; }
2716 if eval \${$4+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2723 main ()
2725 static $2 ac_aggr;
2726 if (ac_aggr.$3)
2727 return 0;
2729 return 0;
2731 _ACEOF
2732 if ac_fn_c_try_compile "$LINENO"; then :
2733 eval "$4=yes"
2734 else
2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h. */
2739 main ()
2741 static $2 ac_aggr;
2742 if (sizeof ac_aggr.$3)
2743 return 0;
2745 return 0;
2747 _ACEOF
2748 if ac_fn_c_try_compile "$LINENO"; then :
2749 eval "$4=yes"
2750 else
2751 eval "$4=no"
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757 eval ac_res=\$$4
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2759 $as_echo "$ac_res" >&6; }
2760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2762 } # ac_fn_c_check_member
2764 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2765 # -------------------------------------------
2766 # Tests whether TYPE exists after having included INCLUDES, setting cache
2767 # variable VAR accordingly.
2768 ac_fn_c_check_type ()
2770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2772 $as_echo_n "checking for $2... " >&6; }
2773 if eval \${$3+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 eval "$3=no"
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 :
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2794 main ()
2796 if (sizeof (($2)))
2797 return 0;
2799 return 0;
2801 _ACEOF
2802 if ac_fn_c_try_compile "$LINENO"; then :
2804 else
2805 eval "$3=yes"
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 eval ac_res=\$$3
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2813 $as_echo "$ac_res" >&6; }
2814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2816 } # ac_fn_c_check_type
2817 cat >config.log <<_ACEOF
2818 This file contains any messages produced by compilers while
2819 running configure, to aid debugging if configure makes a mistake.
2821 It was created by Wine $as_me 1.7.43, which was
2822 generated by GNU Autoconf 2.69. Invocation command line was
2824 $ $0 $@
2826 _ACEOF
2827 exec 5>>config.log
2829 cat <<_ASUNAME
2830 ## --------- ##
2831 ## Platform. ##
2832 ## --------- ##
2834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2841 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2843 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2844 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2846 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2847 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2848 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2849 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2851 _ASUNAME
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 $as_echo "PATH: $as_dir"
2859 done
2860 IFS=$as_save_IFS
2862 } >&5
2864 cat >&5 <<_ACEOF
2867 ## ----------- ##
2868 ## Core tests. ##
2869 ## ----------- ##
2871 _ACEOF
2874 # Keep a trace of the command line.
2875 # Strip out --no-create and --no-recursion so they do not pile up.
2876 # Strip out --silent because we don't want to record it for future runs.
2877 # Also quote any args containing shell meta-characters.
2878 # Make two passes to allow for proper duplicate-argument suppression.
2879 ac_configure_args=
2880 ac_configure_args0=
2881 ac_configure_args1=
2882 ac_must_keep_next=false
2883 for ac_pass in 1 2
2885 for ac_arg
2887 case $ac_arg in
2888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2890 | -silent | --silent | --silen | --sile | --sil)
2891 continue ;;
2892 *\'*)
2893 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2894 esac
2895 case $ac_pass in
2896 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2898 as_fn_append ac_configure_args1 " '$ac_arg'"
2899 if test $ac_must_keep_next = true; then
2900 ac_must_keep_next=false # Got value, back to normal.
2901 else
2902 case $ac_arg in
2903 *=* | --config-cache | -C | -disable-* | --disable-* \
2904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2906 | -with-* | --with-* | -without-* | --without-* | --x)
2907 case "$ac_configure_args0 " in
2908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2909 esac
2911 -* ) ac_must_keep_next=true ;;
2912 esac
2914 as_fn_append ac_configure_args " '$ac_arg'"
2916 esac
2917 done
2918 done
2919 { ac_configure_args0=; unset ac_configure_args0;}
2920 { ac_configure_args1=; unset ac_configure_args1;}
2922 # When interrupted or exit'd, cleanup temporary files, and complete
2923 # config.log. We remove comments because anyway the quotes in there
2924 # would cause problems or look ugly.
2925 # WARNING: Use '\'' to represent an apostrophe within the trap.
2926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2927 trap 'exit_status=$?
2928 # Save into config.log some information that might help in debugging.
2930 echo
2932 $as_echo "## ---------------- ##
2933 ## Cache variables. ##
2934 ## ---------------- ##"
2935 echo
2936 # The following way of writing the cache mishandles newlines in values,
2938 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2939 eval ac_val=\$$ac_var
2940 case $ac_val in #(
2941 *${as_nl}*)
2942 case $ac_var in #(
2943 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2944 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2945 esac
2946 case $ac_var in #(
2947 _ | IFS | as_nl) ;; #(
2948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2949 *) { eval $ac_var=; unset $ac_var;} ;;
2950 esac ;;
2951 esac
2952 done
2953 (set) 2>&1 |
2954 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2955 *${as_nl}ac_space=\ *)
2956 sed -n \
2957 "s/'\''/'\''\\\\'\'''\''/g;
2958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2959 ;; #(
2961 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2963 esac |
2964 sort
2966 echo
2968 $as_echo "## ----------------- ##
2969 ## Output variables. ##
2970 ## ----------------- ##"
2971 echo
2972 for ac_var in $ac_subst_vars
2974 eval ac_val=\$$ac_var
2975 case $ac_val in
2976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2977 esac
2978 $as_echo "$ac_var='\''$ac_val'\''"
2979 done | sort
2980 echo
2982 if test -n "$ac_subst_files"; then
2983 $as_echo "## ------------------- ##
2984 ## File substitutions. ##
2985 ## ------------------- ##"
2986 echo
2987 for ac_var in $ac_subst_files
2989 eval ac_val=\$$ac_var
2990 case $ac_val in
2991 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2992 esac
2993 $as_echo "$ac_var='\''$ac_val'\''"
2994 done | sort
2995 echo
2998 if test -s confdefs.h; then
2999 $as_echo "## ----------- ##
3000 ## confdefs.h. ##
3001 ## ----------- ##"
3002 echo
3003 cat confdefs.h
3004 echo
3006 test "$ac_signal" != 0 &&
3007 $as_echo "$as_me: caught signal $ac_signal"
3008 $as_echo "$as_me: exit $exit_status"
3009 } >&5
3010 rm -f core *.core core.conftest.* &&
3011 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3012 exit $exit_status
3014 for ac_signal in 1 2 13 15; do
3015 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3016 done
3017 ac_signal=0
3019 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3020 rm -f -r conftest* confdefs.h
3022 $as_echo "/* confdefs.h */" > confdefs.h
3024 # Predefined preprocessor variables.
3026 cat >>confdefs.h <<_ACEOF
3027 #define PACKAGE_NAME "$PACKAGE_NAME"
3028 _ACEOF
3030 cat >>confdefs.h <<_ACEOF
3031 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3032 _ACEOF
3034 cat >>confdefs.h <<_ACEOF
3035 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3036 _ACEOF
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE_STRING "$PACKAGE_STRING"
3040 _ACEOF
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3044 _ACEOF
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_URL "$PACKAGE_URL"
3048 _ACEOF
3051 # Let the site file select an alternate cache file if it wants to.
3052 # Prefer an explicitly selected file to automatically selected ones.
3053 ac_site_file1=NONE
3054 ac_site_file2=NONE
3055 if test -n "$CONFIG_SITE"; then
3056 # We do not want a PATH search for config.site.
3057 case $CONFIG_SITE in #((
3058 -*) ac_site_file1=./$CONFIG_SITE;;
3059 */*) ac_site_file1=$CONFIG_SITE;;
3060 *) ac_site_file1=./$CONFIG_SITE;;
3061 esac
3062 elif test "x$prefix" != xNONE; then
3063 ac_site_file1=$prefix/share/config.site
3064 ac_site_file2=$prefix/etc/config.site
3065 else
3066 ac_site_file1=$ac_default_prefix/share/config.site
3067 ac_site_file2=$ac_default_prefix/etc/config.site
3069 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3071 test "x$ac_site_file" = xNONE && continue
3072 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3074 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3075 sed 's/^/| /' "$ac_site_file" >&5
3076 . "$ac_site_file" \
3077 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079 as_fn_error $? "failed to load site script $ac_site_file
3080 See \`config.log' for more details" "$LINENO" 5; }
3082 done
3084 if test -r "$cache_file"; then
3085 # Some versions of bash will fail to source /dev/null (special files
3086 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3087 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3089 $as_echo "$as_me: loading cache $cache_file" >&6;}
3090 case $cache_file in
3091 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3092 *) . "./$cache_file";;
3093 esac
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3097 $as_echo "$as_me: creating cache $cache_file" >&6;}
3098 >$cache_file
3101 # Check that the precious variables saved in the cache have kept the same
3102 # value.
3103 ac_cache_corrupted=false
3104 for ac_var in $ac_precious_vars; do
3105 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3106 eval ac_new_set=\$ac_env_${ac_var}_set
3107 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3108 eval ac_new_val=\$ac_env_${ac_var}_value
3109 case $ac_old_set,$ac_new_set in
3110 set,)
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3112 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3113 ac_cache_corrupted=: ;;
3114 ,set)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3116 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3117 ac_cache_corrupted=: ;;
3118 ,);;
3120 if test "x$ac_old_val" != "x$ac_new_val"; then
3121 # differences in whitespace do not lead to failure.
3122 ac_old_val_w=`echo x $ac_old_val`
3123 ac_new_val_w=`echo x $ac_new_val`
3124 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3126 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3127 ac_cache_corrupted=:
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3130 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3131 eval $ac_var=\$ac_old_val
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3134 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3136 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3137 fi;;
3138 esac
3139 # Pass precious variables to config.status.
3140 if test "$ac_new_set" = set; then
3141 case $ac_new_val in
3142 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3143 *) ac_arg=$ac_var=$ac_new_val ;;
3144 esac
3145 case " $ac_configure_args " in
3146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3147 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3148 esac
3150 done
3151 if $ac_cache_corrupted; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3155 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3156 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3158 ## -------------------- ##
3159 ## Main body of script. ##
3160 ## -------------------- ##
3162 ac_ext=c
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 ac_config_headers="$ac_config_headers include/config.h"
3172 ac_aux_dir=
3173 for ac_dir in tools "$srcdir"/tools; do
3174 if test -f "$ac_dir/install-sh"; then
3175 ac_aux_dir=$ac_dir
3176 ac_install_sh="$ac_aux_dir/install-sh -c"
3177 break
3178 elif test -f "$ac_dir/install.sh"; then
3179 ac_aux_dir=$ac_dir
3180 ac_install_sh="$ac_aux_dir/install.sh -c"
3181 break
3182 elif test -f "$ac_dir/shtool"; then
3183 ac_aux_dir=$ac_dir
3184 ac_install_sh="$ac_aux_dir/shtool install -c"
3185 break
3187 done
3188 if test -z "$ac_aux_dir"; then
3189 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3192 # These three variables are undocumented and unsupported,
3193 # and are intended to be withdrawn in a future Autoconf release.
3194 # They can cause serious problems if a builder's source tree is in a directory
3195 # whose full name contains unusual characters.
3196 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3197 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3198 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3202 libwine_version="1.0"
3206 # Check whether --enable-win16 was given.
3207 if test "${enable_win16+set}" = set; then :
3208 enableval=$enable_win16;
3211 # Check whether --enable-win64 was given.
3212 if test "${enable_win64+set}" = set; then :
3213 enableval=$enable_win64;
3216 # Check whether --enable-tests was given.
3217 if test "${enable_tests+set}" = set; then :
3218 enableval=$enable_tests;
3221 # Check whether --enable-maintainer-mode was given.
3222 if test "${enable_maintainer_mode+set}" = set; then :
3223 enableval=$enable_maintainer_mode;
3228 # Check whether --with-alsa was given.
3229 if test "${with_alsa+set}" = set; then :
3230 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3234 # Check whether --with-capi was given.
3235 if test "${with_capi+set}" = set; then :
3236 withval=$with_capi;
3240 # Check whether --with-cms was given.
3241 if test "${with_cms+set}" = set; then :
3242 withval=$with_cms;
3246 # Check whether --with-coreaudio was given.
3247 if test "${with_coreaudio+set}" = set; then :
3248 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3252 # Check whether --with-cups was given.
3253 if test "${with_cups+set}" = set; then :
3254 withval=$with_cups;
3258 # Check whether --with-curses was given.
3259 if test "${with_curses+set}" = set; then :
3260 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3264 # Check whether --with-dbus was given.
3265 if test "${with_dbus+set}" = set; then :
3266 withval=$with_dbus;
3270 # Check whether --with-fontconfig was given.
3271 if test "${with_fontconfig+set}" = set; then :
3272 withval=$with_fontconfig;
3276 # Check whether --with-freetype was given.
3277 if test "${with_freetype+set}" = set; then :
3278 withval=$with_freetype;
3282 # Check whether --with-gettext was given.
3283 if test "${with_gettext+set}" = set; then :
3284 withval=$with_gettext;
3288 # Check whether --with-gettextpo was given.
3289 if test "${with_gettextpo+set}" = set; then :
3290 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3294 # Check whether --with-gphoto was given.
3295 if test "${with_gphoto+set}" = set; then :
3296 withval=$with_gphoto;
3300 # Check whether --with-glu was given.
3301 if test "${with_glu+set}" = set; then :
3302 withval=$with_glu;
3306 # Check whether --with-gnutls was given.
3307 if test "${with_gnutls+set}" = set; then :
3308 withval=$with_gnutls;
3312 # Check whether --with-gsm was given.
3313 if test "${with_gsm+set}" = set; then :
3314 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3318 # Check whether --with-gstreamer was given.
3319 if test "${with_gstreamer+set}" = set; then :
3320 withval=$with_gstreamer;
3324 # Check whether --with-hal was given.
3325 if test "${with_hal+set}" = set; then :
3326 withval=$with_hal;
3330 # Check whether --with-jpeg was given.
3331 if test "${with_jpeg+set}" = set; then :
3332 withval=$with_jpeg;
3336 # Check whether --with-ldap was given.
3337 if test "${with_ldap+set}" = set; then :
3338 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3342 # Check whether --with-mpg123 was given.
3343 if test "${with_mpg123+set}" = set; then :
3344 withval=$with_mpg123;
3348 # Check whether --with-netapi was given.
3349 if test "${with_netapi+set}" = set; then :
3350 withval=$with_netapi;
3354 # Check whether --with-openal was given.
3355 if test "${with_openal+set}" = set; then :
3356 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3360 # Check whether --with-opencl was given.
3361 if test "${with_opencl+set}" = set; then :
3362 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3366 # Check whether --with-opengl was given.
3367 if test "${with_opengl+set}" = set; then :
3368 withval=$with_opengl;
3372 # Check whether --with-osmesa was given.
3373 if test "${with_osmesa+set}" = set; then :
3374 withval=$with_osmesa;
3378 # Check whether --with-oss was given.
3379 if test "${with_oss+set}" = set; then :
3380 withval=$with_oss;
3384 # Check whether --with-pcap was given.
3385 if test "${with_pcap+set}" = set; then :
3386 withval=$with_pcap; if test "x$withval" = "xno"; then ac_cv_header_pcap_pcap_h=no; fi
3390 # Check whether --with-png was given.
3391 if test "${with_png+set}" = set; then :
3392 withval=$with_png;
3396 # Check whether --with-pthread was given.
3397 if test "${with_pthread+set}" = set; then :
3398 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3402 # Check whether --with-sane was given.
3403 if test "${with_sane+set}" = set; then :
3404 withval=$with_sane;
3408 # Check whether --with-tiff was given.
3409 if test "${with_tiff+set}" = set; then :
3410 withval=$with_tiff;
3414 # Check whether --with-v4l was given.
3415 if test "${with_v4l+set}" = set; then :
3416 withval=$with_v4l;
3420 # Check whether --with-xcomposite was given.
3421 if test "${with_xcomposite+set}" = set; then :
3422 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3426 # Check whether --with-xcursor was given.
3427 if test "${with_xcursor+set}" = set; then :
3428 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3432 # Check whether --with-xinerama was given.
3433 if test "${with_xinerama+set}" = set; then :
3434 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3438 # Check whether --with-xinput was given.
3439 if test "${with_xinput+set}" = set; then :
3440 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3444 # Check whether --with-xinput2 was given.
3445 if test "${with_xinput2+set}" = set; then :
3446 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3450 # Check whether --with-xml was given.
3451 if test "${with_xml+set}" = set; then :
3452 withval=$with_xml;
3456 # Check whether --with-xrandr was given.
3457 if test "${with_xrandr+set}" = set; then :
3458 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3462 # Check whether --with-xrender was given.
3463 if test "${with_xrender+set}" = set; then :
3464 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3468 # Check whether --with-xshape was given.
3469 if test "${with_xshape+set}" = set; then :
3470 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3474 # Check whether --with-xshm was given.
3475 if test "${with_xshm+set}" = set; then :
3476 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3480 # Check whether --with-xslt was given.
3481 if test "${with_xslt+set}" = set; then :
3482 withval=$with_xslt;
3486 # Check whether --with-xxf86vm was given.
3487 if test "${with_xxf86vm+set}" = set; then :
3488 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
3492 # Check whether --with-zlib was given.
3493 if test "${with_zlib+set}" = set; then :
3494 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3499 # Check whether --with-wine-tools was given.
3500 if test "${with_wine_tools+set}" = set; then :
3501 withval=$with_wine_tools;
3505 # Check whether --with-wine64 was given.
3506 if test "${with_wine64+set}" = set; then :
3507 withval=$with_wine64;
3511 # Make sure we can run config.sub.
3512 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3513 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3516 $as_echo_n "checking build system type... " >&6; }
3517 if ${ac_cv_build+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 ac_build_alias=$build_alias
3521 test "x$ac_build_alias" = x &&
3522 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3523 test "x$ac_build_alias" = x &&
3524 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3525 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3526 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3530 $as_echo "$ac_cv_build" >&6; }
3531 case $ac_cv_build in
3532 *-*-*) ;;
3533 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3534 esac
3535 build=$ac_cv_build
3536 ac_save_IFS=$IFS; IFS='-'
3537 set x $ac_cv_build
3538 shift
3539 build_cpu=$1
3540 build_vendor=$2
3541 shift; shift
3542 # Remember, the first character of IFS is used to create $*,
3543 # except with old shells:
3544 build_os=$*
3545 IFS=$ac_save_IFS
3546 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3550 $as_echo_n "checking host system type... " >&6; }
3551 if ${ac_cv_host+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test "x$host_alias" = x; then
3555 ac_cv_host=$ac_cv_build
3556 else
3557 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3563 $as_echo "$ac_cv_host" >&6; }
3564 case $ac_cv_host in
3565 *-*-*) ;;
3566 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3567 esac
3568 host=$ac_cv_host
3569 ac_save_IFS=$IFS; IFS='-'
3570 set x $ac_cv_host
3571 shift
3572 host_cpu=$1
3573 host_vendor=$2
3574 shift; shift
3575 # Remember, the first character of IFS is used to create $*,
3576 # except with old shells:
3577 host_os=$*
3578 IFS=$ac_save_IFS
3579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3583 case "$srcdir" in
3584 .) ;;
3585 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3586 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3587 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3588 fi ;;
3589 esac
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3593 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3594 set x ${MAKE-make}
3595 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3596 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 cat >conftest.make <<\_ACEOF
3600 SHELL = /bin/sh
3601 all:
3602 @echo '@@@%%%=$(MAKE)=@@@%%%'
3603 _ACEOF
3604 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3605 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3606 *@@@%%%=?*=@@@%%%*)
3607 eval ac_cv_prog_make_${ac_make}_set=yes;;
3609 eval ac_cv_prog_make_${ac_make}_set=no;;
3610 esac
3611 rm -f conftest.make
3613 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3615 $as_echo "yes" >&6; }
3616 SET_MAKE=
3617 else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 SET_MAKE="MAKE=${MAKE-make}"
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628 if test -n "$ac_tool_prefix"; then
3629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3630 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_CC+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC="$CC" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3650 done
3651 done
3652 IFS=$as_save_IFS
3656 CC=$ac_cv_prog_CC
3657 if test -n "$CC"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659 $as_echo "$CC" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3667 if test -z "$ac_cv_prog_CC"; then
3668 ac_ct_CC=$CC
3669 # Extract the first word of "gcc", so it can be a program name with args.
3670 set dummy gcc; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 if test -n "$ac_ct_CC"; then
3677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3678 else
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686 ac_cv_prog_ac_ct_CC="gcc"
3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3688 break 2
3690 done
3691 done
3692 IFS=$as_save_IFS
3696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3697 if test -n "$ac_ct_CC"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3699 $as_echo "$ac_ct_CC" >&6; }
3700 else
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3705 if test "x$ac_ct_CC" = x; then
3706 CC=""
3707 else
3708 case $cross_compiling:$ac_tool_warned in
3709 yes:)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3712 ac_tool_warned=yes ;;
3713 esac
3714 CC=$ac_ct_CC
3716 else
3717 CC="$ac_cv_prog_CC"
3720 if test -z "$CC"; then
3721 if test -n "$ac_tool_prefix"; then
3722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3723 set dummy ${ac_tool_prefix}cc; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_prog_CC+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 if test -n "$CC"; then
3730 ac_cv_prog_CC="$CC" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_CC="${ac_tool_prefix}cc"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3743 done
3744 done
3745 IFS=$as_save_IFS
3749 CC=$ac_cv_prog_CC
3750 if test -n "$CC"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752 $as_echo "$CC" >&6; }
3753 else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3761 if test -z "$CC"; then
3762 # Extract the first word of "cc", so it can be a program name with args.
3763 set dummy cc; ac_word=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if ${ac_cv_prog_CC+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 if test -n "$CC"; then
3770 ac_cv_prog_CC="$CC" # Let the user override the test.
3771 else
3772 ac_prog_rejected=no
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3781 ac_prog_rejected=yes
3782 continue
3784 ac_cv_prog_CC="cc"
3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 break 2
3788 done
3789 done
3790 IFS=$as_save_IFS
3792 if test $ac_prog_rejected = yes; then
3793 # We found a bogon in the path, so make sure we never use it.
3794 set dummy $ac_cv_prog_CC
3795 shift
3796 if test $# != 0; then
3797 # We chose a different compiler from the bogus one.
3798 # However, it has the same basename, so the bogon will be chosen
3799 # first if we set CC to just the basename; use the full file name.
3800 shift
3801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3806 CC=$ac_cv_prog_CC
3807 if test -n "$CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3809 $as_echo "$CC" >&6; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3817 if test -z "$CC"; then
3818 if test -n "$ac_tool_prefix"; then
3819 for ac_prog in cl.exe
3821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if ${ac_cv_prog_CC+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 if test -n "$CC"; then
3829 ac_cv_prog_CC="$CC" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3834 IFS=$as_save_IFS
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 break 2
3842 done
3843 done
3844 IFS=$as_save_IFS
3848 CC=$ac_cv_prog_CC
3849 if test -n "$CC"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3851 $as_echo "$CC" >&6; }
3852 else
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3858 test -n "$CC" && break
3859 done
3861 if test -z "$CC"; then
3862 ac_ct_CC=$CC
3863 for ac_prog in cl.exe
3865 # Extract the first word of "$ac_prog", so it can be a program name with args.
3866 set dummy $ac_prog; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 if test -n "$ac_ct_CC"; then
3873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_ac_ct_CC="$ac_prog"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3886 done
3887 done
3888 IFS=$as_save_IFS
3892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3893 if test -n "$ac_ct_CC"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3895 $as_echo "$ac_ct_CC" >&6; }
3896 else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3902 test -n "$ac_ct_CC" && break
3903 done
3905 if test "x$ac_ct_CC" = x; then
3906 CC=""
3907 else
3908 case $cross_compiling:$ac_tool_warned in
3909 yes:)
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3912 ac_tool_warned=yes ;;
3913 esac
3914 CC=$ac_ct_CC
3921 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923 as_fn_error $? "no acceptable C compiler found in \$PATH
3924 See \`config.log' for more details" "$LINENO" 5; }
3926 # Provide some information about the compiler.
3927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3928 set X $ac_compile
3929 ac_compiler=$2
3930 for ac_option in --version -v -V -qversion; do
3931 { { ac_try="$ac_compiler $ac_option >&5"
3932 case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935 esac
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 $as_echo "$ac_try_echo"; } >&5
3938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3939 ac_status=$?
3940 if test -s conftest.err; then
3941 sed '10a\
3942 ... rest of stderr output deleted ...
3943 10q' conftest.err >conftest.er1
3944 cat conftest.er1 >&5
3946 rm -f conftest.er1 conftest.err
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }
3949 done
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 main ()
3959 return 0;
3961 _ACEOF
3962 ac_clean_files_save=$ac_clean_files
3963 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3964 # Try to create an executable without -o first, disregard a.out.
3965 # It will help us diagnose broken compilers, and finding out an intuition
3966 # of exeext.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3968 $as_echo_n "checking whether the C compiler works... " >&6; }
3969 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3971 # The possible output files:
3972 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3974 ac_rmfiles=
3975 for ac_file in $ac_files
3977 case $ac_file in
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3980 esac
3981 done
3982 rm -f $ac_rmfiles
3984 if { { ac_try="$ac_link_default"
3985 case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988 esac
3989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3990 $as_echo "$ac_try_echo"; } >&5
3991 (eval "$ac_link_default") 2>&5
3992 ac_status=$?
3993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }; then :
3995 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3996 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3997 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3998 # so that the user can short-circuit this test for compilers unknown to
3999 # Autoconf.
4000 for ac_file in $ac_files ''
4002 test -f "$ac_file" || continue
4003 case $ac_file in
4004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4006 [ab].out )
4007 # We found the default executable, but exeext='' is most
4008 # certainly right.
4009 break;;
4010 *.* )
4011 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4012 then :; else
4013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4015 # We set ac_cv_exeext here because the later test for it is not
4016 # safe: cross compilers may not add the suffix if given an `-o'
4017 # argument, so we may need to know it at that point already.
4018 # Even if this section looks crufty: it has the advantage of
4019 # actually working.
4020 break;;
4022 break;;
4023 esac
4024 done
4025 test "$ac_cv_exeext" = no && ac_cv_exeext=
4027 else
4028 ac_file=''
4030 if test -z "$ac_file"; then :
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 $as_echo "no" >&6; }
4033 $as_echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error 77 "C compiler cannot create executables
4039 See \`config.log' for more details" "$LINENO" 5; }
4040 else
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4042 $as_echo "yes" >&6; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4045 $as_echo_n "checking for C compiler default output file name... " >&6; }
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4047 $as_echo "$ac_file" >&6; }
4048 ac_exeext=$ac_cv_exeext
4050 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4051 ac_clean_files=$ac_clean_files_save
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4053 $as_echo_n "checking for suffix of executables... " >&6; }
4054 if { { ac_try="$ac_link"
4055 case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058 esac
4059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060 $as_echo "$ac_try_echo"; } >&5
4061 (eval "$ac_link") 2>&5
4062 ac_status=$?
4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }; then :
4065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4067 # work properly (i.e., refer to `conftest.exe'), while it won't with
4068 # `rm'.
4069 for ac_file in conftest.exe conftest conftest.*; do
4070 test -f "$ac_file" || continue
4071 case $ac_file in
4072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4074 break;;
4075 * ) break;;
4076 esac
4077 done
4078 else
4079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4082 See \`config.log' for more details" "$LINENO" 5; }
4084 rm -f conftest conftest$ac_cv_exeext
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4086 $as_echo "$ac_cv_exeext" >&6; }
4088 rm -f conftest.$ac_ext
4089 EXEEXT=$ac_cv_exeext
4090 ac_exeext=$EXEEXT
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093 #include <stdio.h>
4095 main ()
4097 FILE *f = fopen ("conftest.out", "w");
4098 return ferror (f) || fclose (f) != 0;
4101 return 0;
4103 _ACEOF
4104 ac_clean_files="$ac_clean_files conftest.out"
4105 # Check that the compiler produces executables we can run. If not, either
4106 # the compiler is broken, or we cross compile.
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4108 $as_echo_n "checking whether we are cross compiling... " >&6; }
4109 if test "$cross_compiling" != yes; then
4110 { { ac_try="$ac_link"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_link") 2>&5
4118 ac_status=$?
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }
4121 if { ac_try='./conftest$ac_cv_exeext'
4122 { { case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4125 esac
4126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127 $as_echo "$ac_try_echo"; } >&5
4128 (eval "$ac_try") 2>&5
4129 ac_status=$?
4130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }; }; then
4132 cross_compiling=no
4133 else
4134 if test "$cross_compiling" = maybe; then
4135 cross_compiling=yes
4136 else
4137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4139 as_fn_error $? "cannot run C compiled programs.
4140 If you meant to cross compile, use \`--host'.
4141 See \`config.log' for more details" "$LINENO" 5; }
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4146 $as_echo "$cross_compiling" >&6; }
4148 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4149 ac_clean_files=$ac_clean_files_save
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4151 $as_echo_n "checking for suffix of object files... " >&6; }
4152 if ${ac_cv_objext+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4159 main ()
4163 return 0;
4165 _ACEOF
4166 rm -f conftest.o conftest.obj
4167 if { { ac_try="$ac_compile"
4168 case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171 esac
4172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173 $as_echo "$ac_try_echo"; } >&5
4174 (eval "$ac_compile") 2>&5
4175 ac_status=$?
4176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177 test $ac_status = 0; }; then :
4178 for ac_file in conftest.o conftest.obj conftest.*; do
4179 test -f "$ac_file" || continue;
4180 case $ac_file in
4181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4183 break;;
4184 esac
4185 done
4186 else
4187 $as_echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 as_fn_error $? "cannot compute suffix of object files: cannot compile
4193 See \`config.log' for more details" "$LINENO" 5; }
4195 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4198 $as_echo "$ac_cv_objext" >&6; }
4199 OBJEXT=$ac_cv_objext
4200 ac_objext=$OBJEXT
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4202 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4203 if ${ac_cv_c_compiler_gnu+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4210 main ()
4212 #ifndef __GNUC__
4213 choke me
4214 #endif
4217 return 0;
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_compiler_gnu=yes
4222 else
4223 ac_compiler_gnu=no
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4230 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4231 if test $ac_compiler_gnu = yes; then
4232 GCC=yes
4233 else
4234 GCC=
4236 ac_test_CFLAGS=${CFLAGS+set}
4237 ac_save_CFLAGS=$CFLAGS
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4239 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4240 if ${ac_cv_prog_cc_g+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 ac_save_c_werror_flag=$ac_c_werror_flag
4244 ac_c_werror_flag=yes
4245 ac_cv_prog_cc_g=no
4246 CFLAGS="-g"
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4251 main ()
4255 return 0;
4257 _ACEOF
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259 ac_cv_prog_cc_g=yes
4260 else
4261 CFLAGS=""
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4266 main ()
4270 return 0;
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"; then :
4275 else
4276 ac_c_werror_flag=$ac_save_c_werror_flag
4277 CFLAGS="-g"
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4282 main ()
4286 return 0;
4288 _ACEOF
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 ac_cv_prog_cc_g=yes
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 ac_c_werror_flag=$ac_save_c_werror_flag
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4300 $as_echo "$ac_cv_prog_cc_g" >&6; }
4301 if test "$ac_test_CFLAGS" = set; then
4302 CFLAGS=$ac_save_CFLAGS
4303 elif test $ac_cv_prog_cc_g = yes; then
4304 if test "$GCC" = yes; then
4305 CFLAGS="-g -O2"
4306 else
4307 CFLAGS="-g"
4309 else
4310 if test "$GCC" = yes; then
4311 CFLAGS="-O2"
4312 else
4313 CFLAGS=
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4318 if ${ac_cv_prog_cc_c89+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 ac_cv_prog_cc_c89=no
4322 ac_save_CC=$CC
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #include <stdarg.h>
4326 #include <stdio.h>
4327 struct stat;
4328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4329 struct buf { int x; };
4330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4331 static char *e (p, i)
4332 char **p;
4333 int i;
4335 return p[i];
4337 static char *f (char * (*g) (char **, int), char **p, ...)
4339 char *s;
4340 va_list v;
4341 va_start (v,p);
4342 s = g (p, va_arg (v,int));
4343 va_end (v);
4344 return s;
4347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4348 function prototypes and stuff, but not '\xHH' hex character constants.
4349 These don't provoke an error unfortunately, instead are silently treated
4350 as 'x'. The following induces an error, until -std is added to get
4351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4352 array size at least. It's necessary to write '\x00'==0 to get something
4353 that's true only with -std. */
4354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4357 inside strings and character constants. */
4358 #define FOO(x) 'x'
4359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4361 int test (int i, double x);
4362 struct s1 {int (*f) (int a);};
4363 struct s2 {int (*f) (double a);};
4364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4365 int argc;
4366 char **argv;
4368 main ()
4370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4372 return 0;
4374 _ACEOF
4375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4378 CC="$ac_save_CC $ac_arg"
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380 ac_cv_prog_cc_c89=$ac_arg
4382 rm -f core conftest.err conftest.$ac_objext
4383 test "x$ac_cv_prog_cc_c89" != "xno" && break
4384 done
4385 rm -f conftest.$ac_ext
4386 CC=$ac_save_CC
4389 # AC_CACHE_VAL
4390 case "x$ac_cv_prog_cc_c89" in
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4393 $as_echo "none needed" >&6; } ;;
4394 xno)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4396 $as_echo "unsupported" >&6; } ;;
4398 CC="$CC $ac_cv_prog_cc_c89"
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4400 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4401 esac
4402 if test "x$ac_cv_prog_cc_c89" != xno; then :
4406 ac_ext=c
4407 ac_cpp='$CPP $CPPFLAGS'
4408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412 ac_ext=cpp
4413 ac_cpp='$CXXCPP $CPPFLAGS'
4414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4417 if test -z "$CXX"; then
4418 if test -n "$CCC"; then
4419 CXX=$CCC
4420 else
4421 if test -n "$ac_tool_prefix"; then
4422 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if ${ac_cv_prog_CXX+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 if test -n "$CXX"; then
4432 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 break 2
4445 done
4446 done
4447 IFS=$as_save_IFS
4451 CXX=$ac_cv_prog_CXX
4452 if test -n "$CXX"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4454 $as_echo "$CXX" >&6; }
4455 else
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4461 test -n "$CXX" && break
4462 done
4464 if test -z "$CXX"; then
4465 ac_ct_CXX=$CXX
4466 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4468 # Extract the first word of "$ac_prog", so it can be a program name with args.
4469 set dummy $ac_prog; ac_word=$2
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if test -n "$ac_ct_CXX"; then
4476 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_prog_ac_ct_CXX="$ac_prog"
4486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4489 done
4490 done
4491 IFS=$as_save_IFS
4495 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4496 if test -n "$ac_ct_CXX"; then
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4498 $as_echo "$ac_ct_CXX" >&6; }
4499 else
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501 $as_echo "no" >&6; }
4505 test -n "$ac_ct_CXX" && break
4506 done
4508 if test "x$ac_ct_CXX" = x; then
4509 CXX="g++"
4510 else
4511 case $cross_compiling:$ac_tool_warned in
4512 yes:)
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4515 ac_tool_warned=yes ;;
4516 esac
4517 CXX=$ac_ct_CXX
4523 # Provide some information about the compiler.
4524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4525 set X $ac_compile
4526 ac_compiler=$2
4527 for ac_option in --version -v -V -qversion; do
4528 { { ac_try="$ac_compiler $ac_option >&5"
4529 case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 $as_echo "$ac_try_echo"; } >&5
4535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4536 ac_status=$?
4537 if test -s conftest.err; then
4538 sed '10a\
4539 ... rest of stderr output deleted ...
4540 10q' conftest.err >conftest.er1
4541 cat conftest.er1 >&5
4543 rm -f conftest.er1 conftest.err
4544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }
4546 done
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4549 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4550 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4557 main ()
4559 #ifndef __GNUC__
4560 choke me
4561 #endif
4564 return 0;
4566 _ACEOF
4567 if ac_fn_cxx_try_compile "$LINENO"; then :
4568 ac_compiler_gnu=yes
4569 else
4570 ac_compiler_gnu=no
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4577 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4578 if test $ac_compiler_gnu = yes; then
4579 GXX=yes
4580 else
4581 GXX=
4583 ac_test_CXXFLAGS=${CXXFLAGS+set}
4584 ac_save_CXXFLAGS=$CXXFLAGS
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4586 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4587 if ${ac_cv_prog_cxx_g+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4591 ac_cxx_werror_flag=yes
4592 ac_cv_prog_cxx_g=no
4593 CXXFLAGS="-g"
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4598 main ()
4602 return 0;
4604 _ACEOF
4605 if ac_fn_cxx_try_compile "$LINENO"; then :
4606 ac_cv_prog_cxx_g=yes
4607 else
4608 CXXFLAGS=""
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4613 main ()
4617 return 0;
4619 _ACEOF
4620 if ac_fn_cxx_try_compile "$LINENO"; then :
4622 else
4623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4624 CXXFLAGS="-g"
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4629 main ()
4633 return 0;
4635 _ACEOF
4636 if ac_fn_cxx_try_compile "$LINENO"; then :
4637 ac_cv_prog_cxx_g=yes
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4647 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4648 if test "$ac_test_CXXFLAGS" = set; then
4649 CXXFLAGS=$ac_save_CXXFLAGS
4650 elif test $ac_cv_prog_cxx_g = yes; then
4651 if test "$GXX" = yes; then
4652 CXXFLAGS="-g -O2"
4653 else
4654 CXXFLAGS="-g"
4656 else
4657 if test "$GXX" = yes; then
4658 CXXFLAGS="-O2"
4659 else
4660 CXXFLAGS=
4663 ac_ext=c
4664 ac_cpp='$CPP $CPPFLAGS'
4665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4669 if test -n "$ac_tool_prefix"; then
4670 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4671 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if ${ac_cv_prog_CPPBIN+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$CPPBIN"; then
4678 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4691 done
4692 done
4693 IFS=$as_save_IFS
4697 CPPBIN=$ac_cv_prog_CPPBIN
4698 if test -n "$CPPBIN"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4700 $as_echo "$CPPBIN" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4708 if test -z "$ac_cv_prog_CPPBIN"; then
4709 ac_ct_CPPBIN=$CPPBIN
4710 # Extract the first word of "cpp", so it can be a program name with args.
4711 set dummy cpp; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if test -n "$ac_ct_CPPBIN"; then
4718 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_ac_ct_CPPBIN="cpp"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4731 done
4732 done
4733 IFS=$as_save_IFS
4737 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4738 if test -n "$ac_ct_CPPBIN"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4740 $as_echo "$ac_ct_CPPBIN" >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4746 if test "x$ac_ct_CPPBIN" = x; then
4747 CPPBIN="cpp"
4748 else
4749 case $cross_compiling:$ac_tool_warned in
4750 yes:)
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4753 ac_tool_warned=yes ;;
4754 esac
4755 CPPBIN=$ac_ct_CPPBIN
4757 else
4758 CPPBIN="$ac_cv_prog_CPPBIN"
4762 cat >>confdefs.h <<_ACEOF
4763 #define EXEEXT "$ac_exeext"
4764 _ACEOF
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}ld; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if ${ac_cv_prog_LD+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -n "$LD"; then
4775 ac_cv_prog_LD="$LD" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784 ac_cv_prog_LD="${ac_tool_prefix}ld"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4788 done
4789 done
4790 IFS=$as_save_IFS
4794 LD=$ac_cv_prog_LD
4795 if test -n "$LD"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4797 $as_echo "$LD" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4805 if test -z "$ac_cv_prog_LD"; then
4806 ac_ct_LD=$LD
4807 # Extract the first word of "ld", so it can be a program name with args.
4808 set dummy ld; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_prog_ac_ct_LD+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -n "$ac_ct_LD"; then
4815 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824 ac_cv_prog_ac_ct_LD="ld"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4828 done
4829 done
4830 IFS=$as_save_IFS
4834 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4835 if test -n "$ac_ct_LD"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
4837 $as_echo "$ac_ct_LD" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4843 if test "x$ac_ct_LD" = x; then
4844 LD=""
4845 else
4846 case $cross_compiling:$ac_tool_warned in
4847 yes:)
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850 ac_tool_warned=yes ;;
4851 esac
4852 LD=$ac_ct_LD
4854 else
4855 LD="$ac_cv_prog_LD"
4859 case $host in
4860 *-darwin*)
4861 if test "x$enable_win64" = "xyes"
4862 then
4863 CC="$CC -m64"
4864 CXX="$CXX -m64"
4865 host_cpu="x86_64"
4866 notice_platform="64-bit "
4867 TARGETFLAGS="-m64"
4869 else
4870 CC="$CC -m32"
4871 CXX="$CXX -m32"
4872 host_cpu="i386"
4873 notice_platform="32-bit "
4874 TARGETFLAGS="-m32"
4876 enable_win16=${enable_win16:-yes}
4878 with_fontconfig=${with_fontconfig:-no}
4880 x86_64*|amd64*)
4881 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4882 then
4883 CC="$CC -m32"
4884 CXX="$CXX -m32"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4886 $as_echo_n "checking whether $CC works... " >&6; }
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4892 main ()
4896 return 0;
4898 _ACEOF
4899 if ac_fn_c_try_link "$LINENO"; then :
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4901 $as_echo "yes" >&6; }
4902 else
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4905 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4907 rm -f core conftest.err conftest.$ac_objext \
4908 conftest$ac_exeext conftest.$ac_ext
4909 host_cpu="i386"
4910 notice_platform="32-bit "
4911 TARGETFLAGS="-m32"
4913 enable_win16=${enable_win16:-yes}
4914 else
4915 if test "x${GCC}" = "xyes"
4916 then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4918 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921 #include <stdarg.h>
4923 main ()
4925 void func(__builtin_ms_va_list *args);
4927 return 0;
4929 _ACEOF
4930 if ac_fn_c_try_compile "$LINENO"; then :
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4932 $as_echo "yes" >&6; }
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4936 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 host_cpu="x86_64"
4941 TARGETFLAGS="-m64"
4945 arm*)
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4947 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 int ac_test(int i) { return i; }
4952 main ()
4954 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4956 return 0;
4958 _ACEOF
4959 if ac_fn_c_try_link "$LINENO"; then :
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4961 $as_echo "yes" >&6; }
4962 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4965 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4967 rm -f core conftest.err conftest.$ac_objext \
4968 conftest$ac_exeext conftest.$ac_ext
4969 CFLAGS="$CFLAGS -marm"
4970 TARGETFLAGS="-marm"
4973 *-mingw32*|*-cygwin*)
4974 enable_win16=${enable_win16:-no}
4975 CFLAGS="$CFLAGS -D_WIN32"
4977 i[3456789]86*)
4978 enable_win16=${enable_win16:-yes}
4980 esac
4982 enable_win16=${enable_win16:-no}
4983 enable_win64=${enable_win64:-no}
4985 enable_winetest=${enable_winetest:-$enable_tests}
4987 if test -n "$with_wine64"
4988 then
4989 if test "x$enable_win64" = "xyes"
4990 then
4991 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4992 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4994 enable_fonts=${enable_fonts:-no}
4995 enable_server=${enable_server:-no}
4996 elif test "x$enable_win64" = "xyes"
4997 then
4998 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
5002 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
5003 if ${wine_cv_toolsdir+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 wine_cv_toolsdir="$with_wine_tools"
5007 if test -z "$with_wine_tools"; then
5008 if test "$cross_compiling" = "yes"; then
5009 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
5010 elif test -n "$with_wine64"; then
5011 wine_cv_toolsdir="$with_wine64"
5014 if test -z "$wine_cv_toolsdir"; then
5015 wine_makedep=tools/makedep
5016 wine_cv_toolsdir="\$(top_builddir)"
5017 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
5018 wine_makedep=$wine_cv_toolsdir/tools/makedep
5019 case "$wine_cv_toolsdir" in
5020 /*) ;;
5021 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
5022 esac
5023 enable_tools=${enable_tools:-no}
5024 test -f "$wine_makedep" || as_fn_error $? "the Wine tools have not yet been built in $wine_cv_toolsdir" "$LINENO" 5
5025 else
5026 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
5030 $as_echo "$wine_cv_toolsdir" >&6; }
5031 TOOLSDIR=$wine_cv_toolsdir
5033 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
5034 then
5035 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
5039 for ac_prog in flex
5041 # Extract the first word of "$ac_prog", so it can be a program name with args.
5042 set dummy $ac_prog; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_FLEX+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$FLEX"; then
5049 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_FLEX="$ac_prog"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5064 IFS=$as_save_IFS
5068 FLEX=$ac_cv_prog_FLEX
5069 if test -n "$FLEX"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5071 $as_echo "$FLEX" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 test -n "$FLEX" && break
5079 done
5080 test -n "$FLEX" || FLEX="none"
5082 if test "$FLEX" = "none"
5083 then
5084 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
5087 $as_echo_n "checking whether flex is recent enough... " >&6; }
5088 cat >conftest.l <<EOF
5089 %top{
5090 #include "prediluvian.h"
5094 if $FLEX -t conftest.l >/dev/null 2>&5
5095 then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097 $as_echo "yes" >&6; }
5098 else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
5104 for ac_prog in bison
5106 # Extract the first word of "$ac_prog", so it can be a program name with args.
5107 set dummy $ac_prog; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_BISON+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$BISON"; then
5114 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_BISON="$ac_prog"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5127 done
5128 done
5129 IFS=$as_save_IFS
5133 BISON=$ac_cv_prog_BISON
5134 if test -n "$BISON"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5136 $as_echo "$BISON" >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5143 test -n "$BISON" && break
5144 done
5145 test -n "$BISON" || BISON="none"
5147 if test "$BISON" = "none"
5148 then
5149 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
5152 if test -n "$ac_tool_prefix"; then
5153 for ac_prog in ar gar
5155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_prog_AR+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 if test -n "$AR"; then
5163 ac_cv_prog_AR="$AR" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5176 done
5177 done
5178 IFS=$as_save_IFS
5182 AR=$ac_cv_prog_AR
5183 if test -n "$AR"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5185 $as_echo "$AR" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5192 test -n "$AR" && break
5193 done
5195 if test -z "$AR"; then
5196 ac_ct_AR=$AR
5197 for ac_prog in ar gar
5199 # Extract the first word of "$ac_prog", so it can be a program name with args.
5200 set dummy $ac_prog; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if test -n "$ac_ct_AR"; then
5207 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_ac_ct_AR="$ac_prog"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5220 done
5221 done
5222 IFS=$as_save_IFS
5226 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5227 if test -n "$ac_ct_AR"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5229 $as_echo "$ac_ct_AR" >&6; }
5230 else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5236 test -n "$ac_ct_AR" && break
5237 done
5239 if test "x$ac_ct_AR" = x; then
5240 AR="ar"
5241 else
5242 case $cross_compiling:$ac_tool_warned in
5243 yes:)
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5246 ac_tool_warned=yes ;;
5247 esac
5248 AR=$ac_ct_AR
5252 if test -n "$ac_tool_prefix"; then
5253 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5254 set dummy ${ac_tool_prefix}strip; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_prog_STRIP+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 if test -n "$STRIP"; then
5261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5274 done
5275 done
5276 IFS=$as_save_IFS
5280 STRIP=$ac_cv_prog_STRIP
5281 if test -n "$STRIP"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5283 $as_echo "$STRIP" >&6; }
5284 else
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5291 if test -z "$ac_cv_prog_STRIP"; then
5292 ac_ct_STRIP=$STRIP
5293 # Extract the first word of "strip", so it can be a program name with args.
5294 set dummy strip; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$ac_ct_STRIP"; then
5301 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_ac_ct_STRIP="strip"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5316 IFS=$as_save_IFS
5320 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5321 if test -n "$ac_ct_STRIP"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5323 $as_echo "$ac_ct_STRIP" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5329 if test "x$ac_ct_STRIP" = x; then
5330 STRIP="strip"
5331 else
5332 case $cross_compiling:$ac_tool_warned in
5333 yes:)
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5336 ac_tool_warned=yes ;;
5337 esac
5338 STRIP=$ac_ct_STRIP
5340 else
5341 STRIP="$ac_cv_prog_STRIP"
5344 ARFLAGS=rc
5346 if test -n "$ac_tool_prefix"; then
5347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if ${ac_cv_prog_RANLIB+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 if test -n "$RANLIB"; then
5355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5368 done
5369 done
5370 IFS=$as_save_IFS
5374 RANLIB=$ac_cv_prog_RANLIB
5375 if test -n "$RANLIB"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5377 $as_echo "$RANLIB" >&6; }
5378 else
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5385 if test -z "$ac_cv_prog_RANLIB"; then
5386 ac_ct_RANLIB=$RANLIB
5387 # Extract the first word of "ranlib", so it can be a program name with args.
5388 set dummy ranlib; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$ac_ct_RANLIB"; then
5395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_ac_ct_RANLIB="ranlib"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5410 IFS=$as_save_IFS
5414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5415 if test -n "$ac_ct_RANLIB"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5417 $as_echo "$ac_ct_RANLIB" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5423 if test "x$ac_ct_RANLIB" = x; then
5424 RANLIB=":"
5425 else
5426 case $cross_compiling:$ac_tool_warned in
5427 yes:)
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5430 ac_tool_warned=yes ;;
5431 esac
5432 RANLIB=$ac_ct_RANLIB
5434 else
5435 RANLIB="$ac_cv_prog_RANLIB"
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5439 $as_echo_n "checking whether ln -s works... " >&6; }
5440 LN_S=$as_ln_s
5441 if test "$LN_S" = "ln -s"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5443 $as_echo "yes" >&6; }
5444 else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5446 $as_echo "no, using $LN_S" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5450 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5451 if ${ac_cv_path_GREP+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -z "$GREP"; then
5455 ac_path_GREP_found=false
5456 # Loop through the user's path and test for each of PROGNAME-LIST
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_prog in grep ggrep; do
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5465 as_fn_executable_p "$ac_path_GREP" || continue
5466 # Check for GNU ac_path_GREP and select it if it is found.
5467 # Check for GNU $ac_path_GREP
5468 case `"$ac_path_GREP" --version 2>&1` in
5469 *GNU*)
5470 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5472 ac_count=0
5473 $as_echo_n 0123456789 >"conftest.in"
5474 while :
5476 cat "conftest.in" "conftest.in" >"conftest.tmp"
5477 mv "conftest.tmp" "conftest.in"
5478 cp "conftest.in" "conftest.nl"
5479 $as_echo 'GREP' >> "conftest.nl"
5480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5482 as_fn_arith $ac_count + 1 && ac_count=$as_val
5483 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5484 # Best one so far, save it but keep looking for a better one
5485 ac_cv_path_GREP="$ac_path_GREP"
5486 ac_path_GREP_max=$ac_count
5488 # 10*(2^10) chars as input seems more than enough
5489 test $ac_count -gt 10 && break
5490 done
5491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5492 esac
5494 $ac_path_GREP_found && break 3
5495 done
5496 done
5497 done
5498 IFS=$as_save_IFS
5499 if test -z "$ac_cv_path_GREP"; then
5500 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5502 else
5503 ac_cv_path_GREP=$GREP
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5508 $as_echo "$ac_cv_path_GREP" >&6; }
5509 GREP="$ac_cv_path_GREP"
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5513 $as_echo_n "checking for egrep... " >&6; }
5514 if ${ac_cv_path_EGREP+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5518 then ac_cv_path_EGREP="$GREP -E"
5519 else
5520 if test -z "$EGREP"; then
5521 ac_path_EGREP_found=false
5522 # Loop through the user's path and test for each of PROGNAME-LIST
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_prog in egrep; do
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5531 as_fn_executable_p "$ac_path_EGREP" || continue
5532 # Check for GNU ac_path_EGREP and select it if it is found.
5533 # Check for GNU $ac_path_EGREP
5534 case `"$ac_path_EGREP" --version 2>&1` in
5535 *GNU*)
5536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5538 ac_count=0
5539 $as_echo_n 0123456789 >"conftest.in"
5540 while :
5542 cat "conftest.in" "conftest.in" >"conftest.tmp"
5543 mv "conftest.tmp" "conftest.in"
5544 cp "conftest.in" "conftest.nl"
5545 $as_echo 'EGREP' >> "conftest.nl"
5546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5548 as_fn_arith $ac_count + 1 && ac_count=$as_val
5549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5550 # Best one so far, save it but keep looking for a better one
5551 ac_cv_path_EGREP="$ac_path_EGREP"
5552 ac_path_EGREP_max=$ac_count
5554 # 10*(2^10) chars as input seems more than enough
5555 test $ac_count -gt 10 && break
5556 done
5557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5558 esac
5560 $ac_path_EGREP_found && break 3
5561 done
5562 done
5563 done
5564 IFS=$as_save_IFS
5565 if test -z "$ac_cv_path_EGREP"; then
5566 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5568 else
5569 ac_cv_path_EGREP=$EGREP
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5575 $as_echo "$ac_cv_path_EGREP" >&6; }
5576 EGREP="$ac_cv_path_EGREP"
5579 # Extract the first word of "ldconfig", so it can be a program name with args.
5580 set dummy ldconfig; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_path_LDCONFIG+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 case $LDCONFIG in
5587 [\\/]* | ?:[\\/]*)
5588 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in /sbin /usr/sbin $PATH
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5602 done
5603 done
5604 IFS=$as_save_IFS
5606 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5608 esac
5610 LDCONFIG=$ac_cv_path_LDCONFIG
5611 if test -n "$LDCONFIG"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5613 $as_echo "$LDCONFIG" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5620 for ac_prog in msgfmt
5622 # Extract the first word of "$ac_prog", so it can be a program name with args.
5623 set dummy $ac_prog; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_MSGFMT+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if test -n "$MSGFMT"; then
5630 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_MSGFMT="$ac_prog"
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5643 done
5644 done
5645 IFS=$as_save_IFS
5649 MSGFMT=$ac_cv_prog_MSGFMT
5650 if test -n "$MSGFMT"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5652 $as_echo "$MSGFMT" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5659 test -n "$MSGFMT" && break
5660 done
5661 test -n "$MSGFMT" || MSGFMT="false"
5663 if ${ac_tool_prefix+:} false; then :
5664 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5665 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 if test -n "$PKG_CONFIG"; then
5672 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5685 done
5686 done
5687 IFS=$as_save_IFS
5691 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5692 if test -n "$PKG_CONFIG"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5694 $as_echo "$PKG_CONFIG" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5702 if ${ac_cv_prog_PKG_CONFIG:+false} :; then :
5703 if test "x$cross_compiling" = xyes; then :
5705 else
5706 { ac_cv_prog_PKG_CONFIG=; unset ac_cv_prog_PKG_CONFIG;}
5707 # Extract the first word of "pkg-config", so it can be a program name with args.
5708 set dummy pkg-config; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 if test -n "$PKG_CONFIG"; then
5715 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724 ac_cv_prog_PKG_CONFIG="pkg-config"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5728 done
5729 done
5730 IFS=$as_save_IFS
5734 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5735 if test -n "$PKG_CONFIG"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5737 $as_echo "$PKG_CONFIG" >&6; }
5738 else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5745 else
5746 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5749 if test "x$enable_maintainer_mode" != "xyes"
5750 then
5751 FONTFORGE=""
5752 RSVG=""
5753 CONVERT=""
5754 ICOTOOL=""
5755 else
5756 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5757 for ac_prog in fontforge
5759 # Extract the first word of "$ac_prog", so it can be a program name with args.
5760 set dummy $ac_prog; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_FONTFORGE+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -n "$FONTFORGE"; then
5767 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_FONTFORGE="$ac_prog"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5780 done
5781 done
5782 IFS=$as_save_IFS
5786 FONTFORGE=$ac_cv_prog_FONTFORGE
5787 if test -n "$FONTFORGE"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5789 $as_echo "$FONTFORGE" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5796 test -n "$FONTFORGE" && break
5797 done
5798 test -n "$FONTFORGE" || FONTFORGE="false"
5800 for ac_prog in rsvg-convert rsvg
5802 # Extract the first word of "$ac_prog", so it can be a program name with args.
5803 set dummy $ac_prog; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_RSVG+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if test -n "$RSVG"; then
5810 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_RSVG="$ac_prog"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5823 done
5824 done
5825 IFS=$as_save_IFS
5829 RSVG=$ac_cv_prog_RSVG
5830 if test -n "$RSVG"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5832 $as_echo "$RSVG" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5839 test -n "$RSVG" && break
5840 done
5841 test -n "$RSVG" || RSVG="false"
5843 for ac_prog in convert
5845 # Extract the first word of "$ac_prog", so it can be a program name with args.
5846 set dummy $ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_CONVERT+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 if test -n "$CONVERT"; then
5853 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_CONVERT="$ac_prog"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5866 done
5867 done
5868 IFS=$as_save_IFS
5872 CONVERT=$ac_cv_prog_CONVERT
5873 if test -n "$CONVERT"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5875 $as_echo "$CONVERT" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5882 test -n "$CONVERT" && break
5883 done
5884 test -n "$CONVERT" || CONVERT="false"
5886 for ac_prog in icotool
5888 # Extract the first word of "$ac_prog", so it can be a program name with args.
5889 set dummy $ac_prog; ac_word=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if ${ac_cv_prog_ICOTOOL+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 if test -n "$ICOTOOL"; then
5896 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905 ac_cv_prog_ICOTOOL="$ac_prog"
5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 break 2
5909 done
5910 done
5911 IFS=$as_save_IFS
5915 ICOTOOL=$ac_cv_prog_ICOTOOL
5916 if test -n "$ICOTOOL"; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5918 $as_echo "$ICOTOOL" >&6; }
5919 else
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 $as_echo "no" >&6; }
5925 test -n "$ICOTOOL" && break
5926 done
5927 test -n "$ICOTOOL" || ICOTOOL="false"
5929 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5930 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5932 if test "$CONVERT" = false
5933 then
5934 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5937 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5938 convert_version=`convert --version | head -n1`
5939 if test "x$convert_version" != "x"
5940 then
5941 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5942 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5943 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5944 then
5945 CONVERT=false
5948 if test "$CONVERT" = false
5949 then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5951 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5952 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5953 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5955 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5959 if test "$ICOTOOL" = false
5960 then
5961 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5962 else
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5964 $as_echo_n "checking for recent enough icotool... " >&6; }
5965 icotool_version=`icotool --version | head -n1`
5966 if test "x$icotool_version" != "x"
5967 then
5968 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5969 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5970 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5971 then
5972 ICOTOOL=false
5973 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5976 if test "$ICOTOOL" = false
5977 then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5979 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5980 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5981 else
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5983 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5987 with_gettext=yes
5988 with_gettextpo=yes
5989 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5992 test "x$with_gettext" != xno || MSGFMT=false
5993 if test "$MSGFMT" != "false"
5994 then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5996 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5997 cat >conftest.po <<EOF
5998 # comment
5999 msgctxt "ctxt"
6000 msgid "id"
6001 msgstr "str"
6003 if $MSGFMT -o /dev/null conftest.po 2>&5
6004 then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6006 $as_echo "yes" >&6; }
6007 else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6010 MSGFMT=false
6013 if test "$MSGFMT" = false; then :
6014 case "x$with_gettext" in
6015 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
6016 xno) ;;
6017 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
6018 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
6019 esac
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
6024 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
6025 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 ac_check_lib_save_LIBS=$LIBS
6029 LIBS="-li386 $LIBS"
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6033 /* Override any GCC internal prototype to avoid an error.
6034 Use char because int might match the return type of a GCC
6035 builtin and then its argument prototype would still apply. */
6036 #ifdef __cplusplus
6037 extern "C"
6038 #endif
6039 char i386_set_ldt ();
6041 main ()
6043 return i386_set_ldt ();
6045 return 0;
6047 _ACEOF
6048 if ac_fn_c_try_link "$LINENO"; then :
6049 ac_cv_lib_i386_i386_set_ldt=yes
6050 else
6051 ac_cv_lib_i386_i386_set_ldt=no
6053 rm -f core conftest.err conftest.$ac_objext \
6054 conftest$ac_exeext conftest.$ac_ext
6055 LIBS=$ac_check_lib_save_LIBS
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6058 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
6059 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
6060 cat >>confdefs.h <<_ACEOF
6061 #define HAVE_LIBI386 1
6062 _ACEOF
6064 LIBS="-li386 $LIBS"
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6069 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6070 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 ac_check_lib_save_LIBS=$LIBS
6074 LIBS="-lossaudio $LIBS"
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6078 /* Override any GCC internal prototype to avoid an error.
6079 Use char because int might match the return type of a GCC
6080 builtin and then its argument prototype would still apply. */
6081 #ifdef __cplusplus
6082 extern "C"
6083 #endif
6084 char _oss_ioctl ();
6086 main ()
6088 return _oss_ioctl ();
6090 return 0;
6092 _ACEOF
6093 if ac_fn_c_try_link "$LINENO"; then :
6094 ac_cv_lib_ossaudio__oss_ioctl=yes
6095 else
6096 ac_cv_lib_ossaudio__oss_ioctl=no
6098 rm -f core conftest.err conftest.$ac_objext \
6099 conftest$ac_exeext conftest.$ac_ext
6100 LIBS=$ac_check_lib_save_LIBS
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6103 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6104 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6105 cat >>confdefs.h <<_ACEOF
6106 #define HAVE_LIBOSSAUDIO 1
6107 _ACEOF
6109 LIBS="-lossaudio $LIBS"
6114 OPENGL_LIBS=""
6118 # Check whether --enable-largefile was given.
6119 if test "${enable_largefile+set}" = set; then :
6120 enableval=$enable_largefile;
6123 if test "$enable_largefile" != no; then
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6126 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6127 if ${ac_cv_sys_largefile_CC+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 ac_cv_sys_largefile_CC=no
6131 if test "$GCC" != yes; then
6132 ac_save_CC=$CC
6133 while :; do
6134 # IRIX 6.2 and later do not support large files by default,
6135 # so use the C compiler's -n32 option if that helps.
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 #include <sys/types.h>
6139 /* Check that off_t can represent 2**63 - 1 correctly.
6140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6141 since some C++ compilers masquerading as C compilers
6142 incorrectly reject 9223372036854775807. */
6143 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6145 && LARGE_OFF_T % 2147483647 == 1)
6146 ? 1 : -1];
6148 main ()
6152 return 0;
6154 _ACEOF
6155 if ac_fn_c_try_compile "$LINENO"; then :
6156 break
6158 rm -f core conftest.err conftest.$ac_objext
6159 CC="$CC -n32"
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161 ac_cv_sys_largefile_CC=' -n32'; break
6163 rm -f core conftest.err conftest.$ac_objext
6164 break
6165 done
6166 CC=$ac_save_CC
6167 rm -f conftest.$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6171 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6172 if test "$ac_cv_sys_largefile_CC" != no; then
6173 CC=$CC$ac_cv_sys_largefile_CC
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6177 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6178 if ${ac_cv_sys_file_offset_bits+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 while :; do
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 #include <sys/types.h>
6185 /* Check that off_t can represent 2**63 - 1 correctly.
6186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6187 since some C++ compilers masquerading as C compilers
6188 incorrectly reject 9223372036854775807. */
6189 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6191 && LARGE_OFF_T % 2147483647 == 1)
6192 ? 1 : -1];
6194 main ()
6198 return 0;
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202 ac_cv_sys_file_offset_bits=no; break
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 #define _FILE_OFFSET_BITS 64
6208 #include <sys/types.h>
6209 /* Check that off_t can represent 2**63 - 1 correctly.
6210 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6211 since some C++ compilers masquerading as C compilers
6212 incorrectly reject 9223372036854775807. */
6213 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6215 && LARGE_OFF_T % 2147483647 == 1)
6216 ? 1 : -1];
6218 main ()
6222 return 0;
6224 _ACEOF
6225 if ac_fn_c_try_compile "$LINENO"; then :
6226 ac_cv_sys_file_offset_bits=64; break
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 ac_cv_sys_file_offset_bits=unknown
6230 break
6231 done
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6234 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6235 case $ac_cv_sys_file_offset_bits in #(
6236 no | unknown) ;;
6238 cat >>confdefs.h <<_ACEOF
6239 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6240 _ACEOF
6242 esac
6243 rm -rf conftest*
6244 if test $ac_cv_sys_file_offset_bits = unknown; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6246 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6247 if ${ac_cv_sys_large_files+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 while :; do
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6253 #include <sys/types.h>
6254 /* Check that off_t can represent 2**63 - 1 correctly.
6255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6256 since some C++ compilers masquerading as C compilers
6257 incorrectly reject 9223372036854775807. */
6258 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6260 && LARGE_OFF_T % 2147483647 == 1)
6261 ? 1 : -1];
6263 main ()
6267 return 0;
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271 ac_cv_sys_large_files=no; break
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 #define _LARGE_FILES 1
6277 #include <sys/types.h>
6278 /* Check that off_t can represent 2**63 - 1 correctly.
6279 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6280 since some C++ compilers masquerading as C compilers
6281 incorrectly reject 9223372036854775807. */
6282 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6283 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6284 && LARGE_OFF_T % 2147483647 == 1)
6285 ? 1 : -1];
6287 main ()
6291 return 0;
6293 _ACEOF
6294 if ac_fn_c_try_compile "$LINENO"; then :
6295 ac_cv_sys_large_files=1; break
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 ac_cv_sys_large_files=unknown
6299 break
6300 done
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6303 $as_echo "$ac_cv_sys_large_files" >&6; }
6304 case $ac_cv_sys_large_files in #(
6305 no | unknown) ;;
6307 cat >>confdefs.h <<_ACEOF
6308 #define _LARGE_FILES $ac_cv_sys_large_files
6309 _ACEOF
6311 esac
6312 rm -rf conftest*
6319 ac_ext=c
6320 ac_cpp='$CPP $CPPFLAGS'
6321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6325 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6326 # On Suns, sometimes $CPP names a directory.
6327 if test -n "$CPP" && test -d "$CPP"; then
6328 CPP=
6330 if test -z "$CPP"; then
6331 if ${ac_cv_prog_CPP+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 # Double quotes because CPP needs to be expanded
6335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6337 ac_preproc_ok=false
6338 for ac_c_preproc_warn_flag in '' yes
6340 # Use a header file that comes with gcc, so configuring glibc
6341 # with a fresh cross-compiler works.
6342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6343 # <limits.h> exists even on freestanding compilers.
6344 # On the NeXT, cc -E runs the code through the compiler's parser,
6345 # not just through cpp. "Syntax error" is here to catch this case.
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 #ifdef __STDC__
6349 # include <limits.h>
6350 #else
6351 # include <assert.h>
6352 #endif
6353 Syntax error
6354 _ACEOF
6355 if ac_fn_c_try_cpp "$LINENO"; then :
6357 else
6358 # Broken: fails on valid input.
6359 continue
6361 rm -f conftest.err conftest.i conftest.$ac_ext
6363 # OK, works on sane cases. Now check whether nonexistent headers
6364 # can be detected and how.
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 #include <ac_nonexistent.h>
6368 _ACEOF
6369 if ac_fn_c_try_cpp "$LINENO"; then :
6370 # Broken: success on invalid input.
6371 continue
6372 else
6373 # Passes both tests.
6374 ac_preproc_ok=:
6375 break
6377 rm -f conftest.err conftest.i conftest.$ac_ext
6379 done
6380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6381 rm -f conftest.i conftest.err conftest.$ac_ext
6382 if $ac_preproc_ok; then :
6383 break
6386 done
6387 ac_cv_prog_CPP=$CPP
6390 CPP=$ac_cv_prog_CPP
6391 else
6392 ac_cv_prog_CPP=$CPP
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6395 $as_echo "$CPP" >&6; }
6396 ac_preproc_ok=false
6397 for ac_c_preproc_warn_flag in '' yes
6399 # Use a header file that comes with gcc, so configuring glibc
6400 # with a fresh cross-compiler works.
6401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6402 # <limits.h> exists even on freestanding compilers.
6403 # On the NeXT, cc -E runs the code through the compiler's parser,
6404 # not just through cpp. "Syntax error" is here to catch this case.
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407 #ifdef __STDC__
6408 # include <limits.h>
6409 #else
6410 # include <assert.h>
6411 #endif
6412 Syntax error
6413 _ACEOF
6414 if ac_fn_c_try_cpp "$LINENO"; then :
6416 else
6417 # Broken: fails on valid input.
6418 continue
6420 rm -f conftest.err conftest.i conftest.$ac_ext
6422 # OK, works on sane cases. Now check whether nonexistent headers
6423 # can be detected and how.
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426 #include <ac_nonexistent.h>
6427 _ACEOF
6428 if ac_fn_c_try_cpp "$LINENO"; then :
6429 # Broken: success on invalid input.
6430 continue
6431 else
6432 # Passes both tests.
6433 ac_preproc_ok=:
6434 break
6436 rm -f conftest.err conftest.i conftest.$ac_ext
6438 done
6439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6440 rm -f conftest.i conftest.err conftest.$ac_ext
6441 if $ac_preproc_ok; then :
6443 else
6444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6446 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6447 See \`config.log' for more details" "$LINENO" 5; }
6450 ac_ext=c
6451 ac_cpp='$CPP $CPPFLAGS'
6452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6458 $as_echo_n "checking for ANSI C header files... " >&6; }
6459 if ${ac_cv_header_stdc+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <stdlib.h>
6465 #include <stdarg.h>
6466 #include <string.h>
6467 #include <float.h>
6470 main ()
6474 return 0;
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 ac_cv_header_stdc=yes
6479 else
6480 ac_cv_header_stdc=no
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 if test $ac_cv_header_stdc = yes; then
6485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 #include <string.h>
6490 _ACEOF
6491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6492 $EGREP "memchr" >/dev/null 2>&1; then :
6494 else
6495 ac_cv_header_stdc=no
6497 rm -f conftest*
6501 if test $ac_cv_header_stdc = yes; then
6502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 #include <stdlib.h>
6507 _ACEOF
6508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6509 $EGREP "free" >/dev/null 2>&1; then :
6511 else
6512 ac_cv_header_stdc=no
6514 rm -f conftest*
6518 if test $ac_cv_header_stdc = yes; then
6519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6520 if test "$cross_compiling" = yes; then :
6522 else
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #include <ctype.h>
6526 #include <stdlib.h>
6527 #if ((' ' & 0x0FF) == 0x020)
6528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6530 #else
6531 # define ISLOWER(c) \
6532 (('a' <= (c) && (c) <= 'i') \
6533 || ('j' <= (c) && (c) <= 'r') \
6534 || ('s' <= (c) && (c) <= 'z'))
6535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6536 #endif
6538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6540 main ()
6542 int i;
6543 for (i = 0; i < 256; i++)
6544 if (XOR (islower (i), ISLOWER (i))
6545 || toupper (i) != TOUPPER (i))
6546 return 2;
6547 return 0;
6549 _ACEOF
6550 if ac_fn_c_try_run "$LINENO"; then :
6552 else
6553 ac_cv_header_stdc=no
6555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6556 conftest.$ac_objext conftest.beam conftest.$ac_ext
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6562 $as_echo "$ac_cv_header_stdc" >&6; }
6563 if test $ac_cv_header_stdc = yes; then
6565 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6569 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6570 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6571 inttypes.h stdint.h unistd.h
6572 do :
6573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6574 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6576 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6577 cat >>confdefs.h <<_ACEOF
6578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6579 _ACEOF
6583 done
6586 for ac_header in \
6587 AL/al.h \
6588 ApplicationServices/ApplicationServices.h \
6589 AudioToolbox/AudioConverter.h \
6590 AudioUnit/AudioUnit.h \
6591 AudioUnit/AudioComponent.h \
6592 CL/cl.h \
6593 Carbon/Carbon.h \
6594 CoreAudio/CoreAudio.h \
6595 CoreServices/CoreServices.h \
6596 DiskArbitration/DiskArbitration.h \
6597 IOKit/IOKitLib.h \
6598 IOKit/hid/IOHIDLib.h \
6599 OpenAL/al.h \
6600 OpenCL/opencl.h \
6601 QuickTime/ImageCompression.h \
6602 Security/Security.h \
6603 alias.h \
6604 alsa/asoundlib.h \
6605 arpa/inet.h \
6606 arpa/nameser.h \
6607 asm/types.h \
6608 asm/user.h \
6609 curses.h \
6610 direct.h \
6611 dirent.h \
6612 dlfcn.h \
6613 elf.h \
6614 float.h \
6615 fnmatch.h \
6616 getopt.h \
6617 gettext-po.h \
6618 grp.h \
6619 gsm.h \
6620 gsm/gsm.h \
6621 ieeefp.h \
6622 inet/mib2.h \
6623 io.h \
6624 kstat.h \
6625 lber.h \
6626 ldap.h \
6627 libproc.h \
6628 link.h \
6629 linux/cdrom.h \
6630 linux/compiler.h \
6631 linux/filter.h \
6632 linux/hdreg.h \
6633 linux/input.h \
6634 linux/ioctl.h \
6635 linux/joystick.h \
6636 linux/major.h \
6637 linux/param.h \
6638 linux/serial.h \
6639 linux/types.h \
6640 linux/ucdrom.h \
6641 lwp.h \
6642 mach-o/nlist.h \
6643 mach-o/loader.h \
6644 mach/mach.h \
6645 mach/machine.h \
6646 machine/cpu.h \
6647 machine/limits.h \
6648 machine/sysarch.h \
6649 mntent.h \
6650 ncurses.h \
6651 netdb.h \
6652 netinet/in.h \
6653 netinet/in_systm.h \
6654 netinet/tcp.h \
6655 netinet/tcp_fsm.h \
6656 pcap/pcap.h \
6657 poll.h \
6658 port.h \
6659 process.h \
6660 pthread.h \
6661 pwd.h \
6662 sched.h \
6663 scsi/scsi.h \
6664 scsi/scsi_ioctl.h \
6665 scsi/sg.h \
6666 stdbool.h \
6667 stdint.h \
6668 stropts.h \
6669 sys/asoundlib.h \
6670 sys/attr.h \
6671 sys/cdio.h \
6672 sys/elf32.h \
6673 sys/epoll.h \
6674 sys/event.h \
6675 sys/exec_elf.h \
6676 sys/filio.h \
6677 sys/inotify.h \
6678 sys/ioctl.h \
6679 sys/ipc.h \
6680 sys/limits.h \
6681 sys/link.h \
6682 sys/mman.h \
6683 sys/modem.h \
6684 sys/msg.h \
6685 sys/mtio.h \
6686 sys/param.h \
6687 sys/poll.h \
6688 sys/prctl.h \
6689 sys/protosw.h \
6690 sys/ptrace.h \
6691 sys/queue.h \
6692 sys/resource.h \
6693 sys/scsiio.h \
6694 sys/shm.h \
6695 sys/signal.h \
6696 sys/socket.h \
6697 sys/socketvar.h \
6698 sys/sockio.h \
6699 sys/statvfs.h \
6700 sys/strtio.h \
6701 sys/syscall.h \
6702 sys/tihdr.h \
6703 sys/time.h \
6704 sys/timeout.h \
6705 sys/times.h \
6706 sys/uio.h \
6707 sys/user.h \
6708 sys/utsname.h \
6709 sys/vm86.h \
6710 sys/vnode.h \
6711 sys/wait.h \
6712 syscall.h \
6713 termios.h \
6714 unistd.h \
6715 utime.h \
6716 valgrind/memcheck.h \
6717 valgrind/valgrind.h \
6718 zlib.h
6720 do :
6721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6722 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6723 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6724 cat >>confdefs.h <<_ACEOF
6725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6726 _ACEOF
6730 done
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6733 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6734 if ${ac_cv_header_stat_broken+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6739 #include <sys/types.h>
6740 #include <sys/stat.h>
6742 #if defined S_ISBLK && defined S_IFDIR
6743 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6744 #endif
6746 #if defined S_ISBLK && defined S_IFCHR
6747 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6748 #endif
6750 #if defined S_ISLNK && defined S_IFREG
6751 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6752 #endif
6754 #if defined S_ISSOCK && defined S_IFREG
6755 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6756 #endif
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 ac_cv_header_stat_broken=no
6761 else
6762 ac_cv_header_stat_broken=yes
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6767 $as_echo "$ac_cv_header_stat_broken" >&6; }
6768 if test $ac_cv_header_stat_broken = yes; then
6770 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6776 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6777 do :
6778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6779 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6780 #ifdef HAVE_SYS_PARAM_H
6781 # include <sys/param.h>
6782 #endif
6784 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6785 cat >>confdefs.h <<_ACEOF
6786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6787 _ACEOF
6791 done
6794 for ac_header in \
6795 netinet/ip.h \
6796 net/if.h \
6797 net/if_arp.h \
6798 net/if_dl.h \
6799 net/if_types.h \
6800 net/route.h \
6801 netinet/if_ether.h \
6802 netinet/if_inarp.h \
6803 netinet/in_pcb.h \
6804 netinet/ip_icmp.h \
6805 netinet/ip_var.h \
6806 netinet/udp.h \
6807 netipx/ipx.h \
6808 sys/un.h \
6810 do :
6811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6812 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6813 #ifdef HAVE_SYS_SOCKET_H
6814 # include <sys/socket.h>
6815 #endif
6816 #ifdef HAVE_SYS_SOCKETVAR_H
6817 # include <sys/socketvar.h>
6818 #endif
6819 #ifdef HAVE_NET_ROUTE_H
6820 # include <net/route.h>
6821 #endif
6822 #ifdef HAVE_NETINET_IN_H
6823 # include <netinet/in.h>
6824 #endif
6825 #ifdef HAVE_NETINET_IN_SYSTM_H
6826 # include <netinet/in_systm.h>
6827 #endif
6828 #ifdef HAVE_NET_IF_H
6829 # include <net/if.h>
6830 #endif
6831 #ifdef HAVE_NETINET_IP_H
6832 # include <netinet/ip.h>
6833 #endif
6835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6836 cat >>confdefs.h <<_ACEOF
6837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6838 _ACEOF
6842 done
6845 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6846 do :
6847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6848 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6849 #ifdef HAVE_ALIAS_H
6850 # include <alias.h>
6851 #endif
6852 #ifdef HAVE_SYS_SOCKET_H
6853 # include <sys/socket.h>
6854 #endif
6855 #ifdef HAVE_SYS_SOCKETVAR_H
6856 # include <sys/socketvar.h>
6857 #endif
6858 #ifdef HAVE_SYS_TIMEOUT_H
6859 # include <sys/timeout.h>
6860 #endif
6861 #ifdef HAVE_NETINET_IN_H
6862 # include <netinet/in.h>
6863 #endif
6864 #ifdef HAVE_NETINET_IN_SYSTM_H
6865 # include <netinet/in_systm.h>
6866 #endif
6867 #ifdef HAVE_NETINET_IP_H
6868 # include <netinet/ip.h>
6869 #endif
6870 #ifdef HAVE_NETINET_IP_VAR_H
6871 # include <netinet/ip_var.h>
6872 #endif
6873 #ifdef HAVE_NETINET_IP_ICMP_H
6874 # include <netinet/ip_icmp.h>
6875 #endif
6876 #ifdef HAVE_NETINET_UDP_H
6877 # include <netinet/udp.h>
6878 #endif
6879 #ifdef HAVE_NETINET_TCP_H
6880 # include <netinet/tcp.h>
6881 #endif
6882 #ifdef HAVE_NETINET_TCP_TIMER_H
6883 #include <netinet/tcp_timer.h>
6884 #endif
6886 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6887 cat >>confdefs.h <<_ACEOF
6888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6889 _ACEOF
6893 done
6896 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6897 do :
6898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6899 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6900 #ifdef HAVE_ASM_TYPES_H
6901 # include <asm/types.h>
6902 #endif
6903 #ifdef HAVE_SYS_SOCKET_H
6904 # include <sys/socket.h>
6905 #endif
6906 #ifdef HAVE_LINUX_TYPES_H
6907 # include <linux/types.h>
6908 #endif
6910 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6911 cat >>confdefs.h <<_ACEOF
6912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6913 _ACEOF
6917 done
6920 for ac_header in mach-o/dyld_images.h
6921 do :
6922 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6923 # include <stdbool.h>
6924 #endif
6925 #ifdef HAVE_STDINT_H
6926 # include <stdint.h>
6927 #endif
6929 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6930 cat >>confdefs.h <<_ACEOF
6931 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6932 _ACEOF
6936 done
6939 for ac_header in resolv.h
6940 do :
6941 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6942 #ifdef HAVE_SYS_SOCKET_H
6943 # include <sys/socket.h>
6944 #endif
6945 #ifdef HAVE_NETINET_IN_H
6946 # include <netinet/in.h>
6947 #endif
6948 #ifdef HAVE_ARPA_NAMESER_H
6949 # include <arpa/nameser.h>
6950 #endif
6952 if test "x$ac_cv_header_resolv_h" = xyes; then :
6953 cat >>confdefs.h <<_ACEOF
6954 #define HAVE_RESOLV_H 1
6955 _ACEOF
6959 done
6962 for ac_header in ifaddrs.h
6963 do :
6964 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6966 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6967 cat >>confdefs.h <<_ACEOF
6968 #define HAVE_IFADDRS_H 1
6969 _ACEOF
6973 done
6976 for ac_header in sys/ucontext.h
6977 do :
6978 ac_fn_c_check_header_compile "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "#include <signal.h>
6980 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
6981 cat >>confdefs.h <<_ACEOF
6982 #define HAVE_SYS_UCONTEXT_H 1
6983 _ACEOF
6987 done
6990 for ac_header in sys/thr.h
6991 do :
6992 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6993 #ifdef HAVE_SYS_UCONTEXT_H
6994 #include <sys/ucontext.h>
6995 #endif
6997 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6998 cat >>confdefs.h <<_ACEOF
6999 #define HAVE_SYS_THR_H 1
7000 _ACEOF
7004 done
7007 for ac_header in pthread_np.h
7008 do :
7009 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
7010 #include <pthread.h>
7011 #endif
7013 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_PTHREAD_NP_H 1
7016 _ACEOF
7020 done
7023 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
7024 do :
7025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7026 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
7027 #include <sys/time.h>
7028 #endif
7029 #include <sys/types.h>
7030 #ifdef HAVE_ASM_TYPES_H
7031 #include <asm/types.h>
7032 #endif
7034 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7035 cat >>confdefs.h <<_ACEOF
7036 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7037 _ACEOF
7041 done
7044 for ac_header in libprocstat.h
7045 do :
7046 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
7047 #include <sys/param.h>
7048 #endif
7049 #ifdef HAVE_SYS_QUEUE_H
7050 #include <sys/queue.h>
7051 #endif
7052 #ifdef HAVE_SYS_SOCKET_H
7053 #include <sys/socket.h>
7054 #endif
7056 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
7057 cat >>confdefs.h <<_ACEOF
7058 #define HAVE_LIBPROCSTAT_H 1
7059 _ACEOF
7063 done
7067 dlldir="\${libdir}/wine"
7069 DLLPREFIX=""
7071 DLLFLAGS="-D_REENTRANT"
7073 LDRPATH_INSTALL=""
7075 LDRPATH_LOCAL=""
7077 LIBEXT="so"
7078 DLLEXT=".so"
7079 IMPLIBEXT="def"
7080 STATIC_IMPLIBEXT="def.a"
7081 # Extract the first word of "ldd", so it can be a program name with args.
7082 set dummy ldd; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_path_LDD+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 case $LDD in
7089 [\\/]* | ?:[\\/]*)
7090 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 as_dummy="/sbin:/usr/sbin:$PATH"
7095 for as_dir in $as_dummy
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7105 done
7106 done
7107 IFS=$as_save_IFS
7109 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
7111 esac
7113 LDD=$ac_cv_path_LDD
7114 if test -n "$LDD"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
7116 $as_echo "$LDD" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7123 if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
7125 set dummy ${ac_tool_prefix}readelf; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if ${ac_cv_prog_READELF+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 if test -n "$READELF"; then
7132 ac_cv_prog_READELF="$READELF" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7145 done
7146 done
7147 IFS=$as_save_IFS
7151 READELF=$ac_cv_prog_READELF
7152 if test -n "$READELF"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
7154 $as_echo "$READELF" >&6; }
7155 else
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7162 if test -z "$ac_cv_prog_READELF"; then
7163 ac_ct_READELF=$READELF
7164 # Extract the first word of "readelf", so it can be a program name with args.
7165 set dummy readelf; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 if test -n "$ac_ct_READELF"; then
7172 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_ac_ct_READELF="readelf"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7185 done
7186 done
7187 IFS=$as_save_IFS
7191 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7192 if test -n "$ac_ct_READELF"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7194 $as_echo "$ac_ct_READELF" >&6; }
7195 else
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7200 if test "x$ac_ct_READELF" = x; then
7201 READELF="true"
7202 else
7203 case $cross_compiling:$ac_tool_warned in
7204 yes:)
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7207 ac_tool_warned=yes ;;
7208 esac
7209 READELF=$ac_ct_READELF
7211 else
7212 READELF="$ac_cv_prog_READELF"
7215 wine_rules_file=conf$$rules.make
7216 rm -f $wine_rules_file
7217 ALL_POT_FILES=""
7218 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7219 ALL_TEST_RESOURCES=""
7222 wine_fn_append_file ()
7224 as_fn_append $1 " \\$as_nl $2"
7227 wine_fn_ignore_file ()
7229 case "$1" in
7230 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7231 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7232 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7233 esac
7236 wine_fn_append_rule ()
7238 $as_echo "$1" >>$wine_rules_file
7241 wine_fn_has_flag ()
7243 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7246 wine_fn_depend_rules ()
7248 wine_fn_append_rule \
7249 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
7250 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir
7251 depend: $ac_dir/depend
7252 .PHONY: $ac_dir/depend
7253 $ac_dir/depend: \$(MAKEDEP) dummy
7254 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir"
7257 wine_fn_pot_rules ()
7259 test "x$with_gettextpo" = xyes || return
7261 if wine_fn_has_flag mc
7262 then
7263 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7264 wine_fn_append_rule \
7265 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7266 @cd $ac_dir && \$(MAKE) msg.pot
7267 $ac_dir/msg.pot: tools/wmc include"
7269 if wine_fn_has_flag po
7270 then
7271 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7272 wine_fn_append_rule \
7273 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7274 @cd $ac_dir && \$(MAKE) rsrc.pot
7275 $ac_dir/rsrc.pot: tools/wrc include"
7279 wine_fn_all_rules ()
7281 wine_fn_depend_rules
7282 wine_fn_append_rule \
7283 "all: $ac_dir
7284 .PHONY: $ac_dir
7285 $ac_dir: $ac_dir/Makefile dummy
7286 @cd $ac_dir && \$(MAKE)"
7289 wine_fn_install_rules ()
7291 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7293 wine_fn_append_rule \
7294 ".PHONY: $ac_dir/install $ac_dir/uninstall
7295 $ac_dir/install:: $ac_dir
7296 @cd $ac_dir && \$(MAKE) install
7297 $ac_dir/uninstall:: $ac_dir/Makefile
7298 @cd $ac_dir && \$(MAKE) uninstall
7299 install:: $ac_dir/install
7300 __uninstall__: $ac_dir/uninstall"
7302 if wine_fn_has_flag install-lib
7303 then
7304 wine_fn_append_rule \
7305 ".PHONY: $ac_dir/install-lib
7306 $ac_dir/install-lib:: $ac_dir
7307 @cd $ac_dir && \$(MAKE) install-lib
7308 install-lib:: $ac_dir/install-lib"
7311 if wine_fn_has_flag install-dev
7312 then
7313 wine_fn_append_rule \
7314 ".PHONY: $ac_dir/install-dev
7315 $ac_dir/install-dev:: $ac_dir
7316 @cd $ac_dir && \$(MAKE) install-dev
7317 install-dev:: $ac_dir/install-dev"
7321 wine_fn_clean_rules ()
7323 ac_clean=$@
7324 ac_extraclean="$ac_dir/Makefile"
7325 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7326 case $ac_dir in
7327 */tests) ac_extraclean="$ac_extraclean $ac_dir/testlist.c" ;;
7328 esac
7330 if wine_fn_has_flag clean
7331 then
7332 wine_fn_append_rule \
7333 "__clean__: $ac_dir/clean
7334 .PHONY: $ac_dir/clean
7335 $ac_dir/clean: $ac_dir/Makefile
7336 @cd $ac_dir && \$(MAKE) clean
7337 \$(RM) $ac_extraclean"
7338 else
7339 wine_fn_append_rule \
7340 "__clean__: $ac_dir/clean
7341 .PHONY: $ac_dir/clean
7342 $ac_dir/clean: dummy
7343 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7347 wine_fn_disabled_rules ()
7349 ac_clean=$@
7350 ac_extraclean="$ac_dir/Makefile"
7351 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7353 wine_fn_append_rule \
7354 "__clean__: $ac_dir/clean
7355 .PHONY: $ac_dir/clean
7356 $ac_dir/clean: dummy
7357 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7360 wine_fn_config_makefile ()
7362 ac_dir=$1
7363 ac_enable=$2
7364 ac_flags=$3
7366 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7367 wine_fn_disabled_rules; return
7369 wine_fn_all_rules
7370 wine_fn_install_rules
7371 wine_fn_clean_rules
7374 wine_fn_config_lib ()
7376 ac_name=$1
7377 ac_flags=$2
7378 ac_dir=dlls/$ac_name
7379 ac_deps="include"
7381 if test "x$enable_tools" = xno; then :
7383 else
7384 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7386 wine_fn_all_rules
7387 wine_fn_clean_rules
7389 wine_fn_append_rule \
7390 ".PHONY: $ac_dir/install $ac_dir/uninstall
7391 $ac_dir/install:: $ac_dir
7392 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7393 $ac_dir/uninstall::
7394 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7395 install install-dev:: $ac_dir/install
7396 __uninstall__: $ac_dir/uninstall
7397 __builddeps__: $ac_dir
7398 $ac_dir: $ac_deps"
7401 wine_fn_config_dll ()
7403 ac_name=$1
7404 ac_dir=dlls/$ac_name
7405 ac_enable=$2
7406 ac_flags=$3
7407 ac_implib=${4:-$ac_name}
7408 ac_file=$ac_dir/lib$ac_implib
7409 ac_dll=$ac_name
7410 ac_deps="include"
7411 ac_implibflags=""
7413 if test "x$enable_tools" = xno; then :
7415 else
7416 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7418 case $ac_name in
7419 *16) ac_implibflags=" -m16" ;;
7420 *.*) ;;
7421 *) ac_dll=$ac_dll.dll ;;
7422 esac
7424 ac_clean=
7425 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7426 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7427 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7428 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7430 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7431 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7432 then
7433 wine_fn_depend_rules
7434 wine_fn_clean_rules $ac_clean
7435 else
7436 wine_fn_disabled_rules $ac_clean
7437 return
7439 else
7440 wine_fn_all_rules
7441 wine_fn_clean_rules $ac_clean
7442 wine_fn_append_rule \
7443 "$ac_dir: __builddeps__
7444 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7445 @cd $ac_dir && \$(MAKE) \$@
7446 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7447 install install-lib:: $ac_dir/install-lib
7448 __uninstall__: $ac_dir/uninstall"
7449 if test -n "$DLLEXT"
7450 then
7451 wine_fn_append_rule \
7452 "$ac_dir/install-lib:: $ac_dir
7453 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7454 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7455 $ac_dir/uninstall::
7456 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7457 else
7458 wine_fn_append_rule \
7459 "$ac_dir/install-lib:: $ac_dir
7460 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7461 $ac_dir/uninstall::
7462 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7465 wine_fn_pot_rules
7468 if wine_fn_has_flag staticimplib
7469 then
7470 wine_fn_append_rule \
7471 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7472 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7473 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7474 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7475 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7476 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7477 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7478 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7479 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7480 $ac_dir/uninstall::
7481 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7482 install install-dev:: $ac_dir/install-dev
7483 __uninstall__: $ac_dir/uninstall"
7485 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7486 then
7487 wine_fn_append_rule \
7488 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7489 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7490 $ac_dir/uninstall::
7491 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7494 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7495 then
7496 wine_fn_append_rule \
7497 "__builddeps__: $ac_file.cross.a
7498 $ac_file.cross.a: $ac_dir/Makefile dummy
7499 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7502 elif wine_fn_has_flag implib
7503 then
7504 wine_fn_append_rule \
7505 "__builddeps__: $ac_file.$IMPLIBEXT
7506 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7507 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7508 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7509 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7510 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7511 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7512 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7513 $ac_dir/uninstall::
7514 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7515 install install-dev:: $ac_dir/install-dev
7516 __uninstall__: $ac_dir/uninstall"
7517 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7518 then
7519 wine_fn_append_rule \
7520 "__builddeps__: $ac_file.cross.a
7521 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7522 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7525 if test "$ac_name" != "$ac_implib"
7526 then
7527 wine_fn_append_rule \
7528 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7529 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7530 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7531 clean::
7532 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7533 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7534 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7535 then
7536 wine_fn_append_rule \
7537 "__builddeps__: dlls/lib$ac_implib.cross.a
7538 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7539 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7540 clean::
7541 \$(RM) dlls/lib$ac_implib.cross.a"
7542 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7548 wine_fn_config_program ()
7550 ac_name=$1
7551 ac_dir=programs/$ac_name
7552 ac_enable=$2
7553 ac_flags=$3
7554 ac_program=$ac_name
7556 case $ac_name in
7557 *.*) ;;
7558 *) ac_program=$ac_program.exe ;;
7559 esac
7561 ac_clean=
7562 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7563 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7564 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7565 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7567 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7568 wine_fn_disabled_rules $ac_clean; return
7571 wine_fn_all_rules
7572 wine_fn_clean_rules $ac_clean
7573 wine_fn_append_rule "$ac_dir: __builddeps__"
7574 wine_fn_pot_rules
7576 wine_fn_has_flag install || return
7577 wine_fn_append_rule \
7578 ".PHONY: $ac_dir/install $ac_dir/uninstall
7579 install install-lib:: $ac_dir/install
7580 __uninstall__: $ac_dir/uninstall"
7582 if test -n "$DLLEXT"
7583 then
7584 wine_fn_append_rule \
7585 "$ac_dir/install:: $ac_dir
7586 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7587 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7588 $ac_dir/uninstall::
7589 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7591 if test -z "$with_wine64" && wine_fn_has_flag installbin
7592 then
7593 wine_fn_append_rule \
7594 "$ac_dir/install:: __tooldeps__
7595 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7596 $ac_dir/uninstall::
7597 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7599 else
7600 wine_fn_append_rule \
7601 "$ac_dir/install:: $ac_dir
7602 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7603 $ac_dir/uninstall::
7604 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7607 if test -z "$with_wine64" && wine_fn_has_flag manpage
7608 then
7609 wine_fn_append_rule \
7610 "$ac_dir/install:: $ac_dir
7611 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7612 $ac_dir/uninstall::
7613 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7617 wine_fn_config_test ()
7619 ac_dir=$1
7620 ac_name=$2
7621 ac_flags=$3
7623 ac_clean=
7624 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7625 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7627 if test "x$enable_tests" = xno; then :
7628 wine_fn_disabled_rules $ac_clean; return
7631 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7632 wine_fn_all_rules
7633 wine_fn_clean_rules $ac_clean
7635 wine_fn_append_rule \
7636 "$ac_dir: programs/winetest/Makefile __builddeps__
7637 programs/winetest: $ac_dir
7638 check test: $ac_dir/test
7639 .PHONY: $ac_dir/test
7640 $ac_dir/test: dummy
7641 @cd $ac_dir && \$(MAKE) test
7642 testclean::
7643 \$(RM) $ac_dir/*.ok"
7645 if test -n "$CROSSTARGET"
7646 then
7647 wine_fn_append_rule \
7648 "crosstest: $ac_dir/crosstest
7649 .PHONY: $ac_dir/crosstest
7650 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7651 @cd $ac_dir && \$(MAKE) crosstest"
7655 wine_fn_config_tool ()
7657 ac_dir=$1
7658 ac_flags=$2
7659 if test "x$enable_tools" = xno; then :
7660 return
7663 wine_fn_all_rules
7664 wine_fn_install_rules
7665 wine_fn_clean_rules
7667 wine_fn_append_rule "__tooldeps__: $ac_dir"
7668 wine_fn_append_rule "$ac_dir: libs/port"
7669 case $ac_dir in
7670 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7671 esac
7674 wine_fn_config_symlink ()
7676 ac_linkdir=
7677 if test "x$1" = "x-d"
7678 then
7679 ac_linkdir=$2
7680 shift; shift
7682 ac_links=$@
7683 wine_fn_append_rule \
7684 "$ac_links:
7685 @./config.status \$@
7686 distclean::
7687 \$(RM) $ac_links"
7688 for f in $ac_links; do wine_fn_ignore_file $f; done
7689 test -n "$ac_linkdir" || return
7690 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7693 wine_binary="wine"
7694 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7695 loader_programs="$wine_binary wine-installed"
7696 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7698 LOADER_RULES="
7699 all: wine.inf
7701 install install-lib:: wine-installed
7702 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7704 uninstall::
7705 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7709 case $host_os in
7710 cygwin*|mingw32*)
7711 if test -n "$ac_tool_prefix"; then
7712 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7713 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if ${ac_cv_prog_DLLTOOL+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 if test -n "$DLLTOOL"; then
7720 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7721 else
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 for as_dir in $PATH
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7729 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7733 done
7734 done
7735 IFS=$as_save_IFS
7739 DLLTOOL=$ac_cv_prog_DLLTOOL
7740 if test -n "$DLLTOOL"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7742 $as_echo "$DLLTOOL" >&6; }
7743 else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7750 if test -z "$ac_cv_prog_DLLTOOL"; then
7751 ac_ct_DLLTOOL=$DLLTOOL
7752 # Extract the first word of "dlltool", so it can be a program name with args.
7753 set dummy dlltool; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 if test -n "$ac_ct_DLLTOOL"; then
7760 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7773 done
7774 done
7775 IFS=$as_save_IFS
7779 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7780 if test -n "$ac_ct_DLLTOOL"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7782 $as_echo "$ac_ct_DLLTOOL" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7788 if test "x$ac_ct_DLLTOOL" = x; then
7789 DLLTOOL="false"
7790 else
7791 case $cross_compiling:$ac_tool_warned in
7792 yes:)
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7795 ac_tool_warned=yes ;;
7796 esac
7797 DLLTOOL=$ac_ct_DLLTOOL
7799 else
7800 DLLTOOL="$ac_cv_prog_DLLTOOL"
7803 LIBEXT="dll"
7804 DLLEXT=""
7805 IMPLIBEXT="a"
7806 STATIC_IMPLIBEXT="a"
7807 enable_iphlpapi=${enable_iphlpapi:-no}
7808 enable_kernel32=${enable_kernel32:-no}
7809 enable_msvcrt=${enable_msvcrt:-no}
7810 enable_ntdll=${enable_ntdll:-no}
7811 enable_ws2_32=${enable_ws2_32:-no}
7812 enable_loader=${enable_loader:-no}
7813 enable_server=${enable_server:-no}
7814 with_x=${with_x:-no}
7815 with_pthread=${with_pthread:-no}
7817 crtlibs=""
7818 case $host_os in
7819 mingw32*)
7820 crtlibs="-lmsvcrt"
7821 SOCKET_LIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7823 esac
7825 libwine_targets="libwine.dll libwine.a"
7826 LIBWINE_RULES="
7827 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7829 all: libwine.dll libwine.a
7831 libwine.a: \$(srcdir)/wine.def
7832 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7834 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7835 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7837 install install-lib:: libwine.dll
7838 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7840 install install-dev:: libwine.a
7841 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7843 uninstall::
7844 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7849 darwin*|macosx*)
7850 LIBEXT="dylib"
7851 DLLFLAGS="$DLLFLAGS -fPIC"
7852 LIBWINE_LDFLAGS="-multiply_defined suppress"
7853 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7854 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7855 COREFOUNDATION_LIBS="-framework CoreFoundation"
7857 IOKIT_LIBS="-framework IOKit -framework CoreFoundation"
7859 FORCEFEEDBACK_LIBS="-framework ForceFeedback -framework CoreFoundation"
7861 APPLICATIONSERVICES_LIBS="-framework ApplicationServices"
7863 CORESERVICES_LIBS="-framework CoreServices"
7865 APPKIT_LIBS="-framework AppKit"
7867 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-pagezero_size,0x1000,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-no_pie" >&5
7869 $as_echo_n "checking whether the compiler supports -Wl,-no_pie... " >&6; }
7870 if ${ac_cv_cflags__Wl__no_pie+:} false; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 ac_wine_try_cflags_saved=$CFLAGS
7874 CFLAGS="$CFLAGS -Wl,-no_pie"
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877 int main(int argc, char **argv) { return 0; }
7878 _ACEOF
7879 if ac_fn_c_try_link "$LINENO"; then :
7880 ac_cv_cflags__Wl__no_pie=yes
7881 else
7882 ac_cv_cflags__Wl__no_pie=no
7884 rm -f core conftest.err conftest.$ac_objext \
7885 conftest$ac_exeext conftest.$ac_ext
7886 CFLAGS=$ac_wine_try_cflags_saved
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl__no_pie" >&5
7889 $as_echo "$ac_cv_cflags__Wl__no_pie" >&6; }
7890 if test "x$ac_cv_cflags__Wl__no_pie" = xyes; then :
7891 LDEXECFLAGS="-Wl,-no_pie $LDEXECFLAGS"
7893 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7894 then
7895 DISKARBITRATION_LIBS="-framework DiskArbitration -framework CoreFoundation"
7898 if test "$ac_cv_header_Security_Security_h" = "yes"
7899 then
7900 SECURITY_LIBS="-framework Security -framework CoreFoundation"
7902 ac_save_LIBS="$LIBS"
7903 LIBS="$LIBS $SECURITY_LIBS"
7904 for ac_func in SSLCopyPeerCertificates
7905 do :
7906 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7907 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7908 cat >>confdefs.h <<_ACEOF
7909 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7910 _ACEOF
7913 done
7915 LIBS="$ac_save_LIBS"
7916 with_gnutls=${with_gnutls:-no}
7918 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7919 then
7920 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7921 then
7922 COREAUDIO_LIBS="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7924 else
7925 COREAUDIO_LIBS="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7928 ac_save_LIBS="$LIBS"
7929 LIBS="$LIBS $COREAUDIO_LIBS"
7930 for ac_func in AUGraphAddNode
7931 do :
7932 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7933 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7934 cat >>confdefs.h <<_ACEOF
7935 #define HAVE_AUGRAPHADDNODE 1
7936 _ACEOF
7939 done
7941 LIBS="$ac_save_LIBS"
7943 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7944 then
7945 OPENAL_LIBS="-framework OpenAL"
7948 cat >>confdefs.h <<_ACEOF
7949 #define HAVE_OPENAL 1
7950 _ACEOF
7952 ac_cv_lib_openal=yes
7954 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7955 then
7956 OPENCL_LIBS="-framework OpenCL"
7958 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7960 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7961 then
7962 ac_save_LIBS="$LIBS"
7963 LIBS="$LIBS $IOKIT_LIBS"
7964 for ac_func in IOHIDManagerCreate
7965 do :
7966 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7967 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7968 cat >>confdefs.h <<_ACEOF
7969 #define HAVE_IOHIDMANAGERCREATE 1
7970 _ACEOF
7973 done
7975 LIBS="$ac_save_LIBS"
7977 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7978 then
7979 ac_save_LIBS="$LIBS"
7980 LIBS="-framework QuickTime -framework ApplicationServices -framework CoreVideo $LIBS"
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QuickTime framework" >&5
7982 $as_echo_n "checking for the QuickTime framework... " >&6; }
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 #include <QuickTime/ImageCompression.h>
7987 main ()
7989 CodecManagerVersion(NULL);
7991 return 0;
7993 _ACEOF
7994 if ac_fn_c_try_link "$LINENO"; then :
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7996 $as_echo "yes" >&6; }
7997 QUICKTIME_LIBS="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7999 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
8000 else
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003 ac_cv_header_QuickTime_ImageCompression_h=no
8005 rm -f core conftest.err conftest.$ac_objext \
8006 conftest$ac_exeext conftest.$ac_ext
8007 LIBS="$ac_save_LIBS"
8009 if test "$ac_cv_header_QuickTime_ImageCompression_h" != "yes"
8010 then
8011 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
8013 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
8014 then
8015 CARBON_LIBS="-framework Carbon"
8019 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
8020 then
8021 ac_save_LIBS="$LIBS"
8022 LIBS="$LIBS $APPLICATIONSERVICES_LIBS"
8023 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
8024 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
8025 enable_winemac_drv=${enable_winemac_drv:-yes}
8028 LIBS="$ac_save_LIBS"
8031 if test "x$enable_win16" = "xyes"
8032 then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
8034 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
8035 if test "$cross_compiling" = yes; then :
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
8037 $as_echo "cross-compiling, assuming yes" >&6; }
8038 else
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8041 asm(".text\n"
8042 "bad:\tnop;nop\n"
8043 "good:\tnop;nop\n\t"
8044 ".globl _testfunc\n"
8045 "_testfunc:\tcallw good");
8046 extern void testfunc();
8048 main ()
8050 unsigned short *p = (unsigned short *)testfunc;
8051 return p[0] != 0xe866 || p[1] != 0xfffa
8053 return 0;
8055 _ACEOF
8056 if ac_fn_c_try_run "$LINENO"; then :
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8058 $as_echo "yes" >&6; }
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8062 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
8064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8065 conftest.$ac_objext conftest.beam conftest.$ac_ext
8070 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
8071 LIBWINE_RULES="
8072 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8074 all: libwine.dylib
8076 libwine.$libwine_version.dylib: \$(OBJS)
8077 \$(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 \$@
8079 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
8080 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
8082 libwine.dylib: libwine.$libwine_soversion.dylib
8083 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
8085 install install-lib:: libwine.$libwine_version.dylib
8086 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
8087 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
8089 install install-dev::
8090 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
8092 uninstall::
8093 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
8097 as_fn_append LOADER_RULES "
8098 $wine_binary: main.o wine_info.plist
8099 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8101 wine-installed: main.o wine_info.plist
8102 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8106 linux-android*)
8107 DLLFLAGS="$DLLFLAGS -fPIC"
8108 DLLPREFIX="lib"
8109 LDEXECFLAGS=""
8110 dlldir="\${libdir}"
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8112 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8113 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 ac_wine_try_cflags_saved=$CFLAGS
8117 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 int main(int argc, char **argv) { return 0; }
8121 _ACEOF
8122 if ac_fn_c_try_link "$LINENO"; then :
8123 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8124 else
8125 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8127 rm -f core conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 CFLAGS=$ac_wine_try_cflags_saved
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8132 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8133 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
8134 LDEXECFLAGS="-Wl,--export-dynamic"
8136 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8138 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8139 if eval \${$as_ac_var+:} false; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 ac_wine_try_cflags_saved=$CFLAGS
8143 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 int main(int argc, char **argv) { return 0; }
8147 _ACEOF
8148 if ac_fn_c_try_link "$LINENO"; then :
8149 eval "$as_ac_var=yes"
8150 else
8151 eval "$as_ac_var=no"
8153 rm -f core conftest.err conftest.$ac_objext \
8154 conftest$ac_exeext conftest.$ac_ext
8155 CFLAGS=$ac_wine_try_cflags_saved
8157 eval ac_res=\$$as_ac_var
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8159 $as_echo "$ac_res" >&6; }
8160 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8161 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8162 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8163 else
8164 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8166 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8167 if eval \${$as_ac_var+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 ac_wine_try_cflags_saved=$CFLAGS
8171 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h. */
8174 int main(int argc, char **argv) { return 0; }
8175 _ACEOF
8176 if ac_fn_c_try_link "$LINENO"; then :
8177 eval "$as_ac_var=yes"
8178 else
8179 eval "$as_ac_var=no"
8181 rm -f core conftest.err conftest.$ac_objext \
8182 conftest$ac_exeext conftest.$ac_ext
8183 CFLAGS=$ac_wine_try_cflags_saved
8185 eval ac_res=\$$as_ac_var
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8187 $as_echo "$ac_res" >&6; }
8188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8189 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8190 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8195 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8196 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 ac_wine_try_cflags_saved=$CFLAGS
8200 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203 int main(int argc, char **argv) { return 0; }
8204 _ACEOF
8205 if ac_fn_c_try_link "$LINENO"; then :
8206 ac_cv_cflags__Wl___enable_new_dtags=yes
8207 else
8208 ac_cv_cflags__Wl___enable_new_dtags=no
8210 rm -f core conftest.err conftest.$ac_objext \
8211 conftest$ac_exeext conftest.$ac_ext
8212 CFLAGS=$ac_wine_try_cflags_saved
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8215 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8216 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
8217 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8220 case $host_cpu in
8221 *i[3456789]86* | x86_64)
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8223 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8224 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 ac_wine_try_cflags_saved=$CFLAGS
8228 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 int main(int argc, char **argv) { return 0; }
8232 _ACEOF
8233 if ac_fn_c_try_link "$LINENO"; then :
8234 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8235 else
8236 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8238 rm -f core conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 CFLAGS=$ac_wine_try_cflags_saved
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8243 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8244 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8245 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8248 esac
8250 libwine_targets="libwine.so"
8251 LIBWINE_RULES="
8252 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8254 all: libwine.so
8256 libwine.so: \$(OBJS)
8257 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8259 install install-lib:: libwine.so
8260 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8262 uninstall::
8263 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8267 as_fn_append LOADER_RULES "
8268 $wine_binary: main.o
8269 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8271 wine-installed: main.o
8272 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8277 DLLFLAGS="$DLLFLAGS -fPIC"
8278 LDEXECFLAGS=""
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8280 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8281 if ${ac_cv_c_dll_gnuelf+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 ac_wine_try_cflags_saved=$CFLAGS
8285 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8288 void myfunc() {}
8289 _ACEOF
8290 if ac_fn_c_try_link "$LINENO"; then :
8291 ac_cv_c_dll_gnuelf="yes"
8292 else
8293 ac_cv_c_dll_gnuelf="no"
8295 rm -f core conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8297 CFLAGS=$ac_wine_try_cflags_saved
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8300 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8301 if test "$ac_cv_c_dll_gnuelf" = "yes"
8302 then
8303 LDSHARED="\$(CC) -shared"
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8305 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8306 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 ac_wine_try_cflags_saved=$CFLAGS
8310 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8313 int main(int argc, char **argv) { return 0; }
8314 _ACEOF
8315 if ac_fn_c_try_link "$LINENO"; then :
8316 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8317 else
8318 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8320 rm -f core conftest.err conftest.$ac_objext \
8321 conftest$ac_exeext conftest.$ac_ext
8322 CFLAGS=$ac_wine_try_cflags_saved
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8325 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8326 if test "x$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" = xyes; then :
8327 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8328 else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8330 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8331 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 ac_wine_try_cflags_saved=$CFLAGS
8335 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 int main(int argc, char **argv) { return 0; }
8339 _ACEOF
8340 if ac_fn_c_try_link "$LINENO"; then :
8341 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8342 else
8343 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8345 rm -f core conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext conftest.$ac_ext
8347 CFLAGS=$ac_wine_try_cflags_saved
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8350 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8351 if test "x$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" = xyes; then :
8352 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8356 echo '{ global: *; };' >conftest.map
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8358 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8359 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 ac_wine_try_cflags_saved=$CFLAGS
8363 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 int main(int argc, char **argv) { return 0; }
8367 _ACEOF
8368 if ac_fn_c_try_link "$LINENO"; then :
8369 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8370 else
8371 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8373 rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 CFLAGS=$ac_wine_try_cflags_saved
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8378 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8379 if test "x$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" = xyes; then :
8380 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8382 rm -f conftest.map
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8385 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8386 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 ac_wine_try_cflags_saved=$CFLAGS
8390 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 int main(int argc, char **argv) { return 0; }
8394 _ACEOF
8395 if ac_fn_c_try_link "$LINENO"; then :
8396 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8397 else
8398 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8400 rm -f core conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
8402 CFLAGS=$ac_wine_try_cflags_saved
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8405 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8406 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
8407 LDEXECFLAGS="-Wl,--export-dynamic"
8410 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8412 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8413 if eval \${$as_ac_var+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 ac_wine_try_cflags_saved=$CFLAGS
8417 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 int main(int argc, char **argv) { return 0; }
8421 _ACEOF
8422 if ac_fn_c_try_link "$LINENO"; then :
8423 eval "$as_ac_var=yes"
8424 else
8425 eval "$as_ac_var=no"
8427 rm -f core conftest.err conftest.$ac_objext \
8428 conftest$ac_exeext conftest.$ac_ext
8429 CFLAGS=$ac_wine_try_cflags_saved
8431 eval ac_res=\$$as_ac_var
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8433 $as_echo "$ac_res" >&6; }
8434 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8435 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8436 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8437 else
8438 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8440 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8441 if eval \${$as_ac_var+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 ac_wine_try_cflags_saved=$CFLAGS
8445 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 int main(int argc, char **argv) { return 0; }
8449 _ACEOF
8450 if ac_fn_c_try_link "$LINENO"; then :
8451 eval "$as_ac_var=yes"
8452 else
8453 eval "$as_ac_var=no"
8455 rm -f core conftest.err conftest.$ac_objext \
8456 conftest$ac_exeext conftest.$ac_ext
8457 CFLAGS=$ac_wine_try_cflags_saved
8459 eval ac_res=\$$as_ac_var
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8461 $as_echo "$ac_res" >&6; }
8462 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8463 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8464 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8469 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8470 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 ac_wine_try_cflags_saved=$CFLAGS
8474 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8477 int main(int argc, char **argv) { return 0; }
8478 _ACEOF
8479 if ac_fn_c_try_link "$LINENO"; then :
8480 ac_cv_cflags__Wl___enable_new_dtags=yes
8481 else
8482 ac_cv_cflags__Wl___enable_new_dtags=no
8484 rm -f core conftest.err conftest.$ac_objext \
8485 conftest$ac_exeext conftest.$ac_ext
8486 CFLAGS=$ac_wine_try_cflags_saved
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8489 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8490 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
8491 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8494 case $host_cpu in
8495 *i[3456789]86* | x86_64)
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8497 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8498 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 ac_wine_try_cflags_saved=$CFLAGS
8502 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 int main(int argc, char **argv) { return 0; }
8506 _ACEOF
8507 if ac_fn_c_try_link "$LINENO"; then :
8508 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8509 else
8510 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8512 rm -f core conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8514 CFLAGS=$ac_wine_try_cflags_saved
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8517 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8518 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8519 case $host_os in
8520 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8521 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8522 esac
8525 # Extract the first word of "prelink", so it can be a program name with args.
8526 set dummy prelink; ac_word=$2
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 $as_echo_n "checking for $ac_word... " >&6; }
8529 if ${ac_cv_path_PRELINK+:} false; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 case $PRELINK in
8533 [\\/]* | ?:[\\/]*)
8534 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in /sbin /usr/sbin $PATH
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8548 done
8549 done
8550 IFS=$as_save_IFS
8552 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8554 esac
8556 PRELINK=$ac_cv_path_PRELINK
8557 if test -n "$PRELINK"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8559 $as_echo "$PRELINK" >&6; }
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8566 if test "x$PRELINK" = xfalse
8567 then
8568 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8571 esac
8573 else
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8575 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8576 if ${ac_cv_c_dll_unixware+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 ac_wine_try_cflags_saved=$CFLAGS
8580 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 void myfunc() {}
8584 _ACEOF
8585 if ac_fn_c_try_link "$LINENO"; then :
8586 ac_cv_c_dll_unixware="yes"
8587 else
8588 ac_cv_c_dll_unixware="no"
8590 rm -f core conftest.err conftest.$ac_objext \
8591 conftest$ac_exeext conftest.$ac_ext
8592 CFLAGS=$ac_wine_try_cflags_saved
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8595 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8596 if test "$ac_cv_c_dll_unixware" = "yes"
8597 then
8598 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8601 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8602 LIBWINE_RULES="
8603 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8605 all: libwine.so
8607 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8608 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8610 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8611 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8613 libwine.so: libwine.so.$libwine_soversion
8614 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8616 install install-lib:: libwine.so.$libwine_version
8617 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8618 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8620 install install-dev::
8621 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8623 uninstall::
8624 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8628 as_fn_append LOADER_RULES "
8629 $wine_binary: main.o
8630 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8632 wine-installed: main.o
8633 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8636 esac
8638 as_fn_append LIBWINE_RULES "
8639 EXTRA_TARGETS = $libwine_targets
8642 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8643 enable_winemac_drv=${enable_winemac_drv:-no}
8645 CROSSTARGET=""
8647 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8648 then
8649 case "$host_cpu" in
8650 i[3456789]86*)
8651 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
8652 mingw32-gcc" ;;
8653 x86_64)
8654 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 " ;;
8656 ac_prefix_list="" ;;
8657 esac
8658 for ac_prog in $ac_prefix_list
8660 # Extract the first word of "$ac_prog", so it can be a program name with args.
8661 set dummy $ac_prog; ac_word=$2
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8663 $as_echo_n "checking for $ac_word... " >&6; }
8664 if ${ac_cv_prog_CROSSCC+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 if test -n "$CROSSCC"; then
8668 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8669 else
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $PATH
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8677 ac_cv_prog_CROSSCC="$ac_prog"
8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 break 2
8681 done
8682 done
8683 IFS=$as_save_IFS
8687 CROSSCC=$ac_cv_prog_CROSSCC
8688 if test -n "$CROSSCC"; then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8690 $as_echo "$CROSSCC" >&6; }
8691 else
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693 $as_echo "no" >&6; }
8697 test -n "$CROSSCC" && break
8698 done
8699 test -n "$CROSSCC" || CROSSCC="false"
8701 if test "$CROSSCC" != "false"
8702 then
8703 ac_save_CC="$CC"
8704 CC="$CROSSCC"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8706 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8711 main ()
8715 return 0;
8717 _ACEOF
8718 if ac_fn_c_try_compile "$LINENO"; then :
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8720 $as_echo "yes" >&6; }
8721 set x $CROSSCC
8722 shift
8723 while test $# -ge 1
8725 case "$1" in
8726 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8727 esac
8728 shift
8729 done
8730 else
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 CC="$ac_save_CC"
8740 if test "$ac_cv_header_pthread_h" = "yes"
8741 then
8742 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8743 if test "x$ac_cv_func_pthread_create" = xyes; then :
8745 else
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8747 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8748 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 ac_check_lib_save_LIBS=$LIBS
8752 LIBS="-lpthread $LIBS"
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8756 /* Override any GCC internal prototype to avoid an error.
8757 Use char because int might match the return type of a GCC
8758 builtin and then its argument prototype would still apply. */
8759 #ifdef __cplusplus
8760 extern "C"
8761 #endif
8762 char pthread_create ();
8764 main ()
8766 return pthread_create ();
8768 return 0;
8770 _ACEOF
8771 if ac_fn_c_try_link "$LINENO"; then :
8772 ac_cv_lib_pthread_pthread_create=yes
8773 else
8774 ac_cv_lib_pthread_pthread_create=no
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778 LIBS=$ac_check_lib_save_LIBS
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8781 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8782 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8783 PTHREAD_LIBS="-lpthread"
8790 if test "x$ac_cv_func_pthread_create" != xyes -a "x$PTHREAD_LIBS" = x; then :
8791 case "x$with_pthread" in
8792 xno) ;;
8793 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8794 Wine cannot support threads without libpthread.
8795 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8796 esac
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8801 $as_echo_n "checking for X... " >&6; }
8804 # Check whether --with-x was given.
8805 if test "${with_x+set}" = set; then :
8806 withval=$with_x;
8809 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8810 if test "x$with_x" = xno; then
8811 # The user explicitly disabled X.
8812 have_x=disabled
8813 else
8814 case $x_includes,$x_libraries in #(
8815 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8816 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 # One or both of the vars are not set, and there is no cached value.
8820 ac_x_includes=no ac_x_libraries=no
8821 rm -f -r conftest.dir
8822 if mkdir conftest.dir; then
8823 cd conftest.dir
8824 cat >Imakefile <<'_ACEOF'
8825 incroot:
8826 @echo incroot='${INCROOT}'
8827 usrlibdir:
8828 @echo usrlibdir='${USRLIBDIR}'
8829 libdir:
8830 @echo libdir='${LIBDIR}'
8831 _ACEOF
8832 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8833 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8834 for ac_var in incroot usrlibdir libdir; do
8835 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8836 done
8837 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8838 for ac_extension in a so sl dylib la dll; do
8839 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8840 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8841 ac_im_usrlibdir=$ac_im_libdir; break
8843 done
8844 # Screen out bogus values from the imake configuration. They are
8845 # bogus both because they are the default anyway, and because
8846 # using them would break gcc on systems where it needs fixed includes.
8847 case $ac_im_incroot in
8848 /usr/include) ac_x_includes= ;;
8849 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8850 esac
8851 case $ac_im_usrlibdir in
8852 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8853 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8854 esac
8856 cd ..
8857 rm -f -r conftest.dir
8860 # Standard set of common directories for X headers.
8861 # Check X11 before X11Rn because it is often a symlink to the current release.
8862 ac_x_header_dirs='
8863 /usr/X11/include
8864 /usr/X11R7/include
8865 /usr/X11R6/include
8866 /usr/X11R5/include
8867 /usr/X11R4/include
8869 /usr/include/X11
8870 /usr/include/X11R7
8871 /usr/include/X11R6
8872 /usr/include/X11R5
8873 /usr/include/X11R4
8875 /usr/local/X11/include
8876 /usr/local/X11R7/include
8877 /usr/local/X11R6/include
8878 /usr/local/X11R5/include
8879 /usr/local/X11R4/include
8881 /usr/local/include/X11
8882 /usr/local/include/X11R7
8883 /usr/local/include/X11R6
8884 /usr/local/include/X11R5
8885 /usr/local/include/X11R4
8887 /usr/X386/include
8888 /usr/x386/include
8889 /usr/XFree86/include/X11
8891 /usr/include
8892 /usr/local/include
8893 /usr/unsupported/include
8894 /usr/athena/include
8895 /usr/local/x11r5/include
8896 /usr/lpp/Xamples/include
8898 /usr/openwin/include
8899 /usr/openwin/share/include'
8901 if test "$ac_x_includes" = no; then
8902 # Guess where to find include files, by looking for Xlib.h.
8903 # First, try using that file with no special directory specified.
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8906 #include <X11/Xlib.h>
8907 _ACEOF
8908 if ac_fn_c_try_cpp "$LINENO"; then :
8909 # We can compile using X headers with no special include directory.
8910 ac_x_includes=
8911 else
8912 for ac_dir in $ac_x_header_dirs; do
8913 if test -r "$ac_dir/X11/Xlib.h"; then
8914 ac_x_includes=$ac_dir
8915 break
8917 done
8919 rm -f conftest.err conftest.i conftest.$ac_ext
8920 fi # $ac_x_includes = no
8922 if test "$ac_x_libraries" = no; then
8923 # Check for the libraries.
8924 # See if we find them without any special options.
8925 # Don't add to $LIBS permanently.
8926 ac_save_LIBS=$LIBS
8927 LIBS="-lX11 $LIBS"
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 #include <X11/Xlib.h>
8932 main ()
8934 XrmInitialize ()
8936 return 0;
8938 _ACEOF
8939 if ac_fn_c_try_link "$LINENO"; then :
8940 LIBS=$ac_save_LIBS
8941 # We can link X programs with no special library path.
8942 ac_x_libraries=
8943 else
8944 LIBS=$ac_save_LIBS
8945 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8947 # Don't even attempt the hair of trying to link an X program!
8948 for ac_extension in a so sl dylib la dll; do
8949 if test -r "$ac_dir/libX11.$ac_extension"; then
8950 ac_x_libraries=$ac_dir
8951 break 2
8953 done
8954 done
8956 rm -f core conftest.err conftest.$ac_objext \
8957 conftest$ac_exeext conftest.$ac_ext
8958 fi # $ac_x_libraries = no
8960 case $ac_x_includes,$ac_x_libraries in #(
8961 no,* | *,no | *\'*)
8962 # Didn't find X, or a directory has "'" in its name.
8963 ac_cv_have_x="have_x=no";; #(
8965 # Record where we found X for the cache.
8966 ac_cv_have_x="have_x=yes\
8967 ac_x_includes='$ac_x_includes'\
8968 ac_x_libraries='$ac_x_libraries'"
8969 esac
8971 ;; #(
8972 *) have_x=yes;;
8973 esac
8974 eval "$ac_cv_have_x"
8975 fi # $with_x != no
8977 if test "$have_x" != yes; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8979 $as_echo "$have_x" >&6; }
8980 no_x=yes
8981 else
8982 # If each of the values was on the command line, it overrides each guess.
8983 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8984 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8985 # Update the cache value to reflect the command line values.
8986 ac_cv_have_x="have_x=yes\
8987 ac_x_includes='$x_includes'\
8988 ac_x_libraries='$x_libraries'"
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8990 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8993 if test "$no_x" = yes; then
8994 # Not all programs may use this symbol, but it does not hurt to define it.
8996 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8998 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8999 else
9000 if test -n "$x_includes"; then
9001 X_CFLAGS="$X_CFLAGS -I$x_includes"
9004 # It would also be nice to do this for all -L options, not just this one.
9005 if test -n "$x_libraries"; then
9006 X_LIBS="$X_LIBS -L$x_libraries"
9007 # For Solaris; some versions of Sun CC require a space after -R and
9008 # others require no space. Words are not sufficient . . . .
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
9010 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
9011 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9012 ac_xsave_c_werror_flag=$ac_c_werror_flag
9013 ac_c_werror_flag=yes
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9018 main ()
9022 return 0;
9024 _ACEOF
9025 if ac_fn_c_try_link "$LINENO"; then :
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 X_LIBS="$X_LIBS -R$x_libraries"
9029 else
9030 LIBS="$ac_xsave_LIBS -R $x_libraries"
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9035 main ()
9039 return 0;
9041 _ACEOF
9042 if ac_fn_c_try_link "$LINENO"; then :
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9044 $as_echo "yes" >&6; }
9045 X_LIBS="$X_LIBS -R $x_libraries"
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
9048 $as_echo "neither works" >&6; }
9050 rm -f core conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
9053 rm -f core conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext conftest.$ac_ext
9055 ac_c_werror_flag=$ac_xsave_c_werror_flag
9056 LIBS=$ac_xsave_LIBS
9059 # Check for system-dependent libraries X programs must link with.
9060 # Do this before checking for the system-independent R6 libraries
9061 # (-lICE), since we may need -lsocket or whatever for X linking.
9063 if test "$ISC" = yes; then
9064 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9065 else
9066 # Martyn Johnson says this is needed for Ultrix, if the X
9067 # libraries were built with DECnet support. And Karl Berry says
9068 # the Alpha needs dnet_stub (dnet does not exist).
9069 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9073 /* Override any GCC internal prototype to avoid an error.
9074 Use char because int might match the return type of a GCC
9075 builtin and then its argument prototype would still apply. */
9076 #ifdef __cplusplus
9077 extern "C"
9078 #endif
9079 char XOpenDisplay ();
9081 main ()
9083 return XOpenDisplay ();
9085 return 0;
9087 _ACEOF
9088 if ac_fn_c_try_link "$LINENO"; then :
9090 else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9092 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9093 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 ac_check_lib_save_LIBS=$LIBS
9097 LIBS="-ldnet $LIBS"
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9101 /* Override any GCC internal prototype to avoid an error.
9102 Use char because int might match the return type of a GCC
9103 builtin and then its argument prototype would still apply. */
9104 #ifdef __cplusplus
9105 extern "C"
9106 #endif
9107 char dnet_ntoa ();
9109 main ()
9111 return dnet_ntoa ();
9113 return 0;
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"; then :
9117 ac_cv_lib_dnet_dnet_ntoa=yes
9118 else
9119 ac_cv_lib_dnet_dnet_ntoa=no
9121 rm -f core conftest.err conftest.$ac_objext \
9122 conftest$ac_exeext conftest.$ac_ext
9123 LIBS=$ac_check_lib_save_LIBS
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9126 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9127 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9128 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9131 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
9133 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
9134 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 ac_check_lib_save_LIBS=$LIBS
9138 LIBS="-ldnet_stub $LIBS"
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9142 /* Override any GCC internal prototype to avoid an error.
9143 Use char because int might match the return type of a GCC
9144 builtin and then its argument prototype would still apply. */
9145 #ifdef __cplusplus
9146 extern "C"
9147 #endif
9148 char dnet_ntoa ();
9150 main ()
9152 return dnet_ntoa ();
9154 return 0;
9156 _ACEOF
9157 if ac_fn_c_try_link "$LINENO"; then :
9158 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9159 else
9160 ac_cv_lib_dnet_stub_dnet_ntoa=no
9162 rm -f core conftest.err conftest.$ac_objext \
9163 conftest$ac_exeext conftest.$ac_ext
9164 LIBS=$ac_check_lib_save_LIBS
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9167 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
9168 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
9169 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9174 rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9176 LIBS="$ac_xsave_LIBS"
9178 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9179 # to get the SysV transport functions.
9180 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9181 # needs -lnsl.
9182 # The nsl library prevents programs from opening the X display
9183 # on Irix 5.2, according to T.E. Dickey.
9184 # The functions gethostbyname, getservbyname, and inet_addr are
9185 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9186 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9187 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9191 if test $ac_cv_func_gethostbyname = no; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9193 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9194 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 ac_check_lib_save_LIBS=$LIBS
9198 LIBS="-lnsl $LIBS"
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9202 /* Override any GCC internal prototype to avoid an error.
9203 Use char because int might match the return type of a GCC
9204 builtin and then its argument prototype would still apply. */
9205 #ifdef __cplusplus
9206 extern "C"
9207 #endif
9208 char gethostbyname ();
9210 main ()
9212 return gethostbyname ();
9214 return 0;
9216 _ACEOF
9217 if ac_fn_c_try_link "$LINENO"; then :
9218 ac_cv_lib_nsl_gethostbyname=yes
9219 else
9220 ac_cv_lib_nsl_gethostbyname=no
9222 rm -f core conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 LIBS=$ac_check_lib_save_LIBS
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9227 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9228 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9229 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9232 if test $ac_cv_lib_nsl_gethostbyname = no; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
9234 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9235 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lbsd $LIBS"
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9243 /* Override any GCC internal prototype to avoid an error.
9244 Use char because int might match the return type of a GCC
9245 builtin and then its argument prototype would still apply. */
9246 #ifdef __cplusplus
9247 extern "C"
9248 #endif
9249 char gethostbyname ();
9251 main ()
9253 return gethostbyname ();
9255 return 0;
9257 _ACEOF
9258 if ac_fn_c_try_link "$LINENO"; then :
9259 ac_cv_lib_bsd_gethostbyname=yes
9260 else
9261 ac_cv_lib_bsd_gethostbyname=no
9263 rm -f core conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9265 LIBS=$ac_check_lib_save_LIBS
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9268 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9269 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9270 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9276 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9277 # socket/setsockopt and other routines are undefined under SCO ODT
9278 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9279 # on later versions), says Simon Leinen: it contains gethostby*
9280 # variants that don't use the name server (or something). -lsocket
9281 # must be given before -lnsl if both are needed. We assume that
9282 # if connect needs -lnsl, so does gethostbyname.
9283 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9284 if test "x$ac_cv_func_connect" = xyes; then :
9288 if test $ac_cv_func_connect = no; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9290 $as_echo_n "checking for connect in -lsocket... " >&6; }
9291 if ${ac_cv_lib_socket_connect+:} false; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 ac_check_lib_save_LIBS=$LIBS
9295 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9299 /* Override any GCC internal prototype to avoid an error.
9300 Use char because int might match the return type of a GCC
9301 builtin and then its argument prototype would still apply. */
9302 #ifdef __cplusplus
9303 extern "C"
9304 #endif
9305 char connect ();
9307 main ()
9309 return connect ();
9311 return 0;
9313 _ACEOF
9314 if ac_fn_c_try_link "$LINENO"; then :
9315 ac_cv_lib_socket_connect=yes
9316 else
9317 ac_cv_lib_socket_connect=no
9319 rm -f core conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321 LIBS=$ac_check_lib_save_LIBS
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9324 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9325 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9326 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9331 # Guillermo Gomez says -lposix is necessary on A/UX.
9332 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9333 if test "x$ac_cv_func_remove" = xyes; then :
9337 if test $ac_cv_func_remove = no; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9339 $as_echo_n "checking for remove in -lposix... " >&6; }
9340 if ${ac_cv_lib_posix_remove+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 ac_check_lib_save_LIBS=$LIBS
9344 LIBS="-lposix $LIBS"
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9348 /* Override any GCC internal prototype to avoid an error.
9349 Use char because int might match the return type of a GCC
9350 builtin and then its argument prototype would still apply. */
9351 #ifdef __cplusplus
9352 extern "C"
9353 #endif
9354 char remove ();
9356 main ()
9358 return remove ();
9360 return 0;
9362 _ACEOF
9363 if ac_fn_c_try_link "$LINENO"; then :
9364 ac_cv_lib_posix_remove=yes
9365 else
9366 ac_cv_lib_posix_remove=no
9368 rm -f core conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9373 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9374 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9375 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9380 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9381 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9382 if test "x$ac_cv_func_shmat" = xyes; then :
9386 if test $ac_cv_func_shmat = no; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9388 $as_echo_n "checking for shmat in -lipc... " >&6; }
9389 if ${ac_cv_lib_ipc_shmat+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392 ac_check_lib_save_LIBS=$LIBS
9393 LIBS="-lipc $LIBS"
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9400 #ifdef __cplusplus
9401 extern "C"
9402 #endif
9403 char shmat ();
9405 main ()
9407 return shmat ();
9409 return 0;
9411 _ACEOF
9412 if ac_fn_c_try_link "$LINENO"; then :
9413 ac_cv_lib_ipc_shmat=yes
9414 else
9415 ac_cv_lib_ipc_shmat=no
9417 rm -f core conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419 LIBS=$ac_check_lib_save_LIBS
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9422 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9423 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9424 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9430 # Check for libraries that X11R6 Xt/Xaw programs need.
9431 ac_save_LDFLAGS=$LDFLAGS
9432 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9433 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9434 # check for ICE first), but we must link in the order -lSM -lICE or
9435 # we get undefined symbols. So assume we have SM if we have ICE.
9436 # These have to be linked with before -lX11, unlike the other
9437 # libraries we check for below, so use a different variable.
9438 # John Interrante, Karl Berry
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9440 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9441 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 ac_check_lib_save_LIBS=$LIBS
9445 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9449 /* Override any GCC internal prototype to avoid an error.
9450 Use char because int might match the return type of a GCC
9451 builtin and then its argument prototype would still apply. */
9452 #ifdef __cplusplus
9453 extern "C"
9454 #endif
9455 char IceConnectionNumber ();
9457 main ()
9459 return IceConnectionNumber ();
9461 return 0;
9463 _ACEOF
9464 if ac_fn_c_try_link "$LINENO"; then :
9465 ac_cv_lib_ICE_IceConnectionNumber=yes
9466 else
9467 ac_cv_lib_ICE_IceConnectionNumber=no
9469 rm -f core conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471 LIBS=$ac_check_lib_save_LIBS
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9474 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9475 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9476 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9479 LDFLAGS=$ac_save_LDFLAGS
9484 if test "$have_x" = "yes"
9485 then
9486 ac_save_CPPFLAGS="$CPPFLAGS"
9487 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9490 $as_echo_n "checking for -lX11... " >&6; }
9491 if ${ac_cv_lib_soname_X11+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 ac_check_soname_save_LIBS=$LIBS
9495 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9499 /* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
9502 #ifdef __cplusplus
9503 extern "C"
9504 #endif
9505 char XCreateWindow ();
9507 main ()
9509 return XCreateWindow ();
9511 return 0;
9513 _ACEOF
9514 if ac_fn_c_try_link "$LINENO"; then :
9515 case "$LIBEXT" in
9516 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9517 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'` ;;
9518 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9519 if ${ac_cv_lib_soname_X11:+false} :; then :
9520 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9521 fi ;;
9522 esac
9524 rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526 LIBS=$ac_check_soname_save_LIBS
9528 if ${ac_cv_lib_soname_X11:+false} :; then :
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9530 $as_echo "not found" >&6; }
9532 else
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9534 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9536 cat >>confdefs.h <<_ACEOF
9537 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9538 _ACEOF
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9543 $as_echo_n "checking for -lXext... " >&6; }
9544 if ${ac_cv_lib_soname_Xext+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 ac_check_soname_save_LIBS=$LIBS
9548 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 char XextCreateExtension ();
9560 main ()
9562 return XextCreateExtension ();
9564 return 0;
9566 _ACEOF
9567 if ac_fn_c_try_link "$LINENO"; then :
9568 case "$LIBEXT" in
9569 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9570 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'` ;;
9571 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9572 if ${ac_cv_lib_soname_Xext:+false} :; then :
9573 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9574 fi ;;
9575 esac
9577 rm -f core conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9579 LIBS=$ac_check_soname_save_LIBS
9581 if ${ac_cv_lib_soname_Xext:+false} :; then :
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9583 $as_echo "not found" >&6; }
9585 else
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9587 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9589 cat >>confdefs.h <<_ACEOF
9590 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9591 _ACEOF
9593 X_LIBS="$X_LIBS -lXext"
9595 X_LIBS="$X_LIBS -lX11"
9597 for ac_header in X11/Xlib.h \
9598 X11/XKBlib.h \
9599 X11/Xutil.h \
9600 X11/Xcursor/Xcursor.h \
9601 X11/extensions/shape.h \
9602 X11/extensions/XInput.h \
9603 X11/extensions/XInput2.h \
9604 X11/extensions/XShm.h \
9605 X11/extensions/Xcomposite.h \
9606 X11/extensions/Xinerama.h \
9607 X11/extensions/Xrandr.h \
9608 X11/extensions/Xrender.h \
9609 X11/extensions/xf86vmode.h \
9610 X11/extensions/xf86vmproto.h
9611 do :
9612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9613 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9614 # include <X11/Xlib.h>
9615 #endif
9616 #ifdef HAVE_X11_XUTIL_H
9617 # include <X11/Xutil.h>
9618 #endif
9620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9621 cat >>confdefs.h <<_ACEOF
9622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9623 _ACEOF
9627 done
9630 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9631 then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9633 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9634 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 ac_check_lib_save_LIBS=$LIBS
9638 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9642 /* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9645 #ifdef __cplusplus
9646 extern "C"
9647 #endif
9648 char XkbQueryExtension ();
9650 main ()
9652 return XkbQueryExtension ();
9654 return 0;
9656 _ACEOF
9657 if ac_fn_c_try_link "$LINENO"; then :
9658 ac_cv_lib_X11_XkbQueryExtension=yes
9659 else
9660 ac_cv_lib_X11_XkbQueryExtension=no
9662 rm -f core conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext conftest.$ac_ext
9664 LIBS=$ac_check_lib_save_LIBS
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9667 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9668 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9670 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9676 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9677 then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9679 $as_echo_n "checking for -lXcursor... " >&6; }
9680 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 ac_check_soname_save_LIBS=$LIBS
9684 LIBS="-lXcursor $X_LIBS $X_EXTRA_LIBS $LIBS"
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char XcursorImageLoadCursor ();
9696 main ()
9698 return XcursorImageLoadCursor ();
9700 return 0;
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704 case "$LIBEXT" in
9705 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9706 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'` ;;
9707 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9708 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9709 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9710 fi ;;
9711 esac
9713 rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_soname_save_LIBS
9717 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9719 $as_echo "not found" >&6; }
9721 else
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9723 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9725 cat >>confdefs.h <<_ACEOF
9726 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9727 _ACEOF
9732 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9733 case "x$with_xcursor" in
9734 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9735 xno) ;;
9736 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9737 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9738 esac
9741 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9742 then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9744 $as_echo_n "checking for -lXi... " >&6; }
9745 if ${ac_cv_lib_soname_Xi+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 ac_check_soname_save_LIBS=$LIBS
9749 LIBS="-lXi $X_LIBS $X_EXTRA_LIBS $LIBS"
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9753 /* Override any GCC internal prototype to avoid an error.
9754 Use char because int might match the return type of a GCC
9755 builtin and then its argument prototype would still apply. */
9756 #ifdef __cplusplus
9757 extern "C"
9758 #endif
9759 char XOpenDevice ();
9761 main ()
9763 return XOpenDevice ();
9765 return 0;
9767 _ACEOF
9768 if ac_fn_c_try_link "$LINENO"; then :
9769 case "$LIBEXT" in
9770 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9771 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'` ;;
9772 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9773 if ${ac_cv_lib_soname_Xi:+false} :; then :
9774 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9775 fi ;;
9776 esac
9778 rm -f core conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext conftest.$ac_ext
9780 LIBS=$ac_check_soname_save_LIBS
9782 if ${ac_cv_lib_soname_Xi:+false} :; then :
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9784 $as_echo "not found" >&6; }
9786 else
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9788 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9790 cat >>confdefs.h <<_ACEOF
9791 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9792 _ACEOF
9797 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9798 case "x$with_xinput" in
9799 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9800 xno) ;;
9801 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9802 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9803 esac
9806 if test "x$ac_cv_lib_soname_Xi" != x
9807 then
9808 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9809 case "x$with_xinput2" in
9810 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9811 xno) ;;
9812 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9813 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9814 esac
9818 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9819 then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9821 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9822 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 ac_check_lib_save_LIBS=$LIBS
9826 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h. */
9830 /* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
9833 #ifdef __cplusplus
9834 extern "C"
9835 #endif
9836 char XShmQueryExtension ();
9838 main ()
9840 return XShmQueryExtension ();
9842 return 0;
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"; then :
9846 ac_cv_lib_Xext_XShmQueryExtension=yes
9847 else
9848 ac_cv_lib_Xext_XShmQueryExtension=no
9850 rm -f core conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext conftest.$ac_ext
9852 LIBS=$ac_check_lib_save_LIBS
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9855 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9856 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9858 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9863 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9864 case "x$with_xshm" in
9865 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9866 xno) ;;
9867 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9868 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9869 esac
9872 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9873 then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9875 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9876 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879 ac_check_lib_save_LIBS=$LIBS
9880 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9884 /* Override any GCC internal prototype to avoid an error.
9885 Use char because int might match the return type of a GCC
9886 builtin and then its argument prototype would still apply. */
9887 #ifdef __cplusplus
9888 extern "C"
9889 #endif
9890 char XShapeQueryExtension ();
9892 main ()
9894 return XShapeQueryExtension ();
9896 return 0;
9898 _ACEOF
9899 if ac_fn_c_try_link "$LINENO"; then :
9900 ac_cv_lib_Xext_XShapeQueryExtension=yes
9901 else
9902 ac_cv_lib_Xext_XShapeQueryExtension=no
9904 rm -f core conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9909 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9910 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9912 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9917 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9918 case "x$with_xshape" in
9919 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9920 xno) ;;
9921 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9922 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9923 esac
9926 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9927 then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9929 $as_echo_n "checking for -lXxf86vm... " >&6; }
9930 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 ac_check_soname_save_LIBS=$LIBS
9934 LIBS="-lXxf86vm $X_LIBS $X_EXTRA_LIBS $LIBS"
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9938 /* Override any GCC internal prototype to avoid an error.
9939 Use char because int might match the return type of a GCC
9940 builtin and then its argument prototype would still apply. */
9941 #ifdef __cplusplus
9942 extern "C"
9943 #endif
9944 char XF86VidModeQueryExtension ();
9946 main ()
9948 return XF86VidModeQueryExtension ();
9950 return 0;
9952 _ACEOF
9953 if ac_fn_c_try_link "$LINENO"; then :
9954 case "$LIBEXT" in
9955 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9956 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'` ;;
9957 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9958 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9959 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9960 fi ;;
9961 esac
9963 rm -f core conftest.err conftest.$ac_objext \
9964 conftest$ac_exeext conftest.$ac_ext
9965 LIBS=$ac_check_soname_save_LIBS
9967 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9969 $as_echo "not found" >&6; }
9971 else
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9973 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9975 cat >>confdefs.h <<_ACEOF
9976 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9977 _ACEOF
9982 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9983 case "x$with_xxf86vm" in
9984 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9985 xno) ;;
9986 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9987 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9988 esac
9991 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x"
9992 then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9994 $as_echo_n "checking for -lXrender... " >&6; }
9995 if ${ac_cv_lib_soname_Xrender+:} false; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 ac_check_soname_save_LIBS=$LIBS
9999 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 char XRenderQueryExtension ();
10011 main ()
10013 return XRenderQueryExtension ();
10015 return 0;
10017 _ACEOF
10018 if ac_fn_c_try_link "$LINENO"; then :
10019 case "$LIBEXT" in
10020 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10021 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'` ;;
10022 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10023 if ${ac_cv_lib_soname_Xrender:+false} :; then :
10024 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10025 fi ;;
10026 esac
10028 rm -f core conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_soname_save_LIBS
10032 if ${ac_cv_lib_soname_Xrender:+false} :; then :
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10034 $as_echo "not found" >&6; }
10036 else
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
10038 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
10040 cat >>confdefs.h <<_ACEOF
10041 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10042 _ACEOF
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
10045 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
10046 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049 ac_check_lib_save_LIBS=$LIBS
10050 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10054 /* Override any GCC internal prototype to avoid an error.
10055 Use char because int might match the return type of a GCC
10056 builtin and then its argument prototype would still apply. */
10057 #ifdef __cplusplus
10058 extern "C"
10059 #endif
10060 char XRenderSetPictureTransform ();
10062 main ()
10064 return XRenderSetPictureTransform ();
10066 return 0;
10068 _ACEOF
10069 if ac_fn_c_try_link "$LINENO"; then :
10070 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
10071 else
10072 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
10074 rm -f core conftest.err conftest.$ac_objext \
10075 conftest$ac_exeext conftest.$ac_ext
10076 LIBS=$ac_check_lib_save_LIBS
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
10079 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
10080 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
10082 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
10087 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
10088 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10096 /* Override any GCC internal prototype to avoid an error.
10097 Use char because int might match the return type of a GCC
10098 builtin and then its argument prototype would still apply. */
10099 #ifdef __cplusplus
10100 extern "C"
10101 #endif
10102 char XRenderCreateLinearGradient ();
10104 main ()
10106 return XRenderCreateLinearGradient ();
10108 return 0;
10110 _ACEOF
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
10113 else
10114 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
10121 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
10122 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
10124 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
10131 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
10132 case "x$with_xrender" in
10133 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
10134 xno) ;;
10135 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
10136 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
10137 esac
10140 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
10141 then
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10144 #include <X11/Xlib.h>
10145 #include <X11/extensions/Xrandr.h>
10147 main ()
10149 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
10151 return 0;
10153 _ACEOF
10154 if ac_fn_c_try_compile "$LINENO"; then :
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
10156 $as_echo_n "checking for -lXrandr... " >&6; }
10157 if ${ac_cv_lib_soname_Xrandr+:} false; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 ac_check_soname_save_LIBS=$LIBS
10161 LIBS="-lXrandr $X_LIBS $X_EXTRA_LIBS $LIBS"
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char XRRQueryExtension ();
10173 main ()
10175 return XRRQueryExtension ();
10177 return 0;
10179 _ACEOF
10180 if ac_fn_c_try_link "$LINENO"; then :
10181 case "$LIBEXT" in
10182 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10183 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'` ;;
10184 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10185 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
10186 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10187 fi ;;
10188 esac
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_soname_save_LIBS
10194 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10196 $as_echo "not found" >&6; }
10198 else
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
10200 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
10202 cat >>confdefs.h <<_ACEOF
10203 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
10204 _ACEOF
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208 #include <X11/Xlib.h>
10209 #include <X11/extensions/Xrandr.h>
10211 main ()
10213 static typeof(XRRGetScreenResources) *f; if (f) return 0;
10215 return 0;
10217 _ACEOF
10218 if ac_fn_c_try_compile "$LINENO"; then :
10220 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
10223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
10229 case "x$with_xrandr" in
10230 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
10231 xno) ;;
10232 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
10233 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
10234 esac
10237 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10238 then
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241 #include <X11/Xlib.h>
10242 #include <X11/extensions/Xinerama.h>
10244 main ()
10246 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10248 return 0;
10250 _ACEOF
10251 if ac_fn_c_try_compile "$LINENO"; then :
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10253 $as_echo_n "checking for -lXinerama... " >&6; }
10254 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256 else
10257 ac_check_soname_save_LIBS=$LIBS
10258 LIBS="-lXinerama $X_LIBS $X_EXTRA_LIBS $LIBS"
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10262 /* Override any GCC internal prototype to avoid an error.
10263 Use char because int might match the return type of a GCC
10264 builtin and then its argument prototype would still apply. */
10265 #ifdef __cplusplus
10266 extern "C"
10267 #endif
10268 char XineramaQueryScreens ();
10270 main ()
10272 return XineramaQueryScreens ();
10274 return 0;
10276 _ACEOF
10277 if ac_fn_c_try_link "$LINENO"; then :
10278 case "$LIBEXT" in
10279 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10280 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'` ;;
10281 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10282 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10283 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10284 fi ;;
10285 esac
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_soname_save_LIBS
10291 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10293 $as_echo "not found" >&6; }
10295 else
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10297 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10299 cat >>confdefs.h <<_ACEOF
10300 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10301 _ACEOF
10306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10308 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10309 case "x$with_xinerama" in
10310 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10311 xno) ;;
10312 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10313 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10314 esac
10317 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10318 then
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10320 $as_echo_n "checking for -lXcomposite... " >&6; }
10321 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 ac_check_soname_save_LIBS=$LIBS
10325 LIBS="-lXcomposite $X_LIBS $X_EXTRA_LIBS $LIBS"
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10329 /* Override any GCC internal prototype to avoid an error.
10330 Use char because int might match the return type of a GCC
10331 builtin and then its argument prototype would still apply. */
10332 #ifdef __cplusplus
10333 extern "C"
10334 #endif
10335 char XCompositeRedirectWindow ();
10337 main ()
10339 return XCompositeRedirectWindow ();
10341 return 0;
10343 _ACEOF
10344 if ac_fn_c_try_link "$LINENO"; then :
10345 case "$LIBEXT" in
10346 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10347 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'` ;;
10348 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10349 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10350 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10351 fi ;;
10352 esac
10354 rm -f core conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10356 LIBS=$ac_check_soname_save_LIBS
10358 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10360 $as_echo "not found" >&6; }
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10364 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10366 cat >>confdefs.h <<_ACEOF
10367 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10368 _ACEOF
10373 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10374 case "x$with_xcomposite" in
10375 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10376 xno) ;;
10377 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10378 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10379 esac
10382 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10383 #include <X11/Xlib.h>
10384 #endif
10386 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10388 cat >>confdefs.h <<_ACEOF
10389 #define HAVE_XICCALLBACK_CALLBACK 1
10390 _ACEOF
10394 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10395 #include <X11/Xlib.h>
10396 #endif
10398 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10400 cat >>confdefs.h <<_ACEOF
10401 #define HAVE_XEVENT_XCOOKIE 1
10402 _ACEOF
10409 opengl_msg=""
10410 if test "x$with_opengl" != "xno"
10411 then
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10413 $as_echo_n "checking for -lGL... " >&6; }
10414 if ${ac_cv_lib_soname_GL+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 ac_check_soname_save_LIBS=$LIBS
10418 LIBS="-lGL $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420 /* end confdefs.h. */
10422 /* Override any GCC internal prototype to avoid an error.
10423 Use char because int might match the return type of a GCC
10424 builtin and then its argument prototype would still apply. */
10425 #ifdef __cplusplus
10426 extern "C"
10427 #endif
10428 char glXCreateContext ();
10430 main ()
10432 return glXCreateContext ();
10434 return 0;
10436 _ACEOF
10437 if ac_fn_c_try_link "$LINENO"; then :
10438 case "$LIBEXT" in
10439 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10440 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'` ;;
10441 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10442 if ${ac_cv_lib_soname_GL:+false} :; then :
10443 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10444 fi ;;
10445 esac
10447 rm -f core conftest.err conftest.$ac_objext \
10448 conftest$ac_exeext conftest.$ac_ext
10449 LIBS=$ac_check_soname_save_LIBS
10451 if ${ac_cv_lib_soname_GL:+false} :; then :
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10453 $as_echo "not found" >&6; }
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10455 $as_echo_n "checking for -lGL... " >&6; }
10456 if ${ac_cv_lib_soname_GL+:} false; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 ac_check_soname_save_LIBS=$LIBS
10460 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"
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10464 /* Override any GCC internal prototype to avoid an error.
10465 Use char because int might match the return type of a GCC
10466 builtin and then its argument prototype would still apply. */
10467 #ifdef __cplusplus
10468 extern "C"
10469 #endif
10470 char glXCreateContext ();
10472 main ()
10474 return glXCreateContext ();
10476 return 0;
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 case "$LIBEXT" in
10481 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10482 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'` ;;
10483 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10484 if ${ac_cv_lib_soname_GL:+false} :; then :
10485 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10486 fi ;;
10487 esac
10489 rm -f core conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10491 LIBS=$ac_check_soname_save_LIBS
10493 if ${ac_cv_lib_soname_GL:+false} :; then :
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10495 $as_echo "not found" >&6; }
10496 if test -f /usr/X11R6/lib/libGL.a
10497 then
10498 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10499 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10500 else
10501 opengl_msg="No OpenGL library found on this system."
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10505 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10507 cat >>confdefs.h <<_ACEOF
10508 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10509 _ACEOF
10511 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"
10513 else
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10515 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10517 cat >>confdefs.h <<_ACEOF
10518 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10519 _ACEOF
10521 OPENGL_LIBS="-lGL"
10523 if test "x$with_glu" != "xno"
10524 then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10526 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10527 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529 else
10530 ac_check_lib_save_LIBS=$LIBS
10531 LIBS="-lGLU $OPENGL_LIBS $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10535 /* Override any GCC internal prototype to avoid an error.
10536 Use char because int might match the return type of a GCC
10537 builtin and then its argument prototype would still apply. */
10538 #ifdef __cplusplus
10539 extern "C"
10540 #endif
10541 char gluLookAt ();
10543 main ()
10545 return gluLookAt ();
10547 return 0;
10549 _ACEOF
10550 if ac_fn_c_try_link "$LINENO"; then :
10551 ac_cv_lib_GLU_gluLookAt=yes
10552 else
10553 ac_cv_lib_GLU_gluLookAt=no
10555 rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557 LIBS=$ac_check_lib_save_LIBS
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10560 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10561 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10565 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10566 case "x$with_glu" in
10567 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10568 xno) ;;
10569 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10570 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10571 esac
10575 if test "x$with_osmesa" != "xno"
10576 then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10578 $as_echo_n "checking for -lOSMesa... " >&6; }
10579 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10580 $as_echo_n "(cached) " >&6
10581 else
10582 ac_check_soname_save_LIBS=$LIBS
10583 LIBS="-lOSMesa $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10587 /* Override any GCC internal prototype to avoid an error.
10588 Use char because int might match the return type of a GCC
10589 builtin and then its argument prototype would still apply. */
10590 #ifdef __cplusplus
10591 extern "C"
10592 #endif
10593 char glAccum ();
10595 main ()
10597 return glAccum ();
10599 return 0;
10601 _ACEOF
10602 if ac_fn_c_try_link "$LINENO"; then :
10603 case "$LIBEXT" in
10604 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10605 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'` ;;
10606 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10607 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10608 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10609 fi ;;
10610 esac
10612 rm -f core conftest.err conftest.$ac_objext \
10613 conftest$ac_exeext conftest.$ac_ext
10614 LIBS=$ac_check_soname_save_LIBS
10616 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10618 $as_echo "not found" >&6; }
10620 else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10622 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10624 cat >>confdefs.h <<_ACEOF
10625 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10626 _ACEOF
10630 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10631 case "x$with_osmesa" in
10632 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10633 xno) ;;
10634 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10635 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10636 esac
10640 if test -n "$opengl_msg"; then :
10641 case "x$with_opengl" in
10642 x) as_fn_append wine_warnings "|$opengl_msg
10643 OpenGL and Direct3D won't be supported." ;;
10644 xno) ;;
10645 *) as_fn_error $? "$opengl_msg
10646 OpenGL and Direct3D won't be supported.
10647 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10648 esac
10651 CPPFLAGS="$ac_save_CPPFLAGS"
10652 else
10653 X_CFLAGS=""
10654 X_LIBS=""
10655 enable_winex11_drv=${enable_winex11_drv:-no}
10657 if test "x$X_LIBS" = "x"; then :
10658 case "x$with_x" in
10659 xno) ;;
10660 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10661 without X support, which probably isn't what you want. You will need
10662 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10663 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10664 esac
10667 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10669 if test "$ac_cv_header_CL_cl_h" = "yes"
10670 then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10672 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10673 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10674 $as_echo_n "(cached) " >&6
10675 else
10676 ac_check_lib_save_LIBS=$LIBS
10677 LIBS="-lOpenCL $LIBS"
10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10681 /* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
10684 #ifdef __cplusplus
10685 extern "C"
10686 #endif
10687 char clGetPlatformInfo ();
10689 main ()
10691 return clGetPlatformInfo ();
10693 return 0;
10695 _ACEOF
10696 if ac_fn_c_try_link "$LINENO"; then :
10697 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10698 else
10699 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10701 rm -f core conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10706 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10707 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10708 OPENCL_LIBS="-lOpenCL"
10713 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10714 case "x$with_opencl" in
10715 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10716 xno) ;;
10717 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10718 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10719 esac
10721 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10723 if test "$ac_cv_header_pcap_pcap_h" = "yes"
10724 then
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
10726 $as_echo_n "checking for pcap_create in -lpcap... " >&6; }
10727 if ${ac_cv_lib_pcap_pcap_create+:} false; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-lpcap $LIBS"
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10735 /* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
10738 #ifdef __cplusplus
10739 extern "C"
10740 #endif
10741 char pcap_create ();
10743 main ()
10745 return pcap_create ();
10747 return 0;
10749 _ACEOF
10750 if ac_fn_c_try_link "$LINENO"; then :
10751 ac_cv_lib_pcap_pcap_create=yes
10752 else
10753 ac_cv_lib_pcap_pcap_create=no
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 LIBS=$ac_check_lib_save_LIBS
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
10760 $as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
10761 if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
10762 LIBPCAP="-lpcap"
10767 if test "x$ac_cv_lib_pcap_pcap_create" != xyes; then :
10768 case "x$with_pcap" in
10769 x) as_fn_append wine_notices "|pcap ${notice_platform}development files not found, wpcap won't be supported." ;;
10770 xno) ;;
10771 *) as_fn_error $? "pcap ${notice_platform}development files not found, wpcap won't be supported.
10772 This is an error since --with-pcap was requested." "$LINENO" 5 ;;
10773 esac
10775 test "x$ac_cv_lib_pcap_pcap_create" != xyes && enable_wpcap=${enable_wpcap:-no}
10778 if test "x$with_xml" != "xno"
10779 then
10780 if ${XML2_CFLAGS:+false} :; then :
10781 if ${PKG_CONFIG+:} false; then :
10782 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10785 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10786 if ${XML2_LIBS:+false} :; then :
10787 if ${PKG_CONFIG+:} false; then :
10788 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10791 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10792 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10793 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 cflags: $XML2_CFLAGS" >&5
10794 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 libs: $XML2_LIBS" >&5
10795 ac_save_CPPFLAGS=$CPPFLAGS
10796 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10797 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10798 do :
10799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10800 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10801 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10802 cat >>confdefs.h <<_ACEOF
10803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10804 _ACEOF
10808 done
10810 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"
10811 then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10813 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10814 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10815 $as_echo_n "(cached) " >&6
10816 else
10817 ac_check_lib_save_LIBS=$LIBS
10818 LIBS="-lxml2 $XML2_LIBS $LIBS"
10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820 /* end confdefs.h. */
10822 /* Override any GCC internal prototype to avoid an error.
10823 Use char because int might match the return type of a GCC
10824 builtin and then its argument prototype would still apply. */
10825 #ifdef __cplusplus
10826 extern "C"
10827 #endif
10828 char xmlParseMemory ();
10830 main ()
10832 return xmlParseMemory ();
10834 return 0;
10836 _ACEOF
10837 if ac_fn_c_try_link "$LINENO"; then :
10838 ac_cv_lib_xml2_xmlParseMemory=yes
10839 else
10840 ac_cv_lib_xml2_xmlParseMemory=no
10842 rm -f core conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_lib_save_LIBS
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10847 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10848 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10850 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10852 else
10853 XML2_LIBS=""
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10857 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10858 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 ac_check_lib_save_LIBS=$LIBS
10862 LIBS="-lxml2 $XML2_LIBS $LIBS"
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10866 /* Override any GCC internal prototype to avoid an error.
10867 Use char because int might match the return type of a GCC
10868 builtin and then its argument prototype would still apply. */
10869 #ifdef __cplusplus
10870 extern "C"
10871 #endif
10872 char xmlReadMemory ();
10874 main ()
10876 return xmlReadMemory ();
10878 return 0;
10880 _ACEOF
10881 if ac_fn_c_try_link "$LINENO"; then :
10882 ac_cv_lib_xml2_xmlReadMemory=yes
10883 else
10884 ac_cv_lib_xml2_xmlReadMemory=no
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10888 LIBS=$ac_check_lib_save_LIBS
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10891 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10892 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10894 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10899 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10900 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lxml2 $XML2_LIBS $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char xmlNewDocPI ();
10916 main ()
10918 return xmlNewDocPI ();
10920 return 0;
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924 ac_cv_lib_xml2_xmlNewDocPI=yes
10925 else
10926 ac_cv_lib_xml2_xmlNewDocPI=no
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10933 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10934 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10936 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10941 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10942 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-lxml2 $XML2_LIBS $LIBS"
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char xmlSchemaSetParserStructuredErrors ();
10958 main ()
10960 return xmlSchemaSetParserStructuredErrors ();
10962 return 0;
10964 _ACEOF
10965 if ac_fn_c_try_link "$LINENO"; then :
10966 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10967 else
10968 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10970 rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10975 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10976 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10978 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10983 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10984 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-lxml2 $XML2_LIBS $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char xmlSchemaSetValidStructuredErrors ();
11000 main ()
11002 return xmlSchemaSetValidStructuredErrors ();
11004 return 0;
11006 _ACEOF
11007 if ac_fn_c_try_link "$LINENO"; then :
11008 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
11009 else
11010 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
11017 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
11018 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
11020 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
11025 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
11026 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 ac_check_lib_save_LIBS=$LIBS
11030 LIBS="-lxml2 $XML2_LIBS $LIBS"
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char xmlFirstElementChild ();
11042 main ()
11044 return xmlFirstElementChild ();
11046 return 0;
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050 ac_cv_lib_xml2_xmlFirstElementChild=yes
11051 else
11052 ac_cv_lib_xml2_xmlFirstElementChild=no
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
11059 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
11060 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
11062 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
11066 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
11068 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
11070 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
11074 else
11075 XML2_CFLAGS=""
11076 XML2_LIBS=""
11078 CPPFLAGS=$ac_save_CPPFLAGS
11079 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11080 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11083 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
11084 case "x$with_xml" in
11085 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
11086 xno) ;;
11087 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
11088 This is an error since --with-xml was requested." "$LINENO" 5 ;;
11089 esac
11092 if test "x$with_xslt" != "xno"
11093 then
11094 if ${XSLT_CFLAGS:+false} :; then :
11095 if ${PKG_CONFIG+:} false; then :
11096 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
11099 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
11100 if ${XSLT_LIBS:+false} :; then :
11101 if ${PKG_CONFIG+:} false; then :
11102 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
11105 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
11106 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
11107 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt cflags: $XSLT_CFLAGS" >&5
11108 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt libs: $XSLT_LIBS" >&5
11109 ac_save_CPPFLAGS=$CPPFLAGS
11110 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
11111 for ac_header in libxslt/pattern.h libxslt/transform.h
11112 do :
11113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11114 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
11115 # include <libxslt/pattern.h>
11116 #endif
11118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11119 cat >>confdefs.h <<_ACEOF
11120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11121 _ACEOF
11125 done
11127 if test "$ac_cv_header_libxslt_transform_h" = "yes"
11128 then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
11130 $as_echo_n "checking for -lxslt... " >&6; }
11131 if ${ac_cv_lib_soname_xslt+:} false; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 ac_check_soname_save_LIBS=$LIBS
11135 LIBS="-lxslt $XSLT_LIBS $LIBS"
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 char xsltCompilePattern ();
11147 main ()
11149 return xsltCompilePattern ();
11151 return 0;
11153 _ACEOF
11154 if ac_fn_c_try_link "$LINENO"; then :
11155 case "$LIBEXT" in
11156 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11157 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'` ;;
11158 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11159 if ${ac_cv_lib_soname_xslt:+false} :; then :
11160 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11161 fi ;;
11162 esac
11164 rm -f core conftest.err conftest.$ac_objext \
11165 conftest$ac_exeext conftest.$ac_ext
11166 LIBS=$ac_check_soname_save_LIBS
11168 if ${ac_cv_lib_soname_xslt:+false} :; then :
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11170 $as_echo "not found" >&6; }
11172 else
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
11174 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
11176 cat >>confdefs.h <<_ACEOF
11177 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
11178 _ACEOF
11182 else
11183 XSLT_CFLAGS=""
11185 CPPFLAGS=$ac_save_CPPFLAGS
11186 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11187 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11190 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
11191 case "x$with_xslt" in
11192 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
11193 xno) ;;
11194 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
11195 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
11196 esac
11199 if test "x$with_dbus" != "xno"
11200 then
11201 if ${DBUS_CFLAGS:+false} :; then :
11202 if ${PKG_CONFIG+:} false; then :
11203 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
11207 if ${DBUS_LIBS:+false} :; then :
11208 if ${PKG_CONFIG+:} false; then :
11209 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
11214 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 cflags: $DBUS_CFLAGS" >&5
11215 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 libs: $DBUS_LIBS" >&5
11216 ac_save_CPPFLAGS=$CPPFLAGS
11217 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
11218 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
11219 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
11221 $as_echo_n "checking for -ldbus-1... " >&6; }
11222 if ${ac_cv_lib_soname_dbus_1+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 ac_check_soname_save_LIBS=$LIBS
11226 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233 #ifdef __cplusplus
11234 extern "C"
11235 #endif
11236 char dbus_connection_close ();
11238 main ()
11240 return dbus_connection_close ();
11242 return 0;
11244 _ACEOF
11245 if ac_fn_c_try_link "$LINENO"; then :
11246 case "$LIBEXT" in
11247 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11248 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'` ;;
11249 *) 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'`
11250 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
11251 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11252 fi ;;
11253 esac
11255 rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257 LIBS=$ac_check_soname_save_LIBS
11259 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11261 $as_echo "not found" >&6; }
11262 DBUS_CFLAGS=""
11263 else
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
11265 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
11267 cat >>confdefs.h <<_ACEOF
11268 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
11269 _ACEOF
11273 else
11274 DBUS_CFLAGS=""
11278 CPPFLAGS=$ac_save_CPPFLAGS
11279 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11280 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11283 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
11284 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11285 case "x$with_dbus" in
11286 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
11287 xno) ;;
11288 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
11289 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
11290 esac
11293 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
11294 then
11295 if ${HAL_CFLAGS:+false} :; then :
11296 if ${PKG_CONFIG+:} false; then :
11297 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11301 if ${HAL_LIBS:+false} :; then :
11302 if ${PKG_CONFIG+:} false; then :
11303 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11307 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11308 $as_echo "$as_me:${as_lineno-$LINENO}: hal cflags: $HAL_CFLAGS" >&5
11309 $as_echo "$as_me:${as_lineno-$LINENO}: hal libs: $HAL_LIBS" >&5
11310 ac_save_CPPFLAGS=$CPPFLAGS
11311 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11312 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11313 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11315 $as_echo_n "checking for -lhal... " >&6; }
11316 if ${ac_cv_lib_soname_hal+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 ac_check_soname_save_LIBS=$LIBS
11320 LIBS="-lhal $HAL_LIBS $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11324 /* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char libhal_ctx_new ();
11332 main ()
11334 return libhal_ctx_new ();
11336 return 0;
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340 case "$LIBEXT" in
11341 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11342 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'` ;;
11343 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11344 if ${ac_cv_lib_soname_hal:+false} :; then :
11345 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11346 fi ;;
11347 esac
11349 rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
11351 LIBS=$ac_check_soname_save_LIBS
11353 if ${ac_cv_lib_soname_hal:+false} :; then :
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11355 $as_echo "not found" >&6; }
11356 HAL_CFLAGS=""
11357 else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11359 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11361 cat >>confdefs.h <<_ACEOF
11362 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11363 _ACEOF
11367 else
11368 HAL_CFLAGS=""
11372 CPPFLAGS=$ac_save_CPPFLAGS
11373 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11374 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11376 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11377 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11378 case "x$with_hal" in
11379 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11380 xno) ;;
11381 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11382 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11383 esac
11387 if test "x$with_gnutls" != "xno"
11388 then
11389 if ${GNUTLS_CFLAGS:+false} :; then :
11390 if ${PKG_CONFIG+:} false; then :
11391 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11395 if ${GNUTLS_LIBS:+false} :; then :
11396 if ${PKG_CONFIG+:} false; then :
11397 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11402 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls cflags: $GNUTLS_CFLAGS" >&5
11403 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls libs: $GNUTLS_LIBS" >&5
11404 ac_save_CPPFLAGS=$CPPFLAGS
11405 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11406 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11407 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11410 #include <gnutls/gnutls.h>
11411 #include <gnutls/crypto.h>
11413 main ()
11415 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11417 return 0;
11419 _ACEOF
11420 if ac_fn_c_try_compile "$LINENO"; then :
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11422 $as_echo_n "checking for -lgnutls... " >&6; }
11423 if ${ac_cv_lib_soname_gnutls+:} false; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 ac_check_soname_save_LIBS=$LIBS
11427 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11431 /* Override any GCC internal prototype to avoid an error.
11432 Use char because int might match the return type of a GCC
11433 builtin and then its argument prototype would still apply. */
11434 #ifdef __cplusplus
11435 extern "C"
11436 #endif
11437 char gnutls_global_init ();
11439 main ()
11441 return gnutls_global_init ();
11443 return 0;
11445 _ACEOF
11446 if ac_fn_c_try_link "$LINENO"; then :
11447 case "$LIBEXT" in
11448 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11449 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'` ;;
11450 *) 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'`
11451 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11452 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'`
11453 fi ;;
11454 esac
11456 rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458 LIBS=$ac_check_soname_save_LIBS
11460 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11462 $as_echo "not found" >&6; }
11463 GNUTLS_CFLAGS=""
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11466 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11468 cat >>confdefs.h <<_ACEOF
11469 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11470 _ACEOF
11475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11476 else
11477 GNUTLS_CFLAGS=""
11481 CPPFLAGS=$ac_save_CPPFLAGS
11482 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11483 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11486 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11487 case "x$with_gnutls" in
11488 x) as_fn_append wine_warnings "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11489 xno) ;;
11490 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11491 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11492 esac
11495 CURSES_LIBS=""
11496 if test "$ac_cv_header_ncurses_h" = "yes"
11497 then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11499 $as_echo_n "checking for -lncurses... " >&6; }
11500 if ${ac_cv_lib_soname_ncurses+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 ac_check_soname_save_LIBS=$LIBS
11504 LIBS="-lncurses $LIBS"
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h. */
11508 /* Override any GCC internal prototype to avoid an error.
11509 Use char because int might match the return type of a GCC
11510 builtin and then its argument prototype would still apply. */
11511 #ifdef __cplusplus
11512 extern "C"
11513 #endif
11514 char waddch ();
11516 main ()
11518 return waddch ();
11520 return 0;
11522 _ACEOF
11523 if ac_fn_c_try_link "$LINENO"; then :
11524 case "$LIBEXT" in
11525 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11526 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'` ;;
11527 *) 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'`
11528 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11529 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncursesw\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\(libncursesw\\{0,1\\}\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11530 fi ;;
11531 esac
11533 rm -f core conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
11535 LIBS=$ac_check_soname_save_LIBS
11537 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11539 $as_echo "not found" >&6; }
11541 else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11543 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11545 cat >>confdefs.h <<_ACEOF
11546 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11547 _ACEOF
11549 CURSES_LIBS="-lncurses"
11551 elif test "$ac_cv_header_curses_h" = "yes"
11552 then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11554 $as_echo_n "checking for -lcurses... " >&6; }
11555 if ${ac_cv_lib_soname_curses+:} false; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 ac_check_soname_save_LIBS=$LIBS
11559 LIBS="-lcurses $LIBS"
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11563 /* Override any GCC internal prototype to avoid an error.
11564 Use char because int might match the return type of a GCC
11565 builtin and then its argument prototype would still apply. */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 char waddch ();
11571 main ()
11573 return waddch ();
11575 return 0;
11577 _ACEOF
11578 if ac_fn_c_try_link "$LINENO"; then :
11579 case "$LIBEXT" in
11580 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11581 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'` ;;
11582 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11583 if ${ac_cv_lib_soname_curses:+false} :; then :
11584 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11585 fi ;;
11586 esac
11588 rm -f core conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11590 LIBS=$ac_check_soname_save_LIBS
11592 if ${ac_cv_lib_soname_curses:+false} :; then :
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11594 $as_echo "not found" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11598 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11600 cat >>confdefs.h <<_ACEOF
11601 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11602 _ACEOF
11604 CURSES_LIBS="-lcurses"
11607 ac_save_LIBS="$LIBS"
11608 LIBS="$LIBS $CURSES_LIBS"
11609 for ac_func in mousemask
11610 do :
11611 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11612 if test "x$ac_cv_func_mousemask" = xyes; then :
11613 cat >>confdefs.h <<_ACEOF
11614 #define HAVE_MOUSEMASK 1
11615 _ACEOF
11618 done
11620 LIBS="$ac_save_LIBS"
11621 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11622 case "x$with_curses" in
11623 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11624 xno) ;;
11625 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11626 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11627 esac
11630 if test "x$with_sane" != "xno"
11631 then
11632 if ${SANE_CFLAGS:+false} :; then :
11633 if ${PKG_CONFIG+:} false; then :
11634 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11637 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11638 if ${SANE_LIBS:+false} :; then :
11639 if ${PKG_CONFIG+:} false; then :
11640 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11643 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11645 $as_echo "$as_me:${as_lineno-$LINENO}: libsane cflags: $SANE_CFLAGS" >&5
11646 $as_echo "$as_me:${as_lineno-$LINENO}: libsane libs: $SANE_LIBS" >&5
11647 ac_save_CPPFLAGS=$CPPFLAGS
11648 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11649 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11650 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11652 $as_echo_n "checking for -lsane... " >&6; }
11653 if ${ac_cv_lib_soname_sane+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 ac_check_soname_save_LIBS=$LIBS
11657 LIBS="-lsane $SANE_LIBS $LIBS"
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11661 /* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11664 #ifdef __cplusplus
11665 extern "C"
11666 #endif
11667 char sane_init ();
11669 main ()
11671 return sane_init ();
11673 return 0;
11675 _ACEOF
11676 if ac_fn_c_try_link "$LINENO"; then :
11677 case "$LIBEXT" in
11678 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11679 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'` ;;
11680 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11681 if ${ac_cv_lib_soname_sane:+false} :; then :
11682 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11683 fi ;;
11684 esac
11686 rm -f core conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11688 LIBS=$ac_check_soname_save_LIBS
11690 if ${ac_cv_lib_soname_sane:+false} :; then :
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11692 $as_echo "not found" >&6; }
11693 SANE_CFLAGS=""
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11696 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11698 cat >>confdefs.h <<_ACEOF
11699 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11700 _ACEOF
11704 else
11705 SANE_CFLAGS=""
11709 CPPFLAGS=$ac_save_CPPFLAGS
11710 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11711 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11714 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11715 case "x$with_sane" in
11716 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11717 xno) ;;
11718 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11719 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11720 esac
11723 if test "x$with_v4l" != "xno"
11724 then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11726 $as_echo_n "checking for -lv4l1... " >&6; }
11727 if ${ac_cv_lib_soname_v4l1+:} false; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 ac_check_soname_save_LIBS=$LIBS
11731 LIBS="-lv4l1 $LIBS"
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11735 /* Override any GCC internal prototype to avoid an error.
11736 Use char because int might match the return type of a GCC
11737 builtin and then its argument prototype would still apply. */
11738 #ifdef __cplusplus
11739 extern "C"
11740 #endif
11741 char v4l1_open ();
11743 main ()
11745 return v4l1_open ();
11747 return 0;
11749 _ACEOF
11750 if ac_fn_c_try_link "$LINENO"; then :
11751 case "$LIBEXT" in
11752 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11753 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'` ;;
11754 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11755 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11756 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11757 fi ;;
11758 esac
11760 rm -f core conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
11762 LIBS=$ac_check_soname_save_LIBS
11764 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11766 $as_echo "not found" >&6; }
11768 else
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11770 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11772 cat >>confdefs.h <<_ACEOF
11773 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11774 _ACEOF
11779 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11780 case "x$with_v4l" in
11781 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11782 xno) ;;
11783 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11784 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11785 esac
11788 if test "x$with_gphoto" != "xno"
11789 then
11790 if ${GPHOTO2_CFLAGS:+false} :; then :
11791 if ${PKG_CONFIG+:} false; then :
11792 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11795 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11796 if ${GPHOTO2_LIBS:+false} :; then :
11797 if ${PKG_CONFIG+:} false; then :
11798 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11801 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11802 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11803 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 cflags: $GPHOTO2_CFLAGS" >&5
11804 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 libs: $GPHOTO2_LIBS" >&5
11805 ac_save_CPPFLAGS=$CPPFLAGS
11806 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11807 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11808 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11810 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11811 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 ac_check_lib_save_LIBS=$LIBS
11815 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11822 #ifdef __cplusplus
11823 extern "C"
11824 #endif
11825 char gp_camera_new ();
11827 main ()
11829 return gp_camera_new ();
11831 return 0;
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"; then :
11835 ac_cv_lib_gphoto2_gp_camera_new=yes
11836 else
11837 ac_cv_lib_gphoto2_gp_camera_new=no
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11844 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11845 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11847 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11849 else
11850 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11853 else
11854 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11858 CPPFLAGS=$ac_save_CPPFLAGS
11859 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11860 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11862 if ${GPHOTO2_PORT_CFLAGS:+false} :; then :
11863 if ${PKG_CONFIG+:} false; then :
11864 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11867 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11868 if ${GPHOTO2_PORT_LIBS:+false} :; then :
11869 if ${PKG_CONFIG+:} false; then :
11870 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11873 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11874 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11875 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port cflags: $GPHOTO2_PORT_CFLAGS" >&5
11876 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port libs: $GPHOTO2_PORT_LIBS" >&5
11877 ac_save_CPPFLAGS=$CPPFLAGS
11878 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11879 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11880 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11882 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11883 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 ac_check_lib_save_LIBS=$LIBS
11887 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h. */
11891 /* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
11894 #ifdef __cplusplus
11895 extern "C"
11896 #endif
11897 char gp_port_info_list_new ();
11899 main ()
11901 return gp_port_info_list_new ();
11903 return 0;
11905 _ACEOF
11906 if ac_fn_c_try_link "$LINENO"; then :
11907 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11908 else
11909 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11911 rm -f core conftest.err conftest.$ac_objext \
11912 conftest$ac_exeext conftest.$ac_ext
11913 LIBS=$ac_check_lib_save_LIBS
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11916 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11917 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11919 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11921 else
11922 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11925 else
11926 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11930 CPPFLAGS=$ac_save_CPPFLAGS
11931 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11932 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11935 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11936 case "x$with_gphoto" in
11937 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11938 xno) ;;
11939 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11940 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11941 esac
11943 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11944 case "x$with_gphoto" in
11945 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11946 xno) ;;
11947 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11948 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11949 esac
11953 if test "$ac_cv_header_resolv_h" = "yes"
11954 then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver library" >&5
11956 $as_echo_n "checking for resolver library... " >&6; }
11957 if ${ac_cv_have_resolv+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 ac_save_LIBS="$LIBS"
11961 for lib in '' -lresolv
11963 LIBS="$lib $ac_save_LIBS"
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #ifdef HAVE_NETINET_IN_H
11967 #include <netinet/in.h>
11968 #endif
11969 #include <resolv.h>
11971 main ()
11973 if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0)
11975 return 0;
11977 _ACEOF
11978 if ac_fn_c_try_link "$LINENO"; then :
11979 ac_cv_have_resolv=${lib:-"none required"}
11980 else
11981 ac_cv_have_resolv="not found"
11983 rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 test "x$ac_cv_have_resolv" = "xnot found" || break
11986 done
11987 LIBS="$ac_save_LIBS"
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_resolv" >&5
11990 $as_echo "$ac_cv_have_resolv" >&6; }
11992 case "$ac_cv_have_resolv" in
11993 "not found") ;;
11994 "none required")
11996 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11999 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
12001 RESOLV_LIBS=$ac_cv_have_resolv
12003 esac
12006 if test "x$with_cms" != "xno"
12007 then
12008 if ${LCMS2_CFLAGS:+false} :; then :
12009 if ${PKG_CONFIG+:} false; then :
12010 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
12014 if ${LCMS2_LIBS:+false} :; then :
12015 if ${PKG_CONFIG+:} false; then :
12016 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
12020 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
12021 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 cflags: $LCMS2_CFLAGS" >&5
12022 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 libs: $LCMS2_LIBS" >&5
12023 ac_save_CPPFLAGS=$CPPFLAGS
12024 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
12025 for ac_header in lcms2.h
12026 do :
12027 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
12028 if test "x$ac_cv_header_lcms2_h" = xyes; then :
12029 cat >>confdefs.h <<_ACEOF
12030 #define HAVE_LCMS2_H 1
12031 _ACEOF
12035 done
12037 if test "$ac_cv_header_lcms2_h" = "yes"
12038 then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
12040 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
12041 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 ac_check_lib_save_LIBS=$LIBS
12045 LIBS="-llcms2 $LCMS2_LIBS $LIBS"
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12049 /* Override any GCC internal prototype to avoid an error.
12050 Use char because int might match the return type of a GCC
12051 builtin and then its argument prototype would still apply. */
12052 #ifdef __cplusplus
12053 extern "C"
12054 #endif
12055 char cmsOpenProfileFromFile ();
12057 main ()
12059 return cmsOpenProfileFromFile ();
12061 return 0;
12063 _ACEOF
12064 if ac_fn_c_try_link "$LINENO"; then :
12065 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
12066 else
12067 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
12069 rm -f core conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext conftest.$ac_ext
12071 LIBS=$ac_check_lib_save_LIBS
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
12074 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
12075 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
12077 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
12079 else
12080 LCMS2_LIBS=""
12083 else
12084 LCMS2_CFLAGS=""
12085 LCMS2_LIBS=""
12087 CPPFLAGS=$ac_save_CPPFLAGS
12088 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12089 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12092 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
12093 case "x$with_cms" in
12094 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
12095 xno) ;;
12096 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
12097 This is an error since --with-cms was requested." "$LINENO" 5 ;;
12098 esac
12101 if test "x$with_freetype" != "xno"
12102 then
12103 if ${FREETYPE_CFLAGS:+false} :; then :
12104 if ${PKG_CONFIG+:} false; then :
12105 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
12108 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
12109 if ${FREETYPE_LIBS:+false} :; then :
12110 if ${PKG_CONFIG+:} false; then :
12111 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
12114 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
12115 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
12116 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 cflags: $FREETYPE_CFLAGS" >&5
12117 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 libs: $FREETYPE_LIBS" >&5
12118 ac_save_CPPFLAGS=$CPPFLAGS
12119 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
12120 for ac_header in ft2build.h
12121 do :
12122 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
12123 if test "x$ac_cv_header_ft2build_h" = xyes; then :
12124 cat >>confdefs.h <<_ACEOF
12125 #define HAVE_FT2BUILD_H 1
12126 _ACEOF
12130 done
12132 if test "$ac_cv_header_ft2build_h" = "yes"
12133 then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
12135 $as_echo_n "checking for -lfreetype... " >&6; }
12136 if ${ac_cv_lib_soname_freetype+:} false; then :
12137 $as_echo_n "(cached) " >&6
12138 else
12139 ac_check_soname_save_LIBS=$LIBS
12140 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12144 /* Override any GCC internal prototype to avoid an error.
12145 Use char because int might match the return type of a GCC
12146 builtin and then its argument prototype would still apply. */
12147 #ifdef __cplusplus
12148 extern "C"
12149 #endif
12150 char FT_Init_FreeType ();
12152 main ()
12154 return FT_Init_FreeType ();
12156 return 0;
12158 _ACEOF
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 case "$LIBEXT" in
12161 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12162 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'` ;;
12163 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12164 if ${ac_cv_lib_soname_freetype:+false} :; then :
12165 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12166 fi ;;
12167 esac
12169 rm -f core conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171 LIBS=$ac_check_soname_save_LIBS
12173 if ${ac_cv_lib_soname_freetype:+false} :; then :
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12175 $as_echo "not found" >&6; }
12176 FREETYPE_LIBS=""
12177 else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
12179 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
12181 cat >>confdefs.h <<_ACEOF
12182 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12183 _ACEOF
12186 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12188 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
12189 #include FT_MODULE_H
12191 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
12193 cat >>confdefs.h <<_ACEOF
12194 #define HAVE_FT_TRUETYPEENGINETYPE 1
12195 _ACEOF
12201 else
12202 FREETYPE_CFLAGS=""
12203 FREETYPE_LIBS=""
12205 CPPFLAGS=$ac_save_CPPFLAGS
12206 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12207 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12210 if test "x$ac_cv_lib_soname_freetype" = x; then :
12211 case "x$with_freetype" in
12212 xno) ;;
12213 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
12214 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
12215 esac
12217 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
12220 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
12221 if ${ac_cv_c_ppdev+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226 #ifdef HAVE_SYS_IOCTL_H
12227 # include <sys/ioctl.h>
12228 #endif
12229 #include <linux/ppdev.h>
12231 main ()
12233 ioctl (1,PPCLAIM,0)
12235 return 0;
12237 _ACEOF
12238 if ac_fn_c_try_compile "$LINENO"; then :
12239 ac_cv_c_ppdev="yes"
12240 else
12241 ac_cv_c_ppdev="no"
12243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
12246 $as_echo "$ac_cv_c_ppdev" >&6; }
12247 if test "$ac_cv_c_ppdev" = "yes"
12248 then
12250 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
12254 ac_wine_check_funcs_save_LIBS="$LIBS"
12255 LIBS="$LIBS $PTHREAD_LIBS"
12256 for ac_func in \
12257 pthread_attr_get_np \
12258 pthread_getattr_np \
12259 pthread_getthreadid_np \
12260 pthread_get_stackaddr_np \
12261 pthread_get_stacksize_np
12262 do :
12263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12264 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12265 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12266 cat >>confdefs.h <<_ACEOF
12267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12268 _ACEOF
12271 done
12273 LIBS="$ac_wine_check_funcs_save_LIBS"
12275 if test "$ac_cv_header_zlib_h" = "yes"
12276 then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12278 $as_echo_n "checking for inflate in -lz... " >&6; }
12279 if ${ac_cv_lib_z_inflate+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 ac_check_lib_save_LIBS=$LIBS
12283 LIBS="-lz $LIBS"
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12287 /* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12290 #ifdef __cplusplus
12291 extern "C"
12292 #endif
12293 char inflate ();
12295 main ()
12297 return inflate ();
12299 return 0;
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"; then :
12303 ac_cv_lib_z_inflate=yes
12304 else
12305 ac_cv_lib_z_inflate=no
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LIBS=$ac_check_lib_save_LIBS
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12312 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12313 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12315 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12317 Z_LIBS="-lz"
12322 if test "x$Z_LIBS" = "x"; then :
12323 case "x$with_zlib" in
12324 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12325 xno) ;;
12326 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12327 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12328 esac
12331 if test "x$enable_tools" != xno
12332 then
12333 if test "$ac_cv_header_gettext_po_h" = "yes"
12334 then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12336 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12337 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-lgettextpo $LIBS"
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12345 /* Override any GCC internal prototype to avoid an error.
12346 Use char because int might match the return type of a GCC
12347 builtin and then its argument prototype would still apply. */
12348 #ifdef __cplusplus
12349 extern "C"
12350 #endif
12351 char po_message_msgctxt ();
12353 main ()
12355 return po_message_msgctxt ();
12357 return 0;
12359 _ACEOF
12360 if ac_fn_c_try_link "$LINENO"; then :
12361 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12362 else
12363 ac_cv_lib_gettextpo_po_message_msgctxt=no
12365 rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367 LIBS=$ac_check_lib_save_LIBS
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12370 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12371 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12373 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12375 GETTEXTPO_LIBS="-lgettextpo"
12380 test "x$with_gettextpo" != xyes || if test "x$GETTEXTPO_LIBS" = "x"; then :
12381 case "x$with_gettextpo" in
12382 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12383 xno) ;;
12384 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12385 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12386 esac
12390 if test "x$with_gstreamer" != "xno"
12391 then
12392 if ${GSTREAMER_CFLAGS:+false} :; then :
12393 if ${PKG_CONFIG+:} false; then :
12394 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12398 if ${GSTREAMER_LIBS:+false} :; then :
12399 if ${PKG_CONFIG+:} false; then :
12400 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12405 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 cflags: $GSTREAMER_CFLAGS" >&5
12406 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 libs: $GSTREAMER_LIBS" >&5
12407 ac_save_CPPFLAGS=$CPPFLAGS
12408 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12409 ac_gst_incl=""
12410 for i in $GSTREAMER_CFLAGS
12412 case "$i" in
12413 -I*) ac_gst_incl="$ac_gst_incl $i";;
12414 esac
12415 done
12416 GSTREAMER_CFLAGS=$ac_gst_incl
12417 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12418 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12419 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12420 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12421 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12423 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426 #include <gst/app/gstappsink.h>
12428 main ()
12430 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12432 return 0;
12434 _ACEOF
12435 if ac_fn_c_try_compile "$LINENO"; then :
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12437 $as_echo "yes" >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12439 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12440 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-lgstreamer-0.10 $LIBS"
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12448 /* Override any GCC internal prototype to avoid an error.
12449 Use char because int might match the return type of a GCC
12450 builtin and then its argument prototype would still apply. */
12451 #ifdef __cplusplus
12452 extern "C"
12453 #endif
12454 char gst_pad_get_caps_reffed ();
12456 main ()
12458 return gst_pad_get_caps_reffed ();
12460 return 0;
12462 _ACEOF
12463 if ac_fn_c_try_link "$LINENO"; then :
12464 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12465 else
12466 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12468 rm -f core conftest.err conftest.$ac_objext \
12469 conftest$ac_exeext conftest.$ac_ext
12470 LIBS=$ac_check_lib_save_LIBS
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12473 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12474 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12476 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12477 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 ac_check_lib_save_LIBS=$LIBS
12481 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12485 /* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
12488 #ifdef __cplusplus
12489 extern "C"
12490 #endif
12491 char gst_app_buffer_new ();
12493 main ()
12495 return gst_app_buffer_new ();
12497 return 0;
12499 _ACEOF
12500 if ac_fn_c_try_link "$LINENO"; then :
12501 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12502 else
12503 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12505 rm -f core conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext conftest.$ac_ext
12507 LIBS=$ac_check_lib_save_LIBS
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12510 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12511 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12517 else
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 $as_echo "no" >&6; }
12521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12525 else
12526 GSTREAMER_CFLAGS=""
12530 CPPFLAGS=$ac_save_CPPFLAGS
12531 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12532 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12535 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12536 case "x$with_gstreamer" in
12537 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12538 xno) ;;
12539 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12540 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12541 esac
12543 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12545 ALSA_LIBS=""
12547 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12548 then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12550 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12551 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12552 $as_echo_n "(cached) " >&6
12553 else
12554 ac_check_lib_save_LIBS=$LIBS
12555 LIBS="-lasound $LIBS"
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12559 /* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12562 #ifdef __cplusplus
12563 extern "C"
12564 #endif
12565 char snd_pcm_hw_params_get_access_mask ();
12567 main ()
12569 return snd_pcm_hw_params_get_access_mask ();
12571 return 0;
12573 _ACEOF
12574 if ac_fn_c_try_link "$LINENO"; then :
12575 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12576 else
12577 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12579 rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581 LIBS=$ac_check_lib_save_LIBS
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12584 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12585 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12588 #ifdef HAVE_ALSA_ASOUNDLIB_H
12589 #include <alsa/asoundlib.h>
12590 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12591 #include <sys/asoundlib.h>
12592 #endif
12594 main ()
12596 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12598 return 0;
12600 _ACEOF
12601 if ac_fn_c_try_compile "$LINENO"; then :
12602 ALSA_LIBS="-lasound"
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 if test "x$with_oss" != xno
12610 then
12611 ac_save_CPPFLAGS="$CPPFLAGS"
12612 if test -f /etc/oss.conf
12613 then
12614 . /etc/oss.conf
12616 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12617 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12618 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12619 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12620 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12622 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12624 cat >>confdefs.h <<_ACEOF
12625 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12626 _ACEOF
12628 OSS4_CFLAGS="$ac_oss_incl"
12635 CPPFLAGS="$ac_save_CPPFLAGS"
12636 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12637 then
12638 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12642 if test "x$with_capi" != "xno"
12643 then
12644 if ${CAPI20_CFLAGS:+false} :; then :
12645 if ${PKG_CONFIG+:} false; then :
12646 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12650 if ${CAPI20_LIBS:+false} :; then :
12651 if ${PKG_CONFIG+:} false; then :
12652 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12657 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 cflags: $CAPI20_CFLAGS" >&5
12658 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 libs: $CAPI20_LIBS" >&5
12659 ac_save_CPPFLAGS=$CPPFLAGS
12660 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12661 for ac_header in capi20.h linux/capi.h
12662 do :
12663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12664 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12666 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12667 cat >>confdefs.h <<_ACEOF
12668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12669 _ACEOF
12673 done
12675 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12676 then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12678 $as_echo_n "checking for -lcapi20... " >&6; }
12679 if ${ac_cv_lib_soname_capi20+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 ac_check_soname_save_LIBS=$LIBS
12683 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12690 #ifdef __cplusplus
12691 extern "C"
12692 #endif
12693 char capi20_register ();
12695 main ()
12697 return capi20_register ();
12699 return 0;
12701 _ACEOF
12702 if ac_fn_c_try_link "$LINENO"; then :
12703 case "$LIBEXT" in
12704 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12705 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'` ;;
12706 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12707 if ${ac_cv_lib_soname_capi20:+false} :; then :
12708 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12709 fi ;;
12710 esac
12712 rm -f core conftest.err conftest.$ac_objext \
12713 conftest$ac_exeext conftest.$ac_ext
12714 LIBS=$ac_check_soname_save_LIBS
12716 if ${ac_cv_lib_soname_capi20:+false} :; then :
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12718 $as_echo "not found" >&6; }
12720 else
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12722 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12724 cat >>confdefs.h <<_ACEOF
12725 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12726 _ACEOF
12731 CPPFLAGS=$ac_save_CPPFLAGS
12732 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12733 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12736 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12737 case "x$with_capi" in
12738 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12739 xno) ;;
12740 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12741 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12742 esac
12745 CUPS_CFLAGS=""
12747 if test "x$with_cups" != "xno"
12748 then
12749 ac_save_CPPFLAGS="$CPPFLAGS"
12750 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12751 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12752 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12753 for ac_header in cups/cups.h
12754 do :
12755 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12756 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12757 cat >>confdefs.h <<_ACEOF
12758 #define HAVE_CUPS_CUPS_H 1
12759 _ACEOF
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12761 $as_echo_n "checking for -lcups... " >&6; }
12762 if ${ac_cv_lib_soname_cups+:} false; then :
12763 $as_echo_n "(cached) " >&6
12764 else
12765 ac_check_soname_save_LIBS=$LIBS
12766 LIBS="-lcups $ac_cups_libs $LIBS"
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12770 /* Override any GCC internal prototype to avoid an error.
12771 Use char because int might match the return type of a GCC
12772 builtin and then its argument prototype would still apply. */
12773 #ifdef __cplusplus
12774 extern "C"
12775 #endif
12776 char cupsGetDefault ();
12778 main ()
12780 return cupsGetDefault ();
12782 return 0;
12784 _ACEOF
12785 if ac_fn_c_try_link "$LINENO"; then :
12786 case "$LIBEXT" in
12787 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12788 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'` ;;
12789 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12790 if ${ac_cv_lib_soname_cups:+false} :; then :
12791 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12792 fi ;;
12793 esac
12795 rm -f core conftest.err conftest.$ac_objext \
12796 conftest$ac_exeext conftest.$ac_ext
12797 LIBS=$ac_check_soname_save_LIBS
12799 if ${ac_cv_lib_soname_cups:+false} :; then :
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12801 $as_echo "not found" >&6; }
12803 else
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12805 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12807 cat >>confdefs.h <<_ACEOF
12808 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12809 _ACEOF
12811 CUPS_CFLAGS="$ac_cups_cflags"
12815 done
12817 CPPFLAGS="$ac_save_CPPFLAGS"
12819 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12820 case "x$with_cups" in
12821 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12822 xno) ;;
12823 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12824 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12825 esac
12828 if test "x$with_fontconfig" != "xno"
12829 then
12830 if ${FONTCONFIG_CFLAGS:+false} :; then :
12831 if ${PKG_CONFIG+:} false; then :
12832 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags fontconfig 2>/dev/null`
12835 test "$cross_compiling" = yes || FONTCONFIG_CFLAGS=${FONTCONFIG_CFLAGS:-$X_CFLAGS}
12836 if ${FONTCONFIG_LIBS:+false} :; then :
12837 if ${PKG_CONFIG+:} false; then :
12838 FONTCONFIG_LIBS=`$PKG_CONFIG --libs fontconfig 2>/dev/null`
12841 test "$cross_compiling" = yes || FONTCONFIG_LIBS=${FONTCONFIG_LIBS:-$X_LIBS}
12843 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig cflags: $FONTCONFIG_CFLAGS" >&5
12844 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig libs: $FONTCONFIG_LIBS" >&5
12845 ac_save_CPPFLAGS=$CPPFLAGS
12846 CPPFLAGS="$CPPFLAGS $FONTCONFIG_CFLAGS"
12847 for ac_header in fontconfig/fontconfig.h
12848 do :
12849 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12850 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12851 cat >>confdefs.h <<_ACEOF
12852 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12853 _ACEOF
12857 done
12859 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12860 then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12862 $as_echo_n "checking for -lfontconfig... " >&6; }
12863 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12864 $as_echo_n "(cached) " >&6
12865 else
12866 ac_check_soname_save_LIBS=$LIBS
12867 LIBS="-lfontconfig $FONTCONFIG_LIBS $LIBS"
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12871 /* Override any GCC internal prototype to avoid an error.
12872 Use char because int might match the return type of a GCC
12873 builtin and then its argument prototype would still apply. */
12874 #ifdef __cplusplus
12875 extern "C"
12876 #endif
12877 char FcInit ();
12879 main ()
12881 return FcInit ();
12883 return 0;
12885 _ACEOF
12886 if ac_fn_c_try_link "$LINENO"; then :
12887 case "$LIBEXT" in
12888 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12889 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'` ;;
12890 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12891 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12892 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12893 fi ;;
12894 esac
12896 rm -f core conftest.err conftest.$ac_objext \
12897 conftest$ac_exeext conftest.$ac_ext
12898 LIBS=$ac_check_soname_save_LIBS
12900 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12902 $as_echo "not found" >&6; }
12903 FONTCONFIG_CFLAGS=""
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12906 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12908 cat >>confdefs.h <<_ACEOF
12909 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12910 _ACEOF
12914 else
12915 FONTCONFIG_CFLAGS=""
12917 CPPFLAGS=$ac_save_CPPFLAGS
12918 test -z "$FONTCONFIG_CFLAGS" || FONTCONFIG_CFLAGS=`echo " $FONTCONFIG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12919 test -z "$FONTCONFIG_LIBS" || FONTCONFIG_LIBS=`echo " $FONTCONFIG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12922 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12923 case "x$with_fontconfig" in
12924 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12925 xno) ;;
12926 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12927 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12928 esac
12931 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12932 then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12934 $as_echo_n "checking for -lgsm... " >&6; }
12935 if ${ac_cv_lib_soname_gsm+:} false; then :
12936 $as_echo_n "(cached) " >&6
12937 else
12938 ac_check_soname_save_LIBS=$LIBS
12939 LIBS="-lgsm $LIBS"
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12943 /* Override any GCC internal prototype to avoid an error.
12944 Use char because int might match the return type of a GCC
12945 builtin and then its argument prototype would still apply. */
12946 #ifdef __cplusplus
12947 extern "C"
12948 #endif
12949 char gsm_create ();
12951 main ()
12953 return gsm_create ();
12955 return 0;
12957 _ACEOF
12958 if ac_fn_c_try_link "$LINENO"; then :
12959 case "$LIBEXT" in
12960 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12961 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'` ;;
12962 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12963 if ${ac_cv_lib_soname_gsm:+false} :; then :
12964 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12965 fi ;;
12966 esac
12968 rm -f core conftest.err conftest.$ac_objext \
12969 conftest$ac_exeext conftest.$ac_ext
12970 LIBS=$ac_check_soname_save_LIBS
12972 if ${ac_cv_lib_soname_gsm:+false} :; then :
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12974 $as_echo "not found" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12978 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12980 cat >>confdefs.h <<_ACEOF
12981 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12982 _ACEOF
12987 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12988 case "x$with_gsm" in
12989 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12990 xno) ;;
12991 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12992 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12993 esac
12996 if test "x$with_jpeg" != "xno"
12997 then
12998 if ${JPEG_CFLAGS:+false} :; then :
12999 if ${PKG_CONFIG+:} false; then :
13000 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
13004 if ${JPEG_LIBS:+false} :; then :
13005 if ${PKG_CONFIG+:} false; then :
13006 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
13011 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg cflags: $JPEG_CFLAGS" >&5
13012 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg libs: $JPEG_LIBS" >&5
13013 ac_save_CPPFLAGS=$CPPFLAGS
13014 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
13015 for ac_header in jpeglib.h
13016 do :
13017 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
13018 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
13019 cat >>confdefs.h <<_ACEOF
13020 #define HAVE_JPEGLIB_H 1
13021 _ACEOF
13025 done
13027 if test "$ac_cv_header_jpeglib_h" = "yes"
13028 then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
13030 $as_echo_n "checking for -ljpeg... " >&6; }
13031 if ${ac_cv_lib_soname_jpeg+:} false; then :
13032 $as_echo_n "(cached) " >&6
13033 else
13034 ac_check_soname_save_LIBS=$LIBS
13035 LIBS="-ljpeg $JPEG_LIBS $LIBS"
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13039 /* Override any GCC internal prototype to avoid an error.
13040 Use char because int might match the return type of a GCC
13041 builtin and then its argument prototype would still apply. */
13042 #ifdef __cplusplus
13043 extern "C"
13044 #endif
13045 char jpeg_start_decompress ();
13047 main ()
13049 return jpeg_start_decompress ();
13051 return 0;
13053 _ACEOF
13054 if ac_fn_c_try_link "$LINENO"; then :
13055 case "$LIBEXT" in
13056 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13057 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'` ;;
13058 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13059 if ${ac_cv_lib_soname_jpeg:+false} :; then :
13060 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13061 fi ;;
13062 esac
13064 rm -f core conftest.err conftest.$ac_objext \
13065 conftest$ac_exeext conftest.$ac_ext
13066 LIBS=$ac_check_soname_save_LIBS
13068 if ${ac_cv_lib_soname_jpeg:+false} :; then :
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13070 $as_echo "not found" >&6; }
13071 JPEG_CFLAGS=""
13072 else
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
13074 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
13076 cat >>confdefs.h <<_ACEOF
13077 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
13078 _ACEOF
13082 else
13083 JPEG_CFLAGS=""
13085 CPPFLAGS=$ac_save_CPPFLAGS
13086 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13087 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13090 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
13091 case "x$with_jpeg" in
13092 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
13093 xno) ;;
13094 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
13095 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
13096 esac
13099 if test "x$with_png" != "xno"
13100 then
13101 if ${PNG_CFLAGS:+false} :; then :
13102 if ${PKG_CONFIG+:} false; then :
13103 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
13106 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
13107 if ${PNG_LIBS:+false} :; then :
13108 if ${PKG_CONFIG+:} false; then :
13109 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
13112 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
13114 $as_echo "$as_me:${as_lineno-$LINENO}: libpng cflags: $PNG_CFLAGS" >&5
13115 $as_echo "$as_me:${as_lineno-$LINENO}: libpng libs: $PNG_LIBS" >&5
13116 ac_save_CPPFLAGS=$CPPFLAGS
13117 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
13118 for ac_header in png.h
13119 do :
13120 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13121 if test "x$ac_cv_header_png_h" = xyes; then :
13122 cat >>confdefs.h <<_ACEOF
13123 #define HAVE_PNG_H 1
13124 _ACEOF
13128 done
13130 if test "$ac_cv_header_png_h" = "yes"
13131 then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
13133 $as_echo_n "checking for -lpng... " >&6; }
13134 if ${ac_cv_lib_soname_png+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 ac_check_soname_save_LIBS=$LIBS
13138 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13142 /* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
13145 #ifdef __cplusplus
13146 extern "C"
13147 #endif
13148 char png_create_read_struct ();
13150 main ()
13152 return png_create_read_struct ();
13154 return 0;
13156 _ACEOF
13157 if ac_fn_c_try_link "$LINENO"; then :
13158 case "$LIBEXT" in
13159 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13160 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'` ;;
13161 *) 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'`
13162 if ${ac_cv_lib_soname_png:+false} :; then :
13163 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13164 fi ;;
13165 esac
13167 rm -f core conftest.err conftest.$ac_objext \
13168 conftest$ac_exeext conftest.$ac_ext
13169 LIBS=$ac_check_soname_save_LIBS
13171 if ${ac_cv_lib_soname_png:+false} :; then :
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13173 $as_echo "not found" >&6; }
13174 PNG_CFLAGS=""
13175 else
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
13177 $as_echo "$ac_cv_lib_soname_png" >&6; }
13179 cat >>confdefs.h <<_ACEOF
13180 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
13181 _ACEOF
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185 #include <png.h>
13187 main ()
13189 typeof(png_set_expand_gray_1_2_4_to_8) *p
13191 return 0;
13193 _ACEOF
13194 if ac_fn_c_try_compile "$LINENO"; then :
13196 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
13199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201 else
13202 PNG_CFLAGS=""
13204 CPPFLAGS=$ac_save_CPPFLAGS
13205 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13206 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13209 if test "x$ac_cv_lib_soname_png" = "x"; then :
13210 case "x$with_png" in
13211 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
13212 xno) ;;
13213 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
13214 This is an error since --with-png was requested." "$LINENO" 5 ;;
13215 esac
13218 if test "x$with_tiff" != "xno"
13219 then
13220 if ${TIFF_CFLAGS:+false} :; then :
13221 if ${PKG_CONFIG+:} false; then :
13222 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
13226 if ${TIFF_LIBS:+false} :; then :
13227 if ${PKG_CONFIG+:} false; then :
13228 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
13233 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff cflags: $TIFF_CFLAGS" >&5
13234 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff libs: $TIFF_LIBS" >&5
13235 ac_save_CPPFLAGS=$CPPFLAGS
13236 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
13237 for ac_header in tiffio.h
13238 do :
13239 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13240 if test "x$ac_cv_header_tiffio_h" = xyes; then :
13241 cat >>confdefs.h <<_ACEOF
13242 #define HAVE_TIFFIO_H 1
13243 _ACEOF
13247 done
13249 if test "$ac_cv_header_tiffio_h" = "yes"
13250 then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
13252 $as_echo_n "checking for -ltiff... " >&6; }
13253 if ${ac_cv_lib_soname_tiff+:} false; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 ac_check_soname_save_LIBS=$LIBS
13257 LIBS="-ltiff $TIFF_LIBS $LIBS"
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13261 /* Override any GCC internal prototype to avoid an error.
13262 Use char because int might match the return type of a GCC
13263 builtin and then its argument prototype would still apply. */
13264 #ifdef __cplusplus
13265 extern "C"
13266 #endif
13267 char TIFFClientOpen ();
13269 main ()
13271 return TIFFClientOpen ();
13273 return 0;
13275 _ACEOF
13276 if ac_fn_c_try_link "$LINENO"; then :
13277 case "$LIBEXT" in
13278 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13279 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'` ;;
13280 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13281 if ${ac_cv_lib_soname_tiff:+false} :; then :
13282 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13283 fi ;;
13284 esac
13286 rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288 LIBS=$ac_check_soname_save_LIBS
13290 if ${ac_cv_lib_soname_tiff:+false} :; then :
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13292 $as_echo "not found" >&6; }
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
13296 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
13298 cat >>confdefs.h <<_ACEOF
13299 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
13300 _ACEOF
13305 CPPFLAGS=$ac_save_CPPFLAGS
13306 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13307 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13310 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13311 case "x$with_tiff" in
13312 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
13313 xno) ;;
13314 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13315 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13316 esac
13319 if test "x$with_mpg123" != "xno"
13320 then
13321 if ${MPG123_CFLAGS:+false} :; then :
13322 if ${PKG_CONFIG+:} false; then :
13323 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13327 if ${MPG123_LIBS:+false} :; then :
13328 if ${PKG_CONFIG+:} false; then :
13329 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13333 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13334 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 cflags: $MPG123_CFLAGS" >&5
13335 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 libs: $MPG123_LIBS" >&5
13336 ac_save_CPPFLAGS=$CPPFLAGS
13337 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13338 for ac_header in mpg123.h
13339 do :
13340 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13341 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13342 cat >>confdefs.h <<_ACEOF
13343 #define HAVE_MPG123_H 1
13344 _ACEOF
13348 done
13350 if test "$ac_cv_header_mpg123_h" = "yes"
13351 then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13353 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13354 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 ac_check_lib_save_LIBS=$LIBS
13358 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13362 /* Override any GCC internal prototype to avoid an error.
13363 Use char because int might match the return type of a GCC
13364 builtin and then its argument prototype would still apply. */
13365 #ifdef __cplusplus
13366 extern "C"
13367 #endif
13368 char mpg123_feed ();
13370 main ()
13372 return mpg123_feed ();
13374 return 0;
13376 _ACEOF
13377 if ac_fn_c_try_link "$LINENO"; then :
13378 ac_cv_lib_mpg123_mpg123_feed=yes
13379 else
13380 ac_cv_lib_mpg123_mpg123_feed=no
13382 rm -f core conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext conftest.$ac_ext
13384 LIBS=$ac_check_lib_save_LIBS
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13387 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13388 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13390 else
13391 MPG123_LIBS=""
13394 else
13395 MPG123_CFLAGS=""
13396 MPG123_LIBS=""
13398 CPPFLAGS=$ac_save_CPPFLAGS
13399 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13400 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13403 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13404 case "x$with_mpg123" in
13405 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13406 xno) ;;
13407 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13408 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13409 esac
13411 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}
13413 if test "$ac_cv_header_AL_al_h" = "yes"
13414 then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13416 $as_echo_n "checking for -lopenal... " >&6; }
13417 if ${ac_cv_lib_soname_openal+:} false; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 ac_check_soname_save_LIBS=$LIBS
13421 LIBS="-lopenal $LIBS"
13422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423 /* end confdefs.h. */
13425 /* Override any GCC internal prototype to avoid an error.
13426 Use char because int might match the return type of a GCC
13427 builtin and then its argument prototype would still apply. */
13428 #ifdef __cplusplus
13429 extern "C"
13430 #endif
13431 char alGetSource3i ();
13433 main ()
13435 return alGetSource3i ();
13437 return 0;
13439 _ACEOF
13440 if ac_fn_c_try_link "$LINENO"; then :
13441 case "$LIBEXT" in
13442 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13443 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'` ;;
13444 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13445 if ${ac_cv_lib_soname_openal:+false} :; then :
13446 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13447 fi ;;
13448 esac
13450 rm -f core conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452 LIBS=$ac_check_soname_save_LIBS
13454 if ${ac_cv_lib_soname_openal:+false} :; then :
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13456 $as_echo "not found" >&6; }
13458 else
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13460 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13462 cat >>confdefs.h <<_ACEOF
13463 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13464 _ACEOF
13466 OPENAL_LIBS="-lopenal"
13468 ac_cv_lib_openal=yes
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_OPENAL 1
13472 _ACEOF
13476 if test "x$ac_cv_lib_openal" != xyes; then :
13477 case "x$with_openal" in
13478 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13479 xno) ;;
13480 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13481 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13482 esac
13484 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13486 if test "$ac_cv_header_kstat_h" = "yes"
13487 then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13489 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13490 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 ac_check_lib_save_LIBS=$LIBS
13494 LIBS="-lkstat $LIBS"
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13498 /* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13501 #ifdef __cplusplus
13502 extern "C"
13503 #endif
13504 char kstat_open ();
13506 main ()
13508 return kstat_open ();
13510 return 0;
13512 _ACEOF
13513 if ac_fn_c_try_link "$LINENO"; then :
13514 ac_cv_lib_kstat_kstat_open=yes
13515 else
13516 ac_cv_lib_kstat_kstat_open=no
13518 rm -f core conftest.err conftest.$ac_objext \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LIBS=$ac_check_lib_save_LIBS
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13523 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13524 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13526 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13528 KSTAT_LIBS="-lkstat"
13534 if test "$ac_cv_header_libprocstat_h" = "yes"
13535 then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13537 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13538 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 ac_check_lib_save_LIBS=$LIBS
13542 LIBS="-lprocstat $LIBS"
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13546 /* Override any GCC internal prototype to avoid an error.
13547 Use char because int might match the return type of a GCC
13548 builtin and then its argument prototype would still apply. */
13549 #ifdef __cplusplus
13550 extern "C"
13551 #endif
13552 char procstat_open_sysctl ();
13554 main ()
13556 return procstat_open_sysctl ();
13558 return 0;
13560 _ACEOF
13561 if ac_fn_c_try_link "$LINENO"; then :
13562 ac_cv_lib_procstat_procstat_open_sysctl=yes
13563 else
13564 ac_cv_lib_procstat_procstat_open_sysctl=no
13566 rm -f core conftest.err conftest.$ac_objext \
13567 conftest$ac_exeext conftest.$ac_ext
13568 LIBS=$ac_check_lib_save_LIBS
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13571 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13572 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13574 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13576 PROCSTAT_LIBS="-lprocstat"
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13583 $as_echo_n "checking for -lodbc... " >&6; }
13584 if ${ac_cv_lib_soname_odbc+:} false; then :
13585 $as_echo_n "(cached) " >&6
13586 else
13587 ac_check_soname_save_LIBS=$LIBS
13588 LIBS="-lodbc $LIBS"
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13595 #ifdef __cplusplus
13596 extern "C"
13597 #endif
13598 char SQLConnect ();
13600 main ()
13602 return SQLConnect ();
13604 return 0;
13606 _ACEOF
13607 if ac_fn_c_try_link "$LINENO"; then :
13608 case "$LIBEXT" in
13609 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13610 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'` ;;
13611 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13612 if ${ac_cv_lib_soname_odbc:+false} :; then :
13613 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13614 fi ;;
13615 esac
13617 rm -f core conftest.err conftest.$ac_objext \
13618 conftest$ac_exeext conftest.$ac_ext
13619 LIBS=$ac_check_soname_save_LIBS
13621 if ${ac_cv_lib_soname_odbc:+false} :; then :
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13623 $as_echo "not found" >&6; }
13624 cat >>confdefs.h <<_ACEOF
13625 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13626 _ACEOF
13628 else
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13630 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13632 cat >>confdefs.h <<_ACEOF
13633 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13634 _ACEOF
13639 if test "x$with_netapi" != "xno"
13640 then
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13642 $as_echo_n "checking for -lnetapi... " >&6; }
13643 if ${ac_cv_lib_soname_netapi+:} false; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 ac_check_soname_save_LIBS=$LIBS
13647 LIBS="-lnetapi $LIBS"
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13654 #ifdef __cplusplus
13655 extern "C"
13656 #endif
13657 char libnetapi_init ();
13659 main ()
13661 return libnetapi_init ();
13663 return 0;
13665 _ACEOF
13666 if ac_fn_c_try_link "$LINENO"; then :
13667 case "$LIBEXT" in
13668 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13669 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'` ;;
13670 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13671 if ${ac_cv_lib_soname_netapi:+false} :; then :
13672 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13673 fi ;;
13674 esac
13676 rm -f core conftest.err conftest.$ac_objext \
13677 conftest$ac_exeext conftest.$ac_ext
13678 LIBS=$ac_check_soname_save_LIBS
13680 if ${ac_cv_lib_soname_netapi:+false} :; then :
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13682 $as_echo "not found" >&6; }
13683 cat >>confdefs.h <<_ACEOF
13684 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13685 _ACEOF
13687 else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13689 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13691 cat >>confdefs.h <<_ACEOF
13692 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13693 _ACEOF
13699 test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13700 test -n "$COREAUDIO_LIBS" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13701 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13702 test "$ac_cv_header_linux_joystick_h" = "yes" -o "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13704 if test "x$ALSA_LIBS$COREAUDIO_LIBS" = "x" -a \
13705 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13706 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13707 then
13708 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13712 EXTRACFLAGS=""
13714 if test "x${GCC}" = "xyes"
13715 then
13716 EXTRACFLAGS="-Wall -pipe"
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13719 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13720 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 if test "$cross_compiling" = yes; then :
13724 ac_cv_c_gcc_strength_bug="yes"
13725 else
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 int L[4] = {0,1,2,3};
13730 main ()
13732 static int Array[3];
13733 unsigned int B = 3;
13734 int i;
13735 for(i=0; i<B; i++) Array[i] = i - 3;
13736 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13737 L[i] = 4;
13738 return (Array[1] != -2 || L[2] != 3)
13740 return 0;
13742 _ACEOF
13743 if ac_fn_c_try_run "$LINENO"; then :
13744 ac_cv_c_gcc_strength_bug="no"
13745 else
13746 ac_cv_c_gcc_strength_bug="yes"
13748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13749 conftest.$ac_objext conftest.beam conftest.$ac_ext
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13754 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13755 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13756 then
13757 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13761 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13762 if ${ac_cv_cflags__fno_builtin+:} false; then :
13763 $as_echo_n "(cached) " >&6
13764 else
13765 ac_wine_try_cflags_saved=$CFLAGS
13766 CFLAGS="$CFLAGS -fno-builtin"
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13769 int main(int argc, char **argv) { return 0; }
13770 _ACEOF
13771 if ac_fn_c_try_link "$LINENO"; then :
13772 ac_cv_cflags__fno_builtin=yes
13773 else
13774 ac_cv_cflags__fno_builtin=no
13776 rm -f core conftest.err conftest.$ac_objext \
13777 conftest$ac_exeext conftest.$ac_ext
13778 CFLAGS=$ac_wine_try_cflags_saved
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13781 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13782 if test "x$ac_cv_cflags__fno_builtin" = xyes; then :
13783 BUILTINFLAG="-fno-builtin"
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13787 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13788 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13791 ac_wine_try_cflags_saved=$CFLAGS
13792 CFLAGS="$CFLAGS -fno-strict-aliasing"
13793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794 /* end confdefs.h. */
13795 int main(int argc, char **argv) { return 0; }
13796 _ACEOF
13797 if ac_fn_c_try_link "$LINENO"; then :
13798 ac_cv_cflags__fno_strict_aliasing=yes
13799 else
13800 ac_cv_cflags__fno_strict_aliasing=no
13802 rm -f core conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
13804 CFLAGS=$ac_wine_try_cflags_saved
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13807 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13808 if test "x$ac_cv_cflags__fno_strict_aliasing" = xyes; then :
13809 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13811 saved_CFLAGS=$CFLAGS
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13813 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13814 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 ac_wine_try_cflags_saved=$CFLAGS
13818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 int main(int argc, char **argv) { return 0; }
13822 _ACEOF
13823 if ac_fn_c_try_link "$LINENO"; then :
13824 ac_cv_cflags__Werror_unknown_warning_option=yes
13825 else
13826 ac_cv_cflags__Werror_unknown_warning_option=no
13828 rm -f core conftest.err conftest.$ac_objext \
13829 conftest$ac_exeext conftest.$ac_ext
13830 CFLAGS=$ac_wine_try_cflags_saved
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13833 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13834 if test "x$ac_cv_cflags__Werror_unknown_warning_option" = xyes; then :
13835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13838 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13839 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 ac_wine_try_cflags_saved=$CFLAGS
13843 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846 int main(int argc, char **argv) { return 0; }
13847 _ACEOF
13848 if ac_fn_c_try_link "$LINENO"; then :
13849 ac_cv_cflags__Wdeclaration_after_statement=yes
13850 else
13851 ac_cv_cflags__Wdeclaration_after_statement=no
13853 rm -f core conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13855 CFLAGS=$ac_wine_try_cflags_saved
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13858 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13859 if test "x$ac_cv_cflags__Wdeclaration_after_statement" = xyes; then :
13860 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13863 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13864 if ${ac_cv_cflags__Wempty_body+:} false; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 ac_wine_try_cflags_saved=$CFLAGS
13868 CFLAGS="$CFLAGS -Wempty-body"
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871 int main(int argc, char **argv) { return 0; }
13872 _ACEOF
13873 if ac_fn_c_try_link "$LINENO"; then :
13874 ac_cv_cflags__Wempty_body=yes
13875 else
13876 ac_cv_cflags__Wempty_body=no
13878 rm -f core conftest.err conftest.$ac_objext \
13879 conftest$ac_exeext conftest.$ac_ext
13880 CFLAGS=$ac_wine_try_cflags_saved
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13883 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13884 if test "x$ac_cv_cflags__Wempty_body" = xyes; then :
13885 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13888 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13889 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 ac_wine_try_cflags_saved=$CFLAGS
13893 CFLAGS="$CFLAGS -Wignored-qualifiers"
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13896 int main(int argc, char **argv) { return 0; }
13897 _ACEOF
13898 if ac_fn_c_try_link "$LINENO"; then :
13899 ac_cv_cflags__Wignored_qualifiers=yes
13900 else
13901 ac_cv_cflags__Wignored_qualifiers=no
13903 rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
13905 CFLAGS=$ac_wine_try_cflags_saved
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13908 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13909 if test "x$ac_cv_cflags__Wignored_qualifiers" = xyes; then :
13910 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13913 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13914 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13915 $as_echo_n "(cached) " >&6
13916 else
13917 ac_wine_try_cflags_saved=$CFLAGS
13918 CFLAGS="$CFLAGS -Wstrict-prototypes"
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13921 int main(int argc, char **argv) { return 0; }
13922 _ACEOF
13923 if ac_fn_c_try_link "$LINENO"; then :
13924 ac_cv_cflags__Wstrict_prototypes=yes
13925 else
13926 ac_cv_cflags__Wstrict_prototypes=no
13928 rm -f core conftest.err conftest.$ac_objext \
13929 conftest$ac_exeext conftest.$ac_ext
13930 CFLAGS=$ac_wine_try_cflags_saved
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13933 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13934 if test "x$ac_cv_cflags__Wstrict_prototypes" = xyes; then :
13935 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13938 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13939 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 ac_wine_try_cflags_saved=$CFLAGS
13943 CFLAGS="$CFLAGS -Wtype-limits"
13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13946 int main(int argc, char **argv) { return 0; }
13947 _ACEOF
13948 if ac_fn_c_try_link "$LINENO"; then :
13949 ac_cv_cflags__Wtype_limits=yes
13950 else
13951 ac_cv_cflags__Wtype_limits=no
13953 rm -f core conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13955 CFLAGS=$ac_wine_try_cflags_saved
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13958 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13959 if test "x$ac_cv_cflags__Wtype_limits" = xyes; then :
13960 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13963 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13964 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13965 $as_echo_n "(cached) " >&6
13966 else
13967 ac_wine_try_cflags_saved=$CFLAGS
13968 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971 int main(int argc, char **argv) { return 0; }
13972 _ACEOF
13973 if ac_fn_c_try_link "$LINENO"; then :
13974 ac_cv_cflags__Wunused_but_set_parameter=yes
13975 else
13976 ac_cv_cflags__Wunused_but_set_parameter=no
13978 rm -f core conftest.err conftest.$ac_objext \
13979 conftest$ac_exeext conftest.$ac_ext
13980 CFLAGS=$ac_wine_try_cflags_saved
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13983 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13984 if test "x$ac_cv_cflags__Wunused_but_set_parameter" = xyes; then :
13985 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wvla" >&5
13988 $as_echo_n "checking whether the compiler supports -Wvla... " >&6; }
13989 if ${ac_cv_cflags__Wvla+:} false; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 ac_wine_try_cflags_saved=$CFLAGS
13993 CFLAGS="$CFLAGS -Wvla"
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
13996 int main(int argc, char **argv) { return 0; }
13997 _ACEOF
13998 if ac_fn_c_try_link "$LINENO"; then :
13999 ac_cv_cflags__Wvla=yes
14000 else
14001 ac_cv_cflags__Wvla=no
14003 rm -f core conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14005 CFLAGS=$ac_wine_try_cflags_saved
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wvla" >&5
14008 $as_echo "$ac_cv_cflags__Wvla" >&6; }
14009 if test "x$ac_cv_cflags__Wvla" = xyes; then :
14010 EXTRACFLAGS="$EXTRACFLAGS -Wvla"
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
14013 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
14014 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 ac_wine_try_cflags_saved=$CFLAGS
14018 CFLAGS="$CFLAGS -Wwrite-strings"
14019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14020 /* end confdefs.h. */
14021 int main(int argc, char **argv) { return 0; }
14022 _ACEOF
14023 if ac_fn_c_try_link "$LINENO"; then :
14024 ac_cv_cflags__Wwrite_strings=yes
14025 else
14026 ac_cv_cflags__Wwrite_strings=no
14028 rm -f core conftest.err conftest.$ac_objext \
14029 conftest$ac_exeext conftest.$ac_ext
14030 CFLAGS=$ac_wine_try_cflags_saved
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
14033 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
14034 if test "x$ac_cv_cflags__Wwrite_strings" = xyes; then :
14035 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
14039 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
14040 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 ac_wine_try_cflags_saved=$CFLAGS
14044 CFLAGS="$CFLAGS -Wpointer-arith"
14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h. */
14047 int main(int argc, char **argv) { return 0; }
14048 _ACEOF
14049 if ac_fn_c_try_link "$LINENO"; then :
14050 ac_cv_cflags__Wpointer_arith=yes
14051 else
14052 ac_cv_cflags__Wpointer_arith=no
14054 rm -f core conftest.err conftest.$ac_objext \
14055 conftest$ac_exeext conftest.$ac_ext
14056 CFLAGS=$ac_wine_try_cflags_saved
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
14059 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
14060 if test "x$ac_cv_cflags__Wpointer_arith" = xyes; then :
14061 saved_string_h_CFLAGS=$CFLAGS
14062 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
14064 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
14065 if ${ac_cv_c_string_h_warnings+:} false; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 #include <string.h>
14072 main ()
14076 return 0;
14078 _ACEOF
14079 if ac_fn_c_try_compile "$LINENO"; then :
14080 ac_cv_c_string_h_warnings=no
14081 else
14082 ac_cv_c_string_h_warnings=yes
14084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
14087 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
14088 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
14089 CFLAGS=$saved_string_h_CFLAGS
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
14093 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
14094 if ${ac_cv_cflags__Wlogical_op+:} false; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 ac_wine_try_cflags_saved=$CFLAGS
14098 CFLAGS="$CFLAGS -Wlogical-op"
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101 int main(int argc, char **argv) { return 0; }
14102 _ACEOF
14103 if ac_fn_c_try_link "$LINENO"; then :
14104 ac_cv_cflags__Wlogical_op=yes
14105 else
14106 ac_cv_cflags__Wlogical_op=no
14108 rm -f core conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 CFLAGS=$ac_wine_try_cflags_saved
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
14113 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
14114 if test "x$ac_cv_cflags__Wlogical_op" = xyes; then :
14115 saved_string_h_CFLAGS=$CFLAGS
14116 CFLAGS="$CFLAGS -Wlogical-op -Werror"
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
14118 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
14119 if ${ac_cv_c_logicalop_noisy+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 #include <string.h>
14125 char*f(const char *h,char n) {return strchr(h,n);}
14127 main ()
14131 return 0;
14133 _ACEOF
14134 if ac_fn_c_try_compile "$LINENO"; then :
14135 ac_cv_c_logicalop_noisy=no
14136 else
14137 ac_cv_c_logicalop_noisy=yes
14139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
14142 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
14143 CFLAGS=$saved_string_h_CFLAGS
14144 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
14147 CFLAGS=$saved_CFLAGS
14149 for ac_flag in $CFLAGS; do
14150 case $ac_flag in
14151 -g) case $host_os in
14152 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
14153 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
14154 if ${ac_cv_cflags__gstabsp+:} false; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 ac_wine_try_cflags_saved=$CFLAGS
14158 CFLAGS="$CFLAGS -gstabs+"
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 int main(int argc, char **argv) { return 0; }
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 ac_cv_cflags__gstabsp=yes
14165 else
14166 ac_cv_cflags__gstabsp=no
14168 rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14170 CFLAGS=$ac_wine_try_cflags_saved
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
14173 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
14174 if test "x$ac_cv_cflags__gstabsp" = xyes; then :
14175 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
14176 fi ;;
14177 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
14178 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
14179 if ${ac_cv_cflags__gdwarf_2+:} false; then :
14180 $as_echo_n "(cached) " >&6
14181 else
14182 ac_wine_try_cflags_saved=$CFLAGS
14183 CFLAGS="$CFLAGS -gdwarf-2"
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14186 int main(int argc, char **argv) { return 0; }
14187 _ACEOF
14188 if ac_fn_c_try_link "$LINENO"; then :
14189 ac_cv_cflags__gdwarf_2=yes
14190 else
14191 ac_cv_cflags__gdwarf_2=no
14193 rm -f core conftest.err conftest.$ac_objext \
14194 conftest$ac_exeext conftest.$ac_ext
14195 CFLAGS=$ac_wine_try_cflags_saved
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
14198 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
14199 if test "x$ac_cv_cflags__gdwarf_2" = xyes; then :
14200 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
14203 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
14204 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 ac_wine_try_cflags_saved=$CFLAGS
14208 CFLAGS="$CFLAGS -gstrict-dwarf"
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211 int main(int argc, char **argv) { return 0; }
14212 _ACEOF
14213 if ac_fn_c_try_link "$LINENO"; then :
14214 ac_cv_cflags__gstrict_dwarf=yes
14215 else
14216 ac_cv_cflags__gstrict_dwarf=no
14218 rm -f core conftest.err conftest.$ac_objext \
14219 conftest$ac_exeext conftest.$ac_ext
14220 CFLAGS=$ac_wine_try_cflags_saved
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
14223 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
14224 if test "x$ac_cv_cflags__gstrict_dwarf" = xyes; then :
14225 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
14226 fi ;;
14227 esac ;;
14228 esac
14229 done
14231 case $host_cpu in
14232 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
14233 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
14234 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
14235 $as_echo_n "(cached) " >&6
14236 else
14237 ac_wine_try_cflags_saved=$CFLAGS
14238 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14241 int main(int argc, char **argv) { return 0; }
14242 _ACEOF
14243 if ac_fn_c_try_link "$LINENO"; then :
14244 ac_cv_cflags__fno_omit_frame_pointer=yes
14245 else
14246 ac_cv_cflags__fno_omit_frame_pointer=no
14248 rm -f core conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
14250 CFLAGS=$ac_wine_try_cflags_saved
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
14253 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
14254 if test "x$ac_cv_cflags__fno_omit_frame_pointer" = xyes; then :
14255 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
14256 fi ;;
14257 esac
14259 case $host in
14260 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
14261 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
14262 if ${ac_cv_cflags__Wno_format+:} false; then :
14263 $as_echo_n "(cached) " >&6
14264 else
14265 ac_wine_try_cflags_saved=$CFLAGS
14266 CFLAGS="$CFLAGS -Wno-format"
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269 int main(int argc, char **argv) { return 0; }
14270 _ACEOF
14271 if ac_fn_c_try_link "$LINENO"; then :
14272 ac_cv_cflags__Wno_format=yes
14273 else
14274 ac_cv_cflags__Wno_format=no
14276 rm -f core conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278 CFLAGS=$ac_wine_try_cflags_saved
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
14281 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
14282 if test "x$ac_cv_cflags__Wno_format" = xyes; then :
14283 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
14284 fi ;;
14285 esac
14287 if test "x$enable_maintainer_mode" = "xyes"
14288 then
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
14290 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
14291 if ${ac_cv_cflags__Werror+:} false; then :
14292 $as_echo_n "(cached) " >&6
14293 else
14294 ac_wine_try_cflags_saved=$CFLAGS
14295 CFLAGS="$CFLAGS -Werror"
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14298 int main(int argc, char **argv) { return 0; }
14299 _ACEOF
14300 if ac_fn_c_try_link "$LINENO"; then :
14301 ac_cv_cflags__Werror=yes
14302 else
14303 ac_cv_cflags__Werror=no
14305 rm -f core conftest.err conftest.$ac_objext \
14306 conftest$ac_exeext conftest.$ac_ext
14307 CFLAGS=$ac_wine_try_cflags_saved
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
14310 $as_echo "$ac_cv_cflags__Werror" >&6; }
14311 if test "x$ac_cv_cflags__Werror" = xyes; then :
14312 EXTRACFLAGS="$EXTRACFLAGS -Werror"
14316 saved_CFLAGS="$CFLAGS"
14317 CFLAGS="$CFLAGS -Werror"
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
14319 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
14320 if ${ac_cv_have_ms_hook_prologue+:} false; then :
14321 $as_echo_n "(cached) " >&6
14322 else
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
14327 main ()
14331 return 0;
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"; then :
14335 ac_cv_have_ms_hook_prologue="yes"
14336 else
14337 ac_cv_have_ms_hook_prologue="no"
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14342 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14343 CFLAGS="$saved_CFLAGS"
14344 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14345 then
14347 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14349 else
14350 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14357 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14358 if ${ac_cv_c_fortify_enabled+:} false; then :
14359 $as_echo_n "(cached) " >&6
14360 else
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14363 #include <string.h>
14365 main ()
14367 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14368 #error Fortify enabled
14369 #endif
14371 return 0;
14373 _ACEOF
14374 if ac_fn_c_try_compile "$LINENO"; then :
14375 ac_cv_c_fortify_enabled=no
14376 else
14377 ac_cv_c_fortify_enabled=yes
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14382 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14383 if test "$ac_cv_c_fortify_enabled" = yes
14384 then
14385 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14390 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14391 if ${ac_cv_c_extern_prefix+:} false; then :
14392 $as_echo_n "(cached) " >&6
14393 else
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396 extern int ac_test;
14398 main ()
14400 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14402 return 0;
14404 _ACEOF
14405 if ac_fn_c_try_link "$LINENO"; then :
14406 ac_cv_c_extern_prefix="yes"
14407 else
14408 ac_cv_c_extern_prefix="no"
14410 rm -f core conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14414 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14416 case $host_cpu in
14417 *i[3456789]86*)
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14419 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14420 if ${ac_cv_c_stdcall_suffix+:} false; then :
14421 $as_echo_n "(cached) " >&6
14422 else
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14425 #ifndef _MSC_VER
14426 #define __stdcall __attribute__((__stdcall__))
14427 #endif
14428 int __stdcall ac_test(int i) { return i; }
14430 main ()
14432 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14434 return 0;
14436 _ACEOF
14437 if ac_fn_c_try_link "$LINENO"; then :
14438 ac_cv_c_stdcall_suffix="yes"
14439 else
14440 ac_cv_c_stdcall_suffix="no"
14442 rm -f core conftest.err conftest.$ac_objext \
14443 conftest$ac_exeext conftest.$ac_ext
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14446 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14447 *) ac_cv_c_stdcall_suffix="no" ;;
14448 esac
14451 if test "$ac_cv_c_extern_prefix" = "yes"
14452 then
14453 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14455 asm_name_prefix="_"
14456 else
14457 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14459 asm_name_prefix=""
14463 if test "$ac_cv_c_stdcall_suffix" = "yes"
14464 then
14465 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14467 else
14468 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14474 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14475 if ${ac_cv_asm_func_def+:} false; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14482 main ()
14484 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14486 return 0;
14488 _ACEOF
14489 if ac_fn_c_try_link "$LINENO"; then :
14490 ac_cv_asm_func_def=".def"
14491 else
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14496 main ()
14498 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14500 return 0;
14502 _ACEOF
14503 if ac_fn_c_try_link "$LINENO"; then :
14504 ac_cv_asm_func_def=".type @function"
14505 else
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14510 main ()
14512 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14514 return 0;
14516 _ACEOF
14517 if ac_fn_c_try_link "$LINENO"; then :
14518 ac_cv_asm_func_def=".type 2"
14519 else
14520 ac_cv_asm_func_def="unknown"
14522 rm -f core conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14525 rm -f core conftest.err conftest.$ac_objext \
14526 conftest$ac_exeext conftest.$ac_ext
14528 rm -f core conftest.err conftest.$ac_objext \
14529 conftest$ac_exeext conftest.$ac_ext
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14532 $as_echo "$ac_cv_asm_func_def" >&6; }
14535 case "$ac_cv_asm_func_def" in
14536 ".def")
14537 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14539 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14540 ".type @function")
14541 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14543 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14544 ".type 2")
14545 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14547 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14549 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14551 asm_func_header="" ;;
14552 esac
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14555 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14556 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14557 $as_echo_n "(cached) " >&6
14558 else
14559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560 /* end confdefs.h. */
14561 asm(".text\n\t.long 0");
14563 main ()
14567 return 0;
14569 _ACEOF
14570 if ac_fn_c_try_compile "$LINENO"; then :
14571 ac_cv_c_asm_outside_funcs="yes"
14572 else
14573 ac_cv_c_asm_outside_funcs="no"
14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14578 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14581 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14582 if ${ac_cv_c_dot_previous+:} false; then :
14583 $as_echo_n "(cached) " >&6
14584 else
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14589 main ()
14591 asm(".text\nac_test:\t.long 0\n\t.previous");
14593 return 0;
14595 _ACEOF
14596 if ac_fn_c_try_link "$LINENO"; then :
14597 ac_cv_c_dot_previous="yes"
14598 else
14599 ac_cv_c_dot_previous="no"
14601 rm -f core conftest.err conftest.$ac_objext \
14602 conftest$ac_exeext conftest.$ac_ext
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14605 $as_echo "$ac_cv_c_dot_previous" >&6; }
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14608 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14609 if ${ac_cv_c_cfi_support+:} false; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h. */
14614 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14616 main ()
14620 return 0;
14622 _ACEOF
14623 if ac_fn_c_try_compile "$LINENO"; then :
14624 ac_cv_c_cfi_support="yes"
14625 else
14626 ac_cv_c_cfi_support="no"
14628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14631 $as_echo "$ac_cv_c_cfi_support" >&6; }
14633 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14634 asm_func_trailer=""
14635 if test "$ac_cv_c_dot_previous" = "yes"
14636 then
14637 asm_func_trailer="\\n\\t.previous"
14639 if test "$ac_cv_c_cfi_support" = "yes"
14640 then
14641 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14642 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14644 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14646 UNWINDFLAGS=-fasynchronous-unwind-tables
14648 else
14649 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14653 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14656 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14657 then
14658 cat >>confdefs.h <<_ACEOF
14659 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14660 _ACEOF
14662 else
14663 cat >>confdefs.h <<_ACEOF
14664 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14665 _ACEOF
14669 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14672 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14676 case $build_os in
14677 cygwin*|mingw32*) TOOLSEXT=".exe"
14679 esac
14681 case $host_os in
14682 linux*)
14683 case $host_cpu in
14684 *i[3456789]86*|x86_64*)
14685 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14686 loader_programs="$loader_programs $wine_binary-preloader"
14687 as_fn_append LOADER_RULES "
14688 $wine_binary-preloader: preloader.o
14689 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14691 install install-lib:: $wine_binary-preloader
14692 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14694 uninstall::
14695 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14697 preloader_EXTRADEFS = $BUILTINFLAG
14698 " ;;
14699 esac
14701 esac
14702 as_fn_append LOADER_RULES "
14703 PROGRAMS = $loader_programs
14707 ac_save_CFLAGS="$CFLAGS"
14708 CFLAGS="$CFLAGS $BUILTINFLAG"
14709 for ac_func in \
14710 __res_get_state \
14711 __res_getservers \
14712 _finite \
14713 _isnan \
14714 _pclose \
14715 _popen \
14716 _snprintf \
14717 _spawnvp \
14718 _strdup \
14719 _stricmp \
14720 _strnicmp \
14721 _strtoi64 \
14722 _strtoui64 \
14723 _vsnprintf \
14724 asctime_r \
14725 chsize \
14726 dlopen \
14727 epoll_create \
14728 ffs \
14729 finitef \
14730 fnmatch \
14731 fork \
14732 fpclass \
14733 fstatfs \
14734 fstatvfs \
14735 ftruncate \
14736 futimens \
14737 futimes \
14738 futimesat \
14739 getattrlist \
14740 getdirentries \
14741 getopt_long_only \
14742 getpwuid \
14743 gettimeofday \
14744 getuid \
14745 if_nameindex \
14746 isnanf \
14747 kqueue \
14748 lstat \
14749 memmove \
14750 mmap \
14751 pclose \
14752 pipe2 \
14753 poll \
14754 popen \
14755 port_create \
14756 prctl \
14757 pread \
14758 proc_pidinfo \
14759 pwrite \
14760 readdir \
14761 readlink \
14762 sched_yield \
14763 select \
14764 setproctitle \
14765 setrlimit \
14766 settimeofday \
14767 sigaltstack \
14768 sigprocmask \
14769 snprintf \
14770 statfs \
14771 statvfs \
14772 strcasecmp \
14773 strdup \
14774 strerror \
14775 strncasecmp \
14776 strtold \
14777 strtoll \
14778 strtoull \
14779 symlink \
14780 tcdrain \
14781 thr_kill2 \
14782 timegm \
14783 usleep \
14784 vsnprintf
14786 do :
14787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14788 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14789 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14790 cat >>confdefs.h <<_ACEOF
14791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14792 _ACEOF
14795 done
14797 CFLAGS="$ac_save_CFLAGS"
14799 if test "$ac_cv_func_dlopen" = no
14800 then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14802 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14803 if ${ac_cv_lib_dl_dlopen+:} false; then :
14804 $as_echo_n "(cached) " >&6
14805 else
14806 ac_check_lib_save_LIBS=$LIBS
14807 LIBS="-ldl $LIBS"
14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14811 /* Override any GCC internal prototype to avoid an error.
14812 Use char because int might match the return type of a GCC
14813 builtin and then its argument prototype would still apply. */
14814 #ifdef __cplusplus
14815 extern "C"
14816 #endif
14817 char dlopen ();
14819 main ()
14821 return dlopen ();
14823 return 0;
14825 _ACEOF
14826 if ac_fn_c_try_link "$LINENO"; then :
14827 ac_cv_lib_dl_dlopen=yes
14828 else
14829 ac_cv_lib_dl_dlopen=no
14831 rm -f core conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14833 LIBS=$ac_check_lib_save_LIBS
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14836 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14837 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14838 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14839 DL_LIBS="-ldl"
14844 ac_wine_check_funcs_save_LIBS="$LIBS"
14845 LIBS="$LIBS $DL_LIBS"
14846 for ac_func in dladdr
14847 do :
14848 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14849 if test "x$ac_cv_func_dladdr" = xyes; then :
14850 cat >>confdefs.h <<_ACEOF
14851 #define HAVE_DLADDR 1
14852 _ACEOF
14855 done
14857 LIBS="$ac_wine_check_funcs_save_LIBS"
14859 if test "$ac_cv_func_poll" = no
14860 then
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14862 $as_echo_n "checking for poll in -lpoll... " >&6; }
14863 if ${ac_cv_lib_poll_poll+:} false; then :
14864 $as_echo_n "(cached) " >&6
14865 else
14866 ac_check_lib_save_LIBS=$LIBS
14867 LIBS="-lpoll $LIBS"
14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14871 /* Override any GCC internal prototype to avoid an error.
14872 Use char because int might match the return type of a GCC
14873 builtin and then its argument prototype would still apply. */
14874 #ifdef __cplusplus
14875 extern "C"
14876 #endif
14877 char poll ();
14879 main ()
14881 return poll ();
14883 return 0;
14885 _ACEOF
14886 if ac_fn_c_try_link "$LINENO"; then :
14887 ac_cv_lib_poll_poll=yes
14888 else
14889 ac_cv_lib_poll_poll=no
14891 rm -f core conftest.err conftest.$ac_objext \
14892 conftest$ac_exeext conftest.$ac_ext
14893 LIBS=$ac_check_lib_save_LIBS
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14896 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14897 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14898 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14899 POLL_LIBS="-lpoll"
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14906 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14907 if ${ac_cv_search_gethostbyname+:} false; then :
14908 $as_echo_n "(cached) " >&6
14909 else
14910 ac_func_search_save_LIBS=$LIBS
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14914 /* Override any GCC internal prototype to avoid an error.
14915 Use char because int might match the return type of a GCC
14916 builtin and then its argument prototype would still apply. */
14917 #ifdef __cplusplus
14918 extern "C"
14919 #endif
14920 char gethostbyname ();
14922 main ()
14924 return gethostbyname ();
14926 return 0;
14928 _ACEOF
14929 for ac_lib in '' nsl; do
14930 if test -z "$ac_lib"; then
14931 ac_res="none required"
14932 else
14933 ac_res=-l$ac_lib
14934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14936 if ac_fn_c_try_link "$LINENO"; then :
14937 ac_cv_search_gethostbyname=$ac_res
14939 rm -f core conftest.err conftest.$ac_objext \
14940 conftest$ac_exeext
14941 if ${ac_cv_search_gethostbyname+:} false; then :
14942 break
14944 done
14945 if ${ac_cv_search_gethostbyname+:} false; then :
14947 else
14948 ac_cv_search_gethostbyname=no
14950 rm conftest.$ac_ext
14951 LIBS=$ac_func_search_save_LIBS
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14954 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14955 ac_res=$ac_cv_search_gethostbyname
14956 if test "$ac_res" != no; then :
14957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14963 $as_echo_n "checking for library containing connect... " >&6; }
14964 if ${ac_cv_search_connect+:} false; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14967 ac_func_search_save_LIBS=$LIBS
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h. */
14971 /* Override any GCC internal prototype to avoid an error.
14972 Use char because int might match the return type of a GCC
14973 builtin and then its argument prototype would still apply. */
14974 #ifdef __cplusplus
14975 extern "C"
14976 #endif
14977 char connect ();
14979 main ()
14981 return connect ();
14983 return 0;
14985 _ACEOF
14986 for ac_lib in '' socket; do
14987 if test -z "$ac_lib"; then
14988 ac_res="none required"
14989 else
14990 ac_res=-l$ac_lib
14991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14993 if ac_fn_c_try_link "$LINENO"; then :
14994 ac_cv_search_connect=$ac_res
14996 rm -f core conftest.err conftest.$ac_objext \
14997 conftest$ac_exeext
14998 if ${ac_cv_search_connect+:} false; then :
14999 break
15001 done
15002 if ${ac_cv_search_connect+:} false; then :
15004 else
15005 ac_cv_search_connect=no
15007 rm conftest.$ac_ext
15008 LIBS=$ac_func_search_save_LIBS
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
15011 $as_echo "$ac_cv_search_connect" >&6; }
15012 ac_res=$ac_cv_search_connect
15013 if test "$ac_res" != no; then :
15014 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
15020 $as_echo_n "checking for library containing inet_aton... " >&6; }
15021 if ${ac_cv_search_inet_aton+:} false; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 ac_func_search_save_LIBS=$LIBS
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15028 /* Override any GCC internal prototype to avoid an error.
15029 Use char because int might match the return type of a GCC
15030 builtin and then its argument prototype would still apply. */
15031 #ifdef __cplusplus
15032 extern "C"
15033 #endif
15034 char inet_aton ();
15036 main ()
15038 return inet_aton ();
15040 return 0;
15042 _ACEOF
15043 for ac_lib in '' resolv; do
15044 if test -z "$ac_lib"; then
15045 ac_res="none required"
15046 else
15047 ac_res=-l$ac_lib
15048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15050 if ac_fn_c_try_link "$LINENO"; then :
15051 ac_cv_search_inet_aton=$ac_res
15053 rm -f core conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext
15055 if ${ac_cv_search_inet_aton+:} false; then :
15056 break
15058 done
15059 if ${ac_cv_search_inet_aton+:} false; then :
15061 else
15062 ac_cv_search_inet_aton=no
15064 rm conftest.$ac_ext
15065 LIBS=$ac_func_search_save_LIBS
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
15068 $as_echo "$ac_cv_search_inet_aton" >&6; }
15069 ac_res=$ac_cv_search_inet_aton
15070 if test "$ac_res" != no; then :
15071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15076 for ac_func in \
15077 getaddrinfo \
15078 getnameinfo \
15079 getnetbyname \
15080 getprotobyname \
15081 getprotobynumber \
15082 getservbyport \
15083 inet_addr \
15084 inet_network \
15085 inet_ntop \
15086 inet_pton \
15087 sendmsg \
15088 socketpair \
15090 do :
15091 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15093 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15094 cat >>confdefs.h <<_ACEOF
15095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15096 _ACEOF
15099 done
15102 ac_save_LIBS=$LIBS
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15104 $as_echo_n "checking for library containing clock_gettime... " >&6; }
15105 if ${ac_cv_search_clock_gettime+:} false; then :
15106 $as_echo_n "(cached) " >&6
15107 else
15108 ac_func_search_save_LIBS=$LIBS
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15112 /* Override any GCC internal prototype to avoid an error.
15113 Use char because int might match the return type of a GCC
15114 builtin and then its argument prototype would still apply. */
15115 #ifdef __cplusplus
15116 extern "C"
15117 #endif
15118 char clock_gettime ();
15120 main ()
15122 return clock_gettime ();
15124 return 0;
15126 _ACEOF
15127 for ac_lib in '' rt; do
15128 if test -z "$ac_lib"; then
15129 ac_res="none required"
15130 else
15131 ac_res=-l$ac_lib
15132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15134 if ac_fn_c_try_link "$LINENO"; then :
15135 ac_cv_search_clock_gettime=$ac_res
15137 rm -f core conftest.err conftest.$ac_objext \
15138 conftest$ac_exeext
15139 if ${ac_cv_search_clock_gettime+:} false; then :
15140 break
15142 done
15143 if ${ac_cv_search_clock_gettime+:} false; then :
15145 else
15146 ac_cv_search_clock_gettime=no
15148 rm conftest.$ac_ext
15149 LIBS=$ac_func_search_save_LIBS
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15152 $as_echo "$ac_cv_search_clock_gettime" >&6; }
15153 ac_res=$ac_cv_search_clock_gettime
15154 if test "$ac_res" != no; then :
15155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15157 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15159 test "$ac_res" = "none required" || RT_LIBS="$ac_res"
15163 LIBS=$ac_save_LIBS
15165 LDAP_LIBS=""
15167 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
15168 then
15169 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
15171 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
15173 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
15174 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
15175 $as_echo_n "(cached) " >&6
15176 else
15177 ac_check_lib_save_LIBS=$LIBS
15178 LIBS="-lldap_r $PTHREAD_LIBS $LIBS"
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15182 /* Override any GCC internal prototype to avoid an error.
15183 Use char because int might match the return type of a GCC
15184 builtin and then its argument prototype would still apply. */
15185 #ifdef __cplusplus
15186 extern "C"
15187 #endif
15188 char ldap_initialize ();
15190 main ()
15192 return ldap_initialize ();
15194 return 0;
15196 _ACEOF
15197 if ac_fn_c_try_link "$LINENO"; then :
15198 ac_cv_lib_ldap_r_ldap_initialize=yes
15199 else
15200 ac_cv_lib_ldap_r_ldap_initialize=no
15202 rm -f core conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204 LIBS=$ac_check_lib_save_LIBS
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
15207 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
15208 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
15210 $as_echo_n "checking for ber_init in -llber... " >&6; }
15211 if ${ac_cv_lib_lber_ber_init+:} false; then :
15212 $as_echo_n "(cached) " >&6
15213 else
15214 ac_check_lib_save_LIBS=$LIBS
15215 LIBS="-llber $PTHREAD_LIBS $LIBS"
15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15219 /* Override any GCC internal prototype to avoid an error.
15220 Use char because int might match the return type of a GCC
15221 builtin and then its argument prototype would still apply. */
15222 #ifdef __cplusplus
15223 extern "C"
15224 #endif
15225 char ber_init ();
15227 main ()
15229 return ber_init ();
15231 return 0;
15233 _ACEOF
15234 if ac_fn_c_try_link "$LINENO"; then :
15235 ac_cv_lib_lber_ber_init=yes
15236 else
15237 ac_cv_lib_lber_ber_init=no
15239 rm -f core conftest.err conftest.$ac_objext \
15240 conftest$ac_exeext conftest.$ac_ext
15241 LIBS=$ac_check_lib_save_LIBS
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
15244 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
15245 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
15247 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
15249 LDAP_LIBS="-lldap_r -llber"
15256 ac_wine_check_funcs_save_LIBS="$LIBS"
15257 LIBS="$LIBS $LDAP_LIBS $PTHREAD_LIBS"
15258 for ac_func in \
15259 ldap_count_references \
15260 ldap_first_reference \
15261 ldap_next_reference \
15262 ldap_parse_reference \
15263 ldap_parse_sort_control \
15264 ldap_parse_sortresponse_control \
15265 ldap_parse_vlv_control \
15266 ldap_parse_vlvresponse_control
15267 do :
15268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15269 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15270 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15271 cat >>confdefs.h <<_ACEOF
15272 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15273 _ACEOF
15276 done
15278 LIBS="$ac_wine_check_funcs_save_LIBS"
15280 if test "x$LDAP_LIBS" = "x"; then :
15281 case "x$with_ldap" in
15282 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
15283 xno) ;;
15284 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
15285 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
15286 esac
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
15290 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
15291 if ${wine_cv_one_arg_mkdir+:} false; then :
15292 $as_echo_n "(cached) " >&6
15293 else
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15296 #include <sys/stat.h>
15298 main ()
15300 mkdir("foo");
15302 return 0;
15304 _ACEOF
15305 if ac_fn_c_try_compile "$LINENO"; then :
15306 wine_cv_one_arg_mkdir=yes
15307 else
15308 wine_cv_one_arg_mkdir=no
15310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
15313 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
15314 if test "$wine_cv_one_arg_mkdir" = "yes"
15315 then
15317 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
15322 $as_echo_n "checking for sched_setaffinity... " >&6; }
15323 if ${wine_cv_have_sched_setaffinity+:} false; then :
15324 $as_echo_n "(cached) " >&6
15325 else
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328 #define _GNU_SOURCE
15329 #include <sched.h>
15331 main ()
15333 sched_setaffinity(0, 0, 0);
15335 return 0;
15337 _ACEOF
15338 if ac_fn_c_try_link "$LINENO"; then :
15339 wine_cv_have_sched_setaffinity=yes
15340 else
15341 wine_cv_have_sched_setaffinity=no
15343 rm -f core conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
15347 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15348 if test "$wine_cv_have_sched_setaffinity" = "yes"
15349 then
15351 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15356 $as_echo_n "checking for fallocate... " >&6; }
15357 if ${wine_cv_have_fallocate+:} false; then :
15358 $as_echo_n "(cached) " >&6
15359 else
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362 #define _GNU_SOURCE
15363 #include <fcntl.h>
15365 main ()
15367 fallocate(-1, 0, 0, 0);
15369 return 0;
15371 _ACEOF
15372 if ac_fn_c_try_link "$LINENO"; then :
15373 wine_cv_have_fallocate=yes
15374 else
15375 wine_cv_have_fallocate=no
15377 rm -f core conftest.err conftest.$ac_objext \
15378 conftest$ac_exeext conftest.$ac_ext
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15381 $as_echo "$wine_cv_have_fallocate" >&6; }
15382 if test "$wine_cv_have_fallocate" = "yes"
15383 then
15385 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15391 $as_echo_n "checking for inline... " >&6; }
15392 if ${ac_cv_c_inline+:} false; then :
15393 $as_echo_n "(cached) " >&6
15394 else
15395 ac_cv_c_inline=no
15396 for ac_kw in inline __inline__ __inline; do
15397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398 /* end confdefs.h. */
15399 #ifndef __cplusplus
15400 typedef int foo_t;
15401 static $ac_kw foo_t static_foo () {return 0; }
15402 $ac_kw foo_t foo () {return 0; }
15403 #endif
15405 _ACEOF
15406 if ac_fn_c_try_compile "$LINENO"; then :
15407 ac_cv_c_inline=$ac_kw
15409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15410 test "$ac_cv_c_inline" != no && break
15411 done
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15415 $as_echo "$ac_cv_c_inline" >&6; }
15417 case $ac_cv_c_inline in
15418 inline | yes) ;;
15420 case $ac_cv_c_inline in
15421 no) ac_val=;;
15422 *) ac_val=$ac_cv_c_inline;;
15423 esac
15424 cat >>confdefs.h <<_ACEOF
15425 #ifndef __cplusplus
15426 #define inline $ac_val
15427 #endif
15428 _ACEOF
15430 esac
15432 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15433 if test "x$ac_cv_type_mode_t" = xyes; then :
15435 cat >>confdefs.h <<_ACEOF
15436 #define HAVE_MODE_T 1
15437 _ACEOF
15441 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15442 if test "x$ac_cv_type_off_t" = xyes; then :
15444 cat >>confdefs.h <<_ACEOF
15445 #define HAVE_OFF_T 1
15446 _ACEOF
15450 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15451 if test "x$ac_cv_type_pid_t" = xyes; then :
15453 cat >>confdefs.h <<_ACEOF
15454 #define HAVE_PID_T 1
15455 _ACEOF
15459 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15460 if test "x$ac_cv_type_size_t" = xyes; then :
15462 cat >>confdefs.h <<_ACEOF
15463 #define HAVE_SIZE_T 1
15464 _ACEOF
15468 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15469 if test "x$ac_cv_type_ssize_t" = xyes; then :
15471 cat >>confdefs.h <<_ACEOF
15472 #define HAVE_SSIZE_T 1
15473 _ACEOF
15477 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15478 if test "x$ac_cv_type_long_long" = xyes; then :
15480 cat >>confdefs.h <<_ACEOF
15481 #define HAVE_LONG_LONG 1
15482 _ACEOF
15486 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15487 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15489 cat >>confdefs.h <<_ACEOF
15490 #define HAVE_FSBLKCNT_T 1
15491 _ACEOF
15495 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15496 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15498 cat >>confdefs.h <<_ACEOF
15499 #define HAVE_FSFILCNT_T 1
15500 _ACEOF
15505 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15506 #include <signal.h>
15508 if test "x$ac_cv_type_sigset_t" = xyes; then :
15510 cat >>confdefs.h <<_ACEOF
15511 #define HAVE_SIGSET_T 1
15512 _ACEOF
15517 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15519 if test "x$ac_cv_type_request_sense" = xyes; then :
15521 cat >>confdefs.h <<_ACEOF
15522 #define HAVE_REQUEST_SENSE 1
15523 _ACEOF
15529 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15530 #ifdef HAVE_SYS_SOCKET_H
15531 #include <sys/socket.h>
15532 #endif
15533 #ifdef HAVE_SYS_SOCKETVAR_H
15534 #include <sys/socketvar.h>
15535 #endif
15536 #ifdef HAVE_NET_ROUTE_H
15537 #include <net/route.h>
15538 #endif
15539 #ifdef HAVE_NETINET_IN_H
15540 #include <netinet/in.h>
15541 #endif
15542 #ifdef HAVE_NETINET_IN_SYSTM_H
15543 #include <netinet/in_systm.h>
15544 #endif
15545 #ifdef HAVE_NETINET_IP_H
15546 #include <netinet/ip.h>
15547 #endif
15548 #ifdef HAVE_NETINET_IN_PCB_H
15549 #include <netinet/in_pcb.h>
15550 #endif
15552 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15554 cat >>confdefs.h <<_ACEOF
15555 #define HAVE_STRUCT_XINPGEN 1
15556 _ACEOF
15562 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#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_r_debug" = xyes; then :
15571 cat >>confdefs.h <<_ACEOF
15572 #define HAVE_STRUCT_R_DEBUG 1
15573 _ACEOF
15577 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15578 #include <link.h>
15579 #endif
15580 #ifdef HAVE_SYS_LINK_H
15581 #include <sys/link.h>
15582 #endif
15584 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15586 cat >>confdefs.h <<_ACEOF
15587 #define HAVE_STRUCT_LINK_MAP 1
15588 _ACEOF
15594 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15595 #include <linux/input.h>
15596 #endif
15598 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15600 cat >>confdefs.h <<_ACEOF
15601 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15602 _ACEOF
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15609 $as_echo_n "checking for sigaddset... " >&6; }
15610 if ${wine_cv_have_sigaddset+:} false; then :
15611 $as_echo_n "(cached) " >&6
15612 else
15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614 /* end confdefs.h. */
15615 #include <signal.h>
15617 main ()
15619 sigset_t set; sigaddset(&set,SIGTERM);
15621 return 0;
15623 _ACEOF
15624 if ac_fn_c_try_link "$LINENO"; then :
15625 wine_cv_have_sigaddset=yes
15626 else
15627 wine_cv_have_sigaddset=no
15629 rm -f core conftest.err conftest.$ac_objext \
15630 conftest$ac_exeext conftest.$ac_ext
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15633 $as_echo "$wine_cv_have_sigaddset" >&6; }
15634 if test "$wine_cv_have_sigaddset" = "yes"
15635 then
15637 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15643 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15644 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15645 $as_echo_n "(cached) " >&6
15646 else
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649 #include <netdb.h>
15651 main ()
15654 char *name=0;
15655 struct hostent he;
15656 struct hostent *result;
15657 char *buf=0;
15658 int bufsize=0;
15659 int errnr;
15660 char *addr=0;
15661 int addrlen=0;
15662 int addrtype=0;
15663 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15664 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15667 return 0;
15669 _ACEOF
15670 if ac_fn_c_try_link "$LINENO"; then :
15671 wine_cv_linux_gethostbyname_r_6=yes
15672 else
15673 wine_cv_linux_gethostbyname_r_6=no
15676 rm -f core conftest.err conftest.$ac_objext \
15677 conftest$ac_exeext conftest.$ac_ext
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15681 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15682 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15683 then
15685 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15689 if test "$ac_cv_header_linux_joystick_h" = "yes"
15690 then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15692 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15693 if ${wine_cv_linux_joystick_22_api+:} false; then :
15694 $as_echo_n "(cached) " >&6
15695 else
15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15699 #include <sys/ioctl.h>
15700 #include <sys/types.h>
15701 #include <linux/joystick.h>
15703 struct js_event blub;
15704 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15705 #error "no 2.2 header"
15706 #endif
15709 main ()
15711 /*empty*/
15713 return 0;
15715 _ACEOF
15716 if ac_fn_c_try_compile "$LINENO"; then :
15717 wine_cv_linux_joystick_22_api=yes
15718 else
15719 wine_cv_linux_joystick_22_api=no
15721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15725 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15726 if test "$wine_cv_linux_joystick_22_api" = "yes"
15727 then
15729 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15735 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15736 #ifdef HAVE_SYS_PARAM_H
15737 # include <sys/param.h>
15738 #endif
15739 #ifdef HAVE_SYS_MOUNT_H
15740 # include <sys/mount.h>
15741 #endif
15742 #ifdef HAVE_SYS_VFS_H
15743 # include <sys/vfs.h>
15744 #endif
15745 #ifdef HAVE_SYS_STATFS_H
15746 # include <sys/statfs.h>
15747 #endif
15749 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15751 cat >>confdefs.h <<_ACEOF
15752 #define HAVE_STRUCT_STATFS_F_BFREE 1
15753 _ACEOF
15757 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15758 #ifdef HAVE_SYS_PARAM_H
15759 # include <sys/param.h>
15760 #endif
15761 #ifdef HAVE_SYS_MOUNT_H
15762 # include <sys/mount.h>
15763 #endif
15764 #ifdef HAVE_SYS_VFS_H
15765 # include <sys/vfs.h>
15766 #endif
15767 #ifdef HAVE_SYS_STATFS_H
15768 # include <sys/statfs.h>
15769 #endif
15771 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15773 cat >>confdefs.h <<_ACEOF
15774 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15775 _ACEOF
15779 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15780 #ifdef HAVE_SYS_PARAM_H
15781 # include <sys/param.h>
15782 #endif
15783 #ifdef HAVE_SYS_MOUNT_H
15784 # include <sys/mount.h>
15785 #endif
15786 #ifdef HAVE_SYS_VFS_H
15787 # include <sys/vfs.h>
15788 #endif
15789 #ifdef HAVE_SYS_STATFS_H
15790 # include <sys/statfs.h>
15791 #endif
15793 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15795 cat >>confdefs.h <<_ACEOF
15796 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15797 _ACEOF
15801 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15802 #ifdef HAVE_SYS_PARAM_H
15803 # include <sys/param.h>
15804 #endif
15805 #ifdef HAVE_SYS_MOUNT_H
15806 # include <sys/mount.h>
15807 #endif
15808 #ifdef HAVE_SYS_VFS_H
15809 # include <sys/vfs.h>
15810 #endif
15811 #ifdef HAVE_SYS_STATFS_H
15812 # include <sys/statfs.h>
15813 #endif
15815 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15817 cat >>confdefs.h <<_ACEOF
15818 #define HAVE_STRUCT_STATFS_F_FFREE 1
15819 _ACEOF
15823 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15824 #ifdef HAVE_SYS_PARAM_H
15825 # include <sys/param.h>
15826 #endif
15827 #ifdef HAVE_SYS_MOUNT_H
15828 # include <sys/mount.h>
15829 #endif
15830 #ifdef HAVE_SYS_VFS_H
15831 # include <sys/vfs.h>
15832 #endif
15833 #ifdef HAVE_SYS_STATFS_H
15834 # include <sys/statfs.h>
15835 #endif
15837 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15839 cat >>confdefs.h <<_ACEOF
15840 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15841 _ACEOF
15845 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15846 #ifdef HAVE_SYS_PARAM_H
15847 # include <sys/param.h>
15848 #endif
15849 #ifdef HAVE_SYS_MOUNT_H
15850 # include <sys/mount.h>
15851 #endif
15852 #ifdef HAVE_SYS_VFS_H
15853 # include <sys/vfs.h>
15854 #endif
15855 #ifdef HAVE_SYS_STATFS_H
15856 # include <sys/statfs.h>
15857 #endif
15859 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15861 cat >>confdefs.h <<_ACEOF
15862 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15863 _ACEOF
15869 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15870 #include <sys/statvfs.h>
15871 #endif
15873 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15875 cat >>confdefs.h <<_ACEOF
15876 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15877 _ACEOF
15883 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15884 #include <dirent.h>
15885 #endif
15887 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15889 cat >>confdefs.h <<_ACEOF
15890 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15891 _ACEOF
15897 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15898 #ifdef HAVE_SYS_SOCKET_H
15899 # include <sys/socket.h>
15900 #endif
15901 #ifdef HAVE_SYS_UN_H
15902 # include <sys/un.h>
15903 #endif
15905 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15907 cat >>confdefs.h <<_ACEOF
15908 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15909 _ACEOF
15913 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15914 #ifdef HAVE_SYS_SOCKET_H
15915 # include <sys/socket.h>
15916 #endif
15917 #ifdef HAVE_SYS_UN_H
15918 # include <sys/un.h>
15919 #endif
15921 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15923 cat >>confdefs.h <<_ACEOF
15924 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15925 _ACEOF
15929 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15930 #ifdef HAVE_SYS_SOCKET_H
15931 # include <sys/socket.h>
15932 #endif
15933 #ifdef HAVE_SYS_UN_H
15934 # include <sys/un.h>
15935 #endif
15937 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15939 cat >>confdefs.h <<_ACEOF
15940 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15941 _ACEOF
15947 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15948 #ifdef HAVE_SCSI_SG_H
15949 #include <scsi/sg.h>
15950 #endif
15952 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15954 cat >>confdefs.h <<_ACEOF
15955 #define HAVE_SCSIREQ_T_CMD 1
15956 _ACEOF
15960 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>
15961 #ifdef HAVE_SCSI_SG_H
15962 #include <scsi/sg.h>
15963 #endif
15965 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15967 cat >>confdefs.h <<_ACEOF
15968 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15969 _ACEOF
15975 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15977 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15979 cat >>confdefs.h <<_ACEOF
15980 #define HAVE_SIGINFO_T_SI_FD 1
15981 _ACEOF
15987 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15988 #ifdef HAVE_SYS_MTIO_H
15989 #include <sys/mtio.h>
15990 #endif
15992 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15994 cat >>confdefs.h <<_ACEOF
15995 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15996 _ACEOF
16000 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
16001 #ifdef HAVE_SYS_MTIO_H
16002 #include <sys/mtio.h>
16003 #endif
16005 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
16007 cat >>confdefs.h <<_ACEOF
16008 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
16009 _ACEOF
16013 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
16014 #ifdef HAVE_SYS_MTIO_H
16015 #include <sys/mtio.h>
16016 #endif
16018 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
16020 cat >>confdefs.h <<_ACEOF
16021 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
16022 _ACEOF
16028 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
16029 #include <getopt.h>
16030 #endif
16032 if test "x$ac_cv_member_struct_option_name" = xyes; then :
16034 cat >>confdefs.h <<_ACEOF
16035 #define HAVE_STRUCT_OPTION_NAME 1
16036 _ACEOF
16042 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16043 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
16045 cat >>confdefs.h <<_ACEOF
16046 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16047 _ACEOF
16051 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16052 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
16054 cat >>confdefs.h <<_ACEOF
16055 #define HAVE_STRUCT_STAT_ST_MTIM 1
16056 _ACEOF
16060 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
16061 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
16063 cat >>confdefs.h <<_ACEOF
16064 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
16065 _ACEOF
16069 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
16070 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
16072 cat >>confdefs.h <<_ACEOF
16073 #define HAVE_STRUCT_STAT_ST_CTIM 1
16074 _ACEOF
16078 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
16079 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
16081 cat >>confdefs.h <<_ACEOF
16082 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
16083 _ACEOF
16087 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
16088 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
16090 cat >>confdefs.h <<_ACEOF
16091 #define HAVE_STRUCT_STAT_ST_ATIM 1
16092 _ACEOF
16096 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
16097 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
16099 cat >>confdefs.h <<_ACEOF
16100 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
16101 _ACEOF
16105 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
16106 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
16108 cat >>confdefs.h <<_ACEOF
16109 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
16110 _ACEOF
16114 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
16115 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
16117 cat >>confdefs.h <<_ACEOF
16118 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
16119 _ACEOF
16123 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
16124 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
16126 cat >>confdefs.h <<_ACEOF
16127 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
16128 _ACEOF
16132 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
16133 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
16135 cat >>confdefs.h <<_ACEOF
16136 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
16137 _ACEOF
16141 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
16142 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
16144 cat >>confdefs.h <<_ACEOF
16145 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
16146 _ACEOF
16152 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
16153 #include <sys/types.h>
16154 #endif
16155 #ifdef HAVE_NETINET_IN_H
16156 #include <netinet/in.h>
16157 #endif
16159 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
16161 cat >>confdefs.h <<_ACEOF
16162 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
16163 _ACEOF
16169 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
16170 #include <resolv.h>
16171 #endif
16173 if test "x$ac_cv_type_struct___res_state" = xyes; then :
16175 cat >>confdefs.h <<_ACEOF
16176 #define HAVE_STRUCT___RES_STATE 1
16177 _ACEOF
16183 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
16184 #include <resolv.h>
16185 #endif
16187 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
16189 cat >>confdefs.h <<_ACEOF
16190 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
16191 _ACEOF
16197 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
16198 #include <sys/types.h>
16199 #endif
16200 #ifdef HAVE_NETINET_IN_H
16201 # include <netinet/in.h>
16202 #endif
16203 #ifdef HAVE_ARPA_NAMESER_H
16204 # include <arpa/nameser.h>
16205 #endif
16207 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
16209 cat >>confdefs.h <<_ACEOF
16210 #define HAVE_NS_MSG__MSG_PTR 1
16211 _ACEOF
16217 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
16218 #include <sys/types.h>
16219 #endif
16220 #ifdef HAVE_NETINET_IP_H
16221 #include <netinet/ip.h>
16222 #endif
16223 #ifdef HAVE_NETINET_IP_ICMP_H
16224 #include <netinet/ip_icmp.h>
16225 #endif
16226 #ifdef HAVE_NETINET_ICMP_VAR_H
16227 #include <netinet/icmp_var.h>
16228 #endif
16230 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
16234 _ACEOF
16240 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
16241 #include <sys/types.h>
16242 #endif
16243 #ifdef HAVE_ALIAS_H
16244 #include <alias.h>
16245 #endif
16246 #ifdef HAVE_SYS_SOCKET_H
16247 #include <sys/socket.h>
16248 #endif
16249 #ifdef HAVE_SYS_SOCKETVAR_H
16250 #include <sys/socketvar.h>
16251 #endif
16252 #ifdef HAVE_SYS_TIMEOUT_H
16253 #include <sys/timeout.h>
16254 #endif
16255 #ifdef HAVE_NETINET_IN_H
16256 #include <netinet/in.h>
16257 #endif
16258 #ifdef HAVE_NETINET_IN_SYSTM_H
16259 #include <netinet/in_systm.h>
16260 #endif
16261 #ifdef HAVE_NETINET_IP_H
16262 #include <netinet/ip.h>
16263 #endif
16264 #ifdef HAVE_NETINET_IP_VAR_H
16265 #include <netinet/ip_var.h>
16266 #endif
16267 #ifdef HAVE_NETINET_IP_ICMP_H
16268 #include <netinet/ip_icmp.h>
16269 #endif
16270 #ifdef HAVE_NETINET_ICMP_VAR_H
16271 #include <netinet/icmp_var.h>
16272 #endif
16274 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
16276 cat >>confdefs.h <<_ACEOF
16277 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
16278 _ACEOF
16284 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
16285 #include <sys/types.h>
16286 #endif
16287 #ifdef HAVE_SYS_SOCKETVAR_H
16288 #include <sys/socketvar.h>
16289 #endif
16290 #ifdef HAVE_NETINET_IN_H
16291 #include <netinet/in.h>
16292 #endif
16293 #ifdef HAVE_NETINET_IP_VAR_H
16294 #include <netinet/ip_var.h>
16295 #endif
16297 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
16299 cat >>confdefs.h <<_ACEOF
16300 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
16301 _ACEOF
16307 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
16308 #include <netinet/ip_var.h>
16309 #endif
16311 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
16313 cat >>confdefs.h <<_ACEOF
16314 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
16315 _ACEOF
16321 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
16322 #include <sys/types.h>
16323 #endif
16324 #ifdef HAVE_SYS_SOCKETVAR_H
16325 #include <sys/socketvar.h>
16326 #endif
16327 #ifdef HAVE_NETINET_IN_H
16328 #include <netinet/in.h>
16329 #endif
16330 #ifdef HAVE_NETINET_TCP_H
16331 #include <netinet/tcp.h>
16332 #endif
16333 #ifdef HAVE_NETINET_TCP_VAR_H
16334 #include <netinet/tcp_var.h>
16335 #endif
16337 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
16339 cat >>confdefs.h <<_ACEOF
16340 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
16341 _ACEOF
16347 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
16348 #include <netinet/tcp_var.h>
16349 #endif
16351 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16353 cat >>confdefs.h <<_ACEOF
16354 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16355 _ACEOF
16361 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16362 #include <sys/types.h>
16363 #endif
16364 #ifdef HAVE_NETINET_IN_H
16365 #include <netinet/in.h>
16366 #endif
16367 #ifdef HAVE_NETINET_IP_VAR_H
16368 #include <netinet/ip_var.h>
16369 #endif
16370 #ifdef HAVE_NETINET_UDP_H
16371 #include <netinet/udp.h>
16372 #endif
16373 #ifdef HAVE_NETINET_UDP_VAR_H
16374 #include <netinet/udp_var.h>
16375 #endif
16377 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16379 cat >>confdefs.h <<_ACEOF
16380 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16381 _ACEOF
16387 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16388 #include <sys/types.h>
16389 #endif
16390 #ifdef HAVE_NET_IF_H
16391 # include <net/if.h>
16392 #endif
16394 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16396 cat >>confdefs.h <<_ACEOF
16397 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16398 _ACEOF
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16405 $as_echo_n "checking for timezone variable... " >&6; }
16406 if ${ac_cv_have_timezone+:} false; then :
16407 $as_echo_n "(cached) " >&6
16408 else
16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h. */
16411 #include <time.h>
16413 main ()
16415 timezone = 1
16417 return 0;
16419 _ACEOF
16420 if ac_fn_c_try_link "$LINENO"; then :
16421 ac_cv_have_timezone="yes"
16422 else
16423 ac_cv_have_timezone="no"
16425 rm -f core conftest.err conftest.$ac_objext \
16426 conftest$ac_exeext conftest.$ac_ext
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16429 $as_echo "$ac_cv_have_timezone" >&6; }
16430 if test "$ac_cv_have_timezone" = "yes"
16431 then
16433 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16437 $as_echo_n "checking for daylight variable... " >&6; }
16438 if ${ac_cv_have_daylight+:} false; then :
16439 $as_echo_n "(cached) " >&6
16440 else
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16443 #include <time.h>
16445 main ()
16447 daylight = 1
16449 return 0;
16451 _ACEOF
16452 if ac_fn_c_try_link "$LINENO"; then :
16453 ac_cv_have_daylight="yes"
16454 else
16455 ac_cv_have_daylight="no"
16457 rm -f core conftest.err conftest.$ac_objext \
16458 conftest$ac_exeext conftest.$ac_ext
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16461 $as_echo "$ac_cv_have_daylight" >&6; }
16462 if test "$ac_cv_have_daylight" = "yes"
16463 then
16465 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16469 ac_save_LIBS="$LIBS"
16470 LIBS="$LIBS -lm"
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16472 $as_echo_n "checking for isfinite... " >&6; }
16473 if ${ac_cv_have_isfinite+:} false; then :
16474 $as_echo_n "(cached) " >&6
16475 else
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16478 #define _GNU_SOURCE
16479 #include <math.h>
16481 main ()
16483 float f = 0.0; return isfinite(f)
16485 return 0;
16487 _ACEOF
16488 if ac_fn_c_try_link "$LINENO"; then :
16489 ac_cv_have_isfinite="yes"
16490 else
16491 ac_cv_have_isfinite="no"
16493 rm -f core conftest.err conftest.$ac_objext \
16494 conftest$ac_exeext conftest.$ac_ext
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16497 $as_echo "$ac_cv_have_isfinite" >&6; }
16498 if test "$ac_cv_have_isfinite" = "yes"
16499 then
16501 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16506 $as_echo_n "checking for isinf... " >&6; }
16507 if ${ac_cv_have_isinf+:} false; then :
16508 $as_echo_n "(cached) " >&6
16509 else
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16512 #include <math.h>
16514 main ()
16516 float f = 0.0; return isinf(f)
16518 return 0;
16520 _ACEOF
16521 if ac_fn_c_try_link "$LINENO"; then :
16522 ac_cv_have_isinf="yes"
16523 else
16524 ac_cv_have_isinf="no"
16526 rm -f core conftest.err conftest.$ac_objext \
16527 conftest$ac_exeext conftest.$ac_ext
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16530 $as_echo "$ac_cv_have_isinf" >&6; }
16531 if test "$ac_cv_have_isinf" = "yes"
16532 then
16534 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16539 $as_echo_n "checking for isnan... " >&6; }
16540 if ${ac_cv_have_isnan+:} false; then :
16541 $as_echo_n "(cached) " >&6
16542 else
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16545 #include <math.h>
16547 main ()
16549 float f = 0.0; return isnan(f)
16551 return 0;
16553 _ACEOF
16554 if ac_fn_c_try_link "$LINENO"; then :
16555 ac_cv_have_isnan="yes"
16556 else
16557 ac_cv_have_isnan="no"
16559 rm -f core conftest.err conftest.$ac_objext \
16560 conftest$ac_exeext conftest.$ac_ext
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16563 $as_echo "$ac_cv_have_isnan" >&6; }
16564 if test "$ac_cv_have_isnan" = "yes"
16565 then
16567 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16571 for ac_func in \
16572 cbrt \
16573 cbrtf \
16574 exp2 \
16575 exp2f \
16576 llrint \
16577 llrintf \
16578 llround \
16579 llroundf \
16580 log2 \
16581 log2f \
16582 lrint \
16583 lrintf \
16584 lround \
16585 lroundf \
16586 rint \
16587 rintf \
16588 round \
16589 roundf \
16590 trunc \
16591 truncf
16593 do :
16594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16595 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16596 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16597 cat >>confdefs.h <<_ACEOF
16598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16599 _ACEOF
16602 done
16604 LIBS="$ac_save_LIBS"
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
16607 $as_echo_n "checking for __builtin_clz... " >&6; }
16608 if ${ac_cv_have___builtin_clz+:} false; then :
16609 $as_echo_n "(cached) " >&6
16610 else
16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h. */
16615 main ()
16617 return __builtin_clz(1)
16619 return 0;
16621 _ACEOF
16622 if ac_fn_c_try_link "$LINENO"; then :
16623 ac_cv_have___builtin_clz="yes"
16624 else
16625 ac_cv_have___builtin_clz="no"
16627 rm -f core conftest.err conftest.$ac_objext \
16628 conftest$ac_exeext conftest.$ac_ext
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clz" >&5
16631 $as_echo "$ac_cv_have___builtin_clz" >&6; }
16632 if test "$ac_cv_have___builtin_clz" = "yes"
16633 then
16635 $as_echo "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
16640 case $host_cpu in
16641 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16642 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16643 if ${ac_cv_cpp_def___i386__+:} false; then :
16644 $as_echo_n "(cached) " >&6
16645 else
16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h. */
16648 #ifndef __i386__
16650 #endif
16651 _ACEOF
16652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16653 $EGREP "yes" >/dev/null 2>&1; then :
16654 ac_cv_cpp_def___i386__=yes
16655 else
16656 ac_cv_cpp_def___i386__=no
16658 rm -f conftest*
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16662 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16663 if test "x$ac_cv_cpp_def___i386__" = xyes; then :
16664 CFLAGS="$CFLAGS -D__i386__"
16665 LINTFLAGS="$LINTFLAGS -D__i386__"
16666 fi ;;
16667 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16668 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16669 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16670 $as_echo_n "(cached) " >&6
16671 else
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16674 #ifndef __x86_64__
16676 #endif
16677 _ACEOF
16678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16679 $EGREP "yes" >/dev/null 2>&1; then :
16680 ac_cv_cpp_def___x86_64__=yes
16681 else
16682 ac_cv_cpp_def___x86_64__=no
16684 rm -f conftest*
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16688 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16689 if test "x$ac_cv_cpp_def___x86_64__" = xyes; then :
16690 CFLAGS="$CFLAGS -D__x86_64__"
16691 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16692 fi ;;
16693 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16694 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16695 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16696 $as_echo_n "(cached) " >&6
16697 else
16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16700 #ifndef __sparc64__
16702 #endif
16703 _ACEOF
16704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16705 $EGREP "yes" >/dev/null 2>&1; then :
16706 ac_cv_cpp_def___sparc64__=yes
16707 else
16708 ac_cv_cpp_def___sparc64__=no
16710 rm -f conftest*
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16714 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16715 if test "x$ac_cv_cpp_def___sparc64__" = xyes; then :
16716 CFLAGS="$CFLAGS -D__sparc64__"
16717 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16718 fi ;;
16719 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16720 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16721 if ${ac_cv_cpp_def___sparc__+:} false; then :
16722 $as_echo_n "(cached) " >&6
16723 else
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726 #ifndef __sparc__
16728 #endif
16729 _ACEOF
16730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16731 $EGREP "yes" >/dev/null 2>&1; then :
16732 ac_cv_cpp_def___sparc__=yes
16733 else
16734 ac_cv_cpp_def___sparc__=no
16736 rm -f conftest*
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16740 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16741 if test "x$ac_cv_cpp_def___sparc__" = xyes; then :
16742 CFLAGS="$CFLAGS -D__sparc__"
16743 LINTFLAGS="$LINTFLAGS -D__sparc__"
16744 fi ;;
16745 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16746 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16747 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16748 $as_echo_n "(cached) " >&6
16749 else
16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751 /* end confdefs.h. */
16752 #ifndef __powerpc64__
16754 #endif
16755 _ACEOF
16756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16757 $EGREP "yes" >/dev/null 2>&1; then :
16758 ac_cv_cpp_def___powerpc64__=yes
16759 else
16760 ac_cv_cpp_def___powerpc64__=no
16762 rm -f conftest*
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16766 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16767 if test "x$ac_cv_cpp_def___powerpc64__" = xyes; then :
16768 CFLAGS="$CFLAGS -D__powerpc64__"
16769 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16770 fi ;;
16771 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16772 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16773 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16774 $as_echo_n "(cached) " >&6
16775 else
16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16778 #ifndef __powerpc__
16780 #endif
16781 _ACEOF
16782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16783 $EGREP "yes" >/dev/null 2>&1; then :
16784 ac_cv_cpp_def___powerpc__=yes
16785 else
16786 ac_cv_cpp_def___powerpc__=no
16788 rm -f conftest*
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16792 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16793 if test "x$ac_cv_cpp_def___powerpc__" = xyes; then :
16794 CFLAGS="$CFLAGS -D__powerpc__"
16795 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16796 fi ;;
16797 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16798 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16799 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16800 $as_echo_n "(cached) " >&6
16801 else
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16804 #ifndef __aarch64__
16806 #endif
16807 _ACEOF
16808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16809 $EGREP "yes" >/dev/null 2>&1; then :
16810 ac_cv_cpp_def___aarch64__=yes
16811 else
16812 ac_cv_cpp_def___aarch64__=no
16814 rm -f conftest*
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16818 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16819 if test "x$ac_cv_cpp_def___aarch64__" = xyes; then :
16820 CFLAGS="$CFLAGS -D__aarch64__"
16821 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16822 fi ;;
16823 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16824 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16825 if ${ac_cv_cpp_def___arm__+:} false; then :
16826 $as_echo_n "(cached) " >&6
16827 else
16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h. */
16830 #ifndef __arm__
16832 #endif
16833 _ACEOF
16834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16835 $EGREP "yes" >/dev/null 2>&1; then :
16836 ac_cv_cpp_def___arm__=yes
16837 else
16838 ac_cv_cpp_def___arm__=no
16840 rm -f conftest*
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16844 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16845 if test "x$ac_cv_cpp_def___arm__" = xyes; then :
16846 CFLAGS="$CFLAGS -D__arm__"
16847 LINTFLAGS="$LINTFLAGS -D__arm__"
16848 fi ;;
16849 esac
16851 case $host_vendor in
16852 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16853 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16854 if ${ac_cv_cpp_def___sun__+:} false; then :
16855 $as_echo_n "(cached) " >&6
16856 else
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16859 #ifndef __sun__
16861 #endif
16862 _ACEOF
16863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16864 $EGREP "yes" >/dev/null 2>&1; then :
16865 ac_cv_cpp_def___sun__=yes
16866 else
16867 ac_cv_cpp_def___sun__=no
16869 rm -f conftest*
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16873 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16874 if test "x$ac_cv_cpp_def___sun__" = xyes; then :
16875 CFLAGS="$CFLAGS -D__sun__"
16876 LINTFLAGS="$LINTFLAGS -D__sun__"
16877 fi ;;
16878 esac
16884 ac_config_commands="$ac_config_commands include/stamp-h"
16886 $as_echo_n "creating Makefile rules..." >&6
16888 ALL_VARS_RULES="OPENGL_LIBS = $OPENGL_LIBS
16889 SOCKET_LIBS = $SOCKET_LIBS
16890 COREFOUNDATION_LIBS = $COREFOUNDATION_LIBS
16891 IOKIT_LIBS = $IOKIT_LIBS
16892 FORCEFEEDBACK_LIBS = $FORCEFEEDBACK_LIBS
16893 APPLICATIONSERVICES_LIBS = $APPLICATIONSERVICES_LIBS
16894 CORESERVICES_LIBS = $CORESERVICES_LIBS
16895 APPKIT_LIBS = $APPKIT_LIBS
16896 DISKARBITRATION_LIBS = $DISKARBITRATION_LIBS
16897 SECURITY_LIBS = $SECURITY_LIBS
16898 COREAUDIO_LIBS = $COREAUDIO_LIBS
16899 OPENAL_LIBS = $OPENAL_LIBS
16900 OPENCL_LIBS = $OPENCL_LIBS
16901 QUICKTIME_LIBS = $QUICKTIME_LIBS
16902 CARBON_LIBS = $CARBON_LIBS
16903 PTHREAD_LIBS = $PTHREAD_LIBS
16904 X_CFLAGS = $X_CFLAGS
16905 X_PRE_LIBS = $X_PRE_LIBS
16906 X_LIBS = $X_LIBS
16907 X_EXTRA_LIBS = $X_EXTRA_LIBS
16908 XML2_CFLAGS = $XML2_CFLAGS
16909 XML2_LIBS = $XML2_LIBS
16910 XSLT_CFLAGS = $XSLT_CFLAGS
16911 XSLT_LIBS = $XSLT_LIBS
16912 DBUS_CFLAGS = $DBUS_CFLAGS
16913 DBUS_LIBS = $DBUS_LIBS
16914 HAL_CFLAGS = $HAL_CFLAGS
16915 HAL_LIBS = $HAL_LIBS
16916 GNUTLS_CFLAGS = $GNUTLS_CFLAGS
16917 GNUTLS_LIBS = $GNUTLS_LIBS
16918 SANE_CFLAGS = $SANE_CFLAGS
16919 SANE_LIBS = $SANE_LIBS
16920 GPHOTO2_CFLAGS = $GPHOTO2_CFLAGS
16921 GPHOTO2_LIBS = $GPHOTO2_LIBS
16922 GPHOTO2_PORT_CFLAGS = $GPHOTO2_PORT_CFLAGS
16923 GPHOTO2_PORT_LIBS = $GPHOTO2_PORT_LIBS
16924 RESOLV_LIBS = $RESOLV_LIBS
16925 LCMS2_CFLAGS = $LCMS2_CFLAGS
16926 LCMS2_LIBS = $LCMS2_LIBS
16927 FREETYPE_CFLAGS = $FREETYPE_CFLAGS
16928 FREETYPE_LIBS = $FREETYPE_LIBS
16929 Z_LIBS = $Z_LIBS
16930 GETTEXTPO_LIBS = $GETTEXTPO_LIBS
16931 GSTREAMER_CFLAGS = $GSTREAMER_CFLAGS
16932 GSTREAMER_LIBS = $GSTREAMER_LIBS
16933 ALSA_LIBS = $ALSA_LIBS
16934 OSS4_CFLAGS = $OSS4_CFLAGS
16935 CAPI20_CFLAGS = $CAPI20_CFLAGS
16936 CAPI20_LIBS = $CAPI20_LIBS
16937 CUPS_CFLAGS = $CUPS_CFLAGS
16938 FONTCONFIG_CFLAGS = $FONTCONFIG_CFLAGS
16939 FONTCONFIG_LIBS = $FONTCONFIG_LIBS
16940 JPEG_CFLAGS = $JPEG_CFLAGS
16941 JPEG_LIBS = $JPEG_LIBS
16942 PNG_CFLAGS = $PNG_CFLAGS
16943 PNG_LIBS = $PNG_LIBS
16944 TIFF_CFLAGS = $TIFF_CFLAGS
16945 TIFF_LIBS = $TIFF_LIBS
16946 MPG123_CFLAGS = $MPG123_CFLAGS
16947 MPG123_LIBS = $MPG123_LIBS
16948 KSTAT_LIBS = $KSTAT_LIBS
16949 PROCSTAT_LIBS = $PROCSTAT_LIBS
16950 DL_LIBS = $DL_LIBS
16951 POLL_LIBS = $POLL_LIBS
16952 RT_LIBS = $RT_LIBS
16953 LDAP_LIBS = $LDAP_LIBS
16958 wine_fn_append_rule "
16959 # Rules automatically generated by configure
16961 CLEAN_FILES = *.o *.a *.so *.res *.fake *.ok *.tab.[ch] *.yy.c
16963 .INIT: Makefile
16964 .MAKEFILEDEPS:
16965 all: Makefile
16966 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
16967 @./config.status Make.tmp Makefile"
16969 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16970 .gitignore: config.status
16971 @./config.status .gitignore"
16973 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16974 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16976 if test "x$enable_fonts" != xno; then
16977 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16978 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16979 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16980 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16981 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16983 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16984 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16985 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16986 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16987 ac_config_links="$ac_config_links wine:tools/winewrapper"
16988 wine_fn_config_symlink wine
16989 if test "x$enable_win64" != xno; then
16990 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16991 wine_fn_config_symlink wine64
16994 wine_fn_config_dll acledit enable_acledit
16995 wine_fn_config_dll aclui enable_aclui implib
16996 wine_fn_config_dll activeds enable_activeds implib
16997 wine_fn_config_dll actxprxy enable_actxprxy clean
16998 wine_fn_config_lib adsiid
16999 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
17000 wine_fn_config_test dlls/advapi32/tests advapi32_test
17001 wine_fn_config_dll advpack enable_advpack implib
17002 wine_fn_config_test dlls/advpack/tests advpack_test
17003 wine_fn_config_dll amstream enable_amstream clean
17004 wine_fn_config_test dlls/amstream/tests amstream_test
17005 wine_fn_config_dll api-ms-win-core-com-l1-1-0 enable_api_ms_win_core_com_l1_1_0
17006 wine_fn_config_dll api-ms-win-core-console-l1-1-0 enable_api_ms_win_core_console_l1_1_0
17007 wine_fn_config_dll api-ms-win-core-datetime-l1-1-0 enable_api_ms_win_core_datetime_l1_1_0
17008 wine_fn_config_dll api-ms-win-core-datetime-l1-1-1 enable_api_ms_win_core_datetime_l1_1_1
17009 wine_fn_config_dll api-ms-win-core-debug-l1-1-0 enable_api_ms_win_core_debug_l1_1_0
17010 wine_fn_config_dll api-ms-win-core-debug-l1-1-1 enable_api_ms_win_core_debug_l1_1_1
17011 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-0 enable_api_ms_win_core_errorhandling_l1_1_0
17012 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-1 enable_api_ms_win_core_errorhandling_l1_1_1
17013 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-2 enable_api_ms_win_core_errorhandling_l1_1_2
17014 wine_fn_config_dll api-ms-win-core-fibers-l1-1-0 enable_api_ms_win_core_fibers_l1_1_0
17015 wine_fn_config_dll api-ms-win-core-fibers-l1-1-1 enable_api_ms_win_core_fibers_l1_1_1
17016 wine_fn_config_dll api-ms-win-core-file-l1-1-0 enable_api_ms_win_core_file_l1_1_0
17017 wine_fn_config_dll api-ms-win-core-file-l1-2-0 enable_api_ms_win_core_file_l1_2_0
17018 wine_fn_config_dll api-ms-win-core-file-l2-1-0 enable_api_ms_win_core_file_l2_1_0
17019 wine_fn_config_dll api-ms-win-core-file-l2-1-1 enable_api_ms_win_core_file_l2_1_1
17020 wine_fn_config_dll api-ms-win-core-handle-l1-1-0 enable_api_ms_win_core_handle_l1_1_0
17021 wine_fn_config_dll api-ms-win-core-heap-l1-1-0 enable_api_ms_win_core_heap_l1_1_0
17022 wine_fn_config_dll api-ms-win-core-heap-l1-2-0 enable_api_ms_win_core_heap_l1_2_0
17023 wine_fn_config_dll api-ms-win-core-heap-obsolete-l1-1-0 enable_api_ms_win_core_heap_obsolete_l1_1_0
17024 wine_fn_config_dll api-ms-win-core-interlocked-l1-1-0 enable_api_ms_win_core_interlocked_l1_1_0
17025 wine_fn_config_dll api-ms-win-core-interlocked-l1-2-0 enable_api_ms_win_core_interlocked_l1_2_0
17026 wine_fn_config_dll api-ms-win-core-io-l1-1-1 enable_api_ms_win_core_io_l1_1_1
17027 wine_fn_config_dll api-ms-win-core-kernel32-legacy-l1-1-0 enable_api_ms_win_core_kernel32_legacy_l1_1_0
17028 wine_fn_config_dll api-ms-win-core-libraryloader-l1-1-0 enable_api_ms_win_core_libraryloader_l1_1_0
17029 wine_fn_config_dll api-ms-win-core-libraryloader-l1-1-1 enable_api_ms_win_core_libraryloader_l1_1_1
17030 wine_fn_config_dll api-ms-win-core-localization-l1-2-0 enable_api_ms_win_core_localization_l1_2_0
17031 wine_fn_config_dll api-ms-win-core-localization-l1-2-1 enable_api_ms_win_core_localization_l1_2_1
17032 wine_fn_config_dll api-ms-win-core-localization-obsolete-l1-1-0 enable_api_ms_win_core_localization_obsolete_l1_1_0
17033 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
17034 wine_fn_config_dll api-ms-win-core-memory-l1-1-0 enable_api_ms_win_core_memory_l1_1_0
17035 wine_fn_config_dll api-ms-win-core-memory-l1-1-1 enable_api_ms_win_core_memory_l1_1_1
17036 wine_fn_config_dll api-ms-win-core-namedpipe-l1-1-0 enable_api_ms_win_core_namedpipe_l1_1_0
17037 wine_fn_config_dll api-ms-win-core-namedpipe-l1-2-0 enable_api_ms_win_core_namedpipe_l1_2_0
17038 wine_fn_config_dll api-ms-win-core-processenvironment-l1-1-0 enable_api_ms_win_core_processenvironment_l1_1_0
17039 wine_fn_config_dll api-ms-win-core-processenvironment-l1-2-0 enable_api_ms_win_core_processenvironment_l1_2_0
17040 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
17041 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-1 enable_api_ms_win_core_processthreads_l1_1_1
17042 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-2 enable_api_ms_win_core_processthreads_l1_1_2
17043 wine_fn_config_dll api-ms-win-core-profile-l1-1-0 enable_api_ms_win_core_profile_l1_1_0
17044 wine_fn_config_dll api-ms-win-core-psapi-l1-1-0 enable_api_ms_win_core_psapi_l1_1_0
17045 wine_fn_config_dll api-ms-win-core-registry-l1-1-0 enable_api_ms_win_core_registry_l1_1_0
17046 wine_fn_config_dll api-ms-win-core-rtlsupport-l1-1-0 enable_api_ms_win_core_rtlsupport_l1_1_0
17047 wine_fn_config_dll api-ms-win-core-rtlsupport-l1-2-0 enable_api_ms_win_core_rtlsupport_l1_2_0
17048 wine_fn_config_dll api-ms-win-core-shlwapi-legacy-l1-1-0 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
17049 wine_fn_config_dll api-ms-win-core-string-l1-1-0 enable_api_ms_win_core_string_l1_1_0
17050 wine_fn_config_dll api-ms-win-core-synch-l1-1-0 enable_api_ms_win_core_synch_l1_1_0
17051 wine_fn_config_dll api-ms-win-core-synch-l1-2-0 enable_api_ms_win_core_synch_l1_2_0
17052 wine_fn_config_dll api-ms-win-core-sysinfo-l1-1-0 enable_api_ms_win_core_sysinfo_l1_1_0
17053 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-0 enable_api_ms_win_core_sysinfo_l1_2_0
17054 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-1 enable_api_ms_win_core_sysinfo_l1_2_1
17055 wine_fn_config_dll api-ms-win-core-threadpool-legacy-l1-1-0 enable_api_ms_win_core_threadpool_legacy_l1_1_0
17056 wine_fn_config_dll api-ms-win-core-timezone-l1-1-0 enable_api_ms_win_core_timezone_l1_1_0
17057 wine_fn_config_dll api-ms-win-core-url-l1-1-0 enable_api_ms_win_core_url_l1_1_0
17058 wine_fn_config_dll api-ms-win-core-util-l1-1-0 enable_api_ms_win_core_util_l1_1_0
17059 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
17060 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-1 enable_api_ms_win_core_winrt_error_l1_1_1
17061 wine_fn_config_dll api-ms-win-core-winrt-l1-1-0 enable_api_ms_win_core_winrt_l1_1_0
17062 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
17063 wine_fn_config_dll api-ms-win-core-xstate-l2-1-0 enable_api_ms_win_core_xstate_l2_1_0
17064 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
17065 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
17066 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
17067 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
17068 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
17069 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
17070 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
17071 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
17072 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
17073 wine_fn_config_dll api-ms-win-eventing-provider-l1-1-0 enable_api_ms_win_eventing_provider_l1_1_0
17074 wine_fn_config_dll api-ms-win-ntuser-dc-access-l1-1-0 enable_api_ms_win_ntuser_dc_access_l1_1_0
17075 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
17076 wine_fn_config_dll api-ms-win-security-base-l1-2-0 enable_api_ms_win_security_base_l1_2_0
17077 wine_fn_config_dll api-ms-win-security-sddl-l1-1-0 enable_api_ms_win_security_sddl_l1_1_0
17078 wine_fn_config_dll api-ms-win-service-core-l1-1-1 enable_api_ms_win_service_core_l1_1_1
17079 wine_fn_config_dll api-ms-win-service-management-l1-1-0 enable_api_ms_win_service_management_l1_1_0
17080 wine_fn_config_dll api-ms-win-service-winsvc-l1-2-0 enable_api_ms_win_service_winsvc_l1_2_0
17081 wine_fn_config_dll apphelp enable_apphelp
17082 wine_fn_config_test dlls/apphelp/tests apphelp_test
17083 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
17084 wine_fn_config_dll atl enable_atl clean,implib
17085 wine_fn_config_test dlls/atl/tests atl_test
17086 wine_fn_config_dll atl100 enable_atl100 clean,implib
17087 wine_fn_config_test dlls/atl100/tests atl100_test
17088 wine_fn_config_dll atl110 enable_atl110 clean
17089 wine_fn_config_dll atl80 enable_atl80 clean,implib
17090 wine_fn_config_test dlls/atl80/tests atl80_test
17091 wine_fn_config_dll atl90 enable_atl90 clean
17092 wine_fn_config_dll authz enable_authz
17093 wine_fn_config_dll avicap32 enable_avicap32 implib
17094 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
17095 wine_fn_config_test dlls/avifil32/tests avifil32_test
17096 wine_fn_config_dll avifile.dll16 enable_win16
17097 wine_fn_config_dll avrt enable_avrt implib
17098 wine_fn_config_dll bcrypt enable_bcrypt
17099 wine_fn_config_test dlls/bcrypt/tests bcrypt_test
17100 wine_fn_config_dll browseui enable_browseui clean,po
17101 wine_fn_config_test dlls/browseui/tests browseui_test
17102 wine_fn_config_dll cabinet enable_cabinet implib
17103 wine_fn_config_test dlls/cabinet/tests cabinet_test
17104 wine_fn_config_dll capi2032 enable_capi2032 implib
17105 wine_fn_config_dll cards enable_cards implib
17106 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
17107 wine_fn_config_dll clusapi enable_clusapi implib
17108 wine_fn_config_dll combase enable_combase
17109 wine_fn_config_test dlls/combase/tests combase_test
17110 wine_fn_config_dll comcat enable_comcat
17111 wine_fn_config_test dlls/comcat/tests comcat_test
17112 wine_fn_config_dll comctl32 enable_comctl32 implib,po
17113 wine_fn_config_test dlls/comctl32/tests comctl32_test
17114 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
17115 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
17116 wine_fn_config_dll comm.drv16 enable_win16
17117 wine_fn_config_dll commdlg.dll16 enable_win16
17118 wine_fn_config_dll compobj.dll16 enable_win16
17119 wine_fn_config_dll compstui enable_compstui implib
17120 wine_fn_config_dll comsvcs enable_comsvcs implib
17121 wine_fn_config_dll connect enable_connect
17122 wine_fn_config_dll credui enable_credui implib,po
17123 wine_fn_config_test dlls/credui/tests credui_test
17124 wine_fn_config_dll crtdll enable_crtdll implib
17125 wine_fn_config_dll crypt32 enable_crypt32 implib,po
17126 wine_fn_config_test dlls/crypt32/tests crypt32_test
17127 wine_fn_config_dll cryptdlg enable_cryptdlg po
17128 wine_fn_config_dll cryptdll enable_cryptdll implib
17129 wine_fn_config_dll cryptext enable_cryptext
17130 wine_fn_config_dll cryptnet enable_cryptnet implib
17131 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
17132 wine_fn_config_dll cryptui enable_cryptui implib,po
17133 wine_fn_config_test dlls/cryptui/tests cryptui_test
17134 wine_fn_config_dll ctapi32 enable_ctapi32
17135 wine_fn_config_dll ctl3d.dll16 enable_win16
17136 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
17137 wine_fn_config_dll ctl3dv2.dll16 enable_win16
17138 wine_fn_config_dll d2d1 enable_d2d1 implib
17139 wine_fn_config_test dlls/d2d1/tests d2d1_test
17140 wine_fn_config_dll d3d10 enable_d3d10 implib
17141 wine_fn_config_test dlls/d3d10/tests d3d10_test
17142 wine_fn_config_dll d3d10_1 enable_d3d10_1 implib
17143 wine_fn_config_dll d3d10core enable_d3d10core implib
17144 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
17145 wine_fn_config_dll d3d11 enable_d3d11
17146 wine_fn_config_dll d3d8 enable_d3d8 implib
17147 wine_fn_config_test dlls/d3d8/tests d3d8_test
17148 wine_fn_config_dll d3d9 enable_d3d9 implib
17149 wine_fn_config_test dlls/d3d9/tests d3d9_test
17150 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
17151 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
17152 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
17153 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
17154 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
17155 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
17156 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
17157 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
17158 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
17159 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
17160 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
17161 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
17162 wine_fn_config_dll d3dim enable_d3dim implib
17163 wine_fn_config_dll d3drm enable_d3drm implib
17164 wine_fn_config_test dlls/d3drm/tests d3drm_test
17165 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
17166 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
17167 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
17168 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
17169 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
17170 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
17171 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
17172 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
17173 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
17174 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
17175 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
17176 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
17177 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
17178 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
17179 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
17180 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
17181 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
17182 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
17183 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
17184 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
17185 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
17186 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
17187 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
17188 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
17189 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
17190 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
17191 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
17192 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
17193 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
17194 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
17195 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
17196 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
17197 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
17198 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
17199 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
17200 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
17201 wine_fn_config_dll dbgeng enable_dbgeng implib
17202 wine_fn_config_dll dbghelp enable_dbghelp implib
17203 wine_fn_config_dll dciman32 enable_dciman32 implib
17204 wine_fn_config_dll ddeml.dll16 enable_win16
17205 wine_fn_config_dll ddraw enable_ddraw clean,implib
17206 wine_fn_config_test dlls/ddraw/tests ddraw_test
17207 wine_fn_config_dll ddrawex enable_ddrawex clean
17208 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
17209 wine_fn_config_dll devenum enable_devenum clean,po
17210 wine_fn_config_test dlls/devenum/tests devenum_test
17211 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
17212 wine_fn_config_dll difxapi enable_difxapi
17213 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
17214 wine_fn_config_test dlls/dinput/tests dinput_test
17215 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
17216 wine_fn_config_test dlls/dinput8/tests dinput8_test
17217 wine_fn_config_dll dispdib.dll16 enable_win16
17218 wine_fn_config_dll dispex enable_dispex clean
17219 wine_fn_config_test dlls/dispex/tests dispex_test
17220 wine_fn_config_dll display.drv16 enable_win16
17221 wine_fn_config_dll dmband enable_dmband clean
17222 wine_fn_config_test dlls/dmband/tests dmband_test
17223 wine_fn_config_dll dmcompos enable_dmcompos clean
17224 wine_fn_config_test dlls/dmcompos/tests dmcompos_test
17225 wine_fn_config_dll dmime enable_dmime clean
17226 wine_fn_config_test dlls/dmime/tests dmime_test
17227 wine_fn_config_dll dmloader enable_dmloader clean
17228 wine_fn_config_test dlls/dmloader/tests dmloader_test
17229 wine_fn_config_dll dmscript enable_dmscript clean
17230 wine_fn_config_test dlls/dmscript/tests dmscript_test
17231 wine_fn_config_dll dmstyle enable_dmstyle clean
17232 wine_fn_config_test dlls/dmstyle/tests dmstyle_test
17233 wine_fn_config_dll dmsynth enable_dmsynth clean
17234 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
17235 wine_fn_config_dll dmusic enable_dmusic clean
17236 wine_fn_config_test dlls/dmusic/tests dmusic_test
17237 wine_fn_config_dll dmusic32 enable_dmusic32 implib
17238 wine_fn_config_dll dnsapi enable_dnsapi implib
17239 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
17240 wine_fn_config_dll dplay enable_dplay implib
17241 wine_fn_config_dll dplayx enable_dplayx clean,implib
17242 wine_fn_config_test dlls/dplayx/tests dplayx_test
17243 wine_fn_config_dll dpnaddr enable_dpnaddr
17244 wine_fn_config_dll dpnet enable_dpnet clean,implib
17245 wine_fn_config_test dlls/dpnet/tests dpnet_test
17246 wine_fn_config_dll dpnhpast enable_dpnhpast
17247 wine_fn_config_dll dpnlobby enable_dpnlobby
17248 wine_fn_config_dll dpvoice enable_dpvoice clean
17249 wine_fn_config_test dlls/dpvoice/tests dpvoice_test
17250 wine_fn_config_dll dpwsockx enable_dpwsockx
17251 wine_fn_config_dll drmclien enable_drmclien
17252 wine_fn_config_dll dsound enable_dsound clean,implib
17253 wine_fn_config_test dlls/dsound/tests dsound_test
17254 wine_fn_config_dll dssenh enable_dssenh
17255 wine_fn_config_test dlls/dssenh/tests dssenh_test
17256 wine_fn_config_dll dswave enable_dswave clean
17257 wine_fn_config_test dlls/dswave/tests dswave_test
17258 wine_fn_config_dll dwmapi enable_dwmapi implib
17259 wine_fn_config_dll dwrite enable_dwrite implib
17260 wine_fn_config_test dlls/dwrite/tests dwrite_test
17261 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
17262 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
17263 wine_fn_config_lib dxerr8
17264 wine_fn_config_lib dxerr9
17265 wine_fn_config_dll dxgi enable_dxgi implib
17266 wine_fn_config_test dlls/dxgi/tests dxgi_test
17267 wine_fn_config_lib dxguid
17268 wine_fn_config_dll dxva2 enable_dxva2
17269 wine_fn_config_dll evr enable_evr
17270 wine_fn_config_dll explorerframe enable_explorerframe clean
17271 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
17272 wine_fn_config_dll ext-ms-win-gdi-devcaps-l1-1-0 enable_ext_ms_win_gdi_devcaps_l1_1_0
17273 wine_fn_config_dll faultrep enable_faultrep implib
17274 wine_fn_config_test dlls/faultrep/tests faultrep_test
17275 wine_fn_config_dll fltlib enable_fltlib
17276 wine_fn_config_dll fntcache enable_fntcache
17277 wine_fn_config_dll fontsub enable_fontsub
17278 wine_fn_config_dll fusion enable_fusion
17279 wine_fn_config_test dlls/fusion/tests fusion_test
17280 wine_fn_config_dll fwpuclnt enable_fwpuclnt
17281 wine_fn_config_dll gameux enable_gameux clean
17282 wine_fn_config_test dlls/gameux/tests gameux_test
17283 wine_fn_config_dll gdi.exe16 enable_win16
17284 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
17285 wine_fn_config_test dlls/gdi32/tests gdi32_test
17286 wine_fn_config_dll gdiplus enable_gdiplus implib
17287 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
17288 wine_fn_config_dll glu32 enable_glu32 implib
17289 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
17290 wine_fn_config_dll gpkcsp enable_gpkcsp
17291 wine_fn_config_dll hal enable_hal
17292 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
17293 wine_fn_config_dll hid enable_hid implib
17294 wine_fn_config_dll hlink enable_hlink clean,implib
17295 wine_fn_config_test dlls/hlink/tests hlink_test
17296 wine_fn_config_dll hnetcfg enable_hnetcfg clean
17297 wine_fn_config_dll httpapi enable_httpapi
17298 wine_fn_config_dll iccvid enable_iccvid po
17299 wine_fn_config_dll icmp enable_icmp
17300 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
17301 wine_fn_config_test dlls/ieframe/tests ieframe_test
17302 wine_fn_config_dll ifsmgr.vxd enable_win16
17303 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
17304 wine_fn_config_dll imagehlp enable_imagehlp implib
17305 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
17306 wine_fn_config_dll imm.dll16 enable_win16
17307 wine_fn_config_dll imm32 enable_imm32 implib
17308 wine_fn_config_test dlls/imm32/tests imm32_test
17309 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
17310 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
17311 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
17312 wine_fn_config_dll inetmib1 enable_inetmib1
17313 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
17314 wine_fn_config_dll infosoft enable_infosoft clean
17315 wine_fn_config_test dlls/infosoft/tests infosoft_test
17316 wine_fn_config_dll initpki enable_initpki
17317 wine_fn_config_dll inkobj enable_inkobj
17318 wine_fn_config_dll inseng enable_inseng clean
17319 wine_fn_config_dll iphlpapi enable_iphlpapi implib
17320 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
17321 wine_fn_config_dll itircl enable_itircl
17322 wine_fn_config_dll itss enable_itss clean
17323 wine_fn_config_test dlls/itss/tests itss_test
17324 wine_fn_config_dll joy.cpl enable_joy_cpl po
17325 wine_fn_config_dll jscript enable_jscript clean,po
17326 wine_fn_config_test dlls/jscript/tests jscript_test
17327 wine_fn_config_dll jsproxy enable_jsproxy implib
17328 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
17329 wine_fn_config_test dlls/kernel32/tests kernel32_test
17330 wine_fn_config_dll keyboard.drv16 enable_win16
17331 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
17332 wine_fn_config_dll ksuser enable_ksuser
17333 wine_fn_config_dll ktmw32 enable_ktmw32
17334 wine_fn_config_dll loadperf enable_loadperf implib
17335 wine_fn_config_dll localspl enable_localspl po
17336 wine_fn_config_test dlls/localspl/tests localspl_test
17337 wine_fn_config_dll localui enable_localui po
17338 wine_fn_config_test dlls/localui/tests localui_test
17339 wine_fn_config_dll lz32 enable_lz32 implib
17340 wine_fn_config_test dlls/lz32/tests lz32_test
17341 wine_fn_config_dll lzexpand.dll16 enable_win16
17342 wine_fn_config_dll mapi32 enable_mapi32 implib,po
17343 wine_fn_config_test dlls/mapi32/tests mapi32_test
17344 wine_fn_config_dll mapistub enable_mapistub
17345 wine_fn_config_dll mciavi32 enable_mciavi32
17346 wine_fn_config_dll mcicda enable_mcicda
17347 wine_fn_config_dll mciqtz32 enable_mciqtz32
17348 wine_fn_config_dll mciseq enable_mciseq
17349 wine_fn_config_dll mciwave enable_mciwave
17350 wine_fn_config_dll mf enable_mf
17351 wine_fn_config_dll mfplat enable_mfplat
17352 wine_fn_config_dll mfreadwrite enable_mfreadwrite
17353 wine_fn_config_dll mgmtapi enable_mgmtapi
17354 wine_fn_config_dll midimap enable_midimap
17355 wine_fn_config_dll mlang enable_mlang clean,implib
17356 wine_fn_config_test dlls/mlang/tests mlang_test
17357 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
17358 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
17359 wine_fn_config_dll mmdevapi enable_mmdevapi clean
17360 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
17361 wine_fn_config_dll mmdevldr.vxd enable_win16
17362 wine_fn_config_dll mmsystem.dll16 enable_win16
17363 wine_fn_config_dll monodebg.vxd enable_win16
17364 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
17365 wine_fn_config_dll mouse.drv16 enable_win16
17366 wine_fn_config_dll mpr enable_mpr implib,po
17367 wine_fn_config_test dlls/mpr/tests mpr_test
17368 wine_fn_config_dll mprapi enable_mprapi implib
17369 wine_fn_config_dll msacm.dll16 enable_win16
17370 wine_fn_config_dll msacm32.drv enable_msacm32_drv
17371 wine_fn_config_dll msacm32 enable_msacm32 implib,po
17372 wine_fn_config_test dlls/msacm32/tests msacm32_test
17373 wine_fn_config_dll msadp32.acm enable_msadp32_acm
17374 wine_fn_config_dll msasn1 enable_msasn1 implib
17375 wine_fn_config_dll mscat32 enable_mscat32
17376 wine_fn_config_dll mscms enable_mscms implib
17377 wine_fn_config_test dlls/mscms/tests mscms_test
17378 wine_fn_config_dll mscoree enable_mscoree clean
17379 wine_fn_config_test dlls/mscoree/tests mscoree_test
17380 wine_fn_config_dll msctf enable_msctf clean
17381 wine_fn_config_test dlls/msctf/tests msctf_test
17382 wine_fn_config_dll msctfp enable_msctfp clean
17383 wine_fn_config_dll msdaps enable_msdaps clean
17384 wine_fn_config_dll msdmo enable_msdmo implib
17385 wine_fn_config_test dlls/msdmo/tests msdmo_test
17386 wine_fn_config_dll msftedit enable_msftedit
17387 wine_fn_config_dll msg711.acm enable_msg711_acm
17388 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
17389 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
17390 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
17391 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
17392 wine_fn_config_dll msi enable_msi clean,implib,po
17393 wine_fn_config_test dlls/msi/tests msi_test
17394 wine_fn_config_dll msident enable_msident clean
17395 wine_fn_config_dll msimg32 enable_msimg32 implib
17396 wine_fn_config_dll msimsg enable_msimsg
17397 wine_fn_config_dll msimtf enable_msimtf clean
17398 wine_fn_config_dll msisip enable_msisip
17399 wine_fn_config_dll msisys.ocx enable_msisys_ocx
17400 wine_fn_config_dll msls31 enable_msls31
17401 wine_fn_config_dll msnet32 enable_msnet32
17402 wine_fn_config_dll mspatcha enable_mspatcha implib
17403 wine_fn_config_dll msrle32 enable_msrle32 po
17404 wine_fn_config_test dlls/msrle32/tests msrle32_test
17405 wine_fn_config_dll mssign32 enable_mssign32
17406 wine_fn_config_dll mssip32 enable_mssip32
17407 wine_fn_config_dll mstask enable_mstask clean
17408 wine_fn_config_test dlls/mstask/tests mstask_test
17409 wine_fn_config_dll msvcirt enable_msvcirt
17410 wine_fn_config_dll msvcm80 enable_msvcm80
17411 wine_fn_config_dll msvcm90 enable_msvcm90
17412 wine_fn_config_dll msvcp100 enable_msvcp100
17413 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
17414 wine_fn_config_dll msvcp110 enable_msvcp110
17415 wine_fn_config_dll msvcp120 enable_msvcp120
17416 wine_fn_config_test dlls/msvcp120/tests msvcp120_test
17417 wine_fn_config_dll msvcp120_app enable_msvcp120_app
17418 wine_fn_config_dll msvcp60 enable_msvcp60
17419 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
17420 wine_fn_config_dll msvcp70 enable_msvcp70
17421 wine_fn_config_dll msvcp71 enable_msvcp71
17422 wine_fn_config_dll msvcp80 enable_msvcp80
17423 wine_fn_config_dll msvcp90 enable_msvcp90
17424 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
17425 wine_fn_config_dll msvcr100 enable_msvcr100 implib
17426 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
17427 wine_fn_config_dll msvcr110 enable_msvcr110 implib
17428 wine_fn_config_dll msvcr120 enable_msvcr120 implib
17429 wine_fn_config_test dlls/msvcr120/tests msvcr120_test
17430 wine_fn_config_dll msvcr120_app enable_msvcr120_app
17431 wine_fn_config_dll msvcr70 enable_msvcr70 implib
17432 wine_fn_config_dll msvcr71 enable_msvcr71 implib
17433 wine_fn_config_dll msvcr80 enable_msvcr80 implib
17434 wine_fn_config_dll msvcr90 enable_msvcr90 implib
17435 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
17436 wine_fn_config_dll msvcrt enable_msvcrt implib
17437 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
17438 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
17439 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
17440 wine_fn_config_dll msvcrtd enable_msvcrtd implib
17441 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
17442 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
17443 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
17444 wine_fn_config_dll msvidc32 enable_msvidc32 po
17445 wine_fn_config_dll msvideo.dll16 enable_win16
17446 wine_fn_config_dll mswsock enable_mswsock implib
17447 wine_fn_config_dll msxml enable_msxml clean
17448 wine_fn_config_dll msxml2 enable_msxml2 clean
17449 wine_fn_config_dll msxml3 enable_msxml3 clean
17450 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
17451 wine_fn_config_dll msxml4 enable_msxml4 clean
17452 wine_fn_config_dll msxml6 enable_msxml6 clean
17453 wine_fn_config_dll nddeapi enable_nddeapi implib
17454 wine_fn_config_dll ndis.sys enable_ndis_sys
17455 wine_fn_config_dll netapi32 enable_netapi32 implib
17456 wine_fn_config_test dlls/netapi32/tests netapi32_test
17457 wine_fn_config_dll netcfgx enable_netcfgx clean
17458 wine_fn_config_test dlls/netcfgx/tests netcfgx_test
17459 wine_fn_config_dll netprofm enable_netprofm clean
17460 wine_fn_config_test dlls/netprofm/tests netprofm_test
17461 wine_fn_config_dll newdev enable_newdev implib
17462 wine_fn_config_dll normaliz enable_normaliz implib
17463 wine_fn_config_dll npmshtml enable_npmshtml
17464 wine_fn_config_dll npptools enable_npptools
17465 wine_fn_config_dll ntdll enable_ntdll implib
17466 wine_fn_config_test dlls/ntdll/tests ntdll_test
17467 wine_fn_config_dll ntdsapi enable_ntdsapi implib
17468 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
17469 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
17470 wine_fn_config_dll ntprint enable_ntprint
17471 wine_fn_config_test dlls/ntprint/tests ntprint_test
17472 wine_fn_config_dll objsel enable_objsel clean
17473 wine_fn_config_dll odbc32 enable_odbc32 implib
17474 wine_fn_config_dll odbccp32 enable_odbccp32 implib
17475 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
17476 wine_fn_config_dll odbccu32 enable_odbccu32
17477 wine_fn_config_dll ole2.dll16 enable_win16
17478 wine_fn_config_dll ole2conv.dll16 enable_win16
17479 wine_fn_config_dll ole2disp.dll16 enable_win16
17480 wine_fn_config_dll ole2nls.dll16 enable_win16
17481 wine_fn_config_dll ole2prox.dll16 enable_win16
17482 wine_fn_config_dll ole2thk.dll16 enable_win16
17483 wine_fn_config_dll ole32 enable_ole32 clean,implib
17484 wine_fn_config_test dlls/ole32/tests ole32_test
17485 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
17486 wine_fn_config_test dlls/oleacc/tests oleacc_test
17487 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
17488 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
17489 wine_fn_config_dll olecli.dll16 enable_win16
17490 wine_fn_config_dll olecli32 enable_olecli32 implib
17491 wine_fn_config_dll oledb32 enable_oledb32 clean
17492 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
17493 wine_fn_config_dll oledlg enable_oledlg implib,po
17494 wine_fn_config_test dlls/oledlg/tests oledlg_test
17495 wine_fn_config_dll olepro32 enable_olepro32 implib
17496 wine_fn_config_dll olesvr.dll16 enable_win16
17497 wine_fn_config_dll olesvr32 enable_olesvr32 implib
17498 wine_fn_config_dll olethk32 enable_olethk32
17499 wine_fn_config_dll openal32 enable_openal32
17500 wine_fn_config_dll opencl enable_opencl
17501 wine_fn_config_dll opengl32 enable_opengl32 implib
17502 wine_fn_config_test dlls/opengl32/tests opengl32_test
17503 wine_fn_config_dll packager enable_packager clean
17504 wine_fn_config_test dlls/packager/tests packager_test
17505 wine_fn_config_dll pdh enable_pdh implib
17506 wine_fn_config_test dlls/pdh/tests pdh_test
17507 wine_fn_config_dll photometadatahandler enable_photometadatahandler
17508 wine_fn_config_dll pidgen enable_pidgen
17509 wine_fn_config_dll powrprof enable_powrprof implib
17510 wine_fn_config_dll printui enable_printui
17511 wine_fn_config_dll prntvpt enable_prntvpt
17512 wine_fn_config_dll propsys enable_propsys clean,implib
17513 wine_fn_config_test dlls/propsys/tests propsys_test
17514 wine_fn_config_dll psapi enable_psapi implib
17515 wine_fn_config_test dlls/psapi/tests psapi_test
17516 wine_fn_config_dll pstorec enable_pstorec clean
17517 wine_fn_config_dll qcap enable_qcap
17518 wine_fn_config_test dlls/qcap/tests qcap_test
17519 wine_fn_config_dll qedit enable_qedit clean
17520 wine_fn_config_test dlls/qedit/tests qedit_test
17521 wine_fn_config_dll qmgr enable_qmgr clean
17522 wine_fn_config_test dlls/qmgr/tests qmgr_test
17523 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
17524 wine_fn_config_dll quartz enable_quartz clean,implib
17525 wine_fn_config_test dlls/quartz/tests quartz_test clean
17526 wine_fn_config_dll query enable_query
17527 wine_fn_config_dll rasapi16.dll16 enable_win16
17528 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17529 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17530 wine_fn_config_dll rasdlg enable_rasdlg implib
17531 wine_fn_config_dll regapi enable_regapi
17532 wine_fn_config_dll resutils enable_resutils implib
17533 wine_fn_config_dll riched20 enable_riched20 clean,implib
17534 wine_fn_config_test dlls/riched20/tests riched20_test
17535 wine_fn_config_dll riched32 enable_riched32
17536 wine_fn_config_test dlls/riched32/tests riched32_test
17537 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17538 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17539 wine_fn_config_dll rsabase enable_rsabase
17540 wine_fn_config_dll rsaenh enable_rsaenh implib
17541 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17542 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17543 wine_fn_config_dll rtutils enable_rtutils implib
17544 wine_fn_config_dll samlib enable_samlib
17545 wine_fn_config_dll sane.ds enable_sane_ds po
17546 wine_fn_config_dll scarddlg enable_scarddlg
17547 wine_fn_config_dll sccbase enable_sccbase
17548 wine_fn_config_dll schannel enable_schannel
17549 wine_fn_config_test dlls/schannel/tests schannel_test
17550 wine_fn_config_dll schedsvc enable_schedsvc clean
17551 wine_fn_config_test dlls/schedsvc/tests schedsvc_test clean
17552 wine_fn_config_dll scrrun enable_scrrun clean
17553 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17554 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17555 wine_fn_config_dll secur32 enable_secur32 implib
17556 wine_fn_config_test dlls/secur32/tests secur32_test
17557 wine_fn_config_dll security enable_security
17558 wine_fn_config_dll sensapi enable_sensapi implib
17559 wine_fn_config_dll serialui enable_serialui implib,po
17560 wine_fn_config_test dlls/serialui/tests serialui_test
17561 wine_fn_config_dll setupapi enable_setupapi implib,po
17562 wine_fn_config_test dlls/setupapi/tests setupapi_test
17563 wine_fn_config_dll setupx.dll16 enable_win16
17564 wine_fn_config_dll sfc enable_sfc implib
17565 wine_fn_config_dll sfc_os enable_sfc_os implib
17566 wine_fn_config_dll shdoclc enable_shdoclc po
17567 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17568 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17569 wine_fn_config_dll shell.dll16 enable_win16
17570 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17571 wine_fn_config_test dlls/shell32/tests shell32_test
17572 wine_fn_config_dll shfolder enable_shfolder implib
17573 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17574 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17575 wine_fn_config_dll slbcsp enable_slbcsp
17576 wine_fn_config_dll slc enable_slc implib
17577 wine_fn_config_test dlls/slc/tests slc_test
17578 wine_fn_config_dll snmpapi enable_snmpapi implib
17579 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17580 wine_fn_config_dll softpub enable_softpub
17581 wine_fn_config_dll sound.drv16 enable_win16
17582 wine_fn_config_dll spoolss enable_spoolss implib
17583 wine_fn_config_test dlls/spoolss/tests spoolss_test
17584 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17585 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17586 wine_fn_config_dll sti enable_sti clean,implib
17587 wine_fn_config_test dlls/sti/tests sti_test
17588 wine_fn_config_dll storage.dll16 enable_win16
17589 wine_fn_config_dll stress.dll16 enable_win16
17590 wine_fn_config_lib strmbase
17591 wine_fn_config_lib strmiids
17592 wine_fn_config_dll svrapi enable_svrapi
17593 wine_fn_config_dll sxs enable_sxs implib
17594 wine_fn_config_test dlls/sxs/tests sxs_test
17595 wine_fn_config_dll system.drv16 enable_win16
17596 wine_fn_config_dll t2embed enable_t2embed
17597 wine_fn_config_dll tapi32 enable_tapi32 implib
17598 wine_fn_config_dll taskschd enable_taskschd clean
17599 wine_fn_config_test dlls/taskschd/tests taskschd_test
17600 wine_fn_config_dll toolhelp.dll16 enable_win16
17601 wine_fn_config_dll traffic enable_traffic
17602 wine_fn_config_dll twain.dll16 enable_win16
17603 wine_fn_config_dll twain_32 enable_twain_32
17604 wine_fn_config_test dlls/twain_32/tests twain_32_test
17605 wine_fn_config_dll typelib.dll16 enable_win16
17606 wine_fn_config_dll unicows enable_unicows implib
17607 wine_fn_config_dll updspapi enable_updspapi
17608 wine_fn_config_dll url enable_url implib
17609 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17610 wine_fn_config_test dlls/urlmon/tests urlmon_test
17611 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17612 wine_fn_config_dll user.exe16 enable_win16
17613 wine_fn_config_dll user32 enable_user32 clean,implib,po
17614 wine_fn_config_test dlls/user32/tests user32_test
17615 wine_fn_config_dll userenv enable_userenv implib
17616 wine_fn_config_test dlls/userenv/tests userenv_test
17617 wine_fn_config_dll usp10 enable_usp10 implib
17618 wine_fn_config_test dlls/usp10/tests usp10_test
17619 wine_fn_config_lib uuid
17620 wine_fn_config_dll uxtheme enable_uxtheme implib
17621 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17622 wine_fn_config_dll vbscript enable_vbscript clean
17623 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17624 wine_fn_config_dll vcomp enable_vcomp
17625 wine_fn_config_dll vcomp100 enable_vcomp100
17626 wine_fn_config_dll vcomp90 enable_vcomp90
17627 wine_fn_config_dll vdhcp.vxd enable_win16
17628 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17629 wine_fn_config_dll ver.dll16 enable_win16
17630 wine_fn_config_dll version enable_version implib
17631 wine_fn_config_test dlls/version/tests version_test
17632 wine_fn_config_dll vmm.vxd enable_win16
17633 wine_fn_config_dll vnbt.vxd enable_win16
17634 wine_fn_config_dll vnetbios.vxd enable_win16
17635 wine_fn_config_dll vssapi enable_vssapi
17636 wine_fn_config_dll vtdapi.vxd enable_win16
17637 wine_fn_config_dll vwin32.vxd enable_win16
17638 wine_fn_config_dll w32skrnl enable_win16
17639 wine_fn_config_dll w32sys.dll16 enable_win16
17640 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17641 wine_fn_config_test dlls/wbemdisp/tests wbemdisp_test
17642 wine_fn_config_dll wbemprox enable_wbemprox clean
17643 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17644 wine_fn_config_dll webservices enable_webservices implib
17645 wine_fn_config_dll wer enable_wer implib
17646 wine_fn_config_test dlls/wer/tests wer_test
17647 wine_fn_config_dll wevtapi enable_wevtapi
17648 wine_fn_config_dll wiaservc enable_wiaservc clean
17649 wine_fn_config_dll win32s16.dll16 enable_win16
17650 wine_fn_config_dll win87em.dll16 enable_win16
17651 wine_fn_config_dll winaspi.dll16 enable_win16
17652 wine_fn_config_dll windebug.dll16 enable_win16
17653 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17654 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17655 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17656 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17657 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17658 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17659 wine_fn_config_lib winecrt0
17660 wine_fn_config_dll wined3d enable_wined3d implib
17661 wine_fn_config_dll winegstreamer enable_winegstreamer
17662 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17663 wine_fn_config_dll winemac.drv enable_winemac_drv
17664 wine_fn_config_dll winemapi enable_winemapi
17665 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17666 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17667 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17668 wine_fn_config_dll wineps16.drv16 enable_win16
17669 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17670 wine_fn_config_dll winex11.drv enable_winex11_drv
17671 wine_fn_config_dll wing.dll16 enable_win16
17672 wine_fn_config_dll wing32 enable_wing32
17673 wine_fn_config_dll winhttp enable_winhttp clean,implib
17674 wine_fn_config_test dlls/winhttp/tests winhttp_test
17675 wine_fn_config_dll wininet enable_wininet implib,po
17676 wine_fn_config_test dlls/wininet/tests wininet_test
17677 wine_fn_config_dll winmm enable_winmm implib,po
17678 wine_fn_config_test dlls/winmm/tests winmm_test
17679 wine_fn_config_dll winnls.dll16 enable_win16
17680 wine_fn_config_dll winnls32 enable_winnls32 implib
17681 wine_fn_config_dll winscard enable_winscard implib
17682 wine_fn_config_dll winsock.dll16 enable_win16
17683 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17684 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17685 wine_fn_config_dll winsta enable_winsta
17686 wine_fn_config_dll wintab.dll16 enable_win16
17687 wine_fn_config_dll wintab32 enable_wintab32 implib
17688 wine_fn_config_test dlls/wintab32/tests wintab32_test
17689 wine_fn_config_dll wintrust enable_wintrust implib
17690 wine_fn_config_test dlls/wintrust/tests wintrust_test
17691 wine_fn_config_dll wlanapi enable_wlanapi
17692 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17693 wine_fn_config_test dlls/wldap32/tests wldap32_test
17694 wine_fn_config_dll wmi enable_wmi
17695 wine_fn_config_dll wmiutils enable_wmiutils clean
17696 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17697 wine_fn_config_dll wmp enable_wmp clean
17698 wine_fn_config_test dlls/wmp/tests wmp_test
17699 wine_fn_config_dll wmvcore enable_wmvcore
17700 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17701 wine_fn_config_dll wow32 enable_win16 implib
17702 wine_fn_config_dll wpcap enable_wpcap
17703 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17704 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17705 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17706 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17707 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17708 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17709 wine_fn_config_dll wsock32 enable_wsock32 implib
17710 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17711 wine_fn_config_test dlls/wtsapi32/tests wtsapi32_test
17712 wine_fn_config_dll wuapi enable_wuapi clean
17713 wine_fn_config_dll wuaueng enable_wuaueng
17714 wine_fn_config_dll x3daudio1_1 enable_x3daudio1_1
17715 wine_fn_config_dll x3daudio1_2 enable_x3daudio1_2
17716 wine_fn_config_dll x3daudio1_3 enable_x3daudio1_3
17717 wine_fn_config_dll x3daudio1_4 enable_x3daudio1_4
17718 wine_fn_config_dll x3daudio1_5 enable_x3daudio1_5
17719 wine_fn_config_dll x3daudio1_6 enable_x3daudio1_6
17720 wine_fn_config_dll x3daudio1_7 enable_x3daudio1_7
17721 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17722 wine_fn_config_dll xapofx1_3 enable_xapofx1_3
17723 wine_fn_config_dll xapofx1_4 enable_xapofx1_4
17724 wine_fn_config_dll xapofx1_5 enable_xapofx1_5
17725 wine_fn_config_dll xaudio2_7 enable_xaudio2_7
17726 wine_fn_config_dll xinput1_1 enable_xinput1_1
17727 wine_fn_config_dll xinput1_2 enable_xinput1_2
17728 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17729 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17730 wine_fn_config_dll xinput1_4 enable_xinput1_4
17731 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17732 wine_fn_config_dll xmllite enable_xmllite implib
17733 wine_fn_config_test dlls/xmllite/tests xmllite_test
17734 wine_fn_config_dll xolehlp enable_xolehlp
17735 wine_fn_config_dll xpsprint enable_xpsprint
17736 wine_fn_config_dll xpssvcs enable_xpssvcs
17737 wine_fn_config_makefile documentation enable_documentation clean
17738 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17739 wine_fn_config_makefile include enable_include clean,install-dev
17740 wine_fn_config_makefile libs/port enable_libs_port
17741 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17742 wine_fn_config_makefile libs/wpp enable_libs_wpp
17743 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17744 wine_fn_config_program arp enable_arp install
17745 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17746 wine_fn_config_program attrib enable_attrib install,po
17747 wine_fn_config_program cabarc enable_cabarc install
17748 wine_fn_config_program cacls enable_cacls install
17749 wine_fn_config_program clock enable_clock install,po
17750 wine_fn_config_program cmd enable_cmd install,po
17751 wine_fn_config_test programs/cmd/tests cmd.exe_test
17752 wine_fn_config_program conhost enable_conhost install
17753 wine_fn_config_program control enable_control install
17754 wine_fn_config_program cscript enable_cscript clean,install
17755 wine_fn_config_program dpnsvr enable_dpnsvr install
17756 wine_fn_config_program dxdiag enable_dxdiag install,po
17757 wine_fn_config_program eject enable_eject install
17758 wine_fn_config_program expand enable_expand install
17759 wine_fn_config_program explorer enable_explorer install,po
17760 wine_fn_config_program extrac32 enable_extrac32 install
17761 wine_fn_config_program findstr enable_findstr install
17762 wine_fn_config_program hh enable_hh install
17763 wine_fn_config_program hostname enable_hostname install,po
17764 wine_fn_config_program icinfo enable_icinfo install
17765 wine_fn_config_program iexplore enable_iexplore install
17766 wine_fn_config_program ipconfig enable_ipconfig install,po
17767 wine_fn_config_program lodctr enable_lodctr install
17768 wine_fn_config_program mofcomp enable_mofcomp install
17769 wine_fn_config_program mshta enable_mshta install
17770 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17771 wine_fn_config_program net enable_net install,po
17772 wine_fn_config_program netsh enable_netsh install
17773 wine_fn_config_program netstat enable_netstat install,po
17774 wine_fn_config_program ngen enable_ngen install
17775 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17776 wine_fn_config_program oleview enable_oleview install,po
17777 wine_fn_config_program ping enable_ping install
17778 wine_fn_config_program plugplay enable_plugplay install
17779 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17780 wine_fn_config_program progman enable_progman install,po
17781 wine_fn_config_program reg enable_reg install,po
17782 wine_fn_config_test programs/reg/tests reg.exe_test
17783 wine_fn_config_program regasm enable_regasm install
17784 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17785 wine_fn_config_test programs/regedit/tests regedit.exe_test
17786 wine_fn_config_program regsvcs enable_regsvcs install
17787 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage,po
17788 wine_fn_config_program rpcss enable_rpcss clean,install
17789 wine_fn_config_program rundll.exe16 enable_win16 install
17790 wine_fn_config_program rundll32 enable_rundll32 install
17791 wine_fn_config_program sc enable_sc install
17792 wine_fn_config_program schtasks enable_schtasks install
17793 wine_fn_config_program sdbinst enable_sdbinst install
17794 wine_fn_config_program secedit enable_secedit install
17795 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17796 wine_fn_config_program services enable_services clean,install
17797 wine_fn_config_test programs/services/tests services.exe_test
17798 wine_fn_config_program spoolsv enable_spoolsv install
17799 wine_fn_config_program start enable_start install,po
17800 wine_fn_config_program svchost enable_svchost install
17801 wine_fn_config_program systeminfo enable_systeminfo install
17802 wine_fn_config_program taskkill enable_taskkill install,po
17803 wine_fn_config_program tasklist enable_tasklist install
17804 wine_fn_config_program taskmgr enable_taskmgr install,po
17805 wine_fn_config_program termsv enable_termsv install
17806 wine_fn_config_program uninstaller enable_uninstaller install,po
17807 wine_fn_config_program unlodctr enable_unlodctr install
17808 wine_fn_config_program view enable_view install,po
17809 wine_fn_config_program wevtutil enable_wevtutil install
17810 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17811 wine_fn_config_program winebrowser enable_winebrowser install
17812 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17813 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17814 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17815 wine_fn_config_program winedevice enable_winedevice install
17816 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17817 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17818 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17819 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17820 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17821 wine_fn_config_program winetest enable_winetest clean
17822 wine_fn_config_program winevdm enable_win16 install
17823 wine_fn_config_program winhelp.exe16 enable_win16 install
17824 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17825 wine_fn_config_program winoldap.mod16 enable_win16 install
17826 wine_fn_config_program winver enable_winver install
17827 wine_fn_config_program wmic enable_wmic install,po
17828 wine_fn_config_program wordpad enable_wordpad install,po
17829 wine_fn_config_program write enable_write install,po
17830 wine_fn_config_program wscript enable_wscript clean,install
17831 wine_fn_config_test programs/wscript/tests wscript.exe_test
17832 wine_fn_config_program wusa enable_wusa install
17833 wine_fn_config_program xcopy enable_xcopy install,po
17834 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17835 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17836 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17837 wine_fn_config_tool tools/sfnt2fon clean
17838 wine_fn_config_tool tools/widl clean,install-dev,manpage
17839 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17840 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17841 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17842 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17843 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17845 LINGUAS="\
17846 ar \
17847 bg \
17848 ca \
17849 cs \
17850 da \
17851 de \
17852 el \
17853 en \
17854 en_US \
17855 eo \
17856 es \
17857 fa \
17858 fi \
17859 fr \
17860 he \
17861 hi \
17862 hr \
17863 hu \
17864 it \
17865 ja \
17866 ko \
17867 lt \
17868 ml \
17869 nb_NO \
17870 nl \
17871 or \
17872 pa \
17873 pl \
17874 pt_BR \
17875 pt_PT \
17876 rm \
17877 ro \
17878 ru \
17879 sk \
17880 sl \
17881 sr_RS@cyrillic \
17882 sr_RS@latin \
17883 sv \
17884 te \
17885 th \
17886 tr \
17887 uk \
17888 wa \
17889 zh_CN \
17890 zh_TW"
17895 wine_fn_ignore_file ".gitignore"
17896 wine_fn_ignore_file "Makefile"
17897 wine_fn_ignore_file "TAGS"
17898 wine_fn_ignore_file "tags"
17899 wine_fn_ignore_file "autom4te.cache"
17900 wine_fn_ignore_file "config.cache"
17901 wine_fn_ignore_file "config.log"
17902 wine_fn_ignore_file "config.status"
17903 wine_fn_ignore_file "configure.lineno"
17904 wine_fn_ignore_file "include/config.h"
17905 wine_fn_ignore_file "include/stamp-h"
17906 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17908 if test "x$enable_tools" != xno
17909 then
17910 wine_fn_ignore_file "tools/makedep$ac_exeext"
17911 ac_config_commands="$ac_config_commands tools/makedep"
17915 ac_config_commands="$ac_config_commands Makefile"
17918 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17922 if test "x$enable_maintainer_mode" = xyes
17923 then
17924 wine_fn_append_rule "configure: configure.ac aclocal.m4
17925 autoconf --warnings=all
17926 include/config.h.in: include/stamp-h.in
17927 include/stamp-h.in: configure.ac aclocal.m4
17928 autoheader --warnings=all
17929 @echo timestamp > \$@"
17932 if test "x$with_gettextpo" = xyes
17933 then
17934 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17935 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17936 \$(LINGUAS:%=po/%.po): po/wine.pot
17937 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17938 po/wine.pot: \$(ALL_POT_FILES)
17939 msgcat -o \$@ \$(ALL_POT_FILES)"
17942 if test "$MSGFMT" != false
17943 then
17944 wine_fn_append_rule "__builddeps__: \$(LINGUAS:%=po/%.mo)
17945 clean::
17946 \$(RM) \$(LINGUAS:%=po/%.mo)"
17948 posrc="po"
17949 test "$srcdir" = . || posrc="$srcdir/po"
17950 for i in $LINGUAS
17952 wine_fn_ignore_file "po/$i.mo"
17953 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17954 \$(MSGFMT) -o \$@ $posrc/$i.po"
17955 done
17956 else
17957 LINGUAS=
17960 if test "x$enable_tools" != xno
17961 then
17962 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h config.status
17963 @./config.status tools/makedep
17964 Makefile: tools/makedep$ac_exeext
17965 distclean:: clean
17966 \$(RM) tools/makedep$ac_exeext"
17967 else
17968 wine_fn_append_rule "\$(MAKEDEP):
17969 @echo \"You need to run make in $TOOLSDIR first\" && false"
17972 if test -n "$with_wine64"
17973 then
17974 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17975 fonts server tools:
17976 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17977 $with_wine64/loader/wine:
17978 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17979 $with_wine64/loader/wine-preloader:
17980 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17981 clean::
17982 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17983 else
17984 as_fn_append LOADER_RULES "
17985 install install-lib:: wine.inf install-man-pages
17986 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17987 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17989 uninstall::
17990 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17994 if test "$srcdir" = .
17995 then
17996 ac_config_commands="$ac_config_commands .gitignore"
18000 $as_echo " done" >&6
18001 cat >confcache <<\_ACEOF
18002 # This file is a shell script that caches the results of configure
18003 # tests run on this system so they can be shared between configure
18004 # scripts and configure runs, see configure's option --config-cache.
18005 # It is not useful on other systems. If it contains results you don't
18006 # want to keep, you may remove or edit it.
18008 # config.status only pays attention to the cache file if you give it
18009 # the --recheck option to rerun configure.
18011 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18012 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18013 # following values.
18015 _ACEOF
18017 # The following way of writing the cache mishandles newlines in values,
18018 # but we know of no workaround that is simple, portable, and efficient.
18019 # So, we kill variables containing newlines.
18020 # Ultrix sh set writes to stderr and can't be redirected directly,
18021 # and sets the high bit in the cache file unless we assign to the vars.
18023 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18024 eval ac_val=\$$ac_var
18025 case $ac_val in #(
18026 *${as_nl}*)
18027 case $ac_var in #(
18028 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18029 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18030 esac
18031 case $ac_var in #(
18032 _ | IFS | as_nl) ;; #(
18033 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18034 *) { eval $ac_var=; unset $ac_var;} ;;
18035 esac ;;
18036 esac
18037 done
18039 (set) 2>&1 |
18040 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18041 *${as_nl}ac_space=\ *)
18042 # `set' does not quote correctly, so add quotes: double-quote
18043 # substitution turns \\\\ into \\, and sed turns \\ into \.
18044 sed -n \
18045 "s/'/'\\\\''/g;
18046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18047 ;; #(
18049 # `set' quotes correctly as required by POSIX, so do not add quotes.
18050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18052 esac |
18053 sort
18055 sed '
18056 /^ac_cv_env_/b end
18057 t clear
18058 :clear
18059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18060 t end
18061 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18062 :end' >>confcache
18063 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18064 if test -w "$cache_file"; then
18065 if test "x$cache_file" != "x/dev/null"; then
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18067 $as_echo "$as_me: updating cache $cache_file" >&6;}
18068 if test ! -f "$cache_file" || test -h "$cache_file"; then
18069 cat confcache >"$cache_file"
18070 else
18071 case $cache_file in #(
18072 */* | ?:*)
18073 mv -f confcache "$cache_file"$$ &&
18074 mv -f "$cache_file"$$ "$cache_file" ;; #(
18076 mv -f confcache "$cache_file" ;;
18077 esac
18080 else
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18082 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18085 rm -f confcache
18087 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18088 # Let make expand exec_prefix.
18089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18091 DEFS=-DHAVE_CONFIG_H
18093 ac_libobjs=
18094 ac_ltlibobjs=
18096 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18097 # 1. Remove the extension, and $U if already installed.
18098 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18099 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18101 # will be set to the directory where LIBOBJS objects are built.
18102 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18103 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18104 done
18105 LIBOBJS=$ac_libobjs
18107 LTLIBOBJS=$ac_ltlibobjs
18111 : "${CONFIG_STATUS=./config.status}"
18112 ac_write_fail=0
18113 ac_clean_files_save=$ac_clean_files
18114 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18116 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18117 as_write_fail=0
18118 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18119 #! $SHELL
18120 # Generated by $as_me.
18121 # Run this file to recreate the current configuration.
18122 # Compiler output produced by configure, useful for debugging
18123 # configure, is in config.log if it exists.
18125 debug=false
18126 ac_cs_recheck=false
18127 ac_cs_silent=false
18129 SHELL=\${CONFIG_SHELL-$SHELL}
18130 export SHELL
18131 _ASEOF
18132 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18133 ## -------------------- ##
18134 ## M4sh Initialization. ##
18135 ## -------------------- ##
18137 # Be more Bourne compatible
18138 DUALCASE=1; export DUALCASE # for MKS sh
18139 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18140 emulate sh
18141 NULLCMD=:
18142 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18143 # is contrary to our usage. Disable this feature.
18144 alias -g '${1+"$@"}'='"$@"'
18145 setopt NO_GLOB_SUBST
18146 else
18147 case `(set -o) 2>/dev/null` in #(
18148 *posix*) :
18149 set -o posix ;; #(
18150 *) :
18152 esac
18156 as_nl='
18158 export as_nl
18159 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18160 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18162 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18163 # Prefer a ksh shell builtin over an external printf program on Solaris,
18164 # but without wasting forks for bash or zsh.
18165 if test -z "$BASH_VERSION$ZSH_VERSION" \
18166 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18167 as_echo='print -r --'
18168 as_echo_n='print -rn --'
18169 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18170 as_echo='printf %s\n'
18171 as_echo_n='printf %s'
18172 else
18173 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18174 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18175 as_echo_n='/usr/ucb/echo -n'
18176 else
18177 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18178 as_echo_n_body='eval
18179 arg=$1;
18180 case $arg in #(
18181 *"$as_nl"*)
18182 expr "X$arg" : "X\\(.*\\)$as_nl";
18183 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18184 esac;
18185 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18187 export as_echo_n_body
18188 as_echo_n='sh -c $as_echo_n_body as_echo'
18190 export as_echo_body
18191 as_echo='sh -c $as_echo_body as_echo'
18194 # The user is always right.
18195 if test "${PATH_SEPARATOR+set}" != set; then
18196 PATH_SEPARATOR=:
18197 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18198 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18199 PATH_SEPARATOR=';'
18204 # IFS
18205 # We need space, tab and new line, in precisely that order. Quoting is
18206 # there to prevent editors from complaining about space-tab.
18207 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18208 # splitting by setting IFS to empty value.)
18209 IFS=" "" $as_nl"
18211 # Find who we are. Look in the path if we contain no directory separator.
18212 as_myself=
18213 case $0 in #((
18214 *[\\/]* ) as_myself=$0 ;;
18215 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18216 for as_dir in $PATH
18218 IFS=$as_save_IFS
18219 test -z "$as_dir" && as_dir=.
18220 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18221 done
18222 IFS=$as_save_IFS
18225 esac
18226 # We did not find ourselves, most probably we were run as `sh COMMAND'
18227 # in which case we are not to be found in the path.
18228 if test "x$as_myself" = x; then
18229 as_myself=$0
18231 if test ! -f "$as_myself"; then
18232 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18233 exit 1
18236 # Unset variables that we do not need and which cause bugs (e.g. in
18237 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18238 # suppresses any "Segmentation fault" message there. '((' could
18239 # trigger a bug in pdksh 5.2.14.
18240 for as_var in BASH_ENV ENV MAIL MAILPATH
18241 do eval test x\${$as_var+set} = xset \
18242 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18243 done
18244 PS1='$ '
18245 PS2='> '
18246 PS4='+ '
18248 # NLS nuisances.
18249 LC_ALL=C
18250 export LC_ALL
18251 LANGUAGE=C
18252 export LANGUAGE
18254 # CDPATH.
18255 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18258 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18259 # ----------------------------------------
18260 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18261 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18262 # script with STATUS, using 1 if that was 0.
18263 as_fn_error ()
18265 as_status=$1; test $as_status -eq 0 && as_status=1
18266 if test "$4"; then
18267 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18268 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18270 $as_echo "$as_me: error: $2" >&2
18271 as_fn_exit $as_status
18272 } # as_fn_error
18275 # as_fn_set_status STATUS
18276 # -----------------------
18277 # Set $? to STATUS, without forking.
18278 as_fn_set_status ()
18280 return $1
18281 } # as_fn_set_status
18283 # as_fn_exit STATUS
18284 # -----------------
18285 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18286 as_fn_exit ()
18288 set +e
18289 as_fn_set_status $1
18290 exit $1
18291 } # as_fn_exit
18293 # as_fn_unset VAR
18294 # ---------------
18295 # Portably unset VAR.
18296 as_fn_unset ()
18298 { eval $1=; unset $1;}
18300 as_unset=as_fn_unset
18301 # as_fn_append VAR VALUE
18302 # ----------------------
18303 # Append the text in VALUE to the end of the definition contained in VAR. Take
18304 # advantage of any shell optimizations that allow amortized linear growth over
18305 # repeated appends, instead of the typical quadratic growth present in naive
18306 # implementations.
18307 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18308 eval 'as_fn_append ()
18310 eval $1+=\$2
18312 else
18313 as_fn_append ()
18315 eval $1=\$$1\$2
18317 fi # as_fn_append
18319 # as_fn_arith ARG...
18320 # ------------------
18321 # Perform arithmetic evaluation on the ARGs, and store the result in the
18322 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18323 # must be portable across $(()) and expr.
18324 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18325 eval 'as_fn_arith ()
18327 as_val=$(( $* ))
18329 else
18330 as_fn_arith ()
18332 as_val=`expr "$@" || test $? -eq 1`
18334 fi # as_fn_arith
18337 if expr a : '\(a\)' >/dev/null 2>&1 &&
18338 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18339 as_expr=expr
18340 else
18341 as_expr=false
18344 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18345 as_basename=basename
18346 else
18347 as_basename=false
18350 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18351 as_dirname=dirname
18352 else
18353 as_dirname=false
18356 as_me=`$as_basename -- "$0" ||
18357 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18358 X"$0" : 'X\(//\)$' \| \
18359 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18360 $as_echo X/"$0" |
18361 sed '/^.*\/\([^/][^/]*\)\/*$/{
18362 s//\1/
18365 /^X\/\(\/\/\)$/{
18366 s//\1/
18369 /^X\/\(\/\).*/{
18370 s//\1/
18373 s/.*/./; q'`
18375 # Avoid depending upon Character Ranges.
18376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18379 as_cr_digits='0123456789'
18380 as_cr_alnum=$as_cr_Letters$as_cr_digits
18382 ECHO_C= ECHO_N= ECHO_T=
18383 case `echo -n x` in #(((((
18384 -n*)
18385 case `echo 'xy\c'` in
18386 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18387 xy) ECHO_C='\c';;
18388 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18389 ECHO_T=' ';;
18390 esac;;
18392 ECHO_N='-n';;
18393 esac
18395 rm -f conf$$ conf$$.exe conf$$.file
18396 if test -d conf$$.dir; then
18397 rm -f conf$$.dir/conf$$.file
18398 else
18399 rm -f conf$$.dir
18400 mkdir conf$$.dir 2>/dev/null
18402 if (echo >conf$$.file) 2>/dev/null; then
18403 if ln -s conf$$.file conf$$ 2>/dev/null; then
18404 as_ln_s='ln -s'
18405 # ... but there are two gotchas:
18406 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18407 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18408 # In both cases, we have to default to `cp -pR'.
18409 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18410 as_ln_s='cp -pR'
18411 elif ln conf$$.file conf$$ 2>/dev/null; then
18412 as_ln_s=ln
18413 else
18414 as_ln_s='cp -pR'
18416 else
18417 as_ln_s='cp -pR'
18419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18420 rmdir conf$$.dir 2>/dev/null
18423 # as_fn_mkdir_p
18424 # -------------
18425 # Create "$as_dir" as a directory, including parents if necessary.
18426 as_fn_mkdir_p ()
18429 case $as_dir in #(
18430 -*) as_dir=./$as_dir;;
18431 esac
18432 test -d "$as_dir" || eval $as_mkdir_p || {
18433 as_dirs=
18434 while :; do
18435 case $as_dir in #(
18436 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18437 *) as_qdir=$as_dir;;
18438 esac
18439 as_dirs="'$as_qdir' $as_dirs"
18440 as_dir=`$as_dirname -- "$as_dir" ||
18441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18442 X"$as_dir" : 'X\(//\)[^/]' \| \
18443 X"$as_dir" : 'X\(//\)$' \| \
18444 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18445 $as_echo X"$as_dir" |
18446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18447 s//\1/
18450 /^X\(\/\/\)[^/].*/{
18451 s//\1/
18454 /^X\(\/\/\)$/{
18455 s//\1/
18458 /^X\(\/\).*/{
18459 s//\1/
18462 s/.*/./; q'`
18463 test -d "$as_dir" && break
18464 done
18465 test -z "$as_dirs" || eval "mkdir $as_dirs"
18466 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18469 } # as_fn_mkdir_p
18470 if mkdir -p . 2>/dev/null; then
18471 as_mkdir_p='mkdir -p "$as_dir"'
18472 else
18473 test -d ./-p && rmdir ./-p
18474 as_mkdir_p=false
18478 # as_fn_executable_p FILE
18479 # -----------------------
18480 # Test if FILE is an executable regular file.
18481 as_fn_executable_p ()
18483 test -f "$1" && test -x "$1"
18484 } # as_fn_executable_p
18485 as_test_x='test -x'
18486 as_executable_p=as_fn_executable_p
18488 # Sed expression to map a string onto a valid CPP name.
18489 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18491 # Sed expression to map a string onto a valid variable name.
18492 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18495 exec 6>&1
18496 ## ----------------------------------- ##
18497 ## Main body of $CONFIG_STATUS script. ##
18498 ## ----------------------------------- ##
18499 _ASEOF
18500 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18503 # Save the log message, to keep $0 and so on meaningful, and to
18504 # report actual input values of CONFIG_FILES etc. instead of their
18505 # values after options handling.
18506 ac_log="
18507 This file was extended by Wine $as_me 1.7.43, which was
18508 generated by GNU Autoconf 2.69. Invocation command line was
18510 CONFIG_FILES = $CONFIG_FILES
18511 CONFIG_HEADERS = $CONFIG_HEADERS
18512 CONFIG_LINKS = $CONFIG_LINKS
18513 CONFIG_COMMANDS = $CONFIG_COMMANDS
18514 $ $0 $@
18516 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18519 _ACEOF
18521 case $ac_config_files in *"
18522 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18523 esac
18525 case $ac_config_headers in *"
18526 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18527 esac
18530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18531 # Files that config.status was made for.
18532 config_files="$ac_config_files"
18533 config_headers="$ac_config_headers"
18534 config_links="$ac_config_links"
18535 config_commands="$ac_config_commands"
18537 _ACEOF
18539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18540 ac_cs_usage="\
18541 \`$as_me' instantiates files and other configuration actions
18542 from templates according to the current configuration. Unless the files
18543 and actions are specified as TAGs, all are instantiated by default.
18545 Usage: $0 [OPTION]... [TAG]...
18547 -h, --help print this help, then exit
18548 -V, --version print version number and configuration settings, then exit
18549 --config print configuration, then exit
18550 -q, --quiet, --silent
18551 do not print progress messages
18552 -d, --debug don't remove temporary files
18553 --recheck update $as_me by reconfiguring in the same conditions
18554 --file=FILE[:TEMPLATE]
18555 instantiate the configuration file FILE
18556 --header=FILE[:TEMPLATE]
18557 instantiate the configuration header FILE
18559 Configuration files:
18560 $config_files
18562 Configuration headers:
18563 $config_headers
18565 Configuration links:
18566 $config_links
18568 Configuration commands:
18569 $config_commands
18571 Report bugs to <wine-devel@winehq.org>.
18572 Wine home page: <http://www.winehq.org>."
18574 _ACEOF
18575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18576 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18577 ac_cs_version="\\
18578 Wine config.status 1.7.43
18579 configured by $0, generated by GNU Autoconf 2.69,
18580 with options \\"\$ac_cs_config\\"
18582 Copyright (C) 2012 Free Software Foundation, Inc.
18583 This config.status script is free software; the Free Software Foundation
18584 gives unlimited permission to copy, distribute and modify it."
18586 ac_pwd='$ac_pwd'
18587 srcdir='$srcdir'
18588 test -n "\$AWK" || AWK=awk
18589 _ACEOF
18591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18592 # The default lists apply if the user does not specify any file.
18593 ac_need_defaults=:
18594 while test $# != 0
18596 case $1 in
18597 --*=?*)
18598 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18599 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18600 ac_shift=:
18602 --*=)
18603 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18604 ac_optarg=
18605 ac_shift=:
18608 ac_option=$1
18609 ac_optarg=$2
18610 ac_shift=shift
18612 esac
18614 case $ac_option in
18615 # Handling of the options.
18616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18617 ac_cs_recheck=: ;;
18618 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18619 $as_echo "$ac_cs_version"; exit ;;
18620 --config | --confi | --conf | --con | --co | --c )
18621 $as_echo "$ac_cs_config"; exit ;;
18622 --debug | --debu | --deb | --de | --d | -d )
18623 debug=: ;;
18624 --file | --fil | --fi | --f )
18625 $ac_shift
18626 case $ac_optarg in
18627 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18628 '') as_fn_error $? "missing file argument" ;;
18629 esac
18630 as_fn_append CONFIG_FILES " '$ac_optarg'"
18631 ac_need_defaults=false;;
18632 --header | --heade | --head | --hea )
18633 $ac_shift
18634 case $ac_optarg in
18635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18636 esac
18637 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18638 ac_need_defaults=false;;
18639 --he | --h)
18640 # Conflict between --help and --header
18641 as_fn_error $? "ambiguous option: \`$1'
18642 Try \`$0 --help' for more information.";;
18643 --help | --hel | -h )
18644 $as_echo "$ac_cs_usage"; exit ;;
18645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18647 ac_cs_silent=: ;;
18649 # This is an error.
18650 -*) as_fn_error $? "unrecognized option: \`$1'
18651 Try \`$0 --help' for more information." ;;
18653 *) as_fn_append ac_config_targets " $1"
18654 ac_need_defaults=false ;;
18656 esac
18657 shift
18658 done
18660 ac_configure_extra_args=
18662 if $ac_cs_silent; then
18663 exec 6>/dev/null
18664 ac_configure_extra_args="$ac_configure_extra_args --silent"
18667 _ACEOF
18668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18669 if \$ac_cs_recheck; then
18670 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18671 shift
18672 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18673 CONFIG_SHELL='$SHELL'
18674 export CONFIG_SHELL
18675 exec "\$@"
18678 _ACEOF
18679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18680 exec 5>>config.log
18682 echo
18683 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18684 ## Running $as_me. ##
18685 _ASBOX
18686 $as_echo "$ac_log"
18687 } >&5
18689 _ACEOF
18690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18692 # INIT-COMMANDS
18694 wine_fn_output_makedep ()
18696 as_dir=tools; as_fn_mkdir_p
18697 $CC -Iinclude -I$srcdir/include -D__WINESRC__ $EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext $srcdir/tools/makedep.c $LDFLAGS
18699 wine_fn_output_makefile ()
18701 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && "$wine_makedep" . && return
18702 `cat $wine_rules_file`
18703 _WINE_EOF
18704 as_fn_error $? "could not create Makefile" "$LINENO" 5
18706 wine_fn_output_gitignore ()
18708 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18709 $GITIGNORE
18710 _WINE_EOF
18711 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18714 _ACEOF
18716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18718 # Handling of arguments.
18719 for ac_config_target in $ac_config_targets
18721 case $ac_config_target in
18722 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18723 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18724 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18725 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18726 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18727 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18728 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18729 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18730 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18731 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18732 "tools/makedep") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/makedep" ;;
18733 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18734 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18735 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18737 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18738 esac
18739 done
18742 # If the user did not use the arguments to specify the items to instantiate,
18743 # then the envvar interface is used. Set only those that are not.
18744 # We use the long form for the default assignment because of an extremely
18745 # bizarre bug on SunOS 4.1.3.
18746 if $ac_need_defaults; then
18747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18748 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18749 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18753 # Have a temporary directory for convenience. Make it in the build tree
18754 # simply because there is no reason against having it here, and in addition,
18755 # creating and moving files from /tmp can sometimes cause problems.
18756 # Hook for its removal unless debugging.
18757 # Note that there is a small window in which the directory will not be cleaned:
18758 # after its creation but before its name has been assigned to `$tmp'.
18759 $debug ||
18761 tmp= ac_tmp=
18762 trap 'exit_status=$?
18763 : "${ac_tmp:=$tmp}"
18764 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18766 trap 'as_fn_exit 1' 1 2 13 15
18768 # Create a (secure) tmp directory for tmp files.
18771 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18772 test -d "$tmp"
18773 } ||
18775 tmp=./conf$$-$RANDOM
18776 (umask 077 && mkdir "$tmp")
18777 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18778 ac_tmp=$tmp
18780 # Set up the scripts for CONFIG_FILES section.
18781 # No need to generate them if there are no CONFIG_FILES.
18782 # This happens for instance with `./config.status config.h'.
18783 if test -n "$CONFIG_FILES"; then
18786 ac_cr=`echo X | tr X '\015'`
18787 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18788 # But we know of no other shell where ac_cr would be empty at this
18789 # point, so we can use a bashism as a fallback.
18790 if test "x$ac_cr" = x; then
18791 eval ac_cr=\$\'\\r\'
18793 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18794 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18795 ac_cs_awk_cr='\\r'
18796 else
18797 ac_cs_awk_cr=$ac_cr
18800 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18801 _ACEOF
18805 echo "cat >conf$$subs.awk <<_ACEOF" &&
18806 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18807 echo "_ACEOF"
18808 } >conf$$subs.sh ||
18809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18810 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18811 ac_delim='%!_!# '
18812 for ac_last_try in false false false false false :; do
18813 . ./conf$$subs.sh ||
18814 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18816 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18817 if test $ac_delim_n = $ac_delim_num; then
18818 break
18819 elif $ac_last_try; then
18820 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18821 else
18822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18824 done
18825 rm -f conf$$subs.sh
18827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18828 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18829 _ACEOF
18830 sed -n '
18832 s/^/S["/; s/!.*/"]=/
18835 s/^[^!]*!//
18836 :repl
18837 t repl
18838 s/'"$ac_delim"'$//
18839 t delim
18842 s/\(.\{148\}\)..*/\1/
18843 t more1
18844 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18847 b repl
18848 :more1
18849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18852 s/.\{148\}//
18853 t nl
18854 :delim
18856 s/\(.\{148\}\)..*/\1/
18857 t more2
18858 s/["\\]/\\&/g; s/^/"/; s/$/"/
18861 :more2
18862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18865 s/.\{148\}//
18866 t delim
18867 ' <conf$$subs.awk | sed '
18868 /^[^""]/{
18870 s/\n//
18872 ' >>$CONFIG_STATUS || ac_write_fail=1
18873 rm -f conf$$subs.awk
18874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18875 _ACAWK
18876 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18877 for (key in S) S_is_set[key] = 1
18878 FS = "\a"
18882 line = $ 0
18883 nfields = split(line, field, "@")
18884 substed = 0
18885 len = length(field[1])
18886 for (i = 2; i < nfields; i++) {
18887 key = field[i]
18888 keylen = length(key)
18889 if (S_is_set[key]) {
18890 value = S[key]
18891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18892 len += length(value) + length(field[++i])
18893 substed = 1
18894 } else
18895 len += 1 + keylen
18898 print line
18901 _ACAWK
18902 _ACEOF
18903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18904 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18905 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18906 else
18908 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18909 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18910 _ACEOF
18912 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18913 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18914 # trailing colons and then remove the whole line if VPATH becomes empty
18915 # (actually we leave an empty line to preserve line numbers).
18916 if test "x$srcdir" = x.; then
18917 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18919 s///
18920 s/^/:/
18921 s/[ ]*$/:/
18922 s/:\$(srcdir):/:/g
18923 s/:\${srcdir}:/:/g
18924 s/:@srcdir@:/:/g
18925 s/^:*//
18926 s/:*$//
18928 s/\(=[ ]*\).*/\1/
18930 s/\n//
18931 s/^[^=]*=[ ]*$//
18935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18936 fi # test -n "$CONFIG_FILES"
18938 # Set up the scripts for CONFIG_HEADERS section.
18939 # No need to generate them if there are no CONFIG_HEADERS.
18940 # This happens for instance with `./config.status Makefile'.
18941 if test -n "$CONFIG_HEADERS"; then
18942 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18943 BEGIN {
18944 _ACEOF
18946 # Transform confdefs.h into an awk script `defines.awk', embedded as
18947 # here-document in config.status, that substitutes the proper values into
18948 # config.h.in to produce config.h.
18950 # Create a delimiter string that does not exist in confdefs.h, to ease
18951 # handling of long lines.
18952 ac_delim='%!_!# '
18953 for ac_last_try in false false :; do
18954 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18955 if test -z "$ac_tt"; then
18956 break
18957 elif $ac_last_try; then
18958 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18959 else
18960 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18962 done
18964 # For the awk script, D is an array of macro values keyed by name,
18965 # likewise P contains macro parameters if any. Preserve backslash
18966 # newline sequences.
18968 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18969 sed -n '
18970 s/.\{148\}/&'"$ac_delim"'/g
18971 t rset
18972 :rset
18973 s/^[ ]*#[ ]*define[ ][ ]*/ /
18974 t def
18976 :def
18977 s/\\$//
18978 t bsnl
18979 s/["\\]/\\&/g
18980 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18981 D["\1"]=" \3"/p
18982 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18984 :bsnl
18985 s/["\\]/\\&/g
18986 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18987 D["\1"]=" \3\\\\\\n"\\/p
18988 t cont
18989 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18990 t cont
18992 :cont
18994 s/.\{148\}/&'"$ac_delim"'/g
18995 t clear
18996 :clear
18997 s/\\$//
18998 t bsnlc
18999 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19001 :bsnlc
19002 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19003 b cont
19004 ' <confdefs.h | sed '
19005 s/'"$ac_delim"'/"\\\
19006 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19009 for (key in D) D_is_set[key] = 1
19010 FS = "\a"
19012 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19013 line = \$ 0
19014 split(line, arg, " ")
19015 if (arg[1] == "#") {
19016 defundef = arg[2]
19017 mac1 = arg[3]
19018 } else {
19019 defundef = substr(arg[1], 2)
19020 mac1 = arg[2]
19022 split(mac1, mac2, "(") #)
19023 macro = mac2[1]
19024 prefix = substr(line, 1, index(line, defundef) - 1)
19025 if (D_is_set[macro]) {
19026 # Preserve the white space surrounding the "#".
19027 print prefix "define", macro P[macro] D[macro]
19028 next
19029 } else {
19030 # Replace #undef with comments. This is necessary, for example,
19031 # in the case of _POSIX_SOURCE, which is predefined and required
19032 # on some systems where configure will not decide to define it.
19033 if (defundef == "undef") {
19034 print "/*", prefix defundef, macro, "*/"
19035 next
19039 { print }
19040 _ACAWK
19041 _ACEOF
19042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19043 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19044 fi # test -n "$CONFIG_HEADERS"
19047 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
19048 shift
19049 for ac_tag
19051 case $ac_tag in
19052 :[FHLC]) ac_mode=$ac_tag; continue;;
19053 esac
19054 case $ac_mode$ac_tag in
19055 :[FHL]*:*);;
19056 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19057 :[FH]-) ac_tag=-:-;;
19058 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19059 esac
19060 ac_save_IFS=$IFS
19061 IFS=:
19062 set x $ac_tag
19063 IFS=$ac_save_IFS
19064 shift
19065 ac_file=$1
19066 shift
19068 case $ac_mode in
19069 :L) ac_source=$1;;
19070 :[FH])
19071 ac_file_inputs=
19072 for ac_f
19074 case $ac_f in
19075 -) ac_f="$ac_tmp/stdin";;
19076 *) # Look for the file first in the build tree, then in the source tree
19077 # (if the path is not absolute). The absolute path cannot be DOS-style,
19078 # because $ac_f cannot contain `:'.
19079 test -f "$ac_f" ||
19080 case $ac_f in
19081 [\\/$]*) false;;
19082 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19083 esac ||
19084 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19085 esac
19086 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19087 as_fn_append ac_file_inputs " '$ac_f'"
19088 done
19090 # Let's still pretend it is `configure' which instantiates (i.e., don't
19091 # use $as_me), people would be surprised to read:
19092 # /* config.h. Generated by config.status. */
19093 configure_input='Generated from '`
19094 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19095 `' by configure.'
19096 if test x"$ac_file" != x-; then
19097 configure_input="$ac_file. $configure_input"
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19099 $as_echo "$as_me: creating $ac_file" >&6;}
19101 # Neutralize special characters interpreted by sed in replacement strings.
19102 case $configure_input in #(
19103 *\&* | *\|* | *\\* )
19104 ac_sed_conf_input=`$as_echo "$configure_input" |
19105 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19106 *) ac_sed_conf_input=$configure_input;;
19107 esac
19109 case $ac_tag in
19110 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19112 esac
19114 esac
19116 ac_dir=`$as_dirname -- "$ac_file" ||
19117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19118 X"$ac_file" : 'X\(//\)[^/]' \| \
19119 X"$ac_file" : 'X\(//\)$' \| \
19120 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19121 $as_echo X"$ac_file" |
19122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19123 s//\1/
19126 /^X\(\/\/\)[^/].*/{
19127 s//\1/
19130 /^X\(\/\/\)$/{
19131 s//\1/
19134 /^X\(\/\).*/{
19135 s//\1/
19138 s/.*/./; q'`
19139 as_dir="$ac_dir"; as_fn_mkdir_p
19140 ac_builddir=.
19142 case "$ac_dir" in
19143 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19145 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19146 # A ".." for each directory in $ac_dir_suffix.
19147 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19148 case $ac_top_builddir_sub in
19149 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19150 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19151 esac ;;
19152 esac
19153 ac_abs_top_builddir=$ac_pwd
19154 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19155 # for backward compatibility:
19156 ac_top_builddir=$ac_top_build_prefix
19158 case $srcdir in
19159 .) # We are building in place.
19160 ac_srcdir=.
19161 ac_top_srcdir=$ac_top_builddir_sub
19162 ac_abs_top_srcdir=$ac_pwd ;;
19163 [\\/]* | ?:[\\/]* ) # Absolute name.
19164 ac_srcdir=$srcdir$ac_dir_suffix;
19165 ac_top_srcdir=$srcdir
19166 ac_abs_top_srcdir=$srcdir ;;
19167 *) # Relative name.
19168 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19169 ac_top_srcdir=$ac_top_build_prefix$srcdir
19170 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19171 esac
19172 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19175 case $ac_mode in
19178 # CONFIG_FILE
19181 _ACEOF
19183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19184 # If the template does not know about datarootdir, expand it.
19185 # FIXME: This hack should be removed a few years after 2.60.
19186 ac_datarootdir_hack=; ac_datarootdir_seen=
19187 ac_sed_dataroot='
19188 /datarootdir/ {
19192 /@datadir@/p
19193 /@docdir@/p
19194 /@infodir@/p
19195 /@localedir@/p
19196 /@mandir@/p'
19197 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19198 *datarootdir*) ac_datarootdir_seen=yes;;
19199 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19201 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19202 _ACEOF
19203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19204 ac_datarootdir_hack='
19205 s&@datadir@&$datadir&g
19206 s&@docdir@&$docdir&g
19207 s&@infodir@&$infodir&g
19208 s&@localedir@&$localedir&g
19209 s&@mandir@&$mandir&g
19210 s&\\\${datarootdir}&$datarootdir&g' ;;
19211 esac
19212 _ACEOF
19214 # Neutralize VPATH when `$srcdir' = `.'.
19215 # Shell code in configure.ac might set extrasub.
19216 # FIXME: do we really want to maintain this feature?
19217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19218 ac_sed_extra="$ac_vpsub
19219 $extrasub
19220 _ACEOF
19221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19223 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19224 s|@configure_input@|$ac_sed_conf_input|;t t
19225 s&@top_builddir@&$ac_top_builddir_sub&;t t
19226 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19227 s&@srcdir@&$ac_srcdir&;t t
19228 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19229 s&@top_srcdir@&$ac_top_srcdir&;t t
19230 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19231 s&@builddir@&$ac_builddir&;t t
19232 s&@abs_builddir@&$ac_abs_builddir&;t t
19233 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19234 $ac_datarootdir_hack
19236 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19237 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19240 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19242 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19244 which seems to be undefined. Please make sure it is defined" >&5
19245 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19246 which seems to be undefined. Please make sure it is defined" >&2;}
19248 rm -f "$ac_tmp/stdin"
19249 case $ac_file in
19250 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19251 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19252 esac \
19253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19257 # CONFIG_HEADER
19259 if test x"$ac_file" != x-; then
19261 $as_echo "/* $configure_input */" \
19262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19263 } >"$ac_tmp/config.h" \
19264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19265 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19267 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19268 else
19269 rm -f "$ac_file"
19270 mv "$ac_tmp/config.h" "$ac_file" \
19271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19273 else
19274 $as_echo "/* $configure_input */" \
19275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19276 || as_fn_error $? "could not create -" "$LINENO" 5
19281 # CONFIG_LINK
19284 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19286 else
19287 # Prefer the file from the source tree if names are identical.
19288 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19289 ac_source=$srcdir/$ac_source
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19293 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19295 if test ! -r "$ac_source"; then
19296 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19298 rm -f "$ac_file"
19300 # Try a relative symlink, then a hard link, then a copy.
19301 case $ac_source in
19302 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19303 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19304 esac
19305 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19306 ln "$ac_source" "$ac_file" 2>/dev/null ||
19307 cp -p "$ac_source" "$ac_file" ||
19308 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19311 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19312 $as_echo "$as_me: executing $ac_file commands" >&6;}
19314 esac
19317 case $ac_file$ac_mode in
19318 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
19319 "tools/makedep":C) wine_fn_output_makedep || as_fn_exit $? ;;
19320 "Makefile":C) wine_fn_output_makefile Makefile ;;
19321 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
19323 esac
19324 done # for ac_tag
19327 as_fn_exit 0
19328 _ACEOF
19329 ac_clean_files=$ac_clean_files_save
19331 test $ac_write_fail = 0 ||
19332 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19335 # configure is writing to config.log, and then calls config.status.
19336 # config.status does its own redirection, appending to config.log.
19337 # Unfortunately, on DOS this fails, as config.log is still kept open
19338 # by configure, so config.status won't be able to write to it; its
19339 # output is simply discarded. So we exec the FD to /dev/null,
19340 # effectively closing config.log, so it can be properly (re)opened and
19341 # appended to by config.status. When coming back to configure, we
19342 # need to make the FD available again.
19343 if test "$no_create" != yes; then
19344 ac_cs_success=:
19345 ac_config_status_args=
19346 test "$silent" = yes &&
19347 ac_config_status_args="$ac_config_status_args --quiet"
19348 exec 5>/dev/null
19349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19350 exec 5>>config.log
19351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19352 # would make configure fail if this is the last instruction.
19353 $ac_cs_success || as_fn_exit 1
19355 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19357 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19361 if test "$no_create" = "yes"
19362 then
19363 exit 0
19366 ac_save_IFS="$IFS"
19367 if test "x$wine_notices != "x; then
19368 echo >&6
19369 IFS="|"
19370 for msg in $wine_notices; do
19371 IFS="$ac_save_IFS"
19372 if ${msg:+false} :; then :
19374 else
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
19376 $as_echo "$as_me: $msg" >&6;}
19378 done
19380 IFS="|"
19381 for msg in $wine_warnings; do
19382 IFS="$ac_save_IFS"
19383 if ${msg:+false} :; then :
19385 else
19386 echo >&2
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
19388 $as_echo "$as_me: WARNING: $msg" >&2;}
19390 done
19391 IFS="$ac_save_IFS"
19393 $as_echo "
19394 $as_me: Finished. Do '${ac_make}' to compile Wine.
19395 " >&6