configure: Use the pkg-config helper macro for freetype.
[wine.git] / configure
blobe384ef2a92c8459061054d6a2a2010ca62ddf1fb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.5.29.
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.5.29'
584 PACKAGE_STRING='Wine 1.5.29'
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 PORCFLAGS
628 LINGUAS
629 ALL_TEST_RESOURCES
630 LDAPLIBS
631 LIBRT
632 LIBPOLL
633 LIBDL
634 EXTRA_BINARIES
635 MAIN_BINARY
636 TOOLSEXT
637 LDPATH
638 UNWINDFLAGS
639 BUILTINFLAG
640 EXTRACFLAGS
641 LIBKSTAT
642 LIBOPENAL
643 LIBMPG123
644 PNGINCL
645 FONTCONFIGINCL
646 CUPSINCL
647 OSS4INCL
648 ALSALIBS
649 GSTREAMER_INCL
650 GSTREAMER_LIBS
651 LIBGETTEXTPO
652 ZLIB
653 FREETYPE_LIBS
654 FREETYPE_CFLAGS
655 LCMSLIBS
656 RESOLVLIBS
657 GPHOTO2_LIBS
658 GPHOTO2_CFLAGS
659 SANE_LIBS
660 SANE_CFLAGS
661 GNUTLS_LIBS
662 GNUTLS_CFLAGS
663 HAL_LIBS
664 HAL_CFLAGS
665 DBUS_LIBS
666 DBUS_CFLAGS
667 XSLT_LIBS
668 XSLT_CFLAGS
669 XML2_LIBS
670 XML2_CFLAGS
671 PKG_CONFIG
672 X_EXTRA_LIBS
673 X_LIBS
674 X_PRE_LIBS
675 X_CFLAGS
676 XMKMF
677 LIBPTHREAD
678 CROSSTARGET
679 CROSSCC
680 CROSSTEST_DISABLE
681 PRELINK
682 CARBONLIB
683 QUICKTIMELIB
684 LIBOPENCL
685 FRAMEWORK_OPENAL
686 COREAUDIO
687 SECURITYLIB
688 DISKARBITRATIONLIB
689 LDEXECFLAGS
690 CORESERVICESLIB
691 APPLICATIONSERVICESLIB
692 IOKITLIB
693 COREFOUNDATIONLIB
694 LIBWINE_RULES
695 SOCKETLIBS
696 DLLWRAP
697 DLLTOOL
698 READELF
700 LDRPATH_LOCAL
701 LDRPATH_INSTALL
702 IMPLIBEXT
703 LDDLLFLAGS
704 DLLFLAGS
705 DLLEXT
707 OPENGL_LIBS
708 XLIB
709 MAINTAINER_MODE
710 MSGFMT
711 ICOTOOL
712 CONVERT
713 RSVG
714 FONTFORGE
715 LINTFLAGS
716 LINT
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 LDCONFIG
721 EGREP
722 GREP
723 LN_S
724 RANLIB
725 ARFLAGS
726 ac_ct_AR
728 BISON
729 FLEX
730 TOOLSDIR
731 WOW64_DISABLE
732 TARGETFLAGS
733 CPPBIN
734 ac_ct_CXX
735 CXXFLAGS
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
744 SET_MAKE
745 host_os
746 host_vendor
747 host_cpu
748 host
749 build_os
750 build_vendor
751 build_cpu
752 build
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files='MAKE_RULES
792 MAKE_TEST_RULES
793 MAKE_DLL_RULES
794 MAKE_IMPLIB_RULES
795 MAKE_PROG_RULES'
796 ac_user_opts='
797 enable_option_checking
798 enable_win16
799 enable_win64
800 enable_tests
801 enable_maintainer_mode
802 with_alsa
803 with_capi
804 with_cms
805 with_coreaudio
806 with_cups
807 with_curses
808 with_dbus
809 with_fontconfig
810 with_freetype
811 with_gettext
812 with_gettextpo
813 with_gphoto
814 with_glu
815 with_gnutls
816 with_gsm
817 with_gstreamer
818 with_hal
819 with_jpeg
820 with_ldap
821 with_mpg123
822 with_openal
823 with_opencl
824 with_opengl
825 with_osmesa
826 with_oss
827 with_png
828 with_pthread
829 with_sane
830 with_tiff
831 with_v4l
832 with_xcomposite
833 with_xcursor
834 with_xinerama
835 with_xinput
836 with_xinput2
837 with_xml
838 with_xrandr
839 with_xrender
840 with_xshape
841 with_xshm
842 with_xslt
843 with_xxf86vm
844 with_zlib
845 with_wine_tools
846 with_wine64
847 enable_largefile
848 with_x
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
859 CXXFLAGS
862 XMKMF
863 XML2_CFLAGS
864 XML2_LIBS
865 XSLT_CFLAGS
866 XSLT_LIBS
867 DBUS_CFLAGS
868 DBUS_LIBS
869 HAL_CFLAGS
870 HAL_LIBS
871 GNUTLS_CFLAGS
872 GNUTLS_LIBS
873 SANE_CFLAGS
874 SANE_LIBS
875 GPHOTO2_CFLAGS
876 GPHOTO2_LIBS
877 FREETYPE_CFLAGS
878 FREETYPE_LIBS'
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 ac_unrecognized_opts=
885 ac_unrecognized_sep=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
929 ac_prev=
930 ac_dashdash=
931 for ac_option
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
940 case $ac_option in
941 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *=) ac_optarg= ;;
943 *) ac_optarg=yes ;;
944 esac
946 # Accept the important Cygnus configure options, so we can diagnose typos.
948 case $ac_dashdash$ac_option in
950 ac_dashdash=yes ;;
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 ac_prev=bindir ;;
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 bindir=$ac_optarg ;;
957 -build | --build | --buil | --bui | --bu)
958 ac_prev=build_alias ;;
959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960 build_alias=$ac_optarg ;;
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967 cache_file=$ac_optarg ;;
969 --config-cache | -C)
970 cache_file=config.cache ;;
972 -datadir | --datadir | --datadi | --datad)
973 ac_prev=datadir ;;
974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
975 datadir=$ac_optarg ;;
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
984 -disable-* | --disable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=no ;;
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1010 -enable-* | --enable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1264 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265 Try \`$0 --help' for more information"
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1274 esac
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1286 esac
1287 done
1289 if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 as_fn_error $? "missing argument to $ac_option"
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 esac
1302 # Check all directory arguments for consistency.
1303 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
1316 case $ac_val in
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 esac
1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1321 done
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1326 build=$build_alias
1327 host=$host_alias
1328 target=$target_alias
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342 test "$silent" = yes && exec 6>/dev/null
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error $? "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error $? "pwd does not report name of working directory"
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1371 /^X\(\/\/\)$/{
1372 s//\1/
1375 /^X\(\/\).*/{
1376 s//\1/
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1384 else
1385 ac_srcdir_defaulted=no
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1413 # Report the --help message.
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419 \`configure' configures Wine 1.5.29 to adapt to many kinds of systems.
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1426 Defaults for the options are specified in brackets.
1428 Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking ...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1450 For better control, use the options below.
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1474 cat <<\_ACEOF
1476 X features:
1477 --x-includes=DIR X include files are in DIR
1478 --x-libraries=DIR X library files are in DIR
1480 System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 _ACEOF
1486 if test -n "$ac_init_help"; then
1487 case $ac_init_help in
1488 short | recursive ) echo "Configuration of Wine 1.5.29:";;
1489 esac
1490 cat <<\_ACEOF
1492 Optional Features:
1493 --disable-option-checking ignore unrecognized --enable/--with options
1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496 --disable-win16 do not include Win16 support
1497 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1498 binaries)
1499 --disable-tests do not build the regression tests
1500 --enable-maintainer-mode
1501 enable maintainer-specific build rules
1502 --disable-largefile omit support for large files
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --without-alsa do not use the Alsa sound support
1508 --without-capi do not use CAPI (ISDN support)
1509 --without-cms do not use CMS (color management support)
1510 --without-coreaudio do not use the CoreAudio sound support
1511 --without-cups do not use CUPS
1512 --without-curses do not use (n)curses
1513 --without-dbus do not use DBus (dynamic device support)
1514 --without-fontconfig do not use fontconfig
1515 --without-freetype do not use the FreeType library
1516 --without-gettext do not use gettext
1517 --with-gettextpo use the GetTextPO library to rebuild po files
1518 --without-gphoto do not use gphoto (Digital Camera support)
1519 --without-glu do not use the GLU library
1520 --without-gnutls do not use GnuTLS (schannel support)
1521 --without-gsm do not use libgsm (GSM 06.10 codec support)
1522 --without-gstreamer do not use GStreamer (codecs support)
1523 --without-hal do not use HAL (dynamic device support)
1524 --without-jpeg do not use JPEG
1525 --without-ldap do not use LDAP
1526 --without-mpg123 do not use the mpg123 library
1527 --without-openal do not use OpenAL
1528 --without-opencl do not use OpenCL
1529 --without-opengl do not use OpenGL
1530 --without-osmesa do not use the OSMesa library
1531 --without-oss do not use the OSS sound support
1532 --without-png do not use PNG
1533 --without-pthread do not use the pthread library
1534 --without-sane do not use SANE (scanner support)
1535 --without-tiff do not use TIFF
1536 --without-v4l do not use v4l1 (v4l support)
1537 --without-xcomposite do not use the Xcomposite extension
1538 --without-xcursor do not use the Xcursor extension
1539 --without-xinerama do not use Xinerama (multi-monitor support)
1540 --without-xinput do not use the Xinput extension
1541 --without-xinput2 do not use the Xinput 2 extension
1542 --without-xml do not use XML
1543 --without-xrandr do not use Xrandr (resolution changes)
1544 --without-xrender do not use the Xrender extension
1545 --without-xshape do not use the Xshape extension
1546 --without-xshm do not use XShm (shared memory extension)
1547 --without-xslt do not use XSLT
1548 --without-xxf86vm do not use XFree video mode extension
1549 --without-zlib do not use Zlib (data compression)
1550 --with-wine-tools=DIR use Wine tools from directory DIR
1551 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1552 --with-x use the X Window System
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1562 CXX C++ compiler command
1563 CXXFLAGS C++ compiler flags
1564 CPP C preprocessor
1565 XMKMF Path to xmkmf, Makefile generator for X Window System
1566 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
1567 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
1568 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
1569 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
1570 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
1571 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
1572 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
1573 HAL_LIBS Linker flags for hal, overriding pkg-config
1574 GNUTLS_CFLAGS
1575 C compiler flags for gnutls, overriding pkg-config
1576 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
1577 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
1578 SANE_LIBS Linker flags for libsane, overriding pkg-config
1579 GPHOTO2_CFLAGS
1580 C compiler flags for libgphoto2, overriding pkg-config
1581 GPHOTO2_LIBS
1582 Linker flags for libgphoto2, overriding pkg-config
1583 FREETYPE_CFLAGS
1584 C compiler flags for freetype2, overriding pkg-config
1585 FREETYPE_LIBS
1586 Linker flags for freetype2, overriding pkg-config
1588 Use these variables to override the choices made by `configure' or to help
1589 it to find libraries and programs with nonstandard names/locations.
1591 Report bugs to <wine-devel@winehq.org>.
1592 Wine home page: <http://www.winehq.org>.
1593 _ACEOF
1594 ac_status=$?
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1603 ac_builddir=.
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 Wine configure 1.5.29
1656 generated by GNU Autoconf 2.69
1658 Copyright (C) 2012 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662 exit
1665 ## ------------------------ ##
1666 ## Autoconf initialization. ##
1667 ## ------------------------ ##
1669 # ac_fn_c_try_compile LINENO
1670 # --------------------------
1671 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_compile ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1700 ac_retval=1
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1705 } # ac_fn_c_try_compile
1707 # ac_fn_cxx_try_compile LINENO
1708 # ----------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_cxx_try_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_cxx_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=1
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1743 } # ac_fn_cxx_try_compile
1745 # ac_fn_c_try_link LINENO
1746 # -----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_link ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext conftest$ac_exeext
1752 if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest$ac_exeext && {
1771 test "$cross_compiling" = yes ||
1772 test -x conftest$ac_exeext
1773 }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=1
1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783 # interfere with the next link command; also delete a directory that is
1784 # left behind by Apple's compiler. We do this before executing the actions.
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_c_try_link
1791 # ac_fn_c_try_cpp LINENO
1792 # ----------------------
1793 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_cpp ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_cpp conftest.$ac_ext"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } > conftest.i && {
1813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=1
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1826 } # ac_fn_c_try_cpp
1828 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1829 # -------------------------------------------------------
1830 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1831 # the include files in INCLUDES and setting the cache variable VAR
1832 # accordingly.
1833 ac_fn_c_check_header_mongrel ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if eval \${$3+:} false; then :
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1842 eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 else
1846 # Is the header compilable?
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1848 $as_echo_n "checking $2 usability... " >&6; }
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 ac_header_compiler=yes
1856 else
1857 ac_header_compiler=no
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1861 $as_echo "$ac_header_compiler" >&6; }
1863 # Is the header present?
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1865 $as_echo_n "checking $2 presence... " >&6; }
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_cpp "$LINENO"; then :
1871 ac_header_preproc=yes
1872 else
1873 ac_header_preproc=no
1875 rm -f conftest.err conftest.i conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1877 $as_echo "$ac_header_preproc" >&6; }
1879 # So? What about this header?
1880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1881 yes:no: )
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1883 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 no:yes:* )
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1889 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1891 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1893 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1895 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898 ( $as_echo "## ------------------------------------ ##
1899 ## Report this to wine-devel@winehq.org ##
1900 ## ------------------------------------ ##"
1901 ) | sed "s/^/$as_me: WARNING: /" >&2
1903 esac
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval \${$3+:} false; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 eval "$3=\$ac_header_compiler"
1911 eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 } # ac_fn_c_check_header_mongrel
1919 # ac_fn_c_try_run LINENO
1920 # ----------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1922 # that executables *can* be run.
1923 ac_fn_c_try_run ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if { { ac_try="$ac_link"
1927 case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>&5
1934 ac_status=$?
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1937 { { case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_try") 2>&5
1944 ac_status=$?
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; }; }; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: program exited with status $ac_status" >&5
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 ac_retval=$ac_status
1955 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 as_fn_set_status $ac_retval
1959 } # ac_fn_c_try_run
1961 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1962 # -------------------------------------------------------
1963 # Tests whether HEADER exists and can be compiled using the include files in
1964 # INCLUDES, setting the cache variable VAR accordingly.
1965 ac_fn_c_check_header_compile ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1976 #include <$2>
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 eval "$3=yes"
1980 else
1981 eval "$3=no"
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 } # ac_fn_c_check_header_compile
1992 # ac_fn_c_check_func LINENO FUNC VAR
1993 # ----------------------------------
1994 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1995 ac_fn_c_check_func ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2002 else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2007 #define $2 innocuous_$2
2009 /* System header to define __stub macros and hopefully few prototypes,
2010 which can conflict with char $2 (); below.
2011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2012 <limits.h> exists even on freestanding compilers. */
2014 #ifdef __STDC__
2015 # include <limits.h>
2016 #else
2017 # include <assert.h>
2018 #endif
2020 #undef $2
2022 /* Override any GCC internal prototype to avoid an error.
2023 Use char because int might match the return type of a GCC
2024 builtin and then its argument prototype would still apply. */
2025 #ifdef __cplusplus
2026 extern "C"
2027 #endif
2028 char $2 ();
2029 /* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032 #if defined __stub_$2 || defined __stub___$2
2033 choke me
2034 #endif
2037 main ()
2039 return $2 ();
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_link "$LINENO"; then :
2045 eval "$3=yes"
2046 else
2047 eval "$3=no"
2049 rm -f core conftest.err conftest.$ac_objext \
2050 conftest$ac_exeext conftest.$ac_ext
2052 eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_func
2059 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2060 # ----------------------------------------------------
2061 # Tries to find if the field MEMBER exists in type AGGR, after including
2062 # INCLUDES, setting cache variable VAR accordingly.
2063 ac_fn_c_check_member ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2067 $as_echo_n "checking for $2.$3... " >&6; }
2068 if eval \${$4+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2075 main ()
2077 static $2 ac_aggr;
2078 if (ac_aggr.$3)
2079 return 0;
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 eval "$4=yes"
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2091 main ()
2093 static $2 ac_aggr;
2094 if (sizeof ac_aggr.$3)
2095 return 0;
2097 return 0;
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 eval "$4=yes"
2102 else
2103 eval "$4=no"
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 eval ac_res=\$$4
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_member
2116 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2117 # -------------------------------------------
2118 # Tests whether TYPE exists after having included INCLUDES, setting cache
2119 # variable VAR accordingly.
2120 ac_fn_c_check_type ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if eval \${$3+:} false; then :
2126 $as_echo_n "(cached) " >&6
2127 else
2128 eval "$3=no"
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2133 main ()
2135 if (sizeof ($2))
2136 return 0;
2138 return 0;
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2146 main ()
2148 if (sizeof (($2)))
2149 return 0;
2151 return 0;
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2156 else
2157 eval "$3=yes"
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 eval ac_res=\$$3
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 } # ac_fn_c_check_type
2169 cat >config.log <<_ACEOF
2170 This file contains any messages produced by compilers while
2171 running configure, to aid debugging if configure makes a mistake.
2173 It was created by Wine $as_me 1.5.29, which was
2174 generated by GNU Autoconf 2.69. Invocation command line was
2176 $ $0 $@
2178 _ACEOF
2179 exec 5>>config.log
2181 cat <<_ASUNAME
2182 ## --------- ##
2183 ## Platform. ##
2184 ## --------- ##
2186 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2187 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2188 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2189 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2190 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2192 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2193 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2195 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2196 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2197 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2198 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2199 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2200 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2201 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2203 _ASUNAME
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 $as_echo "PATH: $as_dir"
2211 done
2212 IFS=$as_save_IFS
2214 } >&5
2216 cat >&5 <<_ACEOF
2219 ## ----------- ##
2220 ## Core tests. ##
2221 ## ----------- ##
2223 _ACEOF
2226 # Keep a trace of the command line.
2227 # Strip out --no-create and --no-recursion so they do not pile up.
2228 # Strip out --silent because we don't want to record it for future runs.
2229 # Also quote any args containing shell meta-characters.
2230 # Make two passes to allow for proper duplicate-argument suppression.
2231 ac_configure_args=
2232 ac_configure_args0=
2233 ac_configure_args1=
2234 ac_must_keep_next=false
2235 for ac_pass in 1 2
2237 for ac_arg
2239 case $ac_arg in
2240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2242 | -silent | --silent | --silen | --sile | --sil)
2243 continue ;;
2244 *\'*)
2245 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 esac
2247 case $ac_pass in
2248 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2250 as_fn_append ac_configure_args1 " '$ac_arg'"
2251 if test $ac_must_keep_next = true; then
2252 ac_must_keep_next=false # Got value, back to normal.
2253 else
2254 case $ac_arg in
2255 *=* | --config-cache | -C | -disable-* | --disable-* \
2256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2258 | -with-* | --with-* | -without-* | --without-* | --x)
2259 case "$ac_configure_args0 " in
2260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2261 esac
2263 -* ) ac_must_keep_next=true ;;
2264 esac
2266 as_fn_append ac_configure_args " '$ac_arg'"
2268 esac
2269 done
2270 done
2271 { ac_configure_args0=; unset ac_configure_args0;}
2272 { ac_configure_args1=; unset ac_configure_args1;}
2274 # When interrupted or exit'd, cleanup temporary files, and complete
2275 # config.log. We remove comments because anyway the quotes in there
2276 # would cause problems or look ugly.
2277 # WARNING: Use '\'' to represent an apostrophe within the trap.
2278 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2279 trap 'exit_status=$?
2280 # Save into config.log some information that might help in debugging.
2282 echo
2284 $as_echo "## ---------------- ##
2285 ## Cache variables. ##
2286 ## ---------------- ##"
2287 echo
2288 # The following way of writing the cache mishandles newlines in values,
2290 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2291 eval ac_val=\$$ac_var
2292 case $ac_val in #(
2293 *${as_nl}*)
2294 case $ac_var in #(
2295 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2297 esac
2298 case $ac_var in #(
2299 _ | IFS | as_nl) ;; #(
2300 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2301 *) { eval $ac_var=; unset $ac_var;} ;;
2302 esac ;;
2303 esac
2304 done
2305 (set) 2>&1 |
2306 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2307 *${as_nl}ac_space=\ *)
2308 sed -n \
2309 "s/'\''/'\''\\\\'\'''\''/g;
2310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2311 ;; #(
2313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2315 esac |
2316 sort
2318 echo
2320 $as_echo "## ----------------- ##
2321 ## Output variables. ##
2322 ## ----------------- ##"
2323 echo
2324 for ac_var in $ac_subst_vars
2326 eval ac_val=\$$ac_var
2327 case $ac_val in
2328 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329 esac
2330 $as_echo "$ac_var='\''$ac_val'\''"
2331 done | sort
2332 echo
2334 if test -n "$ac_subst_files"; then
2335 $as_echo "## ------------------- ##
2336 ## File substitutions. ##
2337 ## ------------------- ##"
2338 echo
2339 for ac_var in $ac_subst_files
2341 eval ac_val=\$$ac_var
2342 case $ac_val in
2343 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2344 esac
2345 $as_echo "$ac_var='\''$ac_val'\''"
2346 done | sort
2347 echo
2350 if test -s confdefs.h; then
2351 $as_echo "## ----------- ##
2352 ## confdefs.h. ##
2353 ## ----------- ##"
2354 echo
2355 cat confdefs.h
2356 echo
2358 test "$ac_signal" != 0 &&
2359 $as_echo "$as_me: caught signal $ac_signal"
2360 $as_echo "$as_me: exit $exit_status"
2361 } >&5
2362 rm -f core *.core core.conftest.* &&
2363 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2364 exit $exit_status
2366 for ac_signal in 1 2 13 15; do
2367 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2368 done
2369 ac_signal=0
2371 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2372 rm -f -r conftest* confdefs.h
2374 $as_echo "/* confdefs.h */" > confdefs.h
2376 # Predefined preprocessor variables.
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_NAME "$PACKAGE_NAME"
2380 _ACEOF
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2384 _ACEOF
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2388 _ACEOF
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_STRING "$PACKAGE_STRING"
2392 _ACEOF
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2396 _ACEOF
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_URL "$PACKAGE_URL"
2400 _ACEOF
2403 # Let the site file select an alternate cache file if it wants to.
2404 # Prefer an explicitly selected file to automatically selected ones.
2405 ac_site_file1=NONE
2406 ac_site_file2=NONE
2407 if test -n "$CONFIG_SITE"; then
2408 # We do not want a PATH search for config.site.
2409 case $CONFIG_SITE in #((
2410 -*) ac_site_file1=./$CONFIG_SITE;;
2411 */*) ac_site_file1=$CONFIG_SITE;;
2412 *) ac_site_file1=./$CONFIG_SITE;;
2413 esac
2414 elif test "x$prefix" != xNONE; then
2415 ac_site_file1=$prefix/share/config.site
2416 ac_site_file2=$prefix/etc/config.site
2417 else
2418 ac_site_file1=$ac_default_prefix/share/config.site
2419 ac_site_file2=$ac_default_prefix/etc/config.site
2421 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2423 test "x$ac_site_file" = xNONE && continue
2424 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2426 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2427 sed 's/^/| /' "$ac_site_file" >&5
2428 . "$ac_site_file" \
2429 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431 as_fn_error $? "failed to load site script $ac_site_file
2432 See \`config.log' for more details" "$LINENO" 5; }
2434 done
2436 if test -r "$cache_file"; then
2437 # Some versions of bash will fail to source /dev/null (special files
2438 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2439 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2441 $as_echo "$as_me: loading cache $cache_file" >&6;}
2442 case $cache_file in
2443 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2444 *) . "./$cache_file";;
2445 esac
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2449 $as_echo "$as_me: creating cache $cache_file" >&6;}
2450 >$cache_file
2453 # Check that the precious variables saved in the cache have kept the same
2454 # value.
2455 ac_cache_corrupted=false
2456 for ac_var in $ac_precious_vars; do
2457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458 eval ac_new_set=\$ac_env_${ac_var}_set
2459 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460 eval ac_new_val=\$ac_env_${ac_var}_value
2461 case $ac_old_set,$ac_new_set in
2462 set,)
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2464 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2465 ac_cache_corrupted=: ;;
2466 ,set)
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,);;
2472 if test "x$ac_old_val" != "x$ac_new_val"; then
2473 # differences in whitespace do not lead to failure.
2474 ac_old_val_w=`echo x $ac_old_val`
2475 ac_new_val_w=`echo x $ac_new_val`
2476 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2478 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2479 ac_cache_corrupted=:
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2482 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2483 eval $ac_var=\$ac_old_val
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2486 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2488 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2489 fi;;
2490 esac
2491 # Pass precious variables to config.status.
2492 if test "$ac_new_set" = set; then
2493 case $ac_new_val in
2494 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495 *) ac_arg=$ac_var=$ac_new_val ;;
2496 esac
2497 case " $ac_configure_args " in
2498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2499 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500 esac
2502 done
2503 if $ac_cache_corrupted; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2508 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2510 ## -------------------- ##
2511 ## Main body of script. ##
2512 ## -------------------- ##
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522 ac_config_headers="$ac_config_headers include/config.h"
2524 ac_aux_dir=
2525 for ac_dir in tools "$srcdir"/tools; do
2526 if test -f "$ac_dir/install-sh"; then
2527 ac_aux_dir=$ac_dir
2528 ac_install_sh="$ac_aux_dir/install-sh -c"
2529 break
2530 elif test -f "$ac_dir/install.sh"; then
2531 ac_aux_dir=$ac_dir
2532 ac_install_sh="$ac_aux_dir/install.sh -c"
2533 break
2534 elif test -f "$ac_dir/shtool"; then
2535 ac_aux_dir=$ac_dir
2536 ac_install_sh="$ac_aux_dir/shtool install -c"
2537 break
2539 done
2540 if test -z "$ac_aux_dir"; then
2541 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2544 # These three variables are undocumented and unsupported,
2545 # and are intended to be withdrawn in a future Autoconf release.
2546 # They can cause serious problems if a builder's source tree is in a directory
2547 # whose full name contains unusual characters.
2548 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2549 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2550 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2556 # Check whether --enable-win16 was given.
2557 if test "${enable_win16+set}" = set; then :
2558 enableval=$enable_win16;
2561 # Check whether --enable-win64 was given.
2562 if test "${enable_win64+set}" = set; then :
2563 enableval=$enable_win64;
2566 # Check whether --enable-tests was given.
2567 if test "${enable_tests+set}" = set; then :
2568 enableval=$enable_tests;
2571 # Check whether --enable-maintainer-mode was given.
2572 if test "${enable_maintainer_mode+set}" = set; then :
2573 enableval=$enable_maintainer_mode;
2578 # Check whether --with-alsa was given.
2579 if test "${with_alsa+set}" = set; then :
2580 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2584 # Check whether --with-capi was given.
2585 if test "${with_capi+set}" = set; then :
2586 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2590 # Check whether --with-cms was given.
2591 if test "${with_cms+set}" = set; then :
2592 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2596 # Check whether --with-coreaudio was given.
2597 if test "${with_coreaudio+set}" = set; then :
2598 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2602 # Check whether --with-cups was given.
2603 if test "${with_cups+set}" = set; then :
2604 withval=$with_cups;
2608 # Check whether --with-curses was given.
2609 if test "${with_curses+set}" = set; then :
2610 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2614 # Check whether --with-dbus was given.
2615 if test "${with_dbus+set}" = set; then :
2616 withval=$with_dbus;
2620 # Check whether --with-fontconfig was given.
2621 if test "${with_fontconfig+set}" = set; then :
2622 withval=$with_fontconfig;
2626 # Check whether --with-freetype was given.
2627 if test "${with_freetype+set}" = set; then :
2628 withval=$with_freetype;
2632 # Check whether --with-gettext was given.
2633 if test "${with_gettext+set}" = set; then :
2634 withval=$with_gettext;
2638 # Check whether --with-gettextpo was given.
2639 if test "${with_gettextpo+set}" = set; then :
2640 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2644 # Check whether --with-gphoto was given.
2645 if test "${with_gphoto+set}" = set; then :
2646 withval=$with_gphoto;
2650 # Check whether --with-glu was given.
2651 if test "${with_glu+set}" = set; then :
2652 withval=$with_glu;
2656 # Check whether --with-gnutls was given.
2657 if test "${with_gnutls+set}" = set; then :
2658 withval=$with_gnutls;
2662 # Check whether --with-gsm was given.
2663 if test "${with_gsm+set}" = set; then :
2664 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2668 # Check whether --with-gstreamer was given.
2669 if test "${with_gstreamer+set}" = set; then :
2670 withval=$with_gstreamer;
2674 # Check whether --with-hal was given.
2675 if test "${with_hal+set}" = set; then :
2676 withval=$with_hal;
2680 # Check whether --with-jpeg was given.
2681 if test "${with_jpeg+set}" = set; then :
2682 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2686 # Check whether --with-ldap was given.
2687 if test "${with_ldap+set}" = set; then :
2688 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2692 # Check whether --with-mpg123 was given.
2693 if test "${with_mpg123+set}" = set; then :
2694 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2698 # Check whether --with-openal was given.
2699 if test "${with_openal+set}" = set; then :
2700 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2704 # Check whether --with-opencl was given.
2705 if test "${with_opencl+set}" = set; then :
2706 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2710 # Check whether --with-opengl was given.
2711 if test "${with_opengl+set}" = set; then :
2712 withval=$with_opengl;
2716 # Check whether --with-osmesa was given.
2717 if test "${with_osmesa+set}" = set; then :
2718 withval=$with_osmesa;
2722 # Check whether --with-oss was given.
2723 if test "${with_oss+set}" = set; then :
2724 withval=$with_oss;
2728 # Check whether --with-png was given.
2729 if test "${with_png+set}" = set; then :
2730 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2734 # Check whether --with-pthread was given.
2735 if test "${with_pthread+set}" = set; then :
2736 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2740 # Check whether --with-sane was given.
2741 if test "${with_sane+set}" = set; then :
2742 withval=$with_sane;
2746 # Check whether --with-tiff was given.
2747 if test "${with_tiff+set}" = set; then :
2748 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2752 # Check whether --with-v4l was given.
2753 if test "${with_v4l+set}" = set; then :
2754 withval=$with_v4l;
2758 # Check whether --with-xcomposite was given.
2759 if test "${with_xcomposite+set}" = set; then :
2760 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2764 # Check whether --with-xcursor was given.
2765 if test "${with_xcursor+set}" = set; then :
2766 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2770 # Check whether --with-xinerama was given.
2771 if test "${with_xinerama+set}" = set; then :
2772 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2776 # Check whether --with-xinput was given.
2777 if test "${with_xinput+set}" = set; then :
2778 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2782 # Check whether --with-xinput2 was given.
2783 if test "${with_xinput2+set}" = set; then :
2784 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2788 # Check whether --with-xml was given.
2789 if test "${with_xml+set}" = set; then :
2790 withval=$with_xml;
2794 # Check whether --with-xrandr was given.
2795 if test "${with_xrandr+set}" = set; then :
2796 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2800 # Check whether --with-xrender was given.
2801 if test "${with_xrender+set}" = set; then :
2802 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2806 # Check whether --with-xshape was given.
2807 if test "${with_xshape+set}" = set; then :
2808 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2812 # Check whether --with-xshm was given.
2813 if test "${with_xshm+set}" = set; then :
2814 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2818 # Check whether --with-xslt was given.
2819 if test "${with_xslt+set}" = set; then :
2820 withval=$with_xslt;
2824 # Check whether --with-xxf86vm was given.
2825 if test "${with_xxf86vm+set}" = set; then :
2826 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
2830 # Check whether --with-zlib was given.
2831 if test "${with_zlib+set}" = set; then :
2832 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2837 # Check whether --with-wine-tools was given.
2838 if test "${with_wine_tools+set}" = set; then :
2839 withval=$with_wine_tools;
2843 # Check whether --with-wine64 was given.
2844 if test "${with_wine64+set}" = set; then :
2845 withval=$with_wine64;
2849 # Make sure we can run config.sub.
2850 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2851 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2854 $as_echo_n "checking build system type... " >&6; }
2855 if ${ac_cv_build+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 ac_build_alias=$build_alias
2859 test "x$ac_build_alias" = x &&
2860 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2861 test "x$ac_build_alias" = x &&
2862 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2863 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2864 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2868 $as_echo "$ac_cv_build" >&6; }
2869 case $ac_cv_build in
2870 *-*-*) ;;
2871 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2872 esac
2873 build=$ac_cv_build
2874 ac_save_IFS=$IFS; IFS='-'
2875 set x $ac_cv_build
2876 shift
2877 build_cpu=$1
2878 build_vendor=$2
2879 shift; shift
2880 # Remember, the first character of IFS is used to create $*,
2881 # except with old shells:
2882 build_os=$*
2883 IFS=$ac_save_IFS
2884 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2888 $as_echo_n "checking host system type... " >&6; }
2889 if ${ac_cv_host+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test "x$host_alias" = x; then
2893 ac_cv_host=$ac_cv_build
2894 else
2895 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2896 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2901 $as_echo "$ac_cv_host" >&6; }
2902 case $ac_cv_host in
2903 *-*-*) ;;
2904 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2905 esac
2906 host=$ac_cv_host
2907 ac_save_IFS=$IFS; IFS='-'
2908 set x $ac_cv_host
2909 shift
2910 host_cpu=$1
2911 host_vendor=$2
2912 shift; shift
2913 # Remember, the first character of IFS is used to create $*,
2914 # except with old shells:
2915 host_os=$*
2916 IFS=$ac_save_IFS
2917 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2921 case "$srcdir" in
2922 .) ;;
2923 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2924 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2925 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2926 fi ;;
2927 esac
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2931 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2932 set x ${MAKE-make}
2933 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2934 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 cat >conftest.make <<\_ACEOF
2938 SHELL = /bin/sh
2939 all:
2940 @echo '@@@%%%=$(MAKE)=@@@%%%'
2941 _ACEOF
2942 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2943 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2944 *@@@%%%=?*=@@@%%%*)
2945 eval ac_cv_prog_make_${ac_make}_set=yes;;
2947 eval ac_cv_prog_make_${ac_make}_set=no;;
2948 esac
2949 rm -f conftest.make
2951 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2953 $as_echo "yes" >&6; }
2954 SET_MAKE=
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 SET_MAKE="MAKE=${MAKE-make}"
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 if test -n "$ac_tool_prefix"; then
2967 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2988 done
2989 done
2990 IFS=$as_save_IFS
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3005 if test -z "$ac_cv_prog_CC"; then
3006 ac_ct_CC=$CC
3007 # Extract the first word of "gcc", so it can be a program name with args.
3008 set dummy gcc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$ac_ct_CC"; then
3015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_ac_ct_CC="gcc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3028 done
3029 done
3030 IFS=$as_save_IFS
3034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035 if test -n "$ac_ct_CC"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3037 $as_echo "$ac_ct_CC" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3043 if test "x$ac_ct_CC" = x; then
3044 CC=""
3045 else
3046 case $cross_compiling:$ac_tool_warned in
3047 yes:)
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050 ac_tool_warned=yes ;;
3051 esac
3052 CC=$ac_ct_CC
3054 else
3055 CC="$ac_cv_prog_CC"
3058 if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_CC="${ac_tool_prefix}cc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3083 IFS=$as_save_IFS
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3099 if test -z "$CC"; then
3100 # Extract the first word of "cc", so it can be a program name with args.
3101 set dummy cc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_CC+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 ac_prog_rejected=no
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3119 ac_prog_rejected=yes
3120 continue
3122 ac_cv_prog_CC="cc"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3128 IFS=$as_save_IFS
3130 if test $ac_prog_rejected = yes; then
3131 # We found a bogon in the path, so make sure we never use it.
3132 set dummy $ac_cv_prog_CC
3133 shift
3134 if test $# != 0; then
3135 # We chose a different compiler from the bogus one.
3136 # However, it has the same basename, so the bogon will be chosen
3137 # first if we set CC to just the basename; use the full file name.
3138 shift
3139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3155 if test -z "$CC"; then
3156 if test -n "$ac_tool_prefix"; then
3157 for ac_prog in cl.exe
3159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3180 done
3181 done
3182 IFS=$as_save_IFS
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3196 test -n "$CC" && break
3197 done
3199 if test -z "$CC"; then
3200 ac_ct_CC=$CC
3201 for ac_prog in cl.exe
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 if test -n "$ac_ct_CC"; then
3211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_ac_ct_CC="$ac_prog"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3224 done
3225 done
3226 IFS=$as_save_IFS
3230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231 if test -n "$ac_ct_CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233 $as_echo "$ac_ct_CC" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3240 test -n "$ac_ct_CC" && break
3241 done
3243 if test "x$ac_ct_CC" = x; then
3244 CC=""
3245 else
3246 case $cross_compiling:$ac_tool_warned in
3247 yes:)
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250 ac_tool_warned=yes ;;
3251 esac
3252 CC=$ac_ct_CC
3259 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error $? "no acceptable C compiler found in \$PATH
3262 See \`config.log' for more details" "$LINENO" 5; }
3264 # Provide some information about the compiler.
3265 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3266 set X $ac_compile
3267 ac_compiler=$2
3268 for ac_option in --version -v -V -qversion; do
3269 { { ac_try="$ac_compiler $ac_option >&5"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3277 ac_status=$?
3278 if test -s conftest.err; then
3279 sed '10a\
3280 ... rest of stderr output deleted ...
3281 10q' conftest.err >conftest.er1
3282 cat conftest.er1 >&5
3284 rm -f conftest.er1 conftest.err
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }
3287 done
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3293 main ()
3297 return 0;
3299 _ACEOF
3300 ac_clean_files_save=$ac_clean_files
3301 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3302 # Try to create an executable without -o first, disregard a.out.
3303 # It will help us diagnose broken compilers, and finding out an intuition
3304 # of exeext.
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3306 $as_echo_n "checking whether the C compiler works... " >&6; }
3307 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309 # The possible output files:
3310 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312 ac_rmfiles=
3313 for ac_file in $ac_files
3315 case $ac_file in
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 esac
3319 done
3320 rm -f $ac_rmfiles
3322 if { { ac_try="$ac_link_default"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link_default") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3335 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3336 # so that the user can short-circuit this test for compilers unknown to
3337 # Autoconf.
3338 for ac_file in $ac_files ''
3340 test -f "$ac_file" || continue
3341 case $ac_file in
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344 [ab].out )
3345 # We found the default executable, but exeext='' is most
3346 # certainly right.
3347 break;;
3348 *.* )
3349 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3350 then :; else
3351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 # We set ac_cv_exeext here because the later test for it is not
3354 # safe: cross compilers may not add the suffix if given an `-o'
3355 # argument, so we may need to know it at that point already.
3356 # Even if this section looks crufty: it has the advantage of
3357 # actually working.
3358 break;;
3360 break;;
3361 esac
3362 done
3363 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365 else
3366 ac_file=''
3368 if test -z "$ac_file"; then :
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error 77 "C compiler cannot create executables
3377 See \`config.log' for more details" "$LINENO" 5; }
3378 else
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3380 $as_echo "yes" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3383 $as_echo_n "checking for C compiler default output file name... " >&6; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3385 $as_echo "$ac_file" >&6; }
3386 ac_exeext=$ac_cv_exeext
3388 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3391 $as_echo_n "checking for suffix of executables... " >&6; }
3392 if { { ac_try="$ac_link"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_link") 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }; then :
3403 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3404 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3405 # work properly (i.e., refer to `conftest.exe'), while it won't with
3406 # `rm'.
3407 for ac_file in conftest.exe conftest conftest.*; do
3408 test -f "$ac_file" || continue
3409 case $ac_file in
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3411 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 break;;
3413 * ) break;;
3414 esac
3415 done
3416 else
3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3420 See \`config.log' for more details" "$LINENO" 5; }
3422 rm -f conftest conftest$ac_cv_exeext
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3424 $as_echo "$ac_cv_exeext" >&6; }
3426 rm -f conftest.$ac_ext
3427 EXEEXT=$ac_cv_exeext
3428 ac_exeext=$EXEEXT
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3431 #include <stdio.h>
3433 main ()
3435 FILE *f = fopen ("conftest.out", "w");
3436 return ferror (f) || fclose (f) != 0;
3439 return 0;
3441 _ACEOF
3442 ac_clean_files="$ac_clean_files conftest.out"
3443 # Check that the compiler produces executables we can run. If not, either
3444 # the compiler is broken, or we cross compile.
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3446 $as_echo_n "checking whether we are cross compiling... " >&6; }
3447 if test "$cross_compiling" != yes; then
3448 { { ac_try="$ac_link"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }
3459 if { ac_try='./conftest$ac_cv_exeext'
3460 { { case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_try") 2>&5
3467 ac_status=$?
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }; }; then
3470 cross_compiling=no
3471 else
3472 if test "$cross_compiling" = maybe; then
3473 cross_compiling=yes
3474 else
3475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error $? "cannot run C compiled programs.
3478 If you meant to cross compile, use \`--host'.
3479 See \`config.log' for more details" "$LINENO" 5; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3484 $as_echo "$cross_compiling" >&6; }
3486 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3487 ac_clean_files=$ac_clean_files_save
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3489 $as_echo_n "checking for suffix of object files... " >&6; }
3490 if ${ac_cv_objext+:} false; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3497 main ()
3501 return 0;
3503 _ACEOF
3504 rm -f conftest.o conftest.obj
3505 if { { ac_try="$ac_compile"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_compile") 2>&5
3513 ac_status=$?
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; then :
3516 for ac_file in conftest.o conftest.obj conftest.*; do
3517 test -f "$ac_file" || continue;
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3520 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3521 break;;
3522 esac
3523 done
3524 else
3525 $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $? "cannot compute suffix of object files: cannot compile
3531 See \`config.log' for more details" "$LINENO" 5; }
3533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3536 $as_echo "$ac_cv_objext" >&6; }
3537 OBJEXT=$ac_cv_objext
3538 ac_objext=$OBJEXT
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3540 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3541 if ${ac_cv_c_compiler_gnu+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3548 main ()
3550 #ifndef __GNUC__
3551 choke me
3552 #endif
3555 return 0;
3557 _ACEOF
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_compiler_gnu=yes
3560 else
3561 ac_compiler_gnu=no
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3568 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3569 if test $ac_compiler_gnu = yes; then
3570 GCC=yes
3571 else
3572 GCC=
3574 ac_test_CFLAGS=${CFLAGS+set}
3575 ac_save_CFLAGS=$CFLAGS
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3577 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3578 if ${ac_cv_prog_cc_g+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 ac_save_c_werror_flag=$ac_c_werror_flag
3582 ac_c_werror_flag=yes
3583 ac_cv_prog_cc_g=no
3584 CFLAGS="-g"
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3589 main ()
3593 return 0;
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_g=yes
3598 else
3599 CFLAGS=""
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3604 main ()
3608 return 0;
3610 _ACEOF
3611 if ac_fn_c_try_compile "$LINENO"; then :
3613 else
3614 ac_c_werror_flag=$ac_save_c_werror_flag
3615 CFLAGS="-g"
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3620 main ()
3624 return 0;
3626 _ACEOF
3627 if ac_fn_c_try_compile "$LINENO"; then :
3628 ac_cv_prog_cc_g=yes
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3638 $as_echo "$ac_cv_prog_cc_g" >&6; }
3639 if test "$ac_test_CFLAGS" = set; then
3640 CFLAGS=$ac_save_CFLAGS
3641 elif test $ac_cv_prog_cc_g = yes; then
3642 if test "$GCC" = yes; then
3643 CFLAGS="-g -O2"
3644 else
3645 CFLAGS="-g"
3647 else
3648 if test "$GCC" = yes; then
3649 CFLAGS="-O2"
3650 else
3651 CFLAGS=
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3655 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3656 if ${ac_cv_prog_cc_c89+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 ac_cv_prog_cc_c89=no
3660 ac_save_CC=$CC
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3663 #include <stdarg.h>
3664 #include <stdio.h>
3665 struct stat;
3666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3667 struct buf { int x; };
3668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3669 static char *e (p, i)
3670 char **p;
3671 int i;
3673 return p[i];
3675 static char *f (char * (*g) (char **, int), char **p, ...)
3677 char *s;
3678 va_list v;
3679 va_start (v,p);
3680 s = g (p, va_arg (v,int));
3681 va_end (v);
3682 return s;
3685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3686 function prototypes and stuff, but not '\xHH' hex character constants.
3687 These don't provoke an error unfortunately, instead are silently treated
3688 as 'x'. The following induces an error, until -std is added to get
3689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3690 array size at least. It's necessary to write '\x00'==0 to get something
3691 that's true only with -std. */
3692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3695 inside strings and character constants. */
3696 #define FOO(x) 'x'
3697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699 int test (int i, double x);
3700 struct s1 {int (*f) (int a);};
3701 struct s2 {int (*f) (double a);};
3702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3703 int argc;
3704 char **argv;
3706 main ()
3708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3710 return 0;
3712 _ACEOF
3713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716 CC="$ac_save_CC $ac_arg"
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_cv_prog_cc_c89=$ac_arg
3720 rm -f core conftest.err conftest.$ac_objext
3721 test "x$ac_cv_prog_cc_c89" != "xno" && break
3722 done
3723 rm -f conftest.$ac_ext
3724 CC=$ac_save_CC
3727 # AC_CACHE_VAL
3728 case "x$ac_cv_prog_cc_c89" in
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3731 $as_echo "none needed" >&6; } ;;
3732 xno)
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3734 $as_echo "unsupported" >&6; } ;;
3736 CC="$CC $ac_cv_prog_cc_c89"
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3738 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3739 esac
3740 if test "x$ac_cv_prog_cc_c89" != xno; then :
3744 ac_ext=c
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 ac_ext=cpp
3751 ac_cpp='$CXXCPP $CPPFLAGS'
3752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3755 if test -z "$CXX"; then
3756 if test -n "$CCC"; then
3757 CXX=$CCC
3758 else
3759 if test -n "$ac_tool_prefix"; then
3760 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763 set dummy $ac_tool_prefix$ac_prog; 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_CXX+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 if test -n "$CXX"; then
3770 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3783 done
3784 done
3785 IFS=$as_save_IFS
3789 CXX=$ac_cv_prog_CXX
3790 if test -n "$CXX"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3792 $as_echo "$CXX" >&6; }
3793 else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3799 test -n "$CXX" && break
3800 done
3802 if test -z "$CXX"; then
3803 ac_ct_CXX=$CXX
3804 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3806 # Extract the first word of "$ac_prog", so it can be a program name with args.
3807 set dummy $ac_prog; ac_word=$2
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 $as_echo_n "checking for $ac_word... " >&6; }
3810 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3811 $as_echo_n "(cached) " >&6
3812 else
3813 if test -n "$ac_ct_CXX"; then
3814 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3815 else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823 ac_cv_prog_ac_ct_CXX="$ac_prog"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3827 done
3828 done
3829 IFS=$as_save_IFS
3833 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3834 if test -n "$ac_ct_CXX"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3836 $as_echo "$ac_ct_CXX" >&6; }
3837 else
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3843 test -n "$ac_ct_CXX" && break
3844 done
3846 if test "x$ac_ct_CXX" = x; then
3847 CXX="g++"
3848 else
3849 case $cross_compiling:$ac_tool_warned in
3850 yes:)
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853 ac_tool_warned=yes ;;
3854 esac
3855 CXX=$ac_ct_CXX
3861 # Provide some information about the compiler.
3862 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3863 set X $ac_compile
3864 ac_compiler=$2
3865 for ac_option in --version -v -V -qversion; do
3866 { { ac_try="$ac_compiler $ac_option >&5"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3874 ac_status=$?
3875 if test -s conftest.err; then
3876 sed '10a\
3877 ... rest of stderr output deleted ...
3878 10q' conftest.err >conftest.er1
3879 cat conftest.er1 >&5
3881 rm -f conftest.er1 conftest.err
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }
3884 done
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3887 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3888 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3895 main ()
3897 #ifndef __GNUC__
3898 choke me
3899 #endif
3902 return 0;
3904 _ACEOF
3905 if ac_fn_cxx_try_compile "$LINENO"; then :
3906 ac_compiler_gnu=yes
3907 else
3908 ac_compiler_gnu=no
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3915 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3916 if test $ac_compiler_gnu = yes; then
3917 GXX=yes
3918 else
3919 GXX=
3921 ac_test_CXXFLAGS=${CXXFLAGS+set}
3922 ac_save_CXXFLAGS=$CXXFLAGS
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3924 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3925 if ${ac_cv_prog_cxx_g+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3929 ac_cxx_werror_flag=yes
3930 ac_cv_prog_cxx_g=no
3931 CXXFLAGS="-g"
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3936 main ()
3940 return 0;
3942 _ACEOF
3943 if ac_fn_cxx_try_compile "$LINENO"; then :
3944 ac_cv_prog_cxx_g=yes
3945 else
3946 CXXFLAGS=""
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3951 main ()
3955 return 0;
3957 _ACEOF
3958 if ac_fn_cxx_try_compile "$LINENO"; then :
3960 else
3961 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3962 CXXFLAGS="-g"
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3967 main ()
3971 return 0;
3973 _ACEOF
3974 if ac_fn_cxx_try_compile "$LINENO"; then :
3975 ac_cv_prog_cxx_g=yes
3977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3985 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3986 if test "$ac_test_CXXFLAGS" = set; then
3987 CXXFLAGS=$ac_save_CXXFLAGS
3988 elif test $ac_cv_prog_cxx_g = yes; then
3989 if test "$GXX" = yes; then
3990 CXXFLAGS="-g -O2"
3991 else
3992 CXXFLAGS="-g"
3994 else
3995 if test "$GXX" = yes; then
3996 CXXFLAGS="-O2"
3997 else
3998 CXXFLAGS=
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 if test -n "$ac_tool_prefix"; then
4008 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4009 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if ${ac_cv_prog_CPPBIN+:} false; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 if test -n "$CPPBIN"; then
4016 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4029 done
4030 done
4031 IFS=$as_save_IFS
4035 CPPBIN=$ac_cv_prog_CPPBIN
4036 if test -n "$CPPBIN"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4038 $as_echo "$CPPBIN" >&6; }
4039 else
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4046 if test -z "$ac_cv_prog_CPPBIN"; then
4047 ac_ct_CPPBIN=$CPPBIN
4048 # Extract the first word of "cpp", so it can be a program name with args.
4049 set dummy cpp; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 if test -n "$ac_ct_CPPBIN"; then
4056 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065 ac_cv_prog_ac_ct_CPPBIN="cpp"
4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 break 2
4069 done
4070 done
4071 IFS=$as_save_IFS
4075 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4076 if test -n "$ac_ct_CPPBIN"; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4078 $as_echo "$ac_ct_CPPBIN" >&6; }
4079 else
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4084 if test "x$ac_ct_CPPBIN" = x; then
4085 CPPBIN="cpp"
4086 else
4087 case $cross_compiling:$ac_tool_warned in
4088 yes:)
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4091 ac_tool_warned=yes ;;
4092 esac
4093 CPPBIN=$ac_ct_CPPBIN
4095 else
4096 CPPBIN="$ac_cv_prog_CPPBIN"
4100 cat >>confdefs.h <<_ACEOF
4101 #define EXEEXT "$ac_exeext"
4102 _ACEOF
4105 case $host in
4106 *-darwin*)
4107 if test "x$enable_win64" = "xyes"
4108 then
4109 CC="$CC -m64"
4110 CXX="$CXX -m64"
4111 host_cpu="x86_64"
4112 notice_platform="64-bit "
4113 TARGETFLAGS="-m64"
4115 else
4116 CC="$CC -m32"
4117 CXX="$CXX -m32"
4118 host_cpu="i386"
4119 notice_platform="32-bit "
4120 TARGETFLAGS="-m32"
4122 enable_win16=${enable_win16:-yes}
4124 with_fontconfig=${with_fontconfig:-no}
4126 x86_64*)
4127 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4128 then
4129 CC="$CC -m32"
4130 CXX="$CXX -m32"
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4132 $as_echo_n "checking whether $CC works... " >&6; }
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4138 main ()
4142 return 0;
4144 _ACEOF
4145 if ac_fn_c_try_link "$LINENO"; then :
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4147 $as_echo "yes" >&6; }
4148 else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4151 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4153 rm -f core conftest.err conftest.$ac_objext \
4154 conftest$ac_exeext conftest.$ac_ext
4155 host_cpu="i386"
4156 notice_platform="32-bit "
4157 TARGETFLAGS="-m32"
4159 enable_win16=${enable_win16:-yes}
4160 else
4161 if test "x${GCC}" = "xyes"
4162 then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4164 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167 #include <stdarg.h>
4169 main ()
4171 void func(__builtin_ms_va_list *args);
4173 return 0;
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4178 $as_echo "yes" >&6; }
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 TARGETFLAGS="-m64"
4190 arm*)
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4192 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 int ac_test(int i) { return i; }
4197 main ()
4199 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4201 return 0;
4203 _ACEOF
4204 if ac_fn_c_try_link "$LINENO"; then :
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4206 $as_echo "yes" >&6; }
4207 else
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4210 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4212 rm -f core conftest.err conftest.$ac_objext \
4213 conftest$ac_exeext conftest.$ac_ext
4214 CFLAGS="$CFLAGS -marm"
4216 *-mingw32*|*-cygwin*)
4217 enable_win16=${enable_win16:-no}
4218 CFLAGS="$CFLAGS -D_WIN32"
4220 i[3456789]86*)
4221 enable_win16=${enable_win16:-yes}
4223 esac
4225 enable_win16=${enable_win16:-no}
4226 enable_win64=${enable_win64:-no}
4228 enable_winetest=${enable_winetest:-$enable_tests}
4230 if test -n "$with_wine64"
4231 then
4232 if test "x$enable_win64" = "xyes"
4233 then
4234 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4235 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4237 WOW64_DISABLE=\#
4239 enable_fonts=${enable_fonts:-no}
4240 enable_server=${enable_server:-no}
4241 enable_tools=${enable_tools:-no}
4242 elif test "x$enable_win64" = "xyes"
4243 then
4244 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4248 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4249 if ${wine_cv_toolsdir+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 wine_cv_toolsdir="$with_wine_tools"
4253 if test -z "$with_wine_tools"; then
4254 if test "$cross_compiling" = "yes"; then
4255 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4256 elif test -n "$with_wine64"; then
4257 wine_cv_toolsdir="$with_wine64"
4260 if test -z "$wine_cv_toolsdir"; then
4261 wine_cv_toolsdir="\$(top_builddir)"
4262 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4263 case "$wine_cv_toolsdir" in
4264 /*) ;;
4265 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4266 esac
4267 else
4268 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4272 $as_echo "$wine_cv_toolsdir" >&6; }
4273 TOOLSDIR=$wine_cv_toolsdir
4275 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4276 then
4277 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4281 for ac_prog in flex
4283 # Extract the first word of "$ac_prog", so it can be a program name with args.
4284 set dummy $ac_prog; ac_word=$2
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if ${ac_cv_prog_FLEX+:} false; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 if test -n "$FLEX"; then
4291 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_FLEX="$ac_prog"
4301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4306 IFS=$as_save_IFS
4310 FLEX=$ac_cv_prog_FLEX
4311 if test -n "$FLEX"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4313 $as_echo "$FLEX" >&6; }
4314 else
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4320 test -n "$FLEX" && break
4321 done
4322 test -n "$FLEX" || FLEX="none"
4324 if test "$FLEX" = "none"
4325 then
4326 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4329 $as_echo_n "checking whether flex is recent enough... " >&6; }
4330 cat >conftest.l <<EOF
4331 %top{
4332 #include "prediluvian.h"
4336 if $FLEX -t conftest.l >/dev/null 2>&5
4337 then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4339 $as_echo "yes" >&6; }
4340 else
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4346 for ac_prog in bison
4348 # Extract the first word of "$ac_prog", so it can be a program name with args.
4349 set dummy $ac_prog; ac_word=$2
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if ${ac_cv_prog_BISON+:} false; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 if test -n "$BISON"; then
4356 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_BISON="$ac_prog"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4371 IFS=$as_save_IFS
4375 BISON=$ac_cv_prog_BISON
4376 if test -n "$BISON"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4378 $as_echo "$BISON" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4385 test -n "$BISON" && break
4386 done
4387 test -n "$BISON" || BISON="none"
4389 if test "$BISON" = "none"
4390 then
4391 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4394 if test -n "$ac_tool_prefix"; then
4395 for ac_prog in ar gar
4397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if ${ac_cv_prog_AR+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if test -n "$AR"; then
4405 ac_cv_prog_AR="$AR" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4418 done
4419 done
4420 IFS=$as_save_IFS
4424 AR=$ac_cv_prog_AR
4425 if test -n "$AR"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4427 $as_echo "$AR" >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4434 test -n "$AR" && break
4435 done
4437 if test -z "$AR"; then
4438 ac_ct_AR=$AR
4439 for ac_prog in ar gar
4441 # Extract the first word of "$ac_prog", so it can be a program name with args.
4442 set dummy $ac_prog; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$ac_ct_AR"; then
4449 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_ac_ct_AR="$ac_prog"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4464 IFS=$as_save_IFS
4468 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4469 if test -n "$ac_ct_AR"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4471 $as_echo "$ac_ct_AR" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4478 test -n "$ac_ct_AR" && break
4479 done
4481 if test "x$ac_ct_AR" = x; then
4482 AR="ar"
4483 else
4484 case $cross_compiling:$ac_tool_warned in
4485 yes:)
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488 ac_tool_warned=yes ;;
4489 esac
4490 AR=$ac_ct_AR
4494 ARFLAGS=rc
4496 if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if ${ac_cv_prog_RANLIB+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if test -n "$RANLIB"; then
4505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4518 done
4519 done
4520 IFS=$as_save_IFS
4524 RANLIB=$ac_cv_prog_RANLIB
4525 if test -n "$RANLIB"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4527 $as_echo "$RANLIB" >&6; }
4528 else
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4535 if test -z "$ac_cv_prog_RANLIB"; then
4536 ac_ct_RANLIB=$RANLIB
4537 # Extract the first word of "ranlib", so it can be a program name with args.
4538 set dummy ranlib; ac_word=$2
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 if test -n "$ac_ct_RANLIB"; then
4545 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_prog_ac_ct_RANLIB="ranlib"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4558 done
4559 done
4560 IFS=$as_save_IFS
4564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4565 if test -n "$ac_ct_RANLIB"; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4567 $as_echo "$ac_ct_RANLIB" >&6; }
4568 else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570 $as_echo "no" >&6; }
4573 if test "x$ac_ct_RANLIB" = x; then
4574 RANLIB=":"
4575 else
4576 case $cross_compiling:$ac_tool_warned in
4577 yes:)
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4580 ac_tool_warned=yes ;;
4581 esac
4582 RANLIB=$ac_ct_RANLIB
4584 else
4585 RANLIB="$ac_cv_prog_RANLIB"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4589 $as_echo_n "checking whether ln -s works... " >&6; }
4590 LN_S=$as_ln_s
4591 if test "$LN_S" = "ln -s"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4593 $as_echo "yes" >&6; }
4594 else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4596 $as_echo "no, using $LN_S" >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4600 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4601 if ${ac_cv_path_GREP+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -z "$GREP"; then
4605 ac_path_GREP_found=false
4606 # Loop through the user's path and test for each of PROGNAME-LIST
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_prog in grep ggrep; do
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4615 as_fn_executable_p "$ac_path_GREP" || continue
4616 # Check for GNU ac_path_GREP and select it if it is found.
4617 # Check for GNU $ac_path_GREP
4618 case `"$ac_path_GREP" --version 2>&1` in
4619 *GNU*)
4620 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4622 ac_count=0
4623 $as_echo_n 0123456789 >"conftest.in"
4624 while :
4626 cat "conftest.in" "conftest.in" >"conftest.tmp"
4627 mv "conftest.tmp" "conftest.in"
4628 cp "conftest.in" "conftest.nl"
4629 $as_echo 'GREP' >> "conftest.nl"
4630 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4632 as_fn_arith $ac_count + 1 && ac_count=$as_val
4633 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4634 # Best one so far, save it but keep looking for a better one
4635 ac_cv_path_GREP="$ac_path_GREP"
4636 ac_path_GREP_max=$ac_count
4638 # 10*(2^10) chars as input seems more than enough
4639 test $ac_count -gt 10 && break
4640 done
4641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642 esac
4644 $ac_path_GREP_found && break 3
4645 done
4646 done
4647 done
4648 IFS=$as_save_IFS
4649 if test -z "$ac_cv_path_GREP"; then
4650 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4652 else
4653 ac_cv_path_GREP=$GREP
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4658 $as_echo "$ac_cv_path_GREP" >&6; }
4659 GREP="$ac_cv_path_GREP"
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4663 $as_echo_n "checking for egrep... " >&6; }
4664 if ${ac_cv_path_EGREP+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4668 then ac_cv_path_EGREP="$GREP -E"
4669 else
4670 if test -z "$EGREP"; then
4671 ac_path_EGREP_found=false
4672 # Loop through the user's path and test for each of PROGNAME-LIST
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_prog in egrep; do
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4681 as_fn_executable_p "$ac_path_EGREP" || continue
4682 # Check for GNU ac_path_EGREP and select it if it is found.
4683 # Check for GNU $ac_path_EGREP
4684 case `"$ac_path_EGREP" --version 2>&1` in
4685 *GNU*)
4686 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4688 ac_count=0
4689 $as_echo_n 0123456789 >"conftest.in"
4690 while :
4692 cat "conftest.in" "conftest.in" >"conftest.tmp"
4693 mv "conftest.tmp" "conftest.in"
4694 cp "conftest.in" "conftest.nl"
4695 $as_echo 'EGREP' >> "conftest.nl"
4696 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698 as_fn_arith $ac_count + 1 && ac_count=$as_val
4699 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4700 # Best one so far, save it but keep looking for a better one
4701 ac_cv_path_EGREP="$ac_path_EGREP"
4702 ac_path_EGREP_max=$ac_count
4704 # 10*(2^10) chars as input seems more than enough
4705 test $ac_count -gt 10 && break
4706 done
4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708 esac
4710 $ac_path_EGREP_found && break 3
4711 done
4712 done
4713 done
4714 IFS=$as_save_IFS
4715 if test -z "$ac_cv_path_EGREP"; then
4716 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4718 else
4719 ac_cv_path_EGREP=$EGREP
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4725 $as_echo "$ac_cv_path_EGREP" >&6; }
4726 EGREP="$ac_cv_path_EGREP"
4729 # Extract the first word of "ldconfig", so it can be a program name with args.
4730 set dummy ldconfig; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if ${ac_cv_path_LDCONFIG+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 case $LDCONFIG in
4737 [\\/]* | ?:[\\/]*)
4738 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in /sbin /usr/sbin $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4756 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4758 esac
4760 LDCONFIG=$ac_cv_path_LDCONFIG
4761 if test -n "$LDCONFIG"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4763 $as_echo "$LDCONFIG" >&6; }
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4770 # Find a good install program. We prefer a C program (faster),
4771 # so one script is as good as another. But avoid the broken or
4772 # incompatible versions:
4773 # SysV /etc/install, /usr/sbin/install
4774 # SunOS /usr/etc/install
4775 # IRIX /sbin/install
4776 # AIX /bin/install
4777 # AmigaOS /C/install, which installs bootblocks on floppy discs
4778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4781 # OS/2's system install, which has a completely different semantic
4782 # ./install, which can be erroneously created by make from ./install.sh.
4783 # Reject install programs that cannot install multiple files.
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4785 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4786 if test -z "$INSTALL"; then
4787 if ${ac_cv_path_install+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 # Account for people who put trailing slashes in PATH elements.
4796 case $as_dir/ in #((
4797 ./ | .// | /[cC]/* | \
4798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4799 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4800 /usr/ucb/* ) ;;
4802 # OSF1 and SCO ODT 3.0 have their own names for install.
4803 # Don't use installbsd from OSF since it installs stuff as root
4804 # by default.
4805 for ac_prog in ginstall scoinst install; do
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4808 if test $ac_prog = install &&
4809 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4810 # AIX install. It has an incompatible calling convention.
4812 elif test $ac_prog = install &&
4813 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4814 # program-specific install script used by HP pwplus--don't use.
4816 else
4817 rm -rf conftest.one conftest.two conftest.dir
4818 echo one > conftest.one
4819 echo two > conftest.two
4820 mkdir conftest.dir
4821 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4822 test -s conftest.one && test -s conftest.two &&
4823 test -s conftest.dir/conftest.one &&
4824 test -s conftest.dir/conftest.two
4825 then
4826 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4827 break 3
4831 done
4832 done
4834 esac
4836 done
4837 IFS=$as_save_IFS
4839 rm -rf conftest.one conftest.two conftest.dir
4842 if test "${ac_cv_path_install+set}" = set; then
4843 INSTALL=$ac_cv_path_install
4844 else
4845 # As a last resort, use the slow shell script. Don't cache a
4846 # value for INSTALL within a source directory, because that will
4847 # break other packages using the cache if that directory is
4848 # removed, or if the value is a relative name.
4849 INSTALL=$ac_install_sh
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4853 $as_echo "$INSTALL" >&6; }
4855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4856 # It thinks the first close brace ends the variable substitution.
4857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4859 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4861 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4863 case "$INSTALL" in
4864 [\\/$]* | ?:[\\/]* ) ;;
4865 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4866 esac
4868 for ac_prog in lclint lint
4870 # Extract the first word of "$ac_prog", so it can be a program name with args.
4871 set dummy $ac_prog; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if ${ac_cv_prog_LINT+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -n "$LINT"; then
4878 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887 ac_cv_prog_LINT="$ac_prog"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4891 done
4892 done
4893 IFS=$as_save_IFS
4897 LINT=$ac_cv_prog_LINT
4898 if test -n "$LINT"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4900 $as_echo "$LINT" >&6; }
4901 else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4907 test -n "$LINT" && break
4908 done
4910 if test "$LINT" = "lint"
4911 then
4912 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4916 for ac_prog in fontforge
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_prog_FONTFORGE+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$FONTFORGE"; then
4926 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_FONTFORGE="$ac_prog"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4939 done
4940 done
4941 IFS=$as_save_IFS
4945 FONTFORGE=$ac_cv_prog_FONTFORGE
4946 if test -n "$FONTFORGE"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4948 $as_echo "$FONTFORGE" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4955 test -n "$FONTFORGE" && break
4956 done
4957 test -n "$FONTFORGE" || FONTFORGE="false"
4959 for ac_prog in rsvg
4961 # Extract the first word of "$ac_prog", so it can be a program name with args.
4962 set dummy $ac_prog; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_RSVG+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$RSVG"; then
4969 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_RSVG="$ac_prog"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4982 done
4983 done
4984 IFS=$as_save_IFS
4988 RSVG=$ac_cv_prog_RSVG
4989 if test -n "$RSVG"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4991 $as_echo "$RSVG" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4998 test -n "$RSVG" && break
4999 done
5000 test -n "$RSVG" || RSVG="false"
5002 for ac_prog in convert
5004 # Extract the first word of "$ac_prog", so it can be a program name with args.
5005 set dummy $ac_prog; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_CONVERT+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 if test -n "$CONVERT"; then
5012 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_CONVERT="$ac_prog"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5027 IFS=$as_save_IFS
5031 CONVERT=$ac_cv_prog_CONVERT
5032 if test -n "$CONVERT"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5034 $as_echo "$CONVERT" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5041 test -n "$CONVERT" && break
5042 done
5043 test -n "$CONVERT" || CONVERT="false"
5045 for ac_prog in icotool
5047 # Extract the first word of "$ac_prog", so it can be a program name with args.
5048 set dummy $ac_prog; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if ${ac_cv_prog_ICOTOOL+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$ICOTOOL"; then
5055 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_ICOTOOL="$ac_prog"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5068 done
5069 done
5070 IFS=$as_save_IFS
5074 ICOTOOL=$ac_cv_prog_ICOTOOL
5075 if test -n "$ICOTOOL"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5077 $as_echo "$ICOTOOL" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5084 test -n "$ICOTOOL" && break
5085 done
5086 test -n "$ICOTOOL" || ICOTOOL="false"
5088 for ac_prog in msgfmt
5090 # Extract the first word of "$ac_prog", so it can be a program name with args.
5091 set dummy $ac_prog; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_prog_MSGFMT+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 if test -n "$MSGFMT"; then
5098 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5099 else
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_prog_MSGFMT="$ac_prog"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5111 done
5112 done
5113 IFS=$as_save_IFS
5117 MSGFMT=$ac_cv_prog_MSGFMT
5118 if test -n "$MSGFMT"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5120 $as_echo "$MSGFMT" >&6; }
5121 else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5127 test -n "$MSGFMT" && break
5128 done
5129 test -n "$MSGFMT" || MSGFMT="false"
5132 if test "x$enable_maintainer_mode" != "xyes"
5133 then
5134 MAINTAINER_MODE=\#
5136 else
5137 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5138 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5140 if test "$CONVERT" = false
5141 then
5142 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5145 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5146 convert_version=`convert --version | head -n1`
5147 if test "x$convert_version" != "x"
5148 then
5149 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5150 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5151 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5152 then
5153 CONVERT=false
5156 if test "$CONVERT" = false
5157 then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5159 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5160 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5163 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5167 if test "$ICOTOOL" = false
5168 then
5169 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5172 $as_echo_n "checking for recent enough icotool... " >&6; }
5173 icotool_version=`icotool --version | head -n1`
5174 if test "x$icotool_version" != "x"
5175 then
5176 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5177 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5178 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5179 then
5180 ICOTOOL=false
5181 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5184 if test "$ICOTOOL" = false
5185 then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5187 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5188 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5191 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5195 with_gettext=yes
5196 with_gettextpo=yes
5197 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5200 test "x$with_gettext" != xno || MSGFMT=false
5201 if test "$MSGFMT" != "false"
5202 then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5204 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5205 cat >conftest.po <<EOF
5206 # comment
5207 msgctxt "ctxt"
5208 msgid "id"
5209 msgstr "str"
5211 if $MSGFMT -o /dev/null conftest.po 2>&5
5212 then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5214 $as_echo "yes" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 MSGFMT=false
5221 if test "$MSGFMT" = false; then :
5222 case "x$with_gettext" in
5223 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5224 xno) ;;
5225 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5226 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5227 esac
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5232 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5233 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 ac_check_lib_save_LIBS=$LIBS
5237 LIBS="-li386 $LIBS"
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5241 /* Override any GCC internal prototype to avoid an error.
5242 Use char because int might match the return type of a GCC
5243 builtin and then its argument prototype would still apply. */
5244 #ifdef __cplusplus
5245 extern "C"
5246 #endif
5247 char i386_set_ldt ();
5249 main ()
5251 return i386_set_ldt ();
5253 return 0;
5255 _ACEOF
5256 if ac_fn_c_try_link "$LINENO"; then :
5257 ac_cv_lib_i386_i386_set_ldt=yes
5258 else
5259 ac_cv_lib_i386_i386_set_ldt=no
5261 rm -f core conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263 LIBS=$ac_check_lib_save_LIBS
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5266 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5267 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5268 cat >>confdefs.h <<_ACEOF
5269 #define HAVE_LIBI386 1
5270 _ACEOF
5272 LIBS="-li386 $LIBS"
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5277 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5278 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 ac_check_lib_save_LIBS=$LIBS
5282 LIBS="-lossaudio $LIBS"
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5286 /* Override any GCC internal prototype to avoid an error.
5287 Use char because int might match the return type of a GCC
5288 builtin and then its argument prototype would still apply. */
5289 #ifdef __cplusplus
5290 extern "C"
5291 #endif
5292 char _oss_ioctl ();
5294 main ()
5296 return _oss_ioctl ();
5298 return 0;
5300 _ACEOF
5301 if ac_fn_c_try_link "$LINENO"; then :
5302 ac_cv_lib_ossaudio__oss_ioctl=yes
5303 else
5304 ac_cv_lib_ossaudio__oss_ioctl=no
5306 rm -f core conftest.err conftest.$ac_objext \
5307 conftest$ac_exeext conftest.$ac_ext
5308 LIBS=$ac_check_lib_save_LIBS
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5311 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5312 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5313 cat >>confdefs.h <<_ACEOF
5314 #define HAVE_LIBOSSAUDIO 1
5315 _ACEOF
5317 LIBS="-lossaudio $LIBS"
5322 XLIB=""
5324 OPENGL_LIBS=""
5328 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5330 # Check whether --enable-largefile was given.
5331 if test "${enable_largefile+set}" = set; then :
5332 enableval=$enable_largefile;
5335 if test "$enable_largefile" != no; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5338 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5339 if ${ac_cv_sys_largefile_CC+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 ac_cv_sys_largefile_CC=no
5343 if test "$GCC" != yes; then
5344 ac_save_CC=$CC
5345 while :; do
5346 # IRIX 6.2 and later do not support large files by default,
5347 # so use the C compiler's -n32 option if that helps.
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #include <sys/types.h>
5351 /* Check that off_t can represent 2**63 - 1 correctly.
5352 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5353 since some C++ compilers masquerading as C compilers
5354 incorrectly reject 9223372036854775807. */
5355 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5357 && LARGE_OFF_T % 2147483647 == 1)
5358 ? 1 : -1];
5360 main ()
5364 return 0;
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 break
5370 rm -f core conftest.err conftest.$ac_objext
5371 CC="$CC -n32"
5372 if ac_fn_c_try_compile "$LINENO"; then :
5373 ac_cv_sys_largefile_CC=' -n32'; break
5375 rm -f core conftest.err conftest.$ac_objext
5376 break
5377 done
5378 CC=$ac_save_CC
5379 rm -f conftest.$ac_ext
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5383 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5384 if test "$ac_cv_sys_largefile_CC" != no; then
5385 CC=$CC$ac_cv_sys_largefile_CC
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5389 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5390 if ${ac_cv_sys_file_offset_bits+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 while :; do
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 #include <sys/types.h>
5397 /* Check that off_t can represent 2**63 - 1 correctly.
5398 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5399 since some C++ compilers masquerading as C compilers
5400 incorrectly reject 9223372036854775807. */
5401 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5403 && LARGE_OFF_T % 2147483647 == 1)
5404 ? 1 : -1];
5406 main ()
5410 return 0;
5412 _ACEOF
5413 if ac_fn_c_try_compile "$LINENO"; then :
5414 ac_cv_sys_file_offset_bits=no; break
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #define _FILE_OFFSET_BITS 64
5420 #include <sys/types.h>
5421 /* Check that off_t can represent 2**63 - 1 correctly.
5422 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5423 since some C++ compilers masquerading as C compilers
5424 incorrectly reject 9223372036854775807. */
5425 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5426 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5427 && LARGE_OFF_T % 2147483647 == 1)
5428 ? 1 : -1];
5430 main ()
5434 return 0;
5436 _ACEOF
5437 if ac_fn_c_try_compile "$LINENO"; then :
5438 ac_cv_sys_file_offset_bits=64; break
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441 ac_cv_sys_file_offset_bits=unknown
5442 break
5443 done
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5446 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5447 case $ac_cv_sys_file_offset_bits in #(
5448 no | unknown) ;;
5450 cat >>confdefs.h <<_ACEOF
5451 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5452 _ACEOF
5454 esac
5455 rm -rf conftest*
5456 if test $ac_cv_sys_file_offset_bits = unknown; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5458 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5459 if ${ac_cv_sys_large_files+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 while :; do
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465 #include <sys/types.h>
5466 /* Check that off_t can represent 2**63 - 1 correctly.
5467 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5468 since some C++ compilers masquerading as C compilers
5469 incorrectly reject 9223372036854775807. */
5470 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5471 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5472 && LARGE_OFF_T % 2147483647 == 1)
5473 ? 1 : -1];
5475 main ()
5479 return 0;
5481 _ACEOF
5482 if ac_fn_c_try_compile "$LINENO"; then :
5483 ac_cv_sys_large_files=no; break
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 #define _LARGE_FILES 1
5489 #include <sys/types.h>
5490 /* Check that off_t can represent 2**63 - 1 correctly.
5491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5492 since some C++ compilers masquerading as C compilers
5493 incorrectly reject 9223372036854775807. */
5494 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5496 && LARGE_OFF_T % 2147483647 == 1)
5497 ? 1 : -1];
5499 main ()
5503 return 0;
5505 _ACEOF
5506 if ac_fn_c_try_compile "$LINENO"; then :
5507 ac_cv_sys_large_files=1; break
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 ac_cv_sys_large_files=unknown
5511 break
5512 done
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5515 $as_echo "$ac_cv_sys_large_files" >&6; }
5516 case $ac_cv_sys_large_files in #(
5517 no | unknown) ;;
5519 cat >>confdefs.h <<_ACEOF
5520 #define _LARGE_FILES $ac_cv_sys_large_files
5521 _ACEOF
5523 esac
5524 rm -rf conftest*
5531 ac_ext=c
5532 ac_cpp='$CPP $CPPFLAGS'
5533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5537 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5538 # On Suns, sometimes $CPP names a directory.
5539 if test -n "$CPP" && test -d "$CPP"; then
5540 CPP=
5542 if test -z "$CPP"; then
5543 if ${ac_cv_prog_CPP+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 # Double quotes because CPP needs to be expanded
5547 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5549 ac_preproc_ok=false
5550 for ac_c_preproc_warn_flag in '' yes
5552 # Use a header file that comes with gcc, so configuring glibc
5553 # with a fresh cross-compiler works.
5554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5555 # <limits.h> exists even on freestanding compilers.
5556 # On the NeXT, cc -E runs the code through the compiler's parser,
5557 # not just through cpp. "Syntax error" is here to catch this case.
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5560 #ifdef __STDC__
5561 # include <limits.h>
5562 #else
5563 # include <assert.h>
5564 #endif
5565 Syntax error
5566 _ACEOF
5567 if ac_fn_c_try_cpp "$LINENO"; then :
5569 else
5570 # Broken: fails on valid input.
5571 continue
5573 rm -f conftest.err conftest.i conftest.$ac_ext
5575 # OK, works on sane cases. Now check whether nonexistent headers
5576 # can be detected and how.
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #include <ac_nonexistent.h>
5580 _ACEOF
5581 if ac_fn_c_try_cpp "$LINENO"; then :
5582 # Broken: success on invalid input.
5583 continue
5584 else
5585 # Passes both tests.
5586 ac_preproc_ok=:
5587 break
5589 rm -f conftest.err conftest.i conftest.$ac_ext
5591 done
5592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593 rm -f conftest.i conftest.err conftest.$ac_ext
5594 if $ac_preproc_ok; then :
5595 break
5598 done
5599 ac_cv_prog_CPP=$CPP
5602 CPP=$ac_cv_prog_CPP
5603 else
5604 ac_cv_prog_CPP=$CPP
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5607 $as_echo "$CPP" >&6; }
5608 ac_preproc_ok=false
5609 for ac_c_preproc_warn_flag in '' yes
5611 # Use a header file that comes with gcc, so configuring glibc
5612 # with a fresh cross-compiler works.
5613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614 # <limits.h> exists even on freestanding compilers.
5615 # On the NeXT, cc -E runs the code through the compiler's parser,
5616 # not just through cpp. "Syntax error" is here to catch this case.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #ifdef __STDC__
5620 # include <limits.h>
5621 #else
5622 # include <assert.h>
5623 #endif
5624 Syntax error
5625 _ACEOF
5626 if ac_fn_c_try_cpp "$LINENO"; then :
5628 else
5629 # Broken: fails on valid input.
5630 continue
5632 rm -f conftest.err conftest.i conftest.$ac_ext
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <ac_nonexistent.h>
5639 _ACEOF
5640 if ac_fn_c_try_cpp "$LINENO"; then :
5641 # Broken: success on invalid input.
5642 continue
5643 else
5644 # Passes both tests.
5645 ac_preproc_ok=:
5646 break
5648 rm -f conftest.err conftest.i conftest.$ac_ext
5650 done
5651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652 rm -f conftest.i conftest.err conftest.$ac_ext
5653 if $ac_preproc_ok; then :
5655 else
5656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5658 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5659 See \`config.log' for more details" "$LINENO" 5; }
5662 ac_ext=c
5663 ac_cpp='$CPP $CPPFLAGS'
5664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5670 $as_echo_n "checking for ANSI C header files... " >&6; }
5671 if ${ac_cv_header_stdc+:} false; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <stdlib.h>
5677 #include <stdarg.h>
5678 #include <string.h>
5679 #include <float.h>
5682 main ()
5686 return 0;
5688 _ACEOF
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690 ac_cv_header_stdc=yes
5691 else
5692 ac_cv_header_stdc=no
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 if test $ac_cv_header_stdc = yes; then
5697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 #include <string.h>
5702 _ACEOF
5703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5704 $EGREP "memchr" >/dev/null 2>&1; then :
5706 else
5707 ac_cv_header_stdc=no
5709 rm -f conftest*
5713 if test $ac_cv_header_stdc = yes; then
5714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <stdlib.h>
5719 _ACEOF
5720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5721 $EGREP "free" >/dev/null 2>&1; then :
5723 else
5724 ac_cv_header_stdc=no
5726 rm -f conftest*
5730 if test $ac_cv_header_stdc = yes; then
5731 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5732 if test "$cross_compiling" = yes; then :
5734 else
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 #include <ctype.h>
5738 #include <stdlib.h>
5739 #if ((' ' & 0x0FF) == 0x020)
5740 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5741 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5742 #else
5743 # define ISLOWER(c) \
5744 (('a' <= (c) && (c) <= 'i') \
5745 || ('j' <= (c) && (c) <= 'r') \
5746 || ('s' <= (c) && (c) <= 'z'))
5747 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5748 #endif
5750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5752 main ()
5754 int i;
5755 for (i = 0; i < 256; i++)
5756 if (XOR (islower (i), ISLOWER (i))
5757 || toupper (i) != TOUPPER (i))
5758 return 2;
5759 return 0;
5761 _ACEOF
5762 if ac_fn_c_try_run "$LINENO"; then :
5764 else
5765 ac_cv_header_stdc=no
5767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5768 conftest.$ac_objext conftest.beam conftest.$ac_ext
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5774 $as_echo "$ac_cv_header_stdc" >&6; }
5775 if test $ac_cv_header_stdc = yes; then
5777 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5781 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5782 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5783 inttypes.h stdint.h unistd.h
5784 do :
5785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5786 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5788 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5789 cat >>confdefs.h <<_ACEOF
5790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5791 _ACEOF
5795 done
5798 for ac_header in \
5799 AL/al.h \
5800 ApplicationServices/ApplicationServices.h \
5801 AudioToolbox/AudioConverter.h \
5802 AudioUnit/AudioUnit.h \
5803 AudioUnit/AudioComponent.h \
5804 CL/cl.h \
5805 Carbon/Carbon.h \
5806 CoreAudio/CoreAudio.h \
5807 CoreServices/CoreServices.h \
5808 DiskArbitration/DiskArbitration.h \
5809 IOKit/IOKitLib.h \
5810 IOKit/hid/IOHIDLib.h \
5811 OpenAL/al.h \
5812 OpenCL/opencl.h \
5813 QuickTime/ImageCompression.h \
5814 Security/Security.h \
5815 alias.h \
5816 alsa/asoundlib.h \
5817 arpa/inet.h \
5818 arpa/nameser.h \
5819 asm/types.h \
5820 capi20.h \
5821 curses.h \
5822 direct.h \
5823 dirent.h \
5824 dlfcn.h \
5825 elf.h \
5826 float.h \
5827 fnmatch.h \
5828 fontconfig/fontconfig.h \
5829 getopt.h \
5830 gettext-po.h \
5831 grp.h \
5832 gsm.h \
5833 gsm/gsm.h \
5834 ieeefp.h \
5835 inet/mib2.h \
5836 io.h \
5837 jpeglib.h \
5838 kstat.h \
5839 lber.h \
5840 lcms.h \
5841 lcms/lcms.h \
5842 ldap.h \
5843 link.h \
5844 linux/cdrom.h \
5845 linux/compiler.h \
5846 linux/filter.h \
5847 linux/hdreg.h \
5848 linux/input.h \
5849 linux/ioctl.h \
5850 linux/joystick.h \
5851 linux/major.h \
5852 linux/param.h \
5853 linux/serial.h \
5854 linux/types.h \
5855 linux/ucdrom.h \
5856 lwp.h \
5857 mach-o/nlist.h \
5858 mach-o/loader.h \
5859 mach/mach.h \
5860 mach/machine.h \
5861 machine/cpu.h \
5862 machine/limits.h \
5863 machine/sysarch.h \
5864 mntent.h \
5865 mpg123.h \
5866 ncurses.h \
5867 netdb.h \
5868 netinet/in.h \
5869 netinet/in_systm.h \
5870 netinet/tcp.h \
5871 netinet/tcp_fsm.h \
5872 png.h \
5873 poll.h \
5874 port.h \
5875 process.h \
5876 pthread.h \
5877 pwd.h \
5878 sched.h \
5879 scsi/scsi.h \
5880 scsi/scsi_ioctl.h \
5881 scsi/sg.h \
5882 stdbool.h \
5883 stdint.h \
5884 stropts.h \
5885 sys/asoundlib.h \
5886 sys/attr.h \
5887 sys/cdio.h \
5888 sys/elf32.h \
5889 sys/epoll.h \
5890 sys/event.h \
5891 sys/exec_elf.h \
5892 sys/filio.h \
5893 sys/inotify.h \
5894 sys/ioctl.h \
5895 sys/ipc.h \
5896 sys/limits.h \
5897 sys/link.h \
5898 sys/mman.h \
5899 sys/modem.h \
5900 sys/msg.h \
5901 sys/mtio.h \
5902 sys/param.h \
5903 sys/poll.h \
5904 sys/prctl.h \
5905 sys/protosw.h \
5906 sys/ptrace.h \
5907 sys/resource.h \
5908 sys/scsiio.h \
5909 sys/shm.h \
5910 sys/signal.h \
5911 sys/socket.h \
5912 sys/socketvar.h \
5913 sys/sockio.h \
5914 sys/statvfs.h \
5915 sys/strtio.h \
5916 sys/syscall.h \
5917 sys/tihdr.h \
5918 sys/time.h \
5919 sys/timeout.h \
5920 sys/times.h \
5921 sys/uio.h \
5922 sys/utsname.h \
5923 sys/vm86.h \
5924 sys/wait.h \
5925 syscall.h \
5926 termios.h \
5927 tiffio.h \
5928 unistd.h \
5929 utime.h \
5930 valgrind/memcheck.h \
5931 valgrind/valgrind.h \
5932 zlib.h
5934 do :
5935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5936 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5938 cat >>confdefs.h <<_ACEOF
5939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5940 _ACEOF
5944 done
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5947 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5948 if ${ac_cv_header_stat_broken+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #include <sys/types.h>
5954 #include <sys/stat.h>
5956 #if defined S_ISBLK && defined S_IFDIR
5957 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5958 #endif
5960 #if defined S_ISBLK && defined S_IFCHR
5961 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5962 #endif
5964 #if defined S_ISLNK && defined S_IFREG
5965 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5966 #endif
5968 #if defined S_ISSOCK && defined S_IFREG
5969 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5970 #endif
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974 ac_cv_header_stat_broken=no
5975 else
5976 ac_cv_header_stat_broken=yes
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5981 $as_echo "$ac_cv_header_stat_broken" >&6; }
5982 if test $ac_cv_header_stat_broken = yes; then
5984 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5990 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5991 do :
5992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5993 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5994 #ifdef HAVE_SYS_PARAM_H
5995 # include <sys/param.h>
5996 #endif
5998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5999 cat >>confdefs.h <<_ACEOF
6000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6001 _ACEOF
6005 done
6008 for ac_header in \
6009 netinet/ip.h \
6010 net/if.h \
6011 net/if_arp.h \
6012 net/if_dl.h \
6013 net/if_types.h \
6014 net/route.h \
6015 netinet/if_ether.h \
6016 netinet/if_inarp.h \
6017 netinet/in_pcb.h \
6018 netinet/ip_icmp.h \
6019 netinet/ip_var.h \
6020 netinet/udp.h \
6021 netipx/ipx.h \
6022 sys/un.h \
6024 do :
6025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6026 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6027 #ifdef HAVE_SYS_SOCKET_H
6028 # include <sys/socket.h>
6029 #endif
6030 #ifdef HAVE_SYS_SOCKETVAR_H
6031 # include <sys/socketvar.h>
6032 #endif
6033 #ifdef HAVE_NET_ROUTE_H
6034 # include <net/route.h>
6035 #endif
6036 #ifdef HAVE_NETINET_IN_H
6037 # include <netinet/in.h>
6038 #endif
6039 #ifdef HAVE_NETINET_IN_SYSTM_H
6040 # include <netinet/in_systm.h>
6041 #endif
6042 #ifdef HAVE_NET_IF_H
6043 # include <net/if.h>
6044 #endif
6045 #ifdef HAVE_NETINET_IP_H
6046 # include <netinet/ip.h>
6047 #endif
6049 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6050 cat >>confdefs.h <<_ACEOF
6051 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6052 _ACEOF
6056 done
6059 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6060 do :
6061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6062 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6063 #ifdef HAVE_ALIAS_H
6064 # include <alias.h>
6065 #endif
6066 #ifdef HAVE_SYS_SOCKET_H
6067 # include <sys/socket.h>
6068 #endif
6069 #ifdef HAVE_SYS_SOCKETVAR_H
6070 # include <sys/socketvar.h>
6071 #endif
6072 #ifdef HAVE_SYS_TIMEOUT_H
6073 # include <sys/timeout.h>
6074 #endif
6075 #ifdef HAVE_NETINET_IN_H
6076 # include <netinet/in.h>
6077 #endif
6078 #ifdef HAVE_NETINET_IN_SYSTM_H
6079 # include <netinet/in_systm.h>
6080 #endif
6081 #ifdef HAVE_NETINET_IP_H
6082 # include <netinet/ip.h>
6083 #endif
6084 #ifdef HAVE_NETINET_IP_VAR_H
6085 # include <netinet/ip_var.h>
6086 #endif
6087 #ifdef HAVE_NETINET_IP_ICMP_H
6088 # include <netinet/ip_icmp.h>
6089 #endif
6090 #ifdef HAVE_NETINET_UDP_H
6091 # include <netinet/udp.h>
6092 #endif
6093 #ifdef HAVE_NETINET_TCP_H
6094 # include <netinet/tcp.h>
6095 #endif
6096 #ifdef HAVE_NETINET_TCP_TIMER_H
6097 #include <netinet/tcp_timer.h>
6098 #endif
6100 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6101 cat >>confdefs.h <<_ACEOF
6102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6103 _ACEOF
6107 done
6110 for ac_header in linux/ipx.h linux/irda.h
6111 do :
6112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6113 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6114 #ifdef HAVE_ASM_TYPES_H
6115 # include <asm/types.h>
6116 #endif
6117 #ifdef HAVE_SYS_SOCKET_H
6118 # include <sys/socket.h>
6119 #endif
6120 #ifdef HAVE_LINUX_TYPES_H
6121 # include <linux/types.h>
6122 #endif
6124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6125 cat >>confdefs.h <<_ACEOF
6126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6127 _ACEOF
6131 done
6134 for ac_header in mach-o/dyld_images.h
6135 do :
6136 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6137 # include <stdbool.h>
6138 #endif
6139 #ifdef HAVE_STDINT_H
6140 # include <stdint.h>
6141 #endif
6143 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6144 cat >>confdefs.h <<_ACEOF
6145 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6146 _ACEOF
6150 done
6153 for ac_header in resolv.h
6154 do :
6155 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6156 #ifdef HAVE_SYS_SOCKET_H
6157 # include <sys/socket.h>
6158 #endif
6159 #ifdef HAVE_NETINET_IN_H
6160 # include <netinet/in.h>
6161 #endif
6162 #ifdef HAVE_ARPA_NAMESER_H
6163 # include <arpa/nameser.h>
6164 #endif
6166 if test "x$ac_cv_header_resolv_h" = xyes; then :
6167 cat >>confdefs.h <<_ACEOF
6168 #define HAVE_RESOLV_H 1
6169 _ACEOF
6173 done
6176 for ac_header in ifaddrs.h
6177 do :
6178 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6180 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6181 cat >>confdefs.h <<_ACEOF
6182 #define HAVE_IFADDRS_H 1
6183 _ACEOF
6187 done
6190 for ac_header in ucontext.h
6191 do :
6192 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6194 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6195 cat >>confdefs.h <<_ACEOF
6196 #define HAVE_UCONTEXT_H 1
6197 _ACEOF
6201 done
6204 for ac_header in sys/thr.h
6205 do :
6206 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6207 #ifdef HAVE_UCONTEXT_H
6208 #include <ucontext.h>
6209 #endif
6211 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6212 cat >>confdefs.h <<_ACEOF
6213 #define HAVE_SYS_THR_H 1
6214 _ACEOF
6218 done
6221 for ac_header in pthread_np.h
6222 do :
6223 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6224 #include <pthread.h>
6225 #endif
6227 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6228 cat >>confdefs.h <<_ACEOF
6229 #define HAVE_PTHREAD_NP_H 1
6230 _ACEOF
6234 done
6237 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6238 do :
6239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6240 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6241 #include <sys/time.h>
6242 #endif
6243 #include <sys/types.h>
6244 #ifdef HAVE_ASM_TYPES_H
6245 #include <asm/types.h>
6246 #endif
6248 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6249 cat >>confdefs.h <<_ACEOF
6250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6251 _ACEOF
6255 done
6258 for ac_header in linux/capi.h
6259 do :
6260 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6262 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6263 cat >>confdefs.h <<_ACEOF
6264 #define HAVE_LINUX_CAPI_H 1
6265 _ACEOF
6269 done
6273 DLLEXT=""
6275 DLLFLAGS="-D_REENTRANT"
6277 LDDLLFLAGS=""
6279 IMPLIBEXT="def"
6281 LDRPATH_INSTALL=""
6283 LDRPATH_LOCAL=""
6285 LIBEXT="so"
6286 STATIC_IMPLIBEXT="def.a"
6287 # Extract the first word of "ldd", so it can be a program name with args.
6288 set dummy ldd; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_path_LDD+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 case $LDD in
6295 [\\/]* | ?:[\\/]*)
6296 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 as_dummy="/sbin:/usr/sbin:$PATH"
6301 for as_dir in $as_dummy
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6311 done
6312 done
6313 IFS=$as_save_IFS
6315 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6317 esac
6319 LDD=$ac_cv_path_LDD
6320 if test -n "$LDD"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6322 $as_echo "$LDD" >&6; }
6323 else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6329 if test -n "$ac_tool_prefix"; then
6330 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6331 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if ${ac_cv_prog_READELF+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 if test -n "$READELF"; then
6338 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6347 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6351 done
6352 done
6353 IFS=$as_save_IFS
6357 READELF=$ac_cv_prog_READELF
6358 if test -n "$READELF"; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6360 $as_echo "$READELF" >&6; }
6361 else
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6368 if test -z "$ac_cv_prog_READELF"; then
6369 ac_ct_READELF=$READELF
6370 # Extract the first word of "readelf", so it can be a program name with args.
6371 set dummy readelf; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 if test -n "$ac_ct_READELF"; then
6378 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_ac_ct_READELF="readelf"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6391 done
6392 done
6393 IFS=$as_save_IFS
6397 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6398 if test -n "$ac_ct_READELF"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6400 $as_echo "$ac_ct_READELF" >&6; }
6401 else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6406 if test "x$ac_ct_READELF" = x; then
6407 READELF="true"
6408 else
6409 case $cross_compiling:$ac_tool_warned in
6410 yes:)
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6413 ac_tool_warned=yes ;;
6414 esac
6415 READELF=$ac_ct_READELF
6417 else
6418 READELF="$ac_cv_prog_READELF"
6422 case $host_os in
6423 cygwin*|mingw32*)
6424 if test -n "$ac_tool_prefix"; then
6425 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_prog_DLLTOOL+:} false; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 if test -n "$DLLTOOL"; then
6433 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 break 2
6446 done
6447 done
6448 IFS=$as_save_IFS
6452 DLLTOOL=$ac_cv_prog_DLLTOOL
6453 if test -n "$DLLTOOL"; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6455 $as_echo "$DLLTOOL" >&6; }
6456 else
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6463 if test -z "$ac_cv_prog_DLLTOOL"; then
6464 ac_ct_DLLTOOL=$DLLTOOL
6465 # Extract the first word of "dlltool", so it can be a program name with args.
6466 set dummy dlltool; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 if test -n "$ac_ct_DLLTOOL"; then
6473 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6486 done
6487 done
6488 IFS=$as_save_IFS
6492 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6493 if test -n "$ac_ct_DLLTOOL"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6495 $as_echo "$ac_ct_DLLTOOL" >&6; }
6496 else
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6501 if test "x$ac_ct_DLLTOOL" = x; then
6502 DLLTOOL="false"
6503 else
6504 case $cross_compiling:$ac_tool_warned in
6505 yes:)
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6508 ac_tool_warned=yes ;;
6509 esac
6510 DLLTOOL=$ac_ct_DLLTOOL
6512 else
6513 DLLTOOL="$ac_cv_prog_DLLTOOL"
6516 if test -n "$ac_tool_prefix"; then
6517 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6518 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if ${ac_cv_prog_DLLWRAP+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 if test -n "$DLLWRAP"; then
6525 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6538 done
6539 done
6540 IFS=$as_save_IFS
6544 DLLWRAP=$ac_cv_prog_DLLWRAP
6545 if test -n "$DLLWRAP"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6547 $as_echo "$DLLWRAP" >&6; }
6548 else
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6555 if test -z "$ac_cv_prog_DLLWRAP"; then
6556 ac_ct_DLLWRAP=$DLLWRAP
6557 # Extract the first word of "dllwrap", so it can be a program name with args.
6558 set dummy dllwrap; ac_word=$2
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560 $as_echo_n "checking for $ac_word... " >&6; }
6561 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 if test -n "$ac_ct_DLLWRAP"; then
6565 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 break 2
6578 done
6579 done
6580 IFS=$as_save_IFS
6584 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6585 if test -n "$ac_ct_DLLWRAP"; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6587 $as_echo "$ac_ct_DLLWRAP" >&6; }
6588 else
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6593 if test "x$ac_ct_DLLWRAP" = x; then
6594 DLLWRAP="false"
6595 else
6596 case $cross_compiling:$ac_tool_warned in
6597 yes:)
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600 ac_tool_warned=yes ;;
6601 esac
6602 DLLWRAP=$ac_ct_DLLWRAP
6604 else
6605 DLLWRAP="$ac_cv_prog_DLLWRAP"
6608 if test "$DLLWRAP" = "false"; then
6609 as_fn_error $? "dllwrap is needed to build a dll for Windows" "$LINENO" 5
6611 LIBEXT="dll"
6612 IMPLIBEXT="a"
6613 STATIC_IMPLIBEXT="a"
6614 enable_iphlpapi=${enable_iphlpapi:-no}
6615 enable_kernel32=${enable_kernel32:-no}
6616 enable_msvcrt=${enable_msvcrt:-no}
6617 enable_ntdll=${enable_ntdll:-no}
6618 enable_ws2_32=${enable_ws2_32:-no}
6619 enable_loader=${enable_loader:-no}
6620 enable_server=${enable_server:-no}
6621 with_x=${with_x:-no}
6622 with_pthread=${with_pthread:-no}
6624 crtlibs=""
6625 case $host_os in
6626 mingw32*)
6627 crtlibs="-lmsvcrt"
6628 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
6630 esac
6632 LIBWINE_RULES="
6633 all: libwine.dll libwine.a
6635 libwine.a: wine.def
6636 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
6638 libwine.dll: \$(OBJS) wine.def Makefile.in
6639 \$(DLLWRAP) --def \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
6641 install install-lib:: libwine.dll \$(DESTDIR)\$(libdir) dummy
6642 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
6644 install install-dev:: libwine.a \$(DESTDIR)\$(libdir) dummy
6645 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
6647 uninstall::
6648 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
6650 clean::
6651 \$(RM) libwine.dll version.c
6656 darwin*|macosx*)
6657 DLLEXT=".so"
6658 LIBEXT="dylib"
6659 DLLFLAGS="$DLLFLAGS -fPIC"
6660 LDDLLFLAGS="-bundle -multiply_defined suppress"
6661 LIBWINE_LDFLAGS="-multiply_defined suppress"
6662 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6663 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6664 COREFOUNDATIONLIB="-framework CoreFoundation"
6666 IOKITLIB="-framework IOKit -framework CoreFoundation"
6668 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6670 CORESERVICESLIB="-framework CoreServices"
6672 case $host_os in
6673 darwin11*)
6674 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6677 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6679 esac
6680 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6681 then
6682 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6685 if test "$ac_cv_header_Security_Security_h" = "yes"
6686 then
6687 SECURITYLIB="-framework Security -framework CoreFoundation"
6689 ac_save_LIBS="$LIBS"
6690 LIBS="$LIBS $SECURITYLIB"
6691 for ac_func in SSLCopyPeerCertificates
6692 do :
6693 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6694 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6695 cat >>confdefs.h <<_ACEOF
6696 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6697 _ACEOF
6700 done
6702 LIBS="$ac_save_LIBS"
6703 with_gnutls=${with_gnutls:-no}
6705 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6706 then
6707 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6708 then
6709 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6711 else
6712 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6715 ac_save_LIBS="$LIBS"
6716 LIBS="$LIBS $COREAUDIO"
6717 for ac_func in AUGraphAddNode
6718 do :
6719 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6720 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6721 cat >>confdefs.h <<_ACEOF
6722 #define HAVE_AUGRAPHADDNODE 1
6723 _ACEOF
6726 done
6728 LIBS="$ac_save_LIBS"
6730 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6731 then
6732 FRAMEWORK_OPENAL="-framework OpenAL"
6735 cat >>confdefs.h <<_ACEOF
6736 #define HAVE_OPENAL 1
6737 _ACEOF
6739 ac_cv_lib_openal=yes
6741 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6742 then
6743 LIBOPENCL="-framework OpenCL"
6745 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6747 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6748 then
6749 ac_save_LIBS="$LIBS"
6750 LIBS="$LIBS $IOKITLIB"
6751 for ac_func in IOHIDManagerCreate
6752 do :
6753 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6754 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6755 cat >>confdefs.h <<_ACEOF
6756 #define HAVE_IOHIDMANAGERCREATE 1
6757 _ACEOF
6760 done
6762 LIBS="$ac_save_LIBS"
6764 case $host_cpu in
6765 *powerpc*)
6766 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6767 esac
6768 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6769 then
6770 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6772 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6773 else
6774 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6776 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6777 then
6778 CARBONLIB="-framework Carbon"
6782 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6783 then
6784 ac_save_LIBS="$LIBS"
6785 LIBS="$LIBS $APPLICATIONSERVICESLIB"
6786 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6787 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6788 enable_winemac_drv=${enable_winemac_drv:-yes}
6791 LIBS="$ac_save_LIBS"
6794 if test "x$enable_win16" = "xyes"
6795 then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6797 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6798 if test "$cross_compiling" = yes; then :
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6800 $as_echo "cross-compiling, assuming yes" >&6; }
6801 else
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 asm(".text\n"
6805 "bad:\tnop;nop\n"
6806 "good:\tnop;nop\n\t"
6807 ".globl _testfunc\n"
6808 "_testfunc:\tcallw good");
6809 extern void testfunc();
6811 main ()
6813 unsigned short *p = (unsigned short *)testfunc;
6814 return p[0] != 0xe866 || p[1] != 0xfffa
6816 return 0;
6818 _ACEOF
6819 if ac_fn_c_try_run "$LINENO"; then :
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6821 $as_echo "yes" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 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
6827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6828 conftest.$ac_objext conftest.beam conftest.$ac_ext
6833 LIBWINE_RULES="
6834 all: libwine.dylib
6836 libwine.\$(VERSION).dylib: \$(OBJS) \$(RELPATH) Makefile.in
6837 \$(CC) -dynamiclib -install_name @rpath/libwine.\$(SOVERSION).dylib -Wl,-rpath,@loader_path/ -compatibility_version \$(SOVERSION) -current_version \$(VERSION) \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
6839 libwine.\$(SOVERSION).dylib: libwine.\$(VERSION).dylib
6840 \$(RM) \$@ && \$(LN_S) libwine.\$(VERSION).dylib \$@
6842 libwine.dylib: libwine.\$(SOVERSION).dylib
6843 \$(RM) \$@ && \$(LN_S) libwine.\$(SOVERSION).dylib \$@
6845 install install-lib:: libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir) dummy
6846 \$(INSTALL_PROGRAM) libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir)/libwine.\$(VERSION).dylib
6847 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.\$(SOVERSION).dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6849 install install-dev:: \$(DESTDIR)\$(libdir) dummy
6850 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.dylib
6852 uninstall::
6853 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6855 clean::
6856 \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib version.c
6861 linux-android*)
6862 DLLFLAGS="$DLLFLAGS -fPIC"
6863 DLLEXT=".so"
6864 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6866 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6867 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 ac_wine_try_cflags_saved=$CFLAGS
6871 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 int main(int argc, char **argv) { return 0; }
6875 _ACEOF
6876 if ac_fn_c_try_link "$LINENO"; then :
6877 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6878 else
6879 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6881 rm -f core conftest.err conftest.$ac_objext \
6882 conftest$ac_exeext conftest.$ac_ext
6883 CFLAGS=$ac_wine_try_cflags_saved
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6886 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6887 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6888 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
6891 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6892 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 ac_wine_try_cflags_saved=$CFLAGS
6896 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 int main(int argc, char **argv) { return 0; }
6900 _ACEOF
6901 if ac_fn_c_try_link "$LINENO"; then :
6902 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6903 else
6904 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6906 rm -f core conftest.err conftest.$ac_objext \
6907 conftest$ac_exeext conftest.$ac_ext
6908 CFLAGS=$ac_wine_try_cflags_saved
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6911 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6912 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6913 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6916 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6917 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 ac_wine_try_cflags_saved=$CFLAGS
6921 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 int main(int argc, char **argv) { return 0; }
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"; then :
6927 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6928 else
6929 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6931 rm -f core conftest.err conftest.$ac_objext \
6932 conftest$ac_exeext conftest.$ac_ext
6933 CFLAGS=$ac_wine_try_cflags_saved
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6936 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6937 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6938 LDEXECFLAGS="-Wl,--export-dynamic"
6941 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6943 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6944 if eval \${$as_ac_var+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 ac_wine_try_cflags_saved=$CFLAGS
6948 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 int main(int argc, char **argv) { return 0; }
6952 _ACEOF
6953 if ac_fn_c_try_link "$LINENO"; then :
6954 eval "$as_ac_var=yes"
6955 else
6956 eval "$as_ac_var=no"
6958 rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 CFLAGS=$ac_wine_try_cflags_saved
6962 eval ac_res=\$$as_ac_var
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6964 $as_echo "$ac_res" >&6; }
6965 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6966 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6967 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6968 else
6969 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6971 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6972 if eval \${$as_ac_var+:} false; then :
6973 $as_echo_n "(cached) " >&6
6974 else
6975 ac_wine_try_cflags_saved=$CFLAGS
6976 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979 int main(int argc, char **argv) { return 0; }
6980 _ACEOF
6981 if ac_fn_c_try_link "$LINENO"; then :
6982 eval "$as_ac_var=yes"
6983 else
6984 eval "$as_ac_var=no"
6986 rm -f core conftest.err conftest.$ac_objext \
6987 conftest$ac_exeext conftest.$ac_ext
6988 CFLAGS=$ac_wine_try_cflags_saved
6990 eval ac_res=\$$as_ac_var
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6992 $as_echo "$ac_res" >&6; }
6993 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6994 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6995 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7000 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7001 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 ac_wine_try_cflags_saved=$CFLAGS
7005 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008 int main(int argc, char **argv) { return 0; }
7009 _ACEOF
7010 if ac_fn_c_try_link "$LINENO"; then :
7011 ac_cv_cflags__Wl___enable_new_dtags=yes
7012 else
7013 ac_cv_cflags__Wl___enable_new_dtags=no
7015 rm -f core conftest.err conftest.$ac_objext \
7016 conftest$ac_exeext conftest.$ac_ext
7017 CFLAGS=$ac_wine_try_cflags_saved
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7020 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7021 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7022 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7025 case $host_cpu in
7026 *i[3456789]86* | x86_64)
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7028 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7029 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 ac_wine_try_cflags_saved=$CFLAGS
7033 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 int main(int argc, char **argv) { return 0; }
7037 _ACEOF
7038 if ac_fn_c_try_link "$LINENO"; then :
7039 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7040 else
7041 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7043 rm -f core conftest.err conftest.$ac_objext \
7044 conftest$ac_exeext conftest.$ac_ext
7045 CFLAGS=$ac_wine_try_cflags_saved
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7048 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7049 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7050 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
7053 esac
7055 LIBWINE_RULES="
7056 all: libwine.so
7058 libwine.so: \$(OBJS) Makefile.in
7059 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7061 install install-lib:: libwine.so \$(DESTDIR)\$(libdir) dummy
7062 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
7064 uninstall::
7065 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
7067 clean::
7068 \$(RM) libwine.so version.c
7074 DLLFLAGS="$DLLFLAGS -fPIC"
7075 DLLEXT=".so"
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
7077 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
7078 if ${ac_cv_c_dll_gnuelf+:} false; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 ac_wine_try_cflags_saved=$CFLAGS
7082 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085 void myfunc() {}
7086 _ACEOF
7087 if ac_fn_c_try_link "$LINENO"; then :
7088 ac_cv_c_dll_gnuelf="yes"
7089 else
7090 ac_cv_c_dll_gnuelf="no"
7092 rm -f core conftest.err conftest.$ac_objext \
7093 conftest$ac_exeext conftest.$ac_ext
7094 CFLAGS=$ac_wine_try_cflags_saved
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
7097 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
7098 if test "$ac_cv_c_dll_gnuelf" = "yes"
7099 then
7100 LDSHARED="\$(CC) -shared"
7101 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
7103 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
7104 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 ac_wine_try_cflags_saved=$CFLAGS
7108 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111 int main(int argc, char **argv) { return 0; }
7112 _ACEOF
7113 if ac_fn_c_try_link "$LINENO"; then :
7114 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7115 else
7116 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7118 rm -f core conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7120 CFLAGS=$ac_wine_try_cflags_saved
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
7123 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
7124 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
7125 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.\$(SOVERSION)"
7126 else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
7128 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
7129 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 ac_wine_try_cflags_saved=$CFLAGS
7133 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 int main(int argc, char **argv) { return 0; }
7137 _ACEOF
7138 if ac_fn_c_try_link "$LINENO"; then :
7139 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
7140 else
7141 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
7143 rm -f core conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145 CFLAGS=$ac_wine_try_cflags_saved
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
7148 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
7149 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
7150 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.\$(SOVERSION)"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
7155 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
7156 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 ac_wine_try_cflags_saved=$CFLAGS
7160 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 int main(int argc, char **argv) { return 0; }
7164 _ACEOF
7165 if ac_fn_c_try_link "$LINENO"; then :
7166 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
7167 else
7168 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
7170 rm -f core conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7172 CFLAGS=$ac_wine_try_cflags_saved
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
7175 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
7176 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
7177 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
7181 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
7182 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 ac_wine_try_cflags_saved=$CFLAGS
7186 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 int main(int argc, char **argv) { return 0; }
7190 _ACEOF
7191 if ac_fn_c_try_link "$LINENO"; then :
7192 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
7193 else
7194 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
7196 rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
7198 CFLAGS=$ac_wine_try_cflags_saved
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
7201 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
7202 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
7203 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
7206 echo '{ global: *; };' >conftest.map
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
7208 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
7209 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 ac_wine_try_cflags_saved=$CFLAGS
7213 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 int main(int argc, char **argv) { return 0; }
7217 _ACEOF
7218 if ac_fn_c_try_link "$LINENO"; then :
7219 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
7220 else
7221 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
7223 rm -f core conftest.err conftest.$ac_objext \
7224 conftest$ac_exeext conftest.$ac_ext
7225 CFLAGS=$ac_wine_try_cflags_saved
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
7228 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
7229 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
7230 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
7232 rm -f conftest.map
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7235 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7236 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 ac_wine_try_cflags_saved=$CFLAGS
7240 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 int main(int argc, char **argv) { return 0; }
7244 _ACEOF
7245 if ac_fn_c_try_link "$LINENO"; then :
7246 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7247 else
7248 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7250 rm -f core conftest.err conftest.$ac_objext \
7251 conftest$ac_exeext conftest.$ac_ext
7252 CFLAGS=$ac_wine_try_cflags_saved
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7255 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7256 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7257 LDEXECFLAGS="-Wl,--export-dynamic"
7261 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7263 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7264 if eval \${$as_ac_var+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 ac_wine_try_cflags_saved=$CFLAGS
7268 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 int main(int argc, char **argv) { return 0; }
7272 _ACEOF
7273 if ac_fn_c_try_link "$LINENO"; then :
7274 eval "$as_ac_var=yes"
7275 else
7276 eval "$as_ac_var=no"
7278 rm -f core conftest.err conftest.$ac_objext \
7279 conftest$ac_exeext conftest.$ac_ext
7280 CFLAGS=$ac_wine_try_cflags_saved
7282 eval ac_res=\$$as_ac_var
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7284 $as_echo "$ac_res" >&6; }
7285 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7286 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7287 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7288 else
7289 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7291 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7292 if eval \${$as_ac_var+:} false; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 ac_wine_try_cflags_saved=$CFLAGS
7296 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 int main(int argc, char **argv) { return 0; }
7300 _ACEOF
7301 if ac_fn_c_try_link "$LINENO"; then :
7302 eval "$as_ac_var=yes"
7303 else
7304 eval "$as_ac_var=no"
7306 rm -f core conftest.err conftest.$ac_objext \
7307 conftest$ac_exeext conftest.$ac_ext
7308 CFLAGS=$ac_wine_try_cflags_saved
7310 eval ac_res=\$$as_ac_var
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7312 $as_echo "$ac_res" >&6; }
7313 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7314 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7315 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7320 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7321 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 ac_wine_try_cflags_saved=$CFLAGS
7325 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7328 int main(int argc, char **argv) { return 0; }
7329 _ACEOF
7330 if ac_fn_c_try_link "$LINENO"; then :
7331 ac_cv_cflags__Wl___enable_new_dtags=yes
7332 else
7333 ac_cv_cflags__Wl___enable_new_dtags=no
7335 rm -f core conftest.err conftest.$ac_objext \
7336 conftest$ac_exeext conftest.$ac_ext
7337 CFLAGS=$ac_wine_try_cflags_saved
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7340 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7341 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7342 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7345 case $host_cpu in
7346 *i[3456789]86* | x86_64)
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7348 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7349 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 ac_wine_try_cflags_saved=$CFLAGS
7353 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 int main(int argc, char **argv) { return 0; }
7357 _ACEOF
7358 if ac_fn_c_try_link "$LINENO"; then :
7359 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7360 else
7361 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7363 rm -f core conftest.err conftest.$ac_objext \
7364 conftest$ac_exeext conftest.$ac_ext
7365 CFLAGS=$ac_wine_try_cflags_saved
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7368 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7369 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7370 case $host_os in
7371 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7372 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7373 esac
7376 # Extract the first word of "prelink", so it can be a program name with args.
7377 set dummy prelink; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if ${ac_cv_path_PRELINK+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 case $PRELINK in
7384 [\\/]* | ?:[\\/]*)
7385 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in /sbin /usr/sbin $PATH
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7399 done
7400 done
7401 IFS=$as_save_IFS
7403 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7405 esac
7407 PRELINK=$ac_cv_path_PRELINK
7408 if test -n "$PRELINK"; then
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7410 $as_echo "$PRELINK" >&6; }
7411 else
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7417 if test "x$PRELINK" = xfalse
7418 then
7419 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7422 esac
7424 else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7426 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7427 if ${ac_cv_c_dll_unixware+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 ac_wine_try_cflags_saved=$CFLAGS
7431 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 void myfunc() {}
7435 _ACEOF
7436 if ac_fn_c_try_link "$LINENO"; then :
7437 ac_cv_c_dll_unixware="yes"
7438 else
7439 ac_cv_c_dll_unixware="no"
7441 rm -f core conftest.err conftest.$ac_objext \
7442 conftest$ac_exeext conftest.$ac_ext
7443 CFLAGS=$ac_wine_try_cflags_saved
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7446 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7447 if test "$ac_cv_c_dll_unixware" = "yes"
7448 then
7449 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.\$(SOVERSION)"
7450 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7453 LIBWINE_RULES="
7454 all: libwine.so
7456 libwine.so.\$(VERSION): \$(OBJS) wine.map Makefile.in
7457 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7459 libwine.so.\$(SOVERSION): libwine.so.\$(VERSION)
7460 \$(RM) \$@ && \$(LN_S) libwine.so.\$(VERSION) \$@
7462 libwine.so: libwine.so.\$(SOVERSION)
7463 \$(RM) \$@ && \$(LN_S) libwine.so.\$(SOVERSION) \$@
7465 install install-lib:: libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir) dummy
7466 \$(INSTALL_PROGRAM) libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir)/libwine.so.\$(VERSION)
7467 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.\$(SOVERSION) && \$(LN_S) libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7469 install install-dev:: \$(DESTDIR)\$(libdir) dummy
7470 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.\$(VERSION) libwine.so
7472 uninstall::
7473 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7475 clean::
7476 \$(RM) libwine.so.\$(SOVERSION) libwine.so.\$(VERSION) version.c
7480 esac
7482 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7483 enable_winemac_drv=${enable_winemac_drv:-no}
7485 CROSSTEST_DISABLE=\#
7487 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7488 then
7489 case "$host_cpu" in
7490 i[3456789]86*)
7491 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
7492 mingw32-gcc" ;;
7493 x86_64)
7494 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 " ;;
7496 ac_prefix_list="" ;;
7497 esac
7498 for ac_prog in $ac_prefix_list
7500 # Extract the first word of "$ac_prog", so it can be a program name with args.
7501 set dummy $ac_prog; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_CROSSCC+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 if test -n "$CROSSCC"; then
7508 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_CROSSCC="$ac_prog"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7521 done
7522 done
7523 IFS=$as_save_IFS
7527 CROSSCC=$ac_cv_prog_CROSSCC
7528 if test -n "$CROSSCC"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7530 $as_echo "$CROSSCC" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7537 test -n "$CROSSCC" && break
7538 done
7539 test -n "$CROSSCC" || CROSSCC="false"
7541 if test "$CROSSCC" != "false"
7542 then
7543 ac_save_CC="$CC"
7544 CC="$CROSSCC"
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7546 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7551 main ()
7555 return 0;
7557 _ACEOF
7558 if ac_fn_c_try_compile "$LINENO"; then :
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7560 $as_echo "yes" >&6; }
7561 set x $CROSSCC
7562 shift
7563 target=""
7564 while test $# -ge 1
7566 case "$1" in
7567 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7568 esac
7569 shift
7570 done
7571 if test -n "$target"
7572 then
7573 CROSSTEST_DISABLE=""
7574 CROSSTARGET="$target"
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 CC="$ac_save_CC"
7587 if test "$ac_cv_header_pthread_h" = "yes"
7588 then
7589 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7590 if test "x$ac_cv_func_pthread_create" = xyes; then :
7592 else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7594 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7595 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 ac_check_lib_save_LIBS=$LIBS
7599 LIBS="-lpthread $LIBS"
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7603 /* Override any GCC internal prototype to avoid an error.
7604 Use char because int might match the return type of a GCC
7605 builtin and then its argument prototype would still apply. */
7606 #ifdef __cplusplus
7607 extern "C"
7608 #endif
7609 char pthread_create ();
7611 main ()
7613 return pthread_create ();
7615 return 0;
7617 _ACEOF
7618 if ac_fn_c_try_link "$LINENO"; then :
7619 ac_cv_lib_pthread_pthread_create=yes
7620 else
7621 ac_cv_lib_pthread_pthread_create=no
7623 rm -f core conftest.err conftest.$ac_objext \
7624 conftest$ac_exeext conftest.$ac_ext
7625 LIBS=$ac_check_lib_save_LIBS
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7628 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7629 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7630 LIBPTHREAD="-lpthread"
7637 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7638 case "x$with_pthread" in
7639 xno) ;;
7640 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7641 Wine cannot support threads without libpthread.
7642 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7643 esac
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7648 $as_echo_n "checking for X... " >&6; }
7651 # Check whether --with-x was given.
7652 if test "${with_x+set}" = set; then :
7653 withval=$with_x;
7656 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7657 if test "x$with_x" = xno; then
7658 # The user explicitly disabled X.
7659 have_x=disabled
7660 else
7661 case $x_includes,$x_libraries in #(
7662 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7663 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 # One or both of the vars are not set, and there is no cached value.
7667 ac_x_includes=no ac_x_libraries=no
7668 rm -f -r conftest.dir
7669 if mkdir conftest.dir; then
7670 cd conftest.dir
7671 cat >Imakefile <<'_ACEOF'
7672 incroot:
7673 @echo incroot='${INCROOT}'
7674 usrlibdir:
7675 @echo usrlibdir='${USRLIBDIR}'
7676 libdir:
7677 @echo libdir='${LIBDIR}'
7678 _ACEOF
7679 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7680 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7681 for ac_var in incroot usrlibdir libdir; do
7682 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7683 done
7684 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7685 for ac_extension in a so sl dylib la dll; do
7686 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7687 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7688 ac_im_usrlibdir=$ac_im_libdir; break
7690 done
7691 # Screen out bogus values from the imake configuration. They are
7692 # bogus both because they are the default anyway, and because
7693 # using them would break gcc on systems where it needs fixed includes.
7694 case $ac_im_incroot in
7695 /usr/include) ac_x_includes= ;;
7696 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7697 esac
7698 case $ac_im_usrlibdir in
7699 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7700 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7701 esac
7703 cd ..
7704 rm -f -r conftest.dir
7707 # Standard set of common directories for X headers.
7708 # Check X11 before X11Rn because it is often a symlink to the current release.
7709 ac_x_header_dirs='
7710 /usr/X11/include
7711 /usr/X11R7/include
7712 /usr/X11R6/include
7713 /usr/X11R5/include
7714 /usr/X11R4/include
7716 /usr/include/X11
7717 /usr/include/X11R7
7718 /usr/include/X11R6
7719 /usr/include/X11R5
7720 /usr/include/X11R4
7722 /usr/local/X11/include
7723 /usr/local/X11R7/include
7724 /usr/local/X11R6/include
7725 /usr/local/X11R5/include
7726 /usr/local/X11R4/include
7728 /usr/local/include/X11
7729 /usr/local/include/X11R7
7730 /usr/local/include/X11R6
7731 /usr/local/include/X11R5
7732 /usr/local/include/X11R4
7734 /usr/X386/include
7735 /usr/x386/include
7736 /usr/XFree86/include/X11
7738 /usr/include
7739 /usr/local/include
7740 /usr/unsupported/include
7741 /usr/athena/include
7742 /usr/local/x11r5/include
7743 /usr/lpp/Xamples/include
7745 /usr/openwin/include
7746 /usr/openwin/share/include'
7748 if test "$ac_x_includes" = no; then
7749 # Guess where to find include files, by looking for Xlib.h.
7750 # First, try using that file with no special directory specified.
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 #include <X11/Xlib.h>
7754 _ACEOF
7755 if ac_fn_c_try_cpp "$LINENO"; then :
7756 # We can compile using X headers with no special include directory.
7757 ac_x_includes=
7758 else
7759 for ac_dir in $ac_x_header_dirs; do
7760 if test -r "$ac_dir/X11/Xlib.h"; then
7761 ac_x_includes=$ac_dir
7762 break
7764 done
7766 rm -f conftest.err conftest.i conftest.$ac_ext
7767 fi # $ac_x_includes = no
7769 if test "$ac_x_libraries" = no; then
7770 # Check for the libraries.
7771 # See if we find them without any special options.
7772 # Don't add to $LIBS permanently.
7773 ac_save_LIBS=$LIBS
7774 LIBS="-lX11 $LIBS"
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777 #include <X11/Xlib.h>
7779 main ()
7781 XrmInitialize ()
7783 return 0;
7785 _ACEOF
7786 if ac_fn_c_try_link "$LINENO"; then :
7787 LIBS=$ac_save_LIBS
7788 # We can link X programs with no special library path.
7789 ac_x_libraries=
7790 else
7791 LIBS=$ac_save_LIBS
7792 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7794 # Don't even attempt the hair of trying to link an X program!
7795 for ac_extension in a so sl dylib la dll; do
7796 if test -r "$ac_dir/libX11.$ac_extension"; then
7797 ac_x_libraries=$ac_dir
7798 break 2
7800 done
7801 done
7803 rm -f core conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 fi # $ac_x_libraries = no
7807 case $ac_x_includes,$ac_x_libraries in #(
7808 no,* | *,no | *\'*)
7809 # Didn't find X, or a directory has "'" in its name.
7810 ac_cv_have_x="have_x=no";; #(
7812 # Record where we found X for the cache.
7813 ac_cv_have_x="have_x=yes\
7814 ac_x_includes='$ac_x_includes'\
7815 ac_x_libraries='$ac_x_libraries'"
7816 esac
7818 ;; #(
7819 *) have_x=yes;;
7820 esac
7821 eval "$ac_cv_have_x"
7822 fi # $with_x != no
7824 if test "$have_x" != yes; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7826 $as_echo "$have_x" >&6; }
7827 no_x=yes
7828 else
7829 # If each of the values was on the command line, it overrides each guess.
7830 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7831 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7832 # Update the cache value to reflect the command line values.
7833 ac_cv_have_x="have_x=yes\
7834 ac_x_includes='$x_includes'\
7835 ac_x_libraries='$x_libraries'"
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7837 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7840 if test "$no_x" = yes; then
7841 # Not all programs may use this symbol, but it does not hurt to define it.
7843 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7845 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7846 else
7847 if test -n "$x_includes"; then
7848 X_CFLAGS="$X_CFLAGS -I$x_includes"
7851 # It would also be nice to do this for all -L options, not just this one.
7852 if test -n "$x_libraries"; then
7853 X_LIBS="$X_LIBS -L$x_libraries"
7854 # For Solaris; some versions of Sun CC require a space after -R and
7855 # others require no space. Words are not sufficient . . . .
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7857 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7858 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7859 ac_xsave_c_werror_flag=$ac_c_werror_flag
7860 ac_c_werror_flag=yes
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7865 main ()
7869 return 0;
7871 _ACEOF
7872 if ac_fn_c_try_link "$LINENO"; then :
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 X_LIBS="$X_LIBS -R$x_libraries"
7876 else
7877 LIBS="$ac_xsave_LIBS -R $x_libraries"
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7882 main ()
7886 return 0;
7888 _ACEOF
7889 if ac_fn_c_try_link "$LINENO"; then :
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7891 $as_echo "yes" >&6; }
7892 X_LIBS="$X_LIBS -R $x_libraries"
7893 else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7895 $as_echo "neither works" >&6; }
7897 rm -f core conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
7900 rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902 ac_c_werror_flag=$ac_xsave_c_werror_flag
7903 LIBS=$ac_xsave_LIBS
7906 # Check for system-dependent libraries X programs must link with.
7907 # Do this before checking for the system-independent R6 libraries
7908 # (-lICE), since we may need -lsocket or whatever for X linking.
7910 if test "$ISC" = yes; then
7911 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7912 else
7913 # Martyn Johnson says this is needed for Ultrix, if the X
7914 # libraries were built with DECnet support. And Karl Berry says
7915 # the Alpha needs dnet_stub (dnet does not exist).
7916 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7920 /* Override any GCC internal prototype to avoid an error.
7921 Use char because int might match the return type of a GCC
7922 builtin and then its argument prototype would still apply. */
7923 #ifdef __cplusplus
7924 extern "C"
7925 #endif
7926 char XOpenDisplay ();
7928 main ()
7930 return XOpenDisplay ();
7932 return 0;
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7937 else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7939 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7940 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 ac_check_lib_save_LIBS=$LIBS
7944 LIBS="-ldnet $LIBS"
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7948 /* Override any GCC internal prototype to avoid an error.
7949 Use char because int might match the return type of a GCC
7950 builtin and then its argument prototype would still apply. */
7951 #ifdef __cplusplus
7952 extern "C"
7953 #endif
7954 char dnet_ntoa ();
7956 main ()
7958 return dnet_ntoa ();
7960 return 0;
7962 _ACEOF
7963 if ac_fn_c_try_link "$LINENO"; then :
7964 ac_cv_lib_dnet_dnet_ntoa=yes
7965 else
7966 ac_cv_lib_dnet_dnet_ntoa=no
7968 rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7973 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7974 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7975 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7978 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7980 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7981 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 ac_check_lib_save_LIBS=$LIBS
7985 LIBS="-ldnet_stub $LIBS"
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7989 /* Override any GCC internal prototype to avoid an error.
7990 Use char because int might match the return type of a GCC
7991 builtin and then its argument prototype would still apply. */
7992 #ifdef __cplusplus
7993 extern "C"
7994 #endif
7995 char dnet_ntoa ();
7997 main ()
7999 return dnet_ntoa ();
8001 return 0;
8003 _ACEOF
8004 if ac_fn_c_try_link "$LINENO"; then :
8005 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8006 else
8007 ac_cv_lib_dnet_stub_dnet_ntoa=no
8009 rm -f core conftest.err conftest.$ac_objext \
8010 conftest$ac_exeext conftest.$ac_ext
8011 LIBS=$ac_check_lib_save_LIBS
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8014 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8015 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8016 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8021 rm -f core conftest.err conftest.$ac_objext \
8022 conftest$ac_exeext conftest.$ac_ext
8023 LIBS="$ac_xsave_LIBS"
8025 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8026 # to get the SysV transport functions.
8027 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8028 # needs -lnsl.
8029 # The nsl library prevents programs from opening the X display
8030 # on Irix 5.2, according to T.E. Dickey.
8031 # The functions gethostbyname, getservbyname, and inet_addr are
8032 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8033 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8034 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8038 if test $ac_cv_func_gethostbyname = no; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8040 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8041 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 ac_check_lib_save_LIBS=$LIBS
8045 LIBS="-lnsl $LIBS"
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8049 /* Override any GCC internal prototype to avoid an error.
8050 Use char because int might match the return type of a GCC
8051 builtin and then its argument prototype would still apply. */
8052 #ifdef __cplusplus
8053 extern "C"
8054 #endif
8055 char gethostbyname ();
8057 main ()
8059 return gethostbyname ();
8061 return 0;
8063 _ACEOF
8064 if ac_fn_c_try_link "$LINENO"; then :
8065 ac_cv_lib_nsl_gethostbyname=yes
8066 else
8067 ac_cv_lib_nsl_gethostbyname=no
8069 rm -f core conftest.err conftest.$ac_objext \
8070 conftest$ac_exeext conftest.$ac_ext
8071 LIBS=$ac_check_lib_save_LIBS
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8074 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8075 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8076 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8079 if test $ac_cv_lib_nsl_gethostbyname = no; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8081 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8082 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 ac_check_lib_save_LIBS=$LIBS
8086 LIBS="-lbsd $LIBS"
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8090 /* Override any GCC internal prototype to avoid an error.
8091 Use char because int might match the return type of a GCC
8092 builtin and then its argument prototype would still apply. */
8093 #ifdef __cplusplus
8094 extern "C"
8095 #endif
8096 char gethostbyname ();
8098 main ()
8100 return gethostbyname ();
8102 return 0;
8104 _ACEOF
8105 if ac_fn_c_try_link "$LINENO"; then :
8106 ac_cv_lib_bsd_gethostbyname=yes
8107 else
8108 ac_cv_lib_bsd_gethostbyname=no
8110 rm -f core conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 LIBS=$ac_check_lib_save_LIBS
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8115 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8116 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8117 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8123 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8124 # socket/setsockopt and other routines are undefined under SCO ODT
8125 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8126 # on later versions), says Simon Leinen: it contains gethostby*
8127 # variants that don't use the name server (or something). -lsocket
8128 # must be given before -lnsl if both are needed. We assume that
8129 # if connect needs -lnsl, so does gethostbyname.
8130 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8131 if test "x$ac_cv_func_connect" = xyes; then :
8135 if test $ac_cv_func_connect = no; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8137 $as_echo_n "checking for connect in -lsocket... " >&6; }
8138 if ${ac_cv_lib_socket_connect+:} false; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 ac_check_lib_save_LIBS=$LIBS
8142 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8146 /* Override any GCC internal prototype to avoid an error.
8147 Use char because int might match the return type of a GCC
8148 builtin and then its argument prototype would still apply. */
8149 #ifdef __cplusplus
8150 extern "C"
8151 #endif
8152 char connect ();
8154 main ()
8156 return connect ();
8158 return 0;
8160 _ACEOF
8161 if ac_fn_c_try_link "$LINENO"; then :
8162 ac_cv_lib_socket_connect=yes
8163 else
8164 ac_cv_lib_socket_connect=no
8166 rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8168 LIBS=$ac_check_lib_save_LIBS
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8171 $as_echo "$ac_cv_lib_socket_connect" >&6; }
8172 if test "x$ac_cv_lib_socket_connect" = xyes; then :
8173 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8178 # Guillermo Gomez says -lposix is necessary on A/UX.
8179 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8180 if test "x$ac_cv_func_remove" = xyes; then :
8184 if test $ac_cv_func_remove = no; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8186 $as_echo_n "checking for remove in -lposix... " >&6; }
8187 if ${ac_cv_lib_posix_remove+:} false; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 ac_check_lib_save_LIBS=$LIBS
8191 LIBS="-lposix $LIBS"
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8195 /* Override any GCC internal prototype to avoid an error.
8196 Use char because int might match the return type of a GCC
8197 builtin and then its argument prototype would still apply. */
8198 #ifdef __cplusplus
8199 extern "C"
8200 #endif
8201 char remove ();
8203 main ()
8205 return remove ();
8207 return 0;
8209 _ACEOF
8210 if ac_fn_c_try_link "$LINENO"; then :
8211 ac_cv_lib_posix_remove=yes
8212 else
8213 ac_cv_lib_posix_remove=no
8215 rm -f core conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217 LIBS=$ac_check_lib_save_LIBS
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8220 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8221 if test "x$ac_cv_lib_posix_remove" = xyes; then :
8222 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8227 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8228 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8229 if test "x$ac_cv_func_shmat" = xyes; then :
8233 if test $ac_cv_func_shmat = no; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8235 $as_echo_n "checking for shmat in -lipc... " >&6; }
8236 if ${ac_cv_lib_ipc_shmat+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 ac_check_lib_save_LIBS=$LIBS
8240 LIBS="-lipc $LIBS"
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8244 /* Override any GCC internal prototype to avoid an error.
8245 Use char because int might match the return type of a GCC
8246 builtin and then its argument prototype would still apply. */
8247 #ifdef __cplusplus
8248 extern "C"
8249 #endif
8250 char shmat ();
8252 main ()
8254 return shmat ();
8256 return 0;
8258 _ACEOF
8259 if ac_fn_c_try_link "$LINENO"; then :
8260 ac_cv_lib_ipc_shmat=yes
8261 else
8262 ac_cv_lib_ipc_shmat=no
8264 rm -f core conftest.err conftest.$ac_objext \
8265 conftest$ac_exeext conftest.$ac_ext
8266 LIBS=$ac_check_lib_save_LIBS
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8269 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8270 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8277 # Check for libraries that X11R6 Xt/Xaw programs need.
8278 ac_save_LDFLAGS=$LDFLAGS
8279 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8280 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8281 # check for ICE first), but we must link in the order -lSM -lICE or
8282 # we get undefined symbols. So assume we have SM if we have ICE.
8283 # These have to be linked with before -lX11, unlike the other
8284 # libraries we check for below, so use a different variable.
8285 # John Interrante, Karl Berry
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8287 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8288 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8289 $as_echo_n "(cached) " >&6
8290 else
8291 ac_check_lib_save_LIBS=$LIBS
8292 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8296 /* Override any GCC internal prototype to avoid an error.
8297 Use char because int might match the return type of a GCC
8298 builtin and then its argument prototype would still apply. */
8299 #ifdef __cplusplus
8300 extern "C"
8301 #endif
8302 char IceConnectionNumber ();
8304 main ()
8306 return IceConnectionNumber ();
8308 return 0;
8310 _ACEOF
8311 if ac_fn_c_try_link "$LINENO"; then :
8312 ac_cv_lib_ICE_IceConnectionNumber=yes
8313 else
8314 ac_cv_lib_ICE_IceConnectionNumber=no
8316 rm -f core conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
8318 LIBS=$ac_check_lib_save_LIBS
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8321 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8322 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8323 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8326 LDFLAGS=$ac_save_LDFLAGS
8331 if test "$have_x" = "yes"
8332 then
8333 XLIB="-lX11"
8334 ac_save_CPPFLAGS="$CPPFLAGS"
8335 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8338 $as_echo_n "checking for -lX11... " >&6; }
8339 if ${ac_cv_lib_soname_X11+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 ac_check_soname_save_LIBS=$LIBS
8343 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8347 /* Override any GCC internal prototype to avoid an error.
8348 Use char because int might match the return type of a GCC
8349 builtin and then its argument prototype would still apply. */
8350 #ifdef __cplusplus
8351 extern "C"
8352 #endif
8353 char XCreateWindow ();
8355 main ()
8357 return XCreateWindow ();
8359 return 0;
8361 _ACEOF
8362 if ac_fn_c_try_link "$LINENO"; then :
8363 case "$LIBEXT" in
8364 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8365 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'` ;;
8366 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8367 if test "x$ac_cv_lib_soname_X11" = x; then :
8368 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8369 fi ;;
8370 esac
8372 rm -f core conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
8374 LIBS=$ac_check_soname_save_LIBS
8376 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8378 $as_echo "not found" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8382 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8384 cat >>confdefs.h <<_ACEOF
8385 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8386 _ACEOF
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8391 $as_echo_n "checking for -lXext... " >&6; }
8392 if ${ac_cv_lib_soname_Xext+:} false; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 ac_check_soname_save_LIBS=$LIBS
8396 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8400 /* Override any GCC internal prototype to avoid an error.
8401 Use char because int might match the return type of a GCC
8402 builtin and then its argument prototype would still apply. */
8403 #ifdef __cplusplus
8404 extern "C"
8405 #endif
8406 char XextCreateExtension ();
8408 main ()
8410 return XextCreateExtension ();
8412 return 0;
8414 _ACEOF
8415 if ac_fn_c_try_link "$LINENO"; then :
8416 case "$LIBEXT" in
8417 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8418 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'` ;;
8419 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8420 if test "x$ac_cv_lib_soname_Xext" = x; then :
8421 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8422 fi ;;
8423 esac
8425 rm -f core conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext conftest.$ac_ext
8427 LIBS=$ac_check_soname_save_LIBS
8429 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8431 $as_echo "not found" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8435 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8437 cat >>confdefs.h <<_ACEOF
8438 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8439 _ACEOF
8441 XLIB="-lXext $XLIB"
8444 for ac_header in X11/Xlib.h \
8445 X11/XKBlib.h \
8446 X11/Xutil.h \
8447 X11/Xcursor/Xcursor.h \
8448 X11/extensions/shape.h \
8449 X11/extensions/XInput.h \
8450 X11/extensions/XInput2.h \
8451 X11/extensions/XShm.h \
8452 X11/extensions/Xcomposite.h \
8453 X11/extensions/Xinerama.h \
8454 X11/extensions/Xrandr.h \
8455 X11/extensions/Xrender.h \
8456 X11/extensions/xf86vmode.h \
8457 X11/extensions/xf86vmproto.h
8458 do :
8459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8460 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8461 # include <X11/Xlib.h>
8462 #endif
8463 #ifdef HAVE_X11_XUTIL_H
8464 # include <X11/Xutil.h>
8465 #endif
8467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8468 cat >>confdefs.h <<_ACEOF
8469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8470 _ACEOF
8474 done
8477 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8478 then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8480 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8481 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 ac_check_lib_save_LIBS=$LIBS
8485 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8489 /* Override any GCC internal prototype to avoid an error.
8490 Use char because int might match the return type of a GCC
8491 builtin and then its argument prototype would still apply. */
8492 #ifdef __cplusplus
8493 extern "C"
8494 #endif
8495 char XkbQueryExtension ();
8497 main ()
8499 return XkbQueryExtension ();
8501 return 0;
8503 _ACEOF
8504 if ac_fn_c_try_link "$LINENO"; then :
8505 ac_cv_lib_X11_XkbQueryExtension=yes
8506 else
8507 ac_cv_lib_X11_XkbQueryExtension=no
8509 rm -f core conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511 LIBS=$ac_check_lib_save_LIBS
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8514 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8515 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8517 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8523 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8524 then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8526 $as_echo_n "checking for -lXcursor... " >&6; }
8527 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 ac_check_soname_save_LIBS=$LIBS
8531 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8535 /* Override any GCC internal prototype to avoid an error.
8536 Use char because int might match the return type of a GCC
8537 builtin and then its argument prototype would still apply. */
8538 #ifdef __cplusplus
8539 extern "C"
8540 #endif
8541 char XcursorImageLoadCursor ();
8543 main ()
8545 return XcursorImageLoadCursor ();
8547 return 0;
8549 _ACEOF
8550 if ac_fn_c_try_link "$LINENO"; then :
8551 case "$LIBEXT" in
8552 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8553 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'` ;;
8554 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8555 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8556 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8557 fi ;;
8558 esac
8560 rm -f core conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 LIBS=$ac_check_soname_save_LIBS
8564 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8566 $as_echo "not found" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8570 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8572 cat >>confdefs.h <<_ACEOF
8573 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8574 _ACEOF
8579 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8580 case "x$with_xcursor" in
8581 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8582 xno) ;;
8583 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8584 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8585 esac
8588 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8589 then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8591 $as_echo_n "checking for -lXi... " >&6; }
8592 if ${ac_cv_lib_soname_Xi+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 ac_check_soname_save_LIBS=$LIBS
8596 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8600 /* Override any GCC internal prototype to avoid an error.
8601 Use char because int might match the return type of a GCC
8602 builtin and then its argument prototype would still apply. */
8603 #ifdef __cplusplus
8604 extern "C"
8605 #endif
8606 char XOpenDevice ();
8608 main ()
8610 return XOpenDevice ();
8612 return 0;
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"; then :
8616 case "$LIBEXT" in
8617 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8618 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'` ;;
8619 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8620 if test "x$ac_cv_lib_soname_Xi" = x; then :
8621 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8622 fi ;;
8623 esac
8625 rm -f core conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
8627 LIBS=$ac_check_soname_save_LIBS
8629 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8631 $as_echo "not found" >&6; }
8633 else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8635 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8637 cat >>confdefs.h <<_ACEOF
8638 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8639 _ACEOF
8644 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8645 case "x$with_xinput" in
8646 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8647 xno) ;;
8648 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8649 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8650 esac
8653 if test "x$ac_cv_lib_soname_Xi" != x
8654 then
8655 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8656 case "x$with_xinput2" in
8657 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8658 xno) ;;
8659 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8660 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8661 esac
8665 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8666 then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8668 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8669 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 ac_check_lib_save_LIBS=$LIBS
8673 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8677 /* Override any GCC internal prototype to avoid an error.
8678 Use char because int might match the return type of a GCC
8679 builtin and then its argument prototype would still apply. */
8680 #ifdef __cplusplus
8681 extern "C"
8682 #endif
8683 char XShmQueryExtension ();
8685 main ()
8687 return XShmQueryExtension ();
8689 return 0;
8691 _ACEOF
8692 if ac_fn_c_try_link "$LINENO"; then :
8693 ac_cv_lib_Xext_XShmQueryExtension=yes
8694 else
8695 ac_cv_lib_Xext_XShmQueryExtension=no
8697 rm -f core conftest.err conftest.$ac_objext \
8698 conftest$ac_exeext conftest.$ac_ext
8699 LIBS=$ac_check_lib_save_LIBS
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8702 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8703 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8705 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8710 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8711 case "x$with_xshm" in
8712 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8713 xno) ;;
8714 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8715 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8716 esac
8719 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8720 then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8722 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8723 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 ac_check_lib_save_LIBS=$LIBS
8727 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8731 /* Override any GCC internal prototype to avoid an error.
8732 Use char because int might match the return type of a GCC
8733 builtin and then its argument prototype would still apply. */
8734 #ifdef __cplusplus
8735 extern "C"
8736 #endif
8737 char XShapeQueryExtension ();
8739 main ()
8741 return XShapeQueryExtension ();
8743 return 0;
8745 _ACEOF
8746 if ac_fn_c_try_link "$LINENO"; then :
8747 ac_cv_lib_Xext_XShapeQueryExtension=yes
8748 else
8749 ac_cv_lib_Xext_XShapeQueryExtension=no
8751 rm -f core conftest.err conftest.$ac_objext \
8752 conftest$ac_exeext conftest.$ac_ext
8753 LIBS=$ac_check_lib_save_LIBS
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8756 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8757 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8759 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8764 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8765 case "x$with_xshape" in
8766 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8767 xno) ;;
8768 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8769 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8770 esac
8773 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8774 then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8776 $as_echo_n "checking for -lXxf86vm... " >&6; }
8777 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 ac_check_soname_save_LIBS=$LIBS
8781 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8785 /* Override any GCC internal prototype to avoid an error.
8786 Use char because int might match the return type of a GCC
8787 builtin and then its argument prototype would still apply. */
8788 #ifdef __cplusplus
8789 extern "C"
8790 #endif
8791 char XF86VidModeQueryExtension ();
8793 main ()
8795 return XF86VidModeQueryExtension ();
8797 return 0;
8799 _ACEOF
8800 if ac_fn_c_try_link "$LINENO"; then :
8801 case "$LIBEXT" in
8802 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8803 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'` ;;
8804 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8805 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8806 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8807 fi ;;
8808 esac
8810 rm -f core conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
8812 LIBS=$ac_check_soname_save_LIBS
8814 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8816 $as_echo "not found" >&6; }
8818 else
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8820 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8822 cat >>confdefs.h <<_ACEOF
8823 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8824 _ACEOF
8829 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8830 case "x$with_xxf86vm" in
8831 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8832 xno) ;;
8833 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8834 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8835 esac
8838 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x" -a "x$ac_cv_lib_soname_Xext" != "x"
8839 then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8841 $as_echo_n "checking for -lXrender... " >&6; }
8842 if ${ac_cv_lib_soname_Xrender+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 ac_check_soname_save_LIBS=$LIBS
8846 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8850 /* Override any GCC internal prototype to avoid an error.
8851 Use char because int might match the return type of a GCC
8852 builtin and then its argument prototype would still apply. */
8853 #ifdef __cplusplus
8854 extern "C"
8855 #endif
8856 char XRenderQueryExtension ();
8858 main ()
8860 return XRenderQueryExtension ();
8862 return 0;
8864 _ACEOF
8865 if ac_fn_c_try_link "$LINENO"; then :
8866 case "$LIBEXT" in
8867 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8868 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'` ;;
8869 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8870 if test "x$ac_cv_lib_soname_Xrender" = x; then :
8871 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8872 fi ;;
8873 esac
8875 rm -f core conftest.err conftest.$ac_objext \
8876 conftest$ac_exeext conftest.$ac_ext
8877 LIBS=$ac_check_soname_save_LIBS
8879 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8881 $as_echo "not found" >&6; }
8883 else
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8885 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8887 cat >>confdefs.h <<_ACEOF
8888 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8889 _ACEOF
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8892 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8893 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 ac_check_lib_save_LIBS=$LIBS
8897 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8901 /* Override any GCC internal prototype to avoid an error.
8902 Use char because int might match the return type of a GCC
8903 builtin and then its argument prototype would still apply. */
8904 #ifdef __cplusplus
8905 extern "C"
8906 #endif
8907 char XRenderSetPictureTransform ();
8909 main ()
8911 return XRenderSetPictureTransform ();
8913 return 0;
8915 _ACEOF
8916 if ac_fn_c_try_link "$LINENO"; then :
8917 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8918 else
8919 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8921 rm -f core conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8923 LIBS=$ac_check_lib_save_LIBS
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8926 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8927 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8929 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8934 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8935 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 ac_check_lib_save_LIBS=$LIBS
8939 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8943 /* Override any GCC internal prototype to avoid an error.
8944 Use char because int might match the return type of a GCC
8945 builtin and then its argument prototype would still apply. */
8946 #ifdef __cplusplus
8947 extern "C"
8948 #endif
8949 char XRenderCreateLinearGradient ();
8951 main ()
8953 return XRenderCreateLinearGradient ();
8955 return 0;
8957 _ACEOF
8958 if ac_fn_c_try_link "$LINENO"; then :
8959 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8960 else
8961 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8963 rm -f core conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext conftest.$ac_ext
8965 LIBS=$ac_check_lib_save_LIBS
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8968 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8969 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8971 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8978 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8979 case "x$with_xrender" in
8980 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8981 xno) ;;
8982 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8983 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8984 esac
8987 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8988 then
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 #include <X11/Xlib.h>
8992 #include <X11/extensions/Xrandr.h>
8994 main ()
8996 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8998 return 0;
9000 _ACEOF
9001 if ac_fn_c_try_compile "$LINENO"; then :
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9003 $as_echo_n "checking for -lXrandr... " >&6; }
9004 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 ac_check_soname_save_LIBS=$LIBS
9008 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9012 /* Override any GCC internal prototype to avoid an error.
9013 Use char because int might match the return type of a GCC
9014 builtin and then its argument prototype would still apply. */
9015 #ifdef __cplusplus
9016 extern "C"
9017 #endif
9018 char XRRQueryExtension ();
9020 main ()
9022 return XRRQueryExtension ();
9024 return 0;
9026 _ACEOF
9027 if ac_fn_c_try_link "$LINENO"; then :
9028 case "$LIBEXT" in
9029 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9030 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'` ;;
9031 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9032 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9033 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9034 fi ;;
9035 esac
9037 rm -f core conftest.err conftest.$ac_objext \
9038 conftest$ac_exeext conftest.$ac_ext
9039 LIBS=$ac_check_soname_save_LIBS
9041 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9043 $as_echo "not found" >&6; }
9045 else
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9047 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9049 cat >>confdefs.h <<_ACEOF
9050 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9051 _ACEOF
9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h. */
9055 #include <X11/Xlib.h>
9056 #include <X11/extensions/Xrandr.h>
9058 main ()
9060 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9062 return 0;
9064 _ACEOF
9065 if ac_fn_c_try_compile "$LINENO"; then :
9067 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9076 case "x$with_xrandr" in
9077 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9078 xno) ;;
9079 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9080 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9081 esac
9084 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9085 then
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 #include <X11/Xlib.h>
9089 #include <X11/extensions/Xinerama.h>
9091 main ()
9093 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9095 return 0;
9097 _ACEOF
9098 if ac_fn_c_try_compile "$LINENO"; then :
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9100 $as_echo_n "checking for -lXinerama... " >&6; }
9101 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 ac_check_soname_save_LIBS=$LIBS
9105 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9109 /* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 char XineramaQueryScreens ();
9117 main ()
9119 return XineramaQueryScreens ();
9121 return 0;
9123 _ACEOF
9124 if ac_fn_c_try_link "$LINENO"; then :
9125 case "$LIBEXT" in
9126 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9127 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'` ;;
9128 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9129 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
9130 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9131 fi ;;
9132 esac
9134 rm -f core conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext conftest.$ac_ext
9136 LIBS=$ac_check_soname_save_LIBS
9138 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9140 $as_echo "not found" >&6; }
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
9144 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
9146 cat >>confdefs.h <<_ACEOF
9147 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
9148 _ACEOF
9153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9156 case "x$with_xinerama" in
9157 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
9158 xno) ;;
9159 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
9160 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
9161 esac
9164 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
9165 then
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
9167 $as_echo_n "checking for -lXcomposite... " >&6; }
9168 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9171 ac_check_soname_save_LIBS=$LIBS
9172 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9176 /* Override any GCC internal prototype to avoid an error.
9177 Use char because int might match the return type of a GCC
9178 builtin and then its argument prototype would still apply. */
9179 #ifdef __cplusplus
9180 extern "C"
9181 #endif
9182 char XCompositeRedirectWindow ();
9184 main ()
9186 return XCompositeRedirectWindow ();
9188 return 0;
9190 _ACEOF
9191 if ac_fn_c_try_link "$LINENO"; then :
9192 case "$LIBEXT" in
9193 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9194 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'` ;;
9195 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9196 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
9197 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9198 fi ;;
9199 esac
9201 rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 LIBS=$ac_check_soname_save_LIBS
9205 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9207 $as_echo "not found" >&6; }
9209 else
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
9211 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
9213 cat >>confdefs.h <<_ACEOF
9214 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
9215 _ACEOF
9220 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9221 case "x$with_xcomposite" in
9222 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
9223 xno) ;;
9224 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
9225 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
9226 esac
9229 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9230 #include <X11/Xlib.h>
9231 #endif
9233 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9235 cat >>confdefs.h <<_ACEOF
9236 #define HAVE_XICCALLBACK_CALLBACK 1
9237 _ACEOF
9241 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9242 #include <X11/Xlib.h>
9243 #endif
9245 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9247 cat >>confdefs.h <<_ACEOF
9248 #define HAVE_XEVENT_XCOOKIE 1
9249 _ACEOF
9256 opengl_msg=""
9257 if test "x$with_opengl" != "xno"
9258 then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9260 $as_echo_n "checking for -lGL... " >&6; }
9261 if ${ac_cv_lib_soname_GL+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 ac_check_soname_save_LIBS=$LIBS
9265 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9269 /* Override any GCC internal prototype to avoid an error.
9270 Use char because int might match the return type of a GCC
9271 builtin and then its argument prototype would still apply. */
9272 #ifdef __cplusplus
9273 extern "C"
9274 #endif
9275 char glXCreateContext ();
9277 main ()
9279 return glXCreateContext ();
9281 return 0;
9283 _ACEOF
9284 if ac_fn_c_try_link "$LINENO"; then :
9285 case "$LIBEXT" in
9286 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9287 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'` ;;
9288 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9289 if test "x$ac_cv_lib_soname_GL" = x; then :
9290 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9291 fi ;;
9292 esac
9294 rm -f core conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext conftest.$ac_ext
9296 LIBS=$ac_check_soname_save_LIBS
9298 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9300 $as_echo "not found" >&6; }
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9302 $as_echo_n "checking for -lGL... " >&6; }
9303 if ${ac_cv_lib_soname_GL+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306 ac_check_soname_save_LIBS=$LIBS
9307 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9311 /* Override any GCC internal prototype to avoid an error.
9312 Use char because int might match the return type of a GCC
9313 builtin and then its argument prototype would still apply. */
9314 #ifdef __cplusplus
9315 extern "C"
9316 #endif
9317 char glXCreateContext ();
9319 main ()
9321 return glXCreateContext ();
9323 return 0;
9325 _ACEOF
9326 if ac_fn_c_try_link "$LINENO"; then :
9327 case "$LIBEXT" in
9328 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9329 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'` ;;
9330 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9331 if test "x$ac_cv_lib_soname_GL" = x; then :
9332 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9333 fi ;;
9334 esac
9336 rm -f core conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9338 LIBS=$ac_check_soname_save_LIBS
9340 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9342 $as_echo "not found" >&6; }
9343 if test -f /usr/X11R6/lib/libGL.a
9344 then
9345 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9346 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9347 else
9348 opengl_msg="No OpenGL library found on this system."
9350 else
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9352 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9354 cat >>confdefs.h <<_ACEOF
9355 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9356 _ACEOF
9358 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"
9360 else
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9362 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9364 cat >>confdefs.h <<_ACEOF
9365 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9366 _ACEOF
9368 OPENGL_LIBS="-lGL"
9370 if test "x$with_glu" != "xno"
9371 then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9373 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9374 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9375 $as_echo_n "(cached) " >&6
9376 else
9377 ac_check_lib_save_LIBS=$LIBS
9378 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9382 /* Override any GCC internal prototype to avoid an error.
9383 Use char because int might match the return type of a GCC
9384 builtin and then its argument prototype would still apply. */
9385 #ifdef __cplusplus
9386 extern "C"
9387 #endif
9388 char gluLookAt ();
9390 main ()
9392 return gluLookAt ();
9394 return 0;
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"; then :
9398 ac_cv_lib_GLU_gluLookAt=yes
9399 else
9400 ac_cv_lib_GLU_gluLookAt=no
9402 rm -f core conftest.err conftest.$ac_objext \
9403 conftest$ac_exeext conftest.$ac_ext
9404 LIBS=$ac_check_lib_save_LIBS
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9407 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9408 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9412 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9413 case "x$with_glu" in
9414 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9415 xno) ;;
9416 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9417 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9418 esac
9422 if test "x$with_osmesa" != "xno"
9423 then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9425 $as_echo_n "checking for -lOSMesa... " >&6; }
9426 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 ac_check_soname_save_LIBS=$LIBS
9430 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9434 /* Override any GCC internal prototype to avoid an error.
9435 Use char because int might match the return type of a GCC
9436 builtin and then its argument prototype would still apply. */
9437 #ifdef __cplusplus
9438 extern "C"
9439 #endif
9440 char glAccum ();
9442 main ()
9444 return glAccum ();
9446 return 0;
9448 _ACEOF
9449 if ac_fn_c_try_link "$LINENO"; then :
9450 case "$LIBEXT" in
9451 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9452 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'` ;;
9453 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9454 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9455 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9456 fi ;;
9457 esac
9459 rm -f core conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9461 LIBS=$ac_check_soname_save_LIBS
9463 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9465 $as_echo "not found" >&6; }
9467 else
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9469 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9471 cat >>confdefs.h <<_ACEOF
9472 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9473 _ACEOF
9477 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9478 case "x$with_osmesa" in
9479 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9480 xno) ;;
9481 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9482 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9483 esac
9487 if test -n "$opengl_msg"; then :
9488 case "x$with_opengl" in
9489 x) as_fn_append wine_warnings "|$opengl_msg
9490 OpenGL and Direct3D won't be supported." ;;
9491 xno) ;;
9492 *) as_fn_error $? "$opengl_msg
9493 OpenGL and Direct3D won't be supported.
9494 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9495 esac
9498 CPPFLAGS="$ac_save_CPPFLAGS"
9499 else
9500 XLIB=""
9501 X_CFLAGS=""
9502 X_LIBS=""
9503 enable_winex11_drv=${enable_winex11_drv:-no}
9505 if test "x$XLIB" = "x"; then :
9506 case "x$with_x" in
9507 xno) ;;
9508 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9509 without X support, which probably isn't what you want. You will need
9510 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9511 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9512 esac
9515 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9517 if test "$ac_cv_header_CL_cl_h" = "yes"
9518 then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9520 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9521 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 ac_check_lib_save_LIBS=$LIBS
9525 LIBS="-lOpenCL $LIBS"
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9532 #ifdef __cplusplus
9533 extern "C"
9534 #endif
9535 char clGetPlatformInfo ();
9537 main ()
9539 return clGetPlatformInfo ();
9541 return 0;
9543 _ACEOF
9544 if ac_fn_c_try_link "$LINENO"; then :
9545 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9546 else
9547 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9551 LIBS=$ac_check_lib_save_LIBS
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9554 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9555 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9556 LIBOPENCL="-lOpenCL"
9561 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9562 case "x$with_opencl" in
9563 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9564 xno) ;;
9565 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9566 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9567 esac
9569 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9572 if test "x$with_xml" != "xno"
9573 then
9574 ac_save_CPPFLAGS="$CPPFLAGS"
9575 if test -n "$ac_tool_prefix"; then
9576 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9577 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9579 $as_echo_n "checking for $ac_word... " >&6; }
9580 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 if test -n "$PKG_CONFIG"; then
9584 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
9585 else
9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 for as_dir in $PATH
9589 IFS=$as_save_IFS
9590 test -z "$as_dir" && as_dir=.
9591 for ac_exec_ext in '' $ac_executable_extensions; do
9592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9593 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
9594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 break 2
9597 done
9598 done
9599 IFS=$as_save_IFS
9603 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
9604 if test -n "$PKG_CONFIG"; then
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9606 $as_echo "$PKG_CONFIG" >&6; }
9607 else
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609 $as_echo "no" >&6; }
9614 if test -z "$ac_cv_prog_PKG_CONFIG"; then
9615 ac_ct_PKG_CONFIG=$PKG_CONFIG
9616 # Extract the first word of "pkg-config", so it can be a program name with args.
9617 set dummy pkg-config; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 if test -n "$ac_ct_PKG_CONFIG"; then
9624 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
9625 else
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 for as_dir in $PATH
9629 IFS=$as_save_IFS
9630 test -z "$as_dir" && as_dir=.
9631 for ac_exec_ext in '' $ac_executable_extensions; do
9632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9633 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635 break 2
9637 done
9638 done
9639 IFS=$as_save_IFS
9643 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
9644 if test -n "$ac_ct_PKG_CONFIG"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
9646 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
9647 else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9652 if test "x$ac_ct_PKG_CONFIG" = x; then
9653 PKG_CONFIG=""
9654 else
9655 case $cross_compiling:$ac_tool_warned in
9656 yes:)
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9659 ac_tool_warned=yes ;;
9660 esac
9661 PKG_CONFIG=$ac_ct_PKG_CONFIG
9663 else
9664 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
9667 if test -n "$XML2_CFLAGS"; then :
9669 elif test -n "$PKG_CONFIG"; then :
9670 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
9672 XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
9673 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
9674 if test -n "$XML2_LIBS"; then :
9676 elif test -n "$PKG_CONFIG"; then :
9677 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
9679 XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
9680 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
9681 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9682 do :
9683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9684 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9685 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9686 cat >>confdefs.h <<_ACEOF
9687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9688 _ACEOF
9692 done
9694 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"
9695 then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9697 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9698 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9699 $as_echo_n "(cached) " >&6
9700 else
9701 ac_check_lib_save_LIBS=$LIBS
9702 LIBS="-lxml2 $XML2_LIBS $LIBS"
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9706 /* Override any GCC internal prototype to avoid an error.
9707 Use char because int might match the return type of a GCC
9708 builtin and then its argument prototype would still apply. */
9709 #ifdef __cplusplus
9710 extern "C"
9711 #endif
9712 char xmlParseMemory ();
9714 main ()
9716 return xmlParseMemory ();
9718 return 0;
9720 _ACEOF
9721 if ac_fn_c_try_link "$LINENO"; then :
9722 ac_cv_lib_xml2_xmlParseMemory=yes
9723 else
9724 ac_cv_lib_xml2_xmlParseMemory=no
9726 rm -f core conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9731 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9732 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9734 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9736 else
9737 XML2_LIBS=""
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9741 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9742 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9743 $as_echo_n "(cached) " >&6
9744 else
9745 ac_check_lib_save_LIBS=$LIBS
9746 LIBS="-lxml2 $XML2_LIBS $LIBS"
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9750 /* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 char xmlReadMemory ();
9758 main ()
9760 return xmlReadMemory ();
9762 return 0;
9764 _ACEOF
9765 if ac_fn_c_try_link "$LINENO"; then :
9766 ac_cv_lib_xml2_xmlReadMemory=yes
9767 else
9768 ac_cv_lib_xml2_xmlReadMemory=no
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 LIBS=$ac_check_lib_save_LIBS
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9775 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9776 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9778 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9783 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9784 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 ac_check_lib_save_LIBS=$LIBS
9788 LIBS="-lxml2 $XML2_LIBS $LIBS"
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9792 /* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
9795 #ifdef __cplusplus
9796 extern "C"
9797 #endif
9798 char xmlNewDocPI ();
9800 main ()
9802 return xmlNewDocPI ();
9804 return 0;
9806 _ACEOF
9807 if ac_fn_c_try_link "$LINENO"; then :
9808 ac_cv_lib_xml2_xmlNewDocPI=yes
9809 else
9810 ac_cv_lib_xml2_xmlNewDocPI=no
9812 rm -f core conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9814 LIBS=$ac_check_lib_save_LIBS
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9817 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9818 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9820 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9825 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9826 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 ac_check_lib_save_LIBS=$LIBS
9830 LIBS="-lxml2 $XML2_LIBS $LIBS"
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9834 /* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9837 #ifdef __cplusplus
9838 extern "C"
9839 #endif
9840 char xmlSchemaSetParserStructuredErrors ();
9842 main ()
9844 return xmlSchemaSetParserStructuredErrors ();
9846 return 0;
9848 _ACEOF
9849 if ac_fn_c_try_link "$LINENO"; then :
9850 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9851 else
9852 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 LIBS=$ac_check_lib_save_LIBS
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9859 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9860 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9862 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9867 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9868 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 ac_check_lib_save_LIBS=$LIBS
9872 LIBS="-lxml2 $XML2_LIBS $LIBS"
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9876 /* Override any GCC internal prototype to avoid an error.
9877 Use char because int might match the return type of a GCC
9878 builtin and then its argument prototype would still apply. */
9879 #ifdef __cplusplus
9880 extern "C"
9881 #endif
9882 char xmlSchemaSetValidStructuredErrors ();
9884 main ()
9886 return xmlSchemaSetValidStructuredErrors ();
9888 return 0;
9890 _ACEOF
9891 if ac_fn_c_try_link "$LINENO"; then :
9892 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9893 else
9894 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9896 rm -f core conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
9898 LIBS=$ac_check_lib_save_LIBS
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9901 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9902 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9904 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9909 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9910 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 ac_check_lib_save_LIBS=$LIBS
9914 LIBS="-lxml2 $XML2_LIBS $LIBS"
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9918 /* Override any GCC internal prototype to avoid an error.
9919 Use char because int might match the return type of a GCC
9920 builtin and then its argument prototype would still apply. */
9921 #ifdef __cplusplus
9922 extern "C"
9923 #endif
9924 char xmlFirstElementChild ();
9926 main ()
9928 return xmlFirstElementChild ();
9930 return 0;
9932 _ACEOF
9933 if ac_fn_c_try_link "$LINENO"; then :
9934 ac_cv_lib_xml2_xmlFirstElementChild=yes
9935 else
9936 ac_cv_lib_xml2_xmlFirstElementChild=no
9938 rm -f core conftest.err conftest.$ac_objext \
9939 conftest$ac_exeext conftest.$ac_ext
9940 LIBS=$ac_check_lib_save_LIBS
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9943 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9944 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9946 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9950 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9952 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9954 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9958 else
9959 XML2_CFLAGS=""
9960 XML2_LIBS=""
9962 CPPFLAGS="$ac_save_CPPFLAGS"
9964 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9965 case "x$with_xml" in
9966 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9967 xno) ;;
9968 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9969 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9970 esac
9973 if test "x$with_xslt" != "xno"
9974 then
9975 ac_save_CPPFLAGS="$CPPFLAGS"
9976 if test -n "$XSLT_CFLAGS"; then :
9978 elif test -n "$PKG_CONFIG"; then :
9979 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
9981 XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
9982 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
9983 if test -n "$XSLT_LIBS"; then :
9985 elif test -n "$PKG_CONFIG"; then :
9986 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
9988 XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
9989 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
9990 for ac_header in libxslt/pattern.h libxslt/transform.h
9991 do :
9992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9993 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9994 # include <libxslt/pattern.h>
9995 #endif
9997 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9998 cat >>confdefs.h <<_ACEOF
9999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10000 _ACEOF
10004 done
10006 CPPFLAGS="$ac_save_CPPFLAGS"
10007 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10008 then
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10010 $as_echo_n "checking for -lxslt... " >&6; }
10011 if ${ac_cv_lib_soname_xslt+:} false; then :
10012 $as_echo_n "(cached) " >&6
10013 else
10014 ac_check_soname_save_LIBS=$LIBS
10015 LIBS="-lxslt $XSLT_LIBS $LIBS"
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10019 /* Override any GCC internal prototype to avoid an error.
10020 Use char because int might match the return type of a GCC
10021 builtin and then its argument prototype would still apply. */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 char xsltCompilePattern ();
10027 main ()
10029 return xsltCompilePattern ();
10031 return 0;
10033 _ACEOF
10034 if ac_fn_c_try_link "$LINENO"; then :
10035 case "$LIBEXT" in
10036 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10037 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'` ;;
10038 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10039 if test "x$ac_cv_lib_soname_xslt" = x; then :
10040 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10041 fi ;;
10042 esac
10044 rm -f core conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10046 LIBS=$ac_check_soname_save_LIBS
10048 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10050 $as_echo "not found" >&6; }
10052 else
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10054 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10056 cat >>confdefs.h <<_ACEOF
10057 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10058 _ACEOF
10062 else
10063 XSLT_CFLAGS=""
10066 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10067 case "x$with_xslt" in
10068 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10069 xno) ;;
10070 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10071 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10072 esac
10075 if test "x$with_dbus" != "xno"
10076 then
10077 ac_save_CPPFLAGS="$CPPFLAGS"
10078 if test -n "$DBUS_CFLAGS"; then :
10080 elif test -n "$PKG_CONFIG"; then :
10081 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10084 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10085 if test -n "$DBUS_LIBS"; then :
10087 elif test -n "$PKG_CONFIG"; then :
10088 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10092 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10093 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10095 $as_echo_n "checking for -ldbus-1... " >&6; }
10096 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 ac_check_soname_save_LIBS=$LIBS
10100 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h. */
10104 /* Override any GCC internal prototype to avoid an error.
10105 Use char because int might match the return type of a GCC
10106 builtin and then its argument prototype would still apply. */
10107 #ifdef __cplusplus
10108 extern "C"
10109 #endif
10110 char dbus_connection_close ();
10112 main ()
10114 return dbus_connection_close ();
10116 return 0;
10118 _ACEOF
10119 if ac_fn_c_try_link "$LINENO"; then :
10120 case "$LIBEXT" in
10121 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10122 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'` ;;
10123 *) 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'`
10124 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10125 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10126 fi ;;
10127 esac
10129 rm -f core conftest.err conftest.$ac_objext \
10130 conftest$ac_exeext conftest.$ac_ext
10131 LIBS=$ac_check_soname_save_LIBS
10133 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10135 $as_echo "not found" >&6; }
10136 DBUS_CFLAGS=""
10137 else
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10139 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10141 cat >>confdefs.h <<_ACEOF
10142 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10143 _ACEOF
10147 else
10148 DBUS_CFLAGS=""
10152 CPPFLAGS="$ac_save_CPPFLAGS"
10154 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10155 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10156 case "x$with_dbus" in
10157 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10158 xno) ;;
10159 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10160 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10161 esac
10164 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10165 then
10166 ac_save_CPPFLAGS="$CPPFLAGS"
10167 if test -n "$HAL_CFLAGS"; then :
10169 elif test -n "$PKG_CONFIG"; then :
10170 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
10173 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
10174 if test -n "$HAL_LIBS"; then :
10176 elif test -n "$PKG_CONFIG"; then :
10177 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
10180 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
10181 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10182 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10184 $as_echo_n "checking for -lhal... " >&6; }
10185 if ${ac_cv_lib_soname_hal+:} false; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 ac_check_soname_save_LIBS=$LIBS
10189 LIBS="-lhal $HAL_LIBS $LIBS"
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10193 /* Override any GCC internal prototype to avoid an error.
10194 Use char because int might match the return type of a GCC
10195 builtin and then its argument prototype would still apply. */
10196 #ifdef __cplusplus
10197 extern "C"
10198 #endif
10199 char libhal_ctx_new ();
10201 main ()
10203 return libhal_ctx_new ();
10205 return 0;
10207 _ACEOF
10208 if ac_fn_c_try_link "$LINENO"; then :
10209 case "$LIBEXT" in
10210 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10211 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'` ;;
10212 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10213 if test "x$ac_cv_lib_soname_hal" = x; then :
10214 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10215 fi ;;
10216 esac
10218 rm -f core conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10220 LIBS=$ac_check_soname_save_LIBS
10222 if test "x$ac_cv_lib_soname_hal" = "x"; then :
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10224 $as_echo "not found" >&6; }
10225 HAL_CFLAGS=""
10226 else
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
10228 $as_echo "$ac_cv_lib_soname_hal" >&6; }
10230 cat >>confdefs.h <<_ACEOF
10231 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
10232 _ACEOF
10236 else
10237 HAL_CFLAGS=""
10241 CPPFLAGS="$ac_save_CPPFLAGS"
10242 if test "x$ac_cv_lib_soname_hal" = "x" -a \
10243 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10244 case "x$with_hal" in
10245 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
10246 xno) ;;
10247 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
10248 This is an error since --with-hal was requested." "$LINENO" 5 ;;
10249 esac
10253 if test "x$with_gnutls" != "xno"
10254 then
10255 ac_save_CPPFLAGS="$CPPFLAGS"
10256 if test -n "$GNUTLS_CFLAGS"; then :
10258 elif test -n "$PKG_CONFIG"; then :
10259 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
10262 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
10263 if test -n "$GNUTLS_LIBS"; then :
10265 elif test -n "$PKG_CONFIG"; then :
10266 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
10270 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
10271 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10274 #include <gnutls/gnutls.h>
10276 main ()
10278 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
10280 return 0;
10282 _ACEOF
10283 if ac_fn_c_try_compile "$LINENO"; then :
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
10285 $as_echo_n "checking for -lgnutls... " >&6; }
10286 if ${ac_cv_lib_soname_gnutls+:} false; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289 ac_check_soname_save_LIBS=$LIBS
10290 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10294 /* Override any GCC internal prototype to avoid an error.
10295 Use char because int might match the return type of a GCC
10296 builtin and then its argument prototype would still apply. */
10297 #ifdef __cplusplus
10298 extern "C"
10299 #endif
10300 char gnutls_global_init ();
10302 main ()
10304 return gnutls_global_init ();
10306 return 0;
10308 _ACEOF
10309 if ac_fn_c_try_link "$LINENO"; then :
10310 case "$LIBEXT" in
10311 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10312 dylib) ac_cv_lib_soname_gnutls=`otool -L conftest$ac_exeext | grep "libgnutls\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgnutls\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10313 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10314 if test "x$ac_cv_lib_soname_gnutls" = x; then :
10315 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10316 fi ;;
10317 esac
10319 rm -f core conftest.err conftest.$ac_objext \
10320 conftest$ac_exeext conftest.$ac_ext
10321 LIBS=$ac_check_soname_save_LIBS
10323 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10325 $as_echo "not found" >&6; }
10326 GNUTLS_CFLAGS=""
10327 else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
10329 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
10331 cat >>confdefs.h <<_ACEOF
10332 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
10333 _ACEOF
10338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339 else
10340 GNUTLS_CFLAGS=""
10344 CPPFLAGS="$ac_save_CPPFLAGS"
10346 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10347 case "x$with_gnutls" in
10348 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
10349 xno) ;;
10350 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
10351 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
10352 esac
10355 CURSESLIBS=""
10356 if test "$ac_cv_header_ncurses_h" = "yes"
10357 then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10359 $as_echo_n "checking for -lncurses... " >&6; }
10360 if ${ac_cv_lib_soname_ncurses+:} false; then :
10361 $as_echo_n "(cached) " >&6
10362 else
10363 ac_check_soname_save_LIBS=$LIBS
10364 LIBS="-lncurses $LIBS"
10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10368 /* Override any GCC internal prototype to avoid an error.
10369 Use char because int might match the return type of a GCC
10370 builtin and then its argument prototype would still apply. */
10371 #ifdef __cplusplus
10372 extern "C"
10373 #endif
10374 char waddch ();
10376 main ()
10378 return waddch ();
10380 return 0;
10382 _ACEOF
10383 if ac_fn_c_try_link "$LINENO"; then :
10384 case "$LIBEXT" in
10385 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10386 dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep "libncurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10387 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10388 if test "x$ac_cv_lib_soname_ncurses" = x; then :
10389 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10390 fi ;;
10391 esac
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_soname_save_LIBS
10397 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10399 $as_echo "not found" >&6; }
10401 else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10403 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10405 cat >>confdefs.h <<_ACEOF
10406 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10407 _ACEOF
10409 CURSESLIBS="-lncurses"
10411 elif test "$ac_cv_header_curses_h" = "yes"
10412 then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10414 $as_echo_n "checking for -lcurses... " >&6; }
10415 if ${ac_cv_lib_soname_curses+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 ac_check_soname_save_LIBS=$LIBS
10419 LIBS="-lcurses $LIBS"
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char waddch ();
10431 main ()
10433 return waddch ();
10435 return 0;
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"; then :
10439 case "$LIBEXT" in
10440 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10441 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'` ;;
10442 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10443 if test "x$ac_cv_lib_soname_curses" = x; then :
10444 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10445 fi ;;
10446 esac
10448 rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 LIBS=$ac_check_soname_save_LIBS
10452 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10454 $as_echo "not found" >&6; }
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10458 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10460 cat >>confdefs.h <<_ACEOF
10461 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10462 _ACEOF
10464 CURSESLIBS="-lcurses"
10467 ac_save_LIBS="$LIBS"
10468 LIBS="$LIBS $CURSESLIBS"
10469 for ac_func in mousemask
10470 do :
10471 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10472 if test "x$ac_cv_func_mousemask" = xyes; then :
10473 cat >>confdefs.h <<_ACEOF
10474 #define HAVE_MOUSEMASK 1
10475 _ACEOF
10478 done
10480 LIBS="$ac_save_LIBS"
10481 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10482 case "x$with_curses" in
10483 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10484 xno) ;;
10485 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10486 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10487 esac
10490 if test "x$with_sane" != "xno"
10491 then
10492 ac_save_CPPFLAGS="$CPPFLAGS"
10493 if test -n "$SANE_CFLAGS"; then :
10495 elif test -n "$PKG_CONFIG"; then :
10496 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
10498 SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
10499 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
10500 if test -n "$SANE_LIBS"; then :
10502 elif test -n "$PKG_CONFIG"; then :
10503 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
10505 SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
10507 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10508 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10510 $as_echo_n "checking for -lsane... " >&6; }
10511 if ${ac_cv_lib_soname_sane+:} false; then :
10512 $as_echo_n "(cached) " >&6
10513 else
10514 ac_check_soname_save_LIBS=$LIBS
10515 LIBS="-lsane $SANE_LIBS $LIBS"
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10519 /* Override any GCC internal prototype to avoid an error.
10520 Use char because int might match the return type of a GCC
10521 builtin and then its argument prototype would still apply. */
10522 #ifdef __cplusplus
10523 extern "C"
10524 #endif
10525 char sane_init ();
10527 main ()
10529 return sane_init ();
10531 return 0;
10533 _ACEOF
10534 if ac_fn_c_try_link "$LINENO"; then :
10535 case "$LIBEXT" in
10536 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10537 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'` ;;
10538 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10539 if test "x$ac_cv_lib_soname_sane" = x; then :
10540 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10541 fi ;;
10542 esac
10544 rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext conftest.$ac_ext
10546 LIBS=$ac_check_soname_save_LIBS
10548 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10550 $as_echo "not found" >&6; }
10551 SANE_CFLAGS=""
10552 else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10554 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10556 cat >>confdefs.h <<_ACEOF
10557 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10558 _ACEOF
10562 SANE_CFLAGS=""
10566 CPPFLAGS="$ac_save_CPPFLAGS"
10568 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10569 case "x$with_sane" in
10570 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10571 xno) ;;
10572 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10573 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10574 esac
10577 if test "x$with_v4l" != "xno"
10578 then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10580 $as_echo_n "checking for -lv4l1... " >&6; }
10581 if ${ac_cv_lib_soname_v4l1+:} false; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 ac_check_soname_save_LIBS=$LIBS
10585 LIBS="-lv4l1 $LIBS"
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10589 /* Override any GCC internal prototype to avoid an error.
10590 Use char because int might match the return type of a GCC
10591 builtin and then its argument prototype would still apply. */
10592 #ifdef __cplusplus
10593 extern "C"
10594 #endif
10595 char v4l1_open ();
10597 main ()
10599 return v4l1_open ();
10601 return 0;
10603 _ACEOF
10604 if ac_fn_c_try_link "$LINENO"; then :
10605 case "$LIBEXT" in
10606 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10607 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'` ;;
10608 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10609 if test "x$ac_cv_lib_soname_v4l1" = x; then :
10610 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10611 fi ;;
10612 esac
10614 rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
10616 LIBS=$ac_check_soname_save_LIBS
10618 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10620 $as_echo "not found" >&6; }
10622 else
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10624 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10626 cat >>confdefs.h <<_ACEOF
10627 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10628 _ACEOF
10633 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10634 case "x$with_v4l" in
10635 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10636 xno) ;;
10637 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10638 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10639 esac
10642 if test "x$with_gphoto" != "xno"
10643 then
10644 ac_save_CPPFLAGS="$CPPFLAGS"
10645 if test -n "$GPHOTO2_CFLAGS"; then :
10647 elif test -n "$PKG_CONFIG"; then :
10648 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
10650 GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`(gphoto2-config --cflags || gphoto2-port-config --cflags) 2>/dev/null`}
10651 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
10652 if test -n "$GPHOTO2_LIBS"; then :
10654 elif test -n "$PKG_CONFIG"; then :
10655 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
10657 GPHOTO2_LIBS=${GPHOTO2_LIBS:-`(gphoto2-config --libs || gphoto2-port-config --libs) 2>/dev/null`}
10658 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
10659 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10660 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10662 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10663 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 ac_check_lib_save_LIBS=$LIBS
10667 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10671 /* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
10674 #ifdef __cplusplus
10675 extern "C"
10676 #endif
10677 char gp_camera_new ();
10679 main ()
10681 return gp_camera_new ();
10683 return 0;
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"; then :
10687 ac_cv_lib_gphoto2_gp_camera_new=yes
10688 else
10689 ac_cv_lib_gphoto2_gp_camera_new=no
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10696 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10697 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10699 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10701 else
10702 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10705 else
10706 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10710 CPPFLAGS="$ac_save_CPPFLAGS"
10712 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10713 case "x$with_gphoto" in
10714 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10715 xno) ;;
10716 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10717 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10718 esac
10722 if test "$ac_cv_header_resolv_h" = "yes"
10723 then
10724 ac_save_LIBS="$LIBS"
10725 for lib in '' -lresolv
10727 LIBS="$lib $ac_save_LIBS"
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10730 #ifdef HAVE_NETINET_IN_H
10731 #include <netinet/in.h>
10732 #endif
10733 #include <resolv.h>
10735 main ()
10737 res_query("foo",ns_c_in,0,0,0);
10739 return 0;
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"; then :
10744 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10746 RESOLVLIBS="$lib"
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 if test "${RESOLVLIBS+set}" = set; then
10752 break
10754 done
10755 LIBS="$ac_save_LIBS"
10758 LCMSLIBS=""
10760 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10761 then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10763 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10764 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-llcms $LIBS"
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char cmsOpenProfileFromFile ();
10780 main ()
10782 return cmsOpenProfileFromFile ();
10784 return 0;
10786 _ACEOF
10787 if ac_fn_c_try_link "$LINENO"; then :
10788 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10789 else
10790 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_lib_save_LIBS
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10797 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10798 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10800 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10802 LCMSLIBS="-llcms"
10806 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10807 case "x$with_cms" in
10808 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10809 xno) ;;
10810 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10811 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10812 esac
10815 if test "x$with_freetype" != "xno"
10816 then
10817 ac_save_CPPFLAGS="$CPPFLAGS"
10818 if test -n "$FREETYPE_CFLAGS"; then :
10820 elif test -n "$PKG_CONFIG"; then :
10821 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
10823 FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
10824 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
10825 if test -n "$FREETYPE_LIBS"; then :
10827 elif test -n "$PKG_CONFIG"; then :
10828 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
10830 FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
10831 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10833 $as_echo_n "checking for -lfreetype... " >&6; }
10834 if ${ac_cv_lib_soname_freetype+:} false; then :
10835 $as_echo_n "(cached) " >&6
10836 else
10837 ac_check_soname_save_LIBS=$LIBS
10838 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10842 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10845 #ifdef __cplusplus
10846 extern "C"
10847 #endif
10848 char FT_Init_FreeType ();
10850 main ()
10852 return FT_Init_FreeType ();
10854 return 0;
10856 _ACEOF
10857 if ac_fn_c_try_link "$LINENO"; then :
10858 case "$LIBEXT" in
10859 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10860 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'` ;;
10861 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10862 if test "x$ac_cv_lib_soname_freetype" = x; then :
10863 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10864 fi ;;
10865 esac
10867 rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10869 LIBS=$ac_check_soname_save_LIBS
10871 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10873 $as_echo "not found" >&6; }
10874 ft_lib=no
10875 else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10877 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10879 cat >>confdefs.h <<_ACEOF
10880 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10881 _ACEOF
10883 ft_lib=yes
10885 if test "$ft_lib" = "yes"
10886 then
10887 for ac_header in ft2build.h \
10888 freetype/freetype.h \
10889 freetype/ftglyph.h \
10890 freetype/fttypes.h \
10891 freetype/tttables.h \
10892 freetype/ftsnames.h \
10893 freetype/ttnameid.h \
10894 freetype/ftoutln.h \
10895 freetype/ftwinfnt.h \
10896 freetype/ftmodapi.h \
10897 freetype/ftlcdfil.h
10898 do :
10899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10900 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10901 # include <ft2build.h>
10902 #endif
10904 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10905 cat >>confdefs.h <<_ACEOF
10906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10907 _ACEOF
10911 done
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10915 #include <ft2build.h>
10916 #include <freetype/fttrigon.h>
10917 _ACEOF
10918 if ac_fn_c_try_cpp "$LINENO"; then :
10920 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10922 wine_cv_fttrigon=yes
10923 else
10924 wine_cv_fttrigon=no
10926 rm -f conftest.err conftest.i conftest.$ac_ext
10927 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10929 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10931 cat >>confdefs.h <<_ACEOF
10932 #define HAVE_FT_TRUETYPEENGINETYPE 1
10933 _ACEOF
10938 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10939 then
10941 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10943 else
10944 FREETYPE_LIBS=""
10946 else
10947 FREETYPE_LIBS=""
10949 CPPFLAGS="$ac_save_CPPFLAGS"
10951 if test "x$ac_cv_header_freetype_freetype_h" != xyes -o "x$wine_cv_fttrigon" != xyes; then :
10952 case "x$with_freetype" in
10953 xno) ;;
10954 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10955 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10956 esac
10958 test "x$ac_cv_header_freetype_freetype_h" = xyes -a "x$wine_cv_fttrigon" = xyes || enable_fonts=${enable_fonts:-no}
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10961 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10962 if ${ac_cv_c_ppdev+:} false; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10967 #ifdef HAVE_SYS_IOCTL_H
10968 # include <sys/ioctl.h>
10969 #endif
10970 #include <linux/ppdev.h>
10972 main ()
10974 ioctl (1,PPCLAIM,0)
10976 return 0;
10978 _ACEOF
10979 if ac_fn_c_try_compile "$LINENO"; then :
10980 ac_cv_c_ppdev="yes"
10981 else
10982 ac_cv_c_ppdev="no"
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10987 $as_echo "$ac_cv_c_ppdev" >&6; }
10988 if test "$ac_cv_c_ppdev" = "yes"
10989 then
10991 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10995 ac_wine_check_funcs_save_LIBS="$LIBS"
10996 LIBS="$LIBS $LIBPTHREAD"
10997 for ac_func in \
10998 pthread_attr_get_np \
10999 pthread_getattr_np \
11000 pthread_getthreadid_np \
11001 pthread_get_stackaddr_np \
11002 pthread_get_stacksize_np
11003 do :
11004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11005 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11006 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11007 cat >>confdefs.h <<_ACEOF
11008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11009 _ACEOF
11012 done
11014 LIBS="$ac_wine_check_funcs_save_LIBS"
11016 if test "$ac_cv_header_zlib_h" = "yes"
11017 then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11019 $as_echo_n "checking for inflate in -lz... " >&6; }
11020 if ${ac_cv_lib_z_inflate+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-lz $LIBS"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char inflate ();
11036 main ()
11038 return inflate ();
11040 return 0;
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 ac_cv_lib_z_inflate=yes
11045 else
11046 ac_cv_lib_z_inflate=no
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11053 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11054 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11056 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11058 ZLIB="-lz"
11063 if test "x$ZLIB" = "x"; then :
11064 case "x$with_zlib" in
11065 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11066 xno) ;;
11067 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11068 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11069 esac
11072 if test "x$enable_tools" != xno
11073 then
11074 if test "$ac_cv_header_gettext_po_h" = "yes"
11075 then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11077 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11078 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 ac_check_lib_save_LIBS=$LIBS
11082 LIBS="-lgettextpo $LIBS"
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11086 /* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11089 #ifdef __cplusplus
11090 extern "C"
11091 #endif
11092 char po_message_msgctxt ();
11094 main ()
11096 return po_message_msgctxt ();
11098 return 0;
11100 _ACEOF
11101 if ac_fn_c_try_link "$LINENO"; then :
11102 ac_cv_lib_gettextpo_po_message_msgctxt=yes
11103 else
11104 ac_cv_lib_gettextpo_po_message_msgctxt=no
11106 rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108 LIBS=$ac_check_lib_save_LIBS
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
11111 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
11112 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
11114 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
11116 LIBGETTEXTPO="-lgettextpo"
11121 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
11122 case "x$with_gettextpo" in
11123 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
11124 xno) ;;
11125 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
11126 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
11127 esac
11131 if test "x$with_gstreamer" != "xno"
11132 then
11133 ac_save_CPPFLAGS="$CPPFLAGS"
11134 if test "$PKG_CONFIG" != "false"; then
11135 ac_gst_incl=""
11136 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
11138 case "$i" in
11139 -I*) ac_gst_incl="$ac_gst_incl $i";;
11140 esac
11141 done
11142 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
11143 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
11144 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
11145 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
11146 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
11147 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
11149 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11152 #include <gst/app/gstappsink.h>
11154 main ()
11156 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
11158 return 0;
11160 _ACEOF
11161 if ac_fn_c_try_compile "$LINENO"; then :
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11163 $as_echo "yes" >&6; }
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
11165 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
11166 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 ac_check_lib_save_LIBS=$LIBS
11170 LIBS="-lgstreamer-0.10 $LIBS"
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11174 /* Override any GCC internal prototype to avoid an error.
11175 Use char because int might match the return type of a GCC
11176 builtin and then its argument prototype would still apply. */
11177 #ifdef __cplusplus
11178 extern "C"
11179 #endif
11180 char gst_pad_get_caps_reffed ();
11182 main ()
11184 return gst_pad_get_caps_reffed ();
11186 return 0;
11188 _ACEOF
11189 if ac_fn_c_try_link "$LINENO"; then :
11190 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
11191 else
11192 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
11194 rm -f core conftest.err conftest.$ac_objext \
11195 conftest$ac_exeext conftest.$ac_ext
11196 LIBS=$ac_check_lib_save_LIBS
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
11199 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
11200 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
11202 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
11203 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 ac_check_lib_save_LIBS=$LIBS
11207 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11211 /* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
11214 #ifdef __cplusplus
11215 extern "C"
11216 #endif
11217 char gst_app_buffer_new ();
11219 main ()
11221 return gst_app_buffer_new ();
11223 return 0;
11225 _ACEOF
11226 if ac_fn_c_try_link "$LINENO"; then :
11227 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11228 else
11229 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11231 rm -f core conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
11233 LIBS=$ac_check_lib_save_LIBS
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11236 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11237 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11238 GSTREAMER_LIBS="$ac_gst_libs"
11240 GSTREAMER_INCL="$ac_gst_incl"
11246 else
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 CPPFLAGS="$ac_save_CPPFLAGS"
11260 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11261 case "x$with_gstreamer" in
11262 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11263 xno) ;;
11264 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11265 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11266 esac
11268 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11270 ALSALIBS=""
11272 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11273 then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11275 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11276 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 ac_check_lib_save_LIBS=$LIBS
11280 LIBS="-lasound $LIBS"
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11284 /* Override any GCC internal prototype to avoid an error.
11285 Use char because int might match the return type of a GCC
11286 builtin and then its argument prototype would still apply. */
11287 #ifdef __cplusplus
11288 extern "C"
11289 #endif
11290 char snd_pcm_hw_params_get_access_mask ();
11292 main ()
11294 return snd_pcm_hw_params_get_access_mask ();
11296 return 0;
11298 _ACEOF
11299 if ac_fn_c_try_link "$LINENO"; then :
11300 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11301 else
11302 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11304 rm -f core conftest.err conftest.$ac_objext \
11305 conftest$ac_exeext conftest.$ac_ext
11306 LIBS=$ac_check_lib_save_LIBS
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11309 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11310 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11313 #ifdef HAVE_ALSA_ASOUNDLIB_H
11314 #include <alsa/asoundlib.h>
11315 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11316 #include <sys/asoundlib.h>
11317 #endif
11319 main ()
11321 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11323 return 0;
11325 _ACEOF
11326 if ac_fn_c_try_compile "$LINENO"; then :
11327 ALSALIBS="-lasound"
11329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 if test "x$with_oss" != xno
11335 then
11336 ac_save_CPPFLAGS="$CPPFLAGS"
11337 if test -f /etc/oss.conf
11338 then
11339 . /etc/oss.conf
11341 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11342 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11343 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11344 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11345 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11347 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11349 cat >>confdefs.h <<_ACEOF
11350 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11351 _ACEOF
11353 OSS4INCL="$ac_oss_incl"
11360 CPPFLAGS="$ac_save_CPPFLAGS"
11361 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11362 then
11363 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11368 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11369 then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11371 $as_echo_n "checking for -lcapi20... " >&6; }
11372 if ${ac_cv_lib_soname_capi20+:} false; then :
11373 $as_echo_n "(cached) " >&6
11374 else
11375 ac_check_soname_save_LIBS=$LIBS
11376 LIBS="-lcapi20 $LIBS"
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11380 /* Override any GCC internal prototype to avoid an error.
11381 Use char because int might match the return type of a GCC
11382 builtin and then its argument prototype would still apply. */
11383 #ifdef __cplusplus
11384 extern "C"
11385 #endif
11386 char capi20_register ();
11388 main ()
11390 return capi20_register ();
11392 return 0;
11394 _ACEOF
11395 if ac_fn_c_try_link "$LINENO"; then :
11396 case "$LIBEXT" in
11397 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11398 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'` ;;
11399 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11400 if test "x$ac_cv_lib_soname_capi20" = x; then :
11401 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11402 fi ;;
11403 esac
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_soname_save_LIBS
11409 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11411 $as_echo "not found" >&6; }
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11415 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11417 cat >>confdefs.h <<_ACEOF
11418 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11419 _ACEOF
11424 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11425 case "x$with_capi" in
11426 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11427 xno) ;;
11428 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11429 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11430 esac
11433 CUPSINCL=""
11435 if test "x$with_cups" != "xno"
11436 then
11437 ac_save_CPPFLAGS="$CPPFLAGS"
11438 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11439 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11440 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11441 for ac_header in cups/cups.h
11442 do :
11443 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11444 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11445 cat >>confdefs.h <<_ACEOF
11446 #define HAVE_CUPS_CUPS_H 1
11447 _ACEOF
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11449 $as_echo_n "checking for -lcups... " >&6; }
11450 if ${ac_cv_lib_soname_cups+:} false; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 ac_check_soname_save_LIBS=$LIBS
11454 LIBS="-lcups $ac_cups_libs $LIBS"
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11458 /* Override any GCC internal prototype to avoid an error.
11459 Use char because int might match the return type of a GCC
11460 builtin and then its argument prototype would still apply. */
11461 #ifdef __cplusplus
11462 extern "C"
11463 #endif
11464 char cupsGetDefault ();
11466 main ()
11468 return cupsGetDefault ();
11470 return 0;
11472 _ACEOF
11473 if ac_fn_c_try_link "$LINENO"; then :
11474 case "$LIBEXT" in
11475 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11476 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'` ;;
11477 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11478 if test "x$ac_cv_lib_soname_cups" = x; then :
11479 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11480 fi ;;
11481 esac
11483 rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11485 LIBS=$ac_check_soname_save_LIBS
11487 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11489 $as_echo "not found" >&6; }
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11493 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11495 cat >>confdefs.h <<_ACEOF
11496 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11497 _ACEOF
11499 CUPSINCL="$ac_cups_cflags"
11503 done
11505 CPPFLAGS="$ac_save_CPPFLAGS"
11507 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11508 case "x$with_cups" in
11509 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11510 xno) ;;
11511 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11512 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11513 esac
11516 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11517 then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11519 $as_echo_n "checking for -lfontconfig... " >&6; }
11520 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11521 $as_echo_n "(cached) " >&6
11522 else
11523 ac_check_soname_save_LIBS=$LIBS
11524 LIBS="-lfontconfig $LIBS"
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11528 /* Override any GCC internal prototype to avoid an error.
11529 Use char because int might match the return type of a GCC
11530 builtin and then its argument prototype would still apply. */
11531 #ifdef __cplusplus
11532 extern "C"
11533 #endif
11534 char FcInit ();
11536 main ()
11538 return FcInit ();
11540 return 0;
11542 _ACEOF
11543 if ac_fn_c_try_link "$LINENO"; then :
11544 case "$LIBEXT" in
11545 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11546 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'` ;;
11547 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11548 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11549 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11550 fi ;;
11551 esac
11553 rm -f core conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11555 LIBS=$ac_check_soname_save_LIBS
11557 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11559 $as_echo "not found" >&6; }
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11563 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11565 cat >>confdefs.h <<_ACEOF
11566 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11567 _ACEOF
11571 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11572 then
11573 ac_save_CPPFLAGS="$CPPFLAGS"
11574 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11575 $as_unset ac_cv_header_fontconfig_fontconfig_h
11576 for ac_header in fontconfig/fontconfig.h
11577 do :
11578 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11579 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11580 cat >>confdefs.h <<_ACEOF
11581 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11582 _ACEOF
11586 done
11588 CPPFLAGS="$ac_save_CPPFLAGS"
11589 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11590 then
11591 FONTCONFIGINCL="$X_CFLAGS"
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11594 $as_echo_n "checking for -lfontconfig... " >&6; }
11595 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 ac_check_soname_save_LIBS=$LIBS
11599 LIBS="-lfontconfig $X_LIBS $LIBS"
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11603 /* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11606 #ifdef __cplusplus
11607 extern "C"
11608 #endif
11609 char FcInit ();
11611 main ()
11613 return FcInit ();
11615 return 0;
11617 _ACEOF
11618 if ac_fn_c_try_link "$LINENO"; then :
11619 case "$LIBEXT" in
11620 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11621 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'` ;;
11622 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11623 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11624 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11625 fi ;;
11626 esac
11628 rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_soname_save_LIBS
11632 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11634 $as_echo "not found" >&6; }
11636 else
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11638 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11640 cat >>confdefs.h <<_ACEOF
11641 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11642 _ACEOF
11648 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11649 case "x$with_fontconfig" in
11650 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11651 xno) ;;
11652 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11653 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11654 esac
11657 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11658 then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11660 $as_echo_n "checking for -lgsm... " >&6; }
11661 if ${ac_cv_lib_soname_gsm+:} false; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 ac_check_soname_save_LIBS=$LIBS
11665 LIBS="-lgsm $LIBS"
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11669 /* Override any GCC internal prototype to avoid an error.
11670 Use char because int might match the return type of a GCC
11671 builtin and then its argument prototype would still apply. */
11672 #ifdef __cplusplus
11673 extern "C"
11674 #endif
11675 char gsm_create ();
11677 main ()
11679 return gsm_create ();
11681 return 0;
11683 _ACEOF
11684 if ac_fn_c_try_link "$LINENO"; then :
11685 case "$LIBEXT" in
11686 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11687 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'` ;;
11688 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11689 if test "x$ac_cv_lib_soname_gsm" = x; then :
11690 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11691 fi ;;
11692 esac
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_soname_save_LIBS
11698 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11700 $as_echo "not found" >&6; }
11702 else
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11704 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11706 cat >>confdefs.h <<_ACEOF
11707 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11708 _ACEOF
11713 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11714 case "x$with_gsm" in
11715 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11716 xno) ;;
11717 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11718 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11719 esac
11722 if test "$ac_cv_header_jpeglib_h" = "yes"
11723 then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11725 $as_echo_n "checking for -ljpeg... " >&6; }
11726 if ${ac_cv_lib_soname_jpeg+:} false; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 ac_check_soname_save_LIBS=$LIBS
11730 LIBS="-ljpeg $LIBS"
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11734 /* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11737 #ifdef __cplusplus
11738 extern "C"
11739 #endif
11740 char jpeg_start_decompress ();
11742 main ()
11744 return jpeg_start_decompress ();
11746 return 0;
11748 _ACEOF
11749 if ac_fn_c_try_link "$LINENO"; then :
11750 case "$LIBEXT" in
11751 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11752 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'` ;;
11753 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11754 if test "x$ac_cv_lib_soname_jpeg" = x; then :
11755 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11756 fi ;;
11757 esac
11759 rm -f core conftest.err conftest.$ac_objext \
11760 conftest$ac_exeext conftest.$ac_ext
11761 LIBS=$ac_check_soname_save_LIBS
11763 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11765 $as_echo "not found" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11769 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11771 cat >>confdefs.h <<_ACEOF
11772 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11773 _ACEOF
11778 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11779 case "x$with_jpeg" in
11780 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11781 xno) ;;
11782 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11783 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11784 esac
11787 if test "$ac_cv_header_png_h" = "yes"
11788 then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11790 $as_echo_n "checking for -lpng... " >&6; }
11791 if ${ac_cv_lib_soname_png+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 ac_check_soname_save_LIBS=$LIBS
11795 LIBS="-lpng -lm -lz $LIBS"
11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11799 /* Override any GCC internal prototype to avoid an error.
11800 Use char because int might match the return type of a GCC
11801 builtin and then its argument prototype would still apply. */
11802 #ifdef __cplusplus
11803 extern "C"
11804 #endif
11805 char png_create_read_struct ();
11807 main ()
11809 return png_create_read_struct ();
11811 return 0;
11813 _ACEOF
11814 if ac_fn_c_try_link "$LINENO"; then :
11815 case "$LIBEXT" in
11816 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11817 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'` ;;
11818 *) 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'`
11819 if test "x$ac_cv_lib_soname_png" = x; then :
11820 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11821 fi ;;
11822 esac
11824 rm -f core conftest.err conftest.$ac_objext \
11825 conftest$ac_exeext conftest.$ac_ext
11826 LIBS=$ac_check_soname_save_LIBS
11828 if test "x$ac_cv_lib_soname_png" = "x"; then :
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11830 $as_echo "not found" >&6; }
11832 else
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11834 $as_echo "$ac_cv_lib_soname_png" >&6; }
11836 cat >>confdefs.h <<_ACEOF
11837 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11838 _ACEOF
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11843 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11844 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
11847 ac_check_lib_save_LIBS=$LIBS
11848 LIBS="-lpng -lm -lz $LIBS"
11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850 /* end confdefs.h. */
11852 /* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
11855 #ifdef __cplusplus
11856 extern "C"
11857 #endif
11858 char png_set_expand_gray_1_2_4_to_8 ();
11860 main ()
11862 return png_set_expand_gray_1_2_4_to_8 ();
11864 return 0;
11866 _ACEOF
11867 if ac_fn_c_try_link "$LINENO"; then :
11868 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11869 else
11870 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11872 rm -f core conftest.err conftest.$ac_objext \
11873 conftest$ac_exeext conftest.$ac_ext
11874 LIBS=$ac_check_lib_save_LIBS
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11877 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11878 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11880 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11885 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11886 then
11887 ac_save_CPPFLAGS="$CPPFLAGS"
11888 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11889 $as_unset ac_cv_header_png_h
11890 for ac_header in png.h
11891 do :
11892 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11893 if test "x$ac_cv_header_png_h" = xyes; then :
11894 cat >>confdefs.h <<_ACEOF
11895 #define HAVE_PNG_H 1
11896 _ACEOF
11900 done
11902 CPPFLAGS="$ac_save_CPPFLAGS"
11903 if test "$ac_cv_header_png_h" = "yes"
11904 then
11905 PNGINCL="$X_CFLAGS"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11908 $as_echo_n "checking for -lpng... " >&6; }
11909 if ${ac_cv_lib_soname_png+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 ac_check_soname_save_LIBS=$LIBS
11913 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 char png_create_read_struct ();
11925 main ()
11927 return png_create_read_struct ();
11929 return 0;
11931 _ACEOF
11932 if ac_fn_c_try_link "$LINENO"; then :
11933 case "$LIBEXT" in
11934 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11935 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'` ;;
11936 *) 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'`
11937 if test "x$ac_cv_lib_soname_png" = x; then :
11938 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11939 fi ;;
11940 esac
11942 rm -f core conftest.err conftest.$ac_objext \
11943 conftest$ac_exeext conftest.$ac_ext
11944 LIBS=$ac_check_soname_save_LIBS
11946 if test "x$ac_cv_lib_soname_png" = "x"; then :
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11948 $as_echo "not found" >&6; }
11950 else
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11952 $as_echo "$ac_cv_lib_soname_png" >&6; }
11954 cat >>confdefs.h <<_ACEOF
11955 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11956 _ACEOF
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11961 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11962 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 ac_check_lib_save_LIBS=$LIBS
11966 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 char png_set_expand_gray_1_2_4_to_8 ();
11978 main ()
11980 return png_set_expand_gray_1_2_4_to_8 ();
11982 return 0;
11984 _ACEOF
11985 if ac_fn_c_try_link "$LINENO"; then :
11986 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11987 else
11988 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11990 rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992 LIBS=$ac_check_lib_save_LIBS
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11995 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11996 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11997 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12003 if test "x$ac_cv_lib_soname_png" = "x"; then :
12004 case "x$with_png" in
12005 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12006 xno) ;;
12007 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12008 This is an error since --with-png was requested." "$LINENO" 5 ;;
12009 esac
12012 if test "$ac_cv_header_tiffio_h" = "yes"
12013 then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12015 $as_echo_n "checking for -ltiff... " >&6; }
12016 if ${ac_cv_lib_soname_tiff+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 ac_check_soname_save_LIBS=$LIBS
12020 LIBS="-ltiff $LIBS"
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12027 #ifdef __cplusplus
12028 extern "C"
12029 #endif
12030 char TIFFClientOpen ();
12032 main ()
12034 return TIFFClientOpen ();
12036 return 0;
12038 _ACEOF
12039 if ac_fn_c_try_link "$LINENO"; then :
12040 case "$LIBEXT" in
12041 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12042 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'` ;;
12043 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12044 if test "x$ac_cv_lib_soname_tiff" = x; then :
12045 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12046 fi ;;
12047 esac
12049 rm -f core conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051 LIBS=$ac_check_soname_save_LIBS
12053 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12055 $as_echo "not found" >&6; }
12057 else
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12059 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12061 cat >>confdefs.h <<_ACEOF
12062 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12063 _ACEOF
12068 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12069 case "x$with_tiff" in
12070 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12071 xno) ;;
12072 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12073 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12074 esac
12077 if test "$ac_cv_header_mpg123_h" = "yes"
12078 then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
12080 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
12081 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 ac_check_lib_save_LIBS=$LIBS
12085 LIBS="-lmpg123 $LIBS"
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12092 #ifdef __cplusplus
12093 extern "C"
12094 #endif
12095 char mpg123_feed ();
12097 main ()
12099 return mpg123_feed ();
12101 return 0;
12103 _ACEOF
12104 if ac_fn_c_try_link "$LINENO"; then :
12105 ac_cv_lib_mpg123_mpg123_feed=yes
12106 else
12107 ac_cv_lib_mpg123_mpg123_feed=no
12109 rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext conftest.$ac_ext
12111 LIBS=$ac_check_lib_save_LIBS
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12114 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12115 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12116 LIBMPG123="-lmpg123"
12121 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12122 case "x$with_mpg123" in
12123 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12124 xno) ;;
12125 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12126 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12127 esac
12129 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}
12131 if test "$ac_cv_header_AL_al_h" = "yes"
12132 then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12134 $as_echo_n "checking for -lopenal... " >&6; }
12135 if ${ac_cv_lib_soname_openal+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 ac_check_soname_save_LIBS=$LIBS
12139 LIBS="-lopenal $LIBS"
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12143 /* Override any GCC internal prototype to avoid an error.
12144 Use char because int might match the return type of a GCC
12145 builtin and then its argument prototype would still apply. */
12146 #ifdef __cplusplus
12147 extern "C"
12148 #endif
12149 char alGetSource3i ();
12151 main ()
12153 return alGetSource3i ();
12155 return 0;
12157 _ACEOF
12158 if ac_fn_c_try_link "$LINENO"; then :
12159 case "$LIBEXT" in
12160 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12161 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'` ;;
12162 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12163 if test "x$ac_cv_lib_soname_openal" = x; then :
12164 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12165 fi ;;
12166 esac
12168 rm -f core conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext conftest.$ac_ext
12170 LIBS=$ac_check_soname_save_LIBS
12172 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12174 $as_echo "not found" >&6; }
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12178 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12180 cat >>confdefs.h <<_ACEOF
12181 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12182 _ACEOF
12184 LIBOPENAL="-lopenal"
12186 ac_cv_lib_openal=yes
12188 cat >>confdefs.h <<_ACEOF
12189 #define HAVE_OPENAL 1
12190 _ACEOF
12194 if test "x$ac_cv_lib_openal" != xyes; then :
12195 case "x$with_openal" in
12196 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12197 xno) ;;
12198 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12199 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12200 esac
12202 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12204 if test "$ac_cv_header_kstat_h" = "yes"
12205 then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12207 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12208 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 ac_check_lib_save_LIBS=$LIBS
12212 LIBS="-lkstat $LIBS"
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12216 /* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
12219 #ifdef __cplusplus
12220 extern "C"
12221 #endif
12222 char kstat_open ();
12224 main ()
12226 return kstat_open ();
12228 return 0;
12230 _ACEOF
12231 if ac_fn_c_try_link "$LINENO"; then :
12232 ac_cv_lib_kstat_kstat_open=yes
12233 else
12234 ac_cv_lib_kstat_kstat_open=no
12236 rm -f core conftest.err conftest.$ac_objext \
12237 conftest$ac_exeext conftest.$ac_ext
12238 LIBS=$ac_check_lib_save_LIBS
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12241 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12242 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12244 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12246 LIBKSTAT="-lkstat"
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12253 $as_echo_n "checking for -lodbc... " >&6; }
12254 if ${ac_cv_lib_soname_odbc+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 ac_check_soname_save_LIBS=$LIBS
12258 LIBS="-lodbc $LIBS"
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12262 /* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 char SQLConnect ();
12270 main ()
12272 return SQLConnect ();
12274 return 0;
12276 _ACEOF
12277 if ac_fn_c_try_link "$LINENO"; then :
12278 case "$LIBEXT" in
12279 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12280 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'` ;;
12281 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12282 if test "x$ac_cv_lib_soname_odbc" = x; then :
12283 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12284 fi ;;
12285 esac
12287 rm -f core conftest.err conftest.$ac_objext \
12288 conftest$ac_exeext conftest.$ac_ext
12289 LIBS=$ac_check_soname_save_LIBS
12291 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12293 $as_echo "not found" >&6; }
12294 cat >>confdefs.h <<_ACEOF
12295 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12296 _ACEOF
12298 else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12300 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12302 cat >>confdefs.h <<_ACEOF
12303 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12304 _ACEOF
12309 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12310 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12311 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12312 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12314 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12315 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12316 "x$with_alsa$with_coreaudio$with_oss" != xnonono
12317 then
12318 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12322 EXTRACFLAGS=""
12324 if test "x${GCC}" = "xyes"
12325 then
12326 EXTRACFLAGS="-Wall -pipe"
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12329 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12330 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 if test "$cross_compiling" = yes; then :
12334 ac_cv_c_gcc_strength_bug="yes"
12335 else
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12338 int L[4] = {0,1,2,3};
12340 main ()
12342 static int Array[3];
12343 unsigned int B = 3;
12344 int i;
12345 for(i=0; i<B; i++) Array[i] = i - 3;
12346 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12347 L[i] = 4;
12348 return (Array[1] != -2 || L[2] != 3)
12350 return 0;
12352 _ACEOF
12353 if ac_fn_c_try_run "$LINENO"; then :
12354 ac_cv_c_gcc_strength_bug="no"
12355 else
12356 ac_cv_c_gcc_strength_bug="yes"
12358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12359 conftest.$ac_objext conftest.beam conftest.$ac_ext
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12364 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12365 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12366 then
12367 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12371 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12372 if ${ac_cv_cflags__fno_builtin+:} false; then :
12373 $as_echo_n "(cached) " >&6
12374 else
12375 ac_wine_try_cflags_saved=$CFLAGS
12376 CFLAGS="$CFLAGS -fno-builtin"
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12379 int main(int argc, char **argv) { return 0; }
12380 _ACEOF
12381 if ac_fn_c_try_link "$LINENO"; then :
12382 ac_cv_cflags__fno_builtin=yes
12383 else
12384 ac_cv_cflags__fno_builtin=no
12386 rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388 CFLAGS=$ac_wine_try_cflags_saved
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12391 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12392 if test $ac_cv_cflags__fno_builtin = yes; then :
12393 BUILTINFLAG="-fno-builtin"
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12397 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12398 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 ac_wine_try_cflags_saved=$CFLAGS
12402 CFLAGS="$CFLAGS -fno-strict-aliasing"
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405 int main(int argc, char **argv) { return 0; }
12406 _ACEOF
12407 if ac_fn_c_try_link "$LINENO"; then :
12408 ac_cv_cflags__fno_strict_aliasing=yes
12409 else
12410 ac_cv_cflags__fno_strict_aliasing=no
12412 rm -f core conftest.err conftest.$ac_objext \
12413 conftest$ac_exeext conftest.$ac_ext
12414 CFLAGS=$ac_wine_try_cflags_saved
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12417 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12418 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12419 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12422 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12423 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12426 ac_wine_try_cflags_saved=$CFLAGS
12427 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430 int main(int argc, char **argv) { return 0; }
12431 _ACEOF
12432 if ac_fn_c_try_link "$LINENO"; then :
12433 ac_cv_cflags__Wdeclaration_after_statement=yes
12434 else
12435 ac_cv_cflags__Wdeclaration_after_statement=no
12437 rm -f core conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12439 CFLAGS=$ac_wine_try_cflags_saved
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12442 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12443 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12444 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12447 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12448 if ${ac_cv_cflags__Wempty_body+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 ac_wine_try_cflags_saved=$CFLAGS
12452 CFLAGS="$CFLAGS -Wempty-body"
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
12455 int main(int argc, char **argv) { return 0; }
12456 _ACEOF
12457 if ac_fn_c_try_link "$LINENO"; then :
12458 ac_cv_cflags__Wempty_body=yes
12459 else
12460 ac_cv_cflags__Wempty_body=no
12462 rm -f core conftest.err conftest.$ac_objext \
12463 conftest$ac_exeext conftest.$ac_ext
12464 CFLAGS=$ac_wine_try_cflags_saved
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12467 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12468 if test $ac_cv_cflags__Wempty_body = yes; then :
12469 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12472 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12473 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 ac_wine_try_cflags_saved=$CFLAGS
12477 CFLAGS="$CFLAGS -Wignored-qualifiers"
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480 int main(int argc, char **argv) { return 0; }
12481 _ACEOF
12482 if ac_fn_c_try_link "$LINENO"; then :
12483 ac_cv_cflags__Wignored_qualifiers=yes
12484 else
12485 ac_cv_cflags__Wignored_qualifiers=no
12487 rm -f core conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489 CFLAGS=$ac_wine_try_cflags_saved
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12492 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12493 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12494 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12497 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12498 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12499 $as_echo_n "(cached) " >&6
12500 else
12501 ac_wine_try_cflags_saved=$CFLAGS
12502 CFLAGS="$CFLAGS -Wstrict-prototypes"
12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12505 int main(int argc, char **argv) { return 0; }
12506 _ACEOF
12507 if ac_fn_c_try_link "$LINENO"; then :
12508 ac_cv_cflags__Wstrict_prototypes=yes
12509 else
12510 ac_cv_cflags__Wstrict_prototypes=no
12512 rm -f core conftest.err conftest.$ac_objext \
12513 conftest$ac_exeext conftest.$ac_ext
12514 CFLAGS=$ac_wine_try_cflags_saved
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12517 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12518 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12519 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12522 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12523 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 ac_wine_try_cflags_saved=$CFLAGS
12527 CFLAGS="$CFLAGS -Wtype-limits"
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12530 int main(int argc, char **argv) { return 0; }
12531 _ACEOF
12532 if ac_fn_c_try_link "$LINENO"; then :
12533 ac_cv_cflags__Wtype_limits=yes
12534 else
12535 ac_cv_cflags__Wtype_limits=no
12537 rm -f core conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12539 CFLAGS=$ac_wine_try_cflags_saved
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12542 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12543 if test $ac_cv_cflags__Wtype_limits = yes; then :
12544 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12547 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12548 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 ac_wine_try_cflags_saved=$CFLAGS
12552 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555 int main(int argc, char **argv) { return 0; }
12556 _ACEOF
12557 if ac_fn_c_try_link "$LINENO"; then :
12558 ac_cv_cflags__Wunused_but_set_parameter=yes
12559 else
12560 ac_cv_cflags__Wunused_but_set_parameter=no
12562 rm -f core conftest.err conftest.$ac_objext \
12563 conftest$ac_exeext conftest.$ac_ext
12564 CFLAGS=$ac_wine_try_cflags_saved
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12567 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12568 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12569 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12572 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12573 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 ac_wine_try_cflags_saved=$CFLAGS
12577 CFLAGS="$CFLAGS -Wwrite-strings"
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12580 int main(int argc, char **argv) { return 0; }
12581 _ACEOF
12582 if ac_fn_c_try_link "$LINENO"; then :
12583 ac_cv_cflags__Wwrite_strings=yes
12584 else
12585 ac_cv_cflags__Wwrite_strings=no
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12589 CFLAGS=$ac_wine_try_cflags_saved
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12592 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12593 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12594 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12597 for ac_flag in $CFLAGS; do
12598 case $ac_flag in
12599 -g) case $host_os in
12600 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12601 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12602 if ${ac_cv_cflags__gstabsp+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 ac_wine_try_cflags_saved=$CFLAGS
12606 CFLAGS="$CFLAGS -gstabs+"
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12609 int main(int argc, char **argv) { return 0; }
12610 _ACEOF
12611 if ac_fn_c_try_link "$LINENO"; then :
12612 ac_cv_cflags__gstabsp=yes
12613 else
12614 ac_cv_cflags__gstabsp=no
12616 rm -f core conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
12618 CFLAGS=$ac_wine_try_cflags_saved
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12621 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12622 if test $ac_cv_cflags__gstabsp = yes; then :
12623 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12624 fi ;;
12625 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12626 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12627 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 ac_wine_try_cflags_saved=$CFLAGS
12631 CFLAGS="$CFLAGS -gdwarf-2"
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 int main(int argc, char **argv) { return 0; }
12635 _ACEOF
12636 if ac_fn_c_try_link "$LINENO"; then :
12637 ac_cv_cflags__gdwarf_2=yes
12638 else
12639 ac_cv_cflags__gdwarf_2=no
12641 rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12643 CFLAGS=$ac_wine_try_cflags_saved
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12646 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12647 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12648 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12651 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12652 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12653 $as_echo_n "(cached) " >&6
12654 else
12655 ac_wine_try_cflags_saved=$CFLAGS
12656 CFLAGS="$CFLAGS -gstrict-dwarf"
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659 int main(int argc, char **argv) { return 0; }
12660 _ACEOF
12661 if ac_fn_c_try_link "$LINENO"; then :
12662 ac_cv_cflags__gstrict_dwarf=yes
12663 else
12664 ac_cv_cflags__gstrict_dwarf=no
12666 rm -f core conftest.err conftest.$ac_objext \
12667 conftest$ac_exeext conftest.$ac_ext
12668 CFLAGS=$ac_wine_try_cflags_saved
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12671 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12672 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12673 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12674 fi ;;
12675 esac ;;
12676 esac
12677 done
12679 case $host_cpu in
12680 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12681 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12682 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12683 $as_echo_n "(cached) " >&6
12684 else
12685 ac_wine_try_cflags_saved=$CFLAGS
12686 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12689 int main(int argc, char **argv) { return 0; }
12690 _ACEOF
12691 if ac_fn_c_try_link "$LINENO"; then :
12692 ac_cv_cflags__fno_omit_frame_pointer=yes
12693 else
12694 ac_cv_cflags__fno_omit_frame_pointer=no
12696 rm -f core conftest.err conftest.$ac_objext \
12697 conftest$ac_exeext conftest.$ac_ext
12698 CFLAGS=$ac_wine_try_cflags_saved
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12701 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12702 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12703 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12704 fi ;;
12705 esac
12707 case $host in
12708 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12709 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12710 if ${ac_cv_cflags__Wno_format+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 ac_wine_try_cflags_saved=$CFLAGS
12714 CFLAGS="$CFLAGS -Wno-format"
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12717 int main(int argc, char **argv) { return 0; }
12718 _ACEOF
12719 if ac_fn_c_try_link "$LINENO"; then :
12720 ac_cv_cflags__Wno_format=yes
12721 else
12722 ac_cv_cflags__Wno_format=no
12724 rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726 CFLAGS=$ac_wine_try_cflags_saved
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12729 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12730 if test $ac_cv_cflags__Wno_format = yes; then :
12731 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12732 fi ;;
12733 esac
12735 saved_CFLAGS="$CFLAGS"
12736 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12738 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12739 if ${ac_cv_c_string_h_warnings+:} false; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12744 #include <string.h>
12746 main ()
12750 return 0;
12752 _ACEOF
12753 if ac_fn_c_try_compile "$LINENO"; then :
12754 ac_cv_c_string_h_warnings=no
12755 else
12756 ac_cv_c_string_h_warnings=yes
12758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12761 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12762 CFLAGS="$saved_CFLAGS"
12763 if test "$ac_cv_c_string_h_warnings" = "no"
12764 then
12765 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12768 saved_CFLAGS="$CFLAGS"
12769 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12771 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12772 if ${ac_cv_c_logicalop_noisy+:} false; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12777 #include <string.h>
12779 main ()
12781 char*f(const char *h,char n) {return strchr(h,n);}
12783 return 0;
12785 _ACEOF
12786 if ac_fn_c_try_compile "$LINENO"; then :
12787 ac_cv_c_logicalop_noisy=no
12788 else
12789 ac_cv_c_logicalop_noisy=yes
12791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12794 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12795 CFLAGS="$saved_CFLAGS"
12796 if test "$ac_cv_c_logicalop_noisy" = "no"
12797 then
12798 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12801 if test "x$enable_maintainer_mode" = "xyes"
12802 then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12804 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12805 if ${ac_cv_cflags__Werror+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 ac_wine_try_cflags_saved=$CFLAGS
12809 CFLAGS="$CFLAGS -Werror"
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12812 int main(int argc, char **argv) { return 0; }
12813 _ACEOF
12814 if ac_fn_c_try_link "$LINENO"; then :
12815 ac_cv_cflags__Werror=yes
12816 else
12817 ac_cv_cflags__Werror=no
12819 rm -f core conftest.err conftest.$ac_objext \
12820 conftest$ac_exeext conftest.$ac_ext
12821 CFLAGS=$ac_wine_try_cflags_saved
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12824 $as_echo "$ac_cv_cflags__Werror" >&6; }
12825 if test $ac_cv_cflags__Werror = yes; then :
12826 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12830 saved_CFLAGS="$CFLAGS"
12831 CFLAGS="$CFLAGS -Werror"
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12833 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12834 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12835 $as_echo_n "(cached) " >&6
12836 else
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12839 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12841 main ()
12845 return 0;
12847 _ACEOF
12848 if ac_fn_c_try_compile "$LINENO"; then :
12849 ac_cv_have_ms_hook_prologue="yes"
12850 else
12851 ac_cv_have_ms_hook_prologue="no"
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12856 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12857 CFLAGS="$saved_CFLAGS"
12858 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12859 then
12861 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12863 else
12864 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12871 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12872 if ${ac_cv_c_fortify_enabled+:} false; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12877 #include <string.h>
12879 main ()
12881 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12882 #error Fortify enabled
12883 #endif
12885 return 0;
12887 _ACEOF
12888 if ac_fn_c_try_compile "$LINENO"; then :
12889 ac_cv_c_fortify_enabled=no
12890 else
12891 ac_cv_c_fortify_enabled=yes
12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12896 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12897 if test "$ac_cv_c_fortify_enabled" = yes
12898 then
12899 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12904 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12905 if ${ac_cv_c_extern_prefix+:} false; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12910 extern int ac_test;
12912 main ()
12914 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12916 return 0;
12918 _ACEOF
12919 if ac_fn_c_try_link "$LINENO"; then :
12920 ac_cv_c_extern_prefix="yes"
12921 else
12922 ac_cv_c_extern_prefix="no"
12924 rm -f core conftest.err conftest.$ac_objext \
12925 conftest$ac_exeext conftest.$ac_ext
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12928 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12930 case $host_cpu in
12931 *i[3456789]86*)
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12933 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12934 if ${ac_cv_c_stdcall_suffix+:} false; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12939 #ifndef _MSC_VER
12940 #define __stdcall __attribute__((__stdcall__))
12941 #endif
12942 int __stdcall ac_test(int i) { return i; }
12944 main ()
12946 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12948 return 0;
12950 _ACEOF
12951 if ac_fn_c_try_link "$LINENO"; then :
12952 ac_cv_c_stdcall_suffix="yes"
12953 else
12954 ac_cv_c_stdcall_suffix="no"
12956 rm -f core conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12960 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12961 *) ac_cv_c_stdcall_suffix="no" ;;
12962 esac
12965 if test "$ac_cv_c_extern_prefix" = "yes"
12966 then
12967 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12969 asm_name_prefix="_"
12970 else
12971 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12973 asm_name_prefix=""
12977 if test "$ac_cv_c_stdcall_suffix" = "yes"
12978 then
12979 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12981 else
12982 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12988 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12989 if ${ac_cv_asm_func_def+:} false; then :
12990 $as_echo_n "(cached) " >&6
12991 else
12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
12996 main ()
12998 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
13000 return 0;
13002 _ACEOF
13003 if ac_fn_c_try_link "$LINENO"; then :
13004 ac_cv_asm_func_def=".def"
13005 else
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13010 main ()
13012 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
13014 return 0;
13016 _ACEOF
13017 if ac_fn_c_try_link "$LINENO"; then :
13018 ac_cv_asm_func_def=".type @function"
13019 else
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13024 main ()
13026 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
13028 return 0;
13030 _ACEOF
13031 if ac_fn_c_try_link "$LINENO"; then :
13032 ac_cv_asm_func_def=".type 2"
13033 else
13034 ac_cv_asm_func_def="unknown"
13036 rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13039 rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
13042 rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
13046 $as_echo "$ac_cv_asm_func_def" >&6; }
13049 case "$ac_cv_asm_func_def" in
13050 ".def")
13051 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
13053 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
13054 ".type @function")
13055 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
13057 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
13058 ".type 2")
13059 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
13061 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
13063 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
13065 asm_func_header="" ;;
13066 esac
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
13069 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
13070 if ${ac_cv_c_asm_outside_funcs+:} false; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13075 asm(".text\n\t.long 0");
13077 main ()
13081 return 0;
13083 _ACEOF
13084 if ac_fn_c_try_compile "$LINENO"; then :
13085 ac_cv_c_asm_outside_funcs="yes"
13086 else
13087 ac_cv_c_asm_outside_funcs="no"
13089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13092 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13095 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13096 if ${ac_cv_c_dot_previous+:} false; then :
13097 $as_echo_n "(cached) " >&6
13098 else
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13103 main ()
13105 asm(".text\nac_test:\t.long 0\n\t.previous");
13107 return 0;
13109 _ACEOF
13110 if ac_fn_c_try_link "$LINENO"; then :
13111 ac_cv_c_dot_previous="yes"
13112 else
13113 ac_cv_c_dot_previous="no"
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13119 $as_echo "$ac_cv_c_dot_previous" >&6; }
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13122 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13123 if ${ac_cv_c_cfi_support+:} false; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13130 main ()
13134 return 0;
13136 _ACEOF
13137 if ac_fn_c_try_compile "$LINENO"; then :
13138 ac_cv_c_cfi_support="yes"
13139 else
13140 ac_cv_c_cfi_support="no"
13142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13145 $as_echo "$ac_cv_c_cfi_support" >&6; }
13147 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13148 asm_func_trailer=""
13149 if test "$ac_cv_c_dot_previous" = "yes"
13150 then
13151 asm_func_trailer="\\n\\t.previous"
13153 if test "$ac_cv_c_cfi_support" = "yes"
13154 then
13155 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13156 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13158 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13160 UNWINDFLAGS=-fasynchronous-unwind-tables
13162 else
13163 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13167 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13170 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13171 then
13172 cat >>confdefs.h <<_ACEOF
13173 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13174 _ACEOF
13176 else
13177 cat >>confdefs.h <<_ACEOF
13178 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13179 _ACEOF
13183 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13186 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13190 LDPATH=""
13192 case $build_os in
13193 cygwin*|mingw32*)
13194 TOOLSEXT=".exe"
13196 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13198 darwin*|macosx*)
13201 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13203 esac
13205 MAIN_BINARY="wine"
13207 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13209 case $host_os in
13210 linux*)
13211 case $host_cpu in
13212 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13214 x86_64*) EXTRA_BINARIES="wine64-preloader"
13216 esac
13218 esac
13221 ac_save_CFLAGS="$CFLAGS"
13222 CFLAGS="$CFLAGS $BUILTINFLAG"
13223 for ac_func in \
13224 _finite \
13225 _isnan \
13226 _pclose \
13227 _popen \
13228 _snprintf \
13229 _spawnvp \
13230 _strdup \
13231 _stricmp \
13232 _strnicmp \
13233 _strtoi64 \
13234 _strtoui64 \
13235 _vsnprintf \
13236 asctime_r \
13237 chsize \
13238 dlopen \
13239 epoll_create \
13240 ffs \
13241 finite \
13242 fnmatch \
13243 fork \
13244 fpclass \
13245 fstatfs \
13246 fstatvfs \
13247 ftruncate \
13248 futimens \
13249 futimes \
13250 futimesat \
13251 getattrlist \
13252 getdirentries \
13253 getopt_long_only \
13254 getpwuid \
13255 gettimeofday \
13256 getuid \
13257 kqueue \
13258 lstat \
13259 memmove \
13260 mmap \
13261 pclose \
13262 pipe2 \
13263 poll \
13264 popen \
13265 port_create \
13266 prctl \
13267 pread \
13268 pwrite \
13269 readdir \
13270 readlink \
13271 sched_yield \
13272 select \
13273 setproctitle \
13274 setrlimit \
13275 settimeofday \
13276 sigaltstack \
13277 sigprocmask \
13278 snprintf \
13279 statfs \
13280 statvfs \
13281 strcasecmp \
13282 strdup \
13283 strerror \
13284 strncasecmp \
13285 strtold \
13286 strtoll \
13287 strtoull \
13288 symlink \
13289 tcgetattr \
13290 thr_kill2 \
13291 timegm \
13292 usleep \
13293 vsnprintf
13295 do :
13296 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13297 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13298 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13299 cat >>confdefs.h <<_ACEOF
13300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13301 _ACEOF
13304 done
13306 CFLAGS="$ac_save_CFLAGS"
13308 if test "$ac_cv_func_dlopen" = no
13309 then
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13311 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13312 if ${ac_cv_lib_dl_dlopen+:} false; then :
13313 $as_echo_n "(cached) " >&6
13314 else
13315 ac_check_lib_save_LIBS=$LIBS
13316 LIBS="-ldl $LIBS"
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13320 /* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply. */
13323 #ifdef __cplusplus
13324 extern "C"
13325 #endif
13326 char dlopen ();
13328 main ()
13330 return dlopen ();
13332 return 0;
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"; then :
13336 ac_cv_lib_dl_dlopen=yes
13337 else
13338 ac_cv_lib_dl_dlopen=no
13340 rm -f core conftest.err conftest.$ac_objext \
13341 conftest$ac_exeext conftest.$ac_ext
13342 LIBS=$ac_check_lib_save_LIBS
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13345 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13346 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13347 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13348 LIBDL="-ldl"
13353 ac_wine_check_funcs_save_LIBS="$LIBS"
13354 LIBS="$LIBS $LIBDL"
13355 for ac_func in dladdr
13356 do :
13357 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13358 if test "x$ac_cv_func_dladdr" = xyes; then :
13359 cat >>confdefs.h <<_ACEOF
13360 #define HAVE_DLADDR 1
13361 _ACEOF
13364 done
13366 LIBS="$ac_wine_check_funcs_save_LIBS"
13368 if test "$ac_cv_func_poll" = no
13369 then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13371 $as_echo_n "checking for poll in -lpoll... " >&6; }
13372 if ${ac_cv_lib_poll_poll+:} false; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 ac_check_lib_save_LIBS=$LIBS
13376 LIBS="-lpoll $LIBS"
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13380 /* Override any GCC internal prototype to avoid an error.
13381 Use char because int might match the return type of a GCC
13382 builtin and then its argument prototype would still apply. */
13383 #ifdef __cplusplus
13384 extern "C"
13385 #endif
13386 char poll ();
13388 main ()
13390 return poll ();
13392 return 0;
13394 _ACEOF
13395 if ac_fn_c_try_link "$LINENO"; then :
13396 ac_cv_lib_poll_poll=yes
13397 else
13398 ac_cv_lib_poll_poll=no
13400 rm -f core conftest.err conftest.$ac_objext \
13401 conftest$ac_exeext conftest.$ac_ext
13402 LIBS=$ac_check_lib_save_LIBS
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13405 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13406 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13407 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13408 LIBPOLL="-lpoll"
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13415 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13416 if ${ac_cv_search_gethostbyname+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 ac_func_search_save_LIBS=$LIBS
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13423 /* Override any GCC internal prototype to avoid an error.
13424 Use char because int might match the return type of a GCC
13425 builtin and then its argument prototype would still apply. */
13426 #ifdef __cplusplus
13427 extern "C"
13428 #endif
13429 char gethostbyname ();
13431 main ()
13433 return gethostbyname ();
13435 return 0;
13437 _ACEOF
13438 for ac_lib in '' nsl; do
13439 if test -z "$ac_lib"; then
13440 ac_res="none required"
13441 else
13442 ac_res=-l$ac_lib
13443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 ac_cv_search_gethostbyname=$ac_res
13448 rm -f core conftest.err conftest.$ac_objext \
13449 conftest$ac_exeext
13450 if ${ac_cv_search_gethostbyname+:} false; then :
13451 break
13453 done
13454 if ${ac_cv_search_gethostbyname+:} false; then :
13456 else
13457 ac_cv_search_gethostbyname=no
13459 rm conftest.$ac_ext
13460 LIBS=$ac_func_search_save_LIBS
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13463 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13464 ac_res=$ac_cv_search_gethostbyname
13465 if test "$ac_res" != no; then :
13466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13472 $as_echo_n "checking for library containing connect... " >&6; }
13473 if ${ac_cv_search_connect+:} false; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 ac_func_search_save_LIBS=$LIBS
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13480 /* Override any GCC internal prototype to avoid an error.
13481 Use char because int might match the return type of a GCC
13482 builtin and then its argument prototype would still apply. */
13483 #ifdef __cplusplus
13484 extern "C"
13485 #endif
13486 char connect ();
13488 main ()
13490 return connect ();
13492 return 0;
13494 _ACEOF
13495 for ac_lib in '' socket; do
13496 if test -z "$ac_lib"; then
13497 ac_res="none required"
13498 else
13499 ac_res=-l$ac_lib
13500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13502 if ac_fn_c_try_link "$LINENO"; then :
13503 ac_cv_search_connect=$ac_res
13505 rm -f core conftest.err conftest.$ac_objext \
13506 conftest$ac_exeext
13507 if ${ac_cv_search_connect+:} false; then :
13508 break
13510 done
13511 if ${ac_cv_search_connect+:} false; then :
13513 else
13514 ac_cv_search_connect=no
13516 rm conftest.$ac_ext
13517 LIBS=$ac_func_search_save_LIBS
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13520 $as_echo "$ac_cv_search_connect" >&6; }
13521 ac_res=$ac_cv_search_connect
13522 if test "$ac_res" != no; then :
13523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13529 $as_echo_n "checking for library containing inet_aton... " >&6; }
13530 if ${ac_cv_search_inet_aton+:} false; then :
13531 $as_echo_n "(cached) " >&6
13532 else
13533 ac_func_search_save_LIBS=$LIBS
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13537 /* Override any GCC internal prototype to avoid an error.
13538 Use char because int might match the return type of a GCC
13539 builtin and then its argument prototype would still apply. */
13540 #ifdef __cplusplus
13541 extern "C"
13542 #endif
13543 char inet_aton ();
13545 main ()
13547 return inet_aton ();
13549 return 0;
13551 _ACEOF
13552 for ac_lib in '' resolv; do
13553 if test -z "$ac_lib"; then
13554 ac_res="none required"
13555 else
13556 ac_res=-l$ac_lib
13557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 ac_cv_search_inet_aton=$ac_res
13562 rm -f core conftest.err conftest.$ac_objext \
13563 conftest$ac_exeext
13564 if ${ac_cv_search_inet_aton+:} false; then :
13565 break
13567 done
13568 if ${ac_cv_search_inet_aton+:} false; then :
13570 else
13571 ac_cv_search_inet_aton=no
13573 rm conftest.$ac_ext
13574 LIBS=$ac_func_search_save_LIBS
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13577 $as_echo "$ac_cv_search_inet_aton" >&6; }
13578 ac_res=$ac_cv_search_inet_aton
13579 if test "$ac_res" != no; then :
13580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13585 for ac_func in \
13586 getaddrinfo \
13587 getnameinfo \
13588 getnetbyname \
13589 getprotobyname \
13590 getprotobynumber \
13591 getservbyport \
13592 inet_network \
13593 inet_ntop \
13594 inet_pton \
13595 sendmsg \
13596 socketpair \
13598 do :
13599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13600 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13601 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13602 cat >>confdefs.h <<_ACEOF
13603 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13604 _ACEOF
13607 done
13610 ac_save_LIBS=$LIBS
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13612 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13613 if ${ac_cv_search_clock_gettime+:} false; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 ac_func_search_save_LIBS=$LIBS
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13620 /* Override any GCC internal prototype to avoid an error.
13621 Use char because int might match the return type of a GCC
13622 builtin and then its argument prototype would still apply. */
13623 #ifdef __cplusplus
13624 extern "C"
13625 #endif
13626 char clock_gettime ();
13628 main ()
13630 return clock_gettime ();
13632 return 0;
13634 _ACEOF
13635 for ac_lib in '' rt; do
13636 if test -z "$ac_lib"; then
13637 ac_res="none required"
13638 else
13639 ac_res=-l$ac_lib
13640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13642 if ac_fn_c_try_link "$LINENO"; then :
13643 ac_cv_search_clock_gettime=$ac_res
13645 rm -f core conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext
13647 if ${ac_cv_search_clock_gettime+:} false; then :
13648 break
13650 done
13651 if ${ac_cv_search_clock_gettime+:} false; then :
13653 else
13654 ac_cv_search_clock_gettime=no
13656 rm conftest.$ac_ext
13657 LIBS=$ac_func_search_save_LIBS
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13660 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13661 ac_res=$ac_cv_search_clock_gettime
13662 if test "$ac_res" != no; then :
13663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13665 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13667 test "$ac_res" = "none required" || LIBRT="$ac_res"
13671 LIBS=$ac_save_LIBS
13673 LDAPLIBS=""
13675 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13676 then
13677 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13679 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13681 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13682 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 ac_check_lib_save_LIBS=$LIBS
13686 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13693 #ifdef __cplusplus
13694 extern "C"
13695 #endif
13696 char ldap_initialize ();
13698 main ()
13700 return ldap_initialize ();
13702 return 0;
13704 _ACEOF
13705 if ac_fn_c_try_link "$LINENO"; then :
13706 ac_cv_lib_ldap_r_ldap_initialize=yes
13707 else
13708 ac_cv_lib_ldap_r_ldap_initialize=no
13710 rm -f core conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13715 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13716 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13718 $as_echo_n "checking for ber_init in -llber... " >&6; }
13719 if ${ac_cv_lib_lber_ber_init+:} false; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 ac_check_lib_save_LIBS=$LIBS
13723 LIBS="-llber $LIBPTHREAD $LIBS"
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13727 /* Override any GCC internal prototype to avoid an error.
13728 Use char because int might match the return type of a GCC
13729 builtin and then its argument prototype would still apply. */
13730 #ifdef __cplusplus
13731 extern "C"
13732 #endif
13733 char ber_init ();
13735 main ()
13737 return ber_init ();
13739 return 0;
13741 _ACEOF
13742 if ac_fn_c_try_link "$LINENO"; then :
13743 ac_cv_lib_lber_ber_init=yes
13744 else
13745 ac_cv_lib_lber_ber_init=no
13747 rm -f core conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13749 LIBS=$ac_check_lib_save_LIBS
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13752 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13753 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13755 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13757 LDAPLIBS="-lldap_r -llber"
13764 ac_wine_check_funcs_save_LIBS="$LIBS"
13765 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13766 for ac_func in \
13767 ldap_count_references \
13768 ldap_first_reference \
13769 ldap_next_reference \
13770 ldap_parse_reference \
13771 ldap_parse_sort_control \
13772 ldap_parse_sortresponse_control \
13773 ldap_parse_vlv_control \
13774 ldap_parse_vlvresponse_control
13775 do :
13776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13778 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13779 cat >>confdefs.h <<_ACEOF
13780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13781 _ACEOF
13784 done
13786 LIBS="$ac_wine_check_funcs_save_LIBS"
13788 if test "x$LDAPLIBS" = "x"; then :
13789 case "x$with_ldap" in
13790 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13791 xno) ;;
13792 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13793 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13794 esac
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13798 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13799 if ${wine_cv_one_arg_mkdir+:} false; then :
13800 $as_echo_n "(cached) " >&6
13801 else
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #include <sys/stat.h>
13806 main ()
13808 mkdir("foo");
13810 return 0;
13812 _ACEOF
13813 if ac_fn_c_try_compile "$LINENO"; then :
13814 wine_cv_one_arg_mkdir=yes
13815 else
13816 wine_cv_one_arg_mkdir=no
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13821 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13822 if test "$wine_cv_one_arg_mkdir" = "yes"
13823 then
13825 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13830 $as_echo_n "checking for sched_setaffinity... " >&6; }
13831 if ${wine_cv_have_sched_setaffinity+:} false; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836 #define _GNU_SOURCE
13837 #include <sched.h>
13839 main ()
13841 sched_setaffinity(0, 0, 0);
13843 return 0;
13845 _ACEOF
13846 if ac_fn_c_try_link "$LINENO"; then :
13847 wine_cv_have_sched_setaffinity=yes
13848 else
13849 wine_cv_have_sched_setaffinity=no
13851 rm -f core conftest.err conftest.$ac_objext \
13852 conftest$ac_exeext conftest.$ac_ext
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13855 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13856 if test "$wine_cv_have_sched_setaffinity" = "yes"
13857 then
13859 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
13864 $as_echo_n "checking for fallocate... " >&6; }
13865 if ${wine_cv_have_fallocate+:} false; then :
13866 $as_echo_n "(cached) " >&6
13867 else
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13870 #define _GNU_SOURCE
13871 #include <fcntl.h>
13873 main ()
13875 fallocate(-1, 0, 0, 0);
13877 return 0;
13879 _ACEOF
13880 if ac_fn_c_try_link "$LINENO"; then :
13881 wine_cv_have_fallocate=yes
13882 else
13883 wine_cv_have_fallocate=no
13885 rm -f core conftest.err conftest.$ac_objext \
13886 conftest$ac_exeext conftest.$ac_ext
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
13889 $as_echo "$wine_cv_have_fallocate" >&6; }
13890 if test "$wine_cv_have_fallocate" = "yes"
13891 then
13893 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13899 $as_echo_n "checking for inline... " >&6; }
13900 if ${ac_cv_c_inline+:} false; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 ac_cv_c_inline=no
13904 for ac_kw in inline __inline__ __inline; do
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907 #ifndef __cplusplus
13908 typedef int foo_t;
13909 static $ac_kw foo_t static_foo () {return 0; }
13910 $ac_kw foo_t foo () {return 0; }
13911 #endif
13913 _ACEOF
13914 if ac_fn_c_try_compile "$LINENO"; then :
13915 ac_cv_c_inline=$ac_kw
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 test "$ac_cv_c_inline" != no && break
13919 done
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13923 $as_echo "$ac_cv_c_inline" >&6; }
13925 case $ac_cv_c_inline in
13926 inline | yes) ;;
13928 case $ac_cv_c_inline in
13929 no) ac_val=;;
13930 *) ac_val=$ac_cv_c_inline;;
13931 esac
13932 cat >>confdefs.h <<_ACEOF
13933 #ifndef __cplusplus
13934 #define inline $ac_val
13935 #endif
13936 _ACEOF
13938 esac
13940 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13941 if test "x$ac_cv_type_mode_t" = xyes; then :
13943 cat >>confdefs.h <<_ACEOF
13944 #define HAVE_MODE_T 1
13945 _ACEOF
13949 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13950 if test "x$ac_cv_type_off_t" = xyes; then :
13952 cat >>confdefs.h <<_ACEOF
13953 #define HAVE_OFF_T 1
13954 _ACEOF
13958 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13959 if test "x$ac_cv_type_pid_t" = xyes; then :
13961 cat >>confdefs.h <<_ACEOF
13962 #define HAVE_PID_T 1
13963 _ACEOF
13967 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13968 if test "x$ac_cv_type_size_t" = xyes; then :
13970 cat >>confdefs.h <<_ACEOF
13971 #define HAVE_SIZE_T 1
13972 _ACEOF
13976 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13977 if test "x$ac_cv_type_ssize_t" = xyes; then :
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_SSIZE_T 1
13981 _ACEOF
13985 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13986 if test "x$ac_cv_type_long_long" = xyes; then :
13988 cat >>confdefs.h <<_ACEOF
13989 #define HAVE_LONG_LONG 1
13990 _ACEOF
13994 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13995 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13997 cat >>confdefs.h <<_ACEOF
13998 #define HAVE_FSBLKCNT_T 1
13999 _ACEOF
14003 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
14004 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14006 cat >>confdefs.h <<_ACEOF
14007 #define HAVE_FSFILCNT_T 1
14008 _ACEOF
14013 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
14014 #include <signal.h>
14016 if test "x$ac_cv_type_sigset_t" = xyes; then :
14018 cat >>confdefs.h <<_ACEOF
14019 #define HAVE_SIGSET_T 1
14020 _ACEOF
14025 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
14027 if test "x$ac_cv_type_request_sense" = xyes; then :
14029 cat >>confdefs.h <<_ACEOF
14030 #define HAVE_REQUEST_SENSE 1
14031 _ACEOF
14037 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
14038 #ifdef HAVE_SYS_SOCKET_H
14039 #include <sys/socket.h>
14040 #endif
14041 #ifdef HAVE_SYS_SOCKETVAR_H
14042 #include <sys/socketvar.h>
14043 #endif
14044 #ifdef HAVE_NET_ROUTE_H
14045 #include <net/route.h>
14046 #endif
14047 #ifdef HAVE_NETINET_IN_H
14048 #include <netinet/in.h>
14049 #endif
14050 #ifdef HAVE_NETINET_IN_SYSTM_H
14051 #include <netinet/in_systm.h>
14052 #endif
14053 #ifdef HAVE_NETINET_IP_H
14054 #include <netinet/ip.h>
14055 #endif
14056 #ifdef HAVE_NETINET_IN_PCB_H
14057 #include <netinet/in_pcb.h>
14058 #endif
14060 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
14062 cat >>confdefs.h <<_ACEOF
14063 #define HAVE_STRUCT_XINPGEN 1
14064 _ACEOF
14070 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
14071 #include <linux/input.h>
14072 #endif
14074 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
14076 cat >>confdefs.h <<_ACEOF
14077 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
14078 _ACEOF
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14085 $as_echo_n "checking for sigaddset... " >&6; }
14086 if ${wine_cv_have_sigaddset+:} false; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 #include <signal.h>
14093 main ()
14095 sigset_t set; sigaddset(&set,SIGTERM);
14097 return 0;
14099 _ACEOF
14100 if ac_fn_c_try_link "$LINENO"; then :
14101 wine_cv_have_sigaddset=yes
14102 else
14103 wine_cv_have_sigaddset=no
14105 rm -f core conftest.err conftest.$ac_objext \
14106 conftest$ac_exeext conftest.$ac_ext
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14109 $as_echo "$wine_cv_have_sigaddset" >&6; }
14110 if test "$wine_cv_have_sigaddset" = "yes"
14111 then
14113 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14119 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14120 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14121 $as_echo_n "(cached) " >&6
14122 else
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14125 #include <netdb.h>
14127 main ()
14130 char *name=0;
14131 struct hostent he;
14132 struct hostent *result;
14133 char *buf=0;
14134 int bufsize=0;
14135 int errnr;
14136 char *addr=0;
14137 int addrlen=0;
14138 int addrtype=0;
14139 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14140 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14143 return 0;
14145 _ACEOF
14146 if ac_fn_c_try_link "$LINENO"; then :
14147 wine_cv_linux_gethostbyname_r_6=yes
14148 else
14149 wine_cv_linux_gethostbyname_r_6=no
14152 rm -f core conftest.err conftest.$ac_objext \
14153 conftest$ac_exeext conftest.$ac_ext
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14157 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14158 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14159 then
14161 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14165 if test "$ac_cv_header_linux_joystick_h" = "yes"
14166 then
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14168 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14169 if ${wine_cv_linux_joystick_22_api+:} false; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173 /* end confdefs.h. */
14175 #include <sys/ioctl.h>
14176 #include <sys/types.h>
14177 #include <linux/joystick.h>
14179 struct js_event blub;
14180 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14181 #error "no 2.2 header"
14182 #endif
14185 main ()
14187 /*empty*/
14189 return 0;
14191 _ACEOF
14192 if ac_fn_c_try_compile "$LINENO"; then :
14193 wine_cv_linux_joystick_22_api=yes
14194 else
14195 wine_cv_linux_joystick_22_api=no
14197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14201 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14202 if test "$wine_cv_linux_joystick_22_api" = "yes"
14203 then
14205 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14211 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14212 #ifdef HAVE_SYS_PARAM_H
14213 # include <sys/param.h>
14214 #endif
14215 #ifdef HAVE_SYS_MOUNT_H
14216 # include <sys/mount.h>
14217 #endif
14218 #ifdef HAVE_SYS_VFS_H
14219 # include <sys/vfs.h>
14220 #endif
14221 #ifdef HAVE_SYS_STATFS_H
14222 # include <sys/statfs.h>
14223 #endif
14225 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14227 cat >>confdefs.h <<_ACEOF
14228 #define HAVE_STRUCT_STATFS_F_BFREE 1
14229 _ACEOF
14233 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14234 #ifdef HAVE_SYS_PARAM_H
14235 # include <sys/param.h>
14236 #endif
14237 #ifdef HAVE_SYS_MOUNT_H
14238 # include <sys/mount.h>
14239 #endif
14240 #ifdef HAVE_SYS_VFS_H
14241 # include <sys/vfs.h>
14242 #endif
14243 #ifdef HAVE_SYS_STATFS_H
14244 # include <sys/statfs.h>
14245 #endif
14247 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14249 cat >>confdefs.h <<_ACEOF
14250 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14251 _ACEOF
14255 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14256 #ifdef HAVE_SYS_PARAM_H
14257 # include <sys/param.h>
14258 #endif
14259 #ifdef HAVE_SYS_MOUNT_H
14260 # include <sys/mount.h>
14261 #endif
14262 #ifdef HAVE_SYS_VFS_H
14263 # include <sys/vfs.h>
14264 #endif
14265 #ifdef HAVE_SYS_STATFS_H
14266 # include <sys/statfs.h>
14267 #endif
14269 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14271 cat >>confdefs.h <<_ACEOF
14272 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14273 _ACEOF
14277 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14278 #ifdef HAVE_SYS_PARAM_H
14279 # include <sys/param.h>
14280 #endif
14281 #ifdef HAVE_SYS_MOUNT_H
14282 # include <sys/mount.h>
14283 #endif
14284 #ifdef HAVE_SYS_VFS_H
14285 # include <sys/vfs.h>
14286 #endif
14287 #ifdef HAVE_SYS_STATFS_H
14288 # include <sys/statfs.h>
14289 #endif
14291 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14293 cat >>confdefs.h <<_ACEOF
14294 #define HAVE_STRUCT_STATFS_F_FFREE 1
14295 _ACEOF
14299 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14300 #ifdef HAVE_SYS_PARAM_H
14301 # include <sys/param.h>
14302 #endif
14303 #ifdef HAVE_SYS_MOUNT_H
14304 # include <sys/mount.h>
14305 #endif
14306 #ifdef HAVE_SYS_VFS_H
14307 # include <sys/vfs.h>
14308 #endif
14309 #ifdef HAVE_SYS_STATFS_H
14310 # include <sys/statfs.h>
14311 #endif
14313 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14315 cat >>confdefs.h <<_ACEOF
14316 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14317 _ACEOF
14321 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14322 #ifdef HAVE_SYS_PARAM_H
14323 # include <sys/param.h>
14324 #endif
14325 #ifdef HAVE_SYS_MOUNT_H
14326 # include <sys/mount.h>
14327 #endif
14328 #ifdef HAVE_SYS_VFS_H
14329 # include <sys/vfs.h>
14330 #endif
14331 #ifdef HAVE_SYS_STATFS_H
14332 # include <sys/statfs.h>
14333 #endif
14335 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14337 cat >>confdefs.h <<_ACEOF
14338 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14339 _ACEOF
14345 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14346 #include <sys/statvfs.h>
14347 #endif
14349 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14351 cat >>confdefs.h <<_ACEOF
14352 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14353 _ACEOF
14359 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14360 #include <dirent.h>
14361 #endif
14363 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14365 cat >>confdefs.h <<_ACEOF
14366 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14367 _ACEOF
14373 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14374 #ifdef HAVE_SYS_SOCKET_H
14375 # include <sys/socket.h>
14376 #endif
14377 #ifdef HAVE_SYS_UN_H
14378 # include <sys/un.h>
14379 #endif
14381 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14383 cat >>confdefs.h <<_ACEOF
14384 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14385 _ACEOF
14389 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14390 #ifdef HAVE_SYS_SOCKET_H
14391 # include <sys/socket.h>
14392 #endif
14393 #ifdef HAVE_SYS_UN_H
14394 # include <sys/un.h>
14395 #endif
14397 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14399 cat >>confdefs.h <<_ACEOF
14400 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14401 _ACEOF
14405 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14406 #ifdef HAVE_SYS_SOCKET_H
14407 # include <sys/socket.h>
14408 #endif
14409 #ifdef HAVE_SYS_UN_H
14410 # include <sys/un.h>
14411 #endif
14413 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14415 cat >>confdefs.h <<_ACEOF
14416 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14417 _ACEOF
14423 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14424 #ifdef HAVE_SCSI_SG_H
14425 #include <scsi/sg.h>
14426 #endif
14428 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14430 cat >>confdefs.h <<_ACEOF
14431 #define HAVE_SCSIREQ_T_CMD 1
14432 _ACEOF
14436 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>
14437 #ifdef HAVE_SCSI_SG_H
14438 #include <scsi/sg.h>
14439 #endif
14441 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14443 cat >>confdefs.h <<_ACEOF
14444 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14445 _ACEOF
14451 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14453 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14455 cat >>confdefs.h <<_ACEOF
14456 #define HAVE_SIGINFO_T_SI_FD 1
14457 _ACEOF
14463 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14464 #ifdef HAVE_SYS_MTIO_H
14465 #include <sys/mtio.h>
14466 #endif
14468 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14470 cat >>confdefs.h <<_ACEOF
14471 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14472 _ACEOF
14476 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14477 #ifdef HAVE_SYS_MTIO_H
14478 #include <sys/mtio.h>
14479 #endif
14481 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14483 cat >>confdefs.h <<_ACEOF
14484 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14485 _ACEOF
14489 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14490 #ifdef HAVE_SYS_MTIO_H
14491 #include <sys/mtio.h>
14492 #endif
14494 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14496 cat >>confdefs.h <<_ACEOF
14497 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14498 _ACEOF
14504 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14505 #include <getopt.h>
14506 #endif
14508 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14510 cat >>confdefs.h <<_ACEOF
14511 #define HAVE_STRUCT_OPTION_NAME 1
14512 _ACEOF
14518 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14519 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14521 cat >>confdefs.h <<_ACEOF
14522 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14523 _ACEOF
14527 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14528 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14530 cat >>confdefs.h <<_ACEOF
14531 #define HAVE_STRUCT_STAT_ST_MTIM 1
14532 _ACEOF
14536 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14537 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14539 cat >>confdefs.h <<_ACEOF
14540 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14541 _ACEOF
14545 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14546 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14548 cat >>confdefs.h <<_ACEOF
14549 #define HAVE_STRUCT_STAT_ST_CTIM 1
14550 _ACEOF
14554 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14555 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14557 cat >>confdefs.h <<_ACEOF
14558 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14559 _ACEOF
14563 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14564 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14566 cat >>confdefs.h <<_ACEOF
14567 #define HAVE_STRUCT_STAT_ST_ATIM 1
14568 _ACEOF
14572 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14573 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14575 cat >>confdefs.h <<_ACEOF
14576 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14577 _ACEOF
14581 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14582 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14584 cat >>confdefs.h <<_ACEOF
14585 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14586 _ACEOF
14590 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14591 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14593 cat >>confdefs.h <<_ACEOF
14594 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14595 _ACEOF
14599 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14600 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14602 cat >>confdefs.h <<_ACEOF
14603 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14604 _ACEOF
14608 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14609 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14611 cat >>confdefs.h <<_ACEOF
14612 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14613 _ACEOF
14617 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14618 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14620 cat >>confdefs.h <<_ACEOF
14621 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14622 _ACEOF
14628 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
14629 #include <sys/types.h>
14630 #endif
14631 #ifdef HAVE_NETINET_IN_H
14632 #include <netinet/in.h>
14633 #endif
14635 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14637 cat >>confdefs.h <<_ACEOF
14638 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14639 _ACEOF
14645 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14646 #include <sys/types.h>
14647 #endif
14648 #ifdef HAVE_NETINET_IN_H
14649 # include <netinet/in.h>
14650 #endif
14651 #ifdef HAVE_ARPA_NAMESER_H
14652 # include <arpa/nameser.h>
14653 #endif
14655 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14657 cat >>confdefs.h <<_ACEOF
14658 #define HAVE_NS_MSG__MSG_PTR 1
14659 _ACEOF
14665 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14666 #include <sys/types.h>
14667 #endif
14668 #ifdef HAVE_NETINET_IP_H
14669 #include <netinet/ip.h>
14670 #endif
14671 #ifdef HAVE_NETINET_IP_ICMP_H
14672 #include <netinet/ip_icmp.h>
14673 #endif
14674 #ifdef HAVE_NETINET_ICMP_VAR_H
14675 #include <netinet/icmp_var.h>
14676 #endif
14678 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14682 _ACEOF
14688 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14689 #include <sys/types.h>
14690 #endif
14691 #ifdef HAVE_ALIAS_H
14692 #include <alias.h>
14693 #endif
14694 #ifdef HAVE_SYS_SOCKET_H
14695 #include <sys/socket.h>
14696 #endif
14697 #ifdef HAVE_SYS_SOCKETVAR_H
14698 #include <sys/socketvar.h>
14699 #endif
14700 #ifdef HAVE_SYS_TIMEOUT_H
14701 #include <sys/timeout.h>
14702 #endif
14703 #ifdef HAVE_NETINET_IN_H
14704 #include <netinet/in.h>
14705 #endif
14706 #ifdef HAVE_NETINET_IN_SYSTM_H
14707 #include <netinet/in_systm.h>
14708 #endif
14709 #ifdef HAVE_NETINET_IP_H
14710 #include <netinet/ip.h>
14711 #endif
14712 #ifdef HAVE_NETINET_IP_VAR_H
14713 #include <netinet/ip_var.h>
14714 #endif
14715 #ifdef HAVE_NETINET_IP_ICMP_H
14716 #include <netinet/ip_icmp.h>
14717 #endif
14718 #ifdef HAVE_NETINET_ICMP_VAR_H
14719 #include <netinet/icmp_var.h>
14720 #endif
14722 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14724 cat >>confdefs.h <<_ACEOF
14725 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14726 _ACEOF
14732 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14733 #include <sys/types.h>
14734 #endif
14735 #ifdef HAVE_SYS_SOCKETVAR_H
14736 #include <sys/socketvar.h>
14737 #endif
14738 #ifdef HAVE_NETINET_IN_H
14739 #include <netinet/in.h>
14740 #endif
14741 #ifdef HAVE_NETINET_IP_VAR_H
14742 #include <netinet/ip_var.h>
14743 #endif
14745 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14747 cat >>confdefs.h <<_ACEOF
14748 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14749 _ACEOF
14755 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
14756 #include <netinet/ip_var.h>
14757 #endif
14759 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14761 cat >>confdefs.h <<_ACEOF
14762 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14763 _ACEOF
14769 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14770 #include <sys/types.h>
14771 #endif
14772 #ifdef HAVE_SYS_SOCKETVAR_H
14773 #include <sys/socketvar.h>
14774 #endif
14775 #ifdef HAVE_NETINET_IN_H
14776 #include <netinet/in.h>
14777 #endif
14778 #ifdef HAVE_NETINET_TCP_H
14779 #include <netinet/tcp.h>
14780 #endif
14781 #ifdef HAVE_NETINET_TCP_VAR_H
14782 #include <netinet/tcp_var.h>
14783 #endif
14785 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14787 cat >>confdefs.h <<_ACEOF
14788 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14789 _ACEOF
14795 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
14796 #include <netinet/tcp_var.h>
14797 #endif
14799 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14801 cat >>confdefs.h <<_ACEOF
14802 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14803 _ACEOF
14809 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14810 #include <sys/types.h>
14811 #endif
14812 #ifdef HAVE_NETINET_IN_H
14813 #include <netinet/in.h>
14814 #endif
14815 #ifdef HAVE_NETINET_IP_VAR_H
14816 #include <netinet/ip_var.h>
14817 #endif
14818 #ifdef HAVE_NETINET_UDP_H
14819 #include <netinet/udp.h>
14820 #endif
14821 #ifdef HAVE_NETINET_UDP_VAR_H
14822 #include <netinet/udp_var.h>
14823 #endif
14825 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14827 cat >>confdefs.h <<_ACEOF
14828 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14829 _ACEOF
14835 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14836 #include <sys/types.h>
14837 #endif
14838 #ifdef HAVE_NET_IF_H
14839 # include <net/if.h>
14840 #endif
14842 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14844 cat >>confdefs.h <<_ACEOF
14845 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14846 _ACEOF
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14853 $as_echo_n "checking for timezone variable... " >&6; }
14854 if ${ac_cv_have_timezone+:} false; then :
14855 $as_echo_n "(cached) " >&6
14856 else
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14859 #include <time.h>
14861 main ()
14863 timezone = 1
14865 return 0;
14867 _ACEOF
14868 if ac_fn_c_try_link "$LINENO"; then :
14869 ac_cv_have_timezone="yes"
14870 else
14871 ac_cv_have_timezone="no"
14873 rm -f core conftest.err conftest.$ac_objext \
14874 conftest$ac_exeext conftest.$ac_ext
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14877 $as_echo "$ac_cv_have_timezone" >&6; }
14878 if test "$ac_cv_have_timezone" = "yes"
14879 then
14881 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14885 $as_echo_n "checking for daylight variable... " >&6; }
14886 if ${ac_cv_have_daylight+:} false; then :
14887 $as_echo_n "(cached) " >&6
14888 else
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891 #include <time.h>
14893 main ()
14895 daylight = 1
14897 return 0;
14899 _ACEOF
14900 if ac_fn_c_try_link "$LINENO"; then :
14901 ac_cv_have_daylight="yes"
14902 else
14903 ac_cv_have_daylight="no"
14905 rm -f core conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14909 $as_echo "$ac_cv_have_daylight" >&6; }
14910 if test "$ac_cv_have_daylight" = "yes"
14911 then
14913 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14917 ac_save_LIBS="$LIBS"
14918 LIBS="$LIBS -lm"
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14920 $as_echo_n "checking for isinf... " >&6; }
14921 if ${ac_cv_have_isinf+:} false; then :
14922 $as_echo_n "(cached) " >&6
14923 else
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14926 #include <math.h>
14928 main ()
14930 float f = 0.0; return isinf(f)
14932 return 0;
14934 _ACEOF
14935 if ac_fn_c_try_link "$LINENO"; then :
14936 ac_cv_have_isinf="yes"
14937 else
14938 ac_cv_have_isinf="no"
14940 rm -f core conftest.err conftest.$ac_objext \
14941 conftest$ac_exeext conftest.$ac_ext
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14944 $as_echo "$ac_cv_have_isinf" >&6; }
14945 if test "$ac_cv_have_isinf" = "yes"
14946 then
14948 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14953 $as_echo_n "checking for isnan... " >&6; }
14954 if ${ac_cv_have_isnan+:} false; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958 /* end confdefs.h. */
14959 #include <math.h>
14961 main ()
14963 float f = 0.0; return isnan(f)
14965 return 0;
14967 _ACEOF
14968 if ac_fn_c_try_link "$LINENO"; then :
14969 ac_cv_have_isnan="yes"
14970 else
14971 ac_cv_have_isnan="no"
14973 rm -f core conftest.err conftest.$ac_objext \
14974 conftest$ac_exeext conftest.$ac_ext
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14977 $as_echo "$ac_cv_have_isnan" >&6; }
14978 if test "$ac_cv_have_isnan" = "yes"
14979 then
14981 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14984 LIBS="$ac_save_LIBS"
14987 case $host_cpu in
14988 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14989 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14990 if ${ac_cv_cpp_def___i386__+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995 #ifndef __i386__
14997 #endif
14998 _ACEOF
14999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15000 $EGREP "yes" >/dev/null 2>&1; then :
15001 ac_cv_cpp_def___i386__=yes
15002 else
15003 ac_cv_cpp_def___i386__=no
15005 rm -f conftest*
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
15009 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
15010 if test $ac_cv_cpp_def___i386__ = yes; then :
15011 CFLAGS="$CFLAGS -D__i386__"
15012 LINTFLAGS="$LINTFLAGS -D__i386__"
15013 fi ;;
15014 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
15015 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
15016 if ${ac_cv_cpp_def___x86_64__+:} false; then :
15017 $as_echo_n "(cached) " >&6
15018 else
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15021 #ifndef __x86_64__
15023 #endif
15024 _ACEOF
15025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15026 $EGREP "yes" >/dev/null 2>&1; then :
15027 ac_cv_cpp_def___x86_64__=yes
15028 else
15029 ac_cv_cpp_def___x86_64__=no
15031 rm -f conftest*
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
15035 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
15036 if test $ac_cv_cpp_def___x86_64__ = yes; then :
15037 CFLAGS="$CFLAGS -D__x86_64__"
15038 LINTFLAGS="$LINTFLAGS -D__x86_64__"
15039 fi ;;
15040 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
15041 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
15042 if ${ac_cv_cpp_def___sparc64__+:} false; then :
15043 $as_echo_n "(cached) " >&6
15044 else
15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15047 #ifndef __sparc64__
15049 #endif
15050 _ACEOF
15051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15052 $EGREP "yes" >/dev/null 2>&1; then :
15053 ac_cv_cpp_def___sparc64__=yes
15054 else
15055 ac_cv_cpp_def___sparc64__=no
15057 rm -f conftest*
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
15061 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
15062 if test $ac_cv_cpp_def___sparc64__ = yes; then :
15063 CFLAGS="$CFLAGS -D__sparc64__"
15064 LINTFLAGS="$LINTFLAGS -D__sparc64__"
15065 fi ;;
15066 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
15067 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
15068 if ${ac_cv_cpp_def___sparc__+:} false; then :
15069 $as_echo_n "(cached) " >&6
15070 else
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15073 #ifndef __sparc__
15075 #endif
15076 _ACEOF
15077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15078 $EGREP "yes" >/dev/null 2>&1; then :
15079 ac_cv_cpp_def___sparc__=yes
15080 else
15081 ac_cv_cpp_def___sparc__=no
15083 rm -f conftest*
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15087 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15088 if test $ac_cv_cpp_def___sparc__ = yes; then :
15089 CFLAGS="$CFLAGS -D__sparc__"
15090 LINTFLAGS="$LINTFLAGS -D__sparc__"
15091 fi ;;
15092 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15093 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15094 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15095 $as_echo_n "(cached) " >&6
15096 else
15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098 /* end confdefs.h. */
15099 #ifndef __powerpc64__
15101 #endif
15102 _ACEOF
15103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15104 $EGREP "yes" >/dev/null 2>&1; then :
15105 ac_cv_cpp_def___powerpc64__=yes
15106 else
15107 ac_cv_cpp_def___powerpc64__=no
15109 rm -f conftest*
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15113 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15114 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15115 CFLAGS="$CFLAGS -D__powerpc64__"
15116 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15117 fi ;;
15118 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15119 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
15120 if ${ac_cv_cpp_def___powerpc__+:} false; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h. */
15125 #ifndef __powerpc__
15127 #endif
15128 _ACEOF
15129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15130 $EGREP "yes" >/dev/null 2>&1; then :
15131 ac_cv_cpp_def___powerpc__=yes
15132 else
15133 ac_cv_cpp_def___powerpc__=no
15135 rm -f conftest*
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
15139 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
15140 if test $ac_cv_cpp_def___powerpc__ = yes; then :
15141 CFLAGS="$CFLAGS -D__powerpc__"
15142 LINTFLAGS="$LINTFLAGS -D__powerpc__"
15143 fi ;;
15144 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
15145 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
15146 if ${ac_cv_cpp_def___aarch64__+:} false; then :
15147 $as_echo_n "(cached) " >&6
15148 else
15149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150 /* end confdefs.h. */
15151 #ifndef __aarch64__
15153 #endif
15154 _ACEOF
15155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15156 $EGREP "yes" >/dev/null 2>&1; then :
15157 ac_cv_cpp_def___aarch64__=yes
15158 else
15159 ac_cv_cpp_def___aarch64__=no
15161 rm -f conftest*
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
15165 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
15166 if test $ac_cv_cpp_def___aarch64__ = yes; then :
15167 CFLAGS="$CFLAGS -D__aarch64__"
15168 LINTFLAGS="$LINTFLAGS -D__aarch64__"
15169 fi ;;
15170 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
15171 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15172 if ${ac_cv_cpp_def___arm__+:} false; then :
15173 $as_echo_n "(cached) " >&6
15174 else
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177 #ifndef __arm__
15179 #endif
15180 _ACEOF
15181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15182 $EGREP "yes" >/dev/null 2>&1; then :
15183 ac_cv_cpp_def___arm__=yes
15184 else
15185 ac_cv_cpp_def___arm__=no
15187 rm -f conftest*
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15191 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15192 if test $ac_cv_cpp_def___arm__ = yes; then :
15193 CFLAGS="$CFLAGS -D__arm__"
15194 LINTFLAGS="$LINTFLAGS -D__arm__"
15195 fi ;;
15196 esac
15198 case $host_vendor in
15199 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15200 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15201 if ${ac_cv_cpp_def___sun__+:} false; then :
15202 $as_echo_n "(cached) " >&6
15203 else
15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15206 #ifndef __sun__
15208 #endif
15209 _ACEOF
15210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15211 $EGREP "yes" >/dev/null 2>&1; then :
15212 ac_cv_cpp_def___sun__=yes
15213 else
15214 ac_cv_cpp_def___sun__=no
15216 rm -f conftest*
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15220 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15221 if test $ac_cv_cpp_def___sun__ = yes; then :
15222 CFLAGS="$CFLAGS -D__sun__"
15223 LINTFLAGS="$LINTFLAGS -D__sun__"
15224 fi ;;
15225 esac
15231 ac_config_commands="$ac_config_commands include/stamp-h"
15234 ALL_MAKEFILE_DEPENDS="
15235 # Rules automatically generated by configure
15237 .INIT: Makefile
15238 .MAKEFILEDEPS:
15239 all: Makefile
15240 Makefile: Makefile.in Make.vars.in Make.rules config.status
15241 @./config.status Make.tmp Makefile"
15243 ALL_POT_FILES=""
15244 ALL_TEST_RESOURCES=""
15247 wine_fn_append_file ()
15249 as_fn_append $1 " \\$as_nl $2"
15252 wine_fn_append_rule ()
15254 as_fn_append $1 "$as_nl$2"
15257 wine_fn_has_flag ()
15259 expr ",$2," : ".*,$1,.*" >/dev/null
15262 wine_fn_all_dir_rules ()
15264 ac_dir=$1
15265 ac_alldeps=$2
15266 ac_makedep="\$(MAKEDEP)"
15267 ac_input=Make.vars.in:$ac_dir/Makefile.in
15268 if test $ac_dir != tools
15269 then
15270 ac_alldeps="$2 $ac_makedep"
15271 else
15272 ac_alldeps="$2 include/config.h"
15274 case $2 in
15275 *.in) ac_input=$ac_input:$2 ;;
15276 *) ac_makedep="$2 $ac_makedep" ;;
15277 esac
15279 wine_fn_append_file ALL_DIRS $ac_dir
15280 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15281 "__clean__: $ac_dir/__clean__
15282 .PHONY: $ac_dir/__clean__
15283 $ac_dir/__clean__: $ac_dir/Makefile
15284 @cd $ac_dir && \$(MAKE) clean
15285 \$(RM) $ac_dir/Makefile
15286 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15287 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15288 depend: $ac_dir/__depend__
15289 .PHONY: $ac_dir/__depend__
15290 $ac_dir/__depend__: $ac_makedep dummy
15291 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15294 wine_fn_pot_rules ()
15296 ac_dir=$1
15297 ac_flags=$2
15299 test "x$with_gettextpo" = xyes || return
15301 if wine_fn_has_flag mc $ac_flags
15302 then
15303 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15304 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15305 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15306 @cd $ac_dir && \$(MAKE) msg.pot
15307 $ac_dir/msg.pot: tools/wmc include"
15309 if wine_fn_has_flag po $ac_flags
15310 then
15311 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15312 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15313 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15314 @cd $ac_dir && \$(MAKE) rsrc.pot
15315 $ac_dir/rsrc.pot: tools/wrc include"
15319 wine_fn_config_makefile ()
15321 ac_dir=$1
15322 ac_enable=$2
15323 ac_flags=$3
15324 ac_rules=$4
15325 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15326 return 0
15329 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15330 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15331 "all: $ac_dir
15332 .PHONY: $ac_dir
15333 $ac_dir: $ac_dir/Makefile dummy
15334 @cd $ac_dir && \$(MAKE)"
15336 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15338 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15339 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15340 $ac_dir/__install__:: $ac_dir
15341 @cd $ac_dir && \$(MAKE) install
15342 $ac_dir/__uninstall__:: $ac_dir/Makefile
15343 @cd $ac_dir && \$(MAKE) uninstall
15344 install:: $ac_dir/__install__
15345 __uninstall__: $ac_dir/__uninstall__"
15347 if wine_fn_has_flag install-lib $ac_flags
15348 then
15349 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15350 ".PHONY: $ac_dir/__install-lib__
15351 $ac_dir/__install-lib__:: $ac_dir
15352 @cd $ac_dir && \$(MAKE) install-lib
15353 install-lib:: $ac_dir/__install-lib__"
15356 if wine_fn_has_flag install-dev $ac_flags
15357 then
15358 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15359 ".PHONY: $ac_dir/__install-dev
15360 $ac_dir/__install-dev__:: $ac_dir
15361 @cd $ac_dir && \$(MAKE) install-dev
15362 install-dev:: $ac_dir/__install-dev__"
15366 wine_fn_config_lib ()
15368 ac_name=$1
15369 ac_flags=$2
15370 ac_dir=dlls/$ac_name
15371 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15373 if wine_fn_has_flag install-dev $ac_flags
15374 then :
15375 else
15376 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15377 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15378 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15379 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15380 $ac_dir/__uninstall__::
15381 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15382 install install-dev:: $ac_dir/__install__
15383 __uninstall__: $ac_dir/__uninstall__"
15386 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15387 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15390 wine_fn_config_dll ()
15392 ac_name=$1
15393 ac_dir=dlls/$ac_name
15394 ac_enable=$2
15395 ac_flags=$3
15396 ac_implib=${4:-$ac_name}
15397 ac_file=$ac_dir/lib$ac_implib
15398 ac_dll=$ac_name
15399 ac_deps="tools/widl tools/winebuild tools/winegcc include"
15400 ac_implibflags=""
15402 case $ac_name in
15403 *16) ac_implibflags=" -m16" ;;
15404 *.*) ;;
15405 *) ac_dll=$ac_dll.dll ;;
15406 esac
15408 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15410 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15411 test "$ac_enable" != enable_win16 || return 0
15412 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15413 else
15414 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15415 "$ac_dir: __builddeps__
15416 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15417 @cd $ac_dir && \$(MAKE) \$@"
15419 if wine_fn_has_flag install-lib $ac_flags
15420 then :
15421 else
15422 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15423 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15424 install install-lib:: $ac_dir/__install-lib__
15425 __uninstall__: $ac_dir/__uninstall__"
15426 if test -n "$DLLEXT"
15427 then
15428 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15429 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15430 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15431 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15432 $ac_dir/__uninstall__::
15433 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15434 else
15435 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15436 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15437 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15438 $ac_dir/__uninstall__::
15439 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15443 wine_fn_pot_rules $ac_dir $ac_flags
15446 if wine_fn_has_flag staticimplib $ac_flags
15447 then
15448 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15449 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15450 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15451 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15452 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15453 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15454 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15455 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15456 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15457 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15458 $ac_dir/__uninstall__::
15459 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15460 install install-dev:: $ac_dir/__install-dev__
15461 __uninstall__: $ac_dir/__uninstall__"
15463 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15464 then
15465 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15466 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15467 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15468 $ac_dir/__uninstall__::
15469 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15472 if test "x$CROSSTEST_DISABLE" = x
15473 then
15474 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15475 "__builddeps__: $ac_file.cross.a
15476 $ac_file.cross.a: $ac_dir/Makefile dummy
15477 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15480 elif wine_fn_has_flag implib $ac_flags
15481 then
15482 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15483 "__builddeps__: $ac_file.$IMPLIBEXT
15484 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15485 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15486 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15487 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15488 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15489 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15490 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15491 $ac_dir/__uninstall__::
15492 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15493 install install-dev:: $ac_dir/__install-dev__
15494 __uninstall__: $ac_dir/__uninstall__"
15495 if test "x$CROSSTEST_DISABLE" = x
15496 then
15497 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15498 "__builddeps__: $ac_file.cross.a
15499 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15500 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15503 if test "$ac_name" != "$ac_implib"
15504 then
15505 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15506 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15507 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15508 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15509 clean::
15510 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15511 if test "x$CROSSTEST_DISABLE" = x
15512 then
15513 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15514 "__builddeps__: dlls/lib$ac_implib.cross.a
15515 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15516 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15522 wine_fn_config_program ()
15524 ac_name=$1
15525 ac_dir=programs/$ac_name
15526 ac_enable=$2
15527 ac_flags=$3
15528 ac_program=$ac_name
15530 case $ac_name in
15531 *.*) ;;
15532 *) ac_program=$ac_program.exe ;;
15533 esac
15535 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15537 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15539 else
15540 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15541 "$ac_dir: __builddeps__"
15543 wine_fn_pot_rules $ac_dir $ac_flags
15545 wine_fn_has_flag install $ac_flags || return
15546 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15547 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15548 install install-lib:: $ac_dir/__install__
15549 __uninstall__: $ac_dir/__uninstall__"
15551 if test -n "$DLLEXT"
15552 then
15553 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15554 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15555 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15556 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15557 $ac_dir/__uninstall__::
15558 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15560 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15561 then
15562 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15563 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15564 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15565 $ac_dir/__uninstall__::
15566 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15568 else
15569 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15570 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15571 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15572 $ac_dir/__uninstall__::
15573 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15576 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15577 then
15578 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15579 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15580 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15581 $ac_dir/__uninstall__::
15582 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15587 wine_fn_config_test ()
15589 ac_dir=$1
15590 ac_name=$2
15591 ac_flags=$3
15592 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15593 wine_fn_all_dir_rules $ac_dir Maketest.rules
15595 if test "x$enable_tests" = xno; then :
15597 else
15598 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15599 "all: $ac_dir
15600 .PHONY: $ac_dir
15601 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15602 @cd $ac_dir && \$(MAKE)
15603 programs/winetest: $ac_dir
15604 check test: $ac_dir/__test__
15605 .PHONY: $ac_dir/__test__
15606 $ac_dir/__test__: dummy
15607 @cd $ac_dir && \$(MAKE) test
15608 testclean::
15609 \$(RM) $ac_dir/*.ok"
15611 if test "x$CROSSTEST_DISABLE" = x
15612 then
15613 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15614 "crosstest: $ac_dir/__crosstest__
15615 .PHONY: $ac_dir/__crosstest__
15616 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15617 @cd $ac_dir && \$(MAKE) crosstest"
15622 wine_fn_config_tool ()
15624 ac_dir=$1
15625 ac_flags=$2
15626 if test "x$enable_tools" = xno; then :
15627 return 0
15630 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15632 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15633 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15634 case $ac_dir in
15635 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15636 esac
15639 wine_fn_config_makerules ()
15641 ac_rules=$1
15642 ac_deps=$2
15643 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15644 "$ac_rules: $ac_rules.in $ac_deps config.status
15645 @./config.status $ac_rules
15646 distclean::
15647 \$(RM) $ac_rules"
15650 wine_fn_config_symlink ()
15652 ac_link=$1
15653 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15654 "$ac_link:
15655 @./config.status $ac_link
15656 distclean::
15657 \$(RM) $ac_link"
15660 if test "x$CROSSTEST_DISABLE" != x
15661 then
15662 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15663 "crosstest:
15664 @echo \"crosstest is not supported (mingw not installed?)\" && false"
15666 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15667 wine_fn_config_symlink dlls/shell32/AUTHORS
15668 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15669 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15670 if test "x$enable_fonts" != xno; then
15671 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15672 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15674 if test "x$enable_fonts" != xno; then
15675 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15676 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15678 if test "x$enable_fonts" != xno; then
15679 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15680 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15682 if test "x$enable_fonts" != xno; then
15683 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15684 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15686 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15687 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15688 if test "x$enable_tools" != xno; then
15689 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15690 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15692 ac_config_links="$ac_config_links wine:tools/winewrapper"
15693 wine_fn_config_symlink wine
15694 if test "x$enable_win64" != xno; then
15695 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15696 wine_fn_config_symlink wine64
15699 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15701 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15703 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15705 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15707 ac_config_commands="$ac_config_commands dlls/user32/resources"
15709 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15711 ac_config_commands="$ac_config_commands include/wine"
15714 wine_fn_config_makerules Make.rules
15715 MAKE_RULES=Make.rules
15716 ac_config_files="$ac_config_files Make.rules"
15718 wine_fn_config_makerules Maketest.rules Make.rules
15719 MAKE_TEST_RULES=Maketest.rules
15720 ac_config_files="$ac_config_files Maketest.rules"
15722 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15723 MAKE_DLL_RULES=dlls/Makedll.rules
15724 ac_config_files="$ac_config_files dlls/Makedll.rules"
15726 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15727 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15728 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15730 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15731 MAKE_PROG_RULES=programs/Makeprog.rules
15732 ac_config_files="$ac_config_files programs/Makeprog.rules"
15735 wine_fn_config_dll acledit enable_acledit
15736 wine_fn_config_dll aclui enable_aclui implib
15737 wine_fn_config_dll activeds enable_activeds implib
15738 wine_fn_config_dll actxprxy enable_actxprxy
15739 wine_fn_config_lib adsiid
15740 wine_fn_config_dll advapi32 enable_advapi32 implib
15741 wine_fn_config_test dlls/advapi32/tests advapi32_test
15742 wine_fn_config_dll advpack enable_advpack implib
15743 wine_fn_config_test dlls/advpack/tests advpack_test
15744 wine_fn_config_dll amstream enable_amstream
15745 wine_fn_config_test dlls/amstream/tests amstream_test
15746 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15747 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15748 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15749 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15750 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15751 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15752 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15753 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15754 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15755 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15756 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15757 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15758 wine_fn_config_dll apphelp enable_apphelp
15759 wine_fn_config_test dlls/apphelp/tests apphelp_test
15760 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15761 wine_fn_config_dll atl enable_atl implib
15762 wine_fn_config_test dlls/atl/tests atl_test
15763 wine_fn_config_dll atl100 enable_atl100 implib
15764 wine_fn_config_test dlls/atl100/tests atl100_test
15765 wine_fn_config_dll atl80 enable_atl80 implib
15766 wine_fn_config_test dlls/atl80/tests atl80_test
15767 wine_fn_config_dll authz enable_authz
15768 wine_fn_config_dll avicap32 enable_avicap32 implib
15769 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15770 wine_fn_config_test dlls/avifil32/tests avifil32_test
15771 wine_fn_config_dll avifile.dll16 enable_win16
15772 wine_fn_config_dll avrt enable_avrt implib
15773 wine_fn_config_dll bcrypt enable_bcrypt
15774 wine_fn_config_dll browseui enable_browseui po
15775 wine_fn_config_test dlls/browseui/tests browseui_test
15776 wine_fn_config_dll cabinet enable_cabinet implib
15777 wine_fn_config_test dlls/cabinet/tests cabinet_test
15778 wine_fn_config_dll capi2032 enable_capi2032 implib
15779 wine_fn_config_dll cards enable_cards implib
15780 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15781 wine_fn_config_dll clusapi enable_clusapi implib
15782 wine_fn_config_dll comcat enable_comcat
15783 wine_fn_config_test dlls/comcat/tests comcat_test
15784 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15785 wine_fn_config_test dlls/comctl32/tests comctl32_test
15786 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15787 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15788 wine_fn_config_dll comm.drv16 enable_win16
15789 wine_fn_config_dll commdlg.dll16 enable_win16
15790 wine_fn_config_dll compobj.dll16 enable_win16
15791 wine_fn_config_dll compstui enable_compstui implib
15792 wine_fn_config_dll credui enable_credui implib,po
15793 wine_fn_config_test dlls/credui/tests credui_test
15794 wine_fn_config_dll crtdll enable_crtdll implib
15795 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15796 wine_fn_config_test dlls/crypt32/tests crypt32_test
15797 wine_fn_config_dll cryptdlg enable_cryptdlg po
15798 wine_fn_config_dll cryptdll enable_cryptdll implib
15799 wine_fn_config_dll cryptnet enable_cryptnet implib
15800 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15801 wine_fn_config_dll cryptui enable_cryptui implib,po
15802 wine_fn_config_test dlls/cryptui/tests cryptui_test
15803 wine_fn_config_dll ctapi32 enable_ctapi32
15804 wine_fn_config_dll ctl3d.dll16 enable_win16
15805 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15806 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15807 wine_fn_config_dll d3d10 enable_d3d10 implib
15808 wine_fn_config_test dlls/d3d10/tests d3d10_test
15809 wine_fn_config_dll d3d10core enable_d3d10core implib
15810 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15811 wine_fn_config_dll d3d11 enable_d3d11
15812 wine_fn_config_dll d3d8 enable_d3d8 implib
15813 wine_fn_config_test dlls/d3d8/tests d3d8_test
15814 wine_fn_config_dll d3d9 enable_d3d9 implib
15815 wine_fn_config_test dlls/d3d9/tests d3d9_test
15816 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15817 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15818 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15819 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15820 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15821 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15822 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15823 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15824 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15825 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15826 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15827 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15828 wine_fn_config_dll d3dim enable_d3dim implib
15829 wine_fn_config_dll d3drm enable_d3drm implib
15830 wine_fn_config_test dlls/d3drm/tests d3drm_test
15831 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15832 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15833 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15834 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15835 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15836 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15837 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15838 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15839 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15840 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15841 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15842 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15843 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15844 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15845 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15846 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15847 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15848 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15849 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15850 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15851 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15852 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15853 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15854 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15855 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15856 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15857 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15858 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15859 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15860 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15861 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15862 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15863 wine_fn_config_dll d3dxof enable_d3dxof implib
15864 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15865 wine_fn_config_dll dbgeng enable_dbgeng implib
15866 wine_fn_config_dll dbghelp enable_dbghelp implib
15867 wine_fn_config_dll dciman32 enable_dciman32 implib
15868 wine_fn_config_dll ddeml.dll16 enable_win16
15869 wine_fn_config_dll ddraw enable_ddraw implib
15870 wine_fn_config_test dlls/ddraw/tests ddraw_test
15871 wine_fn_config_dll ddrawex enable_ddrawex
15872 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15873 wine_fn_config_dll devenum enable_devenum po
15874 wine_fn_config_test dlls/devenum/tests devenum_test
15875 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15876 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15877 wine_fn_config_test dlls/dinput/tests dinput_test
15878 wine_fn_config_dll dinput8 enable_dinput8 implib
15879 wine_fn_config_test dlls/dinput8/tests dinput8_test
15880 wine_fn_config_dll dispdib.dll16 enable_win16
15881 wine_fn_config_dll dispex enable_dispex
15882 wine_fn_config_test dlls/dispex/tests dispex_test
15883 wine_fn_config_dll display.drv16 enable_win16
15884 wine_fn_config_dll dmband enable_dmband
15885 wine_fn_config_test dlls/dmband/tests dmband_test
15886 wine_fn_config_dll dmcompos enable_dmcompos
15887 wine_fn_config_dll dmime enable_dmime
15888 wine_fn_config_test dlls/dmime/tests dmime_test
15889 wine_fn_config_dll dmloader enable_dmloader
15890 wine_fn_config_test dlls/dmloader/tests dmloader_test
15891 wine_fn_config_dll dmscript enable_dmscript
15892 wine_fn_config_dll dmstyle enable_dmstyle
15893 wine_fn_config_dll dmsynth enable_dmsynth
15894 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15895 wine_fn_config_dll dmusic enable_dmusic
15896 wine_fn_config_test dlls/dmusic/tests dmusic_test
15897 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15898 wine_fn_config_dll dnsapi enable_dnsapi implib
15899 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15900 wine_fn_config_dll dplay enable_dplay implib
15901 wine_fn_config_dll dplayx enable_dplayx implib
15902 wine_fn_config_test dlls/dplayx/tests dplayx_test
15903 wine_fn_config_dll dpnaddr enable_dpnaddr
15904 wine_fn_config_dll dpnet enable_dpnet implib
15905 wine_fn_config_test dlls/dpnet/tests dpnet_test
15906 wine_fn_config_dll dpnhpast enable_dpnhpast
15907 wine_fn_config_dll dpnlobby enable_dpnlobby
15908 wine_fn_config_dll dpwsockx enable_dpwsockx
15909 wine_fn_config_dll drmclien enable_drmclien
15910 wine_fn_config_dll dsound enable_dsound implib
15911 wine_fn_config_test dlls/dsound/tests dsound_test
15912 wine_fn_config_dll dssenh enable_dssenh
15913 wine_fn_config_test dlls/dssenh/tests dssenh_test
15914 wine_fn_config_dll dswave enable_dswave
15915 wine_fn_config_dll dwmapi enable_dwmapi implib
15916 wine_fn_config_dll dwrite enable_dwrite implib
15917 wine_fn_config_test dlls/dwrite/tests dwrite_test
15918 wine_fn_config_dll dxdiagn enable_dxdiagn po
15919 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15920 wine_fn_config_lib dxerr8
15921 wine_fn_config_lib dxerr9
15922 wine_fn_config_dll dxgi enable_dxgi implib
15923 wine_fn_config_test dlls/dxgi/tests dxgi_test
15924 wine_fn_config_lib dxguid
15925 wine_fn_config_dll explorerframe enable_explorerframe
15926 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15927 wine_fn_config_dll faultrep enable_faultrep implib
15928 wine_fn_config_test dlls/faultrep/tests faultrep_test
15929 wine_fn_config_dll fltlib enable_fltlib
15930 wine_fn_config_dll fusion enable_fusion
15931 wine_fn_config_test dlls/fusion/tests fusion_test
15932 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15933 wine_fn_config_dll gameux enable_gameux
15934 wine_fn_config_test dlls/gameux/tests gameux_test
15935 wine_fn_config_dll gdi.exe16 enable_win16
15936 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15937 wine_fn_config_test dlls/gdi32/tests gdi32_test
15938 wine_fn_config_dll gdiplus enable_gdiplus implib
15939 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15940 wine_fn_config_dll glu32 enable_glu32 implib
15941 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15942 wine_fn_config_dll gpkcsp enable_gpkcsp
15943 wine_fn_config_dll hal enable_hal
15944 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
15945 wine_fn_config_dll hid enable_hid implib
15946 wine_fn_config_dll hlink enable_hlink implib
15947 wine_fn_config_test dlls/hlink/tests hlink_test
15948 wine_fn_config_dll hnetcfg enable_hnetcfg
15949 wine_fn_config_dll httpapi enable_httpapi
15950 wine_fn_config_dll iccvid enable_iccvid po
15951 wine_fn_config_dll icmp enable_icmp
15952 wine_fn_config_dll ieframe enable_ieframe implib,po
15953 wine_fn_config_test dlls/ieframe/tests ieframe_test
15954 wine_fn_config_dll ifsmgr.vxd enable_win16
15955 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15956 wine_fn_config_dll imagehlp enable_imagehlp implib
15957 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15958 wine_fn_config_dll imm.dll16 enable_win16
15959 wine_fn_config_dll imm32 enable_imm32 implib
15960 wine_fn_config_test dlls/imm32/tests imm32_test
15961 wine_fn_config_dll inetcomm enable_inetcomm implib
15962 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15963 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15964 wine_fn_config_dll inetmib1 enable_inetmib1
15965 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15966 wine_fn_config_dll infosoft enable_infosoft
15967 wine_fn_config_test dlls/infosoft/tests infosoft_test
15968 wine_fn_config_dll initpki enable_initpki
15969 wine_fn_config_dll inkobj enable_inkobj
15970 wine_fn_config_dll inseng enable_inseng
15971 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15972 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15973 wine_fn_config_dll itircl enable_itircl
15974 wine_fn_config_dll itss enable_itss
15975 wine_fn_config_test dlls/itss/tests itss_test
15976 wine_fn_config_dll joy.cpl enable_joy_cpl po
15977 wine_fn_config_dll jscript enable_jscript po
15978 wine_fn_config_test dlls/jscript/tests jscript_test
15979 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15980 wine_fn_config_test dlls/kernel32/tests kernel32_test
15981 wine_fn_config_dll keyboard.drv16 enable_win16
15982 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15983 wine_fn_config_dll ktmw32 enable_ktmw32
15984 wine_fn_config_dll loadperf enable_loadperf implib
15985 wine_fn_config_dll localspl enable_localspl po
15986 wine_fn_config_test dlls/localspl/tests localspl_test
15987 wine_fn_config_dll localui enable_localui po
15988 wine_fn_config_test dlls/localui/tests localui_test
15989 wine_fn_config_dll lz32 enable_lz32 implib
15990 wine_fn_config_test dlls/lz32/tests lz32_test
15991 wine_fn_config_dll lzexpand.dll16 enable_win16
15992 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15993 wine_fn_config_test dlls/mapi32/tests mapi32_test
15994 wine_fn_config_dll mapistub enable_mapistub
15995 wine_fn_config_dll mciavi32 enable_mciavi32
15996 wine_fn_config_dll mcicda enable_mcicda
15997 wine_fn_config_dll mciqtz32 enable_mciqtz32
15998 wine_fn_config_dll mciseq enable_mciseq
15999 wine_fn_config_dll mciwave enable_mciwave
16000 wine_fn_config_dll mgmtapi enable_mgmtapi
16001 wine_fn_config_dll midimap enable_midimap
16002 wine_fn_config_dll mlang enable_mlang implib
16003 wine_fn_config_test dlls/mlang/tests mlang_test
16004 wine_fn_config_dll mmcndmgr enable_mmcndmgr
16005 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16006 wine_fn_config_dll mmdevapi enable_mmdevapi
16007 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16008 wine_fn_config_dll mmdevldr.vxd enable_win16
16009 wine_fn_config_dll mmsystem.dll16 enable_win16
16010 wine_fn_config_dll monodebg.vxd enable_win16
16011 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16012 wine_fn_config_dll mouse.drv16 enable_win16
16013 wine_fn_config_dll mpr enable_mpr implib,po
16014 wine_fn_config_test dlls/mpr/tests mpr_test
16015 wine_fn_config_dll mprapi enable_mprapi implib
16016 wine_fn_config_dll msacm.dll16 enable_win16
16017 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16018 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16019 wine_fn_config_test dlls/msacm32/tests msacm32_test
16020 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16021 wine_fn_config_dll mscat32 enable_mscat32
16022 wine_fn_config_dll mscms enable_mscms implib
16023 wine_fn_config_test dlls/mscms/tests mscms_test
16024 wine_fn_config_dll mscoree enable_mscoree
16025 wine_fn_config_test dlls/mscoree/tests mscoree_test
16026 wine_fn_config_dll msctf enable_msctf
16027 wine_fn_config_test dlls/msctf/tests msctf_test
16028 wine_fn_config_dll msdaps enable_msdaps
16029 wine_fn_config_dll msdmo enable_msdmo implib
16030 wine_fn_config_dll msftedit enable_msftedit
16031 wine_fn_config_dll msg711.acm enable_msg711_acm
16032 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16033 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
16034 wine_fn_config_dll mshtml enable_mshtml implib,po
16035 wine_fn_config_test dlls/mshtml/tests mshtml_test
16036 wine_fn_config_dll msi enable_msi implib,po
16037 wine_fn_config_test dlls/msi/tests msi_test
16038 wine_fn_config_dll msident enable_msident
16039 wine_fn_config_dll msimg32 enable_msimg32 implib
16040 wine_fn_config_dll msimsg enable_msimsg
16041 wine_fn_config_dll msimtf enable_msimtf
16042 wine_fn_config_dll msisip enable_msisip
16043 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16044 wine_fn_config_dll msls31 enable_msls31
16045 wine_fn_config_dll msnet32 enable_msnet32
16046 wine_fn_config_dll mspatcha enable_mspatcha
16047 wine_fn_config_dll msrle32 enable_msrle32 po
16048 wine_fn_config_dll mssign32 enable_mssign32
16049 wine_fn_config_dll mssip32 enable_mssip32
16050 wine_fn_config_dll mstask enable_mstask
16051 wine_fn_config_test dlls/mstask/tests mstask_test
16052 wine_fn_config_dll msvcirt enable_msvcirt
16053 wine_fn_config_dll msvcm80 enable_msvcm80
16054 wine_fn_config_dll msvcm90 enable_msvcm90
16055 wine_fn_config_dll msvcp100 enable_msvcp100
16056 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16057 wine_fn_config_dll msvcp110 enable_msvcp110
16058 wine_fn_config_dll msvcp60 enable_msvcp60
16059 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16060 wine_fn_config_dll msvcp70 enable_msvcp70
16061 wine_fn_config_dll msvcp71 enable_msvcp71
16062 wine_fn_config_dll msvcp80 enable_msvcp80
16063 wine_fn_config_dll msvcp90 enable_msvcp90
16064 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16065 wine_fn_config_dll msvcr100 enable_msvcr100
16066 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16067 wine_fn_config_dll msvcr110 enable_msvcr110
16068 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16069 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16070 wine_fn_config_dll msvcr80 enable_msvcr80
16071 wine_fn_config_dll msvcr90 enable_msvcr90
16072 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16073 wine_fn_config_dll msvcrt enable_msvcrt implib
16074 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16075 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16076 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16077 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16078 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16079 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16080 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16081 wine_fn_config_dll msvidc32 enable_msvidc32 po
16082 wine_fn_config_dll msvideo.dll16 enable_win16
16083 wine_fn_config_dll mswsock enable_mswsock implib
16084 wine_fn_config_dll msxml enable_msxml
16085 wine_fn_config_dll msxml2 enable_msxml2
16086 wine_fn_config_dll msxml3 enable_msxml3
16087 wine_fn_config_test dlls/msxml3/tests msxml3_test
16088 wine_fn_config_dll msxml4 enable_msxml4
16089 wine_fn_config_dll msxml6 enable_msxml6
16090 wine_fn_config_dll nddeapi enable_nddeapi implib
16091 wine_fn_config_dll netapi32 enable_netapi32 implib
16092 wine_fn_config_test dlls/netapi32/tests netapi32_test
16093 wine_fn_config_dll newdev enable_newdev implib
16094 wine_fn_config_dll normaliz enable_normaliz implib
16095 wine_fn_config_dll npmshtml enable_npmshtml
16096 wine_fn_config_dll ntdll enable_ntdll implib
16097 wine_fn_config_test dlls/ntdll/tests ntdll_test
16098 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16099 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16100 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16101 wine_fn_config_dll ntprint enable_ntprint
16102 wine_fn_config_test dlls/ntprint/tests ntprint_test
16103 wine_fn_config_dll objsel enable_objsel
16104 wine_fn_config_dll odbc32 enable_odbc32 implib
16105 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16106 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16107 wine_fn_config_dll odbccu32 enable_odbccu32
16108 wine_fn_config_dll ole2.dll16 enable_win16
16109 wine_fn_config_dll ole2conv.dll16 enable_win16
16110 wine_fn_config_dll ole2disp.dll16 enable_win16
16111 wine_fn_config_dll ole2nls.dll16 enable_win16
16112 wine_fn_config_dll ole2prox.dll16 enable_win16
16113 wine_fn_config_dll ole2thk.dll16 enable_win16
16114 wine_fn_config_dll ole32 enable_ole32 implib
16115 wine_fn_config_test dlls/ole32/tests ole32_test
16116 wine_fn_config_dll oleacc enable_oleacc implib,po
16117 wine_fn_config_test dlls/oleacc/tests oleacc_test
16118 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
16119 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
16120 wine_fn_config_dll olecli.dll16 enable_win16
16121 wine_fn_config_dll olecli32 enable_olecli32 implib
16122 wine_fn_config_dll oledb32 enable_oledb32
16123 wine_fn_config_test dlls/oledb32/tests oledb32_test
16124 wine_fn_config_dll oledlg enable_oledlg implib,po
16125 wine_fn_config_dll olepro32 enable_olepro32 implib
16126 wine_fn_config_dll olesvr.dll16 enable_win16
16127 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16128 wine_fn_config_dll olethk32 enable_olethk32
16129 wine_fn_config_dll openal32 enable_openal32
16130 wine_fn_config_dll opencl enable_opencl
16131 wine_fn_config_dll opengl32 enable_opengl32 implib
16132 wine_fn_config_test dlls/opengl32/tests opengl32_test
16133 wine_fn_config_dll pdh enable_pdh implib
16134 wine_fn_config_test dlls/pdh/tests pdh_test
16135 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16136 wine_fn_config_dll pidgen enable_pidgen
16137 wine_fn_config_dll powrprof enable_powrprof implib
16138 wine_fn_config_dll printui enable_printui
16139 wine_fn_config_dll propsys enable_propsys implib
16140 wine_fn_config_test dlls/propsys/tests propsys_test
16141 wine_fn_config_dll psapi enable_psapi implib
16142 wine_fn_config_test dlls/psapi/tests psapi_test
16143 wine_fn_config_dll pstorec enable_pstorec
16144 wine_fn_config_dll qcap enable_qcap
16145 wine_fn_config_dll qedit enable_qedit
16146 wine_fn_config_test dlls/qedit/tests qedit_test
16147 wine_fn_config_dll qmgr enable_qmgr
16148 wine_fn_config_test dlls/qmgr/tests qmgr_test
16149 wine_fn_config_dll qmgrprxy enable_qmgrprxy
16150 wine_fn_config_dll quartz enable_quartz implib
16151 wine_fn_config_test dlls/quartz/tests quartz_test
16152 wine_fn_config_dll query enable_query
16153 wine_fn_config_dll rasapi16.dll16 enable_win16
16154 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16155 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16156 wine_fn_config_dll rasdlg enable_rasdlg implib
16157 wine_fn_config_dll regapi enable_regapi
16158 wine_fn_config_dll resutils enable_resutils implib
16159 wine_fn_config_dll riched20 enable_riched20 implib
16160 wine_fn_config_test dlls/riched20/tests riched20_test
16161 wine_fn_config_dll riched32 enable_riched32
16162 wine_fn_config_test dlls/riched32/tests riched32_test
16163 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
16164 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
16165 wine_fn_config_dll rsabase enable_rsabase
16166 wine_fn_config_dll rsaenh enable_rsaenh implib
16167 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16168 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16169 wine_fn_config_dll rtutils enable_rtutils implib
16170 wine_fn_config_dll samlib enable_samlib
16171 wine_fn_config_dll sane.ds enable_sane_ds po
16172 wine_fn_config_dll scarddlg enable_scarddlg
16173 wine_fn_config_dll sccbase enable_sccbase
16174 wine_fn_config_dll schannel enable_schannel
16175 wine_fn_config_test dlls/schannel/tests schannel_test
16176 wine_fn_config_dll scrrun enable_scrrun
16177 wine_fn_config_test dlls/scrrun/tests scrrun_test
16178 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16179 wine_fn_config_dll secur32 enable_secur32 implib
16180 wine_fn_config_test dlls/secur32/tests secur32_test
16181 wine_fn_config_dll security enable_security
16182 wine_fn_config_dll sensapi enable_sensapi implib
16183 wine_fn_config_dll serialui enable_serialui implib,po
16184 wine_fn_config_test dlls/serialui/tests serialui_test
16185 wine_fn_config_dll setupapi enable_setupapi implib,po
16186 wine_fn_config_test dlls/setupapi/tests setupapi_test
16187 wine_fn_config_dll setupx.dll16 enable_win16
16188 wine_fn_config_dll sfc enable_sfc implib
16189 wine_fn_config_dll sfc_os enable_sfc_os implib
16190 wine_fn_config_dll shdoclc enable_shdoclc po
16191 wine_fn_config_dll shdocvw enable_shdocvw implib
16192 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16193 wine_fn_config_dll shell.dll16 enable_win16
16194 wine_fn_config_dll shell32 enable_shell32 implib,po
16195 wine_fn_config_test dlls/shell32/tests shell32_test
16196 wine_fn_config_dll shfolder enable_shfolder implib
16197 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16198 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16199 wine_fn_config_dll slbcsp enable_slbcsp
16200 wine_fn_config_dll slc enable_slc implib
16201 wine_fn_config_dll snmpapi enable_snmpapi implib
16202 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16203 wine_fn_config_dll softpub enable_softpub
16204 wine_fn_config_dll sound.drv16 enable_win16
16205 wine_fn_config_dll spoolss enable_spoolss implib
16206 wine_fn_config_test dlls/spoolss/tests spoolss_test
16207 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16208 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16209 wine_fn_config_dll sti enable_sti implib
16210 wine_fn_config_test dlls/sti/tests sti_test
16211 wine_fn_config_dll storage.dll16 enable_win16
16212 wine_fn_config_dll stress.dll16 enable_win16
16213 wine_fn_config_lib strmbase
16214 wine_fn_config_lib strmiids
16215 wine_fn_config_dll svrapi enable_svrapi
16216 wine_fn_config_dll sxs enable_sxs implib
16217 wine_fn_config_test dlls/sxs/tests sxs_test
16218 wine_fn_config_dll system.drv16 enable_win16
16219 wine_fn_config_dll t2embed enable_t2embed
16220 wine_fn_config_dll tapi32 enable_tapi32 implib
16221 wine_fn_config_dll toolhelp.dll16 enable_win16
16222 wine_fn_config_dll traffic enable_traffic
16223 wine_fn_config_dll twain.dll16 enable_win16
16224 wine_fn_config_dll twain_32 enable_twain_32
16225 wine_fn_config_test dlls/twain_32/tests twain_32_test
16226 wine_fn_config_dll typelib.dll16 enable_win16
16227 wine_fn_config_dll unicows enable_unicows implib
16228 wine_fn_config_dll updspapi enable_updspapi
16229 wine_fn_config_dll url enable_url implib
16230 wine_fn_config_dll urlmon enable_urlmon implib,po
16231 wine_fn_config_test dlls/urlmon/tests urlmon_test
16232 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16233 wine_fn_config_dll user.exe16 enable_win16
16234 wine_fn_config_dll user32 enable_user32 implib,po
16235 wine_fn_config_test dlls/user32/tests user32_test
16236 wine_fn_config_dll userenv enable_userenv implib
16237 wine_fn_config_test dlls/userenv/tests userenv_test
16238 wine_fn_config_dll usp10 enable_usp10 implib
16239 wine_fn_config_test dlls/usp10/tests usp10_test
16240 wine_fn_config_lib uuid
16241 wine_fn_config_dll uxtheme enable_uxtheme implib
16242 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16243 wine_fn_config_dll vbscript enable_vbscript
16244 wine_fn_config_test dlls/vbscript/tests vbscript_test
16245 wine_fn_config_dll vcomp enable_vcomp
16246 wine_fn_config_dll vcomp100 enable_vcomp100
16247 wine_fn_config_dll vcomp90 enable_vcomp90
16248 wine_fn_config_dll vdhcp.vxd enable_win16
16249 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16250 wine_fn_config_dll ver.dll16 enable_win16
16251 wine_fn_config_dll version enable_version implib
16252 wine_fn_config_test dlls/version/tests version_test
16253 wine_fn_config_dll vmm.vxd enable_win16
16254 wine_fn_config_dll vnbt.vxd enable_win16
16255 wine_fn_config_dll vnetbios.vxd enable_win16
16256 wine_fn_config_dll vtdapi.vxd enable_win16
16257 wine_fn_config_dll vwin32.vxd enable_win16
16258 wine_fn_config_dll w32skrnl enable_win16
16259 wine_fn_config_dll w32sys.dll16 enable_win16
16260 wine_fn_config_dll wbemprox enable_wbemprox
16261 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16262 wine_fn_config_dll webservices enable_webservices implib
16263 wine_fn_config_dll wer enable_wer implib
16264 wine_fn_config_test dlls/wer/tests wer_test
16265 wine_fn_config_dll wevtapi enable_wevtapi
16266 wine_fn_config_dll wiaservc enable_wiaservc
16267 wine_fn_config_dll win32s16.dll16 enable_win16
16268 wine_fn_config_dll win87em.dll16 enable_win16
16269 wine_fn_config_dll winaspi.dll16 enable_win16
16270 wine_fn_config_dll windebug.dll16 enable_win16
16271 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16272 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16273 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
16274 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
16275 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16276 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16277 wine_fn_config_lib winecrt0
16278 wine_fn_config_dll wined3d enable_wined3d implib
16279 wine_fn_config_dll winegstreamer enable_winegstreamer
16280 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16281 wine_fn_config_dll winemac.drv enable_winemac_drv
16282 wine_fn_config_dll winemapi enable_winemapi
16283 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16284 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16285 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16286 wine_fn_config_dll wineps16.drv16 enable_win16
16287 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16288 wine_fn_config_dll winex11.drv enable_winex11_drv
16289 wine_fn_config_dll wing.dll16 enable_win16
16290 wine_fn_config_dll wing32 enable_wing32
16291 wine_fn_config_dll winhttp enable_winhttp implib
16292 wine_fn_config_test dlls/winhttp/tests winhttp_test
16293 wine_fn_config_dll wininet enable_wininet implib,po
16294 wine_fn_config_test dlls/wininet/tests wininet_test
16295 wine_fn_config_dll winmm enable_winmm implib,po
16296 wine_fn_config_test dlls/winmm/tests winmm_test
16297 wine_fn_config_dll winnls.dll16 enable_win16
16298 wine_fn_config_dll winnls32 enable_winnls32 implib
16299 wine_fn_config_dll winscard enable_winscard implib
16300 wine_fn_config_dll winsock.dll16 enable_win16
16301 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16302 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16303 wine_fn_config_dll winsta enable_winsta
16304 wine_fn_config_dll wintab.dll16 enable_win16
16305 wine_fn_config_dll wintab32 enable_wintab32 implib
16306 wine_fn_config_test dlls/wintab32/tests wintab32_test
16307 wine_fn_config_dll wintrust enable_wintrust implib
16308 wine_fn_config_test dlls/wintrust/tests wintrust_test
16309 wine_fn_config_dll wlanapi enable_wlanapi
16310 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16311 wine_fn_config_test dlls/wldap32/tests wldap32_test
16312 wine_fn_config_dll wmi enable_wmi
16313 wine_fn_config_dll wmiutils enable_wmiutils
16314 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16315 wine_fn_config_dll wmvcore enable_wmvcore
16316 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16317 wine_fn_config_dll wow32 enable_win16 implib
16318 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16319 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16320 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16321 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16322 wine_fn_config_dll wsnmp32 enable_wsnmp32
16323 wine_fn_config_dll wsock32 enable_wsock32 implib
16324 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16325 wine_fn_config_dll wuapi enable_wuapi
16326 wine_fn_config_dll wuaueng enable_wuaueng
16327 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16328 wine_fn_config_dll xinput1_1 enable_xinput1_1
16329 wine_fn_config_dll xinput1_2 enable_xinput1_2
16330 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16331 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16332 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16333 wine_fn_config_dll xmllite enable_xmllite
16334 wine_fn_config_test dlls/xmllite/tests xmllite_test
16335 wine_fn_config_dll xolehlp enable_xolehlp
16336 wine_fn_config_dll xpsprint enable_xpsprint
16337 wine_fn_config_dll xpssvcs enable_xpssvcs
16338 wine_fn_config_makefile documentation enable_documentation
16339 wine_fn_config_makefile fonts enable_fonts install-lib
16340 wine_fn_config_makefile include enable_include install-dev
16341 wine_fn_config_makefile libs/port enable_libs_port
16342 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
16343 wine_fn_config_makefile libs/wpp enable_libs_wpp
16344 wine_fn_config_makefile loader enable_loader install-lib,manpage
16345 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16346 wine_fn_config_program attrib enable_attrib install,po
16347 wine_fn_config_program cabarc enable_cabarc install
16348 wine_fn_config_program cacls enable_cacls install
16349 wine_fn_config_program clock enable_clock install,po
16350 wine_fn_config_program cmd enable_cmd install,po
16351 wine_fn_config_test programs/cmd/tests cmd.exe_test
16352 wine_fn_config_program conhost enable_conhost install
16353 wine_fn_config_program control enable_control install
16354 wine_fn_config_program cscript enable_cscript install
16355 wine_fn_config_program dxdiag enable_dxdiag install,po
16356 wine_fn_config_program eject enable_eject install
16357 wine_fn_config_program expand enable_expand install
16358 wine_fn_config_program explorer enable_explorer install,po
16359 wine_fn_config_program extrac32 enable_extrac32 install
16360 wine_fn_config_program findstr enable_findstr install
16361 wine_fn_config_program hh enable_hh install
16362 wine_fn_config_program hostname enable_hostname install,po
16363 wine_fn_config_program icinfo enable_icinfo install
16364 wine_fn_config_program iexplore enable_iexplore install
16365 wine_fn_config_program ipconfig enable_ipconfig install,po
16366 wine_fn_config_program lodctr enable_lodctr install
16367 wine_fn_config_program mofcomp enable_mofcomp install
16368 wine_fn_config_program mshta enable_mshta install
16369 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16370 wine_fn_config_program net enable_net install,po
16371 wine_fn_config_program netsh enable_netsh install
16372 wine_fn_config_program netstat enable_netstat install,po
16373 wine_fn_config_program ngen enable_ngen install
16374 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16375 wine_fn_config_program oleview enable_oleview install,po
16376 wine_fn_config_program ping enable_ping install
16377 wine_fn_config_program plugplay enable_plugplay install
16378 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16379 wine_fn_config_program progman enable_progman install,po
16380 wine_fn_config_program reg enable_reg install,po
16381 wine_fn_config_program regasm enable_regasm install
16382 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16383 wine_fn_config_test programs/regedit/tests regedit.exe_test
16384 wine_fn_config_program regsvcs enable_regsvcs install
16385 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16386 wine_fn_config_program rpcss enable_rpcss install
16387 wine_fn_config_program rundll.exe16 enable_win16 install
16388 wine_fn_config_program rundll32 enable_rundll32 install
16389 wine_fn_config_program sc enable_sc install
16390 wine_fn_config_program schtasks enable_schtasks install
16391 wine_fn_config_program secedit enable_secedit install
16392 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16393 wine_fn_config_program services enable_services install
16394 wine_fn_config_test programs/services/tests services.exe_test
16395 wine_fn_config_program spoolsv enable_spoolsv install
16396 wine_fn_config_program start enable_start install,po
16397 wine_fn_config_program svchost enable_svchost install
16398 wine_fn_config_program taskkill enable_taskkill install,po
16399 wine_fn_config_program taskmgr enable_taskmgr install,po
16400 wine_fn_config_program termsv enable_termsv install
16401 wine_fn_config_program uninstaller enable_uninstaller install,po
16402 wine_fn_config_program unlodctr enable_unlodctr install
16403 wine_fn_config_program view enable_view install,po
16404 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16405 wine_fn_config_program winebrowser enable_winebrowser install
16406 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16407 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16408 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16409 wine_fn_config_program winedevice enable_winedevice install
16410 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16411 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16412 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16413 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16414 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16415 wine_fn_config_program winetest enable_winetest
16416 wine_fn_config_program winevdm enable_win16 install
16417 wine_fn_config_program winhelp.exe16 enable_win16 install
16418 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16419 wine_fn_config_program winoldap.mod16 enable_win16 install
16420 wine_fn_config_program winver enable_winver install
16421 wine_fn_config_program wmic enable_wmic install,po
16422 wine_fn_config_program wordpad enable_wordpad install,po
16423 wine_fn_config_program write enable_write install,po
16424 wine_fn_config_program wscript enable_wscript install
16425 wine_fn_config_test programs/wscript/tests wscript.exe_test
16426 wine_fn_config_program wusa enable_wusa install
16427 wine_fn_config_program xcopy enable_xcopy install,po
16428 wine_fn_config_makefile server enable_server install-lib,manpage
16429 wine_fn_config_tool tools install-dev,install-lib,manpage
16430 wine_fn_config_tool tools/widl install-dev,manpage
16431 wine_fn_config_tool tools/winebuild install-dev,manpage
16432 wine_fn_config_tool tools/winedump install-dev,manpage
16433 wine_fn_config_tool tools/winegcc install-dev,manpage
16434 wine_fn_config_tool tools/wmc install-dev,manpage
16435 wine_fn_config_tool tools/wrc install-dev,manpage
16437 LINGUAS="\
16438 ar \
16439 bg \
16440 ca \
16441 cs \
16442 da \
16443 de \
16444 el \
16445 en \
16446 en_US \
16447 eo \
16448 es \
16449 fa \
16450 fi \
16451 fr \
16452 he \
16453 hi \
16454 hu \
16455 it \
16456 ja \
16457 ko \
16458 lt \
16459 ml \
16460 nb_NO \
16461 nl \
16462 or \
16463 pa \
16464 pl \
16465 pt_BR \
16466 pt_PT \
16467 rm \
16468 ro \
16469 ru \
16470 sk \
16471 sl \
16472 sr_RS@cyrillic \
16473 sr_RS@latin \
16474 sv \
16475 te \
16476 th \
16477 tr \
16478 uk \
16479 wa \
16480 zh_CN \
16481 zh_TW"
16485 ac_config_commands="$ac_config_commands Makefile"
16488 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16492 if test "x$enable_maintainer_mode" = xyes
16493 then
16494 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16495 cd \$(srcdir) && autoconf --warnings=all
16496 \$(srcdir)/include/config.h.in: include/stamp-h.in
16497 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16498 cd \$(srcdir) && autoheader --warnings=all
16499 @echo timestamp > \$@"
16502 if test "x$with_gettextpo" = xyes
16503 then
16504 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16505 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16506 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16507 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16508 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16509 msgcat -o \$@ \$(ALL_POT_FILES)"
16512 if test "$MSGFMT" != false
16513 then
16514 PORCFLAGS="--po-dir=\$(top_builddir)/po"
16516 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16517 else
16518 LINGUAS=
16521 if test "x$enable_tools" != xno
16522 then
16523 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16524 clean:: __clean__
16525 \$(RM) tools/makedep\$(EXEEXT)"
16528 if test -n "$with_wine64"
16529 then
16530 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16531 fonts server tools:
16532 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16533 $with_wine64/loader/wine:
16534 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16535 $with_wine64/loader/wine-preloader:
16536 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16537 clean::
16538 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16541 cat >confcache <<\_ACEOF
16542 # This file is a shell script that caches the results of configure
16543 # tests run on this system so they can be shared between configure
16544 # scripts and configure runs, see configure's option --config-cache.
16545 # It is not useful on other systems. If it contains results you don't
16546 # want to keep, you may remove or edit it.
16548 # config.status only pays attention to the cache file if you give it
16549 # the --recheck option to rerun configure.
16551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16553 # following values.
16555 _ACEOF
16557 # The following way of writing the cache mishandles newlines in values,
16558 # but we know of no workaround that is simple, portable, and efficient.
16559 # So, we kill variables containing newlines.
16560 # Ultrix sh set writes to stderr and can't be redirected directly,
16561 # and sets the high bit in the cache file unless we assign to the vars.
16563 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16564 eval ac_val=\$$ac_var
16565 case $ac_val in #(
16566 *${as_nl}*)
16567 case $ac_var in #(
16568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16570 esac
16571 case $ac_var in #(
16572 _ | IFS | as_nl) ;; #(
16573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16574 *) { eval $ac_var=; unset $ac_var;} ;;
16575 esac ;;
16576 esac
16577 done
16579 (set) 2>&1 |
16580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16581 *${as_nl}ac_space=\ *)
16582 # `set' does not quote correctly, so add quotes: double-quote
16583 # substitution turns \\\\ into \\, and sed turns \\ into \.
16584 sed -n \
16585 "s/'/'\\\\''/g;
16586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16587 ;; #(
16589 # `set' quotes correctly as required by POSIX, so do not add quotes.
16590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16592 esac |
16593 sort
16595 sed '
16596 /^ac_cv_env_/b end
16597 t clear
16598 :clear
16599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16600 t end
16601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16602 :end' >>confcache
16603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16604 if test -w "$cache_file"; then
16605 if test "x$cache_file" != "x/dev/null"; then
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16607 $as_echo "$as_me: updating cache $cache_file" >&6;}
16608 if test ! -f "$cache_file" || test -h "$cache_file"; then
16609 cat confcache >"$cache_file"
16610 else
16611 case $cache_file in #(
16612 */* | ?:*)
16613 mv -f confcache "$cache_file"$$ &&
16614 mv -f "$cache_file"$$ "$cache_file" ;; #(
16616 mv -f confcache "$cache_file" ;;
16617 esac
16620 else
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16625 rm -f confcache
16627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16628 # Let make expand exec_prefix.
16629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16631 DEFS=-DHAVE_CONFIG_H
16633 ac_libobjs=
16634 ac_ltlibobjs=
16636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16637 # 1. Remove the extension, and $U if already installed.
16638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16639 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16641 # will be set to the directory where LIBOBJS objects are built.
16642 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16643 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16644 done
16645 LIBOBJS=$ac_libobjs
16647 LTLIBOBJS=$ac_ltlibobjs
16651 : "${CONFIG_STATUS=./config.status}"
16652 ac_write_fail=0
16653 ac_clean_files_save=$ac_clean_files
16654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16656 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16657 as_write_fail=0
16658 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16659 #! $SHELL
16660 # Generated by $as_me.
16661 # Run this file to recreate the current configuration.
16662 # Compiler output produced by configure, useful for debugging
16663 # configure, is in config.log if it exists.
16665 debug=false
16666 ac_cs_recheck=false
16667 ac_cs_silent=false
16669 SHELL=\${CONFIG_SHELL-$SHELL}
16670 export SHELL
16671 _ASEOF
16672 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16673 ## -------------------- ##
16674 ## M4sh Initialization. ##
16675 ## -------------------- ##
16677 # Be more Bourne compatible
16678 DUALCASE=1; export DUALCASE # for MKS sh
16679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16680 emulate sh
16681 NULLCMD=:
16682 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16683 # is contrary to our usage. Disable this feature.
16684 alias -g '${1+"$@"}'='"$@"'
16685 setopt NO_GLOB_SUBST
16686 else
16687 case `(set -o) 2>/dev/null` in #(
16688 *posix*) :
16689 set -o posix ;; #(
16690 *) :
16692 esac
16696 as_nl='
16698 export as_nl
16699 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16700 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16701 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16702 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16703 # Prefer a ksh shell builtin over an external printf program on Solaris,
16704 # but without wasting forks for bash or zsh.
16705 if test -z "$BASH_VERSION$ZSH_VERSION" \
16706 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16707 as_echo='print -r --'
16708 as_echo_n='print -rn --'
16709 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16710 as_echo='printf %s\n'
16711 as_echo_n='printf %s'
16712 else
16713 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16714 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16715 as_echo_n='/usr/ucb/echo -n'
16716 else
16717 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16718 as_echo_n_body='eval
16719 arg=$1;
16720 case $arg in #(
16721 *"$as_nl"*)
16722 expr "X$arg" : "X\\(.*\\)$as_nl";
16723 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16724 esac;
16725 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16727 export as_echo_n_body
16728 as_echo_n='sh -c $as_echo_n_body as_echo'
16730 export as_echo_body
16731 as_echo='sh -c $as_echo_body as_echo'
16734 # The user is always right.
16735 if test "${PATH_SEPARATOR+set}" != set; then
16736 PATH_SEPARATOR=:
16737 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16738 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16739 PATH_SEPARATOR=';'
16744 # IFS
16745 # We need space, tab and new line, in precisely that order. Quoting is
16746 # there to prevent editors from complaining about space-tab.
16747 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16748 # splitting by setting IFS to empty value.)
16749 IFS=" "" $as_nl"
16751 # Find who we are. Look in the path if we contain no directory separator.
16752 as_myself=
16753 case $0 in #((
16754 *[\\/]* ) as_myself=$0 ;;
16755 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16756 for as_dir in $PATH
16758 IFS=$as_save_IFS
16759 test -z "$as_dir" && as_dir=.
16760 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16761 done
16762 IFS=$as_save_IFS
16765 esac
16766 # We did not find ourselves, most probably we were run as `sh COMMAND'
16767 # in which case we are not to be found in the path.
16768 if test "x$as_myself" = x; then
16769 as_myself=$0
16771 if test ! -f "$as_myself"; then
16772 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16773 exit 1
16776 # Unset variables that we do not need and which cause bugs (e.g. in
16777 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16778 # suppresses any "Segmentation fault" message there. '((' could
16779 # trigger a bug in pdksh 5.2.14.
16780 for as_var in BASH_ENV ENV MAIL MAILPATH
16781 do eval test x\${$as_var+set} = xset \
16782 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16783 done
16784 PS1='$ '
16785 PS2='> '
16786 PS4='+ '
16788 # NLS nuisances.
16789 LC_ALL=C
16790 export LC_ALL
16791 LANGUAGE=C
16792 export LANGUAGE
16794 # CDPATH.
16795 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16798 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16799 # ----------------------------------------
16800 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16801 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16802 # script with STATUS, using 1 if that was 0.
16803 as_fn_error ()
16805 as_status=$1; test $as_status -eq 0 && as_status=1
16806 if test "$4"; then
16807 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16808 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16810 $as_echo "$as_me: error: $2" >&2
16811 as_fn_exit $as_status
16812 } # as_fn_error
16815 # as_fn_set_status STATUS
16816 # -----------------------
16817 # Set $? to STATUS, without forking.
16818 as_fn_set_status ()
16820 return $1
16821 } # as_fn_set_status
16823 # as_fn_exit STATUS
16824 # -----------------
16825 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16826 as_fn_exit ()
16828 set +e
16829 as_fn_set_status $1
16830 exit $1
16831 } # as_fn_exit
16833 # as_fn_unset VAR
16834 # ---------------
16835 # Portably unset VAR.
16836 as_fn_unset ()
16838 { eval $1=; unset $1;}
16840 as_unset=as_fn_unset
16841 # as_fn_append VAR VALUE
16842 # ----------------------
16843 # Append the text in VALUE to the end of the definition contained in VAR. Take
16844 # advantage of any shell optimizations that allow amortized linear growth over
16845 # repeated appends, instead of the typical quadratic growth present in naive
16846 # implementations.
16847 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16848 eval 'as_fn_append ()
16850 eval $1+=\$2
16852 else
16853 as_fn_append ()
16855 eval $1=\$$1\$2
16857 fi # as_fn_append
16859 # as_fn_arith ARG...
16860 # ------------------
16861 # Perform arithmetic evaluation on the ARGs, and store the result in the
16862 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16863 # must be portable across $(()) and expr.
16864 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16865 eval 'as_fn_arith ()
16867 as_val=$(( $* ))
16869 else
16870 as_fn_arith ()
16872 as_val=`expr "$@" || test $? -eq 1`
16874 fi # as_fn_arith
16877 if expr a : '\(a\)' >/dev/null 2>&1 &&
16878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16879 as_expr=expr
16880 else
16881 as_expr=false
16884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16885 as_basename=basename
16886 else
16887 as_basename=false
16890 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16891 as_dirname=dirname
16892 else
16893 as_dirname=false
16896 as_me=`$as_basename -- "$0" ||
16897 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16898 X"$0" : 'X\(//\)$' \| \
16899 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16900 $as_echo X/"$0" |
16901 sed '/^.*\/\([^/][^/]*\)\/*$/{
16902 s//\1/
16905 /^X\/\(\/\/\)$/{
16906 s//\1/
16909 /^X\/\(\/\).*/{
16910 s//\1/
16913 s/.*/./; q'`
16915 # Avoid depending upon Character Ranges.
16916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16919 as_cr_digits='0123456789'
16920 as_cr_alnum=$as_cr_Letters$as_cr_digits
16922 ECHO_C= ECHO_N= ECHO_T=
16923 case `echo -n x` in #(((((
16924 -n*)
16925 case `echo 'xy\c'` in
16926 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16927 xy) ECHO_C='\c';;
16928 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16929 ECHO_T=' ';;
16930 esac;;
16932 ECHO_N='-n';;
16933 esac
16935 rm -f conf$$ conf$$.exe conf$$.file
16936 if test -d conf$$.dir; then
16937 rm -f conf$$.dir/conf$$.file
16938 else
16939 rm -f conf$$.dir
16940 mkdir conf$$.dir 2>/dev/null
16942 if (echo >conf$$.file) 2>/dev/null; then
16943 if ln -s conf$$.file conf$$ 2>/dev/null; then
16944 as_ln_s='ln -s'
16945 # ... but there are two gotchas:
16946 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16947 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16948 # In both cases, we have to default to `cp -pR'.
16949 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16950 as_ln_s='cp -pR'
16951 elif ln conf$$.file conf$$ 2>/dev/null; then
16952 as_ln_s=ln
16953 else
16954 as_ln_s='cp -pR'
16956 else
16957 as_ln_s='cp -pR'
16959 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16960 rmdir conf$$.dir 2>/dev/null
16963 # as_fn_mkdir_p
16964 # -------------
16965 # Create "$as_dir" as a directory, including parents if necessary.
16966 as_fn_mkdir_p ()
16969 case $as_dir in #(
16970 -*) as_dir=./$as_dir;;
16971 esac
16972 test -d "$as_dir" || eval $as_mkdir_p || {
16973 as_dirs=
16974 while :; do
16975 case $as_dir in #(
16976 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16977 *) as_qdir=$as_dir;;
16978 esac
16979 as_dirs="'$as_qdir' $as_dirs"
16980 as_dir=`$as_dirname -- "$as_dir" ||
16981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16982 X"$as_dir" : 'X\(//\)[^/]' \| \
16983 X"$as_dir" : 'X\(//\)$' \| \
16984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16985 $as_echo X"$as_dir" |
16986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16987 s//\1/
16990 /^X\(\/\/\)[^/].*/{
16991 s//\1/
16994 /^X\(\/\/\)$/{
16995 s//\1/
16998 /^X\(\/\).*/{
16999 s//\1/
17002 s/.*/./; q'`
17003 test -d "$as_dir" && break
17004 done
17005 test -z "$as_dirs" || eval "mkdir $as_dirs"
17006 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17009 } # as_fn_mkdir_p
17010 if mkdir -p . 2>/dev/null; then
17011 as_mkdir_p='mkdir -p "$as_dir"'
17012 else
17013 test -d ./-p && rmdir ./-p
17014 as_mkdir_p=false
17018 # as_fn_executable_p FILE
17019 # -----------------------
17020 # Test if FILE is an executable regular file.
17021 as_fn_executable_p ()
17023 test -f "$1" && test -x "$1"
17024 } # as_fn_executable_p
17025 as_test_x='test -x'
17026 as_executable_p=as_fn_executable_p
17028 # Sed expression to map a string onto a valid CPP name.
17029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17031 # Sed expression to map a string onto a valid variable name.
17032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17035 exec 6>&1
17036 ## ----------------------------------- ##
17037 ## Main body of $CONFIG_STATUS script. ##
17038 ## ----------------------------------- ##
17039 _ASEOF
17040 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17043 # Save the log message, to keep $0 and so on meaningful, and to
17044 # report actual input values of CONFIG_FILES etc. instead of their
17045 # values after options handling.
17046 ac_log="
17047 This file was extended by Wine $as_me 1.5.29, which was
17048 generated by GNU Autoconf 2.69. Invocation command line was
17050 CONFIG_FILES = $CONFIG_FILES
17051 CONFIG_HEADERS = $CONFIG_HEADERS
17052 CONFIG_LINKS = $CONFIG_LINKS
17053 CONFIG_COMMANDS = $CONFIG_COMMANDS
17054 $ $0 $@
17056 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17059 _ACEOF
17061 case $ac_config_files in *"
17062 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17063 esac
17065 case $ac_config_headers in *"
17066 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17067 esac
17070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17071 # Files that config.status was made for.
17072 config_files="$ac_config_files"
17073 config_headers="$ac_config_headers"
17074 config_links="$ac_config_links"
17075 config_commands="$ac_config_commands"
17077 _ACEOF
17079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17080 ac_cs_usage="\
17081 \`$as_me' instantiates files and other configuration actions
17082 from templates according to the current configuration. Unless the files
17083 and actions are specified as TAGs, all are instantiated by default.
17085 Usage: $0 [OPTION]... [TAG]...
17087 -h, --help print this help, then exit
17088 -V, --version print version number and configuration settings, then exit
17089 --config print configuration, then exit
17090 -q, --quiet, --silent
17091 do not print progress messages
17092 -d, --debug don't remove temporary files
17093 --recheck update $as_me by reconfiguring in the same conditions
17094 --file=FILE[:TEMPLATE]
17095 instantiate the configuration file FILE
17096 --header=FILE[:TEMPLATE]
17097 instantiate the configuration header FILE
17099 Configuration files:
17100 $config_files
17102 Configuration headers:
17103 $config_headers
17105 Configuration links:
17106 $config_links
17108 Configuration commands:
17109 $config_commands
17111 Report bugs to <wine-devel@winehq.org>.
17112 Wine home page: <http://www.winehq.org>."
17114 _ACEOF
17115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17116 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17117 ac_cs_version="\\
17118 Wine config.status 1.5.29
17119 configured by $0, generated by GNU Autoconf 2.69,
17120 with options \\"\$ac_cs_config\\"
17122 Copyright (C) 2012 Free Software Foundation, Inc.
17123 This config.status script is free software; the Free Software Foundation
17124 gives unlimited permission to copy, distribute and modify it."
17126 ac_pwd='$ac_pwd'
17127 srcdir='$srcdir'
17128 INSTALL='$INSTALL'
17129 test -n "\$AWK" || AWK=awk
17130 _ACEOF
17132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17133 # The default lists apply if the user does not specify any file.
17134 ac_need_defaults=:
17135 while test $# != 0
17137 case $1 in
17138 --*=?*)
17139 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17140 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17141 ac_shift=:
17143 --*=)
17144 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17145 ac_optarg=
17146 ac_shift=:
17149 ac_option=$1
17150 ac_optarg=$2
17151 ac_shift=shift
17153 esac
17155 case $ac_option in
17156 # Handling of the options.
17157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17158 ac_cs_recheck=: ;;
17159 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17160 $as_echo "$ac_cs_version"; exit ;;
17161 --config | --confi | --conf | --con | --co | --c )
17162 $as_echo "$ac_cs_config"; exit ;;
17163 --debug | --debu | --deb | --de | --d | -d )
17164 debug=: ;;
17165 --file | --fil | --fi | --f )
17166 $ac_shift
17167 case $ac_optarg in
17168 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17169 '') as_fn_error $? "missing file argument" ;;
17170 esac
17171 as_fn_append CONFIG_FILES " '$ac_optarg'"
17172 ac_need_defaults=false;;
17173 --header | --heade | --head | --hea )
17174 $ac_shift
17175 case $ac_optarg in
17176 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17177 esac
17178 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17179 ac_need_defaults=false;;
17180 --he | --h)
17181 # Conflict between --help and --header
17182 as_fn_error $? "ambiguous option: \`$1'
17183 Try \`$0 --help' for more information.";;
17184 --help | --hel | -h )
17185 $as_echo "$ac_cs_usage"; exit ;;
17186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17188 ac_cs_silent=: ;;
17190 # This is an error.
17191 -*) as_fn_error $? "unrecognized option: \`$1'
17192 Try \`$0 --help' for more information." ;;
17194 *) as_fn_append ac_config_targets " $1"
17195 ac_need_defaults=false ;;
17197 esac
17198 shift
17199 done
17201 ac_configure_extra_args=
17203 if $ac_cs_silent; then
17204 exec 6>/dev/null
17205 ac_configure_extra_args="$ac_configure_extra_args --silent"
17208 _ACEOF
17209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17210 if \$ac_cs_recheck; then
17211 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17212 shift
17213 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17214 CONFIG_SHELL='$SHELL'
17215 export CONFIG_SHELL
17216 exec "\$@"
17219 _ACEOF
17220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17221 exec 5>>config.log
17223 echo
17224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17225 ## Running $as_me. ##
17226 _ASBOX
17227 $as_echo "$ac_log"
17228 } >&5
17230 _ACEOF
17231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17233 # INIT-COMMANDS
17235 wine_fn_output_makefile ()
17237 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17238 $ALL_MAKEFILE_DEPENDS
17239 _WINE_EOF
17240 as_fn_error $? "could not create Makefile" "$LINENO" 5
17243 _ACEOF
17245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17247 # Handling of arguments.
17248 for ac_config_target in $ac_config_targets
17250 case $ac_config_target in
17251 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17252 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17253 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17254 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17255 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17256 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17257 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17258 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17259 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17260 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17261 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17262 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17263 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17264 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17265 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17266 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17267 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17268 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17269 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17270 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17271 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17272 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17273 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17274 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17275 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17276 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17278 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17279 esac
17280 done
17283 # If the user did not use the arguments to specify the items to instantiate,
17284 # then the envvar interface is used. Set only those that are not.
17285 # We use the long form for the default assignment because of an extremely
17286 # bizarre bug on SunOS 4.1.3.
17287 if $ac_need_defaults; then
17288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17290 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17291 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17294 # Have a temporary directory for convenience. Make it in the build tree
17295 # simply because there is no reason against having it here, and in addition,
17296 # creating and moving files from /tmp can sometimes cause problems.
17297 # Hook for its removal unless debugging.
17298 # Note that there is a small window in which the directory will not be cleaned:
17299 # after its creation but before its name has been assigned to `$tmp'.
17300 $debug ||
17302 tmp= ac_tmp=
17303 trap 'exit_status=$?
17304 : "${ac_tmp:=$tmp}"
17305 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17307 trap 'as_fn_exit 1' 1 2 13 15
17309 # Create a (secure) tmp directory for tmp files.
17312 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17313 test -d "$tmp"
17314 } ||
17316 tmp=./conf$$-$RANDOM
17317 (umask 077 && mkdir "$tmp")
17318 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17319 ac_tmp=$tmp
17321 # Set up the scripts for CONFIG_FILES section.
17322 # No need to generate them if there are no CONFIG_FILES.
17323 # This happens for instance with `./config.status config.h'.
17324 if test -n "$CONFIG_FILES"; then
17326 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17327 ac_cs_awk_getline=:
17328 ac_cs_awk_pipe_init=
17329 ac_cs_awk_read_file='
17330 while ((getline aline < (F[key])) > 0)
17331 print(aline)
17332 close(F[key])'
17333 ac_cs_awk_pipe_fini=
17334 else
17335 ac_cs_awk_getline=false
17336 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17337 ac_cs_awk_read_file='
17338 print "|#_!!_#|"
17339 print "cat " F[key] " &&"
17340 '$ac_cs_awk_pipe_init
17341 # The final `:' finishes the AND list.
17342 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17344 ac_cr=`echo X | tr X '\015'`
17345 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17346 # But we know of no other shell where ac_cr would be empty at this
17347 # point, so we can use a bashism as a fallback.
17348 if test "x$ac_cr" = x; then
17349 eval ac_cr=\$\'\\r\'
17351 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17352 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17353 ac_cs_awk_cr='\\r'
17354 else
17355 ac_cs_awk_cr=$ac_cr
17358 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17359 _ACEOF
17361 # Create commands to substitute file output variables.
17363 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17364 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17365 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17366 echo "_ACAWK" &&
17367 echo "_ACEOF"
17368 } >conf$$files.sh &&
17369 . ./conf$$files.sh ||
17370 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17371 rm -f conf$$files.sh
17374 echo "cat >conf$$subs.awk <<_ACEOF" &&
17375 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17376 echo "_ACEOF"
17377 } >conf$$subs.sh ||
17378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17379 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17380 ac_delim='%!_!# '
17381 for ac_last_try in false false false false false :; do
17382 . ./conf$$subs.sh ||
17383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17385 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17386 if test $ac_delim_n = $ac_delim_num; then
17387 break
17388 elif $ac_last_try; then
17389 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17390 else
17391 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17393 done
17394 rm -f conf$$subs.sh
17396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17397 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17398 _ACEOF
17399 sed -n '
17401 s/^/S["/; s/!.*/"]=/
17404 s/^[^!]*!//
17405 :repl
17406 t repl
17407 s/'"$ac_delim"'$//
17408 t delim
17411 s/\(.\{148\}\)..*/\1/
17412 t more1
17413 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17416 b repl
17417 :more1
17418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17421 s/.\{148\}//
17422 t nl
17423 :delim
17425 s/\(.\{148\}\)..*/\1/
17426 t more2
17427 s/["\\]/\\&/g; s/^/"/; s/$/"/
17430 :more2
17431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17434 s/.\{148\}//
17435 t delim
17436 ' <conf$$subs.awk | sed '
17437 /^[^""]/{
17439 s/\n//
17441 ' >>$CONFIG_STATUS || ac_write_fail=1
17442 rm -f conf$$subs.awk
17443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17444 _ACAWK
17445 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17446 for (key in S) S_is_set[key] = 1
17447 FS = "\a"
17448 \$ac_cs_awk_pipe_init
17451 line = $ 0
17452 nfields = split(line, field, "@")
17453 substed = 0
17454 len = length(field[1])
17455 for (i = 2; i < nfields; i++) {
17456 key = field[i]
17457 keylen = length(key)
17458 if (S_is_set[key]) {
17459 value = S[key]
17460 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17461 len += length(value) + length(field[++i])
17462 substed = 1
17463 } else
17464 len += 1 + keylen
17466 if (nfields == 3 && !substed) {
17467 key = field[2]
17468 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17469 \$ac_cs_awk_read_file
17470 next
17473 print line
17475 \$ac_cs_awk_pipe_fini
17476 _ACAWK
17477 _ACEOF
17478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17479 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17480 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17481 else
17483 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17484 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17485 _ACEOF
17487 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17488 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17489 # trailing colons and then remove the whole line if VPATH becomes empty
17490 # (actually we leave an empty line to preserve line numbers).
17491 if test "x$srcdir" = x.; then
17492 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17494 s///
17495 s/^/:/
17496 s/[ ]*$/:/
17497 s/:\$(srcdir):/:/g
17498 s/:\${srcdir}:/:/g
17499 s/:@srcdir@:/:/g
17500 s/^:*//
17501 s/:*$//
17503 s/\(=[ ]*\).*/\1/
17505 s/\n//
17506 s/^[^=]*=[ ]*$//
17510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17511 fi # test -n "$CONFIG_FILES"
17513 # Set up the scripts for CONFIG_HEADERS section.
17514 # No need to generate them if there are no CONFIG_HEADERS.
17515 # This happens for instance with `./config.status Makefile'.
17516 if test -n "$CONFIG_HEADERS"; then
17517 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17518 BEGIN {
17519 _ACEOF
17521 # Transform confdefs.h into an awk script `defines.awk', embedded as
17522 # here-document in config.status, that substitutes the proper values into
17523 # config.h.in to produce config.h.
17525 # Create a delimiter string that does not exist in confdefs.h, to ease
17526 # handling of long lines.
17527 ac_delim='%!_!# '
17528 for ac_last_try in false false :; do
17529 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17530 if test -z "$ac_tt"; then
17531 break
17532 elif $ac_last_try; then
17533 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17534 else
17535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17537 done
17539 # For the awk script, D is an array of macro values keyed by name,
17540 # likewise P contains macro parameters if any. Preserve backslash
17541 # newline sequences.
17543 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17544 sed -n '
17545 s/.\{148\}/&'"$ac_delim"'/g
17546 t rset
17547 :rset
17548 s/^[ ]*#[ ]*define[ ][ ]*/ /
17549 t def
17551 :def
17552 s/\\$//
17553 t bsnl
17554 s/["\\]/\\&/g
17555 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17556 D["\1"]=" \3"/p
17557 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17559 :bsnl
17560 s/["\\]/\\&/g
17561 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17562 D["\1"]=" \3\\\\\\n"\\/p
17563 t cont
17564 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17565 t cont
17567 :cont
17569 s/.\{148\}/&'"$ac_delim"'/g
17570 t clear
17571 :clear
17572 s/\\$//
17573 t bsnlc
17574 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17576 :bsnlc
17577 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17578 b cont
17579 ' <confdefs.h | sed '
17580 s/'"$ac_delim"'/"\\\
17581 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17584 for (key in D) D_is_set[key] = 1
17585 FS = "\a"
17587 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17588 line = \$ 0
17589 split(line, arg, " ")
17590 if (arg[1] == "#") {
17591 defundef = arg[2]
17592 mac1 = arg[3]
17593 } else {
17594 defundef = substr(arg[1], 2)
17595 mac1 = arg[2]
17597 split(mac1, mac2, "(") #)
17598 macro = mac2[1]
17599 prefix = substr(line, 1, index(line, defundef) - 1)
17600 if (D_is_set[macro]) {
17601 # Preserve the white space surrounding the "#".
17602 print prefix "define", macro P[macro] D[macro]
17603 next
17604 } else {
17605 # Replace #undef with comments. This is necessary, for example,
17606 # in the case of _POSIX_SOURCE, which is predefined and required
17607 # on some systems where configure will not decide to define it.
17608 if (defundef == "undef") {
17609 print "/*", prefix defundef, macro, "*/"
17610 next
17614 { print }
17615 _ACAWK
17616 _ACEOF
17617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17618 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17619 fi # test -n "$CONFIG_HEADERS"
17622 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17623 shift
17624 for ac_tag
17626 case $ac_tag in
17627 :[FHLC]) ac_mode=$ac_tag; continue;;
17628 esac
17629 case $ac_mode$ac_tag in
17630 :[FHL]*:*);;
17631 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17632 :[FH]-) ac_tag=-:-;;
17633 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17634 esac
17635 ac_save_IFS=$IFS
17636 IFS=:
17637 set x $ac_tag
17638 IFS=$ac_save_IFS
17639 shift
17640 ac_file=$1
17641 shift
17643 case $ac_mode in
17644 :L) ac_source=$1;;
17645 :[FH])
17646 ac_file_inputs=
17647 for ac_f
17649 case $ac_f in
17650 -) ac_f="$ac_tmp/stdin";;
17651 *) # Look for the file first in the build tree, then in the source tree
17652 # (if the path is not absolute). The absolute path cannot be DOS-style,
17653 # because $ac_f cannot contain `:'.
17654 test -f "$ac_f" ||
17655 case $ac_f in
17656 [\\/$]*) false;;
17657 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17658 esac ||
17659 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17660 esac
17661 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17662 as_fn_append ac_file_inputs " '$ac_f'"
17663 done
17665 # Let's still pretend it is `configure' which instantiates (i.e., don't
17666 # use $as_me), people would be surprised to read:
17667 # /* config.h. Generated by config.status. */
17668 configure_input='Generated from '`
17669 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17670 `' by configure.'
17671 if test x"$ac_file" != x-; then
17672 configure_input="$ac_file. $configure_input"
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17674 $as_echo "$as_me: creating $ac_file" >&6;}
17676 # Neutralize special characters interpreted by sed in replacement strings.
17677 case $configure_input in #(
17678 *\&* | *\|* | *\\* )
17679 ac_sed_conf_input=`$as_echo "$configure_input" |
17680 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17681 *) ac_sed_conf_input=$configure_input;;
17682 esac
17684 case $ac_tag in
17685 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17687 esac
17689 esac
17691 ac_dir=`$as_dirname -- "$ac_file" ||
17692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17693 X"$ac_file" : 'X\(//\)[^/]' \| \
17694 X"$ac_file" : 'X\(//\)$' \| \
17695 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17696 $as_echo X"$ac_file" |
17697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17698 s//\1/
17701 /^X\(\/\/\)[^/].*/{
17702 s//\1/
17705 /^X\(\/\/\)$/{
17706 s//\1/
17709 /^X\(\/\).*/{
17710 s//\1/
17713 s/.*/./; q'`
17714 as_dir="$ac_dir"; as_fn_mkdir_p
17715 ac_builddir=.
17717 case "$ac_dir" in
17718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17720 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17721 # A ".." for each directory in $ac_dir_suffix.
17722 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17723 case $ac_top_builddir_sub in
17724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17726 esac ;;
17727 esac
17728 ac_abs_top_builddir=$ac_pwd
17729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17730 # for backward compatibility:
17731 ac_top_builddir=$ac_top_build_prefix
17733 case $srcdir in
17734 .) # We are building in place.
17735 ac_srcdir=.
17736 ac_top_srcdir=$ac_top_builddir_sub
17737 ac_abs_top_srcdir=$ac_pwd ;;
17738 [\\/]* | ?:[\\/]* ) # Absolute name.
17739 ac_srcdir=$srcdir$ac_dir_suffix;
17740 ac_top_srcdir=$srcdir
17741 ac_abs_top_srcdir=$srcdir ;;
17742 *) # Relative name.
17743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17744 ac_top_srcdir=$ac_top_build_prefix$srcdir
17745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17746 esac
17747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17750 case $ac_mode in
17753 # CONFIG_FILE
17756 case $INSTALL in
17757 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17758 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17759 esac
17760 _ACEOF
17762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17763 # If the template does not know about datarootdir, expand it.
17764 # FIXME: This hack should be removed a few years after 2.60.
17765 ac_datarootdir_hack=; ac_datarootdir_seen=
17766 ac_sed_dataroot='
17767 /datarootdir/ {
17771 /@datadir@/p
17772 /@docdir@/p
17773 /@infodir@/p
17774 /@localedir@/p
17775 /@mandir@/p'
17776 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17777 *datarootdir*) ac_datarootdir_seen=yes;;
17778 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17780 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17781 _ACEOF
17782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17783 ac_datarootdir_hack='
17784 s&@datadir@&$datadir&g
17785 s&@docdir@&$docdir&g
17786 s&@infodir@&$infodir&g
17787 s&@localedir@&$localedir&g
17788 s&@mandir@&$mandir&g
17789 s&\\\${datarootdir}&$datarootdir&g' ;;
17790 esac
17791 _ACEOF
17793 # Neutralize VPATH when `$srcdir' = `.'.
17794 # Shell code in configure.ac might set extrasub.
17795 # FIXME: do we really want to maintain this feature?
17796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17797 ac_sed_extra="$ac_vpsub
17798 $extrasub
17799 _ACEOF
17800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17802 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17803 s|@configure_input@|$ac_sed_conf_input|;t t
17804 s&@top_builddir@&$ac_top_builddir_sub&;t t
17805 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17806 s&@srcdir@&$ac_srcdir&;t t
17807 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17808 s&@top_srcdir@&$ac_top_srcdir&;t t
17809 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17810 s&@builddir@&$ac_builddir&;t t
17811 s&@abs_builddir@&$ac_abs_builddir&;t t
17812 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17813 s&@INSTALL@&$ac_INSTALL&;t t
17814 $ac_datarootdir_hack
17816 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17817 if $ac_cs_awk_getline; then
17818 $AWK -f "$ac_tmp/subs.awk"
17819 else
17820 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17821 fi \
17822 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17824 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17825 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17826 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17827 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17829 which seems to be undefined. Please make sure it is defined" >&5
17830 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17831 which seems to be undefined. Please make sure it is defined" >&2;}
17833 rm -f "$ac_tmp/stdin"
17834 case $ac_file in
17835 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17836 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17837 esac \
17838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17842 # CONFIG_HEADER
17844 if test x"$ac_file" != x-; then
17846 $as_echo "/* $configure_input */" \
17847 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17848 } >"$ac_tmp/config.h" \
17849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17850 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17852 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17853 else
17854 rm -f "$ac_file"
17855 mv "$ac_tmp/config.h" "$ac_file" \
17856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17858 else
17859 $as_echo "/* $configure_input */" \
17860 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17861 || as_fn_error $? "could not create -" "$LINENO" 5
17866 # CONFIG_LINK
17869 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17871 else
17872 # Prefer the file from the source tree if names are identical.
17873 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17874 ac_source=$srcdir/$ac_source
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17878 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17880 if test ! -r "$ac_source"; then
17881 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17883 rm -f "$ac_file"
17885 # Try a relative symlink, then a hard link, then a copy.
17886 case $ac_source in
17887 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17888 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17889 esac
17890 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17891 ln "$ac_source" "$ac_file" 2>/dev/null ||
17892 cp -p "$ac_source" "$ac_file" ||
17893 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17896 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17897 $as_echo "$as_me: executing $ac_file commands" >&6;}
17899 esac
17902 case $ac_file$ac_mode in
17903 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17904 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17905 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17906 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17907 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17908 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17909 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17910 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17911 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17912 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17913 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17914 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17915 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17916 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17917 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17918 "Makefile":C) wine_fn_output_makefile Makefile ;;
17920 esac
17921 done # for ac_tag
17924 as_fn_exit 0
17925 _ACEOF
17926 ac_clean_files=$ac_clean_files_save
17928 test $ac_write_fail = 0 ||
17929 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17932 # configure is writing to config.log, and then calls config.status.
17933 # config.status does its own redirection, appending to config.log.
17934 # Unfortunately, on DOS this fails, as config.log is still kept open
17935 # by configure, so config.status won't be able to write to it; its
17936 # output is simply discarded. So we exec the FD to /dev/null,
17937 # effectively closing config.log, so it can be properly (re)opened and
17938 # appended to by config.status. When coming back to configure, we
17939 # need to make the FD available again.
17940 if test "$no_create" != yes; then
17941 ac_cs_success=:
17942 ac_config_status_args=
17943 test "$silent" = yes &&
17944 ac_config_status_args="$ac_config_status_args --quiet"
17945 exec 5>/dev/null
17946 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17947 exec 5>>config.log
17948 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17949 # would make configure fail if this is the last instruction.
17950 $ac_cs_success || as_fn_exit 1
17952 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17954 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17958 if test "$no_create" = "yes"
17959 then
17960 exit 0
17963 ac_save_IFS="$IFS"
17964 if test "x$wine_notices != "x; then
17965 echo >&6
17966 IFS="|"
17967 for msg in $wine_notices; do
17968 IFS="$ac_save_IFS"
17969 if test -n "$msg"; then
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17971 $as_echo "$as_me: $msg" >&6;}
17973 done
17975 IFS="|"
17976 for msg in $wine_warnings; do
17977 IFS="$ac_save_IFS"
17978 if test -n "$msg"; then
17979 echo >&2
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17981 $as_echo "$as_me: WARNING: $msg" >&2;}
17983 done
17984 IFS="$ac_save_IFS"
17986 echo "
17987 $as_me: Finished. Do '${ac_make}' to compile Wine.
17988 " >&6